public class MatlStkInAcctMod extends VdmEntity<MatlStkInAcctMod>
Original entity name from the Odata EDM: A_MatlStkInAcctModType
Modifier and Type | Class and Description |
---|---|
static class |
MatlStkInAcctMod.MatlStkInAcctModBuilder
Helper class to allow for fluent creation of MatlStkInAcctMod instances.
|
Modifier and Type | Field and Description |
---|---|
static MatlStkInAcctModSelectable |
ALL_FIELDS
Selector for all available fields of MatlStkInAcctMod.
|
static MatlStkInAcctModField<String> |
BATCH
Use with available fluent helpers to apply the Batch field to query operations.
|
static MatlStkInAcctModField<String> |
CUSTOMER
Use with available fluent helpers to apply the Customer field to query operations.
|
static MatlStkInAcctModField<String> |
INVENTORY_SPECIAL_STOCK_TYPE
Use with available fluent helpers to apply the InventorySpecialStockType field to query operations.
|
static MatlStkInAcctModField<String> |
INVENTORY_STOCK_TYPE
Use with available fluent helpers to apply the InventoryStockType field to query operations.
|
static MatlStkInAcctModField<String> |
MATERIAL
Use with available fluent helpers to apply the Material field to query operations.
|
static MatlStkInAcctModField<String> |
MATERIAL_BASE_UNIT
Use with available fluent helpers to apply the MaterialBaseUnit field to query operations.
|
static MatlStkInAcctModField<BigDecimal> |
MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT
Use with available fluent helpers to apply the MatlWrhsStkQtyInMatlBaseUnit field to query operations.
|
static MatlStkInAcctModField<String> |
PLANT
Use with available fluent helpers to apply the Plant field to query operations.
|
static MatlStkInAcctModField<String> |
SD_DOCUMENT
Use with available fluent helpers to apply the SDDocument field to query operations.
|
static MatlStkInAcctModField<String> |
SD_DOCUMENT_ITEM
Use with available fluent helpers to apply the SDDocumentItem field to query operations.
|
static MatlStkInAcctModField<String> |
STORAGE_LOCATION
Use with available fluent helpers to apply the StorageLocation field to query operations.
|
static MatlStkInAcctModField<String> |
SUPPLIER
Use with available fluent helpers to apply the Supplier field to query operations.
|
static MatlStkInAcctModOneToOneLink<MaterialStock> |
TO_MATERIAL_STOCK
Use with available fluent helpers to apply the to_MaterialStock navigation property to query operations.
|
static MatlStkInAcctModField<String> |
WBS_ELEMENT_INTERNAL_ID
Use with available fluent helpers to apply the WBSElementInternalID field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
MatlStkInAcctMod() |
MatlStkInAcctMod(String material,
String plant,
String storageLocation,
String batch,
String supplier,
String customer,
String wBSElementInternalID,
String sDDocument,
String sDDocumentItem,
String inventorySpecialStockType,
String inventoryStockType,
String materialBaseUnit,
BigDecimal matlWrhsStkQtyInMatlBaseUnit,
MaterialStock toMaterialStock) |
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 MatlStkInAcctMod.MatlStkInAcctModBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
MaterialStock |
fetchMaterialStock()
Fetches the MaterialStock entity (one to one) associated with this entity.
|
static <T> MatlStkInAcctModField<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 |
getBatch()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getCustomer()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
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 |
getInventorySpecialStockType()
(Key Field) Constraints: Not nullable, Maximum length: 1
|
String |
getInventoryStockType()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
protected Map<String,Object> |
getKey() |
String |
getMaterial()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getMaterialBaseUnit()
Constraints: Not nullable, Maximum length: 3
|
io.vavr.control.Option<MaterialStock> |
getMaterialStockIfPresent()
Retrieval of associated MaterialStock entity (one to one).
|
MaterialStock |
getMaterialStockOrFetch()
Retrieval of associated MaterialStock entity (one to one).
|
BigDecimal |
getMatlWrhsStkQtyInMatlBaseUnit()
Constraints: Not nullable, Precision: 31, Scale: 14
|
String |
getPlant()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getSDDocument()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
String |
getSDDocumentItem()
(Key Field) Constraints: Not nullable, Maximum length: 6
|
String |
getStorageLocation()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getSupplier()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
Class<MatlStkInAcctMod> |
getType() |
String |
getWBSElementInternalID()
(Key Field) Constraints: Not nullable, Maximum length: 24
|
int |
hashCode() |
void |
setBatch(String batch)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setCustomer(String customer)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setInventorySpecialStockType(String inventorySpecialStockType)
(Key Field) Constraints: Not nullable, Maximum length: 1
|
void |
setInventoryStockType(String inventoryStockType)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setMaterial(String material)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setMaterialBaseUnit(String materialBaseUnit)
Constraints: Not nullable, Maximum length: 3
|
void |
setMaterialStock(MaterialStock value)
Overwrites the associated MaterialStock entity for the loaded navigation property to_MaterialStock.
|
void |
setMatlWrhsStkQtyInMatlBaseUnit(BigDecimal matlWrhsStkQtyInMatlBaseUnit)
Constraints: Not nullable, Precision: 31, Scale: 14
|
void |
setPlant(String plant)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setSDDocument(String sDDocument)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setSDDocumentItem(String sDDocumentItem)
(Key Field) Constraints: Not nullable, Maximum length: 6
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setStorageLocation(String storageLocation)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setSupplier(String supplier)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
void |
setWBSElementInternalID(String wBSElementInternalID)
(Key Field) Constraints: Not nullable, Maximum length: 24
|
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 MatlStkInAcctModSelectable ALL_FIELDS
public static final MatlStkInAcctModField<String> MATERIAL
public static final MatlStkInAcctModField<String> PLANT
public static final MatlStkInAcctModField<String> STORAGE_LOCATION
public static final MatlStkInAcctModField<String> BATCH
public static final MatlStkInAcctModField<String> SUPPLIER
public static final MatlStkInAcctModField<String> CUSTOMER
public static final MatlStkInAcctModField<String> WBS_ELEMENT_INTERNAL_ID
public static final MatlStkInAcctModField<String> SD_DOCUMENT
public static final MatlStkInAcctModField<String> SD_DOCUMENT_ITEM
public static final MatlStkInAcctModField<String> INVENTORY_SPECIAL_STOCK_TYPE
public static final MatlStkInAcctModField<String> INVENTORY_STOCK_TYPE
public static final MatlStkInAcctModField<String> MATERIAL_BASE_UNIT
public static final MatlStkInAcctModField<BigDecimal> MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT
public static final MatlStkInAcctModOneToOneLink<MaterialStock> TO_MATERIAL_STOCK
public MatlStkInAcctMod()
public MatlStkInAcctMod(@Nullable String material, @Nullable String plant, @Nullable String storageLocation, @Nullable String batch, @Nullable String supplier, @Nullable String customer, @Nullable String wBSElementInternalID, @Nullable String sDDocument, @Nullable String sDDocumentItem, @Nullable String inventorySpecialStockType, @Nullable String inventoryStockType, @Nullable String materialBaseUnit, @Nullable BigDecimal matlWrhsStkQtyInMatlBaseUnit, @Nullable MaterialStock toMaterialStock)
@Nonnull public Class<MatlStkInAcctMod> getType()
getType
in class VdmObject<MatlStkInAcctMod>
public void setMaterial(@Nullable String material)
Original property name from the Odata EDM: Material
For inventory management on a material-exact basis, this material is the same as the actual material. In the case of value-based inventory management, this material can differ from the actual material.
material
- Material in respect of which the stock is managed.public void setPlant(@Nullable String plant)
Original property name from the Odata EDM: Plant
plant
- Key uniquely identifying a plant.public void setStorageLocation(@Nullable String storageLocation)
Original property name from the Odata EDM: StorageLocation
storageLocation
- Number of the storage location in which the material is stored. A plant may contain one or more
storage locations.public void setBatch(@Nullable String batch)
Original property name from the Odata EDM: Batch
NoteThe system determines the stock types on the basis of stock identifiers.
batch
- Assigns a material that is manufactured in batches or production lots to a specific batch.public void setSupplier(@Nullable String supplier)
Original property name from the Odata EDM: Supplier
NoteThe system determines the stock on the basis of stock identifiers.
supplier
- Specifies an alphanumeric key that uniquely identifies the supplier in the SAP system.public void setCustomer(@Nullable String customer)
Original property name from the Odata EDM: Customer
NoteThe system determines the stock on the basis of stock identifiers.
customer
- Gives an alphanumeric key, which clearly identifies the customer or supplier in the SAP system.public void setWBSElementInternalID(@Nullable String wBSElementInternalID)
Original property name from the Odata EDM: WBSElementInternalID
wBSElementInternalID
- Key that identifies the WBS element that is assigned to a sales order stockpublic void setSDDocument(@Nullable String sDDocument)
Original property name from the Odata EDM: SDDocument
sDDocument
- Uniquely identifies a sales order.public void setSDDocumentItem(@Nullable String sDDocumentItem)
Original property name from the Odata EDM: SDDocumentItem
sDDocumentItem
- Uniquely identifies an item in a sales order.public void setInventorySpecialStockType(@Nullable String inventorySpecialStockType)
Original property name from the Odata EDM: InventorySpecialStockType
inventorySpecialStockType
- Special Stock Typepublic void setInventoryStockType(@Nullable String inventoryStockType)
Original property name from the Odata EDM: InventoryStockType
NoteThe system determines the stock on the basis of stock identifiers.The following keys are possible for this field:01: Unrestricted-Use Stock02: Stock in Quality Inspection03: Returns04: Stock Transfer (Storage Location)05: Stock Transfer (Plant)06: Stock in Transit07: Blocked Stock08: Restricted-Use Stock09: Tied Empties10: Valuated Goods Receipt Blocked Stock
inventoryStockType
- Unique stock type that identifies the purpose of the stock.public void setMaterialBaseUnit(@Nullable String materialBaseUnit)
Original property name from the Odata EDM: MaterialBaseUnit
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.
materialBaseUnit
- 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.public void setMatlWrhsStkQtyInMatlBaseUnit(@Nullable BigDecimal matlWrhsStkQtyInMatlBaseUnit)
Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
matlWrhsStkQtyInMatlBaseUnit
- The matlWrhsStkQtyInMatlBaseUnit to set.protected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<MatlStkInAcctMod>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<MatlStkInAcctMod>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<MatlStkInAcctMod>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<MatlStkInAcctMod>
@Nonnull public static <T> MatlStkInAcctModField<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> MatlStkInAcctModField<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<MatlStkInAcctMod>
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<MatlStkInAcctMod>
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<MatlStkInAcctMod>
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<MatlStkInAcctMod>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)@Nonnull protected Map<String,Object> toMapOfNavigationProperties()
toMapOfNavigationProperties
in class VdmObject<MatlStkInAcctMod>
@Nullable public MaterialStock fetchMaterialStock() 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 MaterialStock getMaterialStockOrFetch() throws com.sap.cloud.sdk.odatav2.connectivity.ODataException
If the navigation property to_MaterialStock of a queried MatlStkInAcctMod 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<MaterialStock> getMaterialStockIfPresent()
If the navigation property for an entity MatlStkInAcctMod 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 setMaterialStock(MaterialStock value)
value
- New MaterialStock entity.@Nonnull public static MatlStkInAcctMod.MatlStkInAcctModBuilder builder()
@Nullable public String getMaterial()
Original property name from the Odata EDM: Material
For inventory management on a material-exact basis, this material is the same as the actual material. In the case of value-based inventory management, this material can differ from the actual material.
@Nullable public String getPlant()
Original property name from the Odata EDM: Plant
@Nullable public String getStorageLocation()
Original property name from the Odata EDM: StorageLocation
@Nullable public String getBatch()
Original property name from the Odata EDM: Batch
NoteThe system determines the stock types on the basis of stock identifiers.
@Nullable public String getSupplier()
Original property name from the Odata EDM: Supplier
NoteThe system determines the stock on the basis of stock identifiers.
@Nullable public String getCustomer()
Original property name from the Odata EDM: Customer
NoteThe system determines the stock on the basis of stock identifiers.
@Nullable public String getWBSElementInternalID()
Original property name from the Odata EDM: WBSElementInternalID
@Nullable public String getSDDocument()
Original property name from the Odata EDM: SDDocument
@Nullable public String getSDDocumentItem()
Original property name from the Odata EDM: SDDocumentItem
@Nullable public String getInventorySpecialStockType()
Original property name from the Odata EDM: InventorySpecialStockType
@Nullable public String getInventoryStockType()
Original property name from the Odata EDM: InventoryStockType
NoteThe system determines the stock on the basis of stock identifiers.The following keys are possible for this field:01: Unrestricted-Use Stock02: Stock in Quality Inspection03: Returns04: Stock Transfer (Storage Location)05: Stock Transfer (Plant)06: Stock in Transit07: Blocked Stock08: Restricted-Use Stock09: Tied Empties10: Valuated Goods Receipt Blocked Stock
@Nullable public String getMaterialBaseUnit()
Original property name from the Odata EDM: MaterialBaseUnit
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.
@Nullable public BigDecimal getMatlWrhsStkQtyInMatlBaseUnit()
Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit
@Nonnull public String toString()
toString
in class VdmObject<MatlStkInAcctMod>
public boolean equals(@Nullable Object o)
equals
in class VdmObject<MatlStkInAcctMod>
protected boolean canEqual(@Nullable Object other)
canEqual
in class VdmObject<MatlStkInAcctMod>
public int hashCode()
hashCode
in class VdmObject<MatlStkInAcctMod>
Copyright © 2021 SAP SE. All rights reserved.