10-15-2008 2:32 PM
Hi
I am trying to create a maintenance order from the customer exit EXIT_SAPLIMR0_001 inside enhancement IMRC001. For order creation i have invoked the BAPIs BAPI_ALM_ORDER_MAINTAIN and bapi_transaction_commit subsequently to write changes to the database. But once the control returns from main program I receive an express message which states
Update was terminated
System ID.... ECD
Client....... 400
User..... SSEN
Transaction.. CO11N
Update key... 48DCDEE6DD6E01AFE1008000093362E1
Generated.... 15.10.2008, 09:11:42
Completed.... 15.10.2008, 09:11:43
Error Info... 00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
Can any of you help me on this. I am doubtful on commiting from a include; but in the doc for this enhancement it is mentioned that we can create order from it. Is there any other way to do this?
Thanks in advance
Sudip
10-15-2008 5:10 PM
udip,
I think there's some sample code with this user-exit..
Have a look at that, it may give some pointers...
Also try without the BAPI_TRANSACTION_COMMIT.
PeteA
10-15-2008 5:10 PM
udip,
I think there's some sample code with this user-exit..
Have a look at that, it may give some pointers...
Also try without the BAPI_TRANSACTION_COMMIT.
PeteA