<?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: Correct text line in SapScript in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261804#M147909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following example program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .

data: lines type table of   tline with header line.


lines-tdline
   = 'This is the first line of the text and we need to format it'.
append lines.

lines-tdline
   = 'This is the second line of the text and we need to format it'.
append lines.

loop at lines.
  write:/ lines-tdline.
endloop.


call function 'FORMAT_TEXTLINES'
 EXPORTING
*   CURSOR_COLUMN           = 0
*   CURSOR_LINE             = 0
*   ENDLINE                 = 99999
    formatwidth             = 30
*   LINEWIDTH               = 132
*   STARTLINE               = 1
*   LANGUAGE                = SY-LANGU
* IMPORTING
*   NEW_CURSOR_COLUMN       =
*   NEW_CURSOR_LINE         =
  tables
    lines                   = lines.
* EXCEPTIONS
*   BOUND_ERROR             = 1
*   OTHERS                  = 2
.
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

skip 5.

loop at lines.
  write:/ lines-tdline.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Apr 2006 14:36:24 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2006-04-19T14:36:24Z</dc:date>
    <item>
      <title>Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261796#M147901</link>
      <description>&lt;P&gt;Hi All!&lt;/P&gt;
  &lt;P&gt;Sorry, my English is very poor...&lt;/P&gt;
  &lt;P&gt;I have a variable with a text line. I´m going to show this text in the SapScript, but the text is very long...&lt;/P&gt;
  &lt;P&gt;How can I write de variable in 2 lines, without cut any word?&lt;/P&gt;
  &lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 04 Feb 2024 04:08:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261796#M147901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2024-02-04T04:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261797#M147902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Do not bother about your Language buddy...&lt;/P&gt;&lt;P&gt;If it is a standard text(Constant all the time). then define it as a std text in so10 transaction.&lt;/P&gt;&lt;P&gt;Because you are defining it , you make sure you enter the text in two lines without any break in words.&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:25:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261797#M147902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261798#M147903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check out function module FORMAT_TEXTLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remember to award points for helpful answers and mark your post as solved when solved completely.  THanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:26:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261798#M147903</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-19T14:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261799#M147904</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;DO like &lt;/P&gt;&lt;P&gt;&amp;amp;T001-BUTXT+0(15)&amp;amp; IN FIRST LINE&lt;/P&gt;&lt;P&gt;&amp;amp;T001-BUTXT+15(10)&amp;amp; IN SECOND LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use FM : RKD_WORD_WRAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:28:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261799#M147904</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2006-04-19T14:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261800#M147905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all again! Thanks for your quickly request!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'FORMAT_TEXTLINES'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CURSOR_COLUMN           = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CURSOR_LINE             = 0&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ENDLINE                 = 99999&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  FORMATWIDTH             = 72&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LINEWIDTH               = 132&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  STARTLINE               = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  LANGUAGE                = SY-LANGU&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_CURSOR_COLUMN       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  NEW_CURSOR_LINE         =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    lines                   =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  BOUND_ERROR             = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                  = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where I have to put the variable in this function?? How is the result?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261800#M147905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261801#M147906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;amp;T001-BUTXT+0(15)&amp;amp; IN FIRST LINE&lt;/P&gt;&lt;P&gt;&amp;amp;T001-BUTXT+15(10)&amp;amp; IN SECOND LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this the words are cut...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261801#M147906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261802#M147907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try with FM &amp;lt;b&amp;gt;RKD_WORD_WRAP&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261802#M147907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261803#M147908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oks, I´m going to try it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261803#M147908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261804#M147909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see the following example program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


report zrich_0001 .

data: lines type table of   tline with header line.


lines-tdline
   = 'This is the first line of the text and we need to format it'.
append lines.

lines-tdline
   = 'This is the second line of the text and we need to format it'.
append lines.

loop at lines.
  write:/ lines-tdline.
endloop.


call function 'FORMAT_TEXTLINES'
 EXPORTING
*   CURSOR_COLUMN           = 0
*   CURSOR_LINE             = 0
*   ENDLINE                 = 99999
    formatwidth             = 30
*   LINEWIDTH               = 132
*   STARTLINE               = 1
*   LANGUAGE                = SY-LANGU
* IMPORTING
*   NEW_CURSOR_COLUMN       =
*   NEW_CURSOR_LINE         =
  tables
    lines                   = lines.
* EXCEPTIONS
*   BOUND_ERROR             = 1
*   OTHERS                  = 2
.
if sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.

skip 5.

loop at lines.
  write:/ lines-tdline.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:36:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261804#M147909</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-04-19T14:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261805#M147910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks!! I use FM: RKD_WORD_WRAP!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261805#M147910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-19T14:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Correct text line in SapScript</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261806#M147911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why are you concerned by this? Just ensure your output windown in SAP Script is at least 2 lines in height and SAP Script will handle the wrapping for you without cutting words.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2006 14:48:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/correct-text-line-in-sapscript/m-p/1261806#M147911</guid>
      <dc:creator>former_member378318</dc:creator>
      <dc:date>2006-04-19T14:48:38Z</dc:date>
    </item>
  </channel>
</rss>

