cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a BSP from Web Dynpro

michael_fallenbchel
Active Participant
0 Kudos

Hi experts,

I want to call a BSP from Web Dnypro.

That's not a problem - I have a problem with the User. I want to use my user from the web dynpro also in the BSP. But I have to log on in the BSP as well.

I tried it like this:

1. Calling the interface if_wd_window_manage->create_external_window

2. Using a suspend outbound plug

What I do wrong? How to achieve to use the same "session"?

Thanks

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Micheal,

WDA and BSP on the same server? If yes you can use it. Check fqdn names for it. If they are same, you already logged on.

If WDA and BSP are on different servers, you have to log on BSP server too. But if you are using portal for applications you can define SSO between portal, wda and bsp servers. So you can use sam user for all of them.    

michael_fallenbchel
Active Participant
0 Kudos

Hi Erhan,

yes, WDA and BSP are on the same server. I checked the fdqn - the same (http:/{OURSERVER}/sap/... for BSP and http:/{OURSERVER}/sap/bc/webdynpro/sap/... for the WDA).

What else can be the problem?

Regards

Michael

Former Member
0 Kudos

Hi Micheal,

That's strange. I just tried to open bsp from web dynpro abap and it is ok. Are you sure FQDN same?

For example (http:/{OURSERVER.domain}/sap/... for BSP and http:/{OURSERVER.domain}/sap/bc/webdynpro/sap/... for the WDA).

michael_fallenbchel
Active Participant
0 Kudos

Hi Erhan,

I'm absolutely sure - the domain is exactly the same, even the port.

Some time ago I tried the same but not calling a BSP, I tried calling a WDA. And here it's also the same. After clicking my link, I get the popup to logon...

Can ou pls desribe how you have achieved?

Thanks

Michael

michael_fallenbchel
Active Participant
0 Kudos

I'm doing exactyl the same - but still getting the popup to logon...

michael_fallenbchel
Active Participant
0 Kudos

Okay, I think I got the problem:

I call my Web Dynpro with an anosymous user (maintained in SICF). First. you get an logon page you use for the "real" log in to the system. After that I call function SUSR_INTERNET_USERSWITCH to logon. I think this will oly change the user name, the session will be the same as on the beginning with the anonymous use?

Could this be the problem?

Okay, I'm not sure - I changed my WDA to call directly the view with the link to the BSP (without the function). But still the same 😞

Former Member
0 Kudos

Ok, I think we got the problem. If you are using your WDA anon, BSP will ask a user. Do you want to use both WDA and BSP anon?

michael_fallenbchel
Active Participant
0 Kudos

I'm not sure if this is the problem...I use it like this:

1. Call the WDA with an anon user

2. Login to SAP (SUSR_INTERNET_USERSWITCH) with a "real" user

3. Link to the BSP

Normally I should be logged in to SAP after step 2 (sy-uname = my real user).

Former Member
0 Kudos

Hi,

Please look at this thread: http://scn.sap.com/thread/294209

michael_fallenbchel
Active Participant
0 Kudos

I know this thread...it's only talkingabout the function itself.

The function is working, I can switch froma service user to my dialog user, that's working perfect.The problem is the link to the BSP...

Former Member
0 Kudos

May be you could your user name in memory and then get it from memory in BSP application? I am thinking loudly