<?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: Tabel alternative in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944815#M694215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed my query as per your advise , but still there is no change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT shkzg&lt;/P&gt;&lt;P&gt;         skfbt&lt;/P&gt;&lt;P&gt;         dmbtr&lt;/P&gt;&lt;P&gt;         wskto&lt;/P&gt;&lt;P&gt;         belnr&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         bukrs&lt;/P&gt;&lt;P&gt;         qbshb&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         bschl&lt;/P&gt;&lt;P&gt;         nebtr&lt;/P&gt;&lt;P&gt;         FROM bseg&lt;/P&gt;&lt;P&gt;           INTO TABLE ibseg&lt;/P&gt;&lt;P&gt;          WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;            AND belnr NE p_vblnr&lt;/P&gt;&lt;P&gt;            AND auggj = p_gjahr&lt;/P&gt;&lt;P&gt;            AND augbl = p_vblnr&lt;/P&gt;&lt;P&gt;            AND koart = 'K'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2007 06:03:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-22T06:03:20Z</dc:date>
    <item>
      <title>Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944811#M694211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I have used the following query, but it takes long time to execute and affects the performance too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       How can i change this query, i tried the BSAK and BSIK tables also, but&lt;/P&gt;&lt;P&gt;      KOART and NEBTR fields not available in those tables, so am supposed to use the table BSEG. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Please advise me to improve the performance of the coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT shkzg&lt;/P&gt;&lt;P&gt;         skfbt&lt;/P&gt;&lt;P&gt;         dmbtr&lt;/P&gt;&lt;P&gt;         wskto&lt;/P&gt;&lt;P&gt;         belnr&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         bukrs&lt;/P&gt;&lt;P&gt;         qbshb&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         bschl&lt;/P&gt;&lt;P&gt;         nebtr&lt;/P&gt;&lt;P&gt;         FROM bseg&lt;/P&gt;&lt;P&gt;           INTO TABLE ibseg&lt;/P&gt;&lt;P&gt;          WHERE augbl = p_vblnr&lt;/P&gt;&lt;P&gt;            AND bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;            AND koart = 'K'&lt;/P&gt;&lt;P&gt;            AND auggj = p_gjahr&lt;/P&gt;&lt;P&gt;            AND belnr NE p_vblnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 05:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944811#M694211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T05:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944812#M694212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change your WHERE clause and it will help for runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firs get data for bukrs = p_bukrs and belnr NE p_vblnr and auggj = p_gjahr. I nthis way you are passing all primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once data is in the internal table then filter the same with conditions augbl = p_vblnr and koart = 'K'&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;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 05:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944812#M694212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T05:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944813#M694213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE&lt;/P&gt;&lt;P&gt;bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;AND belnr NE p_vblnr&lt;/P&gt;&lt;P&gt;AND auggj = p_gjahr and&lt;/P&gt;&lt;P&gt;augbl = p_vblnr and&lt;/P&gt;&lt;P&gt;AND koart = 'K'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 05:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944813#M694213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T05:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944814#M694214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;try to use only the primary key fields in where clause .&lt;/P&gt;&lt;P&gt;It will drastically improve thr performance.&lt;/P&gt;&lt;P&gt;so try to avoid comparing non primary key fields in where statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if usefull......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944814#M694214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944815#M694215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have changed my query as per your advise , but still there is no change in performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT shkzg&lt;/P&gt;&lt;P&gt;         skfbt&lt;/P&gt;&lt;P&gt;         dmbtr&lt;/P&gt;&lt;P&gt;         wskto&lt;/P&gt;&lt;P&gt;         belnr&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         bukrs&lt;/P&gt;&lt;P&gt;         qbshb&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         bschl&lt;/P&gt;&lt;P&gt;         nebtr&lt;/P&gt;&lt;P&gt;         FROM bseg&lt;/P&gt;&lt;P&gt;           INTO TABLE ibseg&lt;/P&gt;&lt;P&gt;          WHERE bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;            AND belnr NE p_vblnr&lt;/P&gt;&lt;P&gt;            AND auggj = p_gjahr&lt;/P&gt;&lt;P&gt;            AND augbl = p_vblnr&lt;/P&gt;&lt;P&gt;            AND koart = 'K'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944815#M694215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944816#M694216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you change AUGGJ to GJAHR?? Check once if Fiscal year and fiscal year of posting document are same. this will save a lot of execution time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:06:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944816#M694216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944817#M694217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1-try to use move corresponding fields of statement with your select query and check the difference.&lt;/P&gt;&lt;P&gt;2-check wheather you can avoid the use of bseg table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward point if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:09:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944817#M694217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944818#M694218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ram  , &lt;/P&gt;&lt;P&gt;  What i would suggest is since you are selecting the data from one table so ,use a subset of the data used in you select statement and use if to select data from table  bseg using se11 transaction and see if the perofrmance i better or not , if it is better than you program then check the SQL trace of SE11 execution and see how the query is passed to the database by the system and try to replicate it in your program also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944818#M694218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944819#M694219</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 am supposed to check the non-primary keys in the where condition lik&lt;/P&gt;&lt;P&gt;  auggj , augbl , koart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Please advise me how to solve this probelem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Rajaram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:13:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944819#M694219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944820#M694220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a suggestion - as you have clearing document information, get first data from BSAK. also populate BUKRS BELNR and GJAHR, BUZEI, use these values to get data from BSEG. It will be fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible in BSAK, you can also use index or if required create custom index.&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;ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:24:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944820#M694220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: Tabel alternative</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944821#M694221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;shkzg&lt;/P&gt;&lt;P&gt;         skfbt&lt;/P&gt;&lt;P&gt;         dmbtr&lt;/P&gt;&lt;P&gt;         wskto&lt;/P&gt;&lt;P&gt;         belnr&lt;/P&gt;&lt;P&gt;         gjahr&lt;/P&gt;&lt;P&gt;         bukrs&lt;/P&gt;&lt;P&gt;         qbshb&lt;/P&gt;&lt;P&gt;         lifnr&lt;/P&gt;&lt;P&gt;         bschl&lt;/P&gt;&lt;P&gt;         nebtr&lt;/P&gt;&lt;P&gt;change these fields and your internal table in the right sequence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my mean the order in which they appear in bseg table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2007 06:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tabel-alternative/m-p/2944821#M694221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-22T06:28:32Z</dc:date>
    </item>
  </channel>
</rss>

