Skip to Content

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

Exceptional Handling in Web Dynpro ABAP

Hi,

I have enhaced the std WDA component FITV_VC_COST_ASSIGNMENT, to check if user has selected a valid company code on the screen, if not then I need to display a error message as "Invalid Company code", thought I am able to do so but the message that pop ups on the screen as "WebDynpro Exception: Invalid Company Code", and I just want "Invalid Comapny Code".

How to remove this "WebDynpro Exception" from the message.

It is possible to do so ,if yes please provide me some valuable help and if not then let me know as well.

My code snippet is

if lv_bukrs ne lv_comp_code.

RAISE EXCEPTION TYPE cx_wd_general

EXPORTING

textid = cx_wd_general=>cx_wd_general

msg = lv_mesg.

endif.

where lv_mesg is my custom message to display.lv_bkrs is company code of the employee and lv_comp_code is the company code he has selected on the screen.

Thanks

Pooja

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