Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to Read Lines from Object Editor

Former Member
0 Kudos

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.

1 REPLY 1

LucianoBentiveg
Active Contributor
0 Kudos

In the following link you can find an step by step guide to use that:

<a href="http://www.sapgenie.com/abap/controls/textedit.htm">http://www.sapgenie.com/abap/controls/textedit.htm</a>

Regards.