@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultMaterialPriceService") public class DefaultMaterialPriceService extends Object implements MaterialPriceService
This service enables you to change the existing prices of your materials by importing new prices into the material master. If stock exists for the material, a revaluation posting is generated. The revaluation posting indicates the material ledger document number and year..
Reference: SAP API Business Hub
OData Service: | OP_API_MATERIAL_VALUATION_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Product |
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 |
---|---|
DefaultMaterialPriceServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
InventoryPriceChangeFluentHelper |
inventoryPriceChange(String currency,
String currencyRole,
String material,
BigDecimal inventoryPrice,
LocalDateTime postingDate,
BigDecimal materialPriceUnitQty,
String valuationArea,
String inventoryValuationType)
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 DefaultMaterialPriceServiceBatch batch()
batch
in interface BatchService<MaterialPriceServiceBatch>
@Nonnull public InventoryPriceChangeFluentHelper inventoryPriceChange(String currency, String currencyRole, String material, BigDecimal inventoryPrice, LocalDateTime postingDate, BigDecimal materialPriceUnitQty, String valuationArea, String inventoryValuationType)
MaterialPriceService
Creates a fluent helper for the InventoryPriceChange OData function import.
inventoryPriceChange
in interface MaterialPriceService
currency
- Constraints: Not nullable, Maximum length: 5
Original parameter name from the Odata EDM: Currency
currencyRole
- Constraints: Not nullable, Maximum length: 2
Original parameter name from the Odata EDM: CurrencyRole
material
- Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
inventoryPrice
- Constraints: Not nullable, Precision: 4, Scale: 4
Original parameter name from the Odata EDM: InventoryPrice
postingDate
- Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: PostingDate
materialPriceUnitQty
- Constraints: Not nullable, Precision: 5, Scale: 0
Original parameter name from the Odata EDM: MaterialPriceUnitQty
valuationArea
- Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: ValuationArea
inventoryValuationType
- Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: InventoryValuationType
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.