cancel
Showing results for 
Search instead for 
Did you mean: 

user-name first last name

Former Member
0 Kudos

Hi expert,

I know the user name ( = sy-uname ) . How I can know the first name and last name for the user-name ?

in witch table is it stored ?

Tks,

bye

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You fetch the pernr from sy-uname from PA0105. By using pernr you can directly fetch the names using the below function module.

CATS_GET_EMPLOYEE_NAME

Thanks & Regards,

Ganesh R K

Former Member
0 Kudos

Hi Ganesh R K,

tks for reply,

it's run ok, but there's some user-name that not are employee... and for they, nor run .....

Former Member
0 Kudos

Hi Roberto,

Select * from pa0105 where subty eq 0001 and usrid eq sy-uname.

select ename from pa0000 where pernr eq pa0105-pernr and endda eq 31.12.9999

Regards,

Dilek

Former Member
0 Kudos

Hi Dilek,

tks for your reply.... it's not run ok completely... beaucose there some user-name that are not emplyee,

like external consultant... and in this case not run...

Any idea ??

tks,

bye.

Former Member
0 Kudos

Then use su01d , given the sy-user and then display . It will give you the first name and last name off sy-user .

Answers (3)

Answers (3)

Former Member
0 Kudos

There are two option for this

1.check transaction su01d then give the userid , it will give you the first name and last name

2. check table pa0105 in the given the sy-user in id number field and execute

Hope this would help you.

Former Member
0 Kudos

Hi,

You can get this from Transaction SU3

Regards,

Kapil

Former Member
0 Kudos

Hi ,

First name is stored in PA0002-VORNA and last name is stored in PA0002-NACHN.

Thanks & Regards,

Ganesh R K

Former Member
0 Kudos

Hi,

tks for reply, but in this table, there's not the link between user-name and matricule number...