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: 

Exit on saving Sales Order

Former Member
0 Kudos

Hi gurus, i need your help one more time.

After input all the data of sales order in va01, I have to send a message to user, cancel the saving process and then return to screen of va01. The most important step in this process is that i really need to cancel the saving process.

I think that in USEREXIT_SAVE_DOCUMENT / USEREXIT_SAVE_DOCUMENT_PREPARE i cannot do that.

Is there an exit where i can do that?

Tks

Wilian

4 REPLIES 4

Former Member
0 Kudos

Are you referreing to include MV45AFZZ routine ??

----


  • FORM USEREXIT_SAVE_DOCUMENT_PREPARE *

----


  • This userexit can be used for changes or checks, before a *

  • document is saved. *

  • *

  • If field T180-TRTYP contents 'H', the document will be *

  • created, else it will be changed. *

  • *

  • This form is called at the beginning of form BELEG_SICHERN *

  • *

----


FORM USEREXIT_SAVE_DOCUMENT_PREPARE.

ENDFORM.

ashish

ferry_lianto
Active Contributor
0 Kudos

Hi,

Why can't you use USEREXIT_SAVE_DOCUMENT_PREPARE?

Any reason? Have you tried?

Is there any specific validation for cancelling the order?

Here are all user exits available for processing sales order.

http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm

Regards,

Ferry Lianto

0 Kudos

Hi Ferry. There is a especific validation to cancel the saving process.

If its possible do that in USEREXIT_SAVE_DOCUMENT_PREPARE (include MV45AFZZ), can u tell me how?

tks

Wilian

Former Member
0 Kudos

The problem was solved with an error message in USEREXIT_SAVE_DOCUMENT_PREPARE.

tks

Wilian