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

simple problem

Former Member
0 Likes
498

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.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
465
Loop at it_zfm_handy.
 
  select Single nachn vorna from pa0002 
             into corresponding fields of it_zfm_handy
                     where pernr = it_zfm_handy-pernr.

modify it_zfm_handy.
endloop.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
465

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

Read only

Former Member
0 Likes
465

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