<?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 to put into Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822584#M919348</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya its useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want  to assign that string to internal table fields(data: itab type table of sflight).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how we move the string indivudually to each field of internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Feb 2012 07:10:36 GMT</pubDate>
    <dc:creator>varadharajan_ramalingam</dc:creator>
    <dc:date>2012-02-09T07:10:36Z</dc:date>
    <item>
      <title>Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822579#M919343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a FM, or a seriese of calls, which will allow me to take a string and put that into an internal table?  Let me explain why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a free-formated text box, on a webpage, and I need to include this text on a SmartForm.  The issue is that I can't predict the length of the text and I can't have any of the text cutoff.  My solution is to put the string into an internal table and then loop at that table.  This will allow the node, in the SmartForm, to expand, thus keeping each and ever character (not cutting any of it off).  I assume this will work but I don't know how to cut this string apart and put it in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could simply cut it at a certain length but that may cut words apart and I can't have that; I need the line breaks in between words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 21:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822579#M919343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-08T21:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822580#M919344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT string AT SPACE INTO ITAB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or instead of SPACE use ' '.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 May 2008 21:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822580#M919344</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2008-05-08T21:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822581#M919345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;something like this might suit your needs. This example builds a string then puts it into an itab of CHAR128.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: lv_string   TYPE string,
        lt_split    TYPE TABLE OF char40,
        lt_char128  TYPE TABLE OF char128,
        lv_wa_str   TYPE string,
        lv_len      TYPE int4,
        lr_split    TYPE REF TO char40,
        lr_char128  TYPE REF TO char128.

  DO 50 TIMES.
    CONCATENATE lv_string
    `The quick brown fox jumped over the lazy dog. `
    INTO lv_string.
  ENDDO.

  SPLIT lv_string AT space INTO TABLE lt_split.

  LOOP AT lt_split REFERENCE INTO lr_split.
    lv_len = STRLEN( lv_wa_str ) + STRLEN( lr_split-&amp;gt;* ).
    IF lv_len LT 128.
      CONCATENATE lv_wa_str lr_split-&amp;gt;* INTO lv_wa_str SEPARATED BY space.
    ELSE.
      APPEND lv_wa_str TO lt_char128.
      lv_wa_str = lr_split-&amp;gt;*.
    ENDIF.
  ENDLOOP.
  APPEND lv_wa_str TO lt_char128.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 00:31:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822581#M919345</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-05-09T00:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822582#M919346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Graham, that works like a charm!  Now it is time to study this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aaron&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 00:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822582#M919346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T00:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822583#M919347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have split the string by ' | ' and the internal table is type of standard table name SFLIGHT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 07:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822583#M919347</guid>
      <dc:creator>varadharajan_ramalingam</dc:creator>
      <dc:date>2012-02-09T07:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822584#M919348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya its useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one more doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want  to assign that string to internal table fields(data: itab type table of sflight).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how we move the string indivudually to each field of internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 07:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822584#M919348</guid>
      <dc:creator>varadharajan_ramalingam</dc:creator>
      <dc:date>2012-02-09T07:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822585#M919349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to assin to standard internal table after split a string&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2012 07:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822585#M919349</guid>
      <dc:creator>varadharajan_ramalingam</dc:creator>
      <dc:date>2012-02-09T07:40:46Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822586#M919350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know I'm late for this, but have you tried function module SCMS_STRING_TO_FTEXT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you search SCMS_* you have a lot of useful conversion function modules...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 10:19:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822586#M919350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-18T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822587#M919351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way to implemnt what you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;BEGIN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;t_split &lt;SPAN class="L0S52"&gt;OCCURS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vkorg &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;char4&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;END &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;t_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;RANGES&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;r_vkorg &lt;SPAN class="L0S52"&gt;FOR &lt;/SPAN&gt;vbrk&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;vkorg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S31"&gt;"TYPE TABLE OF char4 WITH HEADER LINE.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;REFRESH&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;t_split[] &lt;SPAN class="L0S55"&gt;, &lt;/SPAN&gt;r_vkorg[]&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;SPLIT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'OV01,OV02,OV07,' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;',' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;t_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;LOOP &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;t_split&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;/SPAN&gt;r_vkorg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_vkorg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;sign&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'I'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_vkorg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;option &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'EQ'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_vkorg&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;low&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;t_split&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;vkorg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;/SPAN&gt;r_vkorg&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;ENDLOOP&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2016 17:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822587#M919351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-09-06T17:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Split string to put into Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822588#M919352</link>
      <description>&lt;P&gt;This function module breaks words &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 09:31:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-string-to-put-into-internal-table/m-p/3822588#M919352</guid>
      <dc:creator>RieSe</dc:creator>
      <dc:date>2021-03-18T09:31:37Z</dc:date>
    </item>
  </channel>
</rss>

