For UPDATE to work, entries have to exist in the data base table for the entries you want to update from the internal table. So in your caase, the entries likely don't exist in the database and you are getting sy-subrc = 4.
There is an implicit COMMIT at the end of the program, so adding one won't really help.
Rob
Try MODIFY or INSERT, not sure about the syntax here.
MODIFY ztable FROM TABLE ITAB1. or INSERT ztable FROM TABLE ITAB1.
Regards,
Rich Heilman
Which value get SY-SUBRC after your update.
Remembre not to change primary keys of your records.
regards.
Add a comment