Skip to Content
avatar image
Former Member

Exceptional Handling in Web Dynpro ABAP


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.



textid = cx_wd_general=>cx_wd_general

msg = lv_mesg.


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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Dec 23, 2010 at 06:52 AM

    Instead of raising exception you can try raising a message using methods of interface IF_WD_Message_manager.

    Do a where used list of this interface and you will find many examples of the same.


    Manas Dua

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      I am sure that exception that is coming "webdynpro Exception: invalid company code" should be coming from the standard WD framework, i mean some kind of data validation for the domain you have chosen, as it is normal with some date data types we see!!!!

      so if this is coming from the standard domain checks then you should use if_wd_validaton interface and its methods to suppress that standard message and then raise your own messages as it is suggested in earlier replies, even i am not sure what is the dump you are talking here.