Skip to Content
avatar image
Former Member

Pass user information to SAPUI5 app on SAP EP

I have a custom SAPUI5 app running on the Enterprise portal (7.4) and want the user information from the Portal accessible to the SAPUI5 app. I am not sure how to obtain that information.

Environment setup: The SAPUI5 application is in the Web Resource Repository on the portal. I have created an UI5 iView on the portal that calls the SAPUI5 application. We are using fiori that is installed on the Portal.

I need the user name and email address for use in the sapui5 application. I have tried to pass this as via the iView propertyParameters forwarded to UI5. I have set this to be user=<User.LogonUid>. This is not working.

How can I get the user information in the SAPUI5 application based upon the Portal user information?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Nov 11, 2016 at 06:55 AM

    create your own servlet/rest/odata service and read this from there.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Please provide a sample on how you would get that information from the EP. I would think that it should be available when running the SAPUI5 application from the Fiori launchpad that is on the EP.

  • Nov 12, 2016 at 07:10 AM

    user=<User.LogonUid> when u set this, what's the code used to get it?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 14, 2016 at 05:19 PM

    I thought the user login id would be in the URL when the application was initiated. I am not seeing it there. What should the coding be to get it?

    Add comment
    10|10000 characters needed characters exceeded