Follow us on LinkedIn for your next SAP project

SAP Table USR02

Logon Data (Kernel-Side Use)

USR02 (Logon Data (Kernel-Side Use)) is a standard table in SAP R\3 ERP systems. Below you can find the technical details of the fields that make up this table. Key fields are marked in blue.

Additionally we provide an overview of foreign key relationships, if any, that link USR02 to other SAP tables.

USR02 table fields

Field Data element Checktable Datatype Length Decimals Possible values
MANDT
Client
MANDT
CLNT
3 0
BNAME
User Name in User Master Record
XUBNAME
CHAR
12 0
BCODE
Password Hash Key
XUCODE
RAW
8 0
GLTGV
User valid from
XUGLTGV
DATS
8 0
GLTGB
User valid to
XUGLTGB
DATS
8 0
USTYP
User Type
XUUSTYP
CHAR
1 0
CLASS
User group in user master maintenance
XUCLASS USGRP
CHAR
12 0
LOCNT
Number of failed logon attempts
XULOCNT
INT1
3 0
UFLAG
User Lock Status
XUUFLAG
INT1
3 0
ACCNT
Account ID
XUACCNT
CHAR
12 0
ANAME
Creator of the User Master Record
XUANAME
CHAR
12 0
ERDAT
Creation Date of the User Master Record
XUERDAT
DATS
8 0
TRDAT
Last Logon Date
XULDATE
DATS
8 0
LTIME
Last Logon Time
XULTIME
TIMS
6 0
OCOD1
Password Hash Key
XUCODE
RAW
8 0
BCDA1
Date of Last Password Change
XUBCDAT
DATS
8 0
CODV1
Code Version of Password Hash Algorithm (Old Systems)
XUCODEVERS
CHAR
1 0
OCOD2
Password Hash Key
XUCODE
RAW
8 0
BCDA2
Date of Last Password Change
XUBCDAT
DATS
8 0
CODV2
Code Version of Password Hash Algorithm (Old Systems)
XUCODEVERS
CHAR
1 0
OCOD3
Password Hash Key
XUCODE
RAW
8 0
BCDA3
Date of Last Password Change
XUBCDAT
DATS
8 0
CODV3
Code Version of Password Hash Algorithm (Old Systems)
XUCODEVERS
CHAR
1 0
OCOD4
Password Hash Key
XUCODE
RAW
8 0
BCDA4
Date of Last Password Change
XUBCDAT
DATS
8 0
CODV4
Code Version of Password Hash Algorithm (Old Systems)
XUCODEVERS
CHAR
1 0
OCOD5
Password Hash Key
XUCODE
RAW
8 0
BCDA5
Date of Last Password Change
XUBCDAT
DATS
8 0
CODV5
Code Version of Password Hash Algorithm (Old Systems)
XUCODEVERS
CHAR
1 0
VERSN
User master record version
XUVERSION
CHAR
3 0
CODVN
Code Version of Password Hash Algorithm (New Systems)
XUCODEVER2
CHAR
1 0
TZONE
Time Zone
TZNZONE TTZZ
CHAR
6 0
ZBVMASTER
CUA User Template: Logon Not Possible Here
XUZBVFLAG
CHAR
1 0
PASSCODE
Password Hash Value (SHA1, 160 Bit)
PWD_SHA1
RAW
20 0
PWDCHGDATE
Date of Last Password Change
XUBCDAT
DATS
8 0
PWDSTATE
Password Change: Required / Allowed / Not Possible
PWDCHGSTATE
INT1
3 0
RESERVED
CUA Control Information
XUCUACNTL
INT1
3 0
PWDHISTORY
Indicator: Password History Stored in Table USRPWDHISTORY
XUPWDHIST
INT1
3 0
PWDLGNDATE
Date of Last Password Logon
XULPDAT
DATS
8 0
PWDSETDATE
Date: Password Reset by Administrator
XUSPDAT
DATS
8 0
PWDINITIAL
Indicator: Password Is Initial (= Set by Administrator)
XUPWDINIT
INT1
3 0
PWDLOCKDATE
Date: Setting of Password Lock
XUPLDAT
DATS
8 0
PWDSALTEDHASH
Password Hash Value (Various Algorithms and Codings)
PWD_HASH_STRING
CHAR
255 0
SECURITY_POLICY
Security Policy Name
SECURITY_POLICY_NAME SEC_POLICY_CUST
CHAR
40 0

USR02 foreign key relationships

Table Field Foreign key table Foreign key field Check table Check field
USR02 CLASS USR02 MANDT USGRP
User Groups
MANDT
USR02 CLASS USR02 CLASS USGRP
User Groups
USERGROUP
USR02 SECURITY_POLICY USR02 MANDT SEC_POLICY_CUST
Configuration of Security Policies
CLIENT
USR02 SECURITY_POLICY USR02 SECURITY_POLICY SEC_POLICY_CUST
Configuration of Security Policies
NAME
USR02 TZONE USR02 MANDT TTZZ
Time zones
CLIENT
USR02 TZONE USR02 TZONE TTZZ
Time zones
TZONE