on 01-12-2015 3:23 PM
Hi Everyone ,
Could you guys help me out in getting the current username in SAP Personas screen in a text box. Is there any code or standard FM or program to record the steps. Let me know your suggestions .
Thanks
Sivaganesh
Hi Sivaganesh,
If you are already calling a WebRFC from within Personas, then you can just use the SY-UNAME field in the WebRFC as it contains the users id.
Thanks,
Todd
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Siva ,
I am facing the same issue , could you please share the solution ?
Thanks
Shivani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd like to say that you can just use System->Status from whatever screen you are on, and grab the username from there. Unfortunately, whenever I do that within Personas I get a "The session has timed out" error. That seems like a bug - does it happen to anyone else?
The alternative answer is to call a WebRFC to return the username. Details of how to call RFCs from Personas can be found in this blog - . The ABAP function you'd need to write yourself, but there's an example in the above blog and returning just the username is a simpler function than the example.
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Steve,
I am already using the logic of getting the username from system-->Status.
But the problem is.. iam passing this username to a webRFC which in turn gives information such as project id , district id etc,. The issue is iam using this information to refresh a html viewer.
All this iam trying to achieve on Page Load.
You can find my other detailed explanation here .. could you help me out how to solve this issue.?
Thanks
Sivaganesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.