@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultBufferSizingService") public class DefaultBufferSizingService extends Object implements BufferSizingService
This synchronous inbound service enables external systems to read, create, and update buffer sizing data through API calls. You can use it to let external systems retrieve or create data, such as, buffer proposals, average daily usage (ADU), decoupled lead time (DLT), demand and zone adjustments. It also lets external systems to update demand and zone adjustment factors.
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. |
DemandAdjustmentsFluentHelper |
getAllDemandAdjustments()
Fetch multiple
DemandAdjustments entities. |
LongestPathInBOMFluentHelper |
getAllLongestPathInBOM()
Fetch multiple
LongestPathInBOM entities. |
ProposalHeaderFluentHelper |
getAllProposalHeader()
Fetch multiple
ProposalHeader entities. |
ZoneAdjustmentsFluentHelper |
getAllZoneAdjustments()
Fetch multiple
ZoneAdjustments entities. |
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.
|
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 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 © 2019 SAP SE. All rights reserved.