@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultPlannedIndependentRequirementService") public class DefaultPlannedIndependentRequirementService extends Object implements PlannedIndependentRequirementService
This inbound/outbound service enables you to read and update planned independent requirements (PIRs). Use this API if you want to work with the Manage PIRs app and not the Change PIRs app. If you work with the Change PIRs app as you require the additional flexibility provided in this app, you are recommended to use the following API: https://api.sap.com/shell/discover/contentp ackage/SAPS4HANACloud/api/API_PLND_INDE P_RQMT_SRV .
Reference: SAP API Business Hub
OData Service: | API_FORECAST_DEMAND_SRV |
API Version: | 1 |
Communication Scenario: | Production Planning Integration (SAP_COM_0104) |
Scope Items: | Make-to-Stock Production - Discrete Manufacturing (BJ5), Make-to-Stock Production - Process Manufacturing (BJ8), Material Requirements Planning (J44) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultPlannedIndependentRequirementService()
Creates a service using
PlannedIndependentRequirementService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
MaintainYearsPeriodFluentHelper |
getAllMaintainYearsPeriod()
Fetch multiple
MaintainYearsPeriod entities. |
MaintainYearsPeriodByKeyFluentHelper |
getMaintainYearsPeriodByKey(String material,
String plant,
String mRPArea,
String requirementsType,
String forecastDemandVersion,
LocalDateTime forecastPeriodStartDate)
Fetch a single
MaintainYearsPeriod entity using key fields. |
MaintainYearsPeriodUpdateFluentHelper |
updateMaintainYearsPeriod(MaintainYearsPeriod maintainYearsPeriod)
Update an existing
MaintainYearsPeriod entity and save it to the S/4HANA system. |
DefaultPlannedIndependentRequirementService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultPlannedIndependentRequirementService()
PlannedIndependentRequirementService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultPlannedIndependentRequirementService withServicePath(@Nonnull String servicePath)
PlannedIndependentRequirementService
withServicePath
in interface PlannedIndependentRequirementService
servicePath
- Service path that will override the default.@Nonnull public MaintainYearsPeriodFluentHelper getAllMaintainYearsPeriod()
PlannedIndependentRequirementService
MaintainYearsPeriod
entities.getAllMaintainYearsPeriod
in interface PlannedIndependentRequirementService
MaintainYearsPeriod
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 MaintainYearsPeriodByKeyFluentHelper getMaintainYearsPeriodByKey(String material, String plant, String mRPArea, String requirementsType, String forecastDemandVersion, LocalDateTime forecastPeriodStartDate)
PlannedIndependentRequirementService
MaintainYearsPeriod
entity using key fields.getMaintainYearsPeriodByKey
in interface PlannedIndependentRequirementService
material
- Alphanumeric key uniquely identifying the material.Constraints: Not nullable, Maximum length: 40
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
requirementsType
- The requirements type determines the planning strategy to be used for a particular requirement.Constraints: Not nullable, Maximum length: 4
forecastDemandVersion
- Alphanumeric description of a demand program, also known as the (demand) version number.Constraints: Not nullable, Maximum length: 2
forecastPeriodStartDate
- Period Start DateConstraints: Not nullable, Precision: 7
MaintainYearsPeriod
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 MaintainYearsPeriodUpdateFluentHelper updateMaintainYearsPeriod(@Nonnull MaintainYearsPeriod maintainYearsPeriod)
PlannedIndependentRequirementService
MaintainYearsPeriod
entity and save it to the S/4HANA system.updateMaintainYearsPeriod
in interface PlannedIndependentRequirementService
maintainYearsPeriod
- MaintainYearsPeriod
entity object that will be updated in the S/4HANA system.MaintainYearsPeriod
entity. To perform execution, call the execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.