Get Example source ABAP code based on a different SAP table
VERSION 5 OUT
Forbidden Statements in Updates In updates>, that is, when an update function module> triggered using COMMIT WORK>> is being processed, the following applies:
There can be no database commits> or database rollbacks>.
The update controller must not be modified. If a database commit or database rollback occurs during an update, it terminates with a runtime error. Any statements that disrupt the update controller can produce undefined behavior. Any statements that would produce a database commit or database rollback or would disrupt update control are therefore forbidden and produce a runtime error as soon as they are called and before the runtime error can occur in another place. These are the following statements:
The statements
COMMIT WORK>>
ROLLBACK WORK>>
COMMIT$|ROLLBACK CONNECTION> > on the standard database>. produce a database commit or database rollback explicitly and hence produce the runtime errors COMMIT_IN_POSTING> or ROLLBACK_IN_POSTING> directly during the update.