<?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: Using a standard table as an array in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088533#M1704923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Nov 2012 20:30:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-04T20:30:54Z</dc:date>
    <item>
      <title>Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088528#M1704918</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;BR /&gt;I have one&amp;nbsp; table and it has a 1000 entries&lt;BR /&gt;I'd like to take the records from it and split it across to tables so that each of them will have 500 entries.&lt;BR /&gt;** /abs/tbl_Exec_Rec is a standard table from the Table Types in the Dictionary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whole type /abs/tbl_Exec_Rec&amp;nbsp;&amp;nbsp; "This one has 1000 entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;part1&amp;nbsp; type /abs/tbl_Exec_Rec&amp;nbsp;&amp;nbsp; "This one will have 500 entries&lt;BR /&gt;part2&amp;nbsp; type /abs/tbl_Exec_Rec&amp;nbsp;&amp;nbsp; "This one will have 500 entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JAVA I don't need a loop to do this I can simply do: &lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;&lt;BR /&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;CODE&gt;&lt;SPAN class="pln"&gt;subArray &lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class="typ"&gt;Arrays&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;copyOfRange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; array&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; start&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;int&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;end&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so for my table it'll be something like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;part1&lt;CODE&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class="typ"&gt;Arrays&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;copyOfRange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;big&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;0&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; 499&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;part2&lt;CODE&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;/CODE&gt;&lt;SPAN class="typ"&gt;Arrays&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;.&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;copyOfRange&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;(&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;T&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;[]&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;big&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;&lt;SPAN class="kwd"&gt;500&lt;/SPAN&gt;&lt;SPAN class="pln"&gt;&lt;/SPAN&gt;&lt;SPAN class="pun"&gt;,&lt;/SPAN&gt;&lt;SPAN class="pln"&gt; &lt;/SPAN&gt;999&lt;SPAN class="pun"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can do it in SAP I don't want to use any loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 21:36:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088528#M1704918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-02T21:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088529#M1704919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello izhak&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;IMG alt="Not Active Contributor" class="jiveImage" src="https://community.sap.com/1050/plugins/points/resources/images/not-active-contributor.gif" title="Not Active Contributor" /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;In abap it you can do is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;Example &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;Table_1 has 1000 rows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;Table_2 and Table_3 are auxiliar tables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;*..In table_2 you can copy the rows from 1 to 499&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;SPAN class="L0S52"&gt;LINES &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF&amp;nbsp; &lt;SPAN class="j-status-levels"&gt;Table_1&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO 499&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO Table_2&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt; In table_3 you can copy the rows from 500 to 1000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;APPEND &lt;SPAN class="L0S52"&gt;LINES &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF&amp;nbsp; &lt;SPAN class="j-status-levels"&gt;Table_1&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM 500&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO 1000&lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO Table_3&lt;/SPAN&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="j-status-levels"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 22:48:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088529#M1704919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-02T22:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088530#M1704920</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;Well the answer is already given...I was just wondering what could be hidden in this java method &lt;EM&gt;&lt;SPAN class="pln"&gt;copyOfRange? &lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN class="pln"&gt;Looks a bit like an abap method or a macro where some loop occurs &lt;/SPAN&gt;&lt;EM&gt;&lt;SPAN class="pln"&gt;&lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1050/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/EM&gt; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class="pln"&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pln"&gt;Manu.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Nov 2012 23:18:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088530#M1704920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-02T23:18:51Z</dc:date>
    </item>
    <item>
      <title>Re: Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088531#M1704921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method copyOfRange is a method in java . That method use the class System.ArrayCopy and this routine use a method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public static native void arraycopy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is writing in code native for best performance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Nov 2012 23:26:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088531#M1704921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-03T23:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088532#M1704922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Manu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are some differences from other languages, so we don't find same things in ABAP. and ABAP has limitations and Flexibilities when compared to others.. when talking about its always good to have scenario&amp;nbsp; which is related to business. so that there would be some better alternative than in the lines your thinking about. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so have some business scenario&amp;nbsp; always..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 04:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088532#M1704922</guid>
      <dc:creator>andrewdiaz2000</dc:creator>
      <dc:date>2012-11-04T04:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Using a standard table as an array</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088533#M1704923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2012 20:30:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-a-standard-table-as-an-array/m-p/9088533#M1704923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-04T20:30:54Z</dc:date>
    </item>
  </channel>
</rss>

