Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to change warning to error message while creating contract, msg v1 501

hi experts,

my client requirement is to change warning msg to error msg while creating contract useing va01 wref to va41.

following is the enhancement, can we change directly from this include? how?

or any other procedure is there.

pls send stepwise procedure.

Thanks in advance

surya

Include FV45EF0V_VBEP_MENGE_PRUEFEN_VO.

-

-


FORM VBEP-MENGE_PRUEFEN_VORLAGE *

-

-


Prüfungen der Wunschmenge im Zusammenhang mit der Vorlage *

-

-


FORM VBEP-MENGE_PRUEFEN_VORLAGE USING US_ZMENG

US_RMENG

US_VRKME

US_FIELD.

DATA: DA_MENGC1(30) TYPE C,

DA_MENGC2(30) TYPE C.

Ist die insgesamt referierte Menge > als die Zielmenge der Vorlage

ENHANCEMENT-SECTION VBEP-MENGE_PRUEFEN_VORLAGE_10 SPOTS ES_SAPFV45E.

IF US_RMENG > US_ZMENG AND

US_ZMENG > 0.

WRITE US_ZMENG LEFT-JUSTIFIED UNIT US_VRKME TO DA_MENGC1.

WRITE US_RMENG LEFT-JUSTIFIED UNIT US_VRKME TO DA_MENGC2.

IF KOPIEREN EQ CHARX.

MESSAGE I501 WITH DA_MENGC1 US_VRKME

DA_MENGC2 US_VRKME.

ELSE.

SET CURSOR FIELD US_FIELD LINE SY-STEPL.

-

-


{+My requirement is to change W501 to E501}----

-


MESSAGE W501 WITH DA_MENGC1 US_VRKME

DA_MENGC2 US_VRKME.

ENDIF.

ENDIF.

END-ENHANCEMENT-SECTION.

Former Member
Not what you were looking for? View more on this topic or Ask a question