1. ... TITLE text
2. ... DISPLAY-MODE
3. ... BACKUP INTO itab1
Displays the internal table itab in an editor similiar to the ABAP Editor. You can then use normal editor functions to make changes.
When you save (with F11) or leave
(with F3), any changes are
SY-SUBRC = 0:
Changes were made during the session. These have been saved.
SY-SUBRC = 2:
No changes were made during the session. The table was saved anyway.
Displays the specified text string (up to 50 characters) in the editor header line.
Calls the editor in display mode. You can neither make changes here nor switch to change mode.
The table is saved in its original state in table itab1. You can then compare itab with itab1 to determine the changes that were made.
Define and fill the internal table T. Then, use EDITOR-CALL to present it to the user for modification. Finally, output the table.
DATA: BEGIN OF T OCCURS 200, TEXT1(60),TEXT2(12), END OF T. 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. T-TEXT1 = 'Text 4'. T-TEXT2 = 'D'. APPEND T. EDITOR-CALL FOR T TITLE 'Editor for internal tables'. LOOP AT T. WRITE: / T-TEXT1, T-TEXT2. ENDLOOP.
EDITOR-CALL FOR REPORT