public class ProductMLPrices extends VdmEntity<ProductMLPrices>
Original entity name from the Odata EDM: A_ProductMLPricesType
Modifier and Type | Class and Description |
---|---|
static class |
ProductMLPrices.ProductMLPricesBuilder |
Modifier and Type | Field and Description |
---|---|
static ProductMLPricesSelectable |
ALL_FIELDS
Selector for all available fields of ProductMLPrices.
|
static ProductMLPricesField<String> |
CURRENCY
Use with available fluent helpers to apply the Currency field to query operations.
|
static ProductMLPricesField<String> |
CURRENCY_ROLE
Use with available fluent helpers to apply the CurrencyRole field to query operations.
|
static ProductMLPricesField<BigDecimal> |
FUTURE_PRICE
Use with available fluent helpers to apply the FuturePrice field to query operations.
|
static ProductMLPricesField<LocalDateTime> |
FUTURE_PRICE_VALIDITY_START_DATE
Use with available fluent helpers to apply the FuturePriceValidityStartDate field to query operations.
|
static ProductMLPricesField<BigDecimal> |
PLANNED_PRICE
Use with available fluent helpers to apply the PlannedPrice field to query operations.
|
static ProductMLPricesField<String> |
PRODUCT
Use with available fluent helpers to apply the Product field to query operations.
|
static ProductMLPricesField<String> |
VALUATION_AREA
Use with available fluent helpers to apply the ValuationArea field to query operations.
|
static ProductMLPricesField<String> |
VALUATION_TYPE
Use with available fluent helpers to apply the ValuationType field to query operations.
|
changedOriginalFields
Constructor and Description |
---|
ProductMLPrices() |
ProductMLPrices(String product,
String valuationArea,
String valuationType,
String currencyRole,
String currency,
BigDecimal futurePrice,
LocalDateTime futurePriceValidityStartDate,
BigDecimal plannedPrice) |
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 ProductMLPrices.ProductMLPricesBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
static <T> ProductMLPricesField<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()
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.
|
BigDecimal |
getFuturePrice()
Constraints: Not nullable, Precision: 12, Scale: 3
|
LocalDateTime |
getFuturePriceValidityStartDate()
Constraints: Not nullable, Precision: 0
|
protected Map<String,Object> |
getKey() |
BigDecimal |
getPlannedPrice()
Constraints: Not nullable, Precision: 24, Scale: 3
|
String |
getProduct()
(Key Field) Constraints: Not nullable, Maximum length: 40
|
Class<ProductMLPrices> |
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 |
setFuturePrice(BigDecimal futurePrice)
Constraints: Not nullable, Precision: 12, Scale: 3
|
void |
setFuturePriceValidityStartDate(LocalDateTime futurePriceValidityStartDate)
Constraints: Not nullable, Precision: 0
|
void |
setPlannedPrice(BigDecimal plannedPrice)
Constraints: Not nullable, Precision: 24, Scale: 3
|
void |
setProduct(String product)
(Key Field) Constraints: Not nullable, Maximum length: 40
|
protected void |
setServicePathForFetch(String servicePathForFetch)
The service path only used for the fetch commands of this entity.
|
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() |
getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setVersionIdentifier
getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields, toMapOfNavigationProperties
public static final ProductMLPricesSelectable ALL_FIELDS
public static final ProductMLPricesField<String> PRODUCT
public static final ProductMLPricesField<String> VALUATION_AREA
public static final ProductMLPricesField<String> VALUATION_TYPE
public static final ProductMLPricesField<String> CURRENCY_ROLE
public static final ProductMLPricesField<String> CURRENCY
public static final ProductMLPricesField<BigDecimal> FUTURE_PRICE
public static final ProductMLPricesField<LocalDateTime> FUTURE_PRICE_VALIDITY_START_DATE
public static final ProductMLPricesField<BigDecimal> PLANNED_PRICE
public ProductMLPrices()
public ProductMLPrices(@Nullable String product, @Nullable String valuationArea, @Nullable String valuationType, @Nullable String currencyRole, @Nullable String currency, @Nullable BigDecimal futurePrice, @Nullable LocalDateTime futurePriceValidityStartDate, @Nullable BigDecimal plannedPrice)
@Nonnull public Class<ProductMLPrices> getType()
getType
in class VdmObject<ProductMLPrices>
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 setFuturePrice(@Nullable BigDecimal futurePrice)
Original property name from the Odata EDM: FuturePrice
The future standard price is valid as of the date you enter in the relevant field.Before the future price can become effective, you must activate it for material valuation.
futurePrice
- Price at which the material will be valuated as from a precise date in the future.public void setFuturePriceValidityStartDate(@Nullable LocalDateTime futurePriceValidityStartDate)
Original property name from the Odata EDM: FuturePriceValidityStartDate
futurePriceValidityStartDate
- Date from which a future valuation price is to be validpublic void setPlannedPrice(@Nullable BigDecimal plannedPrice)
Original property name from the Odata EDM: PlannedPrice
plannedPrice
- Costprotected String getEntityCollection()
VdmEntity
getEntityCollection
in class VdmEntity<ProductMLPrices>
@Nonnull protected Map<String,Object> getKey()
getKey
in class VdmObject<ProductMLPrices>
@Nonnull protected Map<String,Object> toMapOfFields()
toMapOfFields
in class VdmObject<ProductMLPrices>
protected void fromMap(Map<String,Object> inputValues)
fromMap
in class VdmObject<ProductMLPrices>
@Nonnull public static <T> ProductMLPricesField<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> ProductMLPricesField<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<ProductMLPrices>
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<ProductMLPrices>
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<ProductMLPrices>
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<ProductMLPrices>
protocol://hostname:port
and the OData resource name (entity set, $metadata
, etc.)public static ProductMLPrices.ProductMLPricesBuilder 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 BigDecimal getFuturePrice()
Original property name from the Odata EDM: FuturePrice
The future standard price is valid as of the date you enter in the relevant field.Before the future price can become effective, you must activate it for material valuation.
@Nullable public LocalDateTime getFuturePriceValidityStartDate()
Original property name from the Odata EDM: FuturePriceValidityStartDate
@Nullable public BigDecimal getPlannedPrice()
Original property name from the Odata EDM: PlannedPrice
public String toString()
toString
in class VdmObject<ProductMLPrices>
public boolean equals(Object o)
equals
in class VdmObject<ProductMLPrices>
protected boolean canEqual(Object other)
canEqual
in class VdmObject<ProductMLPrices>
public int hashCode()
hashCode
in class VdmObject<ProductMLPrices>
Copyright © 2020 SAP SE. All rights reserved.