dear experts, i have a question about SAP LUW, i am always confused about the SAP LUW rollback mechanism.
As the ABAP document said, no ROLLBACK WORK and COMMIT WORK statement allow under SAP LUW, only message with type A could implicit rollback the SAP LUW, i did below test:
my system component versions are:
i create two tables YLUW1 and YLUW2 like below, and initial the value:
i wrote a report to execute the PERFORM...ON COMMIT statement which is one of the solutions of SAP LUW:
first case, i use message with type A to trigger a implicit rollback and it's worked, but program terminate with error.
second case, i didn't write anything under sy-subrc check, and table YLUW1 inserted successfully, YLUW2 inserted failed.
the last case, i raise a exception to trigger a implicit rollback and it's worked, but program terminate with error.
after all of these, my question is: how i can rollback the SAP LUW when any table insert/update/delete error and i could catch the SAP LUW error then deal with it.