cancel
Showing results for 
Search instead for 
Did you mean: 

Subroutine should execute just after Commit

Former Member
0 Kudos

Hi All,

I am working on user exit. I am writing the subroutine in the user exit. This user exit is in SAP Standard program and this sap standard program have the commit statement. My requirment is that subroutine should execute just after the commit statement, not before.

What can I do for that. I tried with perform on commit and in update task but both execute just before Commit. Pls help me out.

Thanks,

Rakesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Check the below link for documentation.

Hope it would be of some help to you.

http://help.sap.com/saphelp_47x200/helpdata/en/41/7af4e3a79e11d1950f0000e82de14a/content.htm

Regards,

Vara

Vinod_Chandran
Active Contributor
0 Kudos

f you want to execute this sub routine after all the other subroutines on commit work are finished then use the addition LEVEL idx after the ON COMMIT statement.

data w_idx type i.

w_idx = '99'.

PERFORM form ON COMMIT LEVEL w_idx.

Former Member
0 Kudos

No vinod,

Still it is not working, it is related to VL02N Tcode, here user is entering long text and pressing PGI button with out saving , in my userexit I have to catch that text. text is saving into database after commit only. but my userexit is triggering before that.