cancel
Showing results for 
Search instead for 
Did you mean: 

OWL Query for Current User

wwojtas
Explorer
0 Kudos

Hi Everyone,

I've made a Custom BO that contains association to the Employee which I'm updating via OData from external system.

association ToEmployee [0,1] to Employee; 

In OWL View I'm trying to set query that would only show objects assigned to the current logged user.

I've seen this post here https://answers.sap.com/questions/12509984/how-to-get-the-current-date-and-current-user-in-ui.html that suggest to use Field Transformation function GetIdentityUUID from http://sap.com/xi/A1S/ReuseFunctions. However When I'm trying to match it with any UUID I can find the Data Type never matches and never shows me the function. I believe it is because the UUID field itself is always changed to UUID's conent.

Do you have any suggestion how to do it some other way or do you know what am I doing wrong?

Thanks in advance,
/W

View Entire Topic
cianbarrett
Active Participant

Hi Waldemar,

You could try creating your own Reuse Library in the SDK and calling "GetIdentityUUID" from within that. That should be a suitable workaround for your scenario.

- Cian

wwojtas
Explorer

Didn't even know that was an option.

Worked out great, thanks for help!