on 01-15-2007 6:11 PM
Hi,
EP Version : NW04 SP 18
I have created a RFC iview to call a function module. My FM has 'User Id' field as one of its input fields which should take current logged on user id as the input at run time. How can this be achieved?
I tried to pass the value <logonid> or <username> or <j_user> to get current logged on user and none of the above helped.
Am I using the right value to get the current user id?
Thanks,
Vishnu
Basically you can't! The RFC iView is in my opinion a bad way to get data out of SAP. It is difficult to edit and passing paramaters is a nightmare.
Any chance you can use Visual Composer instead, or maybe right a little portal component to do the same thing?
Ps: if you're using SSO< the username that is used to start the RFC is the same username in the backend system, so maybe you can use sy-uname?
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Use request.getUser().getLogonUid() (request is ofcourse your IPortalComponentRequest)
Hope it helps
br Peter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.