Class DefaultMaterialPriceService

java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialPriceService
All Implemented Interfaces:
BatchService<MaterialPriceServiceBatch>, MaterialPriceService

@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialPriceService") @Deprecated public class DefaultMaterialPriceService extends Object implements MaterialPriceService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the VDM.

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.

Business Documentation

Reference: SAP Business Accelerator Hub

Details:

OData Service: API_MATERIAL_VALUATION_SRV
API Version: 1.0.0
Minimum ERP Version: 2302
Communication Scenario: Material Price Changes and Inventory Values Integration(SAP_COM_0147)
Scope Items: Managing Material Price Changes and Inventory Values(1ZT), Managing Material Price Changes and Inventory Values(OZT)
Authentication Methods: x509
Business Object: Product
  • Constructor Details

  • Method Details

    • withServicePath

      @Nonnull public DefaultMaterialPriceService withServicePath(@Nonnull String servicePath)
      Deprecated.
      Description copied from interface: MaterialPriceService
      Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.
      Specified by:
      withServicePath in interface MaterialPriceService
      Parameters:
      servicePath - Service path that will override the default.
      Returns:
      A new service instance with the specified service path.
    • batch

      @Nonnull public DefaultMaterialPriceServiceBatch batch()
      Deprecated.
      Specified by:
      batch in interface BatchService<MaterialPriceServiceBatch>
    • inventoryPriceChange

      @Nonnull public InventoryPriceChangeFluentHelper inventoryPriceChange(@Nonnull String currency, @Nonnull String currencyRole, @Nonnull String material, @Nonnull BigDecimal inventoryPrice, @Nonnull LocalDateTime postingDate, @Nonnull BigDecimal materialPriceUnitQty, @Nonnull String valuationArea, @Nonnull String inventoryValuationType)
      Deprecated.
      Description copied from interface: MaterialPriceService

      Creates a fluent helper for the InventoryPriceChange OData function import.

      Specified by:
      inventoryPriceChange in interface MaterialPriceService
      Parameters:
      currency - Currency

      Constraints: Not nullable, Maximum length: 5

      Original parameter name from the Odata EDM: Currency

      currencyRole - Crcy type/val.

      Constraints: Not nullable, Maximum length: 2

      Original parameter name from the Odata EDM: CurrencyRole

      material - Material

      Constraints: Not nullable, Maximum length: 40

      Original parameter name from the Odata EDM: Material

      inventoryPrice - Price

      Constraints: Not nullable, Precision: 4, Scale: 4

      Original parameter name from the Odata EDM: InventoryPrice

      postingDate - Posting Date

      Constraints: Not nullable, Precision: 0

      Original parameter name from the Odata EDM: PostingDate

      materialPriceUnitQty - Price unit

      Constraints: Not nullable, Precision: 5, Scale: 0

      Original parameter name from the Odata EDM: MaterialPriceUnitQty

      valuationArea - Valuation Area

      Constraints: Not nullable, Maximum length: 4

      Original parameter name from the Odata EDM: ValuationArea

      inventoryValuationType - Valuation Type

      Constraints: Not nullable, Maximum length: 10

      Original parameter name from the Odata EDM: InventoryValuationType

      Returns:
      A fluent helper object that will execute the InventoryPriceChange OData function import with the provided parameters. To perform execution, call the execute method on the fluent helper object.