on 12-28-2011 7:20 AM
how to get login userid from the system for who already logged in into system,with the help of am getting the username but am not getting the userid,how to get userid can u share this answer for me.
Ramana,
There are so many ways to get user details based on sy_userid. So please let me know your scenario, how are you getting user name so that we will help exactly.
FM To get the user details based on user id.
*DATA IEE_TAB TYPE PERNR_US_TAB.
*DATA WEE_TAB LIKE LINE OF IEE_TAB.
*CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
* EXPORTING
* USER = SY-UNAME
** BEGDA = SY-DATUM
** ENDDA = SY-DATUM
** IV_WITH_AUTHORITY = 'X'
* TABLES
* EE_TAB = IEE_TAB
* .
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how are you getting the username....usually toget these SU03 we will use...sy-userid or sy-uname.....will be used...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.