public class ProductUnitsOfMeasure extends VdmEntity<ProductUnitsOfMeasure>
Original entity name from the Odata EDM: A_ProductUnitsOfMeasureType
Modifier and Type | Class and Description |
---|---|
static class |
ProductUnitsOfMeasure.ProductUnitsOfMeasureBuilder
Helper class to allow for fluent creation of ProductUnitsOfMeasure instances.
|
Modifier and Type | Field and Description |
---|---|
static ProductUnitsOfMeasureSelectable |
ALL_FIELDS
Selector for all available fields of ProductUnitsOfMeasure.
|
static ProductUnitsOfMeasureField<String> |
ALTERNATIVE_UNIT
Use with available fluent helpers to apply the AlternativeUnit field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
CAPACITY_USAGE
Use with available fluent helpers to apply the CapacityUsage field to query operations.
|
static ProductUnitsOfMeasureField<String> |
GLOBAL_TRADE_ITEM_NUMBER
Use with available fluent helpers to apply the GlobalTradeItemNumber field to query operations.
|
static ProductUnitsOfMeasureField<String> |
GLOBAL_TRADE_ITEM_NUMBER_CATEGORY
Use with available fluent helpers to apply the GlobalTradeItemNumberCategory field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
GROSS_WEIGHT
Use with available fluent helpers to apply the GrossWeight field to query operations.
|
static ProductUnitsOfMeasureField<String> |
LOWER_LEVEL_PACKAGING_UNIT
Use with available fluent helpers to apply the LowerLevelPackagingUnit field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
MATERIAL_VOLUME
Use with available fluent helpers to apply the MaterialVolume field to query operations.
|
static ProductUnitsOfMeasureField<Short> |
MAXIMUM_STACKING_FACTOR
Use with available fluent helpers to apply the MaximumStackingFactor field to query operations.
|
static ProductUnitsOfMeasureField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static ProductUnitsOfMeasureField<String> |
PRODUCT_MEASUREMENT_UNIT
Use with available fluent helpers to apply the ProductMeasurementUnit field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
QUANTITY_DENOMINATOR
Use with available fluent helpers to apply the QuantityDenominator field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
QUANTITY_NUMERATOR
Use with available fluent helpers to apply the QuantityNumerator field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
REMAINING_VOLUME_AFTER_NESTING
Use with available fluent helpers to apply the RemainingVolumeAfterNesting field to query operations.
|
static ProductUnitsOfMeasureLink<ProductUnitsOfMeasureEAN> |
TO_INTERNATIONAL_ARTICLE_NUMBER
Use with available fluent helpers to apply the to_InternationalArticleNumber navigation property to query
operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
UNIT_SPECIFIC_PRODUCT_HEIGHT
Use with available fluent helpers to apply the UnitSpecificProductHeight field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
UNIT_SPECIFIC_PRODUCT_LENGTH
Use with available fluent helpers to apply the UnitSpecificProductLength field to query operations.
|
static ProductUnitsOfMeasureField<BigDecimal> |
UNIT_SPECIFIC_PRODUCT_WIDTH
Use with available fluent helpers to apply the UnitSpecificProductWidth field to query operations.
|
static ProductUnitsOfMeasureField<String> |
VOLUME_UNIT
Use with available fluent helpers to apply the VolumeUnit field to query operations.
|
static ProductUnitsOfMeasureField<String> |
WEIGHT_UNIT
Use with available fluent helpers to apply the WeightUnit field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProductUnitsOfMeasure() |
ProductUnitsOfMeasure(String product,
String alternativeUnit,
BigDecimal quantityNumerator,
BigDecimal quantityDenominator,
BigDecimal materialVolume,
String volumeUnit,
BigDecimal grossWeight,
String weightUnit,
String globalTradeItemNumber,
String globalTradeItemNumberCategory,
BigDecimal unitSpecificProductLength,
BigDecimal unitSpecificProductWidth,
BigDecimal unitSpecificProductHeight,
String productMeasurementUnit,
String lowerLevelPackagingUnit,
BigDecimal remainingVolumeAfterNesting,
Short maximumStackingFactor,
BigDecimal capacityUsage,
List<ProductUnitsOfMeasureEAN> toInternationalArticleNumber) |
Modifier and Type | Method and Description |
---|---|
void |
addInternationalArticleNumber(ProductUnitsOfMeasureEAN... entity)
Adds elements to the list of associated ProductUnitsOfMeasureEAN entities.
|
void |
attachToService(String servicePath,
HttpDestinationProperties destination)
Sets the service path and destination for the fetch commands of this entity.
|
static ProductUnitsOfMeasure.ProductUnitsOfMeasureBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
List<ProductUnitsOfMeasureEAN> |
fetchInternationalArticleNumber()
Fetches the ProductUnitsOfMeasureEAN entities (one to many) associated with this entity.
|
static <T> ProductUnitsOfMeasureField<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) |
String |
getAlternativeUnit()
(Key Field) Constraints: Not nullable, Maximum length: 3
|
BigDecimal |
getCapacityUsage()
Constraints: Not nullable, Precision: 15, Scale: 3
|
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 |
getGlobalTradeItemNumber()
Constraints: Not nullable, Maximum length: 18
|
String |
getGlobalTradeItemNumberCategory()
Constraints: Not nullable, Maximum length: 2
|
BigDecimal |
getGrossWeight()
Constraints: Not nullable, Precision: 13, Scale: 3
|
io.vavr.control.Option<List<ProductUnitsOfMeasureEAN>> |
getInternationalArticleNumberIfPresent()
Retrieval of associated ProductUnitsOfMeasureEAN entities (one to many).
|
List<ProductUnitsOfMeasureEAN> |
getInternationalArticleNumberOrFetch()
Retrieval of associated ProductUnitsOfMeasureEAN entities (one to many).
|
protected Map<String,Object> |
getKey() |
String |
getLowerLevelPackagingUnit()
Constraints: Not nullable, Maximum length: 3
|
BigDecimal |
getMaterialVolume()
Constraints: Not nullable, Precision: 13, Scale: 3
|
Short |
getMaximumStackingFactor()
Constraints: none
|
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getProductMeasurementUnit()
Constraints: Not nullable, Maximum length: 3
|
BigDecimal |
getQuantityDenominator()
Constraints: Not nullable, Precision: 5, Scale: 0
|
BigDecimal |
getQuantityNumerator()
Constraints: Not nullable, Precision: 5, Scale: 0
|
BigDecimal |
getRemainingVolumeAfterNesting()
Constraints: Not nullable, Precision: 3, Scale: 0
|
Class<ProductUnitsOfMeasure> |
getType() |
BigDecimal |
getUnitSpecificProductHeight()
Constraints: Not nullable, Precision: 13, Scale: 3
|
BigDecimal |
getUnitSpecificProductLength()
Constraints: Not nullable, Precision: 13, Scale: 3
|
BigDecimal |
getUnitSpecificProductWidth()
Constraints: Not nullable, Precision: 13, Scale: 3
|
String |
getVolumeUnit()
Constraints: Not nullable, Maximum length: 3
|
String |
getWeightUnit()
Constraints: Not nullable, Maximum length: 3
|
int |
hashCode() |
void |
setAlternativeUnit(String alternativeUnit)
(Key Field) Constraints: Not nullable, Maximum length: 3
|
void |
setCapacityUsage(BigDecimal capacityUsage)
Constraints: Not nullable, Precision: 15, Scale: 3
|
void |
setGlobalTradeItemNumber(String globalTradeItemNumber)
Constraints: Not nullable, Maximum length: 18
|
void |
setGlobalTradeItemNumberCategory(String globalTradeItemNumberCategory)
Constraints: Not nullable, Maximum length: 2
|
void |
setGrossWeight(BigDecimal grossWeight)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setInternationalArticleNumber(List<ProductUnitsOfMeasureEAN> value)
Overwrites the list of associated ProductUnitsOfMeasureEAN entities for the loaded navigation property
to_InternationalArticleNumber.
|
void |
setLowerLevelPackagingUnit(String lowerLevelPackagingUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setMaterialVolume(BigDecimal materialVolume)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setMaximumStackingFactor(Short maximumStackingFactor)
Constraints: none
|
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setProductMeasurementUnit(String productMeasurementUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setQuantityDenominator(BigDecimal quantityDenominator)
Constraints: Not nullable, Precision: 5, Scale: 0
|
void |
setQuantityNumerator(BigDecimal quantityNumerator)
Constraints: Not nullable, Precision: 5, Scale: 0
|
void |
setRemainingVolumeAfterNesting(BigDecimal remainingVolumeAfterNesting)
Constraints: Not nullable, Precision: 3, Scale: 0
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setUnitSpecificProductHeight(BigDecimal unitSpecificProductHeight)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setUnitSpecificProductLength(BigDecimal unitSpecificProductLength)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setUnitSpecificProductWidth(BigDecimal unitSpecificProductWidth)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setVolumeUnit(String volumeUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setWeightUnit(String weightUnit)
Constraints: Not nullable, Maximum length: 3
|
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 ProductUnitsOfMeasureSelectable ALL_FIELDS
public static final ProductUnitsOfMeasureField<String> PRODUCT
public static final ProductUnitsOfMeasureField<String> ALTERNATIVE_UNIT
public static final ProductUnitsOfMeasureField<BigDecimal> QUANTITY_NUMERATOR
public static final ProductUnitsOfMeasureField<BigDecimal> QUANTITY_DENOMINATOR
public static final ProductUnitsOfMeasureField<BigDecimal> MATERIAL_VOLUME
public static final ProductUnitsOfMeasureField<String> VOLUME_UNIT
public static final ProductUnitsOfMeasureField<BigDecimal> GROSS_WEIGHT
public static final ProductUnitsOfMeasureField<String> WEIGHT_UNIT
public static final ProductUnitsOfMeasureField<String> GLOBAL_TRADE_ITEM_NUMBER
public static final ProductUnitsOfMeasureField<String> GLOBAL_TRADE_ITEM_NUMBER_CATEGORY
public static final ProductUnitsOfMeasureField<BigDecimal> UNIT_SPECIFIC_PRODUCT_LENGTH
public static final ProductUnitsOfMeasureField<BigDecimal> UNIT_SPECIFIC_PRODUCT_WIDTH
public static final ProductUnitsOfMeasureField<BigDecimal> UNIT_SPECIFIC_PRODUCT_HEIGHT
public static final ProductUnitsOfMeasureField<String> PRODUCT_MEASUREMENT_UNIT
public static final ProductUnitsOfMeasureField<String> LOWER_LEVEL_PACKAGING_UNIT
public static final ProductUnitsOfMeasureField<BigDecimal> REMAINING_VOLUME_AFTER_NESTING
public static final ProductUnitsOfMeasureField<Short> MAXIMUM_STACKING_FACTOR
public static final ProductUnitsOfMeasureField<BigDecimal> CAPACITY_USAGE
public static final ProductUnitsOfMeasureLink<ProductUnitsOfMeasureEAN> TO_INTERNATIONAL_ARTICLE_NUMBER
public ProductUnitsOfMeasure()
public ProductUnitsOfMeasure(@Nullable String product, @Nullable String alternativeUnit, @Nullable BigDecimal quantityNumerator, @Nullable BigDecimal quantityDenominator, @Nullable BigDecimal materialVolume, @Nullable String volumeUnit, @Nullable BigDecimal grossWeight, @Nullable String weightUnit, @Nullable String globalTradeItemNumber, @Nullable String globalTradeItemNumberCategory, @Nullable BigDecimal unitSpecificProductLength, @Nullable BigDecimal unitSpecificProductWidth, @Nullable BigDecimal unitSpecificProductHeight, @Nullable String productMeasurementUnit, @Nullable String lowerLevelPackagingUnit, @Nullable BigDecimal remainingVolumeAfterNesting, @Nullable Short maximumStackingFactor, @Nullable BigDecimal capacityUsage, List<ProductUnitsOfMeasureEAN> toInternationalArticleNumber)
@Nonnull public Class<ProductUnitsOfMeasure> getType()
getType
in class VdmObject<ProductUnitsOfMeasure>
public void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- Alphanumeric key uniquely identifying the material.public void setAlternativeUnit(@Nullable String alternativeUnit)
Original property name from the Odata EDM: AlternativeUnit
alternativeUnit
- Unit of measure in which quantities can be entered alternatively to the base unit of measure /
stockkeeping unit.public void setQuantityNumerator(@Nullable BigDecimal quantityNumerator)
Original property name from the Odata EDM: QuantityNumerator
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)Enter the number of units of the alternative unit of measure (denominator) that corresponds to the number of units of the base unit of measure (numerator).The alternative unit of measure is kilogram (kg). The base unit of measure is piece (PC). 5 kg correspond to 3 pieces.5 kg = 3 PC => 1 kg = 3/5 PCIn this case, the quotient is therefore 3/5 (the numerator being 3 and the denominator 5).You may enter only whole numbers in the numerator and denominator fields; that is, if 3.14 m² correspond to one piece, you must enter integer multiples (314 m² = 100 PC). In this case, the quotient is therefore 100/314 (the numerator being 100 and the denominator 314).
quantityNumerator
- Numerator of the quotient that specifies the ratio of the alternative unit of measure to the base unit
of measure.public void setQuantityDenominator(@Nullable BigDecimal quantityDenominator)
Original property name from the Odata EDM: QuantityDenominator
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)Enter the number of units of the alternative unit of measure (denominator) that corresponds to the number of units of the base unit of measure (numerator).The alternative unit of measure is kilogram (kg). The base unit of measure is piece (PC). 5 kg correspond to 3 pieces.5 kg = 3 PC => 1 kg = 3/5 PCIn this case, the quotient is therefore 3/5 (the numerator being 3 and the denominator 5).You may enter only whole numbers in the numerator and denominator fields; that is, if 3.14 m² correspond to one piece, you must enter integer multiples (314 m² = 100 PC). In this case, the quotient is therefore 100/314 (the numerator being 100 and the denominator 314).
quantityDenominator
- Denominator of the quotient that specifies the ratio of the alternative unit of measure to the base
unit of measure.public void setMaterialVolume(@Nullable BigDecimal materialVolume)
Original property name from the Odata EDM: MaterialVolume
The volume and its unit always refer to the base unit of measure.
materialVolume
- Space that the material occupies per unit of volume. The volume refers to the unit specified in the
"Volume unit" field.public void setVolumeUnit(@Nullable String volumeUnit)
Original property name from the Odata EDM: VolumeUnit
If you specify a volume, you have to enter the corresponding volume unit here.
volumeUnit
- Unit referring to the volume of the material.public void setGrossWeight(@Nullable BigDecimal grossWeight)
Original property name from the Odata EDM: GrossWeight
grossWeight
- Gross weight expressed in the unit of weight specified by you in the Unit of weight field.public void setWeightUnit(@Nullable String weightUnit)
Original property name from the Odata EDM: WeightUnit
If you specify a weight, you must enter the corresponding unit of weight here.
weightUnit
- Unit referring to the gross weight or net weight of the material.public void setGlobalTradeItemNumber(@Nullable String globalTradeItemNumber)
Original property name from the Odata EDM: GlobalTradeItemNumber
globalTradeItemNumber
- Glossary definitionpublic void setGlobalTradeItemNumberCategory(@Nullable String globalTradeItemNumberCategory)
Original property name from the Odata EDM: GlobalTradeItemNumberCategory
globalTradeItemNumberCategory
- Defines how the system determines an International Article Number (EAN) to be assigned internally, and
which check criteria (check digit, prefix, and so on) an EAN of this category must fulfil.public void setUnitSpecificProductLength(@Nullable BigDecimal unitSpecificProductLength)
Original property name from the Odata EDM: UnitSpecificProductLength
unitSpecificProductLength
- Length of the material or its packaging, measured in the unit of dimension.public void setUnitSpecificProductWidth(@Nullable BigDecimal unitSpecificProductWidth)
Original property name from the Odata EDM: UnitSpecificProductWidth
unitSpecificProductWidth
- Breadth of the material or its packaging, measured in the unit of dimension.public void setUnitSpecificProductHeight(@Nullable BigDecimal unitSpecificProductHeight)
Original property name from the Odata EDM: UnitSpecificProductHeight
unitSpecificProductHeight
- Height of the material or its packaging, measured in the unit of dimension.public void setProductMeasurementUnit(@Nullable String productMeasurementUnit)
Original property name from the Odata EDM: ProductMeasurementUnit
productMeasurementUnit
- Unit in which the dimensions of length, breadth, and height of a material or its packaging are
measured.public void setLowerLevelPackagingUnit(@Nullable String lowerLevelPackagingUnit)
Original property name from the Odata EDM: LowerLevelPackagingUnit
lowerLevelPackagingUnit
- Your base unit of measure is piece. 12 pieces fit into a box, and 10 boxes fit onto a pallet. In this
case, piece is the lower-level unit of measure with regard to box, and box is the lower-level unit of
measure with regard to pallet. Conversely, pallet is the higher-level unit of measure with regard to
box, and so on.public void setRemainingVolumeAfterNesting(@Nullable BigDecimal remainingVolumeAfterNesting)
Original property name from the Odata EDM: RemainingVolumeAfterNesting
For example, if you place a cup on another cup, the volume of the first cup remains the same. However, since part of the second cup disappears into the first cup, the volume of the second cup is reduced.This data element describes the remaining volume of the first cup as a percentage of the 'normal' volume.
remainingVolumeAfterNesting
- Describes the remaining volume in percent when two materials are stacked inside each other.public void setMaximumStackingFactor(@Nullable Short maximumStackingFactor)
Original property name from the Odata EDM: MaximumStackingFactor
maximumStackingFactor
- Specifies the allowed stacking factor. You can use the maximum stacking factor, for example, to
specify how many pieces of a material, or how many crates can be placed on top of each other. The
factor is quantity-dependent.public void setCapacityUsage(@Nullable BigDecimal capacityUsage)
Original property name from the Odata EDM: CapacityUsage
capacityUsage
- Capacity Usageprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ProductUnitsOfMeasure>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProductUnitsOfMeasure>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProductUnitsOfMeasure>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProductUnitsOfMeasure>
@Nonnull public static <T> ProductUnitsOfMeasureField<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> ProductUnitsOfMeasureField<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<ProductUnitsOfMeasure>
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<ProductUnitsOfMeasure>
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<ProductUnitsOfMeasure>
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<ProductUnitsOfMeasure>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<ProductUnitsOfMeasure>
@Nonnull public List<ProductUnitsOfMeasureEAN> fetchInternationalArticleNumber() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
Please note: This method will not cache or persist the query results.
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 List<ProductUnitsOfMeasureEAN> getInternationalArticleNumberOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_InternationalArticleNumber of a queried ProductUnitsOfMeasure 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<List<ProductUnitsOfMeasureEAN>> getInternationalArticleNumberIfPresent()
If the navigation property for an entity ProductUnitsOfMeasure 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 setInternationalArticleNumber(@Nonnull List<ProductUnitsOfMeasureEAN> value)
If the navigation property to_InternationalArticleNumber of a queried ProductUnitsOfMeasure 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.
value
- List of ProductUnitsOfMeasureEAN entities.public void addInternationalArticleNumber(ProductUnitsOfMeasureEAN... entity)
If the navigation property to_InternationalArticleNumber of a queried ProductUnitsOfMeasure 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.
entity
- Array of ProductUnitsOfMeasureEAN entities.public static ProductUnitsOfMeasure.ProductUnitsOfMeasureBuilder builder()
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getAlternativeUnit()
Original property name from the Odata EDM: AlternativeUnit
@Nullable public BigDecimal getQuantityNumerator()
Original property name from the Odata EDM: QuantityNumerator
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)Enter the number of units of the alternative unit of measure (denominator) that corresponds to the number of units of the base unit of measure (numerator).The alternative unit of measure is kilogram (kg). The base unit of measure is piece (PC). 5 kg correspond to 3 pieces.5 kg = 3 PC => 1 kg = 3/5 PCIn this case, the quotient is therefore 3/5 (the numerator being 3 and the denominator 5).You may enter only whole numbers in the numerator and denominator fields; that is, if 3.14 m² correspond to one piece, you must enter integer multiples (314 m² = 100 PC). In this case, the quotient is therefore 100/314 (the numerator being 100 and the denominator 314).
@Nullable public BigDecimal getQuantityDenominator()
Original property name from the Odata EDM: QuantityDenominator
To convert a quantity, whose unit of measure is not the same as the base unit of measure, into the base unit of measure, the system requires a quotient:Quantity (in alternative unit of measure) = quotient * quantity (in base unit of measure)Enter the number of units of the alternative unit of measure (denominator) that corresponds to the number of units of the base unit of measure (numerator).The alternative unit of measure is kilogram (kg). The base unit of measure is piece (PC). 5 kg correspond to 3 pieces.5 kg = 3 PC => 1 kg = 3/5 PCIn this case, the quotient is therefore 3/5 (the numerator being 3 and the denominator 5).You may enter only whole numbers in the numerator and denominator fields; that is, if 3.14 m² correspond to one piece, you must enter integer multiples (314 m² = 100 PC). In this case, the quotient is therefore 100/314 (the numerator being 100 and the denominator 314).
@Nullable public BigDecimal getMaterialVolume()
Original property name from the Odata EDM: MaterialVolume
The volume and its unit always refer to the base unit of measure.
@Nullable public String getVolumeUnit()
Original property name from the Odata EDM: VolumeUnit
If you specify a volume, you have to enter the corresponding volume unit here.
@Nullable public BigDecimal getGrossWeight()
Original property name from the Odata EDM: GrossWeight
@Nullable public String getWeightUnit()
Original property name from the Odata EDM: WeightUnit
If you specify a weight, you must enter the corresponding unit of weight here.
@Nullable public String getGlobalTradeItemNumber()
Original property name from the Odata EDM: GlobalTradeItemNumber
@Nullable public String getGlobalTradeItemNumberCategory()
Original property name from the Odata EDM: GlobalTradeItemNumberCategory
@Nullable public BigDecimal getUnitSpecificProductLength()
Original property name from the Odata EDM: UnitSpecificProductLength
@Nullable public BigDecimal getUnitSpecificProductWidth()
Original property name from the Odata EDM: UnitSpecificProductWidth
@Nullable public BigDecimal getUnitSpecificProductHeight()
Original property name from the Odata EDM: UnitSpecificProductHeight
@Nullable public String getProductMeasurementUnit()
Original property name from the Odata EDM: ProductMeasurementUnit
@Nullable public String getLowerLevelPackagingUnit()
Original property name from the Odata EDM: LowerLevelPackagingUnit
@Nullable public BigDecimal getRemainingVolumeAfterNesting()
Original property name from the Odata EDM: RemainingVolumeAfterNesting
For example, if you place a cup on another cup, the volume of the first cup remains the same. However, since part of the second cup disappears into the first cup, the volume of the second cup is reduced.This data element describes the remaining volume of the first cup as a percentage of the 'normal' volume.
@Nullable public Short getMaximumStackingFactor()
Original property name from the Odata EDM: MaximumStackingFactor
@Nullable public BigDecimal getCapacityUsage()
Original property name from the Odata EDM: CapacityUsage
public String toString()
toString
in class VdmObject<ProductUnitsOfMeasure>
public boolean equals(Object o)
equals
in class VdmObject<ProductUnitsOfMeasure>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ProductUnitsOfMeasure>
public int hashCode()
hashCode
in class VdmObject<ProductUnitsOfMeasure>
Copyright © 2020 SAP SE. All rights reserved.