SWOTENV SAP (Environment Variables of Runtime System) Structure details

Dictionary Type: Structure
Description: Environment Variables of Runtime System




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




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

SWOTENV 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 "Environment Variables of Runtime System" 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_SWOTENV TYPE SWOTENV.

The SWOTENV table consists of various fields, each holding specific information or linking keys about Environment Variables of Runtime System data available in SAP. These include DEBUG (Object debugger activated), RETDIALOG (Error dialog in exceptional cases), RETTEXT (Text return in exceptional cases), TRACE (Trace ON).. 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: Can be enhanced (character-type)


SAP SWOTENV 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
DB_STATUSDebug & trace status SWO_DB_STACHAR1SWO_DB_STA
DEBUGObject debugger activated SWO_DEBUGCHAR1SWC_BOOL
RETDIALOGError dialog in exceptional cases SWO_RETDIACHAR1SWC_BOOL
RETTEXTText return in exceptional cases SWO_RETTXTCHAR1SWC_BOOL
TRACETrace ON SWO_TRACECHAR1SWC_BOOL
DB_CREATEDebug & trace for SWO_CREATE SWO_DB_CRECHAR1SWC_BOOL
DB_FREEDebug & trace for SWO_FREE SWO_DB_FRECHAR1SWC_BOOL
DB_CALLDebug & Trace for Call Method SWO_DB_CALCHAR1SWC_BOOL
DB_GETDebug & trace for Get Property SWO_DB_GETCHAR1SWC_BOOL
DB_SETDebug & trace for Set Property SWO_DB_SETCHAR1SWC_BOOL
DB_VERBObject type component SWO_VERBCHAR32SWC_ELEM
DB_OBJTYPEObject Type SWO_OBJTYPCHAR10TOJTBOJ_NAMEOBJ
EDITMODERuntime system in editor mode SWO_EDTMODCHAR1SWC_BOOL
NO_GUINo GUI installed (no frontend delegation) SWO_NO_GUICHAR1SWC_BOOL
CMPR_CONTCompression Mode for Container On / Off SWO_CMPRCHAR1SWC_BOOL
LOCAL_RTBOR runtime with/without remote objects SWO_LOCALCHAR1SWC_BOOL
CHAIN_DELEGMultiple Delegation Activated SWO_DELEGCHAR1SWC_BOOL

Key field Non-key field



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

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

How to access SAP table SWOTENV

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