SWT_LOG SAP (Workflow: Trace entry) Structure details

Dictionary Type: Structure
Description: Workflow: Trace entry




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




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

SWT_LOG 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 "Workflow: Trace entry" 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_LOG TYPE SWT_LOG.

The SWT_LOG table consists of various fields, each holding specific information or linking keys about Workflow: Trace entry data available in SAP. These include TTIMESTAMP (System Time), UNAME (User Name), TCODE (Transaction Code), REPID (ABAP Program: Current Main Program).. 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_LOG 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
TDATESTAMPSystem Date SYDATUMDATS8SYDATS
TTIMESTAMPSystem Time SYUZEITTIMS6SYTIME
UNAMEUser Name SYUNAMECHAR12SYCHAR12
TCODETransaction Code SYTCODECHAR20Assigned to domainTCODE
REPIDABAP Program: Current Main Program SYREPIDCHAR40Assigned to domainPROGRAMM
SEVERITYWeighting of Entry in Workflow Trace SWT_SEVERENUMC1SWT_SEVERE
CONTEXTContext ID for Workflow Trace SWT_CONTXTNUMC10SWT_CONTXT
OWNMODIDID of the calling workflow module SWT_OMODIDCHAR3SWT_MODID
THEIRMODIDID of the workflow module called SWT_TMODIDCHAR3SWT_MODID
TACTIONLogged Action in Workflow Trace SWT_ACT_DCHAR32SWT_ACTSWT_ACT
FUNCNAMEFunction name FUNCNAMECHAR30Assigned to domainFUNCNAMELIB
OBJTYPEObject Type OTYPECHAR2T778OOTYPEPOT
OBJIDExtended Object ID REALOCHAR45CHAR45
DATACNTWorkflow: Number of structures used in trace message SWT_DATCNTNUMC5NUM5

Key field Non-key field



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

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

How to access SAP table SWT_LOG

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