04-12-2009 6:14 AM
i know that i will get user name by system variable "sy-uname", but how do i get other information of that user like his telephone number, email address etc.
04-12-2009 7:30 AM
Hi Atiul,
Check with the FM's
RSRA_USERS_OF_AGR_GET
CNV_GET_USER_ROLE
SO_CHECK_USER_ROLE
and in the BAPI_USER_GET_DETAIL
Export Parameters ADDRESS->E_MAIL, you will get the e-mail address of the USER.
hope these will help you.
Thanks
04-12-2009 6:41 AM
use this fm BAPI_USER_GET_DETAIL
Also check these tables USR01,USR02,USR03
Edited by: Kartik Tarla on Apr 12, 2009 12:04 PM
04-12-2009 7:30 AM
Hi Atiul,
Check with the FM's
RSRA_USERS_OF_AGR_GET
CNV_GET_USER_ROLE
SO_CHECK_USER_ROLE
and in the BAPI_USER_GET_DETAIL
Export Parameters ADDRESS->E_MAIL, you will get the e-mail address of the USER.
hope these will help you.
Thanks
04-12-2009 7:30 AM
hi Atiul Ehsan
try this Functional modules .
SUSR_USER_ADDRESS_READ
ADDR_PERS_COMP_COMM_GET
regards
chinnaiya P
04-12-2009 8:19 AM
Following are the tables related to user details.
Table Description
USR01 User master record (runtime data)
USR02 Logon data
USR03 User address data
USR04 User master authorizations
USR05 User Master Parameter ID
USR06 Additional Data per User
USR07 Object/values of last authorization check that failed
USR08 Table for user menu entries
USR09 Entries for user menus (work areas)
USR10 User master authorization profiles
USR11 User Master Texts for Profiles (USR10)
USR12 User master authorization values
USR13 Short Texts for Authorizations
USR14 Surchargeable Language Versions per User
USR30 Additional Information for User Menu
USH02 Change history for logon data
USH04 Change history for authorizations
USH10 Change history for authorization profiles
USH12 Change history for authorization values
UST04 User masters
UST10C User master: Composite profiles
UST10S User master: Single profiles
UST12 User master: Authorizations
Regards,
Lalit Mohan Gupta.
04-12-2009 8:32 AM
TH_USER_INFO " FM to give information about the current user (sessions, workstation logged in from, etc)
CALL FUNCTION 'BAPI_USER_GET_DETAIL'
EXPORTING
USERNAME =
" IMPORTING
" LOGONDATA =
" DEFAULTS =
" ADDRESS =
" COMPANY =
" SNC =
" REF_USER =
" ALIAS =
" UCLASS =
" LASTMODIFIED =
" ISLOCKED =
TABLES
" PARAMETER =
" PROFILES =
" ACTIVITYGROUPS =
RETURN =
" ADDTEL =
" ADDFAX =
" ADDTTX =
" ADDTLX =
" ADDSMTP =
" ADDRML =
" ADDX400 =
" ADDRFC =
" ADDPRT =
" ADDSSF =
" ADDURI =
" ADDPAG =
" ADDCOMREM =
" PARAMETER1 =
" GROUPS =
" UCLASSSYS =
" EXTIDHEAD =
" EXTIDPART =
" SYSTEMS =
BAPI_USER_CHANGE " FM to change the attributes of a user
Regards,
Lalit Mohan Gupta.