SAP Knowledge Base Article - Public

3213451 - Indicator 'Relevancy to Costing' not updated when creating a BOM Item using Entity BillOfMaterialItem

Symptom

  • Indicator 'Relevancy to Costing' not updated when creating a BOM Item using Entity BillOfMaterialItem and Method POST of API API_BILL_OF_MATERIAL_SRV;v=0002
  • During method POST of a BillOfMaterialItem Entity the property BOMItemIsCostingRelevant is always set (X) even when property is empty "BOMItemIsCostingRelevant":""

Environment

  • SAP S/4HANA Cloud
  • Bill of Material

Reproducing the Issue

Call the API BILL_OF_MATERIAL_SRV;v=0002 with sample payload below and method POST

/sap/opu/odata/sap/API_BILL_OF_MATERIAL_SRV;v=0002/MaterialBOM(BillOfMaterial='123456789',BillOfMaterialCategory='M',BillOfMaterialVariant='1',BillOfMaterialVersion='',EngineeringChangeDocument='',Material='SAPHEADER',Plant='1010')/to_BillOfMaterialItem

{
"BillOfMaterial" : "123456789",
"BillOfMaterialCategory" : "M",
"BillOfMaterialVariant" : "1",
"BillOfMaterialVersion" : "",
"HeaderChangeDocument" : "",
"Material" : "SAPHEADER",
"Plant" : "1010",
"BillOfMaterialItemQuantity" : "1",
"BillOfMaterialComponent":"SAPCOMPONENT",
"BillOfMaterialItemCategory" : "L",
"BillOfMaterialItemNumber" : "0010",
"BOMItemIsCostingRelevant":" "
}

Cause

The Setting of the indicator 'Relevancy to Costing'  depends on the customizing in the SSCUI / Configuration Activity 'Define Default Values for the Item Status '

For example , The Usage 1 Production is defaulted to be Cost Relevant in the SSCUI / Configuration Activity

In case of creation of a new item if no value is passed for any of the item status fields then default values from customizing will be set.

If the costing indicator has been marked for a BOM Usage, then it will always be set.

In the sample payload specified, since no value is passed for item status and the Usage is marked as Costing relevant in customizing the "Costing Indicator" for item is filled

 

Resolution

In case you want to explicitly set it as blank, kindly use the workaround of PATCH call afterwards on the item

Keywords

'Indicator for Relevancy to Costing' SANKA , T416V , KBA , LO-MD-BOM , Bills of Material , PLM-FIO-BOM , Fiori UI for Material BOM , How To

Product

SAP S/4HANA Cloud all versions