<?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 from a field into another 2 fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010221#M1805438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you could use something which looks likes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lv_char30 TYPE char30.&lt;/P&gt;&lt;P&gt;DATA lt_splitted TYPE char30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT AT lv_char30 INTO TABLE lt_splitted AT space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have all words in a separate entry in lt_splitted. From here you can create logic to check the length of the word and start concatenating it into two separate fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Jan 2014 22:58:46 GMT</pubDate>
    <dc:creator>former_member192854</dc:creator>
    <dc:date>2014-01-07T22:58:46Z</dc:date>
    <item>
      <title>split from a field into another 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010220#M1805437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi forum,&lt;/P&gt;&lt;P&gt;say i have 1 field contains of 30 char.&lt;/P&gt;&lt;P&gt;now i need to split it into 2 fields with each 15 char.&lt;/P&gt;&lt;P&gt;when separate into 2 field, the word should not be broken.&lt;/P&gt;&lt;P&gt;say i have sentence like this "what a wonderful day". when split, field1 is "what a" whereas field2 is "wonderful day".&lt;/P&gt;&lt;P&gt;how to check the sentence with consideration of space as well so that can preserve the whole word when split.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks alot&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 22:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010220#M1805437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-07T22:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: split from a field into another 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010221#M1805438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, you could use something which looks likes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA lv_char30 TYPE char30.&lt;/P&gt;&lt;P&gt;DATA lt_splitted TYPE char30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT AT lv_char30 INTO TABLE lt_splitted AT space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have all words in a separate entry in lt_splitted. From here you can create logic to check the length of the word and start concatenating it into two separate fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 22:58:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010221#M1805438</guid>
      <dc:creator>former_member192854</dc:creator>
      <dc:date>2014-01-07T22:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: split from a field into another 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010222#M1805439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might like to check this post: &lt;A __default_attr="1122126" __jive_macro_name="thread" class="jive_macro_thread jive_macro" data-orig-content="split string in 40 char strings but only on full words" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;which mentions a function module 'RKD_WORD_WRAP' to do the work... the FM has a limit of three lines out I think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 23:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010222#M1805439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-07T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: split from a field into another 2 fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010223#M1805440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM RKD_WORD_WRAP. It preserves the word, and splits the string based on the size given in the importing parameter and exports output to the table.&lt;/P&gt;&lt;P&gt;data : input type string.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt;: &lt;SPAN class="L1S52"&gt;lines&lt;/SPAN&gt;(&lt;SPAN class="L1S32"&gt;132&lt;/SPAN&gt;) &lt;SPAN class="L1S52"&gt;OCCURS&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;HEADER&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;LINE&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;FUNCTION&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'RKD_WORD_WRAP'&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; textline&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = input&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUTPUTLEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;SPAN class="L1S32"&gt;10&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;TABLES&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; OUT_LINES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = &lt;SPAN class="L1S52"&gt;lines&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2014 05:15:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-from-a-field-into-another-2-fields/m-p/10010223#M1805440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-08T05:15:38Z</dc:date>
    </item>
  </channel>
</rss>

