cancel
Showing results for 
Search instead for 
Did you mean: 

Warning popup when raising a sale order

Former Member
0 Kudos

Hi

I have a reqt, where in when raising a sale order, the user will enter the Price manually, the PR00 has to compare with the VPRS of the material master & if the sale price is less than the cost, a pop up should appear on the sale order screen (Warning Message).

Could anyone tell how to achieve this.

Thanks in advance

Aravind

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi there,

For this you need to write a customized code in the MV45AFZ (could be in include MV45AI0P which will fetch pricing). There you have to write a customized cde where the system compares the value in VPRS (KOMV for eg) to PR00 (KOMK for eg). If PR00 < VPRS, then a popup window displaying the required text.

Regards,

Sivanand

former_member204513
Active Contributor
0 Kudos

Dear Aravind,

You can try this requirement through User Exit with the help of ABAPer

Try with this User Exits in the program MV45AFZZ

USEREXIT_SAVE_DOCUMENT

Use this user exit to fill user-specific statistics update tables.

The user exit is called up by the FORM routine BELEG-SICHERN before

the COMMIT command.

Note

If a standard field is changed, the field r185d-dataloss is set to

X. The system queries this indicator at the beginning of the safety

routine. This is why this indicator must also be set during the

maintenance of user-specific tables that are also to be saved.

USEREXIT_SAVE_DOCUMENT_PREPARE

Use this user exit to make certain changes or checks immediately

before saving a document. It is the last possibility for changing or

checking a document before posting.

The user exit is carried out at the beginning of the FORM routine

BELEG_SICHERN.

I hope this will help you,

Regards,

Murali.

Former Member
0 Kudos

Hi

Thanks for your reply. I will co-ordinate with my abaper to fulfil this reqt.

Regards

Aravind