<?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: Read statement with duplicate key fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963624#M1603096</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop on EKBE Internal table as well to fetch all entries of PO. Use Parallel cursor to optmize performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;/A&gt;&lt;EM&gt;Code&lt;/EM&gt;for&lt;EM&gt;Parallel&lt;/EM&gt;Cursor&lt;EM&gt;-&lt;/EM&gt;Loop+Processing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jun 2011 17:39:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-06-10T17:39:26Z</dc:date>
    <item>
      <title>Read statement with duplicate key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963623#M1603095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an internal table(EKBE) with 8 fields &lt;/P&gt;&lt;P&gt;ebeln ebelp vgabe gjahr belnr budat wrbtr refkey &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populating the first 7 fields from EKBE table with VGABE = 2 and PO#, concatenating the WRBTR and GJAHR to get the Refkey and passing this to the 8th field. &lt;/P&gt;&lt;P&gt;Using this refkey, getting the document numbers from BKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looping another internal table into a work area and reading the above internal table by passing the ebeln field and I am doing some calculations ,etc. &lt;/P&gt;&lt;P&gt;A custom table is getting updated from the above work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table EKBE can have the same PO numbers with the same line item numbers but with different ref key's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, when I am reading the int. tab, it is reading only one record, since I have no other key's to read except EBELN. So for one PO# it is reading only 1 ref key, I cannot use the line item# as a key, as the line item#'s never match, even if they match they could be same PO# with same line item# and different ref key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 17:19:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963623#M1603095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T17:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement with duplicate key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963624#M1603096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop on EKBE Internal table as well to fetch all entries of PO. Use Parallel cursor to optmize performance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP&lt;/A&gt;&lt;EM&gt;Code&lt;/EM&gt;for&lt;EM&gt;Parallel&lt;/EM&gt;Cursor&lt;EM&gt;-&lt;/EM&gt;Loop+Processing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 17:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963624#M1603096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T17:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement with duplicate key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963625#M1603097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Parallel cursor to optmize performance. &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use sorted tables to help performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 18:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-with-duplicate-key-fields/m-p/7963625#M1603097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-10T18:39:05Z</dc:date>
    </item>
  </channel>
</rss>

