‎2008 Nov 12 10:54 AM
‎2008 Nov 12 10:57 AM
Hello,
I took the same from SAP Help (you can read the same from there in detail).
Perform On : The subroutine is not executed immediately, but a flag is set for execution when one of the statements COMMIT WORK or ROLLBACK WORK (since Release 6.10) is reached.
Perform General : This statement calls the subroutine specified with the name.
Are you pointing to something other than this?
Thanks,
Jayant
‎2008 Nov 12 11:03 AM
HI Amruta,
Perform ON COMMIT is used to just register your subroutine for execution when the statement
COMMIT is called by the system or COMMIT is called explicitly in the program.
We are supposed to write only the database update statments in such subroutines. This is actually realated to the concepts of LUW. Try to read in details about LUW.
There is another object which is similar to PERFORM on commit. It is CALL FUNCTION <fmname> IN UPDATE TASK.
Regards,
Prakash Pandey