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: 

CO12 confirmations

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

FredericGirod
Active Contributor
0 Kudos

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

4 REPLIES 4

FredericGirod
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

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

0 Kudos

was just wondering how did u find this BADI...could u plz explain?