PERFORM ... ON
COMMIT or PERFORM ... ON ROLLBACK .
The statement ROLLBACK WORK must not be executed in units or
LUW s that are managed by
transactional RFC calls ( bgRFC , tRFC , or qRFC ).
The ROLLBACK WORK statement is executed implicitly if a
message of type A is handled by the addition
error_message when calling a function module with CALL
FUNCTION .
Runtime Exceptions
Non-catchable Exceptions
Reason for error: ROLLBACK WORK is not permitted within a FORM
that is called with PERFORM ... ON COMMIT
or PERFORM ... ON ROLLBACK .
Runtime error: ROLLBACK_IN_PERFORM_ON_COMMIT
Reason for error: ROLLBACK WORK is not permitted within an update.
Runtime error: ROLLBACK_IN_POSTING
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved