<?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: Performance optimisation for GLPCA-MARA joins in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037604#M1808610</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Faizur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To join MARA &amp;amp; GLPCA tables efficiently, you need to have atleast one common key field. if not, Create Secondary Index in GLPCA table with MATNR as field &amp;amp; then join both the tables with MATNR . It should work, i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Feb 2014 22:46:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-02-12T22:46:27Z</dc:date>
    <item>
      <title>Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037599#M1808605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fetch data from multiples tables and the chunk of data is coming from GLPCA and MARA and display it in&lt;/P&gt;&lt;P&gt;an ALV.&lt;/P&gt;&lt;P&gt;The expected records is around 1 million.&lt;/P&gt;&lt;P&gt;I'm joining both these tables using the field MATNR as its the only key field in MARA, however I did not&lt;/P&gt;&lt;P&gt;get any significant improvement in the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest me any&amp;nbsp; other performance optimisation technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:20:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037599#M1808605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T12:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037600#M1808606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1 million records is too much for ALV display, you are likely going to blow the available memory allocation. I assume you are not planning to look at that much data, do you actually want to download it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATNR is key field of MARA, but not of GLPCA. I assume GLPCA is the leading table in your join, but what is your WHERE-conditions? Please paste your join-statement for further inspection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:31:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037600#M1808606</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-01-21T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037601#M1808607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas. Yes, I'll be displaying&amp;nbsp; around 1000 records in the ALV and the total records will be downloaded in a file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My query looks something like this:-&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; SELECT &amp;lt;field1..field2..&amp;gt;&lt;BR /&gt;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glpca&lt;BR /&gt;&amp;nbsp; INTO TABLE lt_glpca&lt;BR /&gt;&amp;nbsp; WHERE rbukrs IN s_rbukrs&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; racct&amp;nbsp; IN s_racct&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; ryear&amp;nbsp; IN s_ryear&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; poper&amp;nbsp; IN s_poper&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; blart&amp;nbsp; IN s_blart&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; werks&amp;nbsp; IN s_werks&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; matnr&amp;nbsp; IN s_matnr&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; vkbur&amp;nbsp; IN s_vkbur&lt;BR /&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; kunnr&amp;nbsp; IN s_kunnr.&lt;BR /&gt;&amp;nbsp; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; IF lt_glpca[] IS NOT INITIAL.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&amp;lt;field1...field2..&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM mara&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE lt_mara&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN lt_glpca&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE matnr = lt_glpca-matnr&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; zzdivision IN s_zzdiv&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; zzbusunit&amp;nbsp; IN s_zzbunt.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 12:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037601#M1808607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-21T12:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037602#M1808608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As thomas suggested, matnr is not a key field in GLPCA. There is one more approach that you can use before selecting data from MARA as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : lit_glpca Type standard table of glpca. "whateaver is type of lt_glpca&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; SELECT &amp;lt;field1..field2..&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; glpca&lt;/P&gt;&lt;P&gt;&amp;nbsp; INTO TABLE lt_glpca&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE rbukrs IN s_rbukrs&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; racct&amp;nbsp; IN s_racct&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; ryear&amp;nbsp; IN s_ryear&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; poper&amp;nbsp; IN s_poper&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; blart&amp;nbsp; IN s_blart&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; werks&amp;nbsp; IN s_werks&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; matnr&amp;nbsp; IN s_matnr&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; vkbur&amp;nbsp; IN s_vkbur&lt;/P&gt;&lt;P&gt;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; kunnr&amp;nbsp; IN s_kunnr.&lt;/P&gt;&lt;P&gt;&amp;nbsp; IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; IF lt_glpca[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh lit_glpca.&lt;/P&gt;&lt;P&gt;lit_glpca [] = lt_glpca[].&lt;/P&gt;&lt;P&gt;sort lit_glpca BY matnr zzdivision zzbusunit.&lt;/P&gt;&lt;P&gt;delete adjcent duplicate from lit_glpca comparing matnr zzdivision zzbusunit.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT&amp;lt;field1...field2..&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM mara&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; INTO TABLE lt_mara&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FOR ALL ENTRIES IN lit_glpca&lt;BR /&gt;&amp;nbsp; WHERE matnr = lit_glpca-matnr&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "Use limited matnr of new local table &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&amp;nbsp;&amp;nbsp; zzdivision IN s_zzdiv&lt;BR /&gt;&amp;nbsp; AND zzbusunit IN s_zzbunt.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF.&lt;BR /&gt;&amp;nbsp; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this. i think it could be helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deependra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037602#M1808608</guid>
      <dc:creator>deependra_shekhawat3</dc:creator>
      <dc:date>2014-01-21T13:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037603#M1808609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can very well join GLPCA and MARA via MATNR, however then you need WHERE-conditions that effectively reduce the GLPCA entries.&lt;/P&gt;&lt;P&gt;You have a bunch of selection ranges that might contain anything/nothing at runtime, so the response time is quite unpredictable by just looking at your code.&lt;/P&gt;&lt;P&gt;You should study the available indexes for GLPCA and see if you can add WHERE-conditions that make effective use of one of these indexes. Also look into technically forcing the user to enter narrow selection criteria before executing the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jan 2014 13:46:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037603#M1808609</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-01-21T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037604#M1808610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Faizur,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To join MARA &amp;amp; GLPCA tables efficiently, you need to have atleast one common key field. if not, Create Secondary Index in GLPCA table with MATNR as field &amp;amp; then join both the tables with MATNR . It should work, i think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kishor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Feb 2014 22:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037604#M1808610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-12T22:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance optimisation for GLPCA-MARA joins</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037605#M1808611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First check whether the scanning of index is full scan or not. if its full scan then probably create secondary index w.r.t relevant fields in GLPCA table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : GLPCA is very very biggest table in r/3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vadamalai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2014 07:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-optimisation-for-glpca-mara-joins/m-p/10037605#M1808611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-02-18T07:08:32Z</dc:date>
    </item>
  </channel>
</rss>

