2008 Nov 04 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.
2008 Nov 04 8:23 PM
2008 Nov 04 8:23 PM
2008 Nov 05 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.
2008 Nov 07 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.
2013 Oct 30 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.
2021 Dec 23 3:39 PM
2015 Sep 25 12:49 AM
Someone has the answer? I have the same problem even with the solution of the message and the raise exception.
Thanks.
2015 Oct 02 7:10 PM
2024 Mar 28 2:11 PM
2024 Mar 28 3:07 PM - edited 2024 Mar 28 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.