@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBufferSizingService") public class DefaultBufferSizingService extends Object implements 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 API Business Hub
OData Service: | API_BUFFERSIZING_SRV |
API Version: | 1 |
Communication Scenario: | Buffer Sizing Integration (SAP_COM_0359) |
Scope Items: | Demand-Driven Buffer Level Management (1Y2) |
Authentication Methods: | Basic, x509 |
Business Object: | Product |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultBufferSizingService()
Creates a service using
BufferSizingService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
AdoptFluentHelper |
adopt(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion)
Creates a fluent helper for the Adopt OData function import.
|
DefaultBufferSizingServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
ProposalHeaderCreateFluentHelper |
createProposalHeader(ProposalHeader proposalHeader)
Create a new
ProposalHeader entity and save it to the S/4HANA system. |
DiscardFluentHelper |
discard(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion)
Creates a fluent helper for the Discard OData function import.
|
ActualStockByKeyFluentHelper |
getActualStockByKey(String material,
String plant,
String mRPArea,
LocalDateTime bufferLevelStartDate)
Fetch a single
ActualStock
entity using key fields. |
ActualStockFluentHelper |
getAllActualStock()
Fetch multiple
ActualStock
entities. |
DemandAdjustmentFactorsFluentHelper |
getAllDemandAdjustmentFactors()
Fetch multiple
DemandAdjustmentFactors entities. |
DemandAdjustmentsFluentHelper |
getAllDemandAdjustments()
Fetch multiple
DemandAdjustments entities. |
LongestPathInBOMFluentHelper |
getAllLongestPathInBOM()
Fetch multiple
LongestPathInBOM entities. |
ProposalHeaderFluentHelper |
getAllProposalHeader()
Fetch multiple
ProposalHeader entities. |
ZoneAdjustmentsFluentHelper |
getAllZoneAdjustments()
Fetch multiple
ZoneAdjustments entities. |
DemandAdjustmentFactorsByKeyFluentHelper |
getDemandAdjustmentFactorsByKey(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
LocalDateTime proposalDmndAdjmtFctrStartDate)
Fetch a single
DemandAdjustmentFactors entity using key fields. |
DemandAdjustmentsByKeyFluentHelper |
getDemandAdjustmentsByKey(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
LocalDateTime proposalDmndAdjmtFctrStartDate)
Fetch a single
DemandAdjustments entity using key fields. |
LongestPathInBOMByKeyFluentHelper |
getLongestPathInBOMByKey(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
UUID billOfMaterialUUID,
String parentComponent,
String parentPlant,
String billOfMaterialComponent,
String componentPlant)
Fetch a single
LongestPathInBOM entity using key fields. |
ProposalHeaderByKeyFluentHelper |
getProposalHeaderByKey(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion)
Fetch a single
ProposalHeader entity using key fields. |
ZoneAdjustmentsByKeyFluentHelper |
getZoneAdjustmentsByKey(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
LocalDateTime bufPrpslZoneAdjmtFctrStartDate)
Fetch a single
ZoneAdjustments entity using key fields. |
ResumeFluentHelper |
resume(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion)
Creates a fluent helper for the Resume OData function import.
|
SuspendFluentHelper |
suspend(String material,
String plant,
String mRPArea,
LocalDateTime proposalStartDate,
String proposalVersion,
String stockLevelProposalStatus,
LocalDateTime proposalRunSuspendedFromDate,
LocalDateTime proposalRunSuspendedToDate)
Creates a fluent helper for the Suspend OData function import.
|
DemandAdjustmentFactorsUpdateFluentHelper |
updateDemandAdjustmentFactors(DemandAdjustmentFactors demandAdjustmentFactors)
Update an existing
DemandAdjustmentFactors entity and save it to the S/4HANA system. |
DemandAdjustmentsUpdateFluentHelper |
updateDemandAdjustments(DemandAdjustments demandAdjustments)
Update an existing
DemandAdjustments entity and save it to the S/4HANA system. |
ZoneAdjustmentsUpdateFluentHelper |
updateZoneAdjustments(ZoneAdjustments zoneAdjustments)
Update an existing
ZoneAdjustments entity and save it to the S/4HANA system. |
DefaultBufferSizingService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultBufferSizingService()
BufferSizingService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultBufferSizingService withServicePath(@Nonnull String servicePath)
BufferSizingService
withServicePath
in interface BufferSizingService
servicePath
- Service path that will override the default.@Nonnull public DefaultBufferSizingServiceBatch batch()
batch
in interface BatchService<BufferSizingServiceBatch>
@Nonnull public DemandAdjustmentsFluentHelper getAllDemandAdjustments()
BufferSizingService
DemandAdjustments
entities.getAllDemandAdjustments
in interface BufferSizingService
DemandAdjustments
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 DemandAdjustmentsByKeyFluentHelper getDemandAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate)
BufferSizingService
DemandAdjustments
entity using key fields.getDemandAdjustmentsByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
proposalStartDate
- Proposal Validity From Date
Constraints: Not nullable, Precision: 0
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
proposalDmndAdjmtFctrStartDate
- Proposal Details Valid From
Constraints: Not nullable, Precision: 0
DemandAdjustments
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 DemandAdjustmentsUpdateFluentHelper updateDemandAdjustments(@Nonnull DemandAdjustments demandAdjustments)
BufferSizingService
DemandAdjustments
entity and save it to the S/4HANA system.updateDemandAdjustments
in interface BufferSizingService
demandAdjustments
- DemandAdjustments
entity object that will be updated in the S/4HANA system.DemandAdjustments
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public DemandAdjustmentFactorsFluentHelper getAllDemandAdjustmentFactors()
BufferSizingService
DemandAdjustmentFactors
entities.getAllDemandAdjustmentFactors
in interface BufferSizingService
DemandAdjustmentFactors
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 DemandAdjustmentFactorsByKeyFluentHelper getDemandAdjustmentFactorsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime proposalDmndAdjmtFctrStartDate)
BufferSizingService
DemandAdjustmentFactors
entity using key fields.getDemandAdjustmentFactorsByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
proposalStartDate
- Proposal Validity From Date
Constraints: Not nullable, Precision: 0
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
proposalDmndAdjmtFctrStartDate
- Proposal Details Valid From
Constraints: Not nullable, Precision: 0
DemandAdjustmentFactors
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 DemandAdjustmentFactorsUpdateFluentHelper updateDemandAdjustmentFactors(@Nonnull DemandAdjustmentFactors demandAdjustmentFactors)
BufferSizingService
DemandAdjustmentFactors
entity and save it to the S/4HANA system.updateDemandAdjustmentFactors
in interface BufferSizingService
demandAdjustmentFactors
- DemandAdjustmentFactors
entity object that will be updated in the S/4HANA system.DemandAdjustmentFactors
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ZoneAdjustmentsFluentHelper getAllZoneAdjustments()
BufferSizingService
ZoneAdjustments
entities.getAllZoneAdjustments
in interface BufferSizingService
ZoneAdjustments
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 ZoneAdjustmentsByKeyFluentHelper getZoneAdjustmentsByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, LocalDateTime bufPrpslZoneAdjmtFctrStartDate)
BufferSizingService
ZoneAdjustments
entity using key fields.getZoneAdjustmentsByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
proposalStartDate
- Proposal Validity From Date
Constraints: Not nullable, Precision: 0
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
bufPrpslZoneAdjmtFctrStartDate
- Proposal Zones Valid From
Constraints: Not nullable, Precision: 0
ZoneAdjustments
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 ZoneAdjustmentsUpdateFluentHelper updateZoneAdjustments(@Nonnull ZoneAdjustments zoneAdjustments)
BufferSizingService
ZoneAdjustments
entity and save it to the S/4HANA system.updateZoneAdjustments
in interface BufferSizingService
zoneAdjustments
- ZoneAdjustments
entity object that will be updated in the S/4HANA system.ZoneAdjustments
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ProposalHeaderFluentHelper getAllProposalHeader()
BufferSizingService
ProposalHeader
entities.getAllProposalHeader
in interface BufferSizingService
ProposalHeader
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 ProposalHeaderByKeyFluentHelper getProposalHeaderByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion)
BufferSizingService
ProposalHeader
entity using key fields.getProposalHeaderByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
proposalStartDate
- Proposal Validity From Date
Constraints: Not nullable, Precision: 0
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
ProposalHeader
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 ProposalHeaderCreateFluentHelper createProposalHeader(@Nonnull ProposalHeader proposalHeader)
BufferSizingService
ProposalHeader
entity and save it to the S/4HANA system.createProposalHeader
in interface BufferSizingService
proposalHeader
- ProposalHeader
entity object that will be created in the S/4HANA system.ProposalHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ActualStockFluentHelper getAllActualStock()
BufferSizingService
ActualStock
entities.getAllActualStock
in interface BufferSizingService
ActualStock
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 ActualStockByKeyFluentHelper getActualStockByKey(String material, String plant, String mRPArea, LocalDateTime bufferLevelStartDate)
BufferSizingService
ActualStock
entity using key fields.getActualStockByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
bufferLevelStartDate
- Valid-From Date
Constraints: Not nullable, Precision: 0
ActualStock
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 LongestPathInBOMFluentHelper getAllLongestPathInBOM()
BufferSizingService
LongestPathInBOM
entities.getAllLongestPathInBOM
in interface BufferSizingService
LongestPathInBOM
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 LongestPathInBOMByKeyFluentHelper getLongestPathInBOMByKey(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, UUID billOfMaterialUUID, String parentComponent, String parentPlant, String billOfMaterialComponent, String componentPlant)
BufferSizingService
LongestPathInBOM
entity using key fields.getLongestPathInBOMByKey
in interface BufferSizingService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 18
plant
- Key uniquely identifying a plant.
Constraints: Not nullable, Maximum length: 4
mRPArea
- Number of the MRP area for which material requirements planning should be carried out separately.
Constraints: Not nullable, Maximum length: 10
proposalStartDate
- Proposal Validity From Date
Constraints: Not nullable, Precision: 0
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
billOfMaterialUUID
- Internal Key for BOMID
Constraints: Not nullable
parentComponent
- Parent BOM Component
Constraints: Not nullable, Maximum length: 18
parentPlant
- Parent Plant
Constraints: Not nullable, Maximum length: 4
billOfMaterialComponent
- Material number of the components that you enter, change or display as part of the BOM.
Constraints: Not nullable, Maximum length: 18
componentPlant
- Component Plant
Constraints: Not nullable, Maximum length: 4
LongestPathInBOM
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 AdoptFluentHelper adopt(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion)
BufferSizingService
Creates a fluent helper for the Adopt OData function import.
adopt
in interface BufferSizingService
material
- Material
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Plant
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- MRP Area
Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate
- Proposal Valid From
Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
execute
method on the fluent helper object.@Nonnull public DiscardFluentHelper discard(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion)
BufferSizingService
Creates a fluent helper for the Discard OData function import.
discard
in interface BufferSizingService
material
- Material
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Plant
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- MRP Area
Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate
- Proposal Valid From
Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
execute
method on the fluent helper object.@Nonnull public ResumeFluentHelper resume(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion)
BufferSizingService
Creates a fluent helper for the Resume OData function import.
resume
in interface BufferSizingService
material
- Material
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Plant
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- MRP Area
Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate
- Proposal Valid From
Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
execute
method on the fluent helper object.@Nonnull public SuspendFluentHelper suspend(String material, String plant, String mRPArea, LocalDateTime proposalStartDate, String proposalVersion, String stockLevelProposalStatus, LocalDateTime proposalRunSuspendedFromDate, LocalDateTime proposalRunSuspendedToDate)
BufferSizingService
Creates a fluent helper for the Suspend OData function import.
suspend
in interface BufferSizingService
material
- Material
Constraints: Not nullable, Maximum length: 40
Original parameter name from the Odata EDM: Material
plant
- Plant
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Plant
mRPArea
- MRP Area
Constraints: Not nullable, Maximum length: 10
Original parameter name from the Odata EDM: MRPArea
proposalStartDate
- Proposal Valid From
Constraints: Not nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalStartDate
proposalVersion
- Proposal Version
Constraints: Not nullable, Maximum length: 8
Original parameter name from the Odata EDM: ProposalVersion
stockLevelProposalStatus
- Proposal Status
Constraints: Nullable, Maximum length: 1
Original parameter name from the Odata EDM: StockLevelProposalStatus
proposalRunSuspendedFromDate
- Prpsl Run Susp Start
Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalRunSuspendedFromDate
proposalRunSuspendedToDate
- Prpsl Run Susp End
Constraints: Nullable, Precision: 0
Original parameter name from the Odata EDM: ProposalRunSuspendedToDate
execute
method on the fluent helper object.Copyright © 2020 SAP SE. All rights reserved.