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 in IMRC0001

Former Member
0 Likes
941

Hi,

I have implemented the customer exit IMRC0001.

In the code I make a call to the BAPI_ALM_ORDER_MAINTAIN to create a PM order, after that I need to make a BAPI_TRANSACTION_COMMIT but it is give in me a dump: COMMIT_IN_PERFORM_ON_COMMIT

What can I do to commit the BAPI_ALM_ORDER_MAINTAIN in the customer exit?

The same code works fine if I execute it as a report.

Thanks in advance. Regards,

8 REPLIES 8
Read only

Former Member
0 Likes
880

Ximena,

With BAPI_TRANSACTION_COMMIT ..try.

--

Reddy

Read only

0 Likes
880

I already tried that and because of it, is that i´m getting the dump.

Any other ideas?

Thanks,

Read only

Former Member
0 Likes
880

If you're calling in an exit, you don't want to commit, do you? Let the end of the transaction you're running do the commit.

Read only

0 Likes
880

I also tried that, but if I don´t put a COMMIT the PM order is not saved.

Thanks anyway.

Regards

Read only

Former Member
0 Likes
880

Hi,

In such cases its better to create Z function module call bapi to create PM order and use bapi commit there,

and call this z function in the background task in the exit by CALL ZFUNCTION IN BAKGROUND TASK and to debug this

enable update debugging option in your debugger.

Thanks

Read only

Former Member
0 Likes
880

Hi

Try calling the BAPI in update task

Read only

0 Likes
880

I'm going to try both of your suggestions and then let you know!

Thanks!

Read only

0 Likes
880

I tried both of you suggestions but non of them worked for me.

What I did to solve my problem is save all the data in a Z table in the user exit and then running a job that creates the PM order from the Z table.

Thanks anyway.

Best regards,