SWOTRA SAP (Runtime Structure Attributes) Structure details
Description: Runtime Structure Attributes
Structure field list including key, data, relationships and ABAP select examples
SWOTRA 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 "Runtime Structure Attributes" 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_SWOTRA TYPE SWOTRA.
The SWOTRA table consists of various fields, each holding specific information or linking keys about Runtime Structure Attributes data available in SAP. These include VERBTYPE (Verb type (key, attr., method)), DESCRIPT (Name), OBJTYPE (Object Type), PROGNAME (Implementation 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: Not classified
SAP SWOTRA 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 |
ATTRIBUTE | Attributes | SWO_ATTRIB | CHAR | 32 | SWC_ELEM | ||||
VERBTYPE | Verb type (key, attr., method) | SWO_VERBTP | CHAR | 1 | SWO_VERBTP | ||||
DESCRIPT | Name | SWC_DESCR | CHAR | 20 | TEXT20 | ||||
OBJTYPE | Object Type | SWO_OBJTYP | CHAR | 10 | TOJTB | OJ_NAME | OBJ | ||
PROGNAME | Implementation program | SWO_PROGR | CHAR | 40 | TRDIR | PROGNAME | |||
FORMNAME | Name of the subroutine | SWO_FORM | CHAR | 42 | CHAR42 | ||||
DBFIELD | Database field name | SWC_FLDNAM | CHAR | 61 | CHAR61 | ||||
EVENT | Attribute with change event | SWC_CHEVNT | CHAR | 1 | SWC_BOOL | ||||
ISINTERF | Interface object type | SWO_ISIF | CHAR | 1 | SWC_BOOL | ||||
ISTAT | Object status | SWO_ISTAT | CHAR | 5 | CHAR5 | ||||
REFSTRUCT | Reference table | SWC_REFSTR | CHAR | 30 | Assigned to domain | AS4TAB | |||
REFFIELD | Reference field | SWC_REFFLD | CHAR | 30 | Assigned to domain | FDNAME | |||
REFOBJTYPE | Reference obj. type | SWO_REFOBJ | CHAR | 10 | TOJTB | OJ_NAME | |||
INVATTRIB | Inverse attribute | SWO_INVATT | CHAR | 32 | SWC_EDITEL | ||||
EDITELEM | Element name in upper/lower case | SWC_EDITEL | CHAR | 32 | SWC_EDITEL | ||||
EDITORDER | Editing sequence | SWC_EDITOR | NUMC | 4 | NUMC4 | ||||
REFTYPE | Dictionary | SWC_REFTYP | CHAR | 1 | SWC_REFTYP | ||||
TABELEM | Multiline element | SWC_TABELM | CHAR | 1 | SWC_BOOL | ||||
MCODE | Search Help (Formerly Matchcode) | SWC_MCODE | CHAR | 30 | Assigned to domain | SHLPNAME | |||
OBLIG | Mandatory element | SWC_OBLIG | CHAR | 1 | SWC_BOOL | ||||
ATTRCLASS | Attribute class | SWO_ATTCLS | CHAR | 1 | SWO_ATTCLS | ||||
ATTRTYPE | Attribute type | SWO_ATTYPE | CHAR | 1 | SWO_ATTYPE | ||||
OFFSET | Offset in key | SWO_INTOFS | NUMC | 2 | NUMC02 | ||||
INTLENGTH | Internal field length | SWO_INTLEN | NUMC | 6 | NUMC06 | ||||
INTATYPE | ABAP elementary data type | SWO_FLDTYP | CHAR | 1 | INTTYPE | ||||
OUTLENGTH | Output length | SWO_OUTLNG | NUMC | 6 | NUMC06 | ||||
LOWERCASE | Lowercase letters allowed/not allowed | LOWERCASE | CHAR | 1 | AS4FLAG | ||||
CONVEXIT | Conversion Routine | CONVEXIT | CHAR | 5 | CONVEXIT | ||||
MEMORYID | Set/Get parameter ID | MEMORYID | CHAR | 20 | TPARA | MEMORYID | |||
CREA_REL | Release at Creation | SWO_CREARE | CHAR | 4 | CHAR4 | ||||
ELEMTYPE | Element type | SWC_ELEMTP | CHAR | 1 | SWC_ELEMTP | ||||
SHORTTEXT | Description | SWC_SHTEXT | CHAR | 80 | TEXT80 | ||||
GUISELECT | Relevant for user interface | SWO_GUISEL | CHAR | 1 | SWC_BOOL | ||||
CLASSVERB | Instance-independent | SWO_CLSVRB | CHAR | 1 | SWC_BOOL | ||||
MODELONLY | Release status verb | SWO_VMODEL | CHAR | 1 | SWO_FLGMOD | ||||
ISAPI | Method is R/3 interface function | SWO_ISAPI | CHAR | 1 | SWC_BOOL | ||||
OBSOLETE | Release in which object type was set as obsolete | SWO_OBSOL | CHAR | 4 | CHAR4 | ||||
FACTORY | Flag: Factory method | SWO_FCTORY | CHAR | 1 | CHAR1_X | ||||
DDLENGTH | Length (No. of Characters) | DDLENG | NUMC | 6 | DDLENG |
Key field | Non-key field |
How do I retrieve data from SAP structure SWOTRA using ABAP code?
As SWOTRA 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 SWOTRA as there is no data to select.How to access SAP table SWOTRA
Within an ECC or HANA version of SAP you can also view further information about SWOTRA 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