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

Dynamic internal table search

Former Member
0 Likes
263

hi

I have internal table matnr maktx mtart are fields of internal table , and I have structure with same fields .

I want to do something dynamic like only is not initial fields need to comporision.

loop at itab where fields is initial .

if it is matnr compare it with ls_itab-matnr

endloop.

How can I do this

1 REPLY 1
Read only

Former Member
0 Likes
245

loop at itab.

if not itab-matnr is initial.

compare it with ls_itab-matnr ...

endif.

if not itab-maktx is initial.

compare it with ls_itab-maktx...

endif.

if not itab-mtart is initial.

compare it with ls_itab-mtart ...

endif.

endloop.