what is wrong with this code? it is not showing my 7 records.
the output is this [LINK|http://i338.photobucket.com/albums/n440/googleb0y/album1/output01.jpg]
when i use the debugger, intenal table is empty. [LINK|http://i338.photobucket.com/albums/n440/googleb0y/album1/debug01.jpg]
where did i go wrong? thanks for the help.
data: begin of WA,
MYUID type ZADDRESSBOOK-USERID,
MYFNAME type ZADDRESSBOOK-FNAME,
MYLNAME type ZADDRESSBOOK-LNAME,
end of WA.
data: ITAB like table of WA.
select USERID FNAME LNAME
from ZADDRESSBOOK
into corresponding fields of table ITAB.
write: / SY-DBCNT, 'records found'.
if sy-subrc eq 0.
loop at ITAB into WA.
write: / WA-MYUID, WA-MYFNAME, WA-MYLNAME.
endloop.
endif.