cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass R3 User/Password from BSP to client application

Former Member
0 Kudos

Hello All,

I'm starting an external program from my BSP application. This program is actually an ActiveX control being called from BSP using JavaScript. It runs on the client side ("near the browser"). Now the program needs to send a HTTP request back to R3 system, which my BSP belongs to.

My question is:

are there any way to pass the R/3 logon data from BSP to my client program. I would like to avoid an additional PopUp in the program asking for the logon data which the user has just provided when logged on to BSP.

Thanks in advance for any hints!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Thanks.

What I'm doing is:

<script language="javascript">

function Test()

{

var TestApp = null;

TestApp = new ActiveXObject('Test.Test');

TestApp.Execute(); // now the external program is started

}

</script>

<htmlb:button design="EMPHASIZED" id="TEST" onClientClick="Test()" text="<%=otr(...)%>"/>

And from this application program (Test) I have to communicate with R/3 using my own ICF service (actually I have to send an XML request to R3 and to get an XML responce back).

Former Member
0 Kudos

hi Serguei,

You can use and invisible input field in your BSP page like

<htmlb:inputField id = "ip1"

visible="FALSE"

type = "STRING"

value = "<%= sy-uname %>"/>

This value can be read by your javascript when you execute it and can be passed to your client application.

Hope this helps,

Regards,

Siddhartha

athavanraja
Active Contributor
0 Kudos

Welcome to SDN

i guess this activex is running inside the browser and from there you are issuing a HTTP request to SAP system in the same browser window

then you just need to enalbe SSO2 cookie , so that in the same browser session you will not be asked for authentication again.

more on this check out OSS note no.

517860

and run this url in your system

http://wasserver.xxx.com:<port>/sap/bc/bsp/sap/system/sso2test.htm

Regards

Raja

Former Member
0 Kudos

Hi Serguei,

First of all, Welcome to SDN.

If I had understood you correctly,

For that functionality you need to have SSO enabled in your BSP system. If SSO is enabled then, we can send the logon details appended to the url as: ?sap-user=myName&sap-password=myPassword&sap-client=myClient.

To enable SSO you need to add some parameters in RZ10 transaction. You can get the help of that from many posts in this form.

Hope this helps,

Regards,

Ravikiran.