on 03-16-2012 10:52 AM
Hi,
In my OrgChart (3.0 SP2, SSO with Logon tickets) data retrieves from SAP under system user. Now I need to pass real user name into z-FM (to restrict some data retrieving), but call this FM under system user. Is that possible, to pass user name as input parameter? How?
Best regards,
Sergey Aksenov
Hi Sergey,
In your function module you need to declare SY-UNAME so that it uses the logged-in users user Id.
Best regards,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sergey,
Good question
I haven't tried this recently but previously you could reference fields in the user object (see data element UserPopulationInfo for the fields available).
Format to reference the field was:
[![CURRENTUSER.USERID]!]
So you should be able to use this in your NakisaRFC config (OTFSchema) for example to pick up the user id of the current user and use it to drive the data extraction.
If the above format doesn't work, try
[![CURRENTUSER['USERID']]!]
Does that help?
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
I am facing a similar issue. We are passing the userid and password as a part of the connection string. This is required to avoid providing additional display authorization to users.
If we donot pass the user credentials then sy-uname is working fine. However if we pass user credentials then it is taking the credentials of the system user.
Our RFC function has two parameters perno and uname . Perno is passing fine but unable to pass the parameter uname ( uname need current userid ).
We are using a linked data element to display the additional field .Can you please suggest how to pass the nakis logged in user id .
Regards
Sumeet
User | Count |
---|---|
100 | |
11 | |
11 | |
6 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.