on 2010 Jun 29 12:19 PM
Dear All,
Our custom Web dynpro ABAP component is called from Portal application. Due to session time out / network error, component is going for dump.
This dump message is too descriptive for end user to understand. Instead of the standard error message, we would like to display custom error page.
Please suggest, how to overcome this problem.
Regards,
Ramki.
Hi ramakrishan,
If you application goes dump you ICF handle the error and throw the standard dump error ,
you can throw your own customized error page insted of standard .
Pls check out the link below for step by step procedure to creat custom errow page .
[http://help.sap.com/saphelp_sm40/helpdata/en/af/0489ce55002f44a8c927371bedf719/frameset.htm|http://help.sap.com/saphelp_sm40/helpdata/en/af/0489ce55002f44a8c927371bedf719/frameset.htm]
Regards
chinnaiya P
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check the below link, it might help you at some level for your concerns expressed.
http://help.sap.com/saphelp_nw04s/helpdata/en/5e/05a5421935c511e10000000a1550b0/content.htm
Thank You.
Best Regards
Tushar Shinde
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tushar,
I tried the same solution and have written java script with html to keep a condition which should display different message based on ICF Error CODE.
In my WDA I have written a code which gives dump when called.
If I call the code in WDINIT() method ... I get dump on page load and system displays the desired message.
If I call the code at button click, system skips the java script and shows rest of the html page.
Regards,
Praveen
Hi,
If possible just provide your code what you are writing in button_click( ) action. also please check below link whether you have ensured all steps mentioned here
http://help.sap.com/saphelp_nw04s/helpdata/en/f9/4b8e3a89210f25e10000000a11405a/frameset.htm
Best Regards,
Tushar Shinde
Hi,
I already tried this link...even tried the redirect to url method also....in that case...system shows blank page when dump occurs on event . otherwise if it occurs on page load...it works fine and redirect to defined url.
DATA lo_nd_testnode TYPE REF TO if_wd_context_node.
DATA lo_el_testnode TYPE REF TO if_wd_context_element.
DATA ls_testnode TYPE wd_this->element_testnode.
DATA lv_testattribute TYPE wd_this->element_testnode-testattribute.
* navigate from <CONTEXT> to <TESTNODE> via lead selection
lo_nd_testnode = wd_context->get_child_node( name = wd_this->wdctx_testnode ).
* get element via lead selection
lo_el_testnode = lo_nd_testnode->get_element( ).
* @TODO handle not set lead selection
IF lo_el_testnode IS INITIAL.
ENDIF.
* set single attribute
lo_el_testnode->set_attribute(
name = `TSTATTRIBUTE`
value = lv_testattribute )
WD_COMP_CONTROLLER->onload( ).
Regards,
Praveen
Hi,
Try setting some value into attribute lv_testattribute before setting the attribute to Context.
for e.g.:-
* Set some value to attribute
lv_testattribute = <anyvalue>
* set single attribute
lo_el_testnode->set_attribute(
name = `TSTATTRIBUTE`
value = lv_testattribute )
Also set a external breakpoint for the user from which your testing and check whether the Node is initialized or not.
Thank You.
Br.
Tushar Shinde
Hi,
I want to display different messages based on error type.
now the issue is when i get any error on application loading ( wdinit() ), it works fine but if the error comes on any event(i.e. button click) system skips the condition and display the part which is outside the if condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Its solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.