<?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: problem with FORMAT_TEXTLINES in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-format-textlines/m-p/1190925#M128540</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find below an example of program using the 'FORMAT_TEXTLINES' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form prepare_text.&lt;/P&gt;&lt;P&gt;  data : begin of it_loc_line occurs 0,&lt;/P&gt;&lt;P&gt;          tdline(60),&lt;/P&gt;&lt;P&gt;         end of  it_loc_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear it_line.&lt;/P&gt;&lt;P&gt;  free  it_line.&lt;/P&gt;&lt;P&gt;  split it_item_tmp-ltext at space into table it_loc_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_loc_line.&lt;/P&gt;&lt;P&gt;    if not it_loc_line is initial.&lt;/P&gt;&lt;P&gt;      move-corresponding it_loc_line to it_line.&lt;/P&gt;&lt;P&gt;      append it_line.&lt;/P&gt;&lt;P&gt;      clear it_line.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'FORMAT_TEXTLINES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            formatwidth = '60'&lt;/P&gt;&lt;P&gt;            linewidth   = '60'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            lines       = it_line&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            bound_error = 1&lt;/P&gt;&lt;P&gt;            others      = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Mar 2006 11:26:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-01T11:26:40Z</dc:date>
    <item>
      <title>problem with FORMAT_TEXTLINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-format-textlines/m-p/1190924#M128539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everybody, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;somebody knows how can i solve this problem, I'm uploading a RTF document into an standard text in SAP, the problem is that where i have too much space more than 64 spaces, the upload function cuts the line and when pass in the function FORMAT_TEXTLINES, the spaces have been lost, like the next example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example RTF document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Document&amp;lt;/b&amp;gt; xxxxxxxxx&lt;/P&gt;&lt;P&gt; ______________________________________________________&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(more than 70 spaces)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(more than 70 spaces)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(more than 70 spaces)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;(more than 70 spaces)&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example Error for the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Document&amp;lt;/b&amp;gt; xxxxxxxxx&lt;/P&gt;&lt;P&gt; ______________________________________________________&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;______________________________________________________&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2006 21:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-format-textlines/m-p/1190924#M128539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-22T21:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: problem with FORMAT_TEXTLINES</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-format-textlines/m-p/1190925#M128540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please find below an example of program using the 'FORMAT_TEXTLINES' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form prepare_text.&lt;/P&gt;&lt;P&gt;  data : begin of it_loc_line occurs 0,&lt;/P&gt;&lt;P&gt;          tdline(60),&lt;/P&gt;&lt;P&gt;         end of  it_loc_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  clear it_line.&lt;/P&gt;&lt;P&gt;  free  it_line.&lt;/P&gt;&lt;P&gt;  split it_item_tmp-ltext at space into table it_loc_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at it_loc_line.&lt;/P&gt;&lt;P&gt;    if not it_loc_line is initial.&lt;/P&gt;&lt;P&gt;      move-corresponding it_loc_line to it_line.&lt;/P&gt;&lt;P&gt;      append it_line.&lt;/P&gt;&lt;P&gt;      clear it_line.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call function 'FORMAT_TEXTLINES'&lt;/P&gt;&lt;P&gt;       exporting&lt;/P&gt;&lt;P&gt;            formatwidth = '60'&lt;/P&gt;&lt;P&gt;            linewidth   = '60'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            lines       = it_line&lt;/P&gt;&lt;P&gt;       exceptions&lt;/P&gt;&lt;P&gt;            bound_error = 1&lt;/P&gt;&lt;P&gt;            others      = 2.&lt;/P&gt;&lt;P&gt;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Mar 2006 11:26:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-format-textlines/m-p/1190925#M128540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-01T11:26:40Z</dc:date>
    </item>
  </channel>
</rss>

