EDITOR-CALL : ABAP keyword a day
EDITOR-CALL
Call editor for internal tables
- EDITOR-CALL FOR itab.
Call editor for ABAP/4 programs
- EDITOR-CALL FOR REPORT prog.
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.
Related EDITOR-CALL FOR REPORT
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 EDITOR-CALL FOR itab
If you like this post, you may as well like these too:
- ABAP Editor Wow, You will be amazed as to how feature rich the new ABAP editor is. This ABAP code editor is an ActiveX control which has been used to replace the...
- Call an ABAP program from a BSP Call an ABAP program from a BSP is somehow impossible due to memory context handling for a web transaction like a BSP. If you try, it would lead to an...
- ABAP Programs:External perform call This is the simple code which will show you as to how you can call the external routine from the current program. Program 1 REPORT ZSOURCE2307. * List of the...
- ABAP Program: Dynamic external perform (call back form) Here the two programs which are calling dynamically. REPORT ZSOURCE2309. PERFORM EXTFORM IN PROGRAM ZSOURCE2310 USING 'CALL_BACK_FORM' SY-CPROG. FORM CALL_BACK_FORM. WRITE / 'I am the call back form in ZSOURCE2309.'....
- ABAP Keyword a day : ADD ADD Variants: 1. ADD n TO m. 2. ADD n1 THEN n2 UNTIL nz GIVING m. [...]...
















Leave a Reply