10-05-2007 3:57 PM
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
10-05-2007 4:01 PM
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
10-05-2007 4:01 PM
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
10-05-2007 6:11 PM
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
10-05-2007 6:37 PM
The problem was solved with an error message in USEREXIT_SAVE_DOCUMENT_PREPARE.
tks
Wilian