11-04-2008 8:02 PM
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.
11-04-2008 8:23 PM
11-04-2008 8:23 PM
11-05-2008 12:54 AM
Hi Ranga,
I've read Vivek's posting but he didn't quite explain how he did it.
Thanks for the reply.
11-07-2008 5:29 PM
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.
10-30-2013 5:12 AM
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.
12-23-2021 3:39 PM
09-25-2015 12:49 AM
Someone has the answer? I have the same problem even with the solution of the message and the raise exception.
Thanks.
10-02-2015 7:10 PM
03-28-2024 2:11 PM
03-28-2024 3:07 PM - edited 03-28-2024 3:25 PM
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.