Skip to Content
0
Former Member
Jan 21, 2008 at 09:48 AM

SAVE_TEXT function module for text editor

1035 Views

I come across the SAVE_TEXT is a function that allow us to save what is inside the text editor.

May I know if you got any codes example to implement this SAVE_TEXT?

Am I suppose to make any changes to my text editor codes as below?

-


MODULE STATUS_9000 OUTPUT.

SET PF-STATUS 'SCREEN_9000'.

SET TITLEBAR 'TITLE_9000'.

IF CODE_EDITOR IS INITIAL.

CREATE OBJECT CODE_EDITOR_CONTAINER

EXPORTING

CONTAINER_NAME = 'GEN_CODE'

EXCEPTIONS

CNTL_ERROR = 1

CNTL_SYSTEM_ERROR = 2

CREATE_ERROR = 3

LIFETIME_ERROR = 4

LIFETIME_DYNPRO_DYNPRO_LINK = 5.

CREATE OBJECT CODE_EDITOR

EXPORTING

PARENT = CODE_EDITOR_CONTAINER

WORDWRAP_MODE =

  • CL_GUI_TEXTEDIT=>WORDWRAP_OFF

CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION

  • CL_GUI_TEXTEDIT=>WORDWRAP_AT_WINDOWBORDER

WORDWRAP_POSITION = G_EDITOR_LENGTH

WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>TRUE.

ENDIF.

ENDMODULE. "STATUS_9002 OUTPUT

-