problem in for all entries
hi abap gurus,
I hav 2 internal tables it1,it2.
it2 has the same structure of it1 except it has one additional field(percent).
I hav moved the contents from it1 to it2 using move corresponding.now i want to populate that percent field from the database table X for all the entries in it2.
I used the following query.but it has not given the required output.
into corresponding fields of table it2
for all entries in it2
where code = it2_code.
pls help me.
use ony it2.
and create another internal table itab3 with code and percent field,
then use select data into itab3 for all entries in itab2
where code = itab2-code.
loop at itab2.
read table itab3 with key code = itab2-code.
if sy-subrc = 0.
itab2-percent = itab3-percent.
modify itab2 transporting percent.
hope it will help you...