on 01-19-2006 7:20 AM
i have got the internal table Header.
there are two other internal table item1 and item2.
i need to get the iterate both the internal tables at the same time . how to do it.
Regards,
clara.
Hi,
My suggestion is , merge contents of two item tables into another internal table and loop this merged table. If both item tables contain different data related to same item then this job is much easier.
Regards,
Ramesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Anitha,
Could you explain in detail, what are you trying to do?
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
data: l_tabix type sy-tabix.
loop at item1.
l_index = sy-tabix.
read table header index l_tabix.
if sy-subrc = 0.
endif.
endloop.
this way you can loop both
regards
vijay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
LOOP AT itab1.
READ TABLE itab2 INDEX SY-INDEX.
ENDLOOP.
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.
read table itab1 with key fld1 = itab-fld1.
if sy-subrc eq 0.
read table itab2 with key fld1 = itab-fld1.
if sy-subrc eq 0.
endif.
endif.
endloop.
if there r no common fields
then u can use vijay babus suggestion
Message was edited by: chandrasekhar jagarlamudi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.