Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using RESTful logon token in OpenDocuments URL

Is there a way to use the logon token created through the RESTful call to pass the username/password to openDocuments URL?

This is what I have

var token = encodeURI(this.xSAPLoginToken);

var url = gui.data.Constants.BOE_REPORT_URL + '/BOE/OpenDocument/opendoc/openDocument.jsp?iDocID=' + cuid + '&sIDType=CUID&token='+token;

window.open(url);

I've tried not encoding the token and using encodeURI and encodeURIComponent.  None of what have worked.

Is there a proper way to for the URL

Former Member
replied

I believe the problem is the %22 on either side of the token.  remove the quotes when using openDocument.

Dan

1 View this answer in context
Not what you were looking for? View more on this topic or Ask a question