‎2008 Dec 08 1:27 PM
I am displaying a network graphics screen. Now in 1 of the user-command i want to display a text editor in a popup. I used CALL FUNCTION 'TERM_CONTROL_EDIT' . But when the editor is coming it is actually not a editor just a pop-up window, and i cannot write anything in that.I dont understand where the problem is.Cant i call a text editor as a popup in default screen 1000 (used by sap to generate network graphics)
‎2008 Dec 08 1:30 PM
CALL FUNCTION 'TERM_CONTROL_EDIT'
EXPORTING
TITEL = P_title
LANGU = 'E'
TABLES
TEXTLINES = int_text
EXCEPTIONS
USER_CANCELLED = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Edit a table of text with a very nice text editor. Just call TERM_CONTROL_EDIT and supply with the function with a table of text. Table entries are modified in the editor after clicking "ok".
‎2008 Dec 08 1:32 PM
I am doing the same thing but still the popup which is coming up is empty...no text editor where i could wirte
‎2008 Dec 08 1:39 PM
‎2008 Dec 08 1:43 PM
‎2008 Dec 08 1:44 PM
Hi Have used the Class
use this it will help to you.
g_text_container TYPE REF TO cl_gui_custom_container,
g_text_editor TYPE REF TO cl_gui_textedit,
CREATE OBJECT g_text_container
EXPORTING
container_name = 'EMAIL_BOX'.
CREATE OBJECT g_text_editor
EXPORTING
parent = g_text_container
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
CALL METHOD g_text_editor->set_toolbar_mode
EXPORTING
toolbar_mode = 0.
CALL METHOD g_text_editor->set_statusbar_mode
EXPORTING
statusbar_mode = 0.
For this u need to craete a screen se 51.
Thanks,