EDITOR-CALL (ABAP Keyword) introduction & syntax details
EDITOR-CALL – call editor for internal tables
1. … TITLE text
Displays the internal table itab in the ABAP/4
Editor. You can then use normal editor functions (e.g. insert, delete, search,
replace) to make changes. When you save (with F11 ) or leave (with F3 ), any
changes are adopted.
The return code value is set as
SY-SUBRC = 0 Changes saved before leaving
SY_SUBRC = 4 Changes not saved before leaving
The internal table can contain only type C
The lines of the internal table can be up 72 characters
… TITLE text
specified text string (up to 30 characters) in the editor header
… DISPLAY MODE
&ABAP_EFFETC& Calls the
editor in display mode. You can neither make changes here nor switch to change
Define and fill the internal table T . Then, use
EDITOR-CALL to present it to the user for modification. Finally, output the
DATA: BEGIN OF T OCCURS 200,
T-TEXT1 = ‘Text 1’. T-TEXT2 = ‘A’. APPEND T.
T-TEXT1 = ‘Text 2’.
T-TEXT2 = ‘B’. APPEND T.
T-TEXT1 = ‘Text 3’. T-TEXT2 = ‘C’. APPEND
T-TEXT1 = ‘Text 4’. T-TEXT2 = ‘D’. APPEND T.
EDITOR-CALL FOR T
TITLE ‘Editor for internal tables’.
LOOP AT T.
WRITE: / T-TEXT1,
– call ABAP/4 program editor
program prog from the library and places it in the ABAP/4 Editor.
save (with F11 ), the program is written back to the
Calls the editor
in display mode. Changes are not allowed here, but you can switch to change mode
from within the editor.
Call the ABAP Editor for the report
SAPTEST in display mode:
EDITOR-CALL FOR REPORT ‘SAPTEST’