SAP EDITOR-CALL FOR ITAB ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID EDITOR-CALL
• EDITOR-CALL FOR itab ABAP Statement

EDITOR-CALL FOR itab
Short Reference

ABAP_SYNTAX_OBS
EDITOR-CALL FOR itab $[TITLE title$]
$[${DISPLAY-MODE$}$|${BACKUP INTO jtab$}$].

ABAP Addition
1 ... TITLE title
2 ... DISPLAY-MODE
3 ... BACKUP INTO jtab

What does it do?
This statement passes the content of the internal table itab to a text editor and starts this text editor. The internal table must be a standard table without secondary table keys with a character-like line type.
The text editor is based on a GUI control displayed in the current GUI window and has its own GUI status, part of which matches that of the ABAP Editor. The text editor has, depending its settings, a line width of 255 or 72 characters. This setting can be made in the GUI status and also applies to the ABAP Editor.
The content of the table lines is converted line by line in accordance with the conversion rules for elementary data types into a field of the type c with length 255 or 72 and passed to the text editor. If the text editor is exited using the function Save, the previous content of the table is deleted and the content of each line of the editor is appended to the internal table from top to bottom. If necessary, this process involves a conversion of the type c of length 255 or 72 to the line type of the internal table.
ABAP_SUBRC_GENERAL sy-subrcMeaning 0The text editor was exited using the Save function after the content was modified. 2The text editor was exited using the Save function and no content was modified. 4The text editor was not exited using the Save function.



Latest notes:

This statement is replaced by using the Control Framework. Here, the class CL_GUI_TEXTEDIT wraps the corresponding GUI control.
ABAP_HINT_END
• TITLE EDITOR-CALL FOR itab (obsolete)

ABAP Addition

What does it do?
A character-like data object title can be specified after the addition TITLE. The first 50 characters of title are displayed in the header of the text editor.
• DISPLAY-MODE EDITOR-CALL FOR itab (obsolete)

ABAP Addition

What does it do?
If the addition DISPLAY-MODE is specified, the text editor is started in display mode.



Latest notes:

The text editor is started in display mode but can be switched to change mode using a key combination.
ABAP_HINT_END
• BACKUP INTO EDITOR-CALL FOR itab (obsolete)

ABAP Addition

What does it do?
If the addition BACKUP INTO is specified, the content of the internal table itab is assigned to an internal table jtab before the text editor is called. jtab can have any table category. The line types must be compatible or convertible.



Example ABAP Coding

Calls a text editor for a table with text lines. The processing in the IF control structure is only executed if the content of the table was actually modified. sy-subrc = 0 does not necessarily indicate this.
ABEXA 00234
ABAP_EXAMPLE_END

Return to menu