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

Explode Kit

Former Member
0 Likes
764

Hello,

Is there a function module that will explode material 'kits' ?

1 ACCEPTED SOLUTION
Read only

christian_wohlfahrt
Active Contributor
0 Likes
718

Hi,

you talk about materials with components?

Have a look at FM CS_BOM_EXPL_MAT_V2.

Regards,

Christian

4 REPLIES 4
Read only

christian_wohlfahrt
Active Contributor
0 Likes
719

Hi,

you talk about materials with components?

Have a look at FM CS_BOM_EXPL_MAT_V2.

Regards,

Christian

Read only

0 Likes
718

Yes, How do I get the components of a material by passing the material number? Is there a function module for the same?

Read only

0 Likes
718

Hi,

this is an example for sales-usage. Have a look in table MAST, which STLAN you have and combine this with table TC04 to get the right CAPID.


tables: mast.
select single * from mast
      where matnr = p_matnr.
*      and  werks = p_werks  "If site-specific can occur
if sy-subrc eq 0.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
    EXPORTING
      capid = 'SD01'
      mtnrv = p_matnr
      datuv = sy-datum
      mdmps = 'X'         "explode positions
      stlan = mast-stlan
      werks = space
    TABLES
      stb   = lt_stpox.
endif.

Regards,

Christian

Read only

0 Likes
718

Thankyou Christian,

I also had to pass the plant, without which the function was returning a NO_BOM_FOUND exception.