Skip to Content
author's profile photo Former Member
Former Member

How to Read Lines from Object Editor

Hi,

I have created an Object Editor in a Module Pool program.

Code for the Object Editor is

DATA: ok_code LIKE sy-ucomm,

container TYPE REF TO cl_gui_custom_container,

editor TYPE REF TO cl_gui_textedit,

t_thead LIKE thead, "OCCURS 0 WITH HEADER LINE,

line_length TYPE i.

DATA: t_tline LIKE tline OCCURS 0 WITH HEADER LINE.

DATA : BEGIN OF t_line OCCURS 0,

line(256) TYPE c,

END OF t_line.

DATA line TYPE i.

CREATE OBJECT container

EXPORTING

container_name = 'MYCONTAINER'.

CREATE OBJECT editor

EXPORTING

parent = container

wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position

wordwrap_position = line_length

wordwrap_to_linebreak_mode = cl_gui_textedit=>true.

What method should i use to read the data entered in the editor.

Thank you,

Ramu N.

Add comment
10|10000 characters needed characters exceeded

1 Answer