public class ProductStorage extends VdmEntity<ProductStorage>
Original entity name from the Odata EDM: A_ProductStorageType
Modifier and Type | Class and Description |
---|---|
static class |
ProductStorage.ProductStorageBuilder |
Modifier and Type | Field and Description |
---|---|
static ProductStorageSelectable |
ALL_FIELDS
Selector for all available fields of ProductStorage.
|
static ProductStorageField<String> |
BASE_UNIT
Use with available fluent helpers to apply the BaseUnit field to query operations.
|
static ProductStorageField<String> |
EXPIRATION_DATE
Use with available fluent helpers to apply the ExpirationDate field to query operations.
|
static ProductStorageField<String> |
HAZARDOUS_MATERIAL_NUMBER
Use with available fluent helpers to apply the HazardousMaterialNumber field to query operations.
|
static ProductStorageField<String> |
LABEL_FORM
Use with available fluent helpers to apply the LabelForm field to query operations.
|
static ProductStorageField<String> |
LABEL_TYPE
Use with available fluent helpers to apply the LabelType field to query operations.
|
static ProductStorageField<BigDecimal> |
MIN_REMAINING_SHELF_LIFE
Use with available fluent helpers to apply the MinRemainingShelfLife field to query operations.
|
static ProductStorageField<BigDecimal> |
NMBR_OF_GR_OR_GI_SLIPS_TO_PRINT_QTY
Use with available fluent helpers to apply the NmbrOfGROrGISlipsToPrintQty field to query operations.
|
static ProductStorageField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static ProductStorageField<String> |
STORAGE_CONDITIONS
Use with available fluent helpers to apply the StorageConditions field to query operations.
|
static ProductStorageField<String> |
TEMPERATURE_CONDITION_IND
Use with available fluent helpers to apply the TemperatureConditionInd field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProductStorage() |
ProductStorage(String product,
String storageConditions,
String temperatureConditionInd,
String hazardousMaterialNumber,
BigDecimal nmbrOfGROrGISlipsToPrintQty,
String labelType,
String labelForm,
BigDecimal minRemainingShelfLife,
String expirationDate,
String baseUnit) |
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 ProductStorage.ProductStorageBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> ProductStorageField<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 |
getBaseUnit()
Constraints: Not nullable, Maximum length: 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 |
getExpirationDate()
Constraints: Not nullable, Maximum length: 1
|
String |
getHazardousMaterialNumber()
Constraints: Not nullable, Maximum length: 40
|
protected Map<String,Object> |
getKey() |
String |
getLabelForm()
Constraints: Not nullable, Maximum length: 2
|
String |
getLabelType()
Constraints: Not nullable, Maximum length: 2
|
BigDecimal |
getMinRemainingShelfLife()
Constraints: Not nullable, Precision: 4, Scale: 0
|
BigDecimal |
getNmbrOfGROrGISlipsToPrintQty()
Constraints: Not nullable, Precision: 13, Scale: 3
|
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getStorageConditions()
Constraints: Not nullable, Maximum length: 2
|
String |
getTemperatureConditionInd()
Constraints: Not nullable, Maximum length: 2
|
Class<ProductStorage> |
getType() |
int |
hashCode() |
void |
setBaseUnit(String baseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setExpirationDate(String expirationDate)
Constraints: Not nullable, Maximum length: 1
|
void |
setHazardousMaterialNumber(String hazardousMaterialNumber)
Constraints: Not nullable, Maximum length: 40
|
void |
setLabelForm(String labelForm)
Constraints: Not nullable, Maximum length: 2
|
void |
setLabelType(String labelType)
Constraints: Not nullable, Maximum length: 2
|
void |
setMinRemainingShelfLife(BigDecimal minRemainingShelfLife)
Constraints: Not nullable, Precision: 4, Scale: 0
|
void |
setNmbrOfGROrGISlipsToPrintQty(BigDecimal nmbrOfGROrGISlipsToPrintQty)
Constraints: Not nullable, Precision: 13, Scale: 3
|
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setStorageConditions(String storageConditions)
Constraints: Not nullable, Maximum length: 2
|
void |
setTemperatureConditionInd(String temperatureConditionInd)
Constraints: Not nullable, Maximum length: 2
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final ProductStorageSelectable ALL_FIELDS
public static final ProductStorageField<String> PRODUCT
public static final ProductStorageField<String> STORAGE_CONDITIONS
public static final ProductStorageField<String> TEMPERATURE_CONDITION_IND
public static final ProductStorageField<String> HAZARDOUS_MATERIAL_NUMBER
public static final ProductStorageField<BigDecimal> NMBR_OF_GR_OR_GI_SLIPS_TO_PRINT_QTY
public static final ProductStorageField<String> LABEL_TYPE
public static final ProductStorageField<String> LABEL_FORM
public static final ProductStorageField<BigDecimal> MIN_REMAINING_SHELF_LIFE
public static final ProductStorageField<String> EXPIRATION_DATE
public static final ProductStorageField<String> BASE_UNIT
public ProductStorage()
public ProductStorage(@Nullable String product, @Nullable String storageConditions, @Nullable String temperatureConditionInd, @Nullable String hazardousMaterialNumber, @Nullable BigDecimal nmbrOfGROrGISlipsToPrintQty, @Nullable String labelType, @Nullable String labelForm, @Nullable BigDecimal minRemainingShelfLife, @Nullable String expirationDate, @Nullable String baseUnit)
@Nonnull public Class<ProductStorage> getType()
getType
in class VdmObject<ProductStorage>
public void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- Alphanumeric key uniquely identifying the material.public void setStorageConditions(@Nullable String storageConditions)
Original property name from the Odata EDM: StorageConditions
storageConditions
- Indicates what storage conditions are required for the material.public void setTemperatureConditionInd(@Nullable String temperatureConditionInd)
Original property name from the Odata EDM: TemperatureConditionInd
temperatureConditionInd
- Indicates the temperature conditions in which the material should be stored.public void setHazardousMaterialNumber(@Nullable String hazardousMaterialNumber)
Original property name from the Odata EDM: HazardousMaterialNumber
The hazardous material number indicates that the material is dangerous, making special precautions necessary for its storage and shipment.You can enter region-specific hazardous material data or dangerous goods data separately under one hazardous material number.
hazardousMaterialNumber
- Number that identifies the material as a hazardous material or as dangerous goods and assigns
hazardous material data or dangerous goods data to it.public void setNmbrOfGROrGISlipsToPrintQty(@Nullable BigDecimal nmbrOfGROrGISlipsToPrintQty)
Original property name from the Odata EDM: NmbrOfGROrGISlipsToPrintQty
In the case of a goods receipt with reference to a purchase order or production order, the system automatically calculates the number of GR/GI slips to be printed for the material document item as a quotient from the goods receipt quantity and the quantity defined here.The value determined is always rounded up to the next higher whole number.If you enter nothing in this field, the material document item is only printed on one goods receipt/issue slip.
nmbrOfGROrGISlipsToPrintQty
- Specifies which quantity of the material, in the unit of entry, usually constitutes a pallet load.public void setLabelType(@Nullable String labelType)
Original property name from the Odata EDM: LabelType
labelType
- Determines the way labels are created. The label type specifies, for example, whether labels are
preprinted by the supplier or created on a central printer.public void setLabelForm(@Nullable String labelForm)
Original property name from the Odata EDM: LabelForm
labelForm
- Determines the size and layout of the label. The label form specifies, for example, whether the label
is an adhesive or a pin-on label.public void setMinRemainingShelfLife(@Nullable BigDecimal minRemainingShelfLife)
Original property name from the Odata EDM: MinRemainingShelfLife
The period (day, week, month, year) depends on the entry in the Period indicator field.
minRemainingShelfLife
- Minimum amount of time for which the material must keep upon goods receipt for the goods receipt to be
accepted by the system.public void setExpirationDate(@Nullable String expirationDate)
Original property name from the Odata EDM: ExpirationDate
In batch management, the shelf life expiration date or expiration date can be specified. You select the date type you want by using this indicator.
expirationDate
- Indicator for the shelf life expiration date or expiration date.public void setBaseUnit(@Nullable String baseUnit)
Original property name from the Odata EDM: BaseUnit
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following:The base unit of measure is the unit satisfying the highest necessary requirement for precision.The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...).Inventory ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified.
baseUnit
- Unit of measure in which stocks of the material are managed. The system converts all the quantities
you enter in other units of measure (alternative units of measure) to the base unit of measure.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ProductStorage>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProductStorage>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProductStorage>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProductStorage>
@Nonnull public static <T> ProductStorageField<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> ProductStorageField<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<ProductStorage>
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<ProductStorage>
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<ProductStorage>
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<ProductStorage>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)public static ProductStorage.ProductStorageBuilder builder()
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getStorageConditions()
Original property name from the Odata EDM: StorageConditions
@Nullable public String getTemperatureConditionInd()
Original property name from the Odata EDM: TemperatureConditionInd
@Nullable public String getHazardousMaterialNumber()
Original property name from the Odata EDM: HazardousMaterialNumber
The hazardous material number indicates that the material is dangerous, making special precautions necessary for its storage and shipment.You can enter region-specific hazardous material data or dangerous goods data separately under one hazardous material number.
@Nullable public BigDecimal getNmbrOfGROrGISlipsToPrintQty()
Original property name from the Odata EDM: NmbrOfGROrGISlipsToPrintQty
In the case of a goods receipt with reference to a purchase order or production order, the system automatically calculates the number of GR/GI slips to be printed for the material document item as a quotient from the goods receipt quantity and the quantity defined here.The value determined is always rounded up to the next higher whole number.If you enter nothing in this field, the material document item is only printed on one goods receipt/issue slip.
@Nullable public String getLabelType()
Original property name from the Odata EDM: LabelType
@Nullable public String getLabelForm()
Original property name from the Odata EDM: LabelForm
@Nullable public BigDecimal getMinRemainingShelfLife()
Original property name from the Odata EDM: MinRemainingShelfLife
The period (day, week, month, year) depends on the entry in the Period indicator field.
@Nullable public String getExpirationDate()
Original property name from the Odata EDM: ExpirationDate
In batch management, the shelf life expiration date or expiration date can be specified. You select the date type you want by using this indicator.
@Nullable public String getBaseUnit()
Original property name from the Odata EDM: BaseUnit
You define the base unit of measure and also alternative units of measure and their conversion factors in the material master record.Since all data is updated in the base unit of measure, your entry is particularly important for the conversion of alternative units of measure. A quantity in the alternative unit of measure can only be shown precisely if its value can be shown with the decimal places available. To ensure this, please note the following:The base unit of measure is the unit satisfying the highest necessary requirement for precision.The conversion of alternative units of measure to the base unit should result in simple decimal fractions (not, for example, 1/3 = 0.333...).Inventory ManagementIn Inventory Management, the base unit of measure is the same as the stockkeeping unit.ServicesServices have units of measure of their own, including the following:Service unitUnit of measure at the higher item level. The precise quantities of the individual services are each at the detailed service line level.BlanketUnit of measure at service line level for services to be provided once only, and for which no precise quantities can or are to be specified.
public String toString()
toString
in class VdmObject<ProductStorage>
public boolean equals(Object o)
equals
in class VdmObject<ProductStorage>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ProductStorage>
public int hashCode()
hashCode
in class VdmObject<ProductStorage>
Copyright © 2020 SAP SE. All rights reserved.