public class ProductMLAccount extends VdmEntity<ProductMLAccount>
Original entity name from the Odata EDM: A_ProductMLAccountType
Modifier and Type | Class and Description |
---|---|
static class |
ProductMLAccount.ProductMLAccountBuilder |
Modifier and Type | Field and Description |
---|---|
static ProductMLAccountSelectable |
ALL_FIELDS
Selector for all available fields of ProductMLAccount.
|
static ProductMLAccountField<String> |
CURRENCY
Use with available fluent helpers to apply the Currency field to query operations.
|
static ProductMLAccountField<String> |
CURRENCY_ROLE
Use with available fluent helpers to apply the CurrencyRole field to query operations.
|
static ProductMLAccountField<BigDecimal> |
MOVING_AVERAGE_PRICE
Use with available fluent helpers to apply the MovingAveragePrice field to query operations.
|
static ProductMLAccountField<BigDecimal> |
PRICE_UNIT_QTY
Use with available fluent helpers to apply the PriceUnitQty field to query operations.
|
static ProductMLAccountField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static ProductMLAccountField<String> |
PRODUCT_PRICE_CONTROL
Use with available fluent helpers to apply the ProductPriceControl field to query operations.
|
static ProductMLAccountField<BigDecimal> |
STANDARD_PRICE
Use with available fluent helpers to apply the StandardPrice field to query operations.
|
static ProductMLAccountField<String> |
VALUATION_AREA
Use with available fluent helpers to apply the ValuationArea field to query operations.
|
static ProductMLAccountField<String> |
VALUATION_TYPE
Use with available fluent helpers to apply the ValuationType field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProductMLAccount() |
ProductMLAccount(String product,
String valuationArea,
String valuationType,
String currencyRole,
String currency,
String productPriceControl,
BigDecimal priceUnitQty,
BigDecimal movingAveragePrice,
BigDecimal standardPrice) |
Modifier and Type | Method and Description |
---|---|
void |
attachToService(String servicePath,
ErpConfigContext configContext)
Sets the service path and ERP configuration context for the fetch commands of this entity.
|
static ProductMLAccount.ProductMLAccountBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> ProductMLAccountField<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 |
getCurrency()
Constraints: Not nullable, Maximum length: 5
|
String |
getCurrencyRole()
(Key Field) Constraints: Not nullable, Maximum length: 2
|
protected String |
getDefaultServicePath() |
protected String |
getEntityCollection() |
ErpConfigContext |
getErpConfigContext()
Convienence field for reusing the same ERP system context with multiple queries (e.g.
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getMovingAveragePrice()
Constraints: Not nullable, Precision: 12, Scale: 3
|
BigDecimal |
getPriceUnitQty()
Constraints: Not nullable, Precision: 5, Scale: 0
|
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
String |
getProductPriceControl()
Constraints: Not nullable, Maximum length: 1
|
BigDecimal |
getStandardPrice()
Constraints: Not nullable, Precision: 12, Scale: 3
|
Class<ProductMLAccount> |
getType() |
String |
getValuationArea()
(Key Field) Constraints: Not nullable, Maximum length: 4
|
String |
getValuationType()
(Key Field) Constraints: Not nullable, Maximum length: 10
|
int |
hashCode() |
void |
setCurrency(String currency)
Constraints: Not nullable, Maximum length: 5
|
void |
setCurrencyRole(String currencyRole)
(Key Field) Constraints: Not nullable, Maximum length: 2
|
void |
setErpConfigContext(ErpConfigContext erpConfigContext)
Deprecated.
Use
attachToService(String, ErpConfigContext) instead. |
void |
setMovingAveragePrice(BigDecimal movingAveragePrice)
Constraints: Not nullable, Precision: 12, Scale: 3
|
void |
setPriceUnitQty(BigDecimal priceUnitQty)
Constraints: Not nullable, Precision: 5, Scale: 0
|
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
void |
setProductPriceControl(String productPriceControl)
Constraints: Not nullable, Maximum length: 1
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
void |
setStandardPrice(BigDecimal standardPrice)
Constraints: Not nullable, Precision: 12, Scale: 3
|
void |
setValuationArea(String valuationArea)
(Key Field) Constraints: Not nullable, Maximum length: 4
|
void |
setValuationType(String valuationType)
(Key Field) Constraints: Not nullable, Maximum length: 10
|
protected Map<String,Object> |
toMapOfFields() |
String |
toString() |
getEndpointUrl, getServicePathForFetch, getVersionIdentifier, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final ProductMLAccountSelectable ALL_FIELDS
public static final ProductMLAccountField<String> PRODUCT
public static final ProductMLAccountField<String> VALUATION_AREA
public static final ProductMLAccountField<String> VALUATION_TYPE
public static final ProductMLAccountField<String> CURRENCY_ROLE
public static final ProductMLAccountField<String> CURRENCY
public static final ProductMLAccountField<String> PRODUCT_PRICE_CONTROL
public static final ProductMLAccountField<BigDecimal> PRICE_UNIT_QTY
public static final ProductMLAccountField<BigDecimal> MOVING_AVERAGE_PRICE
public static final ProductMLAccountField<BigDecimal> STANDARD_PRICE
public 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)
@Nonnull public Class<ProductMLAccount> getType()
getType
in class VdmObject<ProductMLAccount>
public void setProduct(@Nullable String product)
Original property name from the Odata EDM: Product
product
- Alphanumeric key uniquely identifying the material.public void setValuationArea(@Nullable String valuationArea)
Original property name from the Odata EDM: ValuationArea
PlantAll plants belonging to a company code, in which case the valuation area is the company code
valuationArea
- Organizational level at which the material is valuated. A valuation area can be one of the following:public void setValuationType(@Nullable String valuationType)
Original property name from the Odata EDM: ValuationType
The valuation types allowed for a material are determined by the valuation category.If a material is valuated according to its origin (valuation category H), you can define the possible countries of origin as valuation types.
valuationType
- Uniquely identifies separately valuated stocks of a material.public void setCurrencyRole(@Nullable String currencyRole)
Original property name from the Odata EDM: CurrencyRole
In addition to the local currency (company code currency), you can use parallel currencies per company code with the following currency types:Group currencyHard currencyIndex-based currencyGlobal company currencyIn Controlling, you can also use the following types:Controlling area currencyObject currencyFurthermore, you can create your own currency types.Note:If you are using transfer prices, the currency type not only represents the business perspective, but also specifies the valuation view.Example:10 – local currency11 – local currency with group valuation12 – local currency with profit center valuationIn the Define Valuation Areas app, only the local currency is available.
currencyRole
- The currency type specifies the role of a currency in the SAP system.public void setCurrency(@Nullable String currency)
Original property name from the Odata EDM: Currency
currency
- Currency key for amounts in the system.public void setProductPriceControl(@Nullable String productPriceControl)
Original property name from the Odata EDM: ProductPriceControl
Standard priceMoving average priceIf the material ledger is activated for the material, this indicator, together with the material's price determination indicator, determines at which of the following prices the material is valuated:Standard priceMoving average pricePeriodic unit price
productPriceControl
- Indicates the price control used to valuate the stock of a material. You have the following options:public void setPriceUnitQty(@Nullable BigDecimal priceUnitQty)
Original property name from the Odata EDM: PriceUnitQty
You can change the price unit in all valuations, both in the accounting view of the material master record and in the price change transaction (MR21).
priceUnitQty
- Number of units of measure on which the price is based.public void setMovingAveragePrice(@Nullable BigDecimal movingAveragePrice)
Original property name from the Odata EDM: MovingAveragePrice
movingAveragePrice
- See: Moving average price/periodic unit pricepublic void setStandardPrice(@Nullable BigDecimal standardPrice)
Original property name from the Odata EDM: StandardPrice
If material inventories are valuated at standard prices, this will result in all goods movements being valuated at the same price over an extended period of time.Price differences when goods or invoices are received (such as when the purchase price is higher than the standard price) will be posted to price difference accounts. This does not change the standard price.
standardPrice
- Standard price of a material.protected String getEntityCollection()
getEntityCollection
in class VdmEntity<ProductMLAccount>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProductMLAccount>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProductMLAccount>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProductMLAccount>
@Nonnull public static <T> ProductMLAccountField<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> ProductMLAccountField<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 ErpConfigContext getErpConfigContext()
VdmEntity
getErpConfigContext
in class VdmEntity<ProductMLAccount>
@Deprecated public void setErpConfigContext(@Nullable ErpConfigContext erpConfigContext)
attachToService(String, ErpConfigContext)
instead.VdmEntity
setErpConfigContext
in class VdmEntity<ProductMLAccount>
erpConfigContext
- New ERP configuration context to apply to this entityprotected 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<ProductMLAccount>
public void attachToService(@Nullable String servicePath, @Nullable ErpConfigContext configContext)
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<ProductMLAccount>
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.configContext
- Optional parameter. New ERP configuration context to apply to this entity and any associated entities
that were previously fetched. If a null value is provided and the ERP configuration context has never
been set, then the ERP configuration context will be set to a new instance of
ErpConfigContext
.protected String getDefaultServicePath()
getDefaultServicePath
in class VdmEntity<ProductMLAccount>
public static ProductMLAccount.ProductMLAccountBuilder builder()
@Nullable public String getProduct()
Original property name from the Odata EDM: Product
@Nullable public String getValuationArea()
Original property name from the Odata EDM: ValuationArea
PlantAll plants belonging to a company code, in which case the valuation area is the company code
@Nullable public String getValuationType()
Original property name from the Odata EDM: ValuationType
The valuation types allowed for a material are determined by the valuation category.If a material is valuated according to its origin (valuation category H), you can define the possible countries of origin as valuation types.
@Nullable public String getCurrencyRole()
Original property name from the Odata EDM: CurrencyRole
In addition to the local currency (company code currency), you can use parallel currencies per company code with the following currency types:Group currencyHard currencyIndex-based currencyGlobal company currencyIn Controlling, you can also use the following types:Controlling area currencyObject currencyFurthermore, you can create your own currency types.Note:If you are using transfer prices, the currency type not only represents the business perspective, but also specifies the valuation view.Example:10 – local currency11 – local currency with group valuation12 – local currency with profit center valuationIn the Define Valuation Areas app, only the local currency is available.
@Nullable public String getCurrency()
Original property name from the Odata EDM: Currency
@Nullable public String getProductPriceControl()
Original property name from the Odata EDM: ProductPriceControl
Standard priceMoving average priceIf the material ledger is activated for the material, this indicator, together with the material's price determination indicator, determines at which of the following prices the material is valuated:Standard priceMoving average pricePeriodic unit price
@Nullable public BigDecimal getPriceUnitQty()
Original property name from the Odata EDM: PriceUnitQty
You can change the price unit in all valuations, both in the accounting view of the material master record and in the price change transaction (MR21).
@Nullable public BigDecimal getMovingAveragePrice()
Original property name from the Odata EDM: MovingAveragePrice
@Nullable public BigDecimal getStandardPrice()
Original property name from the Odata EDM: StandardPrice
If material inventories are valuated at standard prices, this will result in all goods movements being valuated at the same price over an extended period of time.Price differences when goods or invoices are received (such as when the purchase price is higher than the standard price) will be posted to price difference accounts. This does not change the standard price.
public String toString()
toString
in class VdmObject<ProductMLAccount>
public boolean equals(Object o)
equals
in class VdmObject<ProductMLAccount>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ProductMLAccount>
public int hashCode()
hashCode
in class VdmObject<ProductMLAccount>
Copyright © 2019 SAP SE. All rights reserved.