2007 Mar 19 9:38 AM
Is there a system component that gives the user name and his/her last name..... can anyone help please.
2007 Mar 19 9:42 AM
HI Shaheen,
There are no system field which directly give the first/last name for the user.
you have to use the sytem fiel SY-UNAME to get the other user details.
select single *
from USR03
where BNAME = sy-uname.
usr03-NAME1, usr03-NAME2, usr03-NAME4 will have the names of the user.
Regards,
Ravi
Is there a system component that gives the user name and his/her last name..... can anyone help please.
2007 Mar 19 9:41 AM
Hi,
SY-UNAME field gives the User name .
using the User name you can get the last name/ first name in PA0002 info type
or You can get in the user related tables USR01/02/03 etc.
Reward if useful,
regards,
Anji
2007 Mar 19 9:44 AM
Thanks but I'm not using HR report, I'm using normal report.... I used uname and it's giving me the user name only.
2007 Mar 19 9:49 AM
2007 Mar 19 9:42 AM
HI Shaheen,
There are no system field which directly give the first/last name for the user.
you have to use the sytem fiel SY-UNAME to get the other user details.
select single *
from USR03
where BNAME = sy-uname.
usr03-NAME1, usr03-NAME2, usr03-NAME4 will have the names of the user.
Regards,
Ravi
2007 Mar 19 9:53 AM
You can also use this FM to get the NAME1 and NAME2 of the user
<b>TMS_WBO_READ_USER_ADDRESS</b>
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |