Skip to Content

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

Deep linking in Approve Requisitions

Hi Experts,

I have run into a situation where deep linking is not working as I would expect. I am running the Approve Requisitions app and generating emails to send to my users who do approvals, each email including a deep link to the specific req that the email mentions.

Let's say I have two purchase reqs to approve/reject, tied to 2 WorkitemIDs. ID 11 is the one I want to share with my user in a deep link, ID 22 is the latest one that's been created for this user - and thus the one the user would see by default if they just came into the Approve Purchase Reqs app from the Launchpad.

I email my user this link, wanting them to be able to jump to the specific req in the email: https://launchpad_path?sap-client=XXX#sap-language=EN#PurchaseRequisition-approve#/detail/WorkflowTaskCollection(SAP__Origin='ABC_123',WorkitemID='11')

However, when the user gets the email and clicks/taps the link, their Approve Requisitions app opens up and puts them in the detail view of ID 22 (and the URL becomes https://launchpad_path?sap-client=XXX#sap-language=EN#PurchaseRequisition-approve#/detail/WorkflowTaskCollection(SAP__Origin='ABC_123',WorkitemID='22') in their browser).

Now, using the same browser tab that opened when they clicked the link in my email, they can copy and paste the original link (pointing to item 11) and the detail screen will output the right item. If they copy/paste the link and use a new browser window/tab, the same issue comes up...they get redirected to ID 22.

I have done some cursory debugging on the Gateway system, and have found that when the user tries to launch the link from the email they will trigger the get_entity method for ID 11 - however, shortly after that the get_entity method for ID 22 is called. This leads me to believe that the problem is in the way UI5 initializes the application on first loading, since after the application is loaded in the tab I can now navigate (in the same tab) via deep links to whatever item I like.

My questions:

-Have I set up the deep link properly? Is there another technique I am missing? I assume that the launchpad_path is correct in my URL since my app is actually launching.

-Has anyone seen any notes or other discussions of this kind of thing? I have been searching around and haven't seen anything - but I readily accept that I'm not searching for the right stuff.

As always, help is greatly appreciated.

Paul

Tags:
replied

If anyone else out there is looking for this same issue: after raising the issue in a support incident, SAP Note 2193124 now has the included correction instructions for this issue.

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