02-04-2009 1:11 PM
Hi All,
In transaction VA01, I need to stop person from entering Quantity more than what is specified in the Material Contract (tx code VA41). There is a warning message being displayed currently (std. SAP) that I want to change to Error or give an error message on Save of the Sales Order.
By searching the Forums I have noticed that there is a user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ.
Can anyone please guide me on how to implement this user exit. How can I code with thin Subroutine?
Thanks and Regards,
Ashwin
02-05-2009 5:23 AM
Hi,
In ECC6.0 you can implement Enhancement option in form routine "USEREXIT_SAVE_DOCUMENT_PREPARE".
In Program MV45AFZZ Click on the Enhance button (Spiral symbol). Goto the menu path EDIT --> Enhancement Operations --> Show Implicit Enhancement Options.
Then keep the cursor on the comment (colour) line in form routine, right click Enhancement Implementation --> create and write your logic between Enhancement and End Enhancement Section
In older version 4.6 or 4.7 version you require access key.
With Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Feb 5, 2009 6:23 AM
02-04-2009 8:05 PM
Hi Ashwin,
First time it will ask for the Access key, get the acces key and do add your code.
Thank you,
Surya.
02-05-2009 5:23 AM
Hi,
In ECC6.0 you can implement Enhancement option in form routine "USEREXIT_SAVE_DOCUMENT_PREPARE".
In Program MV45AFZZ Click on the Enhance button (Spiral symbol). Goto the menu path EDIT --> Enhancement Operations --> Show Implicit Enhancement Options.
Then keep the cursor on the comment (colour) line in form routine, right click Enhancement Implementation --> create and write your logic between Enhancement and End Enhancement Section
In older version 4.6 or 4.7 version you require access key.
With Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Feb 5, 2009 6:23 AM
02-05-2009 6:55 AM
02-05-2009 8:07 AM
Thanks for your help Surya, Dwaraka, Rajeev.
I used the approach suggested by Dwarakanath and it works.
Cheers.