cancel
Showing results for 
Search instead for 
Did you mean: 

Error coming while creating BOM for AFS module for second alternate BOM

0 Kudos
336

Hi,

I am creating BOM for AFS using BAPI "/AFS/BAPI_MAT_BOM_MAINTAIN". For first alternate BOM it is creating successfully. When i try to create the same material, plant and sales_BOM(5) with the next alternate type i am getting an error saying that "Alternate BOM does not exist"(Msg id 29 and num 037). The control is going to this bapi "CS_BT_MASTB_READ" and then throwing the said error.

Can any one suggest a solution for this ?

Accepted Solutions (0)

Answers (1)

Answers (1)

adam_fulop
Advisor
Advisor
0 Kudos

Dear Siva,

I have searched for similar topics, and found, that this is rather an LO-MD-BOM related question, based on the message you get.

"as standard you cannot use CSAP_MAT_BOM_CREATE to create alternative BOM's.

The only, in SAP standard existing, way to create alternative BOMs would be to use the BAPIBAPI_MATERIAL_BOM_GROUP_CREATE

Please check the following link to create alternate BOM's.
https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=139952373

Also refer to the following notes.

545676 - FAQ BOM data transfer
764990 - How to call BAPI_MATERIAL_BOM_GROUP_CREATE?
765193 - BAPI_MATERIAL_BOM_GROUP_CREATE and history
115784 - ALE: ALE distribution of multiple BOMs501303
501303 - ALE: Transferring multiple BOMs "

Regards,

Adam