SAP Knowledge Base Article - Public

2836740 - Function getDocumentURL Not Work with SSO

Symptom

While logging into the system with SSO, getDocumentURL will returns a URL without SSO prefix.

Environment

  • SAP Hybris Cloud for Customer
  • SAP Business ByDesign
  • SAP Cloud Applications Studio

Reproducing the Issue

  1. Login to the system with SSO
  2. GetDocumentURL will return a URL without SSO prefix which cannot be opened
  3. SAML2 error will show while opening this URL
  4. Login to the system without SSO
  5. It works fine

Cause

This getDocumentURL is part of the platinum engineering namespace and was created as part of a project basis.The scenario you are trying to achieve was not part of the initial project used for this function. In this way, the backend coding does not include a request for this information about SSO. This code logic will not be changed as there are multiple customers using this without issues.

Resolution

Please kindly modify the resulting information from this function to include the SSO prefix in your link.

See Also

2698916 - Facing Issues while Using SAP Platinum Engineering Libraries

Keywords

getDocumentURL SSO SAML2 , KBA , AP-RC-BDS-SCR , ByDesign Studio Scripting (ABSL) , How To

Product

SAP Business ByDesign all versions ; SAP Cloud Applications Studio all versions ; SAP Cloud for Customer add-ins all versions ; SAP Cloud for Customer core applications all versions