@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultTimeDependentStockLevelService") public class DefaultTimeDependentStockLevelService extends Object implements TimeDependentStockLevelService
The service contains one entity. For read operations, filter information must be sent according to the OData protocol. All filter information is utilized when retrieving stock level information, such as, product, Plant, MRP area, max stock, reorder point, safety stock, and so on. The stock levels maintained for a product, such as, max stock, reorder point and safety stock for each date range is sent in the response. If any issues arise when these details are retrieved, the system displays error messages in the response. .
Reference: SAP API Business Hub
OData Service: | OP_API_PROD_TIMEDPDNTSTCK_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Product |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultTimeDependentStockLevelService()
Creates a service using
TimeDependentStockLevelService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultTimeDependentStockLevelServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
ProdTimeDepdntStockLvlCreateFluentHelper |
createProdTimeDepdntStockLvl(ProdTimeDepdntStockLvl prodTimeDepdntStockLvl)
Create a new
ProdTimeDepdntStockLvl entity and save it to the S/4HANA system. |
ProdTimeDepdntStockLvlFluentHelper |
getAllProdTimeDepdntStockLvl()
Fetch multiple
ProdTimeDepdntStockLvl entities. |
ProdTimeDepdntStockLvlByKeyFluentHelper |
getProdTimeDepdntStockLvlByKey(String product,
String plant,
String mRPArea,
LocalDateTime stockLevelValidityStartDate)
Fetch a single
ProdTimeDepdntStockLvl entity using key fields. |
InsertAndAdjustStkLvlIntervalFluentHelper |
insertAndAdjustStkLvlInterval(String product,
String plant,
String mRPArea,
LocalDateTime stockLevelValidityStartDate,
LocalDateTime stockLevelValidityEndDate,
BigDecimal productSafetyStockLvlQuantity,
BigDecimal reorderThresholdQuantity,
BigDecimal productMaxStockLevelQuantity,
BigDecimal productTargetStockLvlQuantity,
String unitOfMeasure,
String unitOfMeasureISOCode,
String targetSupplyDurationInDays,
String maxSupplyDurationInDays,
String safetySupplyDurationInDays)
Creates a fluent helper for the InsertAndAdjustStkLvlInterval OData function import.
|
SplitStockLevelIntervalFluentHelper |
splitStockLevelInterval(String product,
String plant,
String mRPArea,
LocalDateTime stockLevelValidityStartDate,
LocalDateTime stockLevelValidityEndDate,
BigDecimal productSafetyStockLvlQuantity,
BigDecimal reorderThresholdQuantity,
BigDecimal productMaxStockLevelQuantity,
BigDecimal productTargetStockLvlQuantity,
String unitOfMeasure,
String unitOfMeasureISOCode,
String targetSupplyDurationInDays,
String maxSupplyDurationInDays,
String safetySupplyDurationInDays)
Creates a fluent helper for the SplitStockLevelInterval OData function import.
|
ProdTimeDepdntStockLvlUpdateFluentHelper |
updateProdTimeDepdntStockLvl(ProdTimeDepdntStockLvl prodTimeDepdntStockLvl)
Update an existing
ProdTimeDepdntStockLvl entity and save it to the S/4HANA system. |
DefaultTimeDependentStockLevelService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultTimeDependentStockLevelService()
TimeDependentStockLevelService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultTimeDependentStockLevelService withServicePath(@Nonnull String servicePath)
TimeDependentStockLevelService
withServicePath
in interface TimeDependentStockLevelService
servicePath
- Service path that will override the default.@Nonnull public DefaultTimeDependentStockLevelServiceBatch batch()
batch
in interface BatchService<TimeDependentStockLevelServiceBatch>
@Nonnull public ProdTimeDepdntStockLvlFluentHelper getAllProdTimeDepdntStockLvl()
TimeDependentStockLevelService
ProdTimeDepdntStockLvl
entities.getAllProdTimeDepdntStockLvl
in interface TimeDependentStockLevelService
ProdTimeDepdntStockLvl
entities. This fluent helper allows methods which modify the underlying query to
be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ProdTimeDepdntStockLvlByKeyFluentHelper getProdTimeDepdntStockLvlByKey(String product, String plant, String mRPArea, LocalDateTime stockLevelValidityStartDate)
TimeDependentStockLevelService
ProdTimeDepdntStockLvl
entity using key fields.getProdTimeDepdntStockLvlByKey
in interface TimeDependentStockLevelService
product
- Material Number
Constraints: Not nullable, Maximum length: 40
plant
- Plant
Constraints: Not nullable, Maximum length: 4
mRPArea
- MRP Area
Constraints: Not nullable, Maximum length: 10
stockLevelValidityStartDate
- Valid-From Date
Constraints: Not nullable, Precision: 0
ProdTimeDepdntStockLvl
entity using key fields. This fluent helper allows methods which modify the
underlying query to be called before executing the query itself. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ProdTimeDepdntStockLvlCreateFluentHelper createProdTimeDepdntStockLvl(@Nonnull ProdTimeDepdntStockLvl prodTimeDepdntStockLvl)
TimeDependentStockLevelService
ProdTimeDepdntStockLvl
entity and save it to the S/4HANA system.createProdTimeDepdntStockLvl
in interface TimeDependentStockLevelService
prodTimeDepdntStockLvl
- ProdTimeDepdntStockLvl
entity object that will be created in the S/4HANA system.ProdTimeDepdntStockLvl
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ProdTimeDepdntStockLvlUpdateFluentHelper updateProdTimeDepdntStockLvl(@Nonnull ProdTimeDepdntStockLvl prodTimeDepdntStockLvl)
TimeDependentStockLevelService
ProdTimeDepdntStockLvl
entity and save it to the S/4HANA system.updateProdTimeDepdntStockLvl
in interface TimeDependentStockLevelService
prodTimeDepdntStockLvl
- ProdTimeDepdntStockLvl
entity object that will be updated in the S/4HANA system.ProdTimeDepdntStockLvl
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public InsertAndAdjustStkLvlIntervalFluentHelper insertAndAdjustStkLvlInterval(String product, String plant, String mRPArea, LocalDateTime stockLevelValidityStartDate, LocalDateTime stockLevelValidityEndDate, BigDecimal productSafetyStockLvlQuantity, BigDecimal reorderThresholdQuantity, BigDecimal productMaxStockLevelQuantity, BigDecimal productTargetStockLvlQuantity, String unitOfMeasure, String unitOfMeasureISOCode, String targetSupplyDurationInDays, String maxSupplyDurationInDays, String safetySupplyDurationInDays)
TimeDependentStockLevelService
Creates a fluent helper for the InsertAndAdjustStkLvlInterval OData function import.
insertAndAdjustStkLvlInterval
in interface TimeDependentStockLevelService
product
- Constraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: Product
plant
- Constraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- Constraints: Nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
stockLevelValidityStartDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: StockLevelValidityStartDate
stockLevelValidityEndDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: StockLevelValidityEndDate
productSafetyStockLvlQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductSafetyStockLvlQuantity
reorderThresholdQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ReorderThresholdQuantity
productMaxStockLevelQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductMaxStockLevelQuantity
productTargetStockLvlQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductTargetStockLvlQuantity
unitOfMeasure
- Constraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: UnitOfMeasure
unitOfMeasureISOCode
- Constraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: UnitOfMeasureISOCode
targetSupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: TargetSupplyDurationInDays
maxSupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: MaxSupplyDurationInDays
safetySupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: SafetySupplyDurationInDays
execute
method on the fluent helper object.@Nonnull public SplitStockLevelIntervalFluentHelper splitStockLevelInterval(String product, String plant, String mRPArea, LocalDateTime stockLevelValidityStartDate, LocalDateTime stockLevelValidityEndDate, BigDecimal productSafetyStockLvlQuantity, BigDecimal reorderThresholdQuantity, BigDecimal productMaxStockLevelQuantity, BigDecimal productTargetStockLvlQuantity, String unitOfMeasure, String unitOfMeasureISOCode, String targetSupplyDurationInDays, String maxSupplyDurationInDays, String safetySupplyDurationInDays)
TimeDependentStockLevelService
Creates a fluent helper for the SplitStockLevelInterval OData function import.
splitStockLevelInterval
in interface TimeDependentStockLevelService
product
- Constraints: Nullable, Maximum length: 40
Original parameter name from the Odata EDM: Product
plant
- Constraints: Nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- Constraints: Nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
stockLevelValidityStartDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: StockLevelValidityStartDate
stockLevelValidityEndDate
- Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: StockLevelValidityEndDate
productSafetyStockLvlQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductSafetyStockLvlQuantity
reorderThresholdQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ReorderThresholdQuantity
productMaxStockLevelQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductMaxStockLevelQuantity
productTargetStockLvlQuantity
- Constraints: Nullable, Precision: 13, Scale: 3
Original parameter name from the Odata EDM: ProductTargetStockLvlQuantity
unitOfMeasure
- Constraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: UnitOfMeasure
unitOfMeasureISOCode
- Constraints: Nullable, Maximum length: 3
Original parameter name from the Odata EDM: UnitOfMeasureISOCode
targetSupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: TargetSupplyDurationInDays
maxSupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: MaxSupplyDurationInDays
safetySupplyDurationInDays
- Constraints: Nullable, Maximum length: 2
Original parameter name from the Odata EDM: SafetySupplyDurationInDays
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.