Class ProductValuation
- All Implemented Interfaces:
VdmEntitySet
Original entity name from the Odata EDM: ProductValuation_Type
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelper class to allow for fluent creation of ProductValuation instances. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SimpleProperty<ProductValuation>Selector for all available fields of ProductValuation.static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.Boolean<ProductValuation>static final SimpleProperty.Boolean<ProductValuation>static final SimpleProperty.NumericDecimal<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.NumericDecimal<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.NumericDecimal<ProductValuation>static final NavigationProperty.Single<ProductValuation,Product> Use with available request builders to apply the _Product navigation property to query operations.Use with available request builders to apply the _ProductValuationAccounting navigation property to query operations.static final NavigationProperty.Single<ProductValuation,ProductValuationCosting> Use with available request builders to apply the _ProductValuationCosting navigation property to query operations.Use with available request builders to apply the _ProductValuationLedgerAccount navigation property to query operations.Use with available request builders to apply the _ProductValuationLedgerPrices navigation property to query operations.static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>static final SimpleProperty.String<ProductValuation>Fields inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
changedOriginalFields, ODATA_TYPE_ANNOTATIONS, ODATA_VERSION_ANNOTATIONS -
Constructor Summary
ConstructorsConstructorDescriptionProductValuation(String product, String valuationArea, String valuationType, String valuationClass, String priceDeterminationControl, BigDecimal standardPrice, BigDecimal productPriceUnitQuantity, String inventoryValuationProcedure, BigDecimal movingAveragePrice, String valuationCategory, String productUsageType, String productOriginType, Boolean isProducedInhouse, Boolean isMarkedForDeletion, String valuationClassSalesOrderStock, String projectStockValuationClass, String currency, String baseUnit, String baseISOUnit, Product to_Product, ProductValuationAccounting to_ProductValuationAccounting, ProductValuationCosting to_ProductValuationCosting, List<ProductValuationLedgerAccount> to_ProductValuationLedgerAccount, List<ProductValuationLedgerPrices> to_ProductValuationLedgerPrices) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds elements to the list of associated ProductValuationLedgerAccount entities.voidAdds elements to the list of associated ProductValuationLedgerPrices entities.builder()protected booleanbooleanprotected voidConstraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3Constraints: Not nullable, Maximum length: 3protected Stringprotected StringConstraints: Not nullable, Maximum length: 1Constraints: Not nullableConstraints: Not nullableprotected ODataEntityKeygetKey()Constraints: Not nullable, Precision: 11, Scale: 0Constraints: Not nullable, Maximum length: 1(Key Field) Constraints: Not nullable, Maximum length: 18io.vavr.control.Option<Product>Retrieval of associated Product entity (one to one).Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Precision: 5Constraints: Not nullable, Maximum length: 1io.vavr.control.Option<ProductValuationAccounting>Retrieval of associated ProductValuationAccounting entity (one to one).io.vavr.control.Option<ProductValuationCosting>Retrieval of associated ProductValuationCosting entity (one to one).io.vavr.control.Option<List<ProductValuationLedgerAccount>>Retrieval of associated ProductValuationLedgerAccount entities (one to many).io.vavr.control.Option<List<ProductValuationLedgerPrices>>Retrieval of associated ProductValuationLedgerPrices entities (one to many).Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Precision: 11, Scale: 0getType()(Key Field) Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 1Constraints: Not nullable, Maximum length: 4Constraints: Not nullable, Maximum length: 4(Key Field) Constraints: Not nullable, Maximum length: 10inthashCode()voidsetBaseISOUnit(String baseISOUnit) Constraints: Not nullable, Maximum length: 3voidsetBaseUnit(String baseUnit) Constraints: Not nullable, Maximum length: 3voidsetCurrency(String currency) Constraints: Not nullable, Maximum length: 3voidsetInventoryValuationProcedure(String inventoryValuationProcedure) Constraints: Not nullable, Maximum length: 1voidsetIsMarkedForDeletion(Boolean isMarkedForDeletion) Constraints: Not nullablevoidsetIsProducedInhouse(Boolean isProducedInhouse) Constraints: Not nullablevoidsetMovingAveragePrice(BigDecimal movingAveragePrice) Constraints: Not nullable, Precision: 11, Scale: 0voidsetPriceDeterminationControl(String priceDeterminationControl) Constraints: Not nullable, Maximum length: 1voidsetProduct(Product value) Overwrites the associated Product entity for the loaded navigation property _Product.voidsetProduct(String product) (Key Field) Constraints: Not nullable, Maximum length: 18voidsetProductOriginType(String productOriginType) Constraints: Not nullable, Maximum length: 1voidsetProductPriceUnitQuantity(BigDecimal productPriceUnitQuantity) Constraints: Not nullable, Precision: 5voidsetProductUsageType(String productUsageType) Constraints: Not nullable, Maximum length: 1voidOverwrites the associated ProductValuationAccounting entity for the loaded navigation property _ProductValuationAccounting.voidOverwrites the associated ProductValuationCosting entity for the loaded navigation property _ProductValuationCosting.voidOverwrites the list of associated ProductValuationLedgerAccount entities for the loaded navigation property _ProductValuationLedgerAccount.voidOverwrites the list of associated ProductValuationLedgerPrices entities for the loaded navigation property _ProductValuationLedgerPrices.voidsetProjectStockValuationClass(String projectStockValuationClass) Constraints: Not nullable, Maximum length: 4voidsetStandardPrice(BigDecimal standardPrice) Constraints: Not nullable, Precision: 11, Scale: 0voidsetValuationArea(String valuationArea) (Key Field) Constraints: Not nullable, Maximum length: 4voidsetValuationCategory(String valuationCategory) Constraints: Not nullable, Maximum length: 1voidsetValuationClass(String valuationClass) Constraints: Not nullable, Maximum length: 4voidsetValuationClassSalesOrderStock(String valuationClassSalesOrderStock) Constraints: Not nullable, Maximum length: 4voidsetValuationType(String valuationType) (Key Field) Constraints: Not nullable, Maximum length: 10toString()Methods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmEntity
all, attachToService, getDestinationForFetch, getServicePathForFetch, getVersionIdentifier, setDestinationForFetch, setServicePathForFetch, setVersionIdentifierMethods inherited from class com.sap.cloud.sdk.datamodel.odatav4.core.VdmObject
getAnnotationProperties, getChangedFields, getCustomField, getCustomField, getCustomFieldNames, getCustomFields, getSetOfCustomFields, getSetOfFields, getSetOfNavigationProperties, hasCustomField, hasCustomField, rememberChangedField, resetChangedFields, setCustomField, setCustomField, toMap, toMapOfCustomFields
-
Field Details
-
ALL_FIELDS
Selector for all available fields of ProductValuation. -
PRODUCT
-
VALUATION_AREA
-
VALUATION_TYPE
-
VALUATION_CLASS
-
PRICE_DETERMINATION_CONTROL
-
STANDARD_PRICE
-
PRODUCT_PRICE_UNIT_QUANTITY
-
INVENTORY_VALUATION_PROCEDURE
-
MOVING_AVERAGE_PRICE
-
VALUATION_CATEGORY
-
PRODUCT_USAGE_TYPE
-
PRODUCT_ORIGIN_TYPE
-
IS_PRODUCED_INHOUSE
-
IS_MARKED_FOR_DELETION
-
VALUATION_CLASS_SALES_ORDER_STOCK
-
PROJECT_STOCK_VALUATION_CLASS
-
CURRENCY
-
BASE_UNIT
-
BASE_ISO_UNIT
-
TO__PRODUCT
Use with available request builders to apply the _Product navigation property to query operations. -
TO__PRODUCT_VALUATION_ACCOUNTING
public static final NavigationProperty.Single<ProductValuation,ProductValuationAccounting> TO__PRODUCT_VALUATION_ACCOUNTINGUse with available request builders to apply the _ProductValuationAccounting navigation property to query operations. -
TO__PRODUCT_VALUATION_COSTING
public static final NavigationProperty.Single<ProductValuation,ProductValuationCosting> TO__PRODUCT_VALUATION_COSTINGUse with available request builders to apply the _ProductValuationCosting navigation property to query operations. -
TO__PRODUCT_VALUATION_LEDGER_ACCOUNT
public static final NavigationProperty.Collection<ProductValuation,ProductValuationLedgerAccount> TO__PRODUCT_VALUATION_LEDGER_ACCOUNTUse with available request builders to apply the _ProductValuationLedgerAccount navigation property to query operations. -
TO__PRODUCT_VALUATION_LEDGER_PRICES
public static final NavigationProperty.Collection<ProductValuation,ProductValuationLedgerPrices> TO__PRODUCT_VALUATION_LEDGER_PRICESUse with available request builders to apply the _ProductValuationLedgerPrices navigation property to query operations.
-
-
Constructor Details
-
ProductValuation
public ProductValuation() -
ProductValuation
public ProductValuation(@Nullable String product, @Nullable String valuationArea, @Nullable String valuationType, @Nullable String valuationClass, @Nullable String priceDeterminationControl, @Nullable BigDecimal standardPrice, @Nullable BigDecimal productPriceUnitQuantity, @Nullable String inventoryValuationProcedure, @Nullable BigDecimal movingAveragePrice, @Nullable String valuationCategory, @Nullable String productUsageType, @Nullable String productOriginType, @Nullable Boolean isProducedInhouse, @Nullable Boolean isMarkedForDeletion, @Nullable String valuationClassSalesOrderStock, @Nullable String projectStockValuationClass, @Nullable String currency, @Nullable String baseUnit, @Nullable String baseISOUnit, @Nullable Product to_Product, @Nullable ProductValuationAccounting to_ProductValuationAccounting, @Nullable ProductValuationCosting to_ProductValuationCosting, List<ProductValuationLedgerAccount> to_ProductValuationLedgerAccount, List<ProductValuationLedgerPrices> to_ProductValuationLedgerPrices)
-
-
Method Details
-
getType
- Specified by:
getTypein classVdmObject<ProductValuation>
-
setProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Parameters:
product- Product Number
-
setValuationArea
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationArea
- Parameters:
valuationArea- Valuation Area
-
setValuationType
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ValuationType
- Parameters:
valuationType- Valuation Type
-
setValuationClass
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationClass
- Parameters:
valuationClass- Valuation Class
-
setPriceDeterminationControl
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PriceDeterminationControl
- Parameters:
priceDeterminationControl- Material Price Determination: Control
-
setStandardPrice
Constraints: Not nullable, Precision: 11, Scale: 0Original property name from the Odata EDM: StandardPrice
- Parameters:
standardPrice- Standard price
-
setProductPriceUnitQuantity
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: ProductPriceUnitQuantity
- Parameters:
productPriceUnitQuantity- Price unit
-
setInventoryValuationProcedure
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: InventoryValuationProcedure
- Parameters:
inventoryValuationProcedure- Price Control
-
setMovingAveragePrice
Constraints: Not nullable, Precision: 11, Scale: 0Original property name from the Odata EDM: MovingAveragePrice
- Parameters:
movingAveragePrice- Moving Average Price/Periodic Unit Price
-
setValuationCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ValuationCategory
- Parameters:
valuationCategory- Valuation Category
-
setProductUsageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProductUsageType
- Parameters:
productUsageType- Usage of the Product
-
setProductOriginType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProductOriginType
- Parameters:
productOriginType- Origin of the Product
-
setIsProducedInhouse
Constraints: Not nullableOriginal property name from the Odata EDM: IsProducedInhouse
- Parameters:
isProducedInhouse- Produced in-house
-
setIsMarkedForDeletion
Constraints: Not nullableOriginal property name from the Odata EDM: IsMarkedForDeletion
- Parameters:
isMarkedForDeletion- Deletion flag for all material data of a valuation type
-
setValuationClassSalesOrderStock
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationClassSalesOrderStock
- Parameters:
valuationClassSalesOrderStock- Valuation Class for Sales Order Stock
-
setProjectStockValuationClass
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProjectStockValuationClass
- Parameters:
projectStockValuationClass- Valuation Class for Project Stock
-
setCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Currency
- Parameters:
currency- Currency Key
-
setBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Parameters:
baseUnit- Base Unit of Measure
-
setBaseISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseISOUnit
- Parameters:
baseISOUnit- Base unit of measure in ISO code
-
getEntityCollection
- Specified by:
getEntityCollectionin classVdmEntity<ProductValuation>
-
getKey
- Overrides:
getKeyin classVdmObject<ProductValuation>
-
toMapOfFields
- Overrides:
toMapOfFieldsin classVdmObject<ProductValuation>
-
fromMap
- Overrides:
fromMapin classVdmObject<ProductValuation>
-
getDefaultServicePath
- Overrides:
getDefaultServicePathin classVdmEntity<ProductValuation>
-
getProductIfPresent
Retrieval of associated Product entity (one to one). This corresponds to the OData navigation property _Product.If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _Product is already loaded, the result will contain the
Product entity. If not, an
Optionwith result stateemptyis returned.
-
setProduct
Overwrites the associated Product entity for the loaded navigation property _Product.- Parameters:
value- New Product entity.
-
getProductValuationAccountingIfPresent
@Nonnull public io.vavr.control.Option<ProductValuationAccounting> getProductValuationAccountingIfPresent()Retrieval of associated ProductValuationAccounting entity (one to one). This corresponds to the OData navigation property _ProductValuationAccounting.If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _ProductValuationAccounting is already loaded, the
result will contain the ProductValuationAccounting entity. If not, an
Optionwith result stateemptyis returned.
-
setProductValuationAccounting
Overwrites the associated ProductValuationAccounting entity for the loaded navigation property _ProductValuationAccounting.- Parameters:
value- New ProductValuationAccounting entity.
-
getProductValuationCostingIfPresent
@Nonnull public io.vavr.control.Option<ProductValuationCosting> getProductValuationCostingIfPresent()Retrieval of associated ProductValuationCosting entity (one to one). This corresponds to the OData navigation property _ProductValuationCosting.If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _ProductValuationCosting is already loaded, the result
will contain the ProductValuationCosting entity. If not, an
Optionwith result stateemptyis returned.
-
setProductValuationCosting
Overwrites the associated ProductValuationCosting entity for the loaded navigation property _ProductValuationCosting.- Parameters:
value- New ProductValuationCosting entity.
-
getProductValuationLedgerAccountIfPresent
@Nonnull public io.vavr.control.Option<List<ProductValuationLedgerAccount>> getProductValuationLedgerAccountIfPresent()Retrieval of associated ProductValuationLedgerAccount entities (one to many). This corresponds to the OData navigation property _ProductValuationLedgerAccount.If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _ProductValuationLedgerAccount is already loaded, the
result will contain the ProductValuationLedgerAccount entities. If not, an
Optionwith result stateemptyis returned.
-
setProductValuationLedgerAccount
Overwrites the list of associated ProductValuationLedgerAccount entities for the loaded navigation property _ProductValuationLedgerAccount.If the navigation property _ProductValuationLedgerAccount of a queried ProductValuation 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.
- Parameters:
value- List of ProductValuationLedgerAccount entities.
-
addProductValuationLedgerAccount
Adds elements to the list of associated ProductValuationLedgerAccount entities. This corresponds to the OData navigation property _ProductValuationLedgerAccount.If the navigation property _ProductValuationLedgerAccount of a queried ProductValuation 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.
- Parameters:
entity- Array of ProductValuationLedgerAccount entities.
-
getProductValuationLedgerPricesIfPresent
@Nonnull public io.vavr.control.Option<List<ProductValuationLedgerPrices>> getProductValuationLedgerPricesIfPresent()Retrieval of associated ProductValuationLedgerPrices entities (one to many). This corresponds to the OData navigation property _ProductValuationLedgerPrices.If the navigation property for an entity ProductValuation has not been resolved yet, this method will not query further information. Instead its
Optionresult state will beempty.- Returns:
- If the information for navigation property _ProductValuationLedgerPrices is already loaded, the
result will contain the ProductValuationLedgerPrices entities. If not, an
Optionwith result stateemptyis returned.
-
setProductValuationLedgerPrices
Overwrites the list of associated ProductValuationLedgerPrices entities for the loaded navigation property _ProductValuationLedgerPrices.If the navigation property _ProductValuationLedgerPrices of a queried ProductValuation 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.
- Parameters:
value- List of ProductValuationLedgerPrices entities.
-
addProductValuationLedgerPrices
Adds elements to the list of associated ProductValuationLedgerPrices entities. This corresponds to the OData navigation property _ProductValuationLedgerPrices.If the navigation property _ProductValuationLedgerPrices of a queried ProductValuation 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.
- Parameters:
entity- Array of ProductValuationLedgerPrices entities.
-
builder
-
getProduct
(Key Field) Constraints: Not nullable, Maximum length: 18Original property name from the Odata EDM: Product
- Returns:
- Product Number
-
getValuationArea
(Key Field) Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationArea
- Returns:
- Valuation Area
-
getValuationType
(Key Field) Constraints: Not nullable, Maximum length: 10Original property name from the Odata EDM: ValuationType
- Returns:
- Valuation Type
-
getValuationClass
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationClass
- Returns:
- Valuation Class
-
getPriceDeterminationControl
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: PriceDeterminationControl
- Returns:
- Material Price Determination: Control
-
getStandardPrice
Constraints: Not nullable, Precision: 11, Scale: 0Original property name from the Odata EDM: StandardPrice
- Returns:
- Standard price
-
getProductPriceUnitQuantity
Constraints: Not nullable, Precision: 5Original property name from the Odata EDM: ProductPriceUnitQuantity
- Returns:
- Price unit
-
getInventoryValuationProcedure
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: InventoryValuationProcedure
- Returns:
- Price Control
-
getMovingAveragePrice
Constraints: Not nullable, Precision: 11, Scale: 0Original property name from the Odata EDM: MovingAveragePrice
- Returns:
- Moving Average Price/Periodic Unit Price
-
getValuationCategory
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ValuationCategory
- Returns:
- Valuation Category
-
getProductUsageType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProductUsageType
- Returns:
- Usage of the Product
-
getProductOriginType
Constraints: Not nullable, Maximum length: 1Original property name from the Odata EDM: ProductOriginType
- Returns:
- Origin of the Product
-
getIsProducedInhouse
Constraints: Not nullableOriginal property name from the Odata EDM: IsProducedInhouse
- Returns:
- Produced in-house
-
getIsMarkedForDeletion
Constraints: Not nullableOriginal property name from the Odata EDM: IsMarkedForDeletion
- Returns:
- Deletion flag for all material data of a valuation type
-
getValuationClassSalesOrderStock
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ValuationClassSalesOrderStock
- Returns:
- Valuation Class for Sales Order Stock
-
getProjectStockValuationClass
Constraints: Not nullable, Maximum length: 4Original property name from the Odata EDM: ProjectStockValuationClass
- Returns:
- Valuation Class for Project Stock
-
getCurrency
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: Currency
- Returns:
- Currency Key
-
getBaseUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseUnit
- Returns:
- Base Unit of Measure
-
getBaseISOUnit
Constraints: Not nullable, Maximum length: 3Original property name from the Odata EDM: BaseISOUnit
- Returns:
- Base unit of measure in ISO code
-
toString
- Overrides:
toStringin classVdmObject<ProductValuation>
-
equals
- Overrides:
equalsin classVdmEntity<ProductValuation>
-
canEqual
- Overrides:
canEqualin classVdmEntity<ProductValuation>
-
hashCode
public int hashCode()- Overrides:
hashCodein classVdmEntity<ProductValuation>
-
getOdataType
- Specified by:
getOdataTypein classVdmObject<ProductValuation>
-