‎2006 Jul 20 2:15 PM
Hello,
Is there a function module that will explode material 'kits' ?
‎2006 Jul 20 2:28 PM
Hi,
you talk about materials with components?
Have a look at FM CS_BOM_EXPL_MAT_V2.
Regards,
Christian
‎2006 Jul 20 2:28 PM
Hi,
you talk about materials with components?
Have a look at FM CS_BOM_EXPL_MAT_V2.
Regards,
Christian
‎2006 Jul 20 2:37 PM
Yes, How do I get the components of a material by passing the material number? Is there a function module for the same?
‎2006 Jul 20 3:02 PM
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
‎2006 Jul 20 3:57 PM
Thankyou Christian,
I also had to pass the plant, without which the function was returning a NO_BOM_FOUND exception.