‎2011 Jan 01 7:16 AM
hello,experts, after i call function "CS_BOM_EXPL_MAT_V2",i got the exploded BOM material data,if it have raw material,i only want to reserve the first level raw material,and remove all the lower level material,leave other material type as it is,how can i achieve it?
‎2011 Jan 01 3:07 PM
Hi damon,
you mach fetch the maerial class MARA-MATKL. If it is 'RAW', delete the unwanted levels STB-STUFE.
Regards,
Clemens
‎2011 Jan 01 3:30 PM
Hello,
You can get all the BOM data into an internal table ITAB and then -
data itab like jtab occurs 0 with header line.
loop at itab.
select single * from mara where matnr = itab-matnr.
if mara-mtart = 'ROH'
and itab-stufe > 1.
else.
move-corresponding itab to jtab.
Append JTAB.
endif.
--- your JTAB has the value you want .
Rgds,
Pankaj
Edited by: Pankaj Singh on Jan 1, 2011 9:01 PM
‎2011 Jan 02 7:21 AM
hello,my point is i don't want to explode the raw material BOM,other material type will be exploded,and the first level raw material may exist in different stufe