cancel
Showing results for 
Search instead for 
Did you mean: 

Get username in Screen Personas 3.0 SP1

Former Member
0 Kudos

Hi experts:)

I would like to know whether it is possible to get a username in SMEN screen, e.g. which says "Welcome, Diana!"in the text field?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

tamas_hoznek
Product and Topic Expert
Product and Topic Expert
0 Kudos

Of course.

var user=session.info.user;


This will give you the userID. If you want the full name of the user, then you'd have to perform an RFC to retrieve it from the backend, something like BAPI_USER_GETDETAIL or similar.

Former Member
0 Kudos

Thank you Tamas for your helpuf answer, as always

Yes I would like to have a full name of a user, but I'm not sure how to use RFC? I found the post from Steve, but it is regarding Personas 2.0, that's why I'm asking - maybe in personas 3.0 something has change - the steps how to to that.

Best,

Diana

steverumsby
Active Contributor
0 Kudos

It is different in Personas 3 - this wiki page shows you how to do it, including an example calling exactly the BAPI you need!

How to call Remote Enabled ABAP Function Modules in Personas 3.0

Steve.

Former Member
0 Kudos

Excellent! you guys are the best!

Answers (0)