Skip to Content
Former Member
Jun 21, 2007 at 12:34 PM

need help-urgent



I am getting the MaterialBOMs in ITAB. I have to check the the materialBOM will contains the

MTPOS(Repair flag in MVKE)s 'ZERP' or 'zexp'.I have to filter MTPOS with VKORGVTWEg and SPART .Then only i am adding that BOM to iTAB_OUT table.

please tell this logic is correct or not.

data : begin of it_mvke occurs 0,

matnr like mvke-matnr,

vkorg like mvke-vkorg,

vtweg like mvke-vtweg,

spart like mara-spart,

mtpos like mvke-mtpos,

end of it_mvke.

select mtpos into table it_mvke

from mvke

for all entries in ITAB

where matnr = itab-matnr

and vkorg = it_mvke-vkorg

and vtweg = it_mvke-vtwek

and spart = it_mvke-spart

and mtpos in ( 'ZEXp', 'ZREP' ).

if sy-subrc = 0.

itab-mtpos = it_mvke-mtpos.


please help me in this.

Will get reward points.

regards,Ajay ram