Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

perform oncommit

Former Member
0 Likes
366

what is difference between Perform

and perform on commit

2 REPLIES 2
Read only

Former Member
0 Likes
332

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

Read only

Former Member
0 Likes
332

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