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: 

F.M on BOM expolde( transaction name is CS13)

Former Member
0 Kudos

Hi Folks,

i want use F.M on BOM expolde( transaction name is CS13) to get the component numer and Comp.qty(BUn). i saw the pervious querys and tried with F.M CS_BOM_EXPL_MAT_V2. but it is not giving any information about component no and etc..

could please tell which F.m is useful for my requirement.

tahnks in adavance.

cheers..

srini

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Sorry for the wrong info....

I think it is better if you use CSAP_MAT_BOM_READ.

12 REPLIES 12

Former Member
0 Kudos

Hi Srinivas,

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.

Thanks and Warm Regards.

Pras Durafe

0 Kudos

Hi pras,

thanks for u r help.

i have used the FM CSAP_MAT_BOM_READ but is not providing me the full list. is check in th t.c CS13 there 20 components r there here in FM it is showing 4 components that r related to given materail no. plz let me know how to get the total list.

please do needful.

regars

srini

0 Kudos

Hi Srini,

I will check few more FMs. But you give a try with CS_BOM_EXPLOSION.

Hope this will help.

Thanks and Warm Regards.

Pras

0 Kudos

Hi Pras

tahnks for ur help.

i test the FM CS_BOM_EXPLOSION but the result is same and even in the FM CS_BOM_EXPL_MAT_V2 the iamport parameter (MDMPS) flag is set. its also not giving the total list.

thanks

srini

0 Kudos

hi

i tested the FM CS_BOM_EXPL_MAT_V2 .it is giving the total list. but i ned component number and quantity of component , so in this case this FM not useful . any cone one what is the exact FM to display thecomponent no and quantity

thanks in advace

srini

Former Member
0 Kudos

Hi,

I think it is better to use CS_BOM_EXPL_MAT_V2 ( assuming it is Material BOM).

Former Member
0 Kudos

Sorry for the wrong info....

I think it is better if you use CSAP_MAT_BOM_READ.

former_member214131
Active Contributor
0 Kudos

Hello,

Check this thread. This has a sample code. Or you can check the parameters to be supplied in CS13 also in debug mode.

Hope this helps you.

Regards, Murugesh AS

Former Member
0 Kudos

It is better used CS_BOM_EXPLOSION for the BOM explosion. But it will never give result in SE37 Tcode as internal filter delete the component list.

But if u used in the report than it will give u the result in one of the table parameter. I face the same problem and i got the solution as above.

And if u check the CS_BOM_EXPL_MAT_V2 then u will c that the FM will pass the value internally to the CS_BOM_EXPLOSION FM which is used in previous version of SAP.

0 Kudos

Hi Nilesh

Thanks for u r brad help.

Could u please send me the code on this FM . iam gettings probles in difing the export parameters

Thanks in advance

srini

Former Member
0 Kudos

hi,

These are the parameters that you need to pass for the FM CS_BOM_EXPLOSION.

CALL FUNCTION 'CS_BOM_EXPLOSION'

EXPORTING

CAPID = 'PP01'

DATUV = '21.07.2005' "DATE VALID

MTNRV = '58' "MATERIAL NUMBER

STLAL = 1 "ALTERNATIV BOM

STLAN = 3 "BOM USAGE

WERKS = 1000 "PLANT

......................

.......................

THE FINAL RESULT WILL BE AVAILABLE IN THE STRUCTURE STBP.

Hope this will help you.

Regards,

venkatalakshmi PJ

0 Kudos

Hi, i got it we can get the total list by any FM 'CS_BOM_EXPLOSION' or 'CS_BOM_EXPL_MAT_V2'

but passing following parameters r mandatory ..

EXPORTING

CAPID = 'PP01'

DATUV = T_S021-SPTAG

EMENG = T_S021-WEMNG

MKTLS = 'X'

MEHRS = 'X'

MTNRV = T_S021-MATNR

STLAN = '1'

STPST = '0'

SVWVO = 'X'

WERKS = T_S021-WERKS

VRSVO = 'X'

tcheers srini