
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:
Controls 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.
In the development class STXD you can find the sample program SAPSCRIPT_DEMO_NOTE_EDITOR, which demonstrates how to use TextEdit as inline editor. To present the SAPscript texts two conversion modules are used. During the conversion of the SAPscript texts, the formatting information, such as paragraph or character format, is lost.
For general information on controls see
BC - Controls Tutorial and
SAP Control Framework.