‎2008 Dec 10 8:27 AM
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
‎2008 Dec 10 8:30 AM
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
‎2008 Dec 10 8:30 AM
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
‎2008 Dec 10 11:58 AM
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
‎2008 Dec 10 2:34 PM