Application Development and Automation 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: 
Read only

cl_gui_textedit

Former Member
0 Likes
725

Hi everybody,

I am new to abap and I need help!

I use cl_gui_textedit to create text-editor limited to 2000 characters, I need to save that the users write in the editor in a internal table with line of 250 characters. (total 8 lines)

I read in others post that there are the FM init_text/save_text but it can't work correctly

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
526

Hi,

Check this demo program,....SAPSCRIPT_DEMO_NOTE_EDITOR..

It will help you to know how to handle the user entered data

the below method will help you read text text from editor..the following lines are from above program

  • read text from note editor

call method note_editor->get_text_as_stream

importing text = notetab.

perform flush.

  • and convert text stream into ITF text

call function 'CONVERT_STREAM_TO_ITF_TEXT'

tables text_stream = notetab

itf_text = itftext.

Edited by: avinash kodarapu on Dec 10, 2008 2:05 PM

3 REPLIES 3
Read only

Former Member
0 Likes
527

Hi,

Check this demo program,....SAPSCRIPT_DEMO_NOTE_EDITOR..

It will help you to know how to handle the user entered data

the below method will help you read text text from editor..the following lines are from above program

  • read text from note editor

call method note_editor->get_text_as_stream

importing text = notetab.

perform flush.

  • and convert text stream into ITF text

call function 'CONVERT_STREAM_TO_ITF_TEXT'

tables text_stream = notetab

itf_text = itftext.

Edited by: avinash kodarapu on Dec 10, 2008 2:05 PM

Read only

tarangini_katta
Active Contributor
0 Likes
526

Hi,

Y can't use the method get_text_as_r3table from cl_gui_text_edit.

It will get all u r data into an internal table.

Thanks

Read only

0 Likes
526

Ok, It works.

Thanks.