<?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: split string into several lines, considering word borders in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984405#M704720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM SWA_STRING_SPLIT really solves the problem.&lt;/P&gt;&lt;P&gt;If I would work with character fields instead of strings, then 'RKD_WORD_WRAP' would also work.&lt;/P&gt;&lt;P&gt;Thx you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 14:33:43 GMT</pubDate>
    <dc:creator>daniel_humberg</dc:creator>
    <dc:date>2007-10-30T14:33:43Z</dc:date>
    <item>
      <title>split string into several lines, considering word borders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984401#M704716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a string that I want to break into several lines.&lt;/P&gt;&lt;P&gt;The line length in my case shall be 72 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I only want to break at the word borders (so only at a blank between two words).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically, I want to convert the string into a string table, and each string in the table shall only be longer that 72 characters, if there is no space in that part of the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any function module or something like this for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:28:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984401#M704716</guid>
      <dc:creator>daniel_humberg</dc:creator>
      <dc:date>2007-10-29T15:28:43Z</dc:date>
    </item>
    <item>
      <title>Re: split string into several lines, considering word borders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984402#M704717</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;Please check these FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STRING_SPLIT_AT_POSITION&lt;/P&gt;&lt;P&gt;SWA_STRING_SPLIT&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984402#M704717</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-29T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: split string into several lines, considering word borders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984403#M704718</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;Use fm RKD_WORD_WRAP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:31:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984403#M704718</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-10-29T15:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: split string into several lines, considering word borders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984404#M704719</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;Use SPLIT command -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SPLIT f AT g INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similar to variant 1&lt;/P&gt;&lt;P&gt;The sections of f are placed in the internal table itab. The sytsem creates a table row for each section of f.&lt;/P&gt;&lt;P&gt;Note: If f ends with the separator string g, the system does not create an empty table row at the end. This is in contrast to what happens when g occurs at the beginning of f.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ITAB_TYPE,&lt;/P&gt;&lt;P&gt;        WORD(20),&lt;/P&gt;&lt;P&gt;      END   OF ITAB_TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF ITAB_TYPE WITH&lt;/P&gt;&lt;P&gt;                NON-UNIQUE DEFAULT KEY INITIAL SIZE 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT 'STOP Two STOP Three STOP   ' AT 'STOP' INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB now has three rows. The first is empty, the second contains ' Two', and the third ' Three'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984404#M704719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T15:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: split string into several lines, considering word borders</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984405#M704720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FM SWA_STRING_SPLIT really solves the problem.&lt;/P&gt;&lt;P&gt;If I would work with character fields instead of strings, then 'RKD_WORD_WRAP' would also work.&lt;/P&gt;&lt;P&gt;Thx you all!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-into-several-lines-considering-word-borders/m-p/2984405#M704720</guid>
      <dc:creator>daniel_humberg</dc:creator>
      <dc:date>2007-10-30T14:33:43Z</dc:date>
    </item>
  </channel>
</rss>

