<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Convert long text to string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621060#M1280374</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm looking for a standard way to get a string out of a long text table (tline table).&lt;/P&gt;&lt;P&gt;I get the long text by using the read_text function, and it returns a table that contains the text, with the format column. I need a function that gets this table and returns a formatted string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me if there's a standard way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Udi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 08:12:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-14T08:12:09Z</dc:date>
    <item>
      <title>Convert long text to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621060#M1280374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I'm looking for a standard way to get a string out of a long text table (tline table).&lt;/P&gt;&lt;P&gt;I get the long text by using the read_text function, and it returns a table that contains the text, with the format column. I need a function that gets this table and returns a formatted string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me if there's a standard way of doing this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Udi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621060#M1280374</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T08:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert long text to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621061#M1280375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the READ_TEXT, say data is in internal table it_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_text type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_tline.&lt;/P&gt;&lt;P&gt;concatenate v_text it_tline-tdline into v_text seperated by space.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write v_text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:20:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621061#M1280375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Convert long text to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621062#M1280376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about &lt;STRONG&gt;'CONVERT_ITF_TO_STREAM_TEXT'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Micky Oestreich on May 14, 2009 10:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621062#M1280376</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-05-14T08:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Convert long text to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621063#M1280377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Udi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to &lt;STRONG&gt;loop the internal table&lt;/STRONG&gt; that fetches record from the table type TLINE.&lt;/P&gt;&lt;P&gt;After that you need to &lt;STRONG&gt;concatenate&lt;/STRONG&gt; the field string value into a variable type STRING.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : t_itab LIKE TABLE OF tline,
       fs_itab LIKE LINE OF t_itab,
       w_string TYPE string ,   " To hold Continous text
SELECT .......
LOOP AT t_itab INTO fs_itab.
  CONCATENATE fs_itab-tdline w_string INTO w_string.  " Concatenate to get it continous
ENDLOOP.
WRITE : w_string.   " Displaying continuous text&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If want space between the concatenated parts use &lt;STRONG&gt;SEPERATED BY SPACE&lt;/STRONG&gt;  at the &lt;/P&gt;&lt;P&gt;end of CONCATENATE statement . Like  -&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONCATENATE fs_itab-tdline w_string INTO w_string SEPERATED BY SPACE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check my post in the bellow link -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://forums.sdn.sap.com/click.jspa?searchID=-1&amp;amp;messageID=7484684]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 08:38:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621063#M1280377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T08:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert long text to string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621064#M1280378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all,&lt;/P&gt;&lt;P&gt;I specifically asked for a standard way of doing this, like what Micky suggested.&lt;/P&gt;&lt;P&gt;But I realized it won't be much different than doing it by myself, so that's how I did it eventually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 10:04:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-long-text-to-string/m-p/5621064#M1280378</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-14T10:04:25Z</dc:date>
    </item>
  </channel>
</rss>

