<?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: Smartforms text display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574708#M860447</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;If a long text is to be displayed in SAP Script in two or three lines without missing any word then use the FM&lt;/P&gt;&lt;P&gt;RKD_WORD_WRAP .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RKD_WORD_WRAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      textline                &lt;/P&gt;&lt;P&gt;     OUTPUTLEN                 &lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     OUT_LINE1                 &lt;/P&gt;&lt;P&gt;     OUT_LINE2                 &lt;/P&gt;&lt;P&gt;     OUT_LINE3                 &lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     OUT_LINES                 &lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     OUTPUTLEN_TOO_LARGE       &lt;/P&gt;&lt;P&gt;     OTHERS                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where TEXTLINE is Source text line&lt;/P&gt;&lt;P&gt;           OUTPUTLEN is Maximum output line width&lt;/P&gt;&lt;P&gt;           OUT_LINE1,OUT_LINE2,OUT_LINE3 are output lines 1,2,3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this for SAP Script.U can try in your smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Subasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 08:57:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T08:57:52Z</dc:date>
    <item>
      <title>Smartforms text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574707#M860446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my smartform, I've a variable "address_line" (length = 300 chars) which is formed by concatenating the address street, city etc.&lt;/P&gt;&lt;P&gt;And I've put it in a field of a template, the displayed length of a line is 160 chars. It is expected that the contents in the "address_line" would automatically displayed in 2 lines.&lt;/P&gt;&lt;P&gt;However, it only displays one line with the contents overlapped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;line 1: &amp;amp;address_line+0(160)&amp;amp;&lt;/P&gt;&lt;P&gt;line 2: &amp;amp;address_line+160(300)&amp;amp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but the problem is that the word at 160-161th place is separated and cut to 2 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to make it to display neatly? &lt;/P&gt;&lt;P&gt;Many Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 08:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574707#M860446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574708#M860447</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;If a long text is to be displayed in SAP Script in two or three lines without missing any word then use the FM&lt;/P&gt;&lt;P&gt;RKD_WORD_WRAP .&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'RKD_WORD_WRAP'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      textline                &lt;/P&gt;&lt;P&gt;     OUTPUTLEN                 &lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;     OUT_LINE1                 &lt;/P&gt;&lt;P&gt;     OUT_LINE2                 &lt;/P&gt;&lt;P&gt;     OUT_LINE3                 &lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;     OUT_LINES                 &lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     OUTPUTLEN_TOO_LARGE       &lt;/P&gt;&lt;P&gt;     OTHERS                    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where TEXTLINE is Source text line&lt;/P&gt;&lt;P&gt;           OUTPUTLEN is Maximum output line width&lt;/P&gt;&lt;P&gt;           OUT_LINE1,OUT_LINE2,OUT_LINE3 are output lines 1,2,3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this for SAP Script.U can try in your smartform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;S.Subasree.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 08:57:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574708#M860447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T08:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574709#M860448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Macy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use this logic for sepation of one variable into two part.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s1(30) TYPE c VALUE 'India is the best country.'.&lt;/P&gt;&lt;P&gt;DATA: p1(10) TYPE c,&lt;/P&gt;&lt;P&gt;      p2(10) TYPE c.&lt;/P&gt;&lt;P&gt;DATA: counter TYPE i VALUE 15,&lt;/P&gt;&lt;P&gt;      int TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE counter &amp;gt; 0.&lt;/P&gt;&lt;P&gt;  IF s1+counter(1) = ' '.&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  counter = counter - 1.&lt;/P&gt;&lt;P&gt;ENDWHILE.&lt;/P&gt;&lt;P&gt;WRITE:/ s1+0(counter).&lt;/P&gt;&lt;P&gt;int = 30 - counter.&lt;/P&gt;&lt;P&gt;WRITE:/ s1+counter(int).&lt;/P&gt;&lt;P&gt;*WRITE:/ s1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Dharmishta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 09:06:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574709#M860448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T09:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Smartforms text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574710#M860449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if it is not necessary to include the splitted word in the first line&lt;/P&gt;&lt;P&gt;itself then u can try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take the length of first address line till the starting of the word which is splitting ie dont include the split word in the line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets say display the first line len as 152 and start the display of second line from +153 ( depending upon the starting of the split word)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried this:&lt;/P&gt;&lt;P&gt;line 1: &amp;amp;address_line+0(152)&amp;amp;&lt;/P&gt;&lt;P&gt;line 2: &amp;amp;address_line+153(300)&amp;amp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 09:16:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/smartforms-text-display/m-p/3574710#M860449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T09:16:15Z</dc:date>
    </item>
  </channel>
</rss>

