Description | Query Production Model |
Name | QueryProdModelIn |
Namespace | http://sap.com/xi/A1S/Global |
Process Component Description | Production Model Management |
Process Component Name | ProductionModelManagement |
Process Component Namespace | http://sap.com/xi/AP/PC/ProductionModelProcessing/Global |
Deployment Unit Description | Foundation |
Endpoint Activation | By Scoping of Process Component | Operations |
Release Status | Released |
An Interface to query production model data.
The web service interface Query Production Model In enables external applications to connect to the SAP Business ByDesign system and to query production models. This is used when external systems want to access and manage production model data in the system.
It has the ProductionModelQueryByElements, ProductionModelQueryByID and ProductionModelQueryByProductionSegment operations that are used to query for one or more instances of the production model, based on the query filter parameters passed.
You can find general information about Web services, their structure and consumption in the Web Services documentation.
Scenarios
Here is an example of a simple web service request for a production model based on ID:
<n0:ProductionModelByElementQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>10</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator></QueryHitsUnlimitedIndicator> </ProcessingConditions> <ProductionModelSelectionByElements> <SelectionByProductionModelID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryID>MCF-0001-TO01</LowerBoundaryID> </SelectionByProductionModelID> </ProductionModelSelectionByElements> </n0:ProductionModelByElementQuery_sync>
Here is an example of a simple web service request for a production model based on Lower and Upper Range:
<n0:ProductionModelByElementQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>100</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator></QueryHitsUnlimitedIndicator> </ProcessingConditions> <ProductionModelSelectionByElements> <SelectionByProductionModelID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryID>MCF0001</LowerBoundaryID> <UpperBoundaryID>MCF0006</UpperBoundaryID> </SelectionByProductionModelID> </ProductionModelSelectionByElements> </n0:ProductionModelByElementQuery_sync>
Description | Production model query by elements |
Name | ProductionModelQueryByElements |
Synchronous | yes |
Release Status | Released |
To query Production Models.
The ProductioModelQueryByElements operation querys the data of one or more Production Models.
The Production Model contains general information.
The following are the attributes and elements of the Production Model.
Elements | Description |
---|---|
SelectionByProductionModelID | Identifier for a Production Model |
SelectionByProductionModelDescription | Description for a Production Model |
SelectionByProductionModelResourceID | Identifier for a Resource |
SelectionByProductionModelProductID | Identifier for a Product |
SelectionByProductionModelProductDescription | Description for a Product |
SelectionByProductionModelProductSpecificationID | Identifier for a Product Specification |
SelectionByProductionModelProductSpecificationDescription | Description for a Product Specification |
SelectionByProductionModelPlanningConsistencyStatusCode | Planning Consistency Status Code |
SelectionByProductionModelExecutionConsistencyStatusCode | Execution Consistency Status Code |
SelectionByProductionModelValidFrom | Start date of Production Model valid period |
SelectionByProductionModelValidTo | End date of Production Model valid period |
SelectionByProductionModelMinimalLotSizeQuantity | Minimal Lot Size quantity value |
SelectionByProductionModelMaximumLotSizeQuantity | Maximum Lot Size quantity value |
This is a coded representation of Selection Criteria.
Inclusion/Exclusion Code Value | Description |
---|---|
I | Including |
E | Excluding |
Interval Boundary Type Code Value | Description |
---|---|
1 | Equal To |
2 | Between (exclude upper boundary) |
3 | Between |
4 | Between (exclude both boundaries) |
5 | Between (exclude lower boundary) |
6 | Less Than |
7 | Less Than or Equal to |
8 | Greater Than |
9 | Greater Than or Equal to |
Elements | Description |
---|---|
ProductionModelID | Identifier for a Production Model |
ProductionModelDescription | Description for a Production Model |
ProductID | Identifier for a Product |
ProductDescription | Description for a Product |
ValidityPeriod | Validity Period |
MinimalLotSizeQuantity | Minimal Lot Size value |
MaximumLotSizeQuantity | Maximum Lot Size value |
ExecutionConsistencyStatusCode | Execution consistency status |
PlanningConsistencyStatusCode | Planning consistency status |
PlanningEnabledIndicator | Planning enabled indicator |
ExecutionEnabledIndicator | Execution enabled indicator |
ProductSpecificationID | Identifier for a Product Specification |
ProductSpecificationDescription | Description for a Product Specification |
SiteID | Identifier for a Site |
SupplyPlanningAreaID | Identifier for a Supply Planning Area |
SupplyPlanningAreaDescription | Description for a Supply Planning Acrea |
This is a coded representation of Production Model status.
Consistency Status Code Value | Description |
---|---|
1 | Check Pending |
2 | Inconsistent |
3 | Consistent |
Here is an example of a web service request to query an existing production model:
<n0:ProductionModelByElementQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>100</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator></QueryHitsUnlimitedIndicator> </ProcessingConditions> <ProductionModelSelectionByElements> <SelectionByProductionModelID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryID>MCF0001</LowerBoundaryID> <UpperBoundaryID></UpperBoundaryID> </SelectionByProductionModelID> </ProductionModelSelectionByElements> </n0:ProductionModelByElementQuery_sync>
Description | Production model query by ID |
Name | ProductionModelQueryByID |
Synchronous | yes |
Release Status | Released |
To query Production Models.
The ProductionModelQueryByID operation querys the data of one or more Production Models.
The Production Model contains general information.
The following are the attributes and elements of the Production Model.
Elements | Description |
---|---|
SelectionByProductionModelID | Identifier for a Production Model |
This is a coded representation of Selection Criteria.
Inclusion/Exclusion Code Value | Description |
---|---|
I | Including |
E | Excluding |
Interval Boundary Type Code Value | Description |
---|---|
1 | Equal To |
2 | Between (exclude upper boundary) |
3 | Between |
4 | Between (exclude both boundaries) |
5 | Between (exclude lower boundary) |
6 | Less Than |
7 | Less Than or Equal to |
8 | Greater Than |
9 | Greater Than or Equal to |
Elements | Description |
---|---|
ProductionModelID | Identifier for a Production Model |
ProductionModelDescription | Description for a Production Model |
ProductID | Identifier for a Product |
ProductDescription | Description for a Product |
ValidityPeriod | Validity Period |
MinimalLotSizeQuantity | Minimal Lot Size value |
MaximumLotSizeQuantity | Maximum Lot Size value |
ExecutionConsistencyStatusCode | Execution consistency status |
PlanningConsistencyStatusCode | Planning consistency status |
PlanningEnabledIndicator | Planning enabled indicator |
ExecutionEnabledIndicator | Execution enabled indicator |
ProductSpecificationID | Identifier for a Product Specification |
ProductSpecificationDescription | Description for a Product Specification |
SiteID | Identifier for a Site |
SupplyPlanningAreaID | Identifier for a Supply Planning Area |
SupplyPlanningAreaDescription | Description for a Supply Planning Acrea |
This is a coded representation of Production Model status.
Consistency Status Code Value | Description |
---|---|
1 | Check Pending |
2 | Inconsistent |
3 | Consistent |
Here is an example of a web service request to query an existing production model:
<n0:ProductionModelByIDsQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>100</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator></QueryHitsUnlimitedIndicator> </ProcessingConditions> <ProductionModelSelectionByIDs> <SelectionByProductionModelID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryID>*MCF0001*</LowerBoundaryID> <UpperBoundaryID></UpperBoundaryID> </SelectionByProductionModelID> </ProductionModelSelectionByIDs> </n0:ProductionModelByIDsQuery_sync>
Description | Production model query by production segment |
Name | ProductionModelQueryByProductionSegment |
Synchronous | yes |
Release Status | Released |
To query Production Models.
The ProductionModelQueryByProductionSegment operation querys the data of one or more Production Models.
The Production Model contains general information.
The following are the attributes and elements of the Production Model.
Elements | Description |
---|---|
SelectionByProductionSegmentID | Identifier for a Production Segment |
This is a coded representation of Selection Criteria.
Inclusion/Exclusion Code Value | Description |
---|---|
I | Including |
E | Excluding |
Interval Boundary Type Code Value | Description |
---|---|
1 | Equal To |
2 | Between (exclude upper boundary) |
3 | Between |
4 | Between (exclude both boundaries) |
5 | Between (exclude lower boundary) |
6 | Less Than |
7 | Less Than or Equal to |
8 | Greater Than |
9 | Greater Than or Equal to |
Elements | Description |
---|---|
ProductionModelID | Identifier for a Production Model |
ProductionModelDescription | Description for a Production Model |
ProductID | Identifier for a Product |
ProductDescription | Description for a Product |
ValidityPeriod | Validity Period |
MinimalLotSizeQuantity | Minimal Lot Size value |
MaximumLotSizeQuantity | Maximum Lot Size value |
ExecutionConsistencyStatusCode | Execution consistency status |
PlanningConsistencyStatusCode | Planning consistency status |
PlanningEnabledIndicator | Planning enabled indicator |
ExecutionEnabledIndicator | Execution enabled indicator |
ProductSpecificationID | Identifier for a Product Specification |
ProductSpecificationDescription | Description for a Product Specification |
SiteID | Identifier for a Site |
SupplyPlanningAreaID | Identifier for a Supply Planning Area |
SupplyPlanningAreaDescription | Description for a Supply Planning Acrea |
This is a coded representation of Production Model status.
Consistency Status Code Value | Description |
---|---|
1 | Check Pending |
2 | Inconsistent |
3 | Consistent |
Here is an example of a web service request to query an existing production model:
<n0:ProductionModelByProductionSegmentQuery_sync xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>10</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator></QueryHitsUnlimitedIndicator> </ProcessingConditions> <ProductionModelSelectionByProductionSegment> <SelectionByProductionSegmentID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryProductionSegmentID>*MCF-0001-TO01*</LowerBoundaryProductionSegmentID> <UpperBoundaryProductionSegmentID></UpperBoundaryProductionSegmentID> </SelectionByProductionSegmentID> </ProductionModelSelectionByProductionSegment> </n0:ProductionModelByProductionSegmentQuery_sync>