EDITOR-CALL FOR REPORT prog.
Reads the program prog from the library and places it
in the ABAP Editor.
When you save (with F11), the program is written back to the library.
Before EDITOR-CALL_FOR_REPORT is called, you must carry
out appropriate authorization and system checks. Please refer to the Security note.
... DISPLAY-MODE
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' DISPLAY-MODE.