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

Filter material

former_member533538
Participant
0 Likes
524

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?

3 REPLIES 3
Read only

Clemenss
Active Contributor
0 Likes
488

Hi damon,

you mach fetch the maerial class MARA-MATKL. If it is 'RAW', delete the unwanted levels STB-STUFE.

Regards,

Clemens

Read only

Former Member
0 Likes
488

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

Read only

former_member533538
Participant
0 Likes
488

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