Let's follow up this discussion at the Neptune Community
(this forum will be kept in read-only mode)
I have published or App to the Hana Cloud Platform. The Connection to the back-end is coded with one User ID (which is mine). When accessing the App through HCP Portal I need to know the User ID from the portal user in order to determine which data he can view (e.g. demo or real customer. HCP has Parameters to pass but how do I receive them in Neptune Back-End ??
Thx in advance.
I guess in the HCP Destination you have setup, a username and password is hardcoded as in the pic below.
Then in Neptune Backend ABAP classes, sy-uname will always be your username (robert in my example).
To know the HCP Portal username in the Backend, basically you have two options:
1 - Setup Principal Propagation. So that each user in HCP Portal can be mapped to a user in the backend. The identity is then trasferred via SAP Cloud Connector.
Thx Julian that was very helpfull.
You are welcome ;)