cancel
Showing results for 
Search instead for 
Did you mean: 

Getting MYSAPSSO2 cookie through javascript.

Former Member
0 Kudos

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

Jasper

Accepted Solutions (1)

Accepted Solutions (1)

former_member185280
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks Christian.

I had found this the other day but couldn't figure out how to turn it into XML.

Answers (0)