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.