EDITOR-CALL (ABAP Keyword) introduction & syntax details
EDITOR-CALL
EDITOR-CALL - call editor for internal tables
Basic form
EDITOR-CALL FOR
itab.
Additions
1. ... TITLE text
2. ...
DISPLAY-MODE
Effect
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
follows:
SY-SUBRC = 0 Changes saved before leaving
editor.
SY_SUBRC = 4 Changes not saved before leaving
editor.
Notes
The internal table can contain only type C
components.
The lines of the internal table can be up 72 characters
long.
Addition 1
... TITLE text
Effect
Displays the
specified text string (up to 30 characters) in the editor header
line.
Addition 2
... DISPLAY MODE
&ABAP_EFFETC& Calls the
editor in display mode. You can neither make changes here nor switch to change
mode.
Example
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
- call ABAP/4 program editor
Basic form
EDITOR-CALL FOR
REPORT prog.
Addition
... DISPLAY-MODE
Effect
Reads the
program prog from the library and places it in the ABAP/4 Editor.
When you
save (with F11 ), the program is written back to the
library.
Addition
... DISPLAY-MODE
Effect
Calls the editor
in display mode. Changes are not allowed here, but you can switch to change mode
from within the editor.
Example
Call the ABAP Editor for the report
SAPTEST in display mode:
EDITOR-CALL FOR REPORT 'SAPTEST'
DISPLAY-MODE.
Related 10 ABAP Syntax Tutorials
Most readed SAP Tutorials
- WRITE - Output to a list ( SAP ABAP Keyword)
WRITE ( Output to a list ) is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - List of SAP HR TABLES and Infotypes tables
Detailed full list of tables and infotypes used in SAP HR module. - List of SAP MM Transaction codes
This documentation covers the details of SAP MM Transaction codes - SELECT-OPTIONS ( SAP ABAP Keyword)
SELECT-OPTIONS is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details. - FI Accounts Receivable and Accounts Payable | SAP FI PDF manual
The following topics are an introduction to the Accounts Receivable and Accounts Payable application components. - SAP MM Process Flow
The typical procurement cycle for a service or material consists of the following phases: - SELECT clause ( SAP ABAP Keyword)
SELECT clause is a keyword used in SAP ABAP programming.This tutorial covers its introduction & syntax details.
Latest Added SAP documents
- 9KE9 Transaction code
Details about SAP transaction code 9KE9 - 9KE8 Transaction code
Details about SAP transaction code 9KE8 - 9KE7 Transaction code
Details about SAP transaction code 9KE7 - 9KE6 Transaction code
Details about SAP transaction code 9KE6 - 9KE5 Transaction code
Details about SAP transaction code 9KE5 - 9KE4 Transaction code
Details about SAP transaction code 9KE4 - 9KE3 Transaction code
Details about SAP transaction code 9KE3 - 9KE2 Transaction code
Details about SAP transaction code 9KE2 - 9KE1 Transaction code
Details about SAP transaction code 9KE1 - 9KE0 Transaction code
Details about SAP transaction code 9KE0