DB2LOCKRES SAP (Resources locked by a thread) Structure details

Dictionary Type: Structure
Description: Resources locked by a thread




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




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

DB2LOCKRES 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 "Resources locked by a thread" 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_DB2LOCKRES TYPE DB2LOCKRES.

The DB2LOCKRES table consists of various fields, each holding specific information or linking keys about Resources locked by a thread data available in SAP. These include T3DBNAME (Name of the database), T3OBNAME (Name of the object associated with the database), T3LOCKS (No. of locks held and susp. on the database/obj. combination), T3TYPE (Type of lock held on a resource).. 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: Not classified


SAP DB2LOCKRES 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
T3ACEACE ID of the thread DB2ACEIDRAW4DB2RAW04
T3DBNAMEName of the database DB2T3DBNAMCHAR8DB2CHAR08
T3OBNAMEName of the object associated with the database DB2T3OBNAMCHAR18DB2CHAR18
T3LOCKSNo. of locks held and susp. on the database/obj. combination DB2T3LOCKSNUMC5DB2NUMC05
T3TYPEType of lock held on a resource DB2T3TYPECHAR8DB2CHAR08
T3STATEState of the lock held on the resource DB2T3STATECHAR3DB2CHAR03
T3DURATDuration of a lock DB2T3DURATCHAR16DB2CHAR16
T3SUSPWhether the thread is suspended waiting for a lock DB2T3SUSPCHAR9DB2CHAR09
T3FUNCTIRLM function request DB2T3FUNCTCHAR16DB2CHAR16
T3COLLName of the package collection DB2T3COLLCHAR18DB2CHAR18
T3PACKPackage identifier DB2T3PACKCHAR8DB2CHAR08
T3CONSTConsistency token of the package DB2T3CONSTCHAR19DB2CHAR19
T3PLLCKIndicates the kind of lock for the resource DB2T3PLLCKCHAR6DB2CHAR06
T3PARTPartition of the locked resource DB2T3PARTNUMC5DB2NUMC05
T3SUBPSubpage number of the index page lock DB2T3SUBPNUMC5DB2NUMC05
T3ROWRecord ID within the page of the locked resource DB2T3ROWNUMC5DB2NUMC05
T3PAGEPage number of the locked resource DB2T3PAGENUMC9DB2NUMC09
T3BPIDBuffer pool ID of the locked resource DB2T3BPIDCHAR8DB2CHAR08
T3RMIDRMID of the group databases exception update lock DB2T3RMIDCHAR8DB2CHAR08
T3HASHHash class number of the group database exception upd. lock DB2T3HASHNUMC8DB2NUMC08
DS_MEMBER 0

Key field Non-key field



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

As DB2LOCKRES 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 DB2LOCKRES as there is no data to select.

How to access SAP table DB2LOCKRES

Within an ECC or HANA version of SAP you can also view further information about DB2LOCKRES 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!