Application Development 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: 

creating maintenance order from enhancement IMRC001

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

peter_atkin
Active Contributor
0 Kudos

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

1 REPLY 1

peter_atkin
Active Contributor
0 Kudos

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