cancel
Showing results for 
Search instead for 
Did you mean: 

Making a warning message to Error in VA01 transaction

Former Member
0 Kudos

Hi All,

I have a requirement to change warning message to error while creating order with reference to a quotation using VA01 transaction .

Message : 'Reference document was only valid until &'

Message No: 009

Message Class: V2.

Right now standard SAP gives warning message and allows to create order eventhough the quotation is invalid but instead I want the system to give hard error and stop creating the order.

I have checked transaction OVAH and OVM1 but they are of no use.

If anyone has any ideas please let me know.

Thanks in advance.

Sonali.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Please check in the sales document the Incomplete Message Icon is active or not. If it not then check the icon. If the icon is checked it will not allow you to save the document if there is an incomplete data in order

Ramesh

Former Member
0 Kudos

Thank you Mandar and Ramesh for the reply.

I will try the method that you have specified . Hopefully my problem is resolved.

Thanks once again!

Sonali.

Answers (2)

Answers (2)

Former Member
0 Kudos

Problem Solved

Former Member
0 Kudos

hi could you pls tell me like which way from the above two did solve ur problem ? could you share ur config steps..as im also having the same rek.

thankyou

bj

mandar_shete
Active Participant
0 Kudos

Hi Sonali,

1. In VOFM, Data Transfer -> Orders, copy routine 051 into new one (e.g. 901).

2. In this newly created routine add following statements along with the existing statements form 051.

IF cvbak-bnddt < sy-datum.

MESSAGE E247 WITH '051'.

ENDIF.

3. In transaction VTAA, choose target is S/O and source it Quotation. In Data Transfer routine at header level put 901.

This will stop creating S/O form Quotation which are expire.

Regards,

Mandar