2010 Jun 15 9:02 PM
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,
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.
2010 Jun 16 5:48 AM
2010 Jun 18 7:02 PM
I already tried that and because of it, is that i´m getting the dump.
Any other ideas?
Thanks,
2010 Jun 18 8:31 PM
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.
2010 Jun 18 9:01 PM
I also tried that, but if I don´t put a COMMIT the PM order is not saved.
Thanks anyway.
Regards
2010 Jun 23 12:06 PM
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
2010 Jun 23 12:30 PM
2010 Jun 23 1:12 PM
I'm going to try both of your suggestions and then let you know!
Thanks!
2010 Jun 23 6:44 PM
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,
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |