You are on page 1of 15

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Fujitsu Consulting India Private Limited.

Hi ,

This page will provide you with the information like how we can create a material BOM along with the alternate No using BAPI_MATERIAL_BOM_GROUP_CREATE.The reasons why we have to go for this BAPI are: 1. CSAP_MAT_BOM_CREATE do not provide the option of creating BOM along with the alternate no.Whenever we use this function module, material BOM will be created with a default alternate no value i.e. 01. 2. CSAP_MAT_BOM_MAINTAIN can also be used to create a material BOM but it also does the same as CSAP_MAT_BOM_CREATE while creating material BOM.

So, inorder to achieve some real time solutions like creation of Material BOM along with the different alternate nos which usually happens in third party systems .The solution for this is to use the BAPI_MATERIAL_BOM_GROUP_CREATE inorder to create material BOM along with the different alternate nos. Prerequisites for using BAPI_MATERIAL_BOM_GROUP_CREATE are :

Fujitsu Consulting India Private Limited.


1. All the required materials/parts which will be used while creating material BOM have to created in SAP system before using this. 2. Required Engineering Change Number has to be created in SAP system and its staus should be in active state before using this.

Note: Explicit commit work has to be done after using this BAPI. If this BAPI has been called from an external/third party system then BAPI_TRANSACTION_COMMIT has to be executed after executing this BAPI. Following is the example of simple input data which can be used to create a material BOM along with the different alternate nos.

Table Name BOMGROUP BOMGROUPBOM_GROUP_IDENTIFICATION BOMGROUP-OBJECT_TYPE

Value

BOMGROUP1 - For unique Identification of BOM group. BGR. BGR-Bill of material group BOM- Material BOM assembly variant\alternative ITM- BOM Item SUI BOM Sub-Item

BOMGROUP-OBJECT_ID BOMGROUP-TECHNICAL_TYPE

BOMGROUP1 M. Space Simple BOM V Variant BOM M- Multiple BOM

BOMGROUP-USAGE BOMGROUP-BOM_GROUP BOMGROUP-CREATED_IN_PLANT BOMGROUP-LTXT_LANG BOMGROUP-BOM_TEXT

1 ( for Production) . Refer table T416 for various BOM Usage values. BOMGROUP1 1100. EN Created Using BAPI_MATERIAL_BOM_GROUP_CREATE.

Fujitsu Consulting India Private Limited.

VARIANTS BOM1 with Alternative BOM No -11 VARIANTS-BOM_GROUP_IDENTIFICATION VARIANTS-OBJECT_TYPE VARIANTS-OBJECT_ID BOMGROUP1. BOM. BOM1. (External Material /part number which you want to create as material BOM) 11. 01 (Active) 01 Active 02 Inactive 03 Active with History Requirement VARIANTS-BASE_QTY VARIANTS-BASE_UNIT VARIANTS-LTXT_LANG VARIANTS-LANGU_ISO VARIANTS-ALT_TEXT VARIANTS-CHANGE_NO VARIANTS-FUCNTION 100. EA. EN. EN. BOM1 created using BAPI_MATERIAL_BOM_GROUP_CREATE. ECN1. NEW. NEW Insert CHG- Change DEL- Delete BOM1 with Alternative BOM No -12 VARIANTS-BOM_GROUP_IDENTIFICATION VARIANTS-OBJECT_TYPE VARIANTS-OBJECT_ID BOMGROUP1. BOM. BOM1. (External Material /part number which you want to create as material

VARIANTS-ALTERNATIVE_BOM VARIANTS-BOM_STATUS

Fujitsu Consulting India Private Limited. BOM) VARIANTS-ALTERNATIVE_BOM VARIANTS-BOM_STATUS 12. 01 (Active) 01 Active 02 Inactive 03 Active with History Requirement VARIANTS-BASE_QTY VARIANTS-BASE_UNIT VARIANTS-LTXT_LANG VARIANTS-LANGU_ISO VARIANTS-ALT_TEXT VARIANTS-CHANGE_NO VARIANTS-FUCNTION 100. EA. EN. EN. BOM1 created using BAPI_MATERIAL_BOM_GROUP_CREATE. ECN1. NEW. NEW Insert CHG- Change DEL- Delete

ITEMS ITEMS-BOM_GROUP_IDENTIFICATION ITEMS-OBJECT_TYPE ITEMS-OBJECT_ID ITEMS-ITEM_NO ITEMS-ITEM_CAT ITEMS-COMPONENT ITEMS-COMP_QTY BOMGROUP1. ITM. BOM1. 0010. L. (Stock Item) Refer Table T418 for suitable Item category. MAT1. (material/part number to be assigned as BOM component) 100.

Fujitsu Consulting India Private Limited. ITEMS-COMP_UNIT ITEMS-BOM_GROUP_IDENTIFICATION ITEMS-OBJECT_TYPE ITEMS-OBJECT_ID ITEMS-ITEM_NO ITEMS-ITEM_CAT ITEMS-COMPONENT ITEMS-COMP_QTY ITEMS-COMP_UNIT EA. BOMGROUP1. ITM. BOM1. 0020. L. (Stock Item) Refer Table T418 for suitable Item category. MAT2. (material/part number to be assigned as BOM component) 100. EA.

MATERIALRELATIONS MATERIALRELATIONSBOM_GROUP_IDENTIFICATION MATERIALRELATIONS-MATERIAL MATERIALRELATIONS-PLANT MATERIALRELATIONS-BOM_USAGE MATERIALRELATIONS-ALTERNATIVE_BOM MATERIALRELATIONS-LOT_SIZE_FROM MATERIALRELATIONS-LOT_SIZE_TO MATERIALRELATIONSBOM_GROUP_IDENTIFICATION MATERIALRELATIONS-MATERIAL MATERIALRELATIONS-PLANT MATERIALRELATIONS-BOM_USAGE MATERIALRELATIONS-ALTERNATIVE_BOM MATERIALRELATIONS-LOT_SIZE_FROM MATERIALRELATIONS-LOT_SIZE_TO BOMGROUP1. BOM1. 1100. 01. 11. 1 1000. BOMGROUP1. BOM1. 1100. 01. 12. 1 1500.

Fujitsu Consulting India Private Limited.

ITEMASSIGNMENTS ITEMASSIGNMENTSBOM_GROUP_IDENTIFICATION ITEMASSIGNMENTS-SUB_OBJECT_TYPE ITEMASSIGNMENTS-SUB_OBJECT_ID ITEMASSIGNMENTS-SUPER_OBJECT_TYPE ITEMASSIGNMENTS-SUPER_OBJECT_ID ITEMASSIGNMENTS-CHANGE_NO ITEMASSIGNMENTS-FUNCTION BOMGROUP1. ITM. BOM1. BOM. BOM1. ECN1. NEW.

After executing the BAPI_MATERIAL_BOM_GROUP_CREATE with the above sample input data, do the explicit commit work.