Application Development and Automation 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: 
Read only

BAPI for reading BOMs

Former Member
0 Likes
9,257

Hello!

Does anyone know about which BAPI to use to read material BOMs from SAP ERP? I tried to find one in transaction BAPI but did not succeed.

Thanks a lot and best Regards

Jens

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
5,418

Hi Jen,

You can use CSAP_MAT_BOM_READ function module.

You need to pass value for Material and BOM usage.

This will return two tables T_STPO and T_STKO.

If you need any example, please let me know.

Hope this will help.

Also try CS_BOM_EXPLOSION.

Thanks and Warm Regards.

Pras Durafe

4 REPLIES 4
Read only

athavanraja
Active Contributor
0 Likes
5,418

Welcome to SDN

you can use FM

'CS_BOM_EXPL_MAT_V2'

but this is not RFC enabled.(you cannot call it from external system) if you want this to be RFC enabled just wrap it with a RFC function. (check /people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap for wrapping it in a RFC)

Rdgards

Raja

Since you are new to SDN, have a look at the following weblog about SDN way of saying thanks,

/people/mark.finnern/blog/2004/08/10/spread-the-love

Read only

Former Member
0 Likes
5,418

Hi Jens,

Welcome to SDN.

You are right, a BAPI to explode a BOM probably does not exist in standard package (wonder why !!?!). though they have BAPIs to Create a material BOM and to check if a BOM for a material exists (BAPI_MAT_BOM_EXISTENCE_CHECK).

Though a work aroung might be helpful. You might want to use the Function module "CS_BOM_EXPL_MAT_V2". This FM is not remote enabled. So all you have to do is <i><b>envelope</b></i> this within a custom RFM and go on from there.

Hope this helps.

Cheers and Regards,

Sanyam<i></i><i></i>

Read only

Former Member
0 Likes
5,419

Hi Jen,

You can use CSAP_MAT_BOM_READ function module.

You need to pass value for Material and BOM usage.

This will return two tables T_STPO and T_STKO.

If you need any example, please let me know.

Hope this will help.

Also try CS_BOM_EXPLOSION.

Thanks and Warm Regards.

Pras Durafe

Read only

Former Member
0 Likes
5,418

Hi Jens,

Please go through the below weblogs. They have a sample code that will help you out.

Explode BOMS - Prakash

/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-1-abap

/people/prakash.singh4/blog/2005/05/15/explode-boms-in-enterprise-portal-using-htmlb-tree--part-2-java

Explode BOMS - Thomas

/people/thomas.jung3/blog/2005/05/16/explode-boms-in-enterprise-portal-using-htmlb-tree--part-3-bsp

Hope these help you out.

Thanks & Regards

Kathirvel