USER02 SAP (User Data for Logon) Structure details

Dictionary Type: Structure
Description: User Data for Logon




ABAP Code to SELECT data from USER02
Related tables to USER02
Access table USER02




Structure field list including key, data, relationships and ABAP select examples

USER02 is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "User Data for Logon" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_USER02 TYPE USER02.

The USER02 table consists of various fields, each holding specific information or linking keys about User Data for Logon data available in SAP. These include GLTGV (User valid from), GLTGB (User valid to), USTYP (User Type), CLASS (User group in user master maintenance).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP USER02 structure fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
BCODEPassword Hash Key XUCODERAW8XUCODE
GLTGVUser valid from XUGLTGVDATS8DATUM
GLTGBUser valid to XUGLTGBDATS8DATUM
USTYPUser Type XUUSTYPCHAR1USTYPXUUSTYP
CLASSUser group in user master maintenance XUCLASSCHAR12USGRPXUCLASSXUG
LOCNTNumber of failed logon attempts XULOCNTINT13XULOCNT
UFLAGUser Lock Status XUUFLAGINT13XUUFLAG
ACCNTAccount ID XUACCNTCHAR12XUACCNT
ANAMECreator of the User Master Record XUANAMECHAR12BNAME
ERDATCreation Date of the User Master Record XUERDATDATS8DATUM
TRDATLast Logon Date XULDATEDATS8DATUM
LTIMELast Logon Time XULTIMETIMS6UZEIT
OCOD1Password Hash Key XUCODERAW8XUCODE
BCDA1Date of Last Password Change XUBCDATDATS8DATUM
CODV1Code Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS
OCOD2Password Hash Key XUCODERAW8XUCODE
BCDA2Date of Last Password Change XUBCDATDATS8DATUM
CODV2Code Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS
OCOD3Password Hash Key XUCODERAW8XUCODE
BCDA3Date of Last Password Change XUBCDATDATS8DATUM
CODV3Code Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS
OCOD4Password Hash Key XUCODERAW8XUCODE
BCDA4Date of Last Password Change XUBCDATDATS8DATUM
CODV4Code Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS
OCOD5Password Hash Key XUCODERAW8XUCODE
BCDA5Date of Last Password Change XUBCDATDATS8DATUM
CODV5Code Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS
VERSNUser master record version XUVERSIONCHAR3XUVERSION
CODVNCode Version of Password Hash Algorithm (Old Systems) XUCODEVERSCHAR1XUCODEVERS

Key field Non-key field



How do I retrieve data from SAP structure USER02 using ABAP code?

As USER02 is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on USER02 as there is no data to select.

How to access SAP table USER02

Within an ECC or HANA version of SAP you can also view further information about USER02 and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!