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

public class ProductMLAccount extends VdmEntity<ProductMLAccount>
Material Ledger Account

Original entity name from the Odata EDM: A_ProductMLAccountType

  • Field Details

    • ALL_FIELDS

      public static final ProductMLAccountSelectable ALL_FIELDS
      Selector for all available fields of ProductMLAccount.
    • PRODUCT

      public static final ProductMLAccountField<String> PRODUCT
      Use with available fluent helpers to apply the Product field to query operations.
    • VALUATION_AREA

      public static final ProductMLAccountField<String> VALUATION_AREA
      Use with available fluent helpers to apply the ValuationArea field to query operations.
    • VALUATION_TYPE

      public static final ProductMLAccountField<String> VALUATION_TYPE
      Use with available fluent helpers to apply the ValuationType field to query operations.
    • CURRENCY_ROLE

      public static final ProductMLAccountField<String> CURRENCY_ROLE
      Use with available fluent helpers to apply the CurrencyRole field to query operations.
    • CURRENCY

      public static final ProductMLAccountField<String> CURRENCY
      Use with available fluent helpers to apply the Currency field to query operations.
    • PRODUCT_PRICE_CONTROL

      public static final ProductMLAccountField<String> PRODUCT_PRICE_CONTROL
      Use with available fluent helpers to apply the ProductPriceControl field to query operations.
    • PRICE_UNIT_QTY

      public static final ProductMLAccountField<BigDecimal> PRICE_UNIT_QTY
      Use with available fluent helpers to apply the PriceUnitQty field to query operations.
    • MOVING_AVERAGE_PRICE

      public static final ProductMLAccountField<BigDecimal> MOVING_AVERAGE_PRICE
      Use with available fluent helpers to apply the MovingAveragePrice field to query operations.
    • STANDARD_PRICE

      public static final ProductMLAccountField<BigDecimal> STANDARD_PRICE
      Use with available fluent helpers to apply the StandardPrice field to query operations.
  • Constructor Details

    • ProductMLAccount

      public ProductMLAccount()
    • ProductMLAccount

      public ProductMLAccount(@Nullable String product, @Nullable String valuationArea, @Nullable String valuationType, @Nullable String currencyRole, @Nullable String currency, @Nullable String productPriceControl, @Nullable BigDecimal priceUnitQty, @Nullable BigDecimal movingAveragePrice, @Nullable BigDecimal standardPrice)
  • Method Details

    • getType

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

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

      Original property name from the Odata EDM: Product

      Parameters:
      product - Material Number
    • setValuationArea

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

      Original property name from the Odata EDM: ValuationArea

      Parameters:
      valuationArea - Valuation Area
    • setValuationType

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

      Original property name from the Odata EDM: ValuationType

      Parameters:
      valuationType - Valuation Type
    • setCurrencyRole

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

      Original property name from the Odata EDM: CurrencyRole

      Parameters:
      currencyRole - External Currency Type and Valuation View
    • setCurrency

      public void setCurrency(@Nullable String currency)
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: Currency

      Parameters:
      currency - Currency Key
    • setProductPriceControl

      public void setProductPriceControl(@Nullable String productPriceControl)
      Constraints: Not nullable, Maximum length: 1

      Original property name from the Odata EDM: ProductPriceControl

      Parameters:
      productPriceControl - Price control indicator
    • setPriceUnitQty

      public void setPriceUnitQty(@Nullable BigDecimal priceUnitQty)
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: PriceUnitQty

      Parameters:
      priceUnitQty - Price unit
    • setMovingAveragePrice

      public void setMovingAveragePrice(@Nullable BigDecimal movingAveragePrice)
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: MovingAveragePrice

      Parameters:
      movingAveragePrice - Periodic unit price
    • setStandardPrice

      public void setStandardPrice(@Nullable BigDecimal standardPrice)
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: StandardPrice

      Parameters:
      standardPrice - Standard price
    • getEntityCollection

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

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

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

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

      @Nonnull public static <T> ProductMLAccountField<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> ProductMLAccountField<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<ProductMLAccount>
    • setServicePathForFetch

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

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

      protected String getDefaultServicePath()
      Overrides:
      getDefaultServicePath in class VdmEntity<ProductMLAccount>
    • builder

      @Nonnull public static ProductMLAccount.ProductMLAccountBuilder builder()
    • getProduct

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

      Original property name from the Odata EDM: Product

      Returns:
      Material Number
    • getValuationArea

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

      Original property name from the Odata EDM: ValuationArea

      Returns:
      Valuation Area
    • getValuationType

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

      Original property name from the Odata EDM: ValuationType

      Returns:
      Valuation Type
    • getCurrencyRole

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

      Original property name from the Odata EDM: CurrencyRole

      Returns:
      External Currency Type and Valuation View
    • getCurrency

      @Nullable public String getCurrency()
      Constraints: Not nullable, Maximum length: 5

      Original property name from the Odata EDM: Currency

      Returns:
      Currency Key
    • getProductPriceControl

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

      Original property name from the Odata EDM: ProductPriceControl

      Returns:
      Price control indicator
    • getPriceUnitQty

      @Nullable public BigDecimal getPriceUnitQty()
      Constraints: Not nullable, Precision: 5, Scale: 0

      Original property name from the Odata EDM: PriceUnitQty

      Returns:
      Price unit
    • getMovingAveragePrice

      @Nullable public BigDecimal getMovingAveragePrice()
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: MovingAveragePrice

      Returns:
      Periodic unit price
    • getStandardPrice

      @Nullable public BigDecimal getStandardPrice()
      Constraints: Not nullable, Precision: 12, Scale: 3

      Original property name from the Odata EDM: StandardPrice

      Returns:
      Standard price
    • toString

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

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

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

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