Skip to Content
author's profile photo Former Member
Former Member

keep session data when opening a new window

Hi all,

In one of my developpements in WDA I open a new external window (in another browser), in which another WDA is displayed. In quality and production environment, I have a technical architecture with several application servers, managed by a SAP web dispatcher. My problem is that in those environement, the user get the login screen when opening the new external window.

It looks like the session is not saved and not used by the new external window. I have been told by the admin guy to make my WD application "stateful", but I can't find how to do it by program, and I don't know if this has to be done by customizing somewhere else (for example in the SICF transaction).

If this has to be done by program, I have found the method CL_HTTP_SERVER->SET_SESSION_STATEFUL, but I can't find how to get the instance of the class CL_HTTP_SERVER.

If anybody has encountered the same problem, or has a lead to investigate, thanks a lot!

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 07, 2014 at 02:34 PM


    To make the application stateful, follow the below steps:

    Execute SICF transaction, Navigate to default_host-> sap-> bc -> webdynpro -> sap ->

    Then navigate to your application. Double click on it. Go to 'Handler List' tab and then in edit mode enter the class CL_HTTP_EXT_DEMO in the Handler List table.

    Now, when executing your application in external window, pass the parameter stateful with value 1

    Ex: http://XXXXXX:PPPP//sap/bc/webdynpro/sap/<application>?stateful=1

    Please note that, when you make the application stateful, it may result in poor performance.

    Hope this helps u,



    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      I still have a new session created when I use the method create_external_window

      IMHO, You really can't restrict it. Sometimes the application even open in different application server due to load balancing.

      Ask your basis team to activate SSO ( single sign-on) so you don't have to log on each time!



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.