on 11-27-2009 3:39 PM
Hi experts,
This is relative to Mobile Infrastructure 7.1
I have a scenario where I need to get the logged user on mobile client an show data acording to this logged user. In my data object I have an attribute 'user' and I can make a query on service component filtering with the logged user. Is there a way that I can get it by code?
Tanks,
Gabriela
Hi Gabriela!
For it you only need to do it:
User.getCurrentUser from com.sap.tc.mobile.sf.api.user.
Regards, Ronaldo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tanks Ronaldo
That answered my questions.
Regards
Gabriela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tanks Ronaldo,
Just one more question. Is there a way that I can make the query using functions like uppercase() or lowercase() ? I have a problem that the data is not always uppercase and logged user is uppercase always, when I execute the query the corresponding data doesn´t apear.
Regards,
Gabriela
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Gabriela!
I suggest for you a condition to create a sql statements using two parameters if you talk about service of handheld, now if you talk about abap functions, that you have to call, you can transform that params in your where statement with it:
...
TRANSLATE field TO UPPER CASE
...
Then the independently state of your user filter, you tranform that data in upper case and every execute of state return the correctly data.
Best regards, Ronaldo.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.