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

BAPI_TRANSACTION_COMMIT' giving COMMIT_IN_PERFORM_ON_COMMIT dump

former_member228514
Participant
0 Likes
2,100

Hi All,

am creation Notification and used BAPI_ALM_NOTIF_CREATE, BAPI_ALM_NOTIF_SAVE and

BAPI_TRANSACTION_COMMIT in sequence.

While calling CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' IMPORTING RETURN = gt_Return .. I am getting above dump.

Thanks,

Aarti,

7 REPLIES 7
Read only

Sandra_Rossi
Active Contributor
1,406

Normal. It says that you can't commit inside a commit. Read the ABAP documentation please.

Read only

0 Likes
1,406

I am calling this BAPI in the EXIT_SAPLIMR0_001 user exit.

Read only

0 Likes
1,406

So, it probably means that the EXIT_SAPLIMR0_001 user exit is called in an "update task" (cf ABAP documentation), which is triggered during a standard COMMIT WORK. In your code, you must not do a COMMIT WORK again (BAPI_TRANSACTION_COMMIT does a COMMIT WORK), as you are already inside a COMMIT WORK.

Inside an update task, it's a little late to call a BAPI, but it can work, so try without BAPI_TRANSACTION_COMMIT.

Otherwise, do as Raymond suggests, start your code in a separate process, for instance tRFC, bgRFC, background job, and so on.

Read only

0 Likes
1,406

Thanks for u r comments. Actually I am trying to create PM notification. If I remove the BAPI_TRANSACTION_COMMIT then notification will not be able to save in the LUW. I am using the IMRC0001 enhancement beacause I need to check measurement point. Any solution ?

Read only

0 Likes
1,406

Otherwise, do as Raymond suggests, start your code in a separate process, for instance tRFC, bgRFC, background job, and so on.

Read only

eric_chen01
Associate
Associate
0 Likes
1,406
Read only

RaymondGiuseppi
Active Contributor
1,406

Read the exit desciption: 'User Exit Before Update of Measuring Points/Documents (After COMMIT WORK)' You are not allowed to execute a commit at this step.

Obviously this exit is called in some PERFORM ON COMMIT step) so you could wrap your code for an execution in another LUW using Background RFC (bgRFC) for example.