java.lang.Object
com.sap.cloud.sdk.datamodel.odata.helper.VdmObject<EntityT>
com.sap.cloud.sdk.datamodel.odata.helper.VdmEntity<MatlStkInAcctMod>
com.sap.cloud.sdk.s4hana.datamodel.odata.namespaces.materialstockdisplay.MatlStkInAcctMod

public class MatlStkInAcctMod extends VdmEntity<MatlStkInAcctMod>
Material Stock

Original entity name from the Odata EDM: A_MatlStkInAcctModType

  • Field Details

    • ALL_FIELDS

      public static final MatlStkInAcctModSelectable ALL_FIELDS
      Selector for all available fields of MatlStkInAcctMod.
    • MATERIAL

      public static final MatlStkInAcctModField<String> MATERIAL
      Use with available fluent helpers to apply the Material field to query operations.
    • PLANT

      public static final MatlStkInAcctModField<String> PLANT
      Use with available fluent helpers to apply the Plant field to query operations.
    • STORAGE_LOCATION

      public static final MatlStkInAcctModField<String> STORAGE_LOCATION
      Use with available fluent helpers to apply the StorageLocation field to query operations.
    • BATCH

      public static final MatlStkInAcctModField<String> BATCH
      Use with available fluent helpers to apply the Batch field to query operations.
    • SUPPLIER

      public static final MatlStkInAcctModField<String> SUPPLIER
      Use with available fluent helpers to apply the Supplier field to query operations.
    • CUSTOMER

      public static final MatlStkInAcctModField<String> CUSTOMER
      Use with available fluent helpers to apply the Customer field to query operations.
    • WBS_ELEMENT_INTERNAL_ID

      public static final MatlStkInAcctModField<String> WBS_ELEMENT_INTERNAL_ID
      Use with available fluent helpers to apply the WBSElementInternalID field to query operations.
    • SD_DOCUMENT

      public static final MatlStkInAcctModField<String> SD_DOCUMENT
      Use with available fluent helpers to apply the SDDocument field to query operations.
    • SD_DOCUMENT_ITEM

      public static final MatlStkInAcctModField<String> SD_DOCUMENT_ITEM
      Use with available fluent helpers to apply the SDDocumentItem field to query operations.
    • INVENTORY_SPECIAL_STOCK_TYPE

      public static final MatlStkInAcctModField<String> INVENTORY_SPECIAL_STOCK_TYPE
      Use with available fluent helpers to apply the InventorySpecialStockType field to query operations.
    • INVENTORY_STOCK_TYPE

      public static final MatlStkInAcctModField<String> INVENTORY_STOCK_TYPE
      Use with available fluent helpers to apply the InventoryStockType field to query operations.
    • MATERIAL_BASE_UNIT

      public static final MatlStkInAcctModField<String> MATERIAL_BASE_UNIT
      Use with available fluent helpers to apply the MaterialBaseUnit field to query operations.
    • MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT

      public static final MatlStkInAcctModField<BigDecimal> MATL_WRHS_STK_QTY_IN_MATL_BASE_UNIT
      Use with available fluent helpers to apply the MatlWrhsStkQtyInMatlBaseUnit field to query operations.
    • TO_MATERIAL_STOCK

      public static final MatlStkInAcctModOneToOneLink<MaterialStock> TO_MATERIAL_STOCK
      Use with available fluent helpers to apply the to_MaterialStock navigation property to query operations.
  • Constructor Details

    • MatlStkInAcctMod

      public MatlStkInAcctMod()
    • 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)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material in Respect of Which Stock is Managed
    • setPlant

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

      Original property name from the Odata EDM: Plant

      Parameters:
      plant - Plant
    • setStorageLocation

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

      Original property name from the Odata EDM: StorageLocation

      Parameters:
      storageLocation - Storage Location
    • setBatch

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

      Original property name from the Odata EDM: Batch

      Parameters:
      batch - Batch Number (Stock Identifier)
    • setSupplier

      public void setSupplier(@Nullable String supplier)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Parameters:
      supplier - Supplier for Special Stock
    • setCustomer

      public void setCustomer(@Nullable String customer)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Parameters:
      customer - Customer for Special Stock
    • setWBSElementInternalID

      public void setWBSElementInternalID(@Nullable String wBSElementInternalID)
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElementInternalID

      Parameters:
      wBSElementInternalID - Valuated Sales Order Stock WBS Element
    • setSDDocument

      public void setSDDocument(@Nullable String sDDocument)
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SDDocument

      Parameters:
      sDDocument - Sales order number of valuated sales order stock
    • setSDDocumentItem

      public void setSDDocumentItem(@Nullable String sDDocumentItem)
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SDDocumentItem

      Parameters:
      sDDocumentItem - Sales Order Item of Valuated Sales Order Stock
    • setInventorySpecialStockType

      public void setInventorySpecialStockType(@Nullable String inventorySpecialStockType)
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InventorySpecialStockType

      Parameters:
      inventorySpecialStockType - Special Stock Type
    • setInventoryStockType

      public void setInventoryStockType(@Nullable String inventoryStockType)
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InventoryStockType

      Parameters:
      inventoryStockType - Stock Type of Goods Movement (Stock Identifier)
    • setMaterialBaseUnit

      public void setMaterialBaseUnit(@Nullable String materialBaseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: MaterialBaseUnit

      Parameters:
      materialBaseUnit - Base Unit of Measure
    • setMatlWrhsStkQtyInMatlBaseUnit

      public void setMatlWrhsStkQtyInMatlBaseUnit(@Nullable BigDecimal matlWrhsStkQtyInMatlBaseUnit)
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit

      Parameters:
      matlWrhsStkQtyInMatlBaseUnit - The matlWrhsStkQtyInMatlBaseUnit to set.
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> MatlStkInAcctModField<T> field(@Nonnull String fieldName, @Nonnull Class<T> fieldType)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      Parameters:
      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.
      Returns:
      A representation of an extension field from this entity.
    • field

      @Nonnull public static <T, DomainT> MatlStkInAcctModField<T> field(@Nonnull String fieldName, @Nonnull TypeConverter<T,DomainT> typeConverter)
      Use with available fluent helpers to apply an extension field to query operations.
      Type Parameters:
      T - The type of the extension field when performing value comparisons.
      DomainT - The type of the extension field as returned by the OData service.
      Parameters:
      typeConverter - A TypeConverter<T, DomainT> instance whose first generic type matches the Java type of the field
      fieldName - The name of the extension field as returned by the OData service.
      Returns:
      A representation of an extension field from this entity, holding a reference to the given TypeConverter.
    • getDestinationForFetch

      @Nullable public HttpDestinationProperties getDestinationForFetch()
      Overrides:
      getDestinationForFetch in class VdmEntity<MatlStkInAcctMod>
    • setServicePathForFetch

      protected void setServicePathForFetch(@Nullable String servicePathForFetch)
      Overrides:
      setServicePathForFetch in class VdmEntity<MatlStkInAcctMod>
    • attachToService

      public void attachToService(@Nullable String servicePath, @Nonnull HttpDestinationProperties destination)
      Overrides:
      attachToService in class VdmEntity<MatlStkInAcctMod>
    • getDefaultServicePath

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

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

      @Nullable public MaterialStock fetchMaterialStock()
      Fetches the MaterialStock entity (one to one) associated with this entity. This corresponds to the OData navigation property to_MaterialStock.

      Please note: This method will not cache or persist the query results.

      Returns:
      The single associated MaterialStock entity, or null if an entity is not associated.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getMaterialStockOrFetch

      @Nullable public MaterialStock getMaterialStockOrFetch()
      Retrieval of associated MaterialStock entity (one to one). This corresponds to the OData navigation property to_MaterialStock.

      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.

      Returns:
      List of associated MaterialStock entity.
      Throws:
      com.sap.cloud.sdk.datamodel.odata.client.exception.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.
    • getMaterialStockIfPresent

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

      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.

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

      public void setMaterialStock(MaterialStock value)
      Overwrites the associated MaterialStock entity for the loaded navigation property to_MaterialStock.
      Parameters:
      value - New MaterialStock entity.
    • builder

      @Nonnull public static MatlStkInAcctMod.MatlStkInAcctModBuilder builder()
    • getMaterial

      @Nullable public String getMaterial()
      (Key Field) Constraints: Not nullable, Maximum length: 40

      Original property name from the Odata EDM: Material

      Returns:
      Material in Respect of Which Stock is Managed
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getStorageLocation

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

      Original property name from the Odata EDM: StorageLocation

      Returns:
      Storage Location
    • getBatch

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

      Original property name from the Odata EDM: Batch

      Returns:
      Batch Number (Stock Identifier)
    • getSupplier

      @Nullable public String getSupplier()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Supplier

      Returns:
      Supplier for Special Stock
    • getCustomer

      @Nullable public String getCustomer()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: Customer

      Returns:
      Customer for Special Stock
    • getWBSElementInternalID

      @Nullable public String getWBSElementInternalID()
      (Key Field) Constraints: Not nullable, Maximum length: 24

      Original property name from the Odata EDM: WBSElementInternalID

      Returns:
      Valuated Sales Order Stock WBS Element
    • getSDDocument

      @Nullable public String getSDDocument()
      (Key Field) Constraints: Not nullable, Maximum length: 10

      Original property name from the Odata EDM: SDDocument

      Returns:
      Sales order number of valuated sales order stock
    • getSDDocumentItem

      @Nullable public String getSDDocumentItem()
      (Key Field) Constraints: Not nullable, Maximum length: 6

      Original property name from the Odata EDM: SDDocumentItem

      Returns:
      Sales Order Item of Valuated Sales Order Stock
    • getInventorySpecialStockType

      @Nullable public String getInventorySpecialStockType()
      (Key Field) Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: InventorySpecialStockType

      Returns:
      Special Stock Type
    • getInventoryStockType

      @Nullable public String getInventoryStockType()
      (Key Field) Constraints: Not nullable, Maximum length: 2

      Original property name from the Odata EDM: InventoryStockType

      Returns:
      Stock Type of Goods Movement (Stock Identifier)
    • getMaterialBaseUnit

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

      Original property name from the Odata EDM: MaterialBaseUnit

      Returns:
      Base Unit of Measure
    • getMatlWrhsStkQtyInMatlBaseUnit

      @Nullable public BigDecimal getMatlWrhsStkQtyInMatlBaseUnit()
      Constraints: Not nullable, Precision: 31, Scale: 14

      Original property name from the Odata EDM: MatlWrhsStkQtyInMatlBaseUnit

      Returns:
      The matlWrhsStkQtyInMatlBaseUnit contained in this entity.
    • toString

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

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

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

      public int hashCode()
      Overrides:
      hashCode in class VdmEntity<MatlStkInAcctMod>