Calling the Editor from Within Applications
Use
To edit texts in your application, you can call up the SAPscript Editor either fullscreen or inline.
Features
Fullscreen Editor
To call the fullscreen editor, use function module EDIT_TEXT. Make sure to pass the appropriate text format in the text header (TDTEXTTYPE).
Inline Editor
If you want to edit or display only the first few lines of a text, you can use the inline editor. With the inline editor, you can edit several text parts on one screen. For more information, see Displaying Text Lines in Application Screens.
As inline editor, you can use an editor based on screen-processing techniques or on the controls technology.
Screen-Processing Techniques
The screen-processing techniques offer a SAPscript Editor with formattings. To call this editor, use function module EDIT_TEXT_INLINE.
Compared with the fullscreen editor, the screen-processing techniques have the following restrictions:
-
The editor does not automatically unite words that are split up at the end of the line.
-
The editing functions available in the fullscreen editor are not supported. You can only use the generally available elementary editing functions for screen fields.
-
Scrolling in the text is not possible.
-
Only the beginning of the text line is visible. If the text lines are wider than the screen fields, you can process that part of the line that is not displayed only in the fullscreen editor.
-
The changes to the text lines are written immediately to the original line table of the text ( Save function of the editor applies automatically). Thus, you can no longer reconstruct the original state of the text unless you stop all changes made in the transaction from being updated.
Control Technology
The controls technology offers a note editor without formattings and without SAPscript support (such as symbols and commands); that is, only pure ASCII text is displayed.
To call this editor, use SAP TextEdit.
For general information on controls see BC - Controls Tutorial and SAP Control Framework.