Class DefaultMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
- All Implemented Interfaces:
OperationsOnEntityCollections,ServiceWithNavigableEntities,MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
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
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionCreates a service usingMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService.DEFAULT_SERVICE_PATHto send the requests. -
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.datamodel.odatav4.core.ServiceWithNavigableEntities
applyAction, applyAction, applyFunction, applyFunction, forEntity, withFunction, withFunction
-
Constructor Details
-
DefaultMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService
public DefaultMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService()Creates a service usingMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
@Nonnull public DefaultMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService withServicePath(@Nonnull String servicePath) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceCreates a batch request builder object.- Specified by:
batchin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Returns:
- A request builder to handle batch operation on this service. To perform execution, call the
executemethod on the request builder object.
-
getAllConstraintProduct
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch multipleConstraintProductentities.- Specified by:
getAllConstraintProductin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch the number of entries from theConstraintProductentity collection matching the filter and search expressions.- Specified by:
countConstraintProductin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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 public GetByKeyRequestBuilder<ConstraintProduct> getConstraintProductByKey(String pMRPFlexibleConstraint, String pMRPConstraintProductItem) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch a singleConstraintProductentity using key fields.- Specified by:
getConstraintProductByKeyin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Parameters:
pMRPFlexibleConstraint- pMRP Unique ID for Flexible ConstraintsConstraints: Not nullable, Maximum length: 10
pMRPConstraintProductItem- Item IDConstraints: Not nullable, Maximum length: 6
- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch multiplePeriodentities.- Specified by:
getAllPeriodin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Returns:
- A request builder to fetch multiple
Periodentities. 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.
-
countPeriod
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch the number of entries from thePeriodentity collection matching the filter and search expressions.- Specified by:
countPeriodin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Returns:
- A request builder to fetch the count of
Periodentities. 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.
-
getPeriodByKey
@Nonnull public GetByKeyRequestBuilder<Period> getPeriodByKey(String pMRPFlexibleConstraint, Integer bucketInternalID) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch a singlePeriodentity using key fields.- Specified by:
getPeriodByKeyin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceUpdate an existingPeriodentity and save it to the S/4HANA system.- Specified by:
updatePeriodin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Parameters:
period-Periodentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
Periodentity. To perform execution, call theexecutemethod on the request builder object.
-
deletePeriod
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceDeletes an existingPeriodentity in the S/4HANA system.- Specified by:
deletePeriodin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Parameters:
period-Periodentity object that will be deleted in the S/4HANA system.- Returns:
- A request builder to delete an existing
Periodentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllPMRPFlexibleConstraint
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch multiplePMRPFlexibleConstraintentities.- Specified by:
getAllPMRPFlexibleConstraintin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch the number of entries from thePMRPFlexibleConstraintentity collection matching the filter and search expressions.- Specified by:
countPMRPFlexibleConstraintin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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 public GetByKeyRequestBuilder<PMRPFlexibleConstraint> getPMRPFlexibleConstraintByKey(String pMRPFlexibleConstraint) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch a singlePMRPFlexibleConstraintentity using key fields.- Specified by:
getPMRPFlexibleConstraintByKeyin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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 public CreateRequestBuilder<PMRPFlexibleConstraint> createPMRPFlexibleConstraint(@Nonnull PMRPFlexibleConstraint pMRPFlexibleConstraint) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceCreate a newPMRPFlexibleConstraintentity and save it to the S/4HANA system.- Specified by:
createPMRPFlexibleConstraintin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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 public DeleteRequestBuilder<PMRPFlexibleConstraint> deletePMRPFlexibleConstraint(@Nonnull PMRPFlexibleConstraint pMRPFlexibleConstraint) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceDeletes an existingPMRPFlexibleConstraintentity in the S/4HANA system.- Specified by:
deletePMRPFlexibleConstraintin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch multipleTextentities.- Specified by:
getAllTextin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Returns:
- A request builder to fetch multiple
Textentities. 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.
-
countText
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch the number of entries from theTextentity collection matching the filter and search expressions.- Specified by:
countTextin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Returns:
- A request builder to fetch the count of
Textentities. 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.
-
getTextByKey
@Nonnull public GetByKeyRequestBuilder<Text> getTextByKey(String pMRPFlexibleConstraint, String language) Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceFetch a singleTextentity using key fields.- Specified by:
getTextByKeyin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- 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
Description copied from interface:MaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningServiceUpdate an existingTextentity and save it to the S/4HANA system.- Specified by:
updateTextin interfaceMaintainFlexibleConstraintsForPredictiveMaterialAndResourcePlanningService- Parameters:
text-Textentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
Textentity. To perform execution, call theexecutemethod on the request builder object.
-
getServicePath
- Specified by:
getServicePathin interfaceServiceWithNavigableEntities
-