Skip to Content
0
Sep 06, 2022 at 08:58 AM

Display/Edit text from se61 in a custom container within a screen

286 Views Last edit Sep 06, 2022 at 11:21 AM 5 rev

Hello,
I want to create a screen with a container to edit/display texts from se61, with the format options like this:

imagen.png

I know there classes to display texts like this:
cl_gui_textedit

imagen.png

And demo programs like:
SAPTEXTEDIT_DEMO_1
SAPTEXTEDIT_DEMO_3
SAPSCRIPT_DEMO_NOTE_EDITOR

But none of these programs show the format and paragrafh options like se61.

In the end in SE61 is calling FM EDIT_TEXT, where you hace a parameter DISPLAY to edit or only display the text.
But this FM is always to display the text in a full screen, not within a container, from the documentation of the FM:


"This function module is used to call the fullscreen editor."

I've tried to debug a bit and within this FM is calling others like RTF_EDITOR_CREATE_FRAME , RTF_EDITOR_CREATE_COMBOBOX . etc.

But couldnt see any class to use it in an easy way, a lot of code to copy/mantain also from the user_command.

Do you know if is there any easy way to call a text editor with this format options within a container?

Thanks in advance.

Attachments

imagen.png (76.3 kB)
imagen.png (29.1 kB)