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

Additional Login Screen Page on 2nd Access to the page

Hello All,

We have developed a BSP application. It's being called from an R/3 system on click of a button using the function module 'CALL_BROWSER'.

The customer has the following requirement.

When the BSP Application is longed first then login screen should be visible.

Once the user is authenticated and if the BSP application is open, then from R/3 if the button is clicked again, the same BSP application has to be opened in the previously opened browser window with out any additional login screen.

Scenario 1:

Step 1 : From R/3 User opened BSP Application

Step 2: BSP Page is opened in a browser (say window-1) with login screen (This is OK)

Step 3: User logs into the application.

Step 4: After going back to R/3, again user clicks button to open BSP Application

Step 5: The same BSP page gets opened in window-1 with out any additional login screen (This is also OK).

Scenario-1 works as expected.

Scenario 2:

Step 1: From R/3 User opened BSP Application

Step 2: BSP Page is opened in a browser (say window-1) with login screen (This is OK)

Step 3: User logs into the application.

Step 4: User opens a new browser(say google.com in window-2)

Step 5: After going back to R/3, again user clicks button to open BSP Application

Step 6: But unfortunately this time user get an additional login screen after enter the login information, page opens in window-1 itself( This is not correct, since the user already authenticated to the page and the browser window is still open).

The code I used for opening application in the same window is as follows.

window.opener=self;

window.close ( );

try

{

win = window.open ("<% URL of the application %>", "WINDOWNAME","height=620,width=850,resizable=yes,menubar=no,toolbar=no,status=yes");

}

catch(e)

{

}

Please propose a solution for this problem.

Best Regards

Geogy

Edited by: Geogy M Mathews on Jan 4, 2008 9:44 AM

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jan 04, 2008 at 06:21 AM

    1. make sure that sso2 is enabled , to check whether the same is enabled or not run bsp page system/sso2test.htm

    2. in your browser go to tools->internet options->advanced and uncheck "reuse windows for launching shortcuts" check box this would aloway open the bsp in a new window.

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hello ,

      I solved the problem in the following way.

      Function module CALL_BROWSER is inappropriate to achieve the desired functionality. But the method SHOW_URL_IN_BROWSER of class CL_GUI_HTML_VIEWER supports SSO very well.

      Hence I changed the browser call from function module “CALL_BROWSER” to the method SHOW_URL_IN_BROWSER of class CL_GUI_HTML_VIEWER

      Sample Code:

      data : lr_dock_cont type ref to cl_gui_docking_container,

      lr_html_cont type ref to cl_gui_html_viewer.

      create object lr_dock_cont

      exporting

      side = cl_gui_docking_container=>dock_at_bottom

      extension = 0.

      call method lr_dock_cont->set_visible

      exporting

      visible = cl_gui_control=>visible_false.

      create object lr_html_cont

      exporting

      parent = lr_dock_cont.

      gv_url = "URL of the Application"

      call method lr_html_cont->set_visible

      exporting

      visible = cl_gui_control=>visible_false.

      • This method opens Browser in a new External Page

      call method lr_html_cont->show_url_in_browser

      exporting

      url = gv_url.

      Regards

      Geogy

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.