Description | Query Production Bill of Materials |
Name | QueryProductionBillofMaterialsIn |
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 Bill of Materials from a source system.
The web service interface Query ProductionBillofMaterialsIn enables you to connect external applications to your SAP Business ByDesign system and to query Production Bill of Materials in your system. The web service interface Query Production Bill of Materials In is relevant if your company wants to access Bill of Materials data from external applications.
You can view and track Bill of Materials at the Production Bill of Materials view of the Planning and Production Master Data work center
Query selection parameters are mainly exposed as select options or ranges, with an inclusion/exclusion code, interval boundary type code, lower boundary value, and upper boundary value.
The inclusion/exclusion code (element name InclusionExclusionCode) specifies the inclusion or exclusion of a set in a result set.
Inclusion Exclusion Code | Description |
---|---|
E | Excluding |
I | Including |
The interval boundary type code (element name IntervalBoundaryTypeCode) is used to describe intervals by their boundaries. Depending on the operator, the lower boundary value or both boundary values are relevant.
Interval Boundary Type Code | Name | Description | Logical Operator |
---|---|---|---|
1 | Equal to | Single Value | =X |
2 | Between(Excluding upper boundary) | Interval with closed lower and open upper boundary | [X, Y) |
3 | Between | Interval with open lower and open upper boundary | (X, Y) |
4 | Between (excluding both boundaries) | Interval with open lower and open upper boundary | (X, Y) |
5 | Between (excluding lower boundary) | Interval with open lower and closed upper boundary | (X, Y] |
6 | Less than | Interval with unlimited lower and open upper boundary | < X |
7 | Less than or Equal to | Interval with unlimited lower and closed upper boundary | <= X |
8 | Greater than | Interval with open lower and unlimited upper boundary | > X |
9 | Greater than or Equal to | Interval with closed lower and unlimited upper boundary | = X |
Before a query is executed on Bill of Materials, instance of Bill of Materials has to be created and maintained first.
Action codes represent an instruction to the recipient of the web service request to process transmitted message node elements.
The action code to be used is FIND_BY_ELEMENTS.
Optional leaf elements in request messages that are not transmitted within a web service request are not considered while querying. Therefore, any value of missing parameters would meet the comparison.
Query operation is stateless synchronous web service operation. Transferring or requesting amounts of data that are too large causes communication timeouts. The web service consumer is responsible for ensuring reasonable sizes of data for mass operations.
The structure of the request message type consists of two parts:
• Selection parameters for the query.
• Processing conditions. This specifies the limit on the output i.e number of records returned. You can also specify if you want unlimited number of records.
Many external applications consuming web services have special requirements and restrictions regarding the format of WSDLs. Some external applications require service definition WSDLs describing the web service signature. This is normally sufficient for the creation of static client-side proxies. Other external applications, normally those that do not create static client-side proxies, require binding WSDLs including the endpoint definition and authentication policy information.
In both cases, it may be the case that the external application imposes special restrictions on the structure or the size of WSDLs.
Microsoft InfoPath requires binding WSDLs and considers elements with the attribute "minOccurs=0" as "mandatory". However "minOccurs=0" means "optional" in SAP web services. In order to circumvent this problem, the WSDL must be saved locally and an additional attribute "nillable=true" must be added to make a query parameter optional for Microsoft InfoPath.
For very small clients such as mobile devices, the size of the WSDL itself may become a problem. In most cases the client only requires a very small part of the signature, but due to the complexity of the WSDL they may end up with long runtimes during serialization of the request or deserialization of the response. In order to circumvent this problem, the WSDL must be saved locally and the optional parts of the signature have to be removed before the WSDL is imported or static client-side proxies are generated.
External applications have to take into account that web service request and response message types can be enhanced with additional elements and attributes. Enhancements can be created by SAP, SAP partners, and key users. Enhancements of request message types are always optional elements or attributes. The SAP system does not require the external application to provide values in the request. Enhancements of response message types can contain mandatory elements or attributes. The external application must be able to process the extended response successfully.
XML element and attribute names are always stable. Technical definitions of data types can be enhanced in a compatible way. This may result in changed data type names. External applications can rely on XML element names and attribute names, but should not rely on data type names.
Note: You can download the WSDL file for any web service here:
• Application and User Management work center -> Input Output Management -> Communication Arrangement.
• User Management work center à Service Explorer view.
You can find the documentation of the global data types in the SAP Community Network: Go to http://scn.sap.com/docs/DOC-17516 and click View Document.
You can find general information about Web services, their structure and consumption in the Web Services documentation. Please open the Web Services document in a new window.
Possible scenarios include the following:
• Find Production Bill of Materials based on certain set of information like Bill of Material ID etc.
This finds the Bill of Materials that has specific ID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByProductionBillOfMaterialID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>HB1_1</LowerBoundaryIdentifier> </SelectionByProductionBillOfMaterialID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific Product ID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByOutputProductID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>MCA-0001</LowerBoundaryIdentifier> </SelectionByOutputProductID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific Variant ID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByProductionBillOfMaterialVariantID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>V1</LowerBoundaryIdentifier> </SelectionByProductionBillOfMaterialVariantID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific Engineering Change Order ID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByEngineeringChangeOrderID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>ECO_*</LowerBoundaryIdentifier> </SelectionByEngineeringChangeOrderID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific BoM Description.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByProductionBillOfMaterialDescription> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryText>WI03 BOM</LowerBoundaryText> </SelectionByProductionBillOfMaterialDescription> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific Consistency Status Code.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByConsistencyStatusCode> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryCode listID="Token 86" listVersionID="Token 87" listAgencyID="Token 88" listAgencySchemeID="Token 89" listAgencySchemeAgencyID="Tok">2</LowerBoundaryCode> </SelectionByConsistencyStatusCode> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a specific Output Product UUID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByOutputProductUUID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryUUID schemeID="Token 118" schemeAgencyID="Token 119">00163E5F-4D8F-1EE9-8ECB-7AD201465C78</LowerBoundaryUUID> </SelectionByOutputProductUUID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
This finds the Bill of Materials with a Consistency Last Check date.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByConsistencyStatusChangeDateTime> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryDateTime>2019-03-08T11:12:03.5407060Z</LowerBoundaryDateTime> </SelectionByConsistencyStatusChangeDateTime> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
Description | Find production bill of materials |
Name | QueryProductionBillOfMaterialByElements |
Synchronous | yes |
Release Status | Released |
QueryProductionBillofMaterialsIn interface allows to query on existing Production Bill of Materials in the system
The request message of the QueryProductionBillOfMaterialByElements contain two parts: Body and Processing Conditions. Body comprises of the various parameters on which Bill of Materials can be queried. Details on these parameters is discussed in the following sub-sections. Processing conditions control the execution of query. For example, you can specify if you want a certain number of records as output or unlimited records should be shown.
The response message contains the main information of Production Bill of Materials along with the processing conditions. The processing condition here indicates that how many records are returned and if there are any more existing records, which meet the criteria but not fetched.
The search can contain complex criteria instead of having simple equation. You can get results based on equal to or a range or less than or greater than logical operations. These type codes should be specified in the request message.
Get the detail information of Bill of Materials according to the search parameters
The web service interface QueryProductionBillofMaterialsIn offers the operation QueryProductionBillOfMaterialByElements, which is used to query for one or more instances of bill of materials based on the query filter parameters passed.
Name : QueryProductionBillofMaterialsIn (II_QUERY_PROD_BOM_IN)
Operation : QueryProductionBillOfMaterialByElements (FIND_BY_ELEMENTS)
Package : A1S_PBOM_CSX
Implementing Process agent : FIND_PROD_BOM
Leading BO Name : ProductionBillOfMaterial (BOM_PRODUCTION)
Query selection parameters are mainly exposed as select options or ranges, with an inclusion/exclusion code, interval boundary type code, lower boundary value, and upper boundary value.
The inclusion/exclusion code (element name InclusionExclusionCode) specifies the inclusion or exclusion of a set in a result set.
Inclusion Exclusion Code | Description |
---|---|
E | Excluding |
I | Including |
The interval boundary type code (element name IntervalBoundaryTypeCode) is used to describe intervals by their boundaries. Depending on the operator, the lower boundary value or both boundary values are relevant.
Interval Boundary Type Code | Name | Description | Logical Operator |
---|---|---|---|
1 | Equal to | Single Value | =X |
2 | Between(Excluding upper boundary) | Interval with closed lower and open upper boundary | [X, Y) |
3 | Between | Interval with open lower and open upper boundary | (X, Y) |
4 | Between (excluding both boundaries) | Interval with open lower and open upper boundary | (X, Y) |
5 | Between (excluding lower boundary) | Interval with open lower and closed upper boundary | (X, Y] |
6 | Less than | Interval with unlimited lower and open upper boundary | < X |
7 | Less than or Equal to | Interval with unlimited lower and closed upper boundary | <= X |
8 | Greater than | Interval with open lower and unlimited upper boundary | > X |
9 | Greater than or Equal to | Interval with closed lower and unlimited upper boundary | = X |
The request message of the operation QueryProductionBillOfMaterialByElements contains the ProductionBillOfMaterialSelection node that groups all possible selection parameters.
Below is the list of available selection parameters:
SEL_BY_BOM_ID | SelectionByProductionBillOfMaterialID |
SEL_BY_BOM_DESCRIPTION | SelectionByProductionBillOfMaterialDescription |
SEL_BY_BOM_VAR_ID | SelectionByProductionBillOfMaterialVariantID |
SEL_BY_VAR_DESCRIPTION | SelectionByVariantDescription |
SEL_BY_LINE_ITM_GPR_ITM_ID | SelectionByLineItemGroupItemID |
SEL_BY_ITM_CHGST_DESCRIPTION | SelectionByItemChangeStateDescription |
SEL_BY_ECO_UUID | SelectionByEngineeringChangeOrderUUID |
SEL_BY_ECO_ID | SelectionByEngineeringChangeOrderID |
SEL_BY_LINE_ITM_GPR_ID | SelectionByLineItemGroupID |
SEL_BY_CONSISTENCY_STATUS | SelectionByConsistencyStatusCode |
SEL_BY_CONS_STATUS_CHG_ON | SelectionByConsistencyStatusChangeDateTime |
SEL_BY_PRODUCT_UUID | SelectionByOutputProductUUID |
SEL_BY_PRODUCT_ID | SelectionByOutputProductID |
SEL_BY_PRODUCT_DESCRIPTION | SelectionByOutputProductDescription |
SEL_BY_PRS_ID | SelectionByOutputProductSpecificationID |
SEL_BY_PRS_DESCRIPTION | SelectionByOutputProductSpecificationDescription |
SEL_BY_INPUT_PRODUCT_UUID | SelectionByInputProductUUID |
SEL_BY_INPUT_PRODUCT_ID | SelectionByInputProductID |
SEL_BY_INPUT_PRODUCT_DESCRIPTI | SelectionByInputProductDescription |
SEL_BY_CREATED_ON | SelectionByProductionBillOfMaterialCreationDateTime |
SEL_BY_CHANGED_ON | SelectionByProductionBillOfMaterialLastChangeDateTime |
SEL_BY_CREATED_BY_ID | SelectionByCreationIdentityID |
SEL_BY_CHANGED_BY_ID | SelectionByLastChangeIdentityID |
SEL_BY_CREATED_BY_UUID | SelectionByCreationIdentityUUID |
SEL_BY_MIG_DATA_ADAPTION_TC | SelectionByMigrationDataAdaptionTypeCode |
SEL_BY_CHANGED_BY_UUID | SelectionByLastChangeIdentityUUID |
SEL_BY_SEARCH_TEXT | SelectionBySearchText |
The response contains the list of found Bill of Materials, log items, and processing conditions.
In the Response node, all found bill of materials are contained according to the selection parameters provided in the query request.
Below is the list of available Bill of Materials elements and their corresponding business contexts with the UI.
Production Bill of Materials
The following are the elements of this node:
Elements | Description |
---|---|
BOM_ID | ProductionBillOfMaterialID |
BOM_DESCRIPTION | ProductionBillOfMaterialDescription |
LOGISTICS_PREP_FUNCTION_ID | LogisticsPreparationFunctionalUnitID |
LOGISTICS_PREP_FUNCTION_UUID | LogisticsPreparationFunctionalUnitUUID |
CHANGED_ON | CreationDateTime |
CHANGED_BY | CreationIdentityUUID |
CREATED_ON | LastChangeDateTime |
CREATED_BY | LastChangeIdentityUUID |
MIGRATED_DATA_ADAPT_TYPE_CODE | MigratedDataAdaptationTypeCode |
CHANGE_STATE_ID | ChangeStateID |
VARIANT | ProductionBillOfMaterialVariant |
ITEM_GROUP | ProductionBillOfMaterialItemGroup |
Production Bill of Materials Variant
The following are the elements of this node:
Elements | Description |
---|---|
VARIANT_ID | VariantID |
VARIANT_DESCRIPTION | VariantDescription |
PRODUCT_UUID | ProductUUID |
PRODUCT_ID | ProductID |
QUANTITY | ProductQuantity |
QUANTITY_UOM | ProductUoM |
CONSISTENCY_STATUS | ConsistencyStatus |
PRS_ID | ProductRequirementSpecificationKey |
PRS_UUID | ProductRequirementSpecificationUUID |
VARIANT_DETAILS | VariantDetailsUUID |
ATTACHMENT_VARIANT | VariantAttachmentsUUID |
VARIANT_ITM_CHG_STATE | ProductionBillOfMaterialVariantItemChangeState |
Production Bill of Materials Variant Item Change State
The following are the elements of this node:
Elements | Description |
---|---|
ITEM_GROUP_ID | ItemGroupID |
ITEM_ID | ItemID |
INPUT_PRODUCT_UUID | InputProductUUID |
INPUT_PRODUCT_ID | InputProductID |
INPUT_PRODUCT_DESCRIPTION | InputProductDescription |
QUANTITY | InputProductQuantity |
QUANTITY_UOM | InputProductQuantityUoM |
FIXED_QUAN_INDICATOR | FixedQuantityIndicator |
ECO_ID | EngineeringChangeOrderID |
VALID_FROM | EngineeringChangeOrderValidFromDate |
ECO_STATUS | EngineeringChangeOrderEcoStatus |
DELETION_INDICATOR | DeletionIndicator |
Production Bill of Materials Item Group
The following are the elements of this node:
Elements | Description |
---|---|
ITEM_GROUP_UUID | ItemGroupUUID |
ITEM_GROUP_ID | ItemGroupID |
ITEM_REQUIRED_INDICATOR | ReuquiredIndicator |
MULT_SEL_ALLOWED_IND | MultiSelectAllowedIndicator |
ITEM_GROUP_DESCRIPTION | ItemGroupDescription |
ITEM_GROUP_ATTACHMENT | ItemGroupAttachmentUUID |
ITEM_GROUP_DETAILS | ItemGroupDetailsUUID |
ITEM_GRP_ITEM | ItemGroupItem |
Production Bill of Materials Item Group Item
The following are the elements of this node:
Elements | Description |
---|---|
ITEM_GROUP_ITEM_UUID | ItemGroupItemUUID |
ITEM_GRP_ITEM_ID | ItemGroupItemID |
ITEM_GRP_CHG_STATE | ProductionBillOfMaterialItemGroupChangeState |
Production Bill of Materials Item Group Item Change State
The following are the elements of this node:
Elements | Description |
---|---|
ITEM_CHST_UUID | ItemChangeStateUUID |
ECO_UUID | EngineeringChangeOrderUUID |
ECO_ID | EngineeringChangeOrderID |
INPUT_PRODUCT_UUID | InputProductUUID |
INPUT_PRODUCT_ID | InputProductID |
INPUT_PRODUCT_DESCRIPTION | InputProductDescription |
QUANTITY | InputProductQuantity |
QUANTITY_UOM | InputProductQuantityUoM |
QUANTITY_FIXED_INDICATOR | FixedQuantityIndicator |
DELETION_INDICATOR | DeletionIndicator |
MIGRATED_DATA_ADAPTATION_TC | MigratedDataAdaptationTypeCode |
ITM_CHGST_DESCRIPTION | ItemChangeStateDescription |
ATTACHMENT_ITEM_CHST | ItemChangeStateAttachments |
ITEM_CHST_DETAILS | ItemChangeStateTextCollection |
Below is the coded representation of the statuses used in the Production Bill of Material node:
Life Cycle Status
Code Value | Description |
---|---|
1 | In Preparation |
2 | Active |
3 | Blocked |
4 | Obsolete |
Bill of Material Description
The following are the elements of this node:
Elements | Description |
---|---|
LANGUAGE_CODE | Language Code |
CONTENT | Description Content |
Quantity Conversion
The following are the elements of this node:
Elements | Description |
---|---|
QUANTITY | Base Quantity |
CORRESPONDING_QUANTITY | Corresponding Quantity |
Query Production Bill of Material with specific BoM ID
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByProductionBillOfMaterialID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>HB1_1</LowerBoundaryIdentifier> </SelectionByProductionBillOfMaterialID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
<n0:ProductionBillsOfMaterialsQueryResponseMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:ACL:/1SAI/TAS52C6413A240771B948D8:804"> <ProcessingConditions> <ReturnedQueryHitsNumberValue>1</ReturnedQueryHitsNumberValue> <MoreHitsAvailableIndicator>false</MoreHitsAvailableIndicator> <LastReturnedObjectID>00163E073D6A1EE888D146442189EE51</LastReturnedObjectID> </ProcessingConditions> <Log> <MaximumLogItemSeverityCode>3</MaximumLogItemSeverityCode> <Item> <TypeID>102(/AP_ESI_COMMON/)</TypeID> <CategoryCode>FOL.FOL</CategoryCode> <SeverityCode>3</SeverityCode> <Note>Modifying object not possible; object locked by</Note> </Item> </Log> <ProductionBillOfMaterials> <ProductionBillOfMaterialID>HB1_1</ProductionBillOfMaterialID> <ProductionBillOfMaterialDescription languageCode="EN">BOM Description</ProductionBillOfMaterialDescription> <CreationDateTime>2019-05-22T08:49:06.488974Z</CreationDateTime> <CreationIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</CreationIdentityUUID> <LastChangeDateTime>2018-03-08T04:52:24.558089Z</LastChangeDateTime> <LastChangeIdentityUUID>00145ef5-88e6-02db-bcae-74ea799f1856</LastChangeIdentityUUID> <ChangeStateID> 20190522084906.4889740</ChangeStateID> <ProductionBillOfMaterialVariant> <VariantID>1</VariantID> <VariantDescription languageCode="DE">Variant Description in German</VariantDescription> <VariantDescription languageCode="EN">Variant Description in English</VariantDescription> <ProductUUID>00163e07-3d6a-1ee8-88d1-3e0988678e23</ProductUUID> <ProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>HB1</ProductID> </ProductID> <ProductQuantity unitCode="EA">1.0</ProductQuantity> <ProductUoM>EA</ProductUoM> <ConsistencyStatus>3</ConsistencyStatus> <VariantDetailsUUID> <UUID>00163e5f-4d76-1ee9-9ddc-daa0750edbe3</UUID> <Text> <TypeCode>10018</TypeCode> <LanguageCode>EN</LanguageCode> <SystemAdministrativeData> <CreationDateTime>2019-05-15T07:58:35.147071Z</CreationDateTime> <CreationIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</CreationIdentityUUID> <LastChangeDateTime>2019-05-15T07:58:35.147071Z</LastChangeDateTime> <LastChangeIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</LastChangeIdentityUUID> </SystemAdministrativeData> <TextContent> <Text languageCode="EN">Variant Details</Text> </TextContent> </Text> </VariantDetailsUUID> <VariantAttachmentsUUID> <UUID>00163e5f-4d76-1ee9-9ddc-ddd746f77be3</UUID> <Document> <UUID>00163e5f-4d76-1ee9-9ddc-e00ea59bbbe3</UUID> <VersionID>0</VersionID> <SystemAdministrativeData> <CreationDateTime>2019-05-15T07:58:35.147071Z</CreationDateTime> <CreationIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</CreationIdentityUUID> <LastChangeDateTime>2019-05-15T07:58:35.147071Z</LastChangeDateTime> <LastChangeIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</LastChangeIdentityUUID> </SystemAdministrativeData> <VisibleIndicator>true</VisibleIndicator> <CategoryCode>3</CategoryCode> <TypeCode>10011</TypeCode> <PathName>/BOAttachments/00163E5F4D761EE99DDCDDD746F77BE3/sap.com</PathName> <Name>sap.com</Name> <AlternativeName>variant Attachment</AlternativeName> <Description>test</Description> <ExternalLinkWebURI>http://sap.com</ExternalLinkWebURI> <FileContentURI>http://sap.com</FileContentURI> </Document> </VariantAttachmentsUUID> <ProductionBillOfMaterialVariantItemChangeState> <ItemGroupID>INS_ITG</ItemGroupID> <ItemID>INS_ITM</ItemID> <InputProductUUID>00300571-c7cc-02db-b9cd-1e235529caae</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>MCF-0001</ProductID> </InputProductID> <InputProductDescription>AHT COMBI 75 - change</InputProductDescription> <InputProductQuantity unitCode="EA">5.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <EngineeringChangeOrderID>CFDS454</EngineeringChangeOrderID> <EngineeringChangeOrderValidFromDate>2018-03-23</EngineeringChangeOrderValidFromDate> <EngineeringChangeOrderEcoStatus> <LifeCycleStatusCode>5</LifeCycleStatusCode> <AggregatedChangeGroupProcessingStatusCode> </AggregatedChangeGroupProcessingStatusCode> <AggregatedValidityReleaseStatusCode> </AggregatedValidityReleaseStatusCode> </EngineeringChangeOrderEcoStatus> </ProductionBillOfMaterialVariantItemChangeState> <ProductionBillOfMaterialVariantItemChangeState> <ItemGroupID>10</ItemGroupID> <ItemID>10</ItemID> <InputProductUUID>00163e07-3d66-1ee8-84a7-98e297ebfd16</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>TEST_MCA-0001</ProductID> </InputProductID> <InputProductDescription>test_mca-0001</InputProductDescription> <InputProductQuantity unitCode="EA">10.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <EngineeringChangeOrderID>HB1</EngineeringChangeOrderID> <EngineeringChangeOrderValidFromDate>2018-03-08</EngineeringChangeOrderValidFromDate> <EngineeringChangeOrderEcoStatus> <LifeCycleStatusCode>5</LifeCycleStatusCode> <AggregatedChangeGroupProcessingStatusCode> </AggregatedChangeGroupProcessingStatusCode> <AggregatedValidityReleaseStatusCode> </AggregatedValidityReleaseStatusCode> </EngineeringChangeOrderEcoStatus> </ProductionBillOfMaterialVariantItemChangeState> <ProductionBillOfMaterialVariantItemChangeState> <ItemGroupID>10</ItemGroupID> <ItemID>20</ItemID> <InputProductUUID>00163e07-3d66-1ee8-84a7-9f8b03d07d1b</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>TEST_MCA-0003</ProductID> </InputProductID> <InputProductDescription>test_mca-0003</InputProductDescription> <InputProductQuantity unitCode="EA">10.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <EngineeringChangeOrderID>HB1</EngineeringChangeOrderID> <EngineeringChangeOrderValidFromDate>2018-03-08</EngineeringChangeOrderValidFromDate> <EngineeringChangeOrderEcoStatus> <LifeCycleStatusCode>5</LifeCycleStatusCode> <AggregatedChangeGroupProcessingStatusCode> </AggregatedChangeGroupProcessingStatusCode> <AggregatedValidityReleaseStatusCode> </AggregatedValidityReleaseStatusCode> </EngineeringChangeOrderEcoStatus> </ProductionBillOfMaterialVariantItemChangeState> </ProductionBillOfMaterialVariant> <ProductionBillOfMaterialItemGroup> <ItemGroupUUID>00163e07-3d62-1ee8-8bcf-508d26fd0230</ItemGroupUUID> <ItemGroupID>INS_ITG</ItemGroupID> <MultiSelectAllowedIndicator>true</MultiSelectAllowedIndicator> <ItemGroupItem> <ItemGroupItemUUID>00163e07-3d62-1ee8-8bcf-508d26ff8230</ItemGroupItemUUID> <ItemGroupItemID>INS_ITM</ItemGroupItemID> <ProductionBillOfMaterialItemGroupChangeState> <ItemChangeStateUUID>00163e07-3d62-1ee8-8bcf-508d27038230</ItemChangeStateUUID> <EngineeringChangeOrderUUID>00163e07-3d62-1ee8-8bcf-429322f9c226</EngineeringChangeOrderUUID> <EngineeringChangeOrderID>CFDS454</EngineeringChangeOrderID> <InputProductUUID>00300571-c7cc-02db-b9cd-1e235529caae</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>MCF-0001</ProductID> </InputProductID> <InputProductDescription>AHT COMBI 75 - change</InputProductDescription> <InputProductQuantity unitCode="EA">5.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <ItemChangeStateDescription languageCode="EN">oknjhuytgfd</ItemChangeStateDescription> </ProductionBillOfMaterialItemGroupChangeState> </ItemGroupItem> </ProductionBillOfMaterialItemGroup> <ProductionBillOfMaterialItemGroup> <ItemGroupUUID>00163e07-3d6a-1ee8-88d1-8c180cf56ee2</ItemGroupUUID> <ItemGroupID>10</ItemGroupID> <ReuquiredIndicator>true</ReuquiredIndicator> <MultiSelectAllowedIndicator>true</MultiSelectAllowedIndicator> <ItemGroupDescription languageCode="EN">Item Group Description</ItemGroupDescription> <ItemGroupItem> <ItemGroupItemUUID>00163e07-3d6a-1ee8-88d1-8daf2e514ee4</ItemGroupItemUUID> <ItemGroupItemID>20</ItemGroupItemID> <ProductionBillOfMaterialItemGroupChangeState> <ItemChangeStateUUID>00163e07-3d6a-1ee8-88d1-8daf2e518ee4</ItemChangeStateUUID> <EngineeringChangeOrderUUID>00163e07-3d6a-1ee8-88d1-8cd4450daee4</EngineeringChangeOrderUUID> <EngineeringChangeOrderID>HB1</EngineeringChangeOrderID> <InputProductUUID>00163e07-3d66-1ee8-84a7-9f8b03d07d1b</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>TEST_MCA-0003</ProductID> </InputProductID> <InputProductDescription>test_mca-0003</InputProductDescription> <InputProductQuantity unitCode="EA">10.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <ItemChangeStateDescription languageCode="EN">qaxdrcfgvbhnj</ItemChangeStateDescription> </ProductionBillOfMaterialItemGroupChangeState> </ItemGroupItem> <ItemGroupItem> <ItemGroupItemUUID>00163e07-3d6a-1ee8-88d1-8c180cf5aee2</ItemGroupItemUUID> <ItemGroupItemID>10</ItemGroupItemID> <ProductionBillOfMaterialItemGroupChangeState> <ItemChangeStateUUID>00163e07-3d6a-1ee8-88d1-8cd4450e6ee4</ItemChangeStateUUID> <EngineeringChangeOrderUUID>00163e07-3d6a-1ee8-88d1-8cd4450daee4</EngineeringChangeOrderUUID> <EngineeringChangeOrderID>HB1</EngineeringChangeOrderID> <InputProductUUID>00163e07-3d66-1ee8-84a7-98e297ebfd16</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>TEST_MCA-0001</ProductID> </InputProductID> <InputProductDescription>test_mca-0001</InputProductDescription> <InputProductQuantity unitCode="EA">10.0</InputProductQuantity> <InputProductQuantityUoM>EA</InputProductQuantityUoM> <ItemChangeStateDescription languageCode="EN">Line Item Change Description-1</ItemChangeStateDescription> <ItemChangeStateAttachments> <UUID>00163e5f-4d76-1ee9-9ddc-e51991badbe4</UUID> <Document> <UUID>00163e5f-4d76-1ee9-9ddc-e75f38917be4</UUID> <VersionID>0</VersionID> <SystemAdministrativeData> <CreationDateTime>2019-05-15T07:58:35.147071Z</CreationDateTime> <CreationIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</CreationIdentityUUID> <LastChangeDateTime>2019-05-15T07:58:35.147071Z</LastChangeDateTime> <LastChangeIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</LastChangeIdentityUUID> </SystemAdministrativeData> <VisibleIndicator>true</VisibleIndicator> <CategoryCode>3</CategoryCode> <TypeCode>10015</TypeCode> <PathName>/BOAttachments/00163E5F4D761EE99DDCE51991BADBE4/item.change.com</PathName> <Name>item.change.com</Name> <AlternativeName>item attachment</AlternativeName> <Description>test item.</Description> <ExternalLinkWebURI>http://item.change.com</ExternalLinkWebURI> <FileContentURI>http://item.change.com</FileContentURI> </Document> </ItemChangeStateAttachments> <ItemChangeStateTextCollection> <UUID>00163e5f-4d76-1ee9-9ddc-e35b18111be3</UUID> <Text> <TypeCode>10018</TypeCode> <LanguageCode>EN</LanguageCode> <SystemAdministrativeData> <CreationDateTime>2019-05-15T07:58:35.147071Z</CreationDateTime> <CreationIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</CreationIdentityUUID> <LastChangeDateTime>2019-05-15T07:58:35.147071Z</LastChangeDateTime> <LastChangeIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</LastChangeIdentityUUID> </SystemAdministrativeData> <TextContent> <Text languageCode="EN">Line Item Detail Test</Text> </TextContent> </Text> </ItemChangeStateTextCollection> </ProductionBillOfMaterialItemGroupChangeState> </ItemGroupItem> </ProductionBillOfMaterialItemGroup> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryResponseMessage>
Query Bill of Material with specific Variant ID.
<n0:ProductionBillsOfMaterialsQueryByElementsMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global"> <ProcessingConditions> <QueryHitsMaximumNumberValue>150</QueryHitsMaximumNumberValue> <QueryHitsUnlimitedIndicator>false</QueryHitsUnlimitedIndicator> <LastReturnedObjectID/> </ProcessingConditions> <ProductionBillOfMaterials> <SelectionByProductionBillOfMaterialVariantID> <InclusionExclusionCode>I</InclusionExclusionCode> <IntervalBoundaryTypeCode>1</IntervalBoundaryTypeCode> <LowerBoundaryIdentifier>V1</LowerBoundaryIdentifier> </SelectionByProductionBillOfMaterialVariantID> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryByElementsMessage>
Response
<n0:ProductionBillsOfMaterialsQueryResponseMessage xmlns:n0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:ACL:/1SAI/TAS52C6413A240771B948D8:804"> <ProcessingConditions> <ReturnedQueryHitsNumberValue>1</ReturnedQueryHitsNumberValue> <MoreHitsAvailableIndicator>false</MoreHitsAvailableIndicator> <LastReturnedObjectID>00163E5F4D9E1EE98ECF50366499170D</LastReturnedObjectID> </ProcessingConditions> <Log/> <ProductionBillOfMaterials> <ProductionBillOfMaterialID>MAC-0009_BOM_1</ProductionBillOfMaterialID> <ProductionBillOfMaterialDescription languageCode="EN">BoM for Towel</ProductionBillOfMaterialDescription> <CreationDateTime>2019-05-24T09:18:23.535779Z</CreationDateTime> <CreationIdentityUUID>00163e07-3d6a-1ed7-bed2-39fca5838f4a</CreationIdentityUUID> <LastChangeDateTime>2019-02-27T10:32:13.920863Z</LastChangeDateTime> <LastChangeIdentityUUID>00163e5f-4d8f-1ee8-96cf-b2685ed8e142</LastChangeIdentityUUID> <ChangeStateID> 20190524091823.5357790</ChangeStateID> <ProductionBillOfMaterialVariant> <VariantID>V1</VariantID> <VariantDescription languageCode="EN">BoM for Red Towel</VariantDescription> <ProductUUID>00163e5f-4d8f-1ee9-8ecb-7ad201465c78</ProductUUID> <ProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>MAC-0009</ProductID> </ProductID> <ProductQuantity unitCode="EA">2.0</ProductQuantity> <ProductUoM>EA</ProductUoM> <ConsistencyStatus>3</ConsistencyStatus> <ProductionBillOfMaterialVariantItemChangeState> <ItemGroupID>10</ItemGroupID> <ItemID>10</ItemID> <InputProductUUID>00163e5f-4d8f-1ee9-8ecb-54eb4fa6dc32</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>MAC-0005</ProductID> </InputProductID> <InputProductDescription>Thread</InputProductDescription> <InputProductQuantity unitCode="MTK">0.00138</InputProductQuantity> <InputProductQuantityUoM>AREA</InputProductQuantityUoM> <EngineeringChangeOrderID>TWL_ECO</EngineeringChangeOrderID> <EngineeringChangeOrderValidFromDate>2019-02-27</EngineeringChangeOrderValidFromDate> <EngineeringChangeOrderEcoStatus> <LifeCycleStatusCode>5</LifeCycleStatusCode> <AggregatedChangeGroupProcessingStatusCode> </AggregatedChangeGroupProcessingStatusCode> <AggregatedValidityReleaseStatusCode> </AggregatedValidityReleaseStatusCode> </EngineeringChangeOrderEcoStatus> </ProductionBillOfMaterialVariantItemChangeState> </ProductionBillOfMaterialVariant> <ProductionBillOfMaterialItemGroup> <ItemGroupUUID>00163e5f-4d9e-1ee9-8ecf-5c273266f712</ItemGroupUUID> <ItemGroupID>10</ItemGroupID> <MultiSelectAllowedIndicator>true</MultiSelectAllowedIndicator> <ItemGroupItem> <ItemGroupItemUUID>00163e5f-4d9e-1ee9-8ecf-5c2732673712</ItemGroupItemUUID> <ItemGroupItemID>10</ItemGroupItemID> <ProductionBillOfMaterialItemGroupChangeState> <ItemChangeStateUUID>00163e5f-4d9e-1ee9-8ecf-5c2732677712</ItemChangeStateUUID> <EngineeringChangeOrderUUID>00163e5f-4d9e-1ee9-8ecf-5487418e1710</EngineeringChangeOrderUUID> <EngineeringChangeOrderID>TWL_ECO</EngineeringChangeOrderID> <InputProductUUID>00163e5f-4d8f-1ee9-8ecb-54eb4fa6dc32</InputProductUUID> <InputProductID> <ProductTypeCode> </ProductTypeCode> <ProductIdentifierTypeCode> </ProductIdentifierTypeCode> <ProductID>MAC-0005</ProductID> </InputProductID> <InputProductDescription>Thread</InputProductDescription> <InputProductQuantity unitCode="MTK">0.00138</InputProductQuantity> <InputProductQuantityUoM>AREA</InputProductQuantityUoM> </ProductionBillOfMaterialItemGroupChangeState> </ItemGroupItem> </ProductionBillOfMaterialItemGroup> </ProductionBillOfMaterials> </n0:ProductionBillsOfMaterialsQueryResponseMessage>