cancel
Showing results for 
Search instead for 
Did you mean: 

Force a required login in a running wd abap application

former_member193202
Participant
0 Kudos

hi folks

how can i force the user to make a login in a running wd abap application.

background: user is loggid in with a default user and has to be forced to use another userid/password.

kind regards,

oliver

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

OPTION 1: (should be ok)

try function

Create a popup window that asks for user-id and password

then call function

SUSR_INTERNET_USERSWITCH

Test inside and without portal.

I havent tested this inside a portal

OR

Option 2:

try

Create 2 Applications

APP1 requires logon,

APP2 doesnt.

Both apps can call same start plug on WD component IF view.

When event X happens that is to cause login,

tigger a navigation event on Window to call EXIT plug.

Add the parameter "URL" to the exit plug.

This will lauch second application or close of first.

The exit page settings in SICF for APP1 must have JAVA script to remove SSO2

cookie so that default user isnt used to logon to second app automatically.

See google... delete SSO2 cookie

Login prompt should result.

Cheers

Phil.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi oliver,

All the WDA Application will be present as Service node in the SICF transaction.

Service path: /sap/bc/webdynpro/sap/<WDA Application Name>

1. Right Click

2. In the Context Menu choose Test Service.

You can pass the username and password as a query string parameters to the application URL.

For Eg.

http://<servername>.<hostname>:<port>/sap/bc/webdynpro/sap/<application_name>?sap-client=812&sap-use...;

Hope it helps.

Regards,

Maheswaran.B

Message was edited by:

Maheswaran B

Message was edited by:

Maheswaran B

former_member193202
Participant
0 Kudos

Hi Maheswaran ,

yep i know, but i have up a running application where i put a fix userid password in the service node and want - via button or whatever - to force to user to make a login so he is logged in the system with his real user and password.

regards oliver

Former Member
0 Kudos

Hi Oliver,

If you already have the real username and password with you then you can use the above post's URL and logon with the username and password. I am writing the URL again for you

convenience...

http://<servername>.<hostname>:<port>/sap/bc/webdynpro/sap/<application_name>?sap-client=812&sap-use...;

When you click the button call the JavaScript window.open(URL) to logon with the real username and password.

Hope it helps.

Regards,

Maheswaran.B

former_member193202
Participant
0 Kudos

Hi Maheswaran,

thanks for the answer but my question would be:

when i'm in a running application - and thats what you mean i guess - how can i call a javascript window.open command from a webdynpro abap application, i thought this won't work.

any help needed kind regards so far

oliver