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: 

CONVERT_ITF_TO_SREAM_TEXT

Former Member
0 Kudos

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!

2 REPLIES 2

Former Member
0 Kudos

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

0 Kudos

I found the solution to my problem in this post:

    http://scn.sap.com/thread/1505079

Thanks