cancel
Showing results for 
Search instead for 
Did you mean: 

how to avoid dump of closed after time out

Former Member
0 Kudos

Hi,

how to avoid screen dump after session time out.

instead i want to show a message to the user that the application closed after session timed out.

how to achieve that?

Regards,

Lakshmi.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

If you want to display, a custom error page instead of the dump you can probably do it in the transaction /nSICF.

Navigate to your WD Components node double click on it.

click on the TAB ERROR PAGES

under this select the TAB Appl. Errors

here if you are in change mode you can specify the redirect URL or custom HTML Page source.

in effect when the application error occurs you would be direct to the URL or HTML page specified would be shown.

if you want to catch the time out itself, before it happens read the below excerpt from Thomas.

check this thread [;

Greetings

Prashant

Former Member
0 Kudos

hi ,

how can i call a error page saying http 400 session timed out page.with ICM aparametrs .in stead of

User session (HTTP/SMTP/..) closed after timeout dump.

Regards,

Lakshmi.

Former Member
0 Kudos

Check this link. This tell you exactly what to do when you wish to display your on custom error page.

[http://help.sap.com/saphelp_nw70/helpdata/EN/5e/05a5421935c511e10000000a1550b0/content.htm]

Greetings

Prashant

P.S. Points welcome

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

One of the ways that I have done this in the past to calculate what the timeout will be for my application. You have to lookup the system timeout and then override that with the SICF node specific timeout - only if node timeout is shorter than the system timeout. You can then setup a timed trigger to fire shortly before the timeout. The timed trigger value gets bound to the value so that it gets reset on each server roundtime. When the timer triggers, it actually resets the system timeout - but that is OK because what you do is fire an exit navigation plug. This plug can take you to some static page - either from the MIME repository or a stateless BSP page. This static page can proivide a more friendly message that the session timed out and can provide a link to reload the application.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Almost forgot - here is the logic to lookup 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.