Skip to Content

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

DYNPRO_MSG_IN_HELP Error in Custom Code

We are getting an error in user exit MV45AFZZ, the dump indicates that the error is after some conditions and an error message if those conditions are not met:

ENDLOOP.

*--> CS 11/12/10

IF vbak-auart = 'PEFV'.
  IF xvbkd-zterm <> 'Z003' AND xvbkd-zterm <> 'Z004'.
    MESSAGE e398(00) WITH 'Condicion de Pago no permitida en PEFV'.
  ENDIF.
ENDIF.

DATA p_zterm LIKE knvv-zterm.

SELECT SINGLE zterm FROM knvv INTO p_zterm
WHERE kunnr = vbak-kunnr.

IF vbak-auart = 'PCON'.
  IF xvbkd-zterm <> 'Z002' AND xvbkd-zterm <> 'ZG01'.
    IF NOT ( p_zterm = 'Z001' AND xvbkd-zterm = 'Z001' ).
      MESSAGE e398(00) WITH 'Condiciones de Pago no permitidas'.
    ENDIF.
  ENDIF.
ENDIF.

*--> CS 18/07/11

* HML TS - 18/05/2011
*}   INSERT

>>>>>>ENDFORM.
*eject

From what I read the error message must be wrong, but I am not sure how to fix it.

Thank you, Regards,

Carlos

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