cancel
Showing results for 
Search instead for 
Did you mean: 

problem in VA01

Former Member
0 Kudos

Hi all,

in MM06 i given a deletion flag for one material, when i went to sale order VA01 and creating a order it is giving a warning message and procedding but i want to put a Error message where can i do it pls help me.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member204513
Active Contributor
0 Kudos

Hi Hari,

As per my knowledge in the standard only warrning message will come,but if you want error message you need to activate user exit at sales order level. you can use the fallowing User Exit,

USEREXIT_SAVE_DOCUMENT_PREPARE

Progarm

MV45AFZZ

Discuss with ABAPer tell your requirement

If you use this user exit the sales order will not get save with deleted material.

I hope it will help you,

Regards,

Murali.

chaitanya_deodhar
Participant
0 Kudos

Hi Hari,

You can have this solution also.( rather than modifying standard sap)

Use X-distr.chainStatus field in material master.

(MARA-MSTAV)

Define a sutable status at SPRO>>Logistics general>>Material MAster>>Settings for key fields>>Data relevant to SD>>Define Sales Status.

For each atatus you can have various slaes transactions blocked/allowed. Define suitable status and update the Material master with the status. System won't allow the sales order.

Hope this helps(Reward! if it helps)

Regards,

Chaitanya

Former Member
0 Kudos

sure you can do it ......identify the message class just click on the message as you said it is a warning message

then goto the program ( sapmv45a ) standard program for VA01 and serach for the message and then edit it .

for seeing message class and message type TC - SE91