Hi Sekhar,
Hope you want to avoid the abort message from class and have an error message in WD without any technical details in it.
- Create a parameter EV_ERROR_MESSAGE of type STRING in the class method where the error is occurring
- Modify the code in as below
IF cl_mdg_util=>check_langu( ) = space.
"""MESSAGE a017(fnd) WITH sy-langu."#EC *
MESSAGE id 'FND' type 'E' NUMBER '017' into EV_ERROR_MESSAGEwith sy-langu.
return. "Return the control back to caller
ENDIF.
- Now, use the error text EV_ERROR_MESSAGE in WD and report an error message using if_wd_message_manager
Hope this helps you.
Regards,
Rama