@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialPriceService") public class DefaultMaterialPriceService extends Object implements MaterialPriceService
This service enables you to change the prices of your materials. If stock exists for the material, a revaluation posting is generated.
Reference: SAP API Business Hub
OData Service: | API_MATERIAL_VALUATION_SRV |
API Version: | 1 |
Communication Scenario: | Material Price Changes and Inventory Values Integration (SAP_COM_0147) |
Scope Items: | Managing Material Price Changes and Inventory Values (1ZT) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultMaterialPriceService()
Creates a service using
MaterialPriceService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
InventoryPriceChangeFluentHelper |
inventoryPriceChange(String inventoryValuationType,
String valuationArea,
BigDecimal materialPriceUnitQty,
LocalDateTime postingDate,
BigDecimal inventoryPrice,
String material,
String currencyRole,
String currency)
Creates a fluent helper for the InventoryPriceChange OData function import.
|
DefaultMaterialPriceService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultMaterialPriceService()
MaterialPriceService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultMaterialPriceService withServicePath(@Nonnull String servicePath)
MaterialPriceService
withServicePath
in interface MaterialPriceService
servicePath
- Service path that will override the default.@Nonnull public InventoryPriceChangeFluentHelper inventoryPriceChange(String inventoryValuationType, String valuationArea, BigDecimal materialPriceUnitQty, LocalDateTime postingDate, BigDecimal inventoryPrice, String material, String currencyRole, String currency)
MaterialPriceService
Creates a fluent helper for the InventoryPriceChange OData function import.
inventoryPriceChange
in interface MaterialPriceService
inventoryValuationType
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: InventoryValuationType
valuationArea
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: ValuationArea
materialPriceUnitQty
- Constraints: Not nullable, Precision: 5, Scale: 0
Original parameter name from the Odata EDM: MaterialPriceUnitQty
postingDate
- Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
inventoryPrice
- Constraints: Not nullable, Precision: 4, Scale: 4
Original parameter name from the Odata EDM: InventoryPrice
material
- Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
currencyRole
- Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: CurrencyRole
currency
- Constraints: Not nullable, Maximum length: 5
Original parameter name from the Odata EDM: Currency
execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.