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

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

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!

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 12:31 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 27, 2005 at 12:32 PM

    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: /sap/bc/bsp/sap/system/ sso2test.htm

    Regards

    Raja

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 12:34 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 01:14 PM

    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).

    Add a comment
    10|10000 characters needed characters exceeded

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.