Skip to Content
avatar image
Former Member

Problem while calling "/userapi/currentUser" from SuccessFactors extantion SAPUI5 application

Hi,

We have SAPUI5 application "supportfeed" deployed on SCP. Based on this application we made successFactors extension as shown in following comunity blogs.

https://blogs.sap.com/2017/12/03/create-html5-based-successfactors-extension-app-using-sap-cloud-platform-part-1/

https://blogs.sap.com/2017/12/03/create-html5-based-successfactors-extension-app-using-sap-cloud-platform-part-2/

https://blogs.sap.com/2017/12/03/create-html5-based-successfactors-extension-app-using-sap-cloud-platform-part-3/

We have problem while calling "/services/userapi/currentUser" service from UI5 application. In browser network logs we see the error 404

Request URL:
https://flpnwc-{....}.hana.ondemand.com/sap/fiori/portalsitetemplates/services/userapi/currentUser
Status Code:404 Not Found

But if we open this request url in new browser tab and change "portalsitetemplates" to "supportfeed" (SAPUI5 application name) it works without problem.
Request URL:https://flpnwc-{....}.hana.ondemand.com/sap/fiori/supportfeed/services/userapi/currentUser
Status Code:200 OK

Please help solving this issue.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 23 at 06:21 AM

    Are you using a destination configured in SCP to resolve the endpoint?

    Check your datasource (manifest.json) as well as your destination (neo-app.json) and finally check your the config of your destination (if you are using a destination in your SCP).

    Without showing us your code regarding the above its really hard to help solve this issue specifically.

    Add comment
    10|10000 characters needed characters exceeded