<?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: Please help me tune this program, in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323851#M1226975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use standard tables !!!!!!! They are o.k. in old coding in new coding you should&lt;/P&gt;&lt;P&gt;use only sorted and hashed tables and performance works automatically !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget about sorting and deleting duplicates !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; remove duplicates from the internal table 2.&lt;/P&gt;&lt;P&gt;use a hashed table with a unique key and collect you entries in the hash table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use sorted tables if the key is non-unique, or if the need also parts of the key!&lt;/P&gt;&lt;P&gt;Use hashed tables if the key must be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even for the append it is possible to APPEND into a sorted table, the records must come in a sort&lt;/P&gt;&lt;P&gt;order, i.e. if they come from a sorted table then it is o.k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I write is not imagination but the only really commendable way of handling internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Mar 2009 10:32:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-11T10:32:01Z</dc:date>
    <item>
      <title>Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323846#M1226970</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 item master data table and a transaction table.&lt;/P&gt;&lt;P&gt;For a given criteria I have to find items from master data table which do no exits in transaction table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have listed my flow below, can you please advice if there is any other optimal way of doing it.&lt;/P&gt;&lt;P&gt;1. For the given criteria read items from master data table into internal table 1. Sort the internal table 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For the given criteria read items from transaction table into internal table 2. Sort and remove duplicates from the internal table 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Loop at internal table 1, and check if item exists in internal table 2. Append items not in internal table 2 into another internal table 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end internal table 3 will have the items I am interested in. I can sort and use binary search addition, but is there any other efficient way of doing this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323846#M1226970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323847#M1226971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nothing..its jus very straight forward!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:18:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323847#M1226971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:18:44Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323848#M1226972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, both master and transaction table are very large,&lt;/P&gt;&lt;P&gt;Though I will as much selections I can while loading internal table, &lt;/P&gt;&lt;P&gt;But just want to figure out if there is any better alogorithm to do this task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:21:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323848#M1226972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323849#M1226973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your flow is correct . Go ahead . To avoid Performance Issues try to get the values of all the key fields of the table from the user via Selection Screen , so that your DB fetch will be faster . Looping and finding out the odd with not take much time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323849#M1226973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323850#M1226974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to the proper forum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please try to use an informative subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323850#M1226974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Please help me tune this program,</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323851#M1226975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't use standard tables !!!!!!! They are o.k. in old coding in new coding you should&lt;/P&gt;&lt;P&gt;use only sorted and hashed tables and performance works automatically !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget about sorting and deleting duplicates !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; remove duplicates from the internal table 2.&lt;/P&gt;&lt;P&gt;use a hashed table with a unique key and collect you entries in the hash table, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use sorted tables if the key is non-unique, or if the need also parts of the key!&lt;/P&gt;&lt;P&gt;Use hashed tables if the key must be unique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even for the append it is possible to APPEND into a sorted table, the records must come in a sort&lt;/P&gt;&lt;P&gt;order, i.e. if they come from a sorted table then it is o.k.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I write is not imagination but the only really commendable way of handling internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 10:32:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-me-tune-this-program/m-p/5323851#M1226975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-11T10:32:01Z</dc:date>
    </item>
  </channel>
</rss>

