Wednesday, May 14, 2025

ABAP : Deep Link not working after SSO Authentication

In our organization, we have a need to provide a link to the "Display Credit Exposure" page  in SAP Fiori App,  in one of our custom application.

We have got the Deep Link in below format:

https://<host>:<port>/sap/bc/ui2/flp?sap-client=123&sap-language=EN#BusinessPartner-displayCreditExposure?BusinessPartner=12345

The above Deep Link works fine if the user is already logged in to the application. But if the user is not already logged in to SAP, it will ask for authentication, but after the authentication, it is getting redirected to the Home Page as below:

https://<host>:<port>/sap/bc/ui2/flp?sap-client=123&sap-language=EN#Shell-home

Our expectation was that even if the user is not logged in , it should take us to the Display Credit Exposure page after the SSO authentication.


Cause:

The main issue was the intent (#SemanticObject-Action) part of the URL was not getting passed on the re-direction.


Solution:

We followed the below SAP KBA's and the functionality started working fine.

2598498 - Fiori intents in HTTP URL do not work using SAML 2.0 authentication



The below note which is mentioned in the above KBA has the correction instructions and explains what configurations need to be done on SAML and Service Provider Side.

2051210 - Fragments in HTTP URLS are not handled after SAML 2.0 authentication





Feel free to point out if anything is missing/wrong in this blog.

No comments:

Post a Comment

SAP IS : Boost Your Productivity with SAP CPI Helper Extension for SAP BTP Integration Suite

  If you're working with SAP BTP Integration Suite (IS) —especially with Cloud Integration (formerly CPI) —you probably know how powerfu...