SWOTRA SAP (Runtime Structure Attributes) Structure details

Dictionary Type: Structure
Description: Runtime Structure Attributes




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




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
ATTRIBUTEAttributes SWO_ATTRIBCHAR32SWC_ELEM
VERBTYPEVerb type (key, attr., method) SWO_VERBTPCHAR1SWO_VERBTP
DESCRIPTName SWC_DESCRCHAR20TEXT20
OBJTYPEObject Type SWO_OBJTYPCHAR10TOJTBOJ_NAMEOBJ
PROGNAMEImplementation program SWO_PROGRCHAR40TRDIRPROGNAME
FORMNAMEName of the subroutine SWO_FORMCHAR42CHAR42
DBFIELDDatabase field name SWC_FLDNAMCHAR61CHAR61
EVENTAttribute with change event SWC_CHEVNTCHAR1SWC_BOOL
ISINTERFInterface object type SWO_ISIFCHAR1SWC_BOOL
ISTATObject status SWO_ISTATCHAR5CHAR5
REFSTRUCTReference table SWC_REFSTRCHAR30Assigned to domainAS4TAB
REFFIELDReference field SWC_REFFLDCHAR30Assigned to domainFDNAME
REFOBJTYPEReference obj. type SWO_REFOBJCHAR10TOJTBOJ_NAME
INVATTRIBInverse attribute SWO_INVATTCHAR32SWC_EDITEL
EDITELEMElement name in upper/lower case SWC_EDITELCHAR32SWC_EDITEL
EDITORDEREditing sequence SWC_EDITORNUMC4NUMC4
REFTYPEDictionary SWC_REFTYPCHAR1SWC_REFTYP
TABELEMMultiline element SWC_TABELMCHAR1SWC_BOOL
MCODESearch Help (Formerly Matchcode) SWC_MCODECHAR30Assigned to domainSHLPNAME
OBLIGMandatory element SWC_OBLIGCHAR1SWC_BOOL
ATTRCLASSAttribute class SWO_ATTCLSCHAR1SWO_ATTCLS
ATTRTYPEAttribute type SWO_ATTYPECHAR1SWO_ATTYPE
OFFSETOffset in key SWO_INTOFSNUMC2NUMC02
INTLENGTHInternal field length SWO_INTLENNUMC6NUMC06
INTATYPEABAP elementary data type SWO_FLDTYPCHAR1INTTYPE
OUTLENGTHOutput length SWO_OUTLNGNUMC6NUMC06
LOWERCASELowercase letters allowed/not allowed LOWERCASECHAR1AS4FLAG
CONVEXITConversion Routine CONVEXITCHAR5CONVEXIT
MEMORYIDSet/Get parameter ID MEMORYIDCHAR20TPARAMEMORYID
CREA_RELRelease at Creation SWO_CREARECHAR4CHAR4
ELEMTYPEElement type SWC_ELEMTPCHAR1SWC_ELEMTP
SHORTTEXTDescription SWC_SHTEXTCHAR80TEXT80
GUISELECTRelevant for user interface SWO_GUISELCHAR1SWC_BOOL
CLASSVERBInstance-independent SWO_CLSVRBCHAR1SWC_BOOL
MODELONLYRelease status verb SWO_VMODELCHAR1SWO_FLGMOD
ISAPIMethod is R/3 interface function SWO_ISAPICHAR1SWC_BOOL
OBSOLETERelease in which object type was set as obsolete SWO_OBSOLCHAR4CHAR4
FACTORYFlag: Factory method SWO_FCTORYCHAR1CHAR1_X
DDLENGTHLength (No. of Characters) DDLENGNUMC6DDLENG

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 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!