public class HandlingUnitItem extends VdmEntity<HandlingUnitItem>
Original entity name from the Odata EDM: HandlingUnitItemType
Modifier and Type | Class and Description |
---|---|
static class |
HandlingUnitItem.HandlingUnitItemBuilder
Helper class to allow for fluent creation of HandlingUnitItem instances.
|
Modifier and Type | Field and Description |
---|---|
static HandlingUnitItemSelectable |
ALL_FIELDS
Selector for all available fields of HandlingUnitItem.
|
static HandlingUnitItemField<String> |
HANDLING_UNIT_ALT_UNIT_OF_MEASURE
Use with available fluent helpers to apply the HandlingUnitAltUnitOfMeasure field to query operations.
|
static HandlingUnitItemField<String> |
HANDLING_UNIT_EXTERNAL_ID
Use with available fluent helpers to apply the HandlingUnitExternalID field to query operations.
|
static HandlingUnitItemField<LocalDateTime> |
HANDLING_UNIT_GOODS_RECEIPT_DATE
Use with available fluent helpers to apply the HandlingUnitGoodsReceiptDate field to query operations.
|
static HandlingUnitItemField<BigDecimal> |
HANDLING_UNIT_QUANTITY
Use with available fluent helpers to apply the HandlingUnitQuantity field to query operations.
|
static HandlingUnitItemField<String> |
HANDLING_UNIT_QUANTITY_UNIT
Use with available fluent helpers to apply the HandlingUnitQuantityUnit field to query operations.
|
static HandlingUnitItemField<String> |
HANDLING_UNIT_REF_DOCUMENT_ITEM
Use with available fluent helpers to apply the HandlingUnitRefDocumentItem field to query operations.
|
static HandlingUnitItemField<String> |
HANDLING_UNIT_REFERENCE_DOCUMENT
Use with available fluent helpers to apply the HandlingUnitReferenceDocument field to query operations.
|
static HandlingUnitItemField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static HandlingUnitItemField<LocalDateTime> |
SHELF_LIFE_EXPIRATION_DATE
Use with available fluent helpers to apply the ShelfLifeExpirationDate field to query operations.
|
static HandlingUnitItemField<UUID> |
STOCK_ITEM_UUID
Use with available fluent helpers to apply the StockItemUUID field to query operations.
|
static HandlingUnitItemOneToOneLink<HandlingUnit> |
TO_HANDLING_UNIT
Use with available fluent helpers to apply the to_HandlingUnit navigation property to query operations.
|
static HandlingUnitItemField<String> |
WAREHOUSE
Use with available fluent helpers to apply the Warehouse field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
HandlingUnitItem() |
HandlingUnitItem(String handlingUnitExternalID,
String warehouse,
UUID stockItemUUID,
String handlingUnitReferenceDocument,
String handlingUnitRefDocumentItem,
BigDecimal handlingUnitQuantity,
String handlingUnitQuantityUnit,
String handlingUnitAltUnitOfMeasure,
String material,
LocalDateTime shelfLifeExpirationDate,
LocalDateTime handlingUnitGoodsReceiptDate,
HandlingUnit toHandlingUnit) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static HandlingUnitItem.HandlingUnitItemBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
HandlingUnit |
fetchHandlingUnit()
Fetches the HandlingUnit entity (one to one) associated with this entity.
|
static <T> HandlingUnitItemField<T> |
field(String fieldName,
Class<T> fieldType)
Use with available fluent helpers to apply an extension field to query operations.
|
static <T,DomainT> |
field(String fieldName,
TypeConverter<T,DomainT> typeConverter)
Use with available fluent helpers to apply an extension field to query operations.
|
protected void |
fromMap(Map<String,Object> inputValues) |
protected String |
getDefaultServicePath()
Used by fluent helpers and navigation property methods to construct OData queries.
|
HttpDestinationProperties |
getDestinationForFetch()
Convienence field for reusing the same destination with multiple queries (e.g.
|
protected String |
getEntityCollection()
Used by fluent helpers and navigation property methods to construct OData queries.
|
String |
getHandlingUnitAltUnitOfMeasure()
Constraints: Not nullable, Maximum length: 3
|
String |
getHandlingUnitExternalID()
(Key Field) Constraints: Not nullable, Maximum length: 20
|
LocalDateTime |
getHandlingUnitGoodsReceiptDate()
Constraints: Not nullable, Precision: 0
|
io.vavr.control.Option<HandlingUnit> |
getHandlingUnitIfPresent()
Retrieval of associated HandlingUnit entity (one to one).
|
HandlingUnit |
getHandlingUnitOrFetch()
Retrieval of associated HandlingUnit entity (one to one).
|
BigDecimal |
getHandlingUnitQuantity()
Constraints: Not nullable, Precision: 15, Scale: 3
|
String |
getHandlingUnitQuantityUnit()
Constraints: Not nullable, Maximum length: 3
|
String |
getHandlingUnitRefDocumentItem()
Constraints: Not nullable, Maximum length: 10
|
String |
getHandlingUnitReferenceDocument()
Constraints: Not nullable, Maximum length: 10
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
Constraints: Not nullable, Maximum length: 18
|
LocalDateTime |
getShelfLifeExpirationDate()
Constraints: Not nullable, Precision: 0
|
UUID |
getStockItemUUID()
(Key Field) Constraints: Not nullable
|
Class<HandlingUnitItem> |
getType() |
String |
getWarehouse()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
int |
hashCode() |
void |
setHandlingUnit(HandlingUnit value)
Overwrites the associated HandlingUnit entity for the loaded navigation property to_HandlingUnit.
|
void |
setHandlingUnitAltUnitOfMeasure(String handlingUnitAltUnitOfMeasure)
Constraints: Not nullable, Maximum length: 3
|
void |
setHandlingUnitExternalID(String handlingUnitExternalID)
(Key Field) Constraints: Not nullable, Maximum length: 20
|
void |
setHandlingUnitGoodsReceiptDate(LocalDateTime handlingUnitGoodsReceiptDate)
Constraints: Not nullable, Precision: 0
|
void |
setHandlingUnitQuantity(BigDecimal handlingUnitQuantity)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setHandlingUnitQuantityUnit(String handlingUnitQuantityUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setHandlingUnitRefDocumentItem(String handlingUnitRefDocumentItem)
Constraints: Not nullable, Maximum length: 10
|
void |
setHandlingUnitReferenceDocument(String handlingUnitReferenceDocument)
Constraints: Not nullable, Maximum length: 10
|
void |
setMaterial(String material)
Constraints: Not nullable, Maximum length: 18
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setShelfLifeExpirationDate(LocalDateTime shelfLifeExpirationDate)
Constraints: Not nullable, Precision: 0
|
void |
setStockItemUUID(UUID stockItemUUID)
(Key Field) Constraints: Not nullable
|
void |
setWarehouse(String warehouse)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
protected Map<String,Object> |
toMapOfFields() |
protected Map<String,Object> |
toMapOfNavigationProperties() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
public static final HandlingUnitItemSelectable ALL_FIELDS
public static final HandlingUnitItemField<String> HANDLING_UNIT_EXTERNAL_ID
public static final HandlingUnitItemField<String> WAREHOUSE
public static final HandlingUnitItemField<UUID> STOCK_ITEM_UUID
public static final HandlingUnitItemField<String> HANDLING_UNIT_REFERENCE_DOCUMENT
public static final HandlingUnitItemField<String> HANDLING_UNIT_REF_DOCUMENT_ITEM
public static final HandlingUnitItemField<BigDecimal> HANDLING_UNIT_QUANTITY
public static final HandlingUnitItemField<String> HANDLING_UNIT_QUANTITY_UNIT
public static final HandlingUnitItemField<String> HANDLING_UNIT_ALT_UNIT_OF_MEASURE
public static final HandlingUnitItemField<String> MATERIAL
public static final HandlingUnitItemField<LocalDateTime> SHELF_LIFE_EXPIRATION_DATE
public static final HandlingUnitItemField<LocalDateTime> HANDLING_UNIT_GOODS_RECEIPT_DATE
public static final HandlingUnitItemOneToOneLink<HandlingUnit> TO_HANDLING_UNIT
public HandlingUnitItem()
public HandlingUnitItem(@Nullable String handlingUnitExternalID, @Nullable String warehouse, @Nullable UUID stockItemUUID, @Nullable String handlingUnitReferenceDocument, @Nullable String handlingUnitRefDocumentItem, @Nullable BigDecimal handlingUnitQuantity, @Nullable String handlingUnitQuantityUnit, @Nullable String handlingUnitAltUnitOfMeasure, @Nullable String material, @Nullable LocalDateTime shelfLifeExpirationDate, @Nullable LocalDateTime handlingUnitGoodsReceiptDate, @Nullable HandlingUnit toHandlingUnit)
@Nonnull public Class<HandlingUnitItem> getType()
getType
in class VdmObject<HandlingUnitItem>
public void setHandlingUnitExternalID(@Nullable String handlingUnitExternalID)
Original property name from the Odata EDM: HandlingUnitExternalID
The system automatically generates an internal number that must be unique for each system client. The system also needs external identification so that it can uniquely identify handling units.Creating a handling unit:Identifiers for handling units are determined during creation according to settings in Customizing for number assignment of the packaging material type for the packaging material that is being used. You can also assign default values for identifiers when you create handling units, although these values must correspond to the settings in Customizing.Processing a handling unitTo edit existing handling units, enter the handling unit's identification in this field.
handlingUnitExternalID
- Specifies an external identifier for the handling unit.public void setWarehouse(@Nullable String warehouse)
Original property name from the Odata EDM: Warehouse
All activities within a warehouse, for example, goods movements and physical inventory, are assigned to a specific warehouse number. The physical warehouse where these activities take place is identified by the warehouse number.
warehouse
- Alphanumeric key that identifies a complex, physical warehouse within the warehouse management system.public void setStockItemUUID(@Nullable UUID stockItemUUID)
Original property name from the Odata EDM: StockItemUUID
stockItemUUID
- GUID Stock Itempublic void setHandlingUnitReferenceDocument(@Nullable String handlingUnitReferenceDocument)
Original property name from the Odata EDM: HandlingUnitReferenceDocument
handlingUnitReferenceDocument
- The number that uniquely identifies the delivery.public void setHandlingUnitRefDocumentItem(@Nullable String handlingUnitRefDocumentItem)
Original property name from the Odata EDM: HandlingUnitRefDocumentItem
handlingUnitRefDocumentItem
- Character Field with Length 10public void setHandlingUnitQuantity(@Nullable BigDecimal handlingUnitQuantity)
Original property name from the Odata EDM: HandlingUnitQuantity
handlingUnitQuantity
- Base Quantity Packed in the Handling Unit Itempublic void setHandlingUnitQuantityUnit(@Nullable String handlingUnitQuantityUnit)
Original property name from the Odata EDM: HandlingUnitQuantityUnit
handlingUnitQuantityUnit
- Base Unit of Measure of the Quantity to be Packed (VEMNG)public void setHandlingUnitAltUnitOfMeasure(@Nullable String handlingUnitAltUnitOfMeasure)
Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure
handlingUnitAltUnitOfMeasure
- Unit of measure in which quantities can be entered as an alternative to the base unit of measure.public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
material
- Alphanumeric key uniquely identifying the material.public void setShelfLifeExpirationDate(@Nullable LocalDateTime shelfLifeExpirationDate)
Original property name from the Odata EDM: ShelfLifeExpirationDate
You enter it yourself.You enter a date of production, and the system calculates the shelf life expiration date from the date of production plus the shelf life in days (from the material master record).NoteThis date can still be changed upon receipt of the usage decision for an inspection lot.
shelfLifeExpirationDate
- The date is set upon goods receipt in one of the following ways:public void setHandlingUnitGoodsReceiptDate(@Nullable LocalDateTime handlingUnitGoodsReceiptDate)
Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate
handlingUnitGoodsReceiptDate
- Date of goods receipt of a material.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<HandlingUnitItem>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<HandlingUnitItem>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<HandlingUnitItem>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<HandlingUnitItem>
@Nonnull public static <T> HandlingUnitItemField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
T
- The type of the extension field when performing value comparisons.fieldName
- The name of the extension field as returned by the OData service.fieldType
- The Java type to use for the extension field when performing value comparisons.@Nonnull public static <T,DomainT> HandlingUnitItemField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
T
- The type of the extension field when performing value comparisons.DomainT
- The type of the extension field as returned by the OData service.typeConverter
- A TypeConverterfieldName
- The name of the extension field as returned by the OData service.@Nullable public HttpDestinationProperties getDestinationForFetch()
VdmEntity
getDestinationForFetch
in class VdmEntity<HandlingUnitItem>
protected void setServicePathForFetch(@Nullable String servicePathForFetch)
VdmEntity
Note: Use with caution, as this can easily break the fetch call on this entity. See the interface of the corresponding service for the default service path.
setServicePathForFetch
in class VdmEntity<HandlingUnitItem>
public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
VdmEntity
Note: Use with caution, as this can easily break the fetch calls on this entity. See the interface of the corresponding service for the default service path.
attachToService
in class VdmEntity<HandlingUnitItem>
servicePath
- Optional parameter. New service path to apply to this entity and any associated entities that were
previously fetched. If a null value is provided and the service path has never been set, then the
service path will be set to the default defined in the corresponding service interface.destination
- New destination to apply to this entity and any associated entities that were previously fetched.protected String getDefaultServicePath()
VdmEntity
getDefaultServicePath
in class VdmEntity<HandlingUnitItem>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<HandlingUnitItem>
@Nullable public HandlingUnit fetchHandlingUnit() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
null
if an entity is not associated.com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nullable public HandlingUnit getHandlingUnitOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_HandlingUnit 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.
com.sap.cloud.sdk.odatav2.connectivity.ODataException
- If the entity is unmanaged, i.e. it has not been retrieved using the OData VDM's services and
therefore has no ERP configuration context assigned. An entity is managed if it has been either
retrieved using the VDM's services or returned from the VDM's services as the result of a CREATE or
UPDATE call.@Nonnull public io.vavr.control.Option<HandlingUnit> getHandlingUnitIfPresent()
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
.
Option
with result state
empty
is returned.public void setHandlingUnit(HandlingUnit value)
value
- New HandlingUnit entity.@Nonnull public static HandlingUnitItem.HandlingUnitItemBuilder builder()
@Nullable public String getHandlingUnitExternalID()
Original property name from the Odata EDM: HandlingUnitExternalID
The system automatically generates an internal number that must be unique for each system client. The system also needs external identification so that it can uniquely identify handling units.Creating a handling unit:Identifiers for handling units are determined during creation according to settings in Customizing for number assignment of the packaging material type for the packaging material that is being used. You can also assign default values for identifiers when you create handling units, although these values must correspond to the settings in Customizing.Processing a handling unitTo edit existing handling units, enter the handling unit's identification in this field.
@Nullable public String getWarehouse()
Original property name from the Odata EDM: Warehouse
All activities within a warehouse, for example, goods movements and physical inventory, are assigned to a specific warehouse number. The physical warehouse where these activities take place is identified by the warehouse number.
@Nullable public UUID getStockItemUUID()
Original property name from the Odata EDM: StockItemUUID
@Nullable public String getHandlingUnitReferenceDocument()
Original property name from the Odata EDM: HandlingUnitReferenceDocument
@Nullable public String getHandlingUnitRefDocumentItem()
Original property name from the Odata EDM: HandlingUnitRefDocumentItem
@Nullable public BigDecimal getHandlingUnitQuantity()
Original property name from the Odata EDM: HandlingUnitQuantity
@Nullable public String getHandlingUnitQuantityUnit()
Original property name from the Odata EDM: HandlingUnitQuantityUnit
@Nullable public String getHandlingUnitAltUnitOfMeasure()
Original property name from the Odata EDM: HandlingUnitAltUnitOfMeasure
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
@Nullable public LocalDateTime getShelfLifeExpirationDate()
Original property name from the Odata EDM: ShelfLifeExpirationDate
You enter it yourself.You enter a date of production, and the system calculates the shelf life expiration date from the date of production plus the shelf life in days (from the material master record).NoteThis date can still be changed upon receipt of the usage decision for an inspection lot.
@Nullable public LocalDateTime getHandlingUnitGoodsReceiptDate()
Original property name from the Odata EDM: HandlingUnitGoodsReceiptDate
@Nonnull public String toString()
toString
in class VdmObject<HandlingUnitItem>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<HandlingUnitItem>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<HandlingUnitItem>
public int hashCode()
hashCode
in class VdmObject<HandlingUnitItem>
Copyright © 2021 SAP SE. All rights reserved.