SWCEDITOR SAP (Editor Control Structure) Structure details
Description: Editor Control Structure
Structure field list including key, data, relationships and ABAP select examples
SWCEDITOR 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 "Editor Control 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_SWCEDITOR TYPE SWCEDITOR.
The SWCEDITOR table consists of various fields, each holding specific information or linking keys about Editor Control Structure data available in SAP. These include CONTID (Editor container ID), OBJSTACK (Stack counter for object types), ELEMENTLEN (Length of an element), ELEMENT (Element).. 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 SWCEDITOR 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 |
CONTTYPE | Container Type | SWC_CONTTP | CHAR | 1 | CHAR1 | ||||
CONTID | Editor container ID | SWC_CONTID | CHAR | 30 | CHAR30 | ||||
OBJSTACK | Stack counter for object types | SWC_CONTST | NUMC | 4 | NUMC4 | ||||
ELEMENTLEN | Length of an element | SWC_CONTLN | INT4 | 10 | SYST_LONG | ||||
ELEMENT | Element | SWC_ELEM | CHAR | 32 | SWC_ELEM | ||||
SUBSCREEN | Subscreen | SWC_SUBSCR | NUMC | 4 | NUMC4 | ||||
FUNCTION | Function on a container | SWC_FUNCT | CHAR | 20 | SWC_FUNCT | ||||
SELECT | Index of selected element | SWC_SELECT | INT4 | 10 | SYST_LONG | ||||
LINES | Number of elements in CONTEDIT | SWC_LINES | INT4 | 10 | SYST_LONG | ||||
CURSOR | Top Displayed List Line | SYSTARO | INT4 | 10 | SYST_LONG | ||||
MODE | Editor mode | SWC_EDMODE | CHAR | 1 | SWC_EDMODE | ||||
MARK1 | First line selected | SWC_MARK1 | INT4 | 10 | SYST_LONG | ||||
MARK2 | Last line selected | SWC_MARK2 | INT4 | 10 | SYST_LONG | ||||
MARKCOLUMN | Selected editor column | SWC_MARKCL | INT4 | 10 | SYST_LONG | ||||
BUFFTYPES | Import buffer from container types | SWC_BUFFTP | CHAR | 10 | CHAR10 | ||||
BUFFER | Editor buffer number of lines | SWC_BUFFER | INT4 | 10 | SYST_LONG | ||||
SORT | Editor was re-sorted | SWC_SORT | CHAR | 1 | SWC_BOOL | ||||
FILTER | Filter is set | SWC_FILTER | CHAR | 1 | SWC_BOOL | ||||
FILTVALUE | Filter | SWC_FILVAL | CHAR | 30 | CHAR30 | ||||
FILTBOX | Filter checkbox | SWC_FILBOX | CHAR | 1 | SWC_BOOL | ||||
FILTEXACT | Filter exactly | SWC_FILEXA | CHAR | 1 | SWC_BOOL | ||||
FILTGENER | Filter generically | SWC_FILGEN | CHAR | 1 | SWC_BOOL | ||||
FILTCS | Filter in case character string occurs | SWC_FILCS | CHAR | 1 | SWC_BOOL | ||||
INSERTDDIC | Add DDIC fields to screen | SWC_INDDIC | NUMC | 4 | NUMC4 | ||||
HELP | F1 or F4 help can be given | SWC_HELP | CHAR | 1 | SWC_BOOL | ||||
HELPTAB | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
DDICTAB | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
HELPFIELD | Field Name | FIELDNAME | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
CURSORFLD | Screen field under cursor | SWC_CUFILD | CHAR | 30 | CHAR30 | ||||
CURSORCOL | First List Column Displayed | SYSTACO | INT4 | 10 | SYST_LONG | ||||
CURSOROFFS | Horizontal Cursor Position | SYCUCOL | INT4 | 10 | SYST_SHORT | ||||
CURSORLINE | Vertical Cursor Position | SYCUROW | INT4 | 10 | SYST_SHORT | ||||
STATUS | Current status of editor GUI | SWC_STATUS | CHAR | 20 | GUI_STATUS | ||||
MAXVIEW | Number of views | SWC_MAXVIW | NUMC | 1 | NUMC01 | ||||
CONTVIEW | First entry in CONTVIEW | SWC_STVIEW | INT4 | 10 | SYST_LONG | ||||
VIEW | Current view | SWC_VIEW | NUMC | 1 | NUMC01 | ||||
LINESIZE | Current line width in list | SWC_LINSIZ | INT4 | 10 | SYST_LONG | ||||
TITLE | Current GUI title in editor | SWC_TITLE | CHAR | 3 | CHAR3 | ||||
TITLENAME1 | Name in container editor title | SWC_TITNAM | CHAR | 20 | TEXT20 | ||||
TITLENAME2 | Name in container editor title | SWC_TITNAM | CHAR | 20 | TEXT20 | ||||
ELTABNAME | Table name for element | SWC_ELTNAM | CHAR | 30 | Assigned to domain | AS4TAB | |||
ELFLDNAME | Field name for element | SWC_ELFNAM | CHAR | 30 | Assigned to domain | FDNAME | |||
ELKEYWORD | Key word for element | SWC_ELKWRD | CHAR | 20 | TEXT20 | ||||
DYNPDETAIL | Detail screen | SWC_DYNPDT | NUMC | 4 | NUMC04 | ||||
PAICALL | PAI callback | SWC_CALLBK | CHAR | 30 | CHAR30 | ||||
PBOCALL | Editor callback PBO | SWC_PBOCAL | CHAR | 30 | CHAR30 | ||||
TWICECALL | Callback for insert, delete element | SWC_INSCAL | CHAR | 30 | CHAR30 | ||||
CHANGED | Definition Was Changed | SWC_CHANGE | CHAR | 1 | SWC_BOOL | ||||
DISPLAY | Editor in display mode | SWC_DISPLY | CHAR | 1 | SWC_BOOL | ||||
ELEMTYPE | Element type | SWC_ELEMTP | CHAR | 1 | SWC_ELEMTP | ||||
ATTRTYPE | Attribute type | SWO_ATTYPE | CHAR | 1 | SWO_ATTYPE | ||||
REFTYPE | Dictionary | SWC_REFTYP | CHAR | 1 | SWC_REFTYP | ||||
FUNCEXIT | Exit function from container editor | SWC_FUNCEX | CHAR | 4 | CHAR4 | ||||
ERRORS | Number of errors | SWC_ERRORS | INT4 | 10 | SYST_LONG | ||||
OBJSTATUS | Reference field for object status | SWO_OBJST | CHAR | 1 | SWC_BOOL | ||||
NOEDIT | No editing due to inheritance or needs to be overridden | SWC_NOEDIT | CHAR | 1 | SWC_INHERI | ||||
OBJTYPE | Object Type | SWO_OBJTYP | CHAR | 10 | Assigned to domain | OJ_NAME | OBJ | ||
OBJTYPECLS | Object Type Class | SWO_OTCLAS | CHAR | 2 | SWO_OTCLAS | ||||
RELCONTROL | Release control | SWC_RELCNT | CHAR | 1 | SWC_BOOL | ||||
OVERRIDDEN | Verb is overdefined | SWC_OVERRD | CHAR | 1 | SWC_BOOL |
Key field | Non-key field |
How do I retrieve data from SAP structure SWCEDITOR using ABAP code?
As SWCEDITOR 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 SWCEDITOR as there is no data to select.How to access SAP table SWCEDITOR
Within an ECC or HANA version of SAP you can also view further information about SWCEDITOR 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