Interface MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
- All Known Implementing Classes:
DefaultMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
Constraints are things that limit your production process in some way. For example, if your supplier has a shortage of a key component in your product, you are limited in the number of products you can create. The constraint can be long-term or short-term and could be caused by any number of factors, including, supply shortages, or reduced staffing. This service enables you to define your own constraints for many different types of material. This means that no matter the reason for the constraint, you can flexibly define which materials are affected, how they are affected, and for how long. The defined constraints are then considered in forecasting simulations..
Reference: SAP API Business Hub
Details:
| OData Service: | PMRPFLEXIBLECONSTRAINT_0001 |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Predictive MRP Masterdata Integration(SAP_COM_0739) |
| Scope Items: | Predictive Material and Resource Planning(4B5) |
| Authentication Methods: | x509 |
| Service Group Name: | API_PMRPFLEXIBLECONSTRAINT |
| Business Object: | PMRP Flexible Constraint |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIf no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Creates a batch request builder object.Fetch the number of entries from theConstraintProductentity collection matching the filter and search expressions.Fetch the number of entries from thePeriodentity collection matching the filter and search expressions.Fetch the number of entries from thePMRPFlexibleConstraintentity collection matching the filter and search expressions.Fetch the number of entries from theTextentity collection matching the filter and search expressions.createPMRPFlexibleConstraint(PMRPFlexibleConstraint pMRPFlexibleConstraint) Create a newPMRPFlexibleConstraintentity and save it to the S/4HANA system.deletePeriod(Period period) Deletes an existingPeriodentity in the S/4HANA system.deletePMRPFlexibleConstraint(PMRPFlexibleConstraint pMRPFlexibleConstraint) Deletes an existingPMRPFlexibleConstraintentity in the S/4HANA system.Fetch multipleConstraintProductentities.Fetch multiplePeriodentities.Fetch multiplePMRPFlexibleConstraintentities.Fetch multipleTextentities.getConstraintProductByKey(String pMRPFlexibleConstraint, String pMRPConstraintProductItem) Fetch a singleConstraintProductentity using key fields.getPeriodByKey(String pMRPFlexibleConstraint, Integer bucketInternalID) Fetch a singlePeriodentity using key fields.getPMRPFlexibleConstraintByKey(String pMRPFlexibleConstraint) Fetch a singlePMRPFlexibleConstraintentity using key fields.getTextByKey(String pMRPFlexibleConstraint, String language) Fetch a singleTextentity using key fields.updatePeriod(Period period) Update an existingPeriodentity and save it to the S/4HANA system.updateText(Text text) Update an existingTextentity and save it to the S/4HANA system.withServicePath(String servicePath) Overrides the default service path and returns a new service instance with the specified service path.
-
Field Details
-
DEFAULT_SERVICE_PATH
If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
@Nonnull MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService withServicePath(@Nonnull String servicePath) Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Creates a batch request builder object.- Returns:
- A request builder to handle batch operation on this service. To perform execution, call the
executemethod on the request builder object.
-
getAllConstraintProduct
Fetch multipleConstraintProductentities.- Returns:
- A request builder to fetch multiple
ConstraintProductentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countConstraintProduct
Fetch the number of entries from theConstraintProductentity collection matching the filter and search expressions.- Returns:
- A request builder to fetch the count of
ConstraintProductentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getConstraintProductByKey
@Nonnull GetByKeyRequestBuilder<ConstraintProduct> getConstraintProductByKey(String pMRPFlexibleConstraint, String pMRPConstraintProductItem) Fetch a singleConstraintProductentity using key fields.- Parameters:
pMRPConstraintProductItem- Item IDConstraints: Not nullable, Maximum length: 6
pMRPFlexibleConstraint- pMRP Unique ID for Flexible ConstraintsConstraints: Not nullable, Maximum length: 10
- Returns:
- A request builder to fetch a single
ConstraintProductentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getAllPeriod
Fetch multiplePeriodentities. -
countPeriod
Fetch the number of entries from thePeriodentity collection matching the filter and search expressions. -
getPeriodByKey
@Nonnull GetByKeyRequestBuilder<Period> getPeriodByKey(String pMRPFlexibleConstraint, Integer bucketInternalID) Fetch a singlePeriodentity using key fields.- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible ConstraintsConstraints: Not nullable, Maximum length: 10
bucketInternalID- pMRP Evaluation Bucket IDConstraints: Not nullable
- Returns:
- A request builder to fetch a single
Periodentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
updatePeriod
Update an existingPeriodentity and save it to the S/4HANA system. -
deletePeriod
Deletes an existingPeriodentity in the S/4HANA system. -
getAllPMRPFlexibleConstraint
Fetch multiplePMRPFlexibleConstraintentities.- Returns:
- A request builder to fetch multiple
PMRPFlexibleConstraintentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPMRPFlexibleConstraint
Fetch the number of entries from thePMRPFlexibleConstraintentity collection matching the filter and search expressions.- Returns:
- A request builder to fetch the count of
PMRPFlexibleConstraintentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPMRPFlexibleConstraintByKey
@Nonnull GetByKeyRequestBuilder<PMRPFlexibleConstraint> getPMRPFlexibleConstraintByKey(String pMRPFlexibleConstraint) Fetch a singlePMRPFlexibleConstraintentity using key fields.- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible ConstraintsConstraints: Not nullable, Maximum length: 10
- Returns:
- A request builder to fetch a single
PMRPFlexibleConstraintentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
createPMRPFlexibleConstraint
@Nonnull CreateRequestBuilder<PMRPFlexibleConstraint> createPMRPFlexibleConstraint(@Nonnull PMRPFlexibleConstraint pMRPFlexibleConstraint) Create a newPMRPFlexibleConstraintentity and save it to the S/4HANA system.- Parameters:
pMRPFlexibleConstraint-PMRPFlexibleConstraintentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
PMRPFlexibleConstraintentity. To perform execution, call theexecutemethod on the request builder object.
-
deletePMRPFlexibleConstraint
@Nonnull DeleteRequestBuilder<PMRPFlexibleConstraint> deletePMRPFlexibleConstraint(@Nonnull PMRPFlexibleConstraint pMRPFlexibleConstraint) Deletes an existingPMRPFlexibleConstraintentity in the S/4HANA system.- Parameters:
pMRPFlexibleConstraint-PMRPFlexibleConstraintentity object that will be deleted in the S/4HANA system.- Returns:
- A request builder to delete an existing
PMRPFlexibleConstraintentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllText
Fetch multipleTextentities. -
countText
Fetch the number of entries from theTextentity collection matching the filter and search expressions. -
getTextByKey
Fetch a singleTextentity using key fields.- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible ConstraintsConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
- Returns:
- A request builder to fetch a single
Textentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
updateText
Update an existingTextentity and save it to the S/4HANA system.
-