<?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 Re: How do I save long text while preserving formatting ? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099410#M1814838</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aradhana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try the method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get_text_as_stream&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text_stream = lt_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itf_text&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 20:26:43 GMT</pubDate>
    <dc:creator>tkaess</dc:creator>
    <dc:date>2014-02-27T20:26:43Z</dc:date>
    <item>
      <title>How do I save long text while preserving formatting ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099409#M1814837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text editor section on my screen painter (module pool) and I read it using&amp;nbsp; cl_gui_textedit-&amp;gt;set_text_as_r3table method. Further I get all the lines into a TLINE type internal table and call function module SAVE_TEXT to save the text into corresponding text element. However I am not able to get it in the formatting that I want.&lt;/P&gt;&lt;P&gt;Eg: I type the below text(in italics) in my screen painter: I can manually force formatting (line break) using TDFORMAT = '*' everytime there is a blank line. But what about those cases where its not a blank line but still it has to be considered as a new line - as in the example below this new line is &lt;/P&gt;&lt;P&gt; 'Some large supermarkets..'&amp;nbsp;&amp;nbsp; So while I save the text in SO10, how do I make sure I get the '*' indicating a line break ? Thanks and appreciate all the help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt;&lt;EM&gt;A &lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;STRONG style="color: #000000; font-family: sans-serif;"&gt;grocery store&lt;/STRONG&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt; is a &lt;/SPAN&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/Retail_store" style="color: #0b0080; font-family: sans-serif;" title="Retail store"&gt;retail store&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt; that sells &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Food" style="color: #0b0080; font-family: sans-serif;" title="Food"&gt;food&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt; and other non-food items. Large grocery stores that stock products other than food, such as clothing or household items are called &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Supermarket" style="color: #0b0080; font-family: sans-serif;" title="Supermarket"&gt;supermarkets&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt;. &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt;Some large supermarkets also include a pharmacy and an electronics section, the latter selling DVDs, headphones, digital alarm clocks, and similar items. Small grocery stores that mainly sell fruits and vegetables are known as produce markets (U.S.) or &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Greengrocer" style="color: #0b0080; font-family: sans-serif;" title="Greengrocer"&gt;greengrocers&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt; (Britain), and small grocery stores that predominantly sell prepared food, such as candy and snacks, are known as &lt;/SPAN&gt;&lt;A class="mw-redirect" href="http://en.wikipedia.org/wiki/Convenience_stores" style="color: #0b0080; font-family: sans-serif;" title="Convenience stores"&gt;convenience stores&lt;/A&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt; or &lt;/SPAN&gt;&lt;A href="http://en.wikipedia.org/wiki/Delicatessen" style="color: #0b0080; font-family: sans-serif;" title="Delicatessen"&gt;delicatessens&lt;/A&gt;&lt;/EM&gt;&lt;SPAN style="color: #000000; font-family: sans-serif;"&gt;&lt;EM&gt;.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 16:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099409#M1814837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-27T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save long text while preserving formatting ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099410#M1814838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aradhana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try the method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get_text_as_stream&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and than&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; CALL FUNCTION 'CONVERT_STREAM_TO_ITF_TEXT'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; text_stream = lt_text&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itf_text&amp;nbsp;&amp;nbsp;&amp;nbsp; = lt_tline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 20:26:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099410#M1814838</guid>
      <dc:creator>tkaess</dc:creator>
      <dc:date>2014-02-27T20:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I save long text while preserving formatting ?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099411#M1814839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Thomas, you are a life savior!! This solution works like a charm ! Appreciate all the help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 21:38:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-save-long-text-while-preserving-formatting/m-p/10099411#M1814839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-27T21:38:23Z</dc:date>
    </item>
  </channel>
</rss>

