Class DefaultBufferSizingService
- All Implemented Interfaces:
BatchService<BufferSizingServiceBatch>,BufferSizingService
The service contains header and item entities. For read operations, filter information must be sent according to the OData protocol. All filter information is utilized when retrieving buffer sizing data, such as, buffer proposals, average daily usage (ADU), decoupled lead time (DLT), demand and zone adjustments. The buffer proposal, ADU, DLT, longest path in BOM, and actual stock level details are sent in the response. If any issues arise when buffer sizing details are retrieved, the system displays error messages in the response..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_BUFFERSIZING_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Buffer Sizing Integration(SAP_COM_0359) |
| Scope Items: | Demand-Driven Buffer Level Management(1Y2) |
| Authentication Methods: | x509 |
| Business Object: | Product |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.BufferSizingService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingBufferSizingService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionadopt(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion) Deprecated.Creates a fluent helper for the Adopt OData function import.batch()Deprecated.createProposalHeader(ProposalHeader proposalHeader) Deprecated.Create a newProposalHeaderentity and save it to the S/4HANA system.discard(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion) Deprecated.Creates a fluent helper for the Discard OData function import.getActualStockByKey(String material, String plant, String mRPArea, LocalDateTime bufferLevelStartDate) Deprecated.Fetch a singleActualStockentity using key fields.Deprecated.Fetch multipleActualStockentities.Deprecated.Fetch multipleDemandAdjustmentFactorsentities.Deprecated.Fetch multipleDemandAdjustmentsentities.Deprecated.Fetch multipleLongestPathInBOMentities.Deprecated.Fetch multipleProposalHeaderentities.Deprecated.Fetch multipleZoneAdjustmentsentities.getDemandAdjustmentFactorsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate) Deprecated.Fetch a singleDemandAdjustmentFactorsentity using key fields.getDemandAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate) Deprecated.Fetch a singleDemandAdjustmentsentity using key fields.getLongestPathInBOMByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, UUID billOfMaterialUUID, String parentComponent, String parentPlant, String billOfMaterialComponent, String componentPlant) Deprecated.Fetch a singleLongestPathInBOMentity using key fields.getProposalHeaderByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion) Deprecated.Fetch a singleProposalHeaderentity using key fields.getZoneAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime bufPrpslZoneAdjmtFctrStartDate) Deprecated.Fetch a singleZoneAdjustmentsentity using key fields.resume(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion) Deprecated.Creates a fluent helper for the Resume OData function import.suspend(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, String stockLevelProposalStatus, LocalDateTime proposalRunSuspendedFromDate, LocalDateTime proposalRunSuspendedToDate) Deprecated.Creates a fluent helper for the Suspend OData function import.updateDemandAdjustmentFactors(DemandAdjustmentFactors demandAdjustmentFactors) Deprecated.Update an existingDemandAdjustmentFactorsentity and save it to the S/4HANA system.updateDemandAdjustments(DemandAdjustments demandAdjustments) Deprecated.Update an existingDemandAdjustmentsentity and save it to the S/4HANA system.updateZoneAdjustments(ZoneAdjustments zoneAdjustments) Deprecated.Update an existingZoneAdjustmentsentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultBufferSizingService
public DefaultBufferSizingService()Deprecated.Creates a service usingBufferSizingService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:BufferSizingServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceBufferSizingService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<BufferSizingServiceBatch>
-
getAllDemandAdjustments
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleDemandAdjustmentsentities.- Specified by:
getAllDemandAdjustmentsin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
DemandAdjustmentsentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getDemandAdjustmentsByKey
@Nonnull public DemandAdjustmentsByKeyFluentHelper getDemandAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleDemandAdjustmentsentity using key fields.- Specified by:
getDemandAdjustmentsByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
proposalStartDate- Proposal Validity From DateConstraints: Not nullable, Precision: 0
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
proposalDmndAdjmtFctrStartDate- Proposal Details Valid FromConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
DemandAdjustmentsentity 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 theexecutemethod on the fluent helper object.
-
updateDemandAdjustments
@Nonnull public DemandAdjustmentsUpdateFluentHelper updateDemandAdjustments(@Nonnull DemandAdjustments demandAdjustments) Deprecated.Description copied from interface:BufferSizingServiceUpdate an existingDemandAdjustmentsentity and save it to the S/4HANA system.- Specified by:
updateDemandAdjustmentsin interfaceBufferSizingService- Parameters:
demandAdjustments-DemandAdjustmentsentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
DemandAdjustmentsentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllDemandAdjustmentFactors
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleDemandAdjustmentFactorsentities.- Specified by:
getAllDemandAdjustmentFactorsin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
DemandAdjustmentFactorsentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getDemandAdjustmentFactorsByKey
@Nonnull public DemandAdjustmentFactorsByKeyFluentHelper getDemandAdjustmentFactorsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleDemandAdjustmentFactorsentity using key fields.- Specified by:
getDemandAdjustmentFactorsByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
proposalStartDate- Proposal Validity From DateConstraints: Not nullable, Precision: 0
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
proposalDmndAdjmtFctrStartDate- Proposal Details Valid FromConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
DemandAdjustmentFactorsentity 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 theexecutemethod on the fluent helper object.
-
updateDemandAdjustmentFactors
@Nonnull public DemandAdjustmentFactorsUpdateFluentHelper updateDemandAdjustmentFactors(@Nonnull DemandAdjustmentFactors demandAdjustmentFactors) Deprecated.Description copied from interface:BufferSizingServiceUpdate an existingDemandAdjustmentFactorsentity and save it to the S/4HANA system.- Specified by:
updateDemandAdjustmentFactorsin interfaceBufferSizingService- Parameters:
demandAdjustmentFactors-DemandAdjustmentFactorsentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
DemandAdjustmentFactorsentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllZoneAdjustments
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleZoneAdjustmentsentities.- Specified by:
getAllZoneAdjustmentsin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
ZoneAdjustmentsentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getZoneAdjustmentsByKey
@Nonnull public ZoneAdjustmentsByKeyFluentHelper getZoneAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime bufPrpslZoneAdjmtFctrStartDate) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleZoneAdjustmentsentity using key fields.- Specified by:
getZoneAdjustmentsByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
proposalStartDate- Proposal Validity From DateConstraints: Not nullable, Precision: 0
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
bufPrpslZoneAdjmtFctrStartDate- Proposal Zones Valid FromConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
ZoneAdjustmentsentity 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 theexecutemethod on the fluent helper object.
-
updateZoneAdjustments
@Nonnull public ZoneAdjustmentsUpdateFluentHelper updateZoneAdjustments(@Nonnull ZoneAdjustments zoneAdjustments) Deprecated.Description copied from interface:BufferSizingServiceUpdate an existingZoneAdjustmentsentity and save it to the S/4HANA system.- Specified by:
updateZoneAdjustmentsin interfaceBufferSizingService- Parameters:
zoneAdjustments-ZoneAdjustmentsentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
ZoneAdjustmentsentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllProposalHeader
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleProposalHeaderentities.- Specified by:
getAllProposalHeaderin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
ProposalHeaderentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getProposalHeaderByKey
@Nonnull public ProposalHeaderByKeyFluentHelper getProposalHeaderByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleProposalHeaderentity using key fields.- Specified by:
getProposalHeaderByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
proposalStartDate- Proposal Validity From DateConstraints: Not nullable, Precision: 0
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
- Returns:
- A fluent helper to fetch a single
ProposalHeaderentity 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 theexecutemethod on the fluent helper object.
-
createProposalHeader
@Nonnull public ProposalHeaderCreateFluentHelper createProposalHeader(@Nonnull ProposalHeader proposalHeader) Deprecated.Description copied from interface:BufferSizingServiceCreate a newProposalHeaderentity and save it to the S/4HANA system.- Specified by:
createProposalHeaderin interfaceBufferSizingService- Parameters:
proposalHeader-ProposalHeaderentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
ProposalHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllActualStock
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleActualStockentities.- Specified by:
getAllActualStockin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
ActualStockentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getActualStockByKey
@Nonnull public ActualStockByKeyFluentHelper getActualStockByKey(String material, String plant, String mRPArea, LocalDateTime bufferLevelStartDate) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleActualStockentity using key fields.- Specified by:
getActualStockByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
bufferLevelStartDate- Valid-From DateConstraints: Not nullable, Precision: 0
- Returns:
- A fluent helper to fetch a single
ActualStockentity 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 theexecutemethod on the fluent helper object.
-
getAllLongestPathInBOM
Deprecated.Description copied from interface:BufferSizingServiceFetch multipleLongestPathInBOMentities.- Specified by:
getAllLongestPathInBOMin interfaceBufferSizingService- Returns:
- A fluent helper to fetch multiple
LongestPathInBOMentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLongestPathInBOMByKey
@Nonnull public LongestPathInBOMByKeyFluentHelper getLongestPathInBOMByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, UUID billOfMaterialUUID, String parentComponent, String parentPlant, String billOfMaterialComponent, String componentPlant) Deprecated.Description copied from interface:BufferSizingServiceFetch a singleLongestPathInBOMentity using key fields.- Specified by:
getLongestPathInBOMByKeyin interfaceBufferSizingService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
plant- PlantConstraints: Not nullable, Maximum length: 4
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
proposalStartDate- Proposal Validity From DateConstraints: Not nullable, Precision: 0
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
billOfMaterialUUID- Internal Key for BOMIDConstraints: Not nullable
parentComponent- Parent BOM ComponentConstraints: Not nullable, Maximum length: 18
parentPlant- Parent PlantConstraints: Not nullable, Maximum length: 4
billOfMaterialComponent- BOM componentConstraints: Not nullable, Maximum length: 18
componentPlant- Component PlantConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
LongestPathInBOMentity 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 theexecutemethod on the fluent helper object.
-
adopt
@Nonnull public AdoptFluentHelper adopt(@Nonnull String material, @Nonnull String plant, @Nonnull String mRPArea, @Nonnull LocalDateTime proposalStartDate, @Nonnull String proposalVersion) Deprecated.Description copied from interface:BufferSizingServiceCreates a fluent helper for the Adopt OData function import.
- Specified by:
adoptin interfaceBufferSizingService- Parameters:
material- MaterialConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate- Proposal Valid FromConstraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
- Returns:
- A fluent helper object that will execute the Adopt OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-
discard
@Nonnull public DiscardFluentHelper discard(@Nonnull String material, @Nonnull String plant, @Nonnull String mRPArea, @Nonnull LocalDateTime proposalStartDate, @Nonnull String proposalVersion) Deprecated.Description copied from interface:BufferSizingServiceCreates a fluent helper for the Discard OData function import.
- Specified by:
discardin interfaceBufferSizingService- Parameters:
material- MaterialConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate- Proposal Valid FromConstraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
- Returns:
- A fluent helper object that will execute the Discard OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-
resume
@Nonnull public ResumeFluentHelper resume(@Nonnull String material, @Nonnull String plant, @Nonnull String mRPArea, @Nonnull LocalDateTime proposalStartDate, @Nonnull String proposalVersion) Deprecated.Description copied from interface:BufferSizingServiceCreates a fluent helper for the Resume OData function import.
- Specified by:
resumein interfaceBufferSizingService- Parameters:
material- MaterialConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate- Proposal Valid FromConstraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
- Returns:
- A fluent helper object that will execute the Resume OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-
suspend
@Nonnull public SuspendFluentHelper suspend(@Nonnull String material, @Nonnull String plant, @Nonnull String mRPArea, @Nonnull LocalDateTime proposalStartDate, @Nonnull String proposalVersion, @Nullable String stockLevelProposalStatus, @Nullable LocalDateTime proposalRunSuspendedFromDate, @Nullable LocalDateTime proposalRunSuspendedToDate) Deprecated.Description copied from interface:BufferSizingServiceCreates a fluent helper for the Suspend OData function import.
- Specified by:
suspendin interfaceBufferSizingService- Parameters:
material- MaterialConstraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant- PlantConstraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea- MRP AreaConstraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate- Proposal Valid FromConstraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion- Proposal VersionConstraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
stockLevelProposalStatus- Proposal StatusConstraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: StockLevelProposalStatus
proposalRunSuspendedFromDate- Prpsl Run Susp StartConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalRunSuspendedFromDate
proposalRunSuspendedToDate- Prpsl Run Susp EndConstraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalRunSuspendedToDate
- Returns:
- A fluent helper object that will execute the Suspend OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-