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: 

System error: object number was already assign in KS01 using COOMKS02.

Former Member
0 Kudos

Hello Gurus,

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

We have written some checks while saving the cost center and the error message is displayed correctly.

Problem occurs when we tried to save the cost center, we are getting an error message "System error: object number was already assigned".

I've checked the note 715947 but offers no solution.

How do I go about resolve this error condition?

Thank You.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

See This link

Similar Post

Ranga

9 REPLIES 9

Former Member
0 Kudos

Hi,

See This link

Similar Post

Ranga

0 Kudos

Hi Ranga,

I've read Vivek's posting but he didn't quite explain how he did it.

Thanks for the reply.

Former Member
0 Kudos

I was able to resolve the problem:

Message type must either be 'I' or 'S'. Don't use 'W' or 'E'.

LOOP AT icsksp INTO wa_icskp.

IF wa_icskp-z_xxx = space.

CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT'

EXPORTING

titel = 'WARNING! Valid Regulatory Indicator Missing:'

textline1 = 'Please enter a valid XXXX!'.

MESSAGE s208(00)

WITH 'Please enter a valid xxx'.

raise error.

ENDIF.

sridhar_rao4
Explorer
0 Kudos

Hi,

the issue is the usage of messages of type E in the user exit of component COOMKS02.

Replace all messages within this userexit having E with S or I and in next line raise an exception with 'RAISE ERROR'. This will solve the issue.

0 Kudos

thank you !

problem is resolved

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.

Meghana1
Newcomer
0 Kudos

Getting same error but not able to resolve

0 Kudos

Did you raise exception ERROR in the MESSAGE statement?

 

MESSAGE 'Error during check' TYPE 'E' RAISING ERROR.

 

If you forget, the erreur will trigger a PAI/PBO cycle and won't execute the code intended to handle it (reset a number assignation in this case)
Hint: Try to execute a where-used search of the Exit FM and look at the code following the call.