Skip to Content
1
Jun 16, 2020 at 12:05 PM

Return TaskCollection count via Fiori OData service for a different user to the one logged in

67 Views Last edit Jun 16, 2020 at 12:08 PM 2 rev

We have a non-SAP applications portal as well as the Fiori homepage.

Users have said they'd like to know their task counts from the Fiori portal on the non-SAP portal too.

I don't want to go down the road of storing users' username / password so I wanted to know if there is a way to make the My Inbox calls by proxy? That way I could make calls from my NodeJS server using a system account but get the counts for User X or Y.

e.g. To get Invoice Approvals count Fiori homepage calls:

/sap/opu/odata/IWPGW/TASKPROCESSING;v=2;mo/TaskCollection/$count/?$filter=ScenarioID%20eq%20%27INVOICEAPPROVAL%27&sap-language=EN

I was wondering if I could add something a bit like

"&SAPUserID=ITWOODALEX"

To get the total for Alex Wood.

Or maybe use a POST to a different service and supply the username in the payload.

If there is a feature like this I expect there would be an extra S&A role that would be required on the System Users account.

Has anyone done anything like this without creating your own custom services?