SDB_THREADS_TASKS SAP (SDB: Threads and Tasks) Structure details
Description: SDB: Threads and Tasks
Related tables to SDB_THREADS_TASKS
Access table SDB_THREADS_TASKS
Structure field list including key, data, relationships and ABAP select examples
SDB_THREADS_TASKS 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 "SDB: Threads and Tasks" 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_SDB_THREADS_TASKS TYPE SDB_THREADS_TASKS.
The SDB_THREADS_TASKS table consists of various fields, each holding specific information or linking keys about SDB: Threads and Tasks data available in SAP. These include OS_PID (SAP DB: Process ID), PROCNAME (MaxDB: Name of a Thread), DISPATCHCNT (SAP DB: Counter for command calls), COMMANDCNT (SAP DB: Counter for command calls).. 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 SDB_THREADS_TASKS 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 |
OS_PID | SAP DB: Process ID | SADA_PID | CHAR | 10 | CHR10 | ||||
PROCNAME | MaxDB: Name of a Thread | SDB_THREADNAME | CHAR | 32 | CHAR32 | ||||
DISPATCHCNT | SAP DB: Counter for command calls | ADA_CCNT | DEC | 20 | DEC20 | ||||
COMMANDCNT | SAP DB: Counter for command calls | ADA_CCNT | DEC | 20 | DEC20 | ||||
TASKS_ACTIV | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
TASKS_TOTAL | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
TASKCLUSTER | Character field, length 64 | CHAR64 | CHAR | 64 | CHAR64 | ||||
TASKGROUPID | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
DB_PID | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
PROCTYPE | SAP DB: Process Type | SADA_PTYP | CHAR | 16 | CHR16 | ||||
APPL_PID | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
STATE | SDB Process Status | SADA_PSTA | CHAR | 16 | CHR16 | ||||
CANCELED | Carrier field for icons | ICON_TEXT | CHAR | 132 | SYCHAR132 | ||||
SESSION_TIMEOUT | SYSDBA.MONITOR.VALUE | ADA_VALUE | DEC | 20 | DEC20 | ||||
WAITING4TASK | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
WAITING4ROOT | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
WAITING4DEV | SAP DB: Volume Name | SADA_DEVN | CHAR | 64 | CHR64 | ||||
SESSION_ID | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
TRANSCOUNT | SDB Transaction Counter | SADA_TCNT | CHAR | 10 | CHR10 | ||||
PROCESS | SAP DB: Process ID | SADA_PID | CHAR | 10 | CHR10 | ||||
USERNAME | SAP DB User Name | SADA_UNAME | CHAR | 32 | CHAR32 | ||||
CONNDATE | System Date | SYDATUM | DATS | 8 | SYDATS | ||||
CONNTIME | System Time | SYUZEIT | TIMS | 6 | SYTIME | ||||
REQUEST_TIMEOUT | SDB Timeout | SADA_TOUT | CHAR | 10 | CHR10 | ||||
LOCKMODE | SDB Locking Mode | SADA_MODE | CHAR | 14 | CHAR14 | ||||
LOCKSTATE | SDB Lock Status | SADA_STATE | CHAR | 10 | CHAR10 | ||||
REQMODE | SDB Locking Mode | SADA_MODE | CHAR | 14 | CHAR14 | ||||
REQSTATE | SDB Lock Status | SADA_STATE | CHAR | 10 | CHAR10 | ||||
APPLPROC | SAP DB: Process ID | SADA_PID | CHAR | 10 | CHR10 | ||||
APPL_NODE | SDB Node Name | SADA_NODE | CHAR | 64 | CHR64 | ||||
OMSCOMROUTINENAME | Database Procedure Name: SAP DB (liveCache) | SDB_DBPROC | CHAR | 32 | CHAR32 | ||||
INFO | 3-Byte field | CHAR3 | CHAR | 3 | CHAR3 | ||||
STATEMENT | 30 Characters | CHAR30 | CHAR | 30 | CHAR30 | ||||
WP_ITYPE | Internal work process type | WPITYPE | INT1 | 3 | WPITYPE | ||||
WP_TYP | Type | WPTYP | CHAR | 3 | WPTYP | ||||
WP_PID | Process Identification | WPPID | CHAR | 8 | WPPID | ||||
WP_ISTATUS | Work process status | WPISTATUS | INT1 | 3 | WPISTATUS | ||||
WP_STATUS | Work process status | WPSTATUS | CHAR | 7 | WPSTATUS | ||||
WP_IWAIT | Reason for wait | WPIWAITING | INT1 | 3 | WPIWAITING | ||||
WP_WAITING | Why Work Process is Waiting | WPWAITING | CHAR | 5 | WPWAITING | ||||
WP_SEM | Semaphore that the work process is waiting for | WPSEM | CHAR | 2 | WPSEM | ||||
WP_IRESTRT | Restart After Error | WPIRESTART | INT1 | 3 | WPIRESTART | ||||
WP_RESTART | Restart work process after dump? | WPRESTART | CHAR | 4 | WPRESTART | ||||
WP_DUMPS | Number of Dumps of the Work Process | WPDUMPS | CHAR | 2 | WPDUMPS | ||||
WP_CPU | CPU | WPCPU | CHAR | 8 | WPCPU | ||||
WP_ELTIME | Previous Runtime of Request (elapsed) | WPELZEIT | CHAR | 6 | WPELZEIT | ||||
WP_MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
WP_BNAME | User Currently Served | WPBNAME | CHAR | 12 | UBNAME | ||||
WP_REPORT | Report now running | WPREPORT | CHAR | 40 | WPREPORT | ||||
WP_IACTION | Current activity of the work process | WPIACTION | INT1 | 3 | INT1 | ||||
WP_ACTION | Current Activity of the Work Process | WPACTION | CHAR | 25 | WPACTION | ||||
WP_TABLE | DB table last accessed by the work process | WPTABLE | CHAR | 30 | CHAR30 | ||||
WP_SERVER | Server Name | MSNAME | CHAR | 20 | MSNAME | ||||
WP_WAITINF | Additional information about the reason for waiting | WPWAITINF | CHAR | 40 | WPWAITINF | ||||
WP_WAITTIM | Time when waiting started | WPWAITTIME | CHAR | 8 | UDTIME | ||||
WP_SEMSTAT | Internal work process type | WPITYPE | INT1 | 3 | WPITYPE | ||||
WP_INDEX | Work Process Number | WPINDEX | INT4 | 10 | WPINDEX | ||||
STUFE | Natural Number | INT4 | INT4 | 10 | INT4 |
Key field | Non-key field |
How do I retrieve data from SAP structure SDB_THREADS_TASKS using ABAP code?
As SDB_THREADS_TASKS 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 SDB_THREADS_TASKS as there is no data to select.How to access SAP table SDB_THREADS_TASKS
Within an ECC or HANA version of SAP you can also view further information about SDB_THREADS_TASKS and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects