Skip to Content
0
Former Member
Dec 18, 2006 at 12:17 AM

updating database table from an internal table

1395 Views

hi! i am tryin to update ztable from an internal table(8 records). but i see that only one record gets updated in ztable. i used the followin code

loop at itab into wa.

modify z3pus from wa.

commit work.

if sy-subrc <>0.

write: / 'fail'.

else.

write: / 'success'.

endif.

endloop.

(used insert and update also not much luck.....)

i got output 'success' 8 times..........but i see only one record in ztable. what could possibly go wrong???????????????