Skip to Content
0

BAPI_TRANSACTION_COMMIT' giving COMMIT_IN_PERFORM_ON_COMMIT dump

May 18, 2017 at 05:34 AM

140

avatar image

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,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Sandra Rossi May 18, 2017 at 05:41 AM
1

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

Show 4 Share
10 |10000 characters needed characters left characters exceeded

I am calling this BAPI in the EXIT_SAPLIMR0_001 user exit.

0

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.

0

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 ?

0

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

0
Raymond Giuseppi
May 18, 2017 at 07:43 AM
1

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.



Share
10 |10000 characters needed characters left characters exceeded
Eric Chen
May 18, 2017 at 07:16 AM
0
Share
10 |10000 characters needed characters left characters exceeded