SWOTTREE SAP (Object Tree Structure) Structure details
Description: Object Tree Structure
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 |
OBJTYPE | Object Type | SWO_OBJTYP | CHAR | 10 | Assigned to domain | OJ_NAME | OBJ | ||
OBJTYPECLS | Object Type Class | SWO_OTCLAS | CHAR | 2 | SWO_OTCLAS | ||||
EXPAND | Flag for expand | SWO_SUBTRE | CHAR | 1 | SWO_SUBTRE | ||||
MAINENTRY | Main entry | SWO_MENTRY | CHAR | 1 | SWC_BOOL | ||||
AREA | Area | SWO_AREA | CHAR | 10 | CHAR10 | ||||
AREACLASS | Object Type Class | SWO_OTCLAS | CHAR | 2 | SWO_OTCLAS | ||||
NODE | Node number in object tree | SWO_NODE | INT4 | 10 | SYST_LONG | ||||
NEXTNODE | Node number of next node | SWO_NXTNOD | INT4 | 10 | SYST_LONG | ||||
FIRSTNODE | Node number of first child | SWO_FSTNOD | INT4 | 10 | SYST_LONG | ||||
EDITELEM | Object name | SWC_OBJEDE | CHAR | 32 | SWC_EDITEL | ||||
KEYWORD | Keyword for object types | SWO_KEYWRD | CHAR | 20 | TEXT20 | ||||
SHORTTEXT | Description | OJ_NTEXT | CHAR | 80 | TEXT80 | ||||
PARENT | Supertype | SWO_PARENT | CHAR | 10 | Assigned to domain | OJ_NAME | |||
ACTIVE | Object type generated | SWO_ACTIVE | CHAR | 1 | SWC_BOOL | ||||
APPLIC | Application | SWO_APPLIC | CHAR | 1 | TAPLP | PAPPL | |||
UDMENTID | Data Model Name | UDDMODL | CHAR | 26 | Assigned to domain | UDDMODL | DMD | ||
CREA_REL | Release at Creation | SWO_CREARE | CHAR | 4 | CHAR4 | ||||
CCHILDREN | Number of direct children | SWO_CCHILD | NUMC | 4 | NUMC04 | ||||
OBJCLASS | Object classification | SWO_OBJCLS | NUMC | 2 | SWO_OBJCLS | ||||
CLASS_BO | Business Object | SWO_CLSBO | CHAR | 1 | SWC_BOOL | ||||
MODELONLY | Release status object type | SWO_FLGMOD | CHAR | 1 | SWO_FLGMOD | ||||
INVISIBLE | Visibility of an element in the tree | SWO_INVSBL | CHAR | 1 | SWC_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 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