Skip to Content
avatar image
Former Member

Raise Error Message from IF_EX_CUSTOMER_ADD_DATA~CHECK_ALL_DATA of BADI CUSTOMER_ADD_DATA

Hi All,

Requirement: To raise error/warning message if VAT ID number entered is incorrect.

I have created an enhancement implementation for BADI CUSTOMER_ADD_DATA and in the method CHECK_ALL_DATA I have programmed as below.

IF lv_vatvalid EQ 0.
 e_msgid = 'ZERR_MSG'.
 e_msgno = '012'.
 e_dynnr = '7121'.
 ENDIF.

but this error message is not being displayed. I tired to debug the code and in the SAP standard implementation CL_IM_ISJP_CUSTDATA (PERFORM ext_check_all_data) e_msgid, e_msgno are getting cleared.

Could you please let me know how to raise the error by setting e_msgid and e_msgno.

Thanks in advance!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • May 18, 2017 at 12:14 PM

    Did you pass also e_dynnr (for customer screen pass 4000 and e_scrgr and e_fcode) for navigation to screen with the error?

    Add comment
    10|10000 characters needed characters exceeded