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: 

How to implement user Exit USEREXIT_SAVE_DOCUMENT_PREPARE in MV45AFZZ

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member

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

4 REPLIES 4

Former Member
0 Kudos

Hi Ashwin,

First time it will ask for the Access key, get the acces key and do add your code.

Thank you,

Surya.

Former Member

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

Former Member
0 Kudos

Hi Ashwin,

Refer to the following link:

Hope this will help you...

0 Kudos

Thanks for your help Surya, Dwaraka, Rajeev.

I used the approach suggested by Dwarakanath and it works.

Cheers.