05-12-2006 7:41 AM
Hi everybody,
I have a requirement to show a warining message in CO12 transaction when user clicks save button with out doing the goods movement. For this i have a BADI WORKORDER_CONFIRM. In this badi AT_SAVE method i can use. But if user doent click the goods movement it should stop the saving process and give the warning message he will do the goods movement and save it again. But as per my code it just giving message and continuing the saving process. How can i stop the saving process.
Thanks in advance.
05-12-2006 8:08 AM
Do you have try to make a sy-subrc <> 0 ?
Cause there is an exection in your BADI : ERROR_WITH_MESSAGE
Rgd
Frédéric
05-12-2006 8:08 AM
Do you have try to make a sy-subrc <> 0 ?
Cause there is an exection in your BADI : ERROR_WITH_MESSAGE
Rgd
Frédéric
05-12-2006 8:15 AM
Hi Frederic,
Thanks for your reply, I have used the exception also but it is aborting the transaction . just i want to stop the saving process and remain in the same screen.
05-12-2006 12:53 PM
You could try to find if the program test the SYST-MSGNO ..
or if any variable in memory check the error.
Or you could make a rollback and set a leave to screen ...
Fred
05-14-2006 10:13 AM
was just wondering how did u find this BADI...could u plz explain?