ABAPEDITOR-CALL_FOR_ITAB - EDITOR-CALL FOR ITAB
General Data in Customer Master RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
EDITOR-CALL FOR itab
Obsolete Syntax
EDITOR-CALL FOR itab [TITLE title]
[{DISPLAY-MODE}|{BACKUP INTO jtab}].
Additions
1. ... TITLE title
2. ... DISPLAY-MODE
3. ... BACKUP INTO jtab
Effect
This statement transfers the content of internal table itab to a text editor and calls this text editor. The internal table must be astandard table withoutsecondary table keys with a character-like row type.
The text editor is based on a GUI control displayed in the current window and has its own GUI statusthat partly corresponds to that of the ABAP Editor. Depending on the settings, the text editor has aline width of 255 or 72 characters. This setting can be configured in the GUI status and applies tothe ABAP Editor at the same time. Equally, if this setting is configured for the ABAP Editor, it also applies to the text editor.
,,The content of the table rows is converted according to theconversionrules for elementary data types row-by-row into a field of type c that is 255 or 72 characterslong and transferred to the text editor. If you exit the text editor by choosing Save,the previous content of the table is deleted and the content of each row of the editor is attached (topto bottom) to the internal table. During this process, conversion takes place (if necessary) from type c with a length 255 or 72 characters to the row type of the internal table.
Return Value
| sy-subrc | Meaning |
| 0 | You exited the text editor by choosing Save after the content was changed. |
| 2 | You exited the text editor by choosing Save without changing the content. |
| 4 | You did not exit the text editor by choosing Save. |
Note
This statement is replaced through the use of theControl Framework in which theCL_GUI_TEXTEDIT class wraps the correspondingGUI control.
Addition 1
... TITLE title
Effect
You can specify character-like data object title after the TITLE addition. The first 50 characters of title are displayed in the title line of the text editor.
Addition 2
... DISPLAY-MODE
Effect
If you specify the DISPLAY-MODE addition, the text editor is called in display mode.
Addition 3
... BACKUP INTO jtab
Effect
If you specify the BACKUP INTO addition, the content of internal table itab is assigned to internal table jtab before the text editor is called. You can choose any table type for jtab. The row types must becompatible orconvertible.
Example
Calling a text editor for a text table. Processing in the IF control structure is carried outonly if the content of the table was actually changed. If sy-subrc is 0, this does not necessarily mean that the content was changed.
TYPES text TYPE c LENGTH 255.
DATA: text_tab TYPE TABLE OF text,
back_tab LIKE text_tab.
EDITOR-CALL FOR text_tab BACKUP INTO back_tab.
IF sy-subrc = 0 AND
text_tab <> back_tab.
...
ENDIF.
ABAP Short Reference CPI1466 during Backup
This documentation is copyright by SAP AG.
Length: 5590 Date: 20120522 Time: 052135 triton ( 177 ms )






