on 04-24-2006 4:05 PM
Folks,
I am new to ABAP , T have this problem : I have sorted an Internal Table on 5 fields , Now I need to pick up the similar records on which I have done sorting while looping . How to do it , Please let me know
Manish
You can use
READ TABLE <itab> into <WA> COMPARING f1 f2 f3 f4 f5.
If the system finds an appropriate entry, it uses the specified work area wa as the output area.
Regards,
Suresh Datti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
loop at itab.
if itab-field1 = lv_field1 and
itab-field2 = lv_field2.
write:/ 'similar record'.
else.
write:/ 'not similar record'.
endif.
lv_field1 = itab-field1.
lv_field2 = itab-field2.
endloop.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.