@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultMaterialPlanningDataService") public class DefaultMaterialPlanningDataService extends Object implements MaterialPlanningDataService
This service enables you to read planning data for materials in Material Requirements Planning (MRP). This includes material master data as well as supply and demand information for a certain period of time and information about the coverage of materials..
Reference: SAP API Business Hub
OData Service: | API_MRP_MATERIALS_SRV_01 |
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 based on Process Order (BJ8), Material Requirements Planning (J44) |
Authentication Methods: | Basic, x509, OAuth2 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultMaterialPlanningDataService()
Creates a service using
MaterialPlanningDataService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultMaterialPlanningDataServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
MaterialCoverageFluentHelper |
getAllMaterialCoverage()
Fetch multiple
MaterialCoverage entities. |
MRPMaterialFluentHelper |
getAllMRPMaterial()
Fetch multiple
MRPMaterial entities. |
SupplyDemandItemFluentHelper |
getAllSupplyDemandItem()
Fetch multiple
SupplyDemandItem entities. |
MaterialCoverageByKeyFluentHelper |
getMaterialCoverageByKey(String material,
String materialShortageProfile,
String materialShortageProfileCount,
String mRPArea,
String mRPPlanningSegmentNumber,
String mRPPlanningSegmentType,
String mRPPlant)
Fetch a single
MaterialCoverage entity using key fields. |
MRPMaterialByKeyFluentHelper |
getMRPMaterialByKey(String material,
String mRPPlant,
String mRPArea)
Fetch a single
MRPMaterial entity using key fields. |
DefaultMaterialPlanningDataService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultMaterialPlanningDataService()
MaterialPlanningDataService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultMaterialPlanningDataService withServicePath(@Nonnull String servicePath)
MaterialPlanningDataService
withServicePath
in interface MaterialPlanningDataService
servicePath
- Service path that will override the default.@Nonnull public DefaultMaterialPlanningDataServiceBatch batch()
batch
in interface BatchService<MaterialPlanningDataServiceBatch>
@Nonnull public MaterialCoverageFluentHelper getAllMaterialCoverage()
MaterialPlanningDataService
MaterialCoverage
entities.getAllMaterialCoverage
in interface MaterialPlanningDataService
MaterialCoverage
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 MaterialCoverageByKeyFluentHelper getMaterialCoverageByKey(String material, String materialShortageProfile, String materialShortageProfileCount, String mRPArea, String mRPPlanningSegmentNumber, String mRPPlanningSegmentType, String mRPPlant)
MaterialPlanningDataService
MaterialCoverage
entity using key fields.getMaterialCoverageByKey
in interface MaterialPlanningDataService
MaterialCoverage
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 SupplyDemandItemFluentHelper getAllSupplyDemandItem()
MaterialPlanningDataService
SupplyDemandItem
entities.getAllSupplyDemandItem
in interface MaterialPlanningDataService
SupplyDemandItem
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 MRPMaterialFluentHelper getAllMRPMaterial()
MaterialPlanningDataService
MRPMaterial
entities.getAllMRPMaterial
in interface MaterialPlanningDataService
MRPMaterial
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 MRPMaterialByKeyFluentHelper getMRPMaterialByKey(String material, String mRPPlant, String mRPArea)
MaterialPlanningDataService
MRPMaterial
entity using key fields.getMRPMaterialByKey
in interface MaterialPlanningDataService
material
- Alphanumeric key uniquely identifying the material.
Constraints: Not nullable, Maximum length: 40
mRPPlant
- 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
MRPMaterial
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.Copyright © 2019 SAP SE. All rights reserved.