SWOTTREE SAP (Object Tree Structure) Structure details

Dictionary Type: Structure
Description: Object Tree Structure




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




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

SWOTTREE 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 "Object Tree Structure" 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_SWOTTREE TYPE SWOTTREE.

The SWOTTREE table consists of various fields, each holding specific information or linking keys about Object Tree Structure data available in SAP. These include OBJTYPECLS (Object Type Class), EXPAND (Flag for expand), MAINENTRY (Main entry), AREA (Area).. 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 SWOTTREE 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
OBJTYPEObject Type SWO_OBJTYPCHAR10Assigned to domainOJ_NAMEOBJ
OBJTYPECLSObject Type Class SWO_OTCLASCHAR2SWO_OTCLAS
EXPANDFlag for expand SWO_SUBTRECHAR1SWO_SUBTRE
MAINENTRYMain entry SWO_MENTRYCHAR1SWC_BOOL
AREAArea SWO_AREACHAR10CHAR10
AREACLASSObject Type Class SWO_OTCLASCHAR2SWO_OTCLAS
NODENode number in object tree SWO_NODEINT410SYST_LONG
NEXTNODENode number of next node SWO_NXTNODINT410SYST_LONG
FIRSTNODENode number of first child SWO_FSTNODINT410SYST_LONG
EDITELEMObject name SWC_OBJEDECHAR32SWC_EDITEL
KEYWORDKeyword for object types SWO_KEYWRDCHAR20TEXT20
SHORTTEXTDescription OJ_NTEXTCHAR80TEXT80
PARENTSupertype SWO_PARENTCHAR10Assigned to domainOJ_NAME
ACTIVEObject type generated SWO_ACTIVECHAR1SWC_BOOL
APPLICApplication SWO_APPLICCHAR1TAPLPPAPPL
UDMENTIDData Model Name UDDMODLCHAR26Assigned to domainUDDMODLDMD
CREA_RELRelease at Creation SWO_CREARECHAR4CHAR4
CCHILDRENNumber of direct children SWO_CCHILDNUMC4NUMC04
OBJCLASSObject classification SWO_OBJCLSNUMC2SWO_OBJCLS
CLASS_BOBusiness Object SWO_CLSBOCHAR1SWC_BOOL
MODELONLYRelease status object type SWO_FLGMODCHAR1SWO_FLGMOD
INVISIBLEVisibility of an element in the tree SWO_INVSBLCHAR1SWC_BOOL

Key field Non-key field



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

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

How to access SAP table SWOTTREE

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