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

reg internal table

Former Member
0 Likes
510

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?

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
488

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.

Read only

kiran_k8
Active Contributor
0 Likes
488

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

Read only

former_member194152
Contributor
0 Likes
488

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

Read only

Former Member
0 Likes
488

THANKS FOR THE HELP