<?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: how to split a table fields and create a new record for each split in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796834#M913203</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the webserice commming in in the following strucutre:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRIES&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_COUNTRY_CODE&amp;gt;ABW&amp;lt;/F_COUNTRY_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;F_COUNTRY_NAME&amp;gt;ARUBA&amp;lt;/F_COUNTRY_NAME&amp;gt; &lt;/P&gt;&lt;P&gt;- &amp;lt;F_LANGUAGE&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_LANGUAGE_CODE&amp;gt;DUT, ENG, FRE, SPA&amp;lt;/F_LANGUAGE_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;F_LANGUAGE_NAME&amp;gt;DUTCH; FLEMISH, ENGLISH, FRENCH, SPANISH; CASTILIAN&amp;lt;/F_LANGUAGE_NAME&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/F_LANGUAGE&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;F_REGION&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_REGION_CODE&amp;gt;LA&amp;lt;/F_REGION_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/F_REGION&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRIES&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to split the data coming in at "," and create new records for each split value (country code+name). Could any one guide me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 May 2008 07:27:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-10T07:27:56Z</dc:date>
    <item>
      <title>how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796830#M913199</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;Could any one let me know how to split a table with strucutre and create a new record for each split. structure is as follow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Filed1&lt;/P&gt;&lt;P&gt;Filed2&lt;/P&gt;&lt;P&gt;Filed3  more than one value seperated wtih commas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to split Filed3 values and create a new record for each split. Split is on comma operator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajeev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 21:43:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796830#M913199</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T21:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796831#M913200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are the new records going to be in the same table? here is an example with a second table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: itab2 type table of string,
        itabaux like itab2.

loop at itab.
split itab-field3 at ',' into table itabaux.
append lines of itabaux to itab2.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2 should have all the records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 21:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796831#M913200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T21:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796832#M913201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No It has to update in another table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 May 2008 22:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796832#M913201</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-09T22:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796833#M913202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;example by ramiro is for another table only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 03:49:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796833#M913202</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T03:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796834#M913203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the webserice commming in in the following strucutre:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRIES&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_COUNTRY_CODE&amp;gt;ABW&amp;lt;/F_COUNTRY_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;F_COUNTRY_NAME&amp;gt;ARUBA&amp;lt;/F_COUNTRY_NAME&amp;gt; &lt;/P&gt;&lt;P&gt;- &amp;lt;F_LANGUAGE&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_LANGUAGE_CODE&amp;gt;DUT, ENG, FRE, SPA&amp;lt;/F_LANGUAGE_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;F_LANGUAGE_NAME&amp;gt;DUTCH; FLEMISH, ENGLISH, FRENCH, SPANISH; CASTILIAN&amp;lt;/F_LANGUAGE_NAME&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/F_LANGUAGE&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;F_REGION&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;F_REGION_CODE&amp;gt;LA&amp;lt;/F_REGION_CODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/F_REGION&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRIES&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to split the data coming in at "," and create new records for each split value (country code+name). Could any one guide me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 07:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796834#M913203</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796835#M913204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this can be done through the command &lt;STRONG&gt;split in additon with table&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax : SPLIT f AT g INTO TABLE itab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stores the components of f in the internal table itab . For each part of f , a "special" table line is created. &lt;/P&gt;&lt;P&gt;f is considered without trailing blanks. &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;DATA: BEGIN OF ITAB OCCURS 10,&lt;/P&gt;&lt;P&gt;        WORD(20),&lt;/P&gt;&lt;P&gt;      END   OF ITAB.&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;&lt;/P&gt;&lt;P&gt;Now, ITAB has three lines. The first line is blank, the second contains 'Two' and the third contains 'Three' . &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;venkat .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 07:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796835#M913204</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T07:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to split a table fields and create a new record for each split</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796836#M913205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rajeev,&lt;/P&gt;&lt;P&gt;DATA: str1 TYPE string, &lt;/P&gt;&lt;P&gt;      str2 TYPE string, &lt;/P&gt;&lt;P&gt;      str3 TYPE string, &lt;/P&gt;&lt;P&gt;      itab TYPE TABLE OF string, &lt;/P&gt;&lt;P&gt;      text TYPE string. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;text = `What a drag it is getting old`. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT text AT ',' INTO: str1 str2 str3, &lt;/P&gt;&lt;P&gt;                          TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: jagadeesh tirumalasetti on May 10, 2008 12:09 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 May 2008 09:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-split-a-table-fields-and-create-a-new-record-for-each-split/m-p/3796836#M913205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-10T09:52:55Z</dc:date>
    </item>
  </channel>
</rss>

