<?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: OO Call Method - How to Efficiently Export a Large Internal Table to Method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969311#M700740</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 devide this large internal table into few smaller internal tables and keep an index of the same. Next time you can just go to the internal table required and fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have devided like this if data exceeds more than 2GB. Please go through the following link.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/how%2bto%2bselect%2bdata%2bfrom%2blarge%2btables"&amp;gt;https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/how%2bto%2bselect%2bdata%2bfrom%2blarge%2btables&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This just gives an idea. If you like this idea and want any more information please get bk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2007 03:11:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-05T03:11:17Z</dc:date>
    <item>
      <title>OO Call Method - How to Efficiently Export a Large Internal Table to Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969308#M700737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to create methods and to keep things as modularized as possible. I want to call a method from my program to read line items from my calling program's internal table called itab_BSEG. I can use a binary search and field symbols in the method for efficiency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in order to do this I would need to pass the large itab_BSEG to the method, so the method would return a small table of line items, itab_line_items, for my Order Number. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to efficiently pass the large internal table of itab_BSEG to the method for processing? Or, in this case am I better off just processing the data from where itab_BSEG lives in the calling program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've heard of shared memory, are there any other ways to do this with pointers and addresses so the large internal table can be passed efficiently with little crunch on the system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank-You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 20:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969308#M700737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T20:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: OO Call Method - How to Efficiently Export a Large Internal Table to Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969309#M700738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe, try this trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Define your internal table as a global data in your calling program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, in your method, do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: l_itab_name(30) VALUE '(ZPROGRAMNAME)-ITABNAME[]'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;itab&amp;gt; TYPE TABLE. (or TYPE BSEG_TABLETYPE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN l_itab_name TO &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, you can do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;itab&amp;gt; INTO workarea. (or ASSIGNING &amp;lt;workare&amp;gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 21:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969309#M700738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T21:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: OO Call Method - How to Efficiently Export a Large Internal Table to Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969310#M700739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you have defined the method, it has a parameter to pass the itab_BSEG. Right...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By default pass by reference is used in methods which of course uses memory sharing. In case you want to explicitly pass the value, you have to use the &amp;lt;b&amp;gt;(VALUE)&amp;lt;/b&amp;gt; addition. The syntax for reference/value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHODS meth IMPORTING REFERENCE(parameter) ....&lt;/P&gt;&lt;P&gt;METHODS meth RETURNING VALUE(parameter) ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other way can be putting the itab_BSEG as an attribute in a separate class which (works as a model) can be accessed from other objects as desired.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Nov 2007 17:08:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969310#M700739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-04T17:08:39Z</dc:date>
    </item>
    <item>
      <title>Re: OO Call Method - How to Efficiently Export a Large Internal Table to Method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969311#M700740</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 devide this large internal table into few smaller internal tables and keep an index of the same. Next time you can just go to the internal table required and fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have devided like this if data exceeds more than 2GB. Please go through the following link.&lt;/P&gt;&lt;P&gt;&amp;lt;a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/how%2bto%2bselect%2bdata%2bfrom%2blarge%2btables"&amp;gt;https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/how%2bto%2bselect%2bdata%2bfrom%2blarge%2btables&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This just gives an idea. If you like this idea and want any more information please get bk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful,&lt;/P&gt;&lt;P&gt;Aleem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2007 03:11:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-call-method-how-to-efficiently-export-a-large-internal-table-to-method/m-p/2969311#M700740</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-05T03:11:17Z</dc:date>
    </item>
  </channel>
</rss>

