cancel
Showing results for 
Search instead for 
Did you mean: 

Message V2009 on VA01

Former Member
0 Kudos

Hello all

When we create a sales order with reference, and we enter an old quotation, the system shows the warning V2009 "Reference document was only valid until DD/MM/YYYY", the question is, how could we change the type message from warning to error?

Thank you in advance

Regards.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thank you for your help!

Former Member
0 Kudos

hi,

please find the sales document program in this list of programs and

try to replace E in the place W

LV45C001 58 MESSAGE w009 WITH bp_datum_ausgabe.

LV45C002 55 MESSAGE W009 WITH BP_DATUM_AUSGABE.

RV45B901 93 MESSAGE w009 WITH bp_datum_ausgabe.

RV45B902 67 MESSAGE W009 WITH BP_DATUM_AUSGABE.

hope this clears your issue.

balajia

Shiva_Ram
Active Contributor
0 Kudos

Go to t.code VTAA.

Select the soure (Quotation) and target doucment(sales order) type.Then click on the details button. Check the routine assigned in the field copying requirements.

Execute t.code VOFM. Go to menu copying requirements-> orders. cOPY the routine number that you have found in VTAA and rename to other number like 901. Then inside the following coding, change W009 to E009 and save.

IF VBAK-BNDDT > 0 AND

VBAK-BNDDT < SY-DATLO.

WRITE VBAK-BNDDT TO BP_DATUM_AUSGABE.

MESSAGE W009 WITH BP_DATUM_AUSGABE.

Then go to VTAA, assign the new routine to copying requirements field. That will fulfill your requirement.

Regards,

0 Kudos

Thanks by support.