<?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 field values into range in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706633#M1578649</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;    You can split the entire line into a table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab TYPE TABLE OF string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT l_bukrs_string AT ';' INTO TABLE itab.  &lt;/P&gt;&lt;P&gt;Itab contains the values , one line for each word .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Feb 2011 14:21:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-15T14:21:26Z</dc:date>
    <item>
      <title>Split field values into range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706632#M1578648</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;I have a 'Company Code' field in an input file that can contain 1 or multiple company codes, separated by comma (,). e.g it could be anything from '1105' to '1105,3000,2000,2200' etc up to about a max of 20 company codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it's efficient or good programming to do the following;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SPLIT l_bukrs_string AT ';' INTO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; l_bukrs1&lt;/P&gt;&lt;P&gt; l_bukrs2&lt;/P&gt;&lt;P&gt; l_bukrs3&lt;/P&gt;&lt;P&gt; l_bukrs4&lt;/P&gt;&lt;P&gt; l_bukrs5&lt;/P&gt;&lt;P&gt; l_bukrs6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;etc etc up to the maximum (I would be declaring up to 20 more fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ideal would be if I can get the list of company codes (from the field), into a range. So as per my example above, I would left with a range R_BUKRS that contains the single values 1105,3000,2000,2200. I can then loop at this range later on and do the rest of my company code specific processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And ideas - possible use of field symbols? Thanks alot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 13:58:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706632#M1578648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T13:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Split field values into range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706633#M1578649</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;    You can split the entire line into a table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab TYPE TABLE OF string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT l_bukrs_string AT ';' INTO TABLE itab.  &lt;/P&gt;&lt;P&gt;Itab contains the values , one line for each word .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:21:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706633#M1578649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T14:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Split field values into range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706634#M1578650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;why don´t you put in in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do it 20 times.&lt;/P&gt;&lt;P&gt;SPLIT l_bukrs_string AT ';' INTO l_bukrs1 text1.&lt;/P&gt;&lt;P&gt;move l_bukrs to itab-bukrs.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Nicole&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:21:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706634#M1578650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T14:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Split field values into range</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706635#M1578651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You can use same slit statement to store data in internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My idea is to slit the file into internal table and use this internal table like for all entries in or like select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SPLIT text_flie AT ',' into table IT_BUKRS.
select * from dbtable for all entries in it_BUKRS
  condn
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Shrini you I posted on the same time, I did not copied, sorry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anmol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: anmol112 on Feb 15, 2011 9:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Feb 2011 14:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/split-field-values-into-range/m-p/7706635#M1578651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-15T14:24:41Z</dc:date>
    </item>
  </channel>
</rss>

