on 04-06-2010 9:40 AM
Hi,
how can I display specified web page (defined by url) instead of standard sap web dynpro timeout page?
Many thanks for reply
There isn't a simple solution to this requirement. You can change the error page of Web Dynpro via SICF configuration but this catches all application errors.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/69efc9e8a607d6e10000000a42189c/frameset.htm
I have used a solution before to calculate the timeout and fire a timedTrigger just before the timeout occurs. From within this TimedTrigger event (which technically resets the timeout) you can fire an exit plug to redirect to any page you want. Here is the logic I used to calculate the timeout:
DATA: name TYPE pfeparname.
DATA: value TYPE pfepvalue.
DATA: l_timeout TYPE icftime.
DATA: timeout TYPE int4,
trigger_timeout TYPE int4.
CLEAR: timeout, trigger_timeout.
****Get the App Server Timeout
name = 'rdisp/plugin_auto_logout'.
CALL 'C_SAPGPARAM' ID 'NAME' FIELD name
ID 'VALUE' FIELD value.
****Is there a specific Timeout set
IF wdr_task=>server IS BOUND.
IF wdr_task=>server->session_timeout IS INITIAL.
timeout = value.
ELSE.
****We got a specific timeout - now convert it to a number of seconds.
DATA: minutes TYPE i.
l_timeout = wdr_task=>server->session_timeout.
minutes = l_timeout+0(2) * 60.
minutes = minutes + l_timeout+2(2).
timeout = ( minutes * 60 ) + l_timeout+4(2).
****If a specified timeout is larger than the default, it is ignored.
****Use the default instead.
IF timeout > value.
timeout = value.
ENDIF.
ENDIF.
ELSE.
timeout = value.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Thomas,
very nice idea. I tried to use the exit plug of my window and it worked fine, but only outside of SAP portal. This exit command with redirect URL only works without portal integration. Do you have any idea how to do the same with applications integrated in portal environment?
Thanks and regards
Marc
This is really a portal question. The limitations of the close window parameter in scope of the portal are documented here:
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/9b/65e04ea1ae4d9d8cfd329afa43e869/frameset.htm
Hello Thomas,
the timeout solution works really fine for simple application. Now I have a more complex WebDynpro application with a few component reuses. I recognized that an exit plug of a reused window doesn't work. Is this right? Do i have to implement the TimedTrigger on each single view and application window? Do you have a good idea?
Thanks and regards
Marc
It really depends upon the structure of this more complex app. If you do like SAP does with the FPM framework and always have one parent/frame component and all of your innner usages fall within it - you can have just one instance of the timeout component as well. However if you are navigating between difference components, then you will need the timeout usage in each.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.