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

public class ActualStock extends VdmEntity<ActualStock>
Actual Stock

Original entity name from the Odata EDM: A_ActualStockType

  • Field Details

    • ALL_FIELDS

      public static final ActualStockSelectable ALL_FIELDS
      Selector for all available fields of ActualStock.
    • MATERIAL

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

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

      public static final ActualStockField<String> MRP_AREA
      Use with available fluent helpers to apply the MRPArea field to query operations.
    • BUFFER_LEVEL_START_DATE

      public static final ActualStockField<LocalDateTime> BUFFER_LEVEL_START_DATE
      Use with available fluent helpers to apply the BufferLevelStartDate field to query operations.
    • BUFFER_LEVEL_END_DATE

      public static final ActualStockField<LocalDateTime> BUFFER_LEVEL_END_DATE
      Use with available fluent helpers to apply the BufferLevelEndDate field to query operations.
    • MATERIAL_SAFETY_STOCK_QTY

      public static final ActualStockField<BigDecimal> MATERIAL_SAFETY_STOCK_QTY
      Use with available fluent helpers to apply the MaterialSafetyStockQty field to query operations.
    • REORDER_THRESHOLD_QUANTITY

      public static final ActualStockField<BigDecimal> REORDER_THRESHOLD_QUANTITY
      Use with available fluent helpers to apply the ReorderThresholdQuantity field to query operations.
    • MATERIAL_MAX_STOCK_LEVEL_QUANTITY

      public static final ActualStockField<BigDecimal> MATERIAL_MAX_STOCK_LEVEL_QUANTITY
      Use with available fluent helpers to apply the MaterialMaxStockLevelQuantity field to query operations.
    • BASE_UNIT

      public static final ActualStockField<String> BASE_UNIT
      Use with available fluent helpers to apply the BaseUnit field to query operations.
    • CHANGE_MODE

      public static final ActualStockField<String> CHANGE_MODE
      Use with available fluent helpers to apply the ChangeMode field to query operations.
    • STOCK_LEVEL_PROPOSAL_ID

      public static final ActualStockField<String> STOCK_LEVEL_PROPOSAL_ID
      Use with available fluent helpers to apply the StockLevelProposalID field to query operations.
    • PROPOSAL_VERSION

      public static final ActualStockField<String> PROPOSAL_VERSION
      Use with available fluent helpers to apply the ProposalVersion field to query operations.
    • PROPOSAL_START_DATE

      public static final ActualStockField<LocalDateTime> PROPOSAL_START_DATE
      Use with available fluent helpers to apply the ProposalStartDate field to query operations.
    • TO_PROPOSAL_HDR

      public static final ActualStockOneToOneLink<ProposalHeader> TO_PROPOSAL_HDR
      Use with available fluent helpers to apply the to_ProposalHdr navigation property to query operations.
  • Constructor Details

  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Material

      Parameters:
      material - Material Number
    • 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
    • setMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Parameters:
      mRPArea - MRP Area
    • setBufferLevelStartDate

      public void setBufferLevelStartDate(@Nullable LocalDateTime bufferLevelStartDate)
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufferLevelStartDate

      Parameters:
      bufferLevelStartDate - Valid-From Date
    • setBufferLevelEndDate

      public void setBufferLevelEndDate(@Nullable LocalDateTime bufferLevelEndDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufferLevelEndDate

      Parameters:
      bufferLevelEndDate - Valid-To Date
    • setMaterialSafetyStockQty

      public void setMaterialSafetyStockQty(@Nullable BigDecimal materialSafetyStockQty)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: MaterialSafetyStockQty

      Parameters:
      materialSafetyStockQty - Safety Stock
    • setReorderThresholdQuantity

      public void setReorderThresholdQuantity(@Nullable BigDecimal reorderThresholdQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ReorderThresholdQuantity

      Parameters:
      reorderThresholdQuantity - Reorder Point
    • setMaterialMaxStockLevelQuantity

      public void setMaterialMaxStockLevelQuantity(@Nullable BigDecimal materialMaxStockLevelQuantity)
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: MaterialMaxStockLevelQuantity

      Parameters:
      materialMaxStockLevelQuantity - Maximum Stock Level
    • setBaseUnit

      public void setBaseUnit(@Nullable String baseUnit)
      Constraints: Not nullable, Maximum length: 3

      Original property name from the Odata EDM: BaseUnit

      Parameters:
      baseUnit - Base Unit of Measure
    • setChangeMode

      public void setChangeMode(@Nullable String changeMode)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ChangeMode

      Parameters:
      changeMode - Mode of change
    • setStockLevelProposalID

      public void setStockLevelProposalID(@Nullable String stockLevelProposalID)
      Constraints: Not nullable, Maximum length: 75

      Original property name from the Odata EDM: StockLevelProposalID

      Parameters:
      stockLevelProposalID - Proposal Id
    • setProposalVersion

      public void setProposalVersion(@Nullable String proposalVersion)
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProposalVersion

      Parameters:
      proposalVersion - Proposal Version
    • setProposalStartDate

      public void setProposalStartDate(@Nullable LocalDateTime proposalStartDate)
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Parameters:
      proposalStartDate - Proposal Validity From Date
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ActualStockField<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> ActualStockField<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<ActualStock>
    • setServicePathForFetch

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

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

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

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

      @Nullable public ProposalHeader fetchProposalHdr()
      Fetches the ProposalHeader entity (one to one) associated with this entity. This corresponds to the OData navigation property to_ProposalHdr.

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

      Returns:
      The single associated ProposalHeader 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.
    • getProposalHdrOrFetch

      @Nullable public ProposalHeader getProposalHdrOrFetch()
      Retrieval of associated ProposalHeader entity (one to one). This corresponds to the OData navigation property to_ProposalHdr.

      If the navigation property to_ProposalHdr of a queried ActualStock 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 ProposalHeader 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.
    • getProposalHdrIfPresent

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

      If the navigation property for an entity ActualStock 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_ProposalHdr is already loaded, the result will contain the ProposalHeader entity. If not, an Option with result state empty is returned.
    • setProposalHdr

      public void setProposalHdr(ProposalHeader value)
      Overwrites the associated ProposalHeader entity for the loaded navigation property to_ProposalHdr.
      Parameters:
      value - New ProposalHeader entity.
    • builder

      @Nonnull public static ActualStock.ActualStockBuilder builder()
    • getMaterial

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

      Original property name from the Odata EDM: Material

      Returns:
      Material Number
    • getPlant

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

      Original property name from the Odata EDM: Plant

      Returns:
      Plant
    • getMRPArea

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

      Original property name from the Odata EDM: MRPArea

      Returns:
      MRP Area
    • getBufferLevelStartDate

      @Nullable public LocalDateTime getBufferLevelStartDate()
      (Key Field) Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufferLevelStartDate

      Returns:
      Valid-From Date
    • getBufferLevelEndDate

      @Nullable public LocalDateTime getBufferLevelEndDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: BufferLevelEndDate

      Returns:
      Valid-To Date
    • getMaterialSafetyStockQty

      @Nullable public BigDecimal getMaterialSafetyStockQty()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: MaterialSafetyStockQty

      Returns:
      Safety Stock
    • getReorderThresholdQuantity

      @Nullable public BigDecimal getReorderThresholdQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: ReorderThresholdQuantity

      Returns:
      Reorder Point
    • getMaterialMaxStockLevelQuantity

      @Nullable public BigDecimal getMaterialMaxStockLevelQuantity()
      Constraints: Not nullable, Precision: 13, Scale: 3

      Original property name from the Odata EDM: MaterialMaxStockLevelQuantity

      Returns:
      Maximum Stock Level
    • getBaseUnit

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

      Original property name from the Odata EDM: BaseUnit

      Returns:
      Base Unit of Measure
    • getChangeMode

      @Nullable public String getChangeMode()
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ChangeMode

      Returns:
      Mode of change
    • getStockLevelProposalID

      @Nullable public String getStockLevelProposalID()
      Constraints: Not nullable, Maximum length: 75

      Original property name from the Odata EDM: StockLevelProposalID

      Returns:
      Proposal Id
    • getProposalVersion

      @Nullable public String getProposalVersion()
      Constraints: Not nullable, Maximum length: 8

      Original property name from the Odata EDM: ProposalVersion

      Returns:
      Proposal Version
    • getProposalStartDate

      @Nullable public LocalDateTime getProposalStartDate()
      Constraints: Not nullable, Precision: 0

      Original property name from the Odata EDM: ProposalStartDate

      Returns:
      Proposal Validity From Date
    • toString

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

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

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

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