SWT_LOGTXT SAP (Text for technical trace) Structure details
Description: Text for technical trace
Structure field list including key, data, relationships and ABAP select examples
SWT_LOGTXT 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 "Text for technical trace" 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_SWT_LOGTXT TYPE SWT_LOGTXT.
The SWT_LOGTXT table consists of various fields, each holding specific information or linking keys about Text for technical trace data available in SAP. These include MANDT (Client), HANDLE (ID of Workflow Trace), HANDLETYPE (Technical Trace Variant), CREATED_BY (Creator Name).. 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 SWT_LOGTXT 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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
HANDLE | ID of Workflow Trace | SWT_HANDL_ | NUMC | 12 | SWT_HANDLE | ||||
HANDLETYPE | Technical Trace Variant | SWT_HNDTYP | CHAR | 1 | SWT_HNDTYP | ||||
CREATED_BY | Creator Name | SWT_CNAM | CHAR | 12 | SYCHAR12 | ||||
CREATED_ON | Date created | SO_DAT_CR | DATS | 8 | DATUM | ||||
CREATED_AT | Time created | SO_TIM_CR | TIMS | 6 | UZEIT | ||||
CHANGED_ON | Date of last change | LADATE | DATS | 8 | SYDATS | ||||
CHANGED_AT | Time of Last Change | SO_TIM_CH | TIMS | 6 | UZEIT | ||||
RETAIN_BY | User who kept entry | SWT_LNAM | CHAR | 12 | SYCHAR12 | ||||
WI_ID | Work item ID | SWW_WIID | NUMC | 12 | SWWWIHEAD | SWW_WIID | WID | ||
DESCRIPTIO | Description of Workflow Trace | SWT_TEXT | CHAR | 40 | SWT_TEXT | ||||
OBJECT | Extended Object ID | REALO | CHAR | 45 | CHAR45 | ||||
TDATESTAMP | System Date | SYDATUM | DATS | 8 | SYDATS | ||||
TTIMESTAMP | System Time | SYUZEIT | TIMS | 6 | SYTIME | ||||
UNAME | User Name | SYUNAME | CHAR | 12 | SYCHAR12 | ||||
TCODE | Transaction Code | SYTCODE | CHAR | 20 | Assigned to domain | TCODE | |||
REPID | ABAP Program: Current Main Program | SYREPID | CHAR | 40 | Assigned to domain | PROGRAMM | |||
SEVERITY | Weighting of Entry in Workflow Trace | SWT_SEVERE | NUMC | 1 | SWT_SEVERE | ||||
CONTEXT | Context ID for Workflow Trace | SWT_CONTXT | NUMC | 10 | SWT_CONTXT | ||||
OWNMODID | ID of the calling workflow module | SWT_OMODID | CHAR | 3 | SWT_MODID | ||||
THEIRMODID | ID of the workflow module called | SWT_TMODID | CHAR | 3 | SWT_MODID | ||||
TACTION | Logged Action in Workflow Trace | SWT_ACT_D | CHAR | 32 | SWT_ACT | SWT_ACT | |||
FUNCNAME | Function name | FUNCNAME | CHAR | 30 | Assigned to domain | FUNCNAME | LIB | ||
OBJTYPE | Object Type | OTYPE | CHAR | 2 | T778O | OTYPE | POT | ||
OBJID | Extended Object ID | REALO | CHAR | 45 | CHAR45 | ||||
DATACNT | Workflow: Number of structures used in trace message | SWT_DATCNT | NUMC | 5 | NUM5 | ||||
LOCKED | Indicator Denoting Retention of Workflow Trace | SWT_LOCKED | CHAR | 1 | CHAR1 | ||||
MARKED | Identification for selected lines | SWT_MARKED | CHAR | 1 | CHAR1 | ||||
MORE | Multiline element | SWC_TABELM | CHAR | 1 | SWC_BOOL | ||||
SHORTTEXT | Action short description | SWT_ACTDES | CHAR | 35 | CHAR35 |
Key field | Non-key field |
How do I retrieve data from SAP structure SWT_LOGTXT using ABAP code?
As SWT_LOGTXT 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 SWT_LOGTXT as there is no data to select.How to access SAP table SWT_LOGTXT
Within an ECC or HANA version of SAP you can also view further information about SWT_LOGTXT 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