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

Getting MYSAPSSO2 cookie through javascript.

Hi All,

We are trying to execute SAP functions, in MII transactions, through the users SAP id. We have setup SSO and I have configured autobind on the xacute connector so it works when I go through the xacute query.

But we don't always use xacute queries because they require the use of Java and so we are using AJAX and the Runner functionality.

So my problem is when using the ajax function it doesn't pass the MYSAPSSO2 cookie into the input parameter of the transaction you are calling.

I see using tools like fiddler that the MYSAPSSO2 value is stored in a cookie but the value doesn't show up when I read the document.cookie in javascript.

So my question is how do I access the MYSAPSSO2 value through javascript so I can send it to my input parameters of the transaction through ajax.

Other options I was thinking is a custom action block if anyone knows how to access or find the MYSAPSSO2 value through a custom action block.

I am using MII version 12.1


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jun 04, 2012 at 04:18 PM

    You can call xacute and regular queries using AJAX. Try calling an xacute query using the Illuminator service and see if it works. URL syntax is something like below:

    /XMII/Illuminator?QueryTemplate=<Your Xacute Query>&Session=true&Content-type=text/xml&Param.1=<value1>&Param.2=<value2> etc ..

    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.