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: 

User Exit COOMKS02 - Error : System error: object number was already assign

vivekkrishnan
Active Participant
0 Kudos

Hi experts,

We are developing the user exit COOMKS02, EXIT_SAPLKMA1_003, ZXKM1U03.

We have written some check while saving the cost center. The error message is displayed correctly.

But after the checks are satisfied the object is locked and we are not able to save the cost center.

The error displayed is<b> object number was already assign</b>

Can u suggest how we should go about to eliminate this error ??

Regards,

Vivek K

7 REPLIES 7

vivekkrishnan
Active Participant
0 Kudos

Hi all,

The error is due to function module <b>TBO00_GET</b>.

The variable <b>st_tbo00</b> is declared as statics.

And this is assigned when the program runs for the first time. This needs to cleared.

The field st_tbo00 is made to available in the user exit or the field has to cleared when the message while saving is displayed.

Will lock object concept work in this issue ?

How can we do this ??

Regards,

Vivek K

Message was edited by:

Vivek Krishnan K

vivekkrishnan
Active Participant
0 Kudos

Hi all,

The error can be solved by using the code:

Message Wabc like type 'E' with int_tabl-varia.

raise error.

This raise error is the exception for the function module.

Message was edited by:

Vivek Krishnan K

0 Kudos

Hi Vivek,

Can you please elaborate how you went about resolve this issue?

I'm running into a same problem as you had.

Thanks,

Ron

0 Kudos

Someone has the answer? I have the same problem even with the solution of the message and the raise exception.

Thanks.

0 Kudos

It has been solved.

0 Kudos

Hello,

I have the same problem, I raised the exception in the user-exit but there is a structure CI of customer fields with a tabstrip that is automatically shown, ¿how can I avoid it?

Thank you a lot!

0 Kudos

Hi Virginia.

If you want to add a customer field, you need to follow the next SAP notes: 141707, 379596, 206306

Also, you can find more information in the Function Module's Help.

Regards.