Skip to Content
4

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

Feb 22 at 08:48 AM

52

avatar image
Former Member

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Bernard Le Tourneur Feb 23 at 06:21 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded