Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Passing current users as parameter in XSOData

$
0
0

Hi,

 

I have a requirement where I have a calc view which accepts sap-client as a parameter. I have a XSOData created using the keywords "Parameters via Entity". The calling program (SAPUI5) makes a call to the XSOData service passing sap-client as a parameter. All works good. Now, I need to pass current user as a parameter. I do not have the flexibility to change the calling program (It would have been easy to obtain the current user using UI5 libraries and change the URL to have current user as an additional parameter).

 

I have created another parameter in the calc view and named it "Current_User". Is there a way in which I could find the current user and default this parameter all within XSOData ?

 

Thanks,

Murali.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>