Skip to Content
0

Raise Error Message from IF_EX_CUSTOMER_ADD_DATA~CHECK_ALL_DATA of BADI CUSTOMER_ADD_DATA

May 18, 2017 at 11:41 AM

114

avatar image

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!

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raymond Giuseppi
May 18, 2017 at 12:14 PM
0

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

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi,

Yes, I have passed e_dynnr e_dynnr ='7121'. I haven't created any custom screen, VAT ID is in SAP standard screen I need to go to that screen(7121).

0

Are you sure this is not dynpro 7122 (7121 is for link with vendor?)

0

Hi,

I have also tried with 7122 but its not working.

0