java.lang.Object
com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity<HandlingUnitItem>
com.sap.cloud.sdk.s4hana.datamodel.odatav4.namespaces.handlingunit.HandlingUnitItem
All Implemented Interfaces:
VdmEntitySet

public class HandlingUnitItem extends VdmEntity<HandlingUnitItem> implements VdmEntitySet
Handling Unit Item

Original entity name from the Odata EDM: HandlingUnitItemType

  • Field Details

  • Constructor Details

    • HandlingUnitItem

      public HandlingUnitItem()
    • HandlingUnitItem

      public HandlingUnitItem(@Nullable String handlingUnitExternalID, @Nullable String warehouse, @Nullable UUID stockItemUUID, @Nullable String handlingUnitItem, @Nullable String handlingUnitTypeOfContent, @Nullable String handlingUnitNestedExternalID, @Nullable String handlingUnitReferenceDocument, @Nullable String handlingUnitRefDocumentItem, @Nullable String material, @Nullable String batch, @Nullable String plant, @Nullable String storageLocation, @Nullable BigDecimal handlingUnitQuantity, @Nullable String handlingUnitQuantityUnit, @Nullable String handlingUnitAltUnitOfMeasure, @Nullable Integer handlingUnitNrOfAuxPackgMat, @Nullable Integer handlingUnitNumberOfSerialNumb, @Nullable String serialNumberProfile, @Nullable Collection<SAP__Message> _Messages, @Nullable HandlingUnit to_HandlingUnit, List<HandlingUnitSerialNumber> to_HandlingUnitItemSerialNumber)
  • Method Details

    • getType

      @Nonnull public Class<HandlingUnitItem> getType()
      Specified by:
      getType in class VdmObject<HandlingUnitItem>
    • setHandlingUnitExternalID

      public void setHandlingUnitExternalID(@Nullable String handlingUnitExternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitExternalID

      Parameters:
      handlingUnitExternalID - External Handling Unit Identification
    • setWarehouse

      public void setWarehouse(@Nullable String warehouse)
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Parameters:
      warehouse - Warehouse Number/Warehouse Complex
    • setStockItemUUID

      public void setStockItemUUID(@Nullable UUID stockItemUUID)
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StockItemUUID

      Parameters:
      stockItemUUID - GUID Stock Item
    • setHandlingUnitItem

      public void setHandlingUnitItem(@Nullable String handlingUnitItem)
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: HandlingUnitItem

      Parameters:
      handlingUnitItem - Handling Unit Item
    • setHandlingUnitTypeOfContent

      public void setHandlingUnitTypeOfContent(@Nullable String handlingUnitTypeOfContent)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: HandlingUnitTypeOfContent

      Parameters:
      handlingUnitTypeOfContent - Type of Handling-unit Item Content
    • setHandlingUnitNestedExternalID

      public void setHandlingUnitNestedExternalID(@Nullable String handlingUnitNestedExternalID)
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitNestedExternalID

      Parameters:
      handlingUnitNestedExternalID - Char 20
    • setHandlingUnitReferenceDocument

      public void setHandlingUnitReferenceDocument(@Nullable String handlingUnitReferenceDocument)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitReferenceDocument

      Parameters:
      handlingUnitReferenceDocument - Delivery
    • setHandlingUnitRefDocumentItem

      public void setHandlingUnitRefDocumentItem(@Nullable String handlingUnitRefDocumentItem)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitRefDocumentItem

      Parameters:
      handlingUnitRefDocumentItem - The handlingUnitRefDocumentItem to set.
    • setMaterial

      public void setMaterial(@Nullable String material)
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • setBatch

      public void setBatch(@Nullable String batch)
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Batch

      Parameters:
      batch - Batch Number
    • setPlant

      public void setPlant(@Nullable String plant)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setStorageLocation

      public void setStorageLocation(@Nullable String storageLocation)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: StorageLocation

      Parameters:
      storageLocation - Storage Location
    • setHandlingUnitQuantity

      public void setHandlingUnitQuantity(@Nullable BigDecimal handlingUnitQuantity)
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: HandlingUnitQuantity

      Parameters:
      handlingUnitQuantity - Base Quantity Packed in the Handling Unit Item
    • setHandlingUnitQuantityUnit

      public void setHandlingUnitQuantityUnit(@Nullable String handlingUnitQuantityUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitQuantityUnit

      Parameters:
      handlingUnitQuantityUnit - Base Unit of Measure of the Quantity to be Packed (VEMNG)
    • setHandlingUnitAltUnitOfMeasure

      public void setHandlingUnitAltUnitOfMeasure(@Nullable String handlingUnitAltUnitOfMeasure)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure

      Parameters:
      handlingUnitAltUnitOfMeasure - Alternative unit of measure for stock unit of measure
    • setHandlingUnitNrOfAuxPackgMat

      public void setHandlingUnitNrOfAuxPackgMat(@Nullable Integer handlingUnitNrOfAuxPackgMat)
      Constraints: Not nullable

      Original property name from the Odata EDM: HandlingUnitNrOfAuxPackgMat

      Parameters:
      handlingUnitNrOfAuxPackgMat - Number of Auxiliary Packaging Materials in the HU Item
    • setHandlingUnitNumberOfSerialNumb

      public void setHandlingUnitNumberOfSerialNumb(@Nullable Integer handlingUnitNumberOfSerialNumb)
      Constraints: Not nullable

      Original property name from the Odata EDM: HandlingUnitNumberOfSerialNumb

      Parameters:
      handlingUnitNumberOfSerialNumb - Number of serial numbers
    • setSerialNumberProfile

      public void setSerialNumberProfile(@Nullable String serialNumberProfile)
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SerialNumberProfile

      Parameters:
      serialNumberProfile - Serial Number Profile
    • set_Messages

      public void set_Messages(@Nullable Collection<SAP__Message> _Messages)
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Parameters:
      _Messages - The _Messages to set.
    • getEntityCollection

      protected String getEntityCollection()
      Specified by:
      getEntityCollection in class VdmEntity<HandlingUnitItem>
    • getKey

      @Nonnull protected ODataEntityKey getKey()
      Overrides:
      getKey in class VdmObject<HandlingUnitItem>
    • toMapOfFields

      @Nonnull protected Map<String,Object> toMapOfFields()
      Overrides:
      toMapOfFields in class VdmObject<HandlingUnitItem>
    • fromMap

      protected void fromMap(Map<String,Object> inputValues)
      Overrides:
      fromMap in class VdmObject<HandlingUnitItem>
    • getDefaultServicePath

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<HandlingUnitItem>
    • toMapOfNavigationProperties

      @Nonnull protected Map<String,Object> toMapOfNavigationProperties()
      Overrides:
      toMapOfNavigationProperties in class VdmObject<HandlingUnitItem>
    • getHandlingUnitIfPresent

      @Nonnull public io.vavr.control.Option<HandlingUnit> getHandlingUnitIfPresent()
      Retrieval of associated HandlingUnit entity (one to one). This corresponds to the OData navigation property _HandlingUnit.

      If the navigation property for an entity HandlingUnitItem has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _HandlingUnit is already loaded, the result will contain the HandlingUnit entity. If not, an Option with result state empty is returned.
    • setHandlingUnit

      public void setHandlingUnit(HandlingUnit value)
      Overwrites the associated HandlingUnit entity for the loaded navigation property _HandlingUnit.
      Parameters:
      value - New HandlingUnit entity.
    • getHandlingUnitItemSerialNumberIfPresent

      @Nonnull public io.vavr.control.Option<List<HandlingUnitSerialNumber>> getHandlingUnitItemSerialNumberIfPresent()
      Retrieval of associated HandlingUnitSerialNumber entities (one to many). This corresponds to the OData navigation property _HandlingUnitItemSerialNumber.

      If the navigation property for an entity HandlingUnitItem has not been resolved yet, this method will not query further information. Instead its Option result state will be empty.

      Returns:
      If the information for navigation property _HandlingUnitItemSerialNumber is already loaded, the result will contain the HandlingUnitSerialNumber entities. If not, an Option with result state empty is returned.
    • setHandlingUnitItemSerialNumber

      public void setHandlingUnitItemSerialNumber(@Nonnull List<HandlingUnitSerialNumber> value)
      Overwrites the list of associated HandlingUnitSerialNumber entities for the loaded navigation property _HandlingUnitItemSerialNumber.

      If the navigation property _HandlingUnitItemSerialNumber of a queried HandlingUnitItem is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      value - List of HandlingUnitSerialNumber entities.
    • addHandlingUnitItemSerialNumber

      public void addHandlingUnitItemSerialNumber(HandlingUnitSerialNumber... entity)
      Adds elements to the list of associated HandlingUnitSerialNumber entities. This corresponds to the OData navigation property _HandlingUnitItemSerialNumber.

      If the navigation property _HandlingUnitItemSerialNumber of a queried HandlingUnitItem is operated lazily, an ODataException can be thrown in case of an OData query error.

      Please note: Lazy loading of OData entity associations is the process of asynchronous retrieval and persisting of items from a navigation property. If a lazy property is requested by the application for the first time and it has not yet been loaded, an OData query will be run in order to load the missing information and its result will get cached for future invocations.

      Parameters:
      entity - Array of HandlingUnitSerialNumber entities.
    • repackHandlingUnitItem

      @Nonnull public static BoundAction.SingleToSingle<HandlingUnitItem,HandlingUnitRepackItemResult_Type> repackHandlingUnitItem(@Nonnull String parentHandlingUnitNumber, @Nonnull BigDecimal handlingUnitQuantity, @Nonnull String handlingUnitQuantityUnit, @Nonnull String unitOfMeasureSAPCode, @Nonnull String unitOfMeasureISOCode, @Nonnull String eWMWorkCenter, @Nonnull Collection<D_HNDLGUNITITMREPACKSRLNMBRP> _SerialNumber)
      Action that can be applied to any entity object of this class.

      Parameters:
      eWMWorkCenter - Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: EWMWorkCenter

      _SerialNumber - Constraints: Not nullable

      Original parameter name from the Odata EDM: _SerialNumber

      handlingUnitQuantityUnit - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: HandlingUnitQuantityUnit

      unitOfMeasureSAPCode - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: UnitOfMeasureSAPCode

      handlingUnitQuantity - Constraints: Not nullable, Precision: 15, Scale: 3

      Original parameter name from the Odata EDM: HandlingUnitQuantity

      unitOfMeasureISOCode - Constraints: Not nullable, Maximum length: 3

      Original parameter name from the Odata EDM: UnitOfMeasureISOCode

      parentHandlingUnitNumber - Constraints: Not nullable, Maximum length: 20

      Original parameter name from the Odata EDM: ParentHandlingUnitNumber

      Returns:
      Action object prepared with the given parameters to be applied to any entity object of this class.

      To execute it use the service.forEntity(entity).applyAction(thisAction) API.
    • builder

      @Nonnull public static HandlingUnitItem.HandlingUnitItemBuilder builder()
    • getHandlingUnitExternalID

      @Nullable public String getHandlingUnitExternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitExternalID

      Returns:
      External Handling Unit Identification
    • getWarehouse

      @Nullable public String getWarehouse()
      (Key Field) Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Warehouse

      Returns:
      Warehouse Number/Warehouse Complex
    • getStockItemUUID

      @Nullable public UUID getStockItemUUID()
      (Key Field) Constraints: Not nullable

      Original property name from the Odata EDM: StockItemUUID

      Returns:
      GUID Stock Item
    • getHandlingUnitItem

      @Nullable public String getHandlingUnitItem()
      Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: HandlingUnitItem

      Returns:
      Handling Unit Item
    • getHandlingUnitTypeOfContent

      @Nullable public String getHandlingUnitTypeOfContent()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: HandlingUnitTypeOfContent

      Returns:
      Type of Handling-unit Item Content
    • getHandlingUnitNestedExternalID

      @Nullable public String getHandlingUnitNestedExternalID()
      Constraints: Not nullable, Maximum length: 20

      Original property name from the Odata EDM: HandlingUnitNestedExternalID

      Returns:
      Char 20
    • getHandlingUnitReferenceDocument

      @Nullable public String getHandlingUnitReferenceDocument()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitReferenceDocument

      Returns:
      Delivery
    • getHandlingUnitRefDocumentItem

      @Nullable public String getHandlingUnitRefDocumentItem()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: HandlingUnitRefDocumentItem

      Returns:
      The handlingUnitRefDocumentItem contained in this VdmEntity.
    • getMaterial

      @Nullable public String getMaterial()
      Constraints: Not nullable, Maximum length: 18

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getBatch

      @Nullable public String getBatch()
      Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Batch

      Returns:
      Batch Number
    • getPlant

      @Nullable public String getPlant()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getStorageLocation

      @Nullable public String getStorageLocation()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: StorageLocation

      Returns:
      Storage Location
    • getHandlingUnitQuantity

      @Nullable public BigDecimal getHandlingUnitQuantity()
      Constraints: Not nullable, Precision: 15, Scale: 3

      Original property name from the Odata EDM: HandlingUnitQuantity

      Returns:
      Base Quantity Packed in the Handling Unit Item
    • getHandlingUnitQuantityUnit

      @Nullable public String getHandlingUnitQuantityUnit()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitQuantityUnit

      Returns:
      Base Unit of Measure of the Quantity to be Packed (VEMNG)
    • getHandlingUnitAltUnitOfMeasure

      @Nullable public String getHandlingUnitAltUnitOfMeasure()
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure

      Returns:
      Alternative unit of measure for stock unit of measure
    • getHandlingUnitNrOfAuxPackgMat

      @Nullable public Integer getHandlingUnitNrOfAuxPackgMat()
      Constraints: Not nullable

      Original property name from the Odata EDM: HandlingUnitNrOfAuxPackgMat

      Returns:
      Number of Auxiliary Packaging Materials in the HU Item
    • getHandlingUnitNumberOfSerialNumb

      @Nullable public Integer getHandlingUnitNumberOfSerialNumb()
      Constraints: Not nullable

      Original property name from the Odata EDM: HandlingUnitNumberOfSerialNumb

      Returns:
      Number of serial numbers
    • getSerialNumberProfile

      @Nullable public String getSerialNumberProfile()
      Constraints: Not nullable, Maximum length: 4

      Original property name from the Odata EDM: SerialNumberProfile

      Returns:
      Serial Number Profile
    • get_Messages

      @Nullable public Collection<SAP__Message> get_Messages()
      Constraints: Not nullable

      Original property name from the Odata EDM: SAP__Messages

      Returns:
      The _Messages contained in this VdmEntity.
    • toString

      @Nonnull public String toString()
      Overrides:
      toString in class VdmObject<HandlingUnitItem>
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class VdmEntity<HandlingUnitItem>
    • canEqual

      protected boolean canEqual(@Nullable Object other)
      Overrides:
      canEqual in class VdmEntity<HandlingUnitItem>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<HandlingUnitItem>
    • getOdataType

      public String getOdataType()
      Specified by:
      getOdataType in class VdmObject<HandlingUnitItem>