cancel
Showing results for 
Search instead for 
Did you mean: 

How to call Web Application Login Screen?

Former Member
0 Kudos

Hi all,

I'm currently facing a problem whereby the Web Application login screen appear when first user to login and it dint appear when the second or later user lauch web application. Therefore, first user session is still holding. Hw can i call Web Application login screen to close first user's session?

Best Regards,

Chee Boon

Accepted Solutions (0)

Answers (5)

Answers (5)

rajesh_kumar2
Active Participant
0 Kudos

Easy workaround : Temporarily lock the 1st user in the system and then try log in with 2nd user and open your wedydnpro application, it will pop up for user credentials.

Former Member
0 Kudos

Hi Chee Boon,

yes, now i know your issue. Does this also happen, when 2 Users work on different PC's ?

I think, the proposed way of browser cookie deletion will do it, but implements, that every former user has to actively logout (using e.g. a pushbutton utilizing the exit plug) himself after having finished his work with the application.

Another way could be to call a method of class CL_BSP_SERVER_SIDE_COOKIE during initialization of the wd component to delete all former sessions of other users. But that would also mean, that opened sessions of other users are killed every time another user logs on ?! I did not try it so far. Sorry, no further ideas ...

Kind regards

Andreas

Former Member
0 Kudos

Hi Chee Boon,

i think i do not understand your requirements. Several users work in one users's SAPGUI session on one PC and are calling the WD application, that is opened in a browser .. ?

Kind regards

Andreas

Former Member
0 Kudos

Hi Andreas,

I had one ABAP WD application which is called by transaction code from ECC. Then, web application server login page able to prompt up when used first user to login ECC and typed tcode to run WD application. However, I changed other users to login ECC and the web application server login page did not prompt up and keep first user ID. Can you get me?

Thanks.

Best Regards,

Chee Boon

Former Member
0 Kudos

Hi Cheeboon,

What parameter value are you passing to WDCONFIGURATIONID?

Regards,

-Syed.

Former Member
0 Kudos

Hi Syed,

I dint put any value on WDCONFIGURATIONID. Why am i need to assign value to it? How am i assign value?

Thanks.

Best Regards,

Chee Boon

Former Member
0 Kudos

Hi Chee Boon,

if i got you right, several users shall work with the same WD application using the same client PC.

You can define an exit plug in your application.

If an application is closed by an Exit Plug (Outbound plug in your window), and no other application is started, the Web Dynpro Framework sends a standard logoff page to the browser.

You can setup a custom logoff page (settings in sicf) as you need and even include javascript in it, e.g. for deleting the session cookie in the users browser and redirect back to your application for a new login.

Kind regards

Andreas

Former Member
0 Kudos

Hi Andreas,

Does your idea applicable to my WD application which called by tcode from ECC?

Thanks.

Best Regards,

Chee Boon

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Is the Web Dynpro ABAP application that you are wanting to open hosted off the same ABAP instance that users are connecting to with the SAPGUI? If so you can use a special Single Sign On mode in the SAPGUI HTML container.

Former Member
0 Kudos

Hi Thomas Jung,

How to use special Single Sign On mode in the SAPGUI HTML? Would you mind to explain further on this? Thanks in advance.

Best Regards,

Chee Boon

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Basically you just need to call method ENABLE_SAPSSO of the class CL_GUI_HTML_VIEWER for the instance of your HTML View control. This will cause the creation of an SSO ticket for this Instance and pass it down to the browser instance running in the HTML Viewer. This is what the standard SAP transaction WDYID uses.

kmoore007
Active Contributor
0 Kudos

Thomas,

You mean to add the logic in one of the Windows methods like WDDOONOPEN?

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

No, not at all. The ENABLE_SSO would be called from the classic dynpro transaction that is launching the Web Dynpro application.

Former Member
0 Kudos

Hi Cheang,

You need to cut and paste the url in the below format:

http://<server name>.com:50000/sap/bc/webdynpro/sap/zwd_app

Normally when you login using the credentials, you will see this link:

http://<server name>.com:50000/sap/bc/webdynpro/sap/zwd_app?sap-client=800&sap-language=EN

So you just need to remove ?sap-client=800&sap-language=EN and then execute with that url.

Further to this, when you login for the second time, you will see this information on the next screen:

You are already logged on to the system in the following sessions:

Existing Logons

Client User Client Logon Time

800 DEVELOPER <IP> 10:10:37

Cancel all existing logons ---> this is a checkbox ..If you check this the other sessions will go off. If not they will continue along with your sessions.

Continue

Regards,

-Syed.

Edited by: wahid hussain syed on Jun 4, 2009 6:44 AM

Former Member
0 Kudos

Hi,

I tried out your both methods. They are not working fine at my side. My webdynpro application is not hosted by web browser. However, it is hosted by ECC system and being called by created transaction code. Can you recommend for any approach to resolve this issue? Thanks.

Best Regards,

Chee Boon

Former Member
0 Kudos

Hi Cheang,

I hope I know that Webdynpro comes by default with ECC. And also you did not mention that you have created a tcode for the WD Application.

However, if you have mentioned

STARTMODE      BROWSER
         APPLICATION     WD_APP NAME

Under the Default values of the CREATE PARAMETER TRANSACTION, then it should ask for every login.

Regards,

-Syed.

Edited by: wahid hussain syed on Jun 4, 2009 12:14 PM

Former Member
0 Kudos

Hi Cheang,

I regret, that as you said, it is calling for the first time and for the next time, when the user logs in the logon screen is not called.

I'll get you the answer.

Regards,

-Syed.

Former Member
0 Kudos

Hi Syed,

I have not find the solution to pop up the web server login page. Do you have any idea how to fix it?

Thanks.

Best Regards,

Chee Boon

Former Member
0 Kudos

Hi Cheeboon,

The basic funda behind creating a tcode for the WD Application is, it will not call the login screen for multiple screens. And further to this, we cannot do much under the Creation of Parameter Transaction.

I strongly hope that my previous reply will surely work. Becoz I do that everyday here. Please try properly without the Tcode.

http://<server name>.com:50000/sap/bc/webdynpro/sap/zwd_app

Normally when you login using the credentials, you will see this link:

http://<server name>.com:50000/sap/bc/webdynpro/sap/zwd_app?sap-client=800&sap-language=EN

So you just need to remove ?sap-client=800&sap-language=EN and then execute with that url.

Further to this, when you login for the second time, you will see this information on the next screen:

You are already logged on to the system in the following sessions:

Existing Logons

Client User Client Logon Time
800 DEVELOPER <IP> 10:10:37

Cancel all existing logons ---> this is a checkbox ..If you check this the other sessions will go off. If not they will continue along with your sessions.