Skip to Content
0
Former Member
Jul 08, 2014 at 08:50 AM

Validation message not showing description

101 Views

Dear Experts,

I made the validation for Mobile number filed in Account creation (BP). If the user should enter only Numeric values in the Mobile number field. If they enter Alpha numeric it should give an error message in WEBUI.

For that i enhanced the component and made the required code, but in the webui screen its now its not showing the description of the error messaage, its showing message class and messge number only. Hope i made some mistake, any one please guide me.

The code as below,

if <nval> CA sy-abcde.


DATA: lr_msg_srv TYPE REF TO cl_bsp_wd_message_service.
lr_msg_srv = cl_bsp_wd_message_service=>get_instance( ).
lr_msg_srv->add_message( iv_msg_type = 'E'
iv_msg_id = 'ZCRM_SERVICE'
iv_msg_number = '011' ).

endif.

Reg,

anandhan.