<?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 faster processing for bkpf? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687776#M302536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently my code is as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT   * FROM bkpf INTO CORRESPONDING FIELDS OF TABLE zbkpf&lt;/P&gt;&lt;P&gt;                      WHERE   bukrs = pbukrs&lt;/P&gt;&lt;P&gt;                              AND gjahr = pgjahr&lt;/P&gt;&lt;P&gt;                              AND belnr IN belnr&lt;/P&gt;&lt;P&gt;                              AND bstat = space&lt;/P&gt;&lt;P&gt;                              AND monat = period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these paramaters are the indexs...&lt;/P&gt;&lt;P&gt;Still its taking a long time... &lt;/P&gt;&lt;P&gt;any idea to share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 06:24:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-28T06:24:24Z</dc:date>
    <item>
      <title>faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687776#M302536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Currently my code is as below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT   * FROM bkpf INTO CORRESPONDING FIELDS OF TABLE zbkpf&lt;/P&gt;&lt;P&gt;                      WHERE   bukrs = pbukrs&lt;/P&gt;&lt;P&gt;                              AND gjahr = pgjahr&lt;/P&gt;&lt;P&gt;                              AND belnr IN belnr&lt;/P&gt;&lt;P&gt;                              AND bstat = space&lt;/P&gt;&lt;P&gt;                              AND monat = period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these paramaters are the indexs...&lt;/P&gt;&lt;P&gt;Still its taking a long time... &lt;/P&gt;&lt;P&gt;any idea to share?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:24:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687776#M302536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687777#M302537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Instead of using INTO CORRESPONDING FIELDS OF TABLE zbkpf&lt;/P&gt;&lt;P&gt; declare a type like types: begin of itab ,&lt;/P&gt;&lt;P&gt; field1&lt;/P&gt;&lt;P&gt;field2&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this table should include all the required fields .&lt;/P&gt;&lt;P&gt;After that :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM bkpf INTO table itab&lt;/P&gt;&lt;P&gt;WHERE bukrs = pbukrs&lt;/P&gt;&lt;P&gt;AND gjahr = pgjahr&lt;/P&gt;&lt;P&gt;AND belnr IN belnr&lt;/P&gt;&lt;P&gt;AND bstat = space&lt;/P&gt;&lt;P&gt;AND monat = period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687777#M302537</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2006-11-28T06:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687778#M302538</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;don't use INTO CORRESPONDING FIELDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare zbkpf with same structure as bkpf and then use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM bkpf &amp;lt;b&amp;gt;INTO TABLE zbkpf&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE bukrs = pbukrs&lt;/P&gt;&lt;P&gt;AND gjahr = pgjahr&lt;/P&gt;&lt;P&gt;AND belnr IN belnr&lt;/P&gt;&lt;P&gt;AND bstat = space&lt;/P&gt;&lt;P&gt;AND monat = period.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687778#M302538</guid>
      <dc:creator>dani_mn</dc:creator>
      <dc:date>2006-11-28T06:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687779#M302539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Do you need all the fields of BKPF table in your internal table ZBKPF. You can just declare your internal table with only those fields which you require for your processing &amp;amp; then select them in the same order from BKPF.&lt;/P&gt;&lt;P&gt;In this manner you can remove the usage of INTO CORRESPONDING FIELDS OF TABLE construct as well as select *. &lt;/P&gt;&lt;P&gt;This would reduce the time drastically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687779#M302539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687780#M302540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;instead declare an internal table itab with the fields required....&lt;/P&gt;&lt;P&gt;then as the table is BKPF...the best way is&lt;/P&gt;&lt;P&gt;select &amp;lt;fields&amp;gt; from bkpf&lt;/P&gt;&lt;P&gt;  where &amp;lt;conditions&amp;gt;.&lt;/P&gt;&lt;P&gt;  move data from bkpf to itab.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This process is faster for FI related tables...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:37:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687780#M302540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: faster processing for bkpf?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687781#M302541</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;Can you swap the positions of GJAHR and BELNR positions in the statement. There are chances that it is not going thru the index rather going for a full table scan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the fields which are required instead of * and use INTO TABLE rather than INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:50:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/faster-processing-for-bkpf/m-p/1687781#M302541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:50:35Z</dc:date>
    </item>
  </channel>
</rss>

