Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Parameter for name

former_member202474
Contributor
0 Likes
1,147

Hi all,

In abap ,to get current user's Login ID we write sy-uname,is there any such parameter to get our name?

eg ' write sy-uname' : prints INF64624.

what prints Ruby chacko?

Regards,

Ruby.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,082
select single name1 into v_name from USR03  where bname = sy-uname.
8 REPLIES 8
Read only

Former Member
0 Likes
1,083
select single name1 into v_name from USR03  where bname = sy-uname.
Read only

Former Member
0 Likes
1,082

hi Ruby,

there is no system field to get the user's full name.

goto se11, and see the structure SYST-> you will get the list of available system fields.

Hope this helps,

Sajan Joseph.

Read only

athavanraja
Active Contributor
0 Likes
1,082

with user name go to USR21 table and get PERSNUMBER and then go to ADRP table with PERSNUMBER to get the full name.

Raja

Read only

Former Member
0 Likes
1,082

hi,

try using USR03-NAME1.

Read only

Former Member
0 Likes
1,082

Hi Ruby,

The ADRP table gives the First, Last, Middle names as well as the names in full of all the users.

I hope its of some help to you.

Regards,

Ganesh

Read only

Former Member
0 Likes
1,082

Hi ruby,

1. There is no direct system variable which stores the full user name (first name + last name)

2. We have to fetch it either thru sql or FM.

3. we can use this FM

BAPI_USER_GET_DETAIL

4. In that

ADDRESS is one structure

with fields

FIRSTNAME, LASTNAME.

<b>

5. From that structure we can also use the field

FULLNAME</b>

regards,

amit m.

Read only

Former Member
0 Likes
1,082

The id sy-uname "user id is the one configured by the basis .

//Now eg ' write sy-uname' : prints INF64624.

so the id on ur system is reffered as the same .

There is no system variable for checking the full name unless it is maintianed in the SAP .

regards,

vijay.

Read only

former_member202474
Contributor
0 Likes
1,082

Hi all,

Thanks for giving reply,my problem is solved using USR03 table.

Thanks & Regards,

Ruby.