‎2007 Sep 22 4:36 AM
Hi All,
I am having an internal table which all ready contains values which are retrieved from the database.
After getting the values into the internal table i have to filter the values in the internal table based upon the select-options and finally i should get the values in the internal table based upon the select options.
Can anyone help me in doing this?
‎2007 Sep 22 4:38 AM
Data: itab1 type table,
itab2 type table.
loop at itab1 into wa1.
if wa1-fld1 in s_matnr.
append wa1 to itab2.
endif.
endloop.
Regards,
Amit
Reward all helpful replies.
‎2007 Sep 22 4:48 AM
Rajesh,
parameters p_matnr like makt-matnr
select * from makt into table imakt where spras = sy-langu.
loop at imakt.
loop at itfinal.
if itfinal-mantr NOT IN p_mantr.
delete itfinal.
endif.
endloop.
K.Kiran
‎2007 Sep 22 5:18 AM
Hi,
Try like this..
Tables : mara.
Data : s_matnr for mara-matnr.
(if itab have already data then...)
if not s_matnr is initial.
delete itab where matnr in s_matnr.
endif.
Regards
Gagan
‎2007 Sep 22 6:58 AM