<?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 Handling long text display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433990#M1927609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bit of an issue with a long text display for a smartform in CRM. Hope you can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I've done so far:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851015" width="450" /&gt;&lt;/P&gt;&lt;P&gt;A sample text input is initially in a string data type as shown above – in this example, it has 808 characters of length in total.&lt;/P&gt;&lt;P&gt;Next, this text input is passed to the FM, CONV_TEXTSTRING_TO_ITF.&lt;/P&gt;&lt;P&gt;(I had earlier used the FM, G_SPLIT_LINE, but this didn't work well because it had a limitation of 500 characters of length for the &lt;SPAN style="font-size: 13.3333px;"&gt;text input.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851016" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The text input is broken down into multiple lines as shown above after it is processed by the FM, CONV_TEXTSTRING_TO_ITF.&lt;/P&gt;&lt;P&gt;The text lines here have a maximum length of 132 characters per line.&lt;/P&gt;&lt;P&gt;Next, these text lines will processed by the FM, FORMAT_TEXTLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851017" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The text lines are finally formatted as above after it is processed by the FM, FORMAT_TEXTLINES (this is meant to limit the length of text up to 100 characters per line, solely for the smartform display purposes).&lt;/P&gt;&lt;P&gt;These text lines now have a maximum length of 100 characters per line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How may I resolve the issues as highlighted in the red bubbles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any of your help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Dec 2015 12:08:12 GMT</pubDate>
    <dc:creator>former_member367551</dc:creator>
    <dc:date>2015-12-14T12:08:12Z</dc:date>
    <item>
      <title>Handling long text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433990#M1927609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear forumers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bit of an issue with a long text display for a smartform in CRM. Hope you can help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's what I've done so far:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851015" width="450" /&gt;&lt;/P&gt;&lt;P&gt;A sample text input is initially in a string data type as shown above – in this example, it has 808 characters of length in total.&lt;/P&gt;&lt;P&gt;Next, this text input is passed to the FM, CONV_TEXTSTRING_TO_ITF.&lt;/P&gt;&lt;P&gt;(I had earlier used the FM, G_SPLIT_LINE, but this didn't work well because it had a limitation of 500 characters of length for the &lt;SPAN style="font-size: 13.3333px;"&gt;text input.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851016" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The text input is broken down into multiple lines as shown above after it is processed by the FM, CONV_TEXTSTRING_TO_ITF.&lt;/P&gt;&lt;P&gt;The text lines here have a maximum length of 132 characters per line.&lt;/P&gt;&lt;P&gt;Next, these text lines will processed by the FM, FORMAT_TEXTLINES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851017" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The text lines are finally formatted as above after it is processed by the FM, FORMAT_TEXTLINES (this is meant to limit the length of text up to 100 characters per line, solely for the smartform display purposes).&lt;/P&gt;&lt;P&gt;These text lines now have a maximum length of 100 characters per line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How may I resolve the issues as highlighted in the red bubbles?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate any of your help here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 12:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433990#M1927609</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2015-12-14T12:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Handling long text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433991#M1927610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;could you provide the code before using FM /converting,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thanks&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 12:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433991#M1927610</guid>
      <dc:creator>former_member184158</dc:creator>
      <dc:date>2015-12-14T12:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Handling long text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433992#M1927611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should collect string in to internal table then make a loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA: lv_string&amp;nbsp;&amp;nbsp; TYPE string,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_split&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE TABLE OF char40,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lt_char128&amp;nbsp; TYPE TABLE OF char128,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_wa_str&amp;nbsp;&amp;nbsp; TYPE string,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_len&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE int4,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_split&amp;nbsp;&amp;nbsp;&amp;nbsp; TYPE REF TO char40,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lr_char128&amp;nbsp; TYPE REF TO char128.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DO 50 TIMES.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE lv_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `This is hello world program`&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO lv_string.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SPLIT lv_string AT space INTO TABLE lt_split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP AT lt_split REFERENCE INTO lr_split.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_len = STRLEN( lv_wa_str ) + STRLEN( lr_split-&amp;gt;* ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF lv_len LT 128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CONCATENATE lv_wa_str lr_split-&amp;gt;* INTO lv_wa_str SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND lv_wa_str TO lt_char128.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_wa_str = lr_split-&amp;gt;*.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&amp;nbsp; APPEND lv_wa_str TO lt_char128.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Dec 2015 12:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433992#M1927611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-14T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Handling long text display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433993#M1927612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks much, Avirat. But after populating LT_CHAR128, any idea on how I should convert this data to the internal table of the type, TLINE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/851331" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Dec 2015 03:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-long-text-display/m-p/11433993#M1927612</guid>
      <dc:creator>former_member367551</dc:creator>
      <dc:date>2015-12-15T03:09:55Z</dc:date>
    </item>
  </channel>
</rss>

