Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Explode BOM with BAPI

Former Member
0 Kudos
1,227

Hil!

I need to create material component and BOM to network. I'm using BAPI BAPI_NETWORK_COMP_ADD. When I input a BOM in transaction CN22, I have the option to Explode BOM, so the materials are copied to network and the BOM are marked (already been exploded).

The problem is: I can`t do this with the BAPI_NETWORK_COMP_ADD, I`v created the BOM and the exploded materials, but the bom it`s not marked as exploded, I can explode it again in the CN22.

At transaction, a material have ITEM CATEGORY = L, and a BOM have ITEM CATEGORY = T, using the bapi I can only insert items with category L.

Somebody can help me?

Tnx!

4 REPLIES 4

Former Member
0 Kudos
188

hmmm i dont know if thgis helps you but exploding BOM´s i use following 3 FM´s

CS_BOM_EXPLOSION "for BOM´s

CS_BOM_EXPL_MAT_V2 "for materialBOM´s

CS_BOM_EXPL_KND_V1 "for customeroderBOM´

0 Kudos
188

I the really, I`m using the function CSAP_MAT_BOM_READ, this give me a list of the associed materials. With this I create a table with the BOM and the materials, to use in bapi.

But the bapi insert the BOM as material, in the transaction CN22, and I can explode it again. I would like insert a BOM as "exploded" BOM, because I`m already inserting its material.

Tnx for the help!

Former Member
0 Kudos
188

Hi,

Here are the function modules

'CS_BOM_EXPL_MAT_V2'

You can use the category L, see the tables, there in one of the table you can pass the Catagory

Regards

Sudheer

Former Member
0 Kudos
188

hI,

USE 'CS_BOM_EXPL_MAT_V2'

Regards