Application Development and Automation 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: 
Read only

VA01/VA02

Former Member
0 Likes
433

Hi ,

the requriement was..

to display an message after an sales order gets saved.

before displaying the message i should check whether hold exists on the sales order (header /item level ) and display message "Sales order has been saved.Hiolds exits please check".......

this message should appear whenver there is change in an sales order via VA02 ( header/item level hold exists) & during creation of an sales order via VA01( header/item level hold exists).

and i have written my enhancement in include MV45F0B inside MV45F0B_BELEG_SICHERN.

The message is getting displayed properly whenver there is hold & if no hold standard message will be displayed.

This is working if i put one break-point (in my enhancement point).

but the same wont work if there is no break-point.

i.e its working perfectly fine in debugging mode but not when directly executed.

what could be the reason for this?

Hi ,

the requriement was..

to display an message after an sales order gets saved.

before displaying the message i should check whether hold exists on the sales order (header /item level ) and display message "Sales order has been saved.Hiolds exits please check".......

this message should appear whenver there is change in an sales order via VA02 ( header/item level hold exists) & during creation of an sales order via VA01( header/item level hold exists).

and i have written my enhancement in include MV45F0B inside MV45F0B_BELEG_SICHERN.

The message is getting displayed properly whenver there is hold & if no hold standard message will be displayed.

This is working if i put one break-point (in my enhancement point).

but the same wont work if there is no break-point.

i.e its working perfectly fine in debugging mode but not when directly executed.

what could be the reason for this?

2 REPLIES 2
Read only

Former Member
0 Likes
399

Hi,

You should use the user-exit MV45AFZZ, form-routine : USEREXIT_SAVE_DOCUMENT_PREPARE.

Regards

Vinod

Read only

0 Likes
399

MV45AFZZ form USEREXIT_SAVE_DOCUMENT_PREPARE

this gets triggerred when you click on save button , but before actual saving....

my message should come after saving....

so i cant use MV45AFZZ form USEREXIT_SAVE_DOCUMENT_PREPARE...

standard message is present in form beleg_sichern inside include MV45F0B.

there only i have given my message.