SAP Function BAPI_USER_GET_DETAIL - Read User Details

Parameter Reference Type Length Default Optional Text
CACHE_RESULTS FLAG_X C 1 'X' X Temporarily buffer results in work process
USERNAME BAPIBNAME-BAPIBNAME C 12 User Name

Parameter Reference Type Length Text
ADDRESS BAPIADDR3 u 2031 Address Data
ALIAS BAPIALIAS u 40 User Name Alias
COMPANY BAPIUSCOMP u 42 Company for Company Address
DEFAULTS BAPIDEFAUL u 70 Structure with User Defaults
ISLOCKED BAPISLOCKD u 4 User Lock
LASTMODIFIED BAPIMODDAT u 14 User: Last Change (Date and Time)
LOGONDATA BAPILOGOND u 339 Structure with Logon Data
REF_USER BAPIREFUS u 12 User Name of the Reference User
SNC BAPISNCU u 256 Secure Network Communication Data
UCLASS BAPIUCLASS u 45 License-Related User Classification

Parameter Reference Length Optional Text
ACTIVITYGROUPS BAPIAGR 127 X Activity Groups
ADDCOMREM BAPICOMREM 60 X BAPI Structure Communication Comments
ADDFAX BAPIADFAX 143 X BAPI Structure Fax Numbers
ADDPAG BAPIADPAG 136 X BAPI Structure Pager Numbers
ADDPRT BAPIADPRT 40 X BAPI Structure Printer Addresses
ADDRFC BAPIADRFC 69 X BAPI Structure RFC Addresses
ADDRML BAPIADRML 63 X Inhouse Mail BAPI Structure
ADDSMTP BAPIADSMTP 300 X E-Mail Addresses BAPI Structure
ADDSSF BAPIADSSF 2391 X BAPI Structure SSF Addresses
ADDTEL BAPIADTEL 142 X BAPI Structure Telephone Numbers
ADDTLX BAPIADTLX 72 X BAPI Structure Telex Numbers
ADDTTX BAPIADTTX 72 X BAPI Structure Teletex Numbers
ADDURI BAPIADURI 2219 X BAPI Structure: URL, FTP, and so on
ADDX400 BAPIADX400 948 X BAPI Structure X400 Addresses
EXTIDHEAD BAPIUSEXTIDHEAD 36 X Header Data for External ID of a User
EXTIDPART BAPIUSEXTIDPART 234 X Part of a Long Field for the External ID of a User
GROUPS BAPIGROUPS 12 X Transfer Structure for a List of User Groups
PARAMETER BAPIPARAM 98 X Table with User Parameters
PARAMETER1 BAPIPARAM1 120 X Replaces Parameter (Length 18 -> 40)
PROFILES BAPIPROF 74 X Profiles
RETURN BAPIRET2 548 Return Structure
SYSTEMS BAPIRCVSYS 10 X BAPI Structure for CUA Target Systems
UCLASSSYS BAPIUCLASSSYS 55 X System-Specific License-Related User Classification

Functionality
The method GetDetail returns the attributes of user USERNAME, as wellas the profiles and activity groups that are assigned to that user.
INCLUDE ADDR_TABL_BAPIADDR3 OBJECT DOKU ID TX

Description
Meaningful alias name, including spaces.
INCLUDE SU_COMPANY OBJECT DOKU ID TX
INCLUDE SU_DEFAULTS OBJECT DOKU ID TX

Description
User lock, contains the following fields:
Wrng_Logon - Password logon locked by incorrect logon attempts
Local_Lock - Logon generally locked for the local system
Glob_Lock - Logon generally locked for all systems (globally);
No_User_Pw - Password logon deactivated for this user

Value range
All fields can have two values:
L - locked
U - unlocked
INCLUDE SU_LOGONDATA OBJECT DOKU ID TX

Description
Reference user for additional authorizations
INCLUDE SU_SNC OBJECT DOKU ID TX

Description
User classification in accordance with the license agreement betweenthe customer and SAP.
The user classification of the local system is returned in the exportparameter UCLAS. If the system is the central system of a centraluser administration (CUA), the classification data for all systemsconcerned is returned in the table parameter UCLASSSYS, as long as itis known in the central system.
LIC_TYPE is the user type (values from table TUTYPA or TUTYP).
SPEC_VERS is a possible special version (values from table TUZUS).
COUNTRY_SURCHARGE is a possible country surcharge (value range between-100% and +999%).
You can only ever specify a special version or a country surcharge,never both. The following must therefore apply: SPEC_VERS = '00' orCOUNTRY_SURCHARGE = 0.
SUBSTITUTE_FROM and SUBSTITUTE_UNTIL specify the time period for whicha user is a Substitute (user type '04').
SYSID, CLIENT, and BNAME_CHARGEABLE point to the chargeable user for theuser types Substitute ('04') or Multie-Client/Multi-System ('11').


INCLUDE SU_USERNAME OBJECT DOKU ID TX
INCLUDE SU_ACTIVITYGROUPS OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX
INCLUDE ADDR_COMM_TYPE OBJECT DOKU ID TX

Description
BAPIUSEXTIDHEAD

Description
BAPIUSEXTIDPART

Description
Assignment to self-defined organizational user groups.
INCLUDE SU_PARAMETER OBJECT DOKU ID TX
INCLUDE SU_PARAMETER OBJECT DOKU ID TX
INCLUDE SU_PROFILES OBJECT DOKU ID TX
INCLUDE SU_RETURN OBJECT DOKU ID TX

Description
The content of the export parameter is only relevant in a central systemof a Central User Administration (CUA).

Value range
Depending on the usage type of the client in which theBAPI_USER_GET_DETAIL is executed, the parameter returns different tablecontents:

Client without connection to a CUA:
The table is empty.

The client is a child system of a CUA:
The table contains the logical system name of precisely this client.

The client is a central client of a CUA:
The table contains all logical system names of the child systems inwhich the specified user exists.

Description
System-specific license-related user classification.

Value range
User classification in accordance with the license agreement betweenthe customer and SAP.
The user classification of the local system is returned in the exportparameter UCLASS. If the system is the central system of a centraluser administration (CUA), the classifcation data for all systemsconcerned is returned in the table parameter UCLASSSYS, as long as itis known in the central system.
RCVSYSTEM is the name of the logical system for which the userclassification applies (value from table USZBVLNDRC).
LIC_TYPE is the user type (values from table TUTYPA or TUTYP).
SPEC_VERS is a possible special version (values from table TUZUS).
COUNTRY_SURCHARGE is a possible country surcharge (value range between-100% and +999%).
You can only ever specify a special version or a country surcharge,never both. The following must therefore apply: SPEC_VERS = '00' orCOUNTRY_SURCHARGE = 0.
SUBSTITUTE_FROM and SUBSTITUTE_UNTIL specify the time period for whicha user is a substitute (only for user type '04').
SYSID, CLIENT, and BNAME_CHARGEABLE point to the chargeable user for theuser types Substitute ('04') or Multi-Client/Multi-System ('11').

710013ISA R/3: Shop management authorization check
637611CHECK_FB_NAME function missing on some systems.