‎2007 Jan 18 3:14 PM
oop at table TABLE it_zfm_handy and for every record where the field pernr > 0, select the corresponding name from PA0002.
how to write this statement in coding.
‎2007 Jan 18 3:19 PM
‎2007 Jan 18 3:21 PM
hi,
Loop at it_zfm_handy.
if it_zfm_handy-pernr > 0.
select single vorna nachn from PA0002 into corresponding fields of it_zfm_handy where pernr = it_zfm_handy-pernr.
modify it_zfm_handy transporting vorna nachn.
endif.
endloop.
PLs close the thread if the prblem is solved and reward to all helpful answers....
Regards
CNU
‎2007 Jan 18 3:32 PM
types: begin of ty_names,
pernr type persno,
nachn type PAD_NACHN,
vorna type PAD_VORNA,
end of ty_names.
data: it_names type standard table of ty_names.
if not it_zfm_handy[] is initial.
select pernr nachn vorna
from pa0002
into table it_names
for all entries in it_zfm_handy
where pernr eq it_zfm_handy-pernr.
endif.
Thanks,
Santosh