2013 Jan 15 9:43 AM
Hello,
I'm using the 'READ_TEXT_INLINE' to retrieve a text, and filled me back several lines of the internal table. The line where the text is retrieved TDLINE type of 132 characters.
I think an internal table whose line is 50 characters and use the function:
CALL FUNCTION 'CONVERT_ITF_TO_SREAM_TEXT'
TABLES
itf_tex = my_table_of_132_characters
text_stream = my_table_de_50_characters
But I respect the words, ie words cut in half.
Can anyone help me with this problem?
Thank you!
Hello,
I'm using the 'READ_TEXT_INLINE' to retrieve a text, and filled me back several lines of the internal table. The line where the text is retrieved TDLINE type of 132 characters.
I think an internal table whose line is 50 characters and use the function:
CALL FUNCTION 'CONVERT_ITF_TO_SREAM_TEXT'
TABLES
itf_tex = my_table_of_132_characters
text_stream = my_table_de_50_characters
But I respect the words, ie words cut in half.
Can anyone help me with this problem?
Thank you!
2013 Jan 15 12:26 PM
Hi,
Refer to code below
TYPES : BEGIN OF T1,
LINE TYPE CHAR50,
END OF T1.
DATA: lt_tline TYPE TABLE OF tline,
wa_line type tline.
DATA: lt_stream TYPE TABLE OF T1,
wa_stream type T1.
wa_line = ' Some sample text that is use to be displayed after 50 characters/ Ive converted ITF format to stream text format before displaying'.
append wa_line to lt_tline.
CALL FUNCTION 'CONVERT_ITF_TO_STREAM_TEXT'
TABLES
itf_texT = lt_tline
text_stream = lt_stream.
This works for me.
Hope this helps.
Thanks,
Tooshar Bendale
2013 Jan 15 4:16 PM
I found the solution to my problem in this post:
http://scn.sap.com/thread/1505079
Thanks