<?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: Problem in fetching data from bseg table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159646#M1821234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1 TYPE STANDARD TABLE OF (IT_BSEG TYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;XBLNR&lt;BR /&gt; BLDAT&lt;BR /&gt; WAERS&lt;BR /&gt; CPUDT&lt;BR /&gt; MONAT&lt;BR /&gt; BLART&lt;BR /&gt; BELNR&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;P_BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BLDAT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;P_BLDAT&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;IF &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF[] IS NOT INITIAL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;MENGE&lt;BR /&gt; MEINS&lt;BR /&gt; HKONT&lt;BR /&gt; WRBTR&lt;BR /&gt; MWSKZ&lt;BR /&gt; BUPLA&lt;BR /&gt; BELNR&lt;BR /&gt; VALUT&lt;BR /&gt; ZFBDT&lt;BR /&gt; ZUONR&lt;BR /&gt; BSCHL&lt;BR /&gt; AUFNR&lt;BR /&gt; SGTXT&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BSEG &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FOR ALL &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;ENTRIES &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BUKRS &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BUKRS&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;GJAHR &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;EQ&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-family: 'Courier New'; font-size: 10pt;"&gt;'12345'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-family: 'Courier New'; font-size: 10pt;"&gt;'54321' &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;APPEND &lt;SPAN class="L0S52"&gt;LINES &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;TO &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;REFRESH &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;This query will increase the performance of the report,it wannot go for dump.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 15 Mar 2014 09:01:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-15T09:01:18Z</dc:date>
    <item>
      <title>Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159637#M1821225</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;i have to fetch some fields values from bseg table, firstly i have selected some fields from bkpf table then after i passed belnr in bseg table along with other fields, but while fetching data from bseg table, it is giving "maximum run time exceeds" and not fetching any data during debugging too.&lt;/P&gt;&lt;P&gt;Here is my code, please tell me what to do next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;XBLNR&lt;BR /&gt; BLDAT&lt;BR /&gt; WAERS&lt;BR /&gt; CPUDT&lt;BR /&gt; MONAT&lt;BR /&gt; BLART&lt;BR /&gt; BELNR&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;P_BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BLDAT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;P_BLDAT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;MENGE&lt;BR /&gt; MEINS&lt;BR /&gt; HKONT&lt;BR /&gt; WRBTR&lt;BR /&gt; MWSKZ&lt;BR /&gt; BUPLA&lt;BR /&gt; BELNR&lt;BR /&gt; VALUT&lt;BR /&gt; ZFBDT&lt;BR /&gt; ZUONR&lt;BR /&gt; BSCHL&lt;BR /&gt; AUFNR&lt;BR /&gt; SGTXT&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BSEG &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BSEG&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;FOR ALL &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;ENTRIES &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: gray;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BUKRS &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: gray;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;BUKRS&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;GJAHR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: gray;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;AND&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;EQ&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #4da619;"&gt;'12345'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: #4da619;"&gt;'54321' &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: purple;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:14:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159637#M1821225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T05:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159638#M1821226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Firstly check with your database tables whether you have data for your search criteria by passing the same values in the execution of BKPF and BSEG Tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have records , put a condition after&amp;nbsp; BFKP select statement as&amp;nbsp; If IT_BKPF[] is not initial.&lt;/P&gt;&lt;P&gt;then pass the values of Bkpf as input to Bseg and fetch them too...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your select condition having many number of records , then it takes too much time to process and it will return "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;maximum run time exceeds" at a certain point of time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159638#M1821226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T05:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159639#M1821227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can use BSIS,BSAS for&amp;nbsp; GL account Based Retrieval..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159639#M1821227</guid>
      <dc:creator>sivaprasad_paruchuri</dc:creator>
      <dc:date>2014-03-14T05:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159640#M1821228</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;It is because there may be large set of records being fetched from bseg table and bkpf table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try running your report in background or refine your your selection a little.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:57:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159640#M1821228</guid>
      <dc:creator>harshsisodia31</dc:creator>
      <dc:date>2014-03-14T05:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159641#M1821229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;while fetching data from bseg table, it is giving "maximum run time exceeds" and not fetching any data .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;So&amp;nbsp; Only 2 Condition&amp;nbsp;&amp;nbsp; for this problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;1.&amp;nbsp;&amp;nbsp; Firstly you make indexer for BSEG&amp;nbsp; table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for these fields&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;BELNR,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;BUKRS,&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: white; color: black;"&gt;GJAHR&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and also add in your select query&amp;nbsp; fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;2.&amp;nbsp; And Make sure That data you try to fetch from BSEG&amp;nbsp; with reference BKPF table &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; that is&amp;nbsp; available on both table.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Please Tell Which Problem You Facing now.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 05:59:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159641#M1821229</guid>
      <dc:creator>praveenboss</dc:creator>
      <dc:date>2014-03-14T05:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159642#M1821230</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;Maximum run time error on select statement occurs for the following reasons.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. When the DDIC table has a large amount of data.&lt;/P&gt;&lt;P&gt;2. When the key fields of the DDIC table are not properly considered in the WHERE clause of the&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT statement.&lt;/P&gt;&lt;P&gt;3. When the FOR ALL ENTRIES table is empty ( in your case &lt;SPAN style="color: #000000; font-family: 'Courier New';"&gt;IT_BKPF&lt;/SPAN&gt; ).&amp;nbsp; That's the reason it is a must to check wehether the itab is INITIAL or not before using it in FOR ALL ENTRIES clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if your scenario has any of the the above mentioned situations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 06:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159642#M1821230</guid>
      <dc:creator>mayur_priyan</dc:creator>
      <dc:date>2014-03-14T06:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159643#M1821231</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;&amp;nbsp; The SQL statement is problematic.&amp;nbsp; It is asking the system to run a full scan of BSEG and return all records whose hkont is '54321'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Please add &lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;parentheses like the code below.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM BSEG INTO TABLE IT_BSEG&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN IT_BKPF&lt;/P&gt;&lt;P&gt;WHERE BELNR = IT_BKPF-BELNR&lt;/P&gt;&lt;P&gt;AND BUKRS = IT_BKPF-BUKRS&lt;/P&gt;&lt;P&gt;AND GJAHR = IT_BKPF-GJAHR&lt;/P&gt;&lt;P&gt;AND ( HKONT EQ&amp;nbsp; '12345' OR HKONT EQ '54321'&amp;nbsp; ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 06:14:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159643#M1821231</guid>
      <dc:creator>former_member129652</dc:creator>
      <dc:date>2014-03-14T06:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159644#M1821232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;Hi Shweta, &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;&lt;A class="jive-link-external-small" href="https://service.sap.com/sap/support/notes/25528" style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #3778c7;"&gt;Note 25528 - Parameter rdisp/max_wprun_time&lt;/A&gt;&amp;nbsp;&amp;nbsp; Check this note &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333;"&gt;the rule of thumb that we use at in our project is any job that runs longer than 10 min has to run in the background, or else if everyone does that it will fill up the DIA processes and then no one can logon or work until they free up or system restart.&lt;A _jive_internal="true" data-containerid="2173" data-containertype="14" data-objectid="278023" data-objecttype="1" href="https://answers.sap.com/thread/278023" style="font-family: inherit; font-weight: inherit; font-style: inherit; color: #3778c7;"&gt;http://scn.sap.com/thread/278023&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 06:25:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159644#M1821232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T06:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159645#M1821233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shweta,&lt;/P&gt;&lt;P&gt;when you are using for all entries, you first check the header level data is there or not.&lt;/P&gt;&lt;P&gt;you should not check the header data it fetch the total item level data.&amp;nbsp; then it takes too much time to process and it will return "&lt;SPAN style="color: #333333; font-size: 12px;"&gt;maximum run time exceeds" .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;before writing the for all entries you check that internal table having data or not&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;lakshman.&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Mar 2014 06:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159645#M1821233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-14T06:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159646#M1821234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1 TYPE STANDARD TABLE OF (IT_BSEG TYPE)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;XBLNR&lt;BR /&gt; BLDAT&lt;BR /&gt; WAERS&lt;BR /&gt; CPUDT&lt;BR /&gt; MONAT&lt;BR /&gt; BLART&lt;BR /&gt; BELNR&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;P_BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BLDAT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;P_BLDAT&lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt;IF &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF[] IS NOT INITIAL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;SELECT &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;MENGE&lt;BR /&gt; MEINS&lt;BR /&gt; HKONT&lt;BR /&gt; WRBTR&lt;BR /&gt; MWSKZ&lt;BR /&gt; BUPLA&lt;BR /&gt; BELNR&lt;BR /&gt; VALUT&lt;BR /&gt; ZFBDT&lt;BR /&gt; ZUONR&lt;BR /&gt; BSCHL&lt;BR /&gt; AUFNR&lt;BR /&gt; SGTXT&lt;BR /&gt; BUKRS&lt;BR /&gt; GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BSEG &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;INTO TABLE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;FOR ALL &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;ENTRIES &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;IN &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;WHERE &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BELNR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BUKRS &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;BUKRS&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;GJAHR &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BKPF&lt;/SPAN&gt;&lt;SPAN style="color: gray; font-family: 'Courier New'; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;GJAHR&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;AND&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;EQ&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-family: 'Courier New'; font-size: 10pt;"&gt;'12345'&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;OR &lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;HKONT &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;EQ &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; font-family: 'Courier New'; font-size: 10pt;"&gt;'54321' &lt;/SPAN&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;APPEND &lt;SPAN class="L0S52"&gt;LINES &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;OF &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;TO &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;REFRESH &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;CLEAR &lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;IT_BSEG1&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-family: 'Courier New'; font-size: 10pt;"&gt;This query will increase the performance of the report,it wannot go for dump.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Mar 2014 09:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159646#M1821234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-15T09:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159647#M1821235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is why don't you try with INNER JOINS, as INNER JOINS has always the better performance than FOR ALL ENTRIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You won't get the runtime error if you use INNER JOINS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer to the below links which explains why INNER JOINS is better than For all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://scn.sap.com/thread/919187" title="https://scn.sap.com/thread/919187"&gt;Inner Joins vs For All Entries - performance query | SCN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/Community/ABAP+Performance+tips" title="http://wiki.scn.sap.com/wiki/display/Community/ABAP+Performance+tips"&gt;ABAP Performance tips - Contributor Corner - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;TP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 06:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159647#M1821235</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-16T06:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159648#M1821236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;My question is why don't you try with INNER JOINS, as INNER JOINS has always the better performance than FOR ALL ENTRIES.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How would you use join on BSEG? What was your rationale behind posting this incorrect info (using JOINs on BSEG)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 13:01:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159648#M1821236</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2014-03-16T13:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159649#M1821237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right, we can't use for all entries with BSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I didn't analyse it before posting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please remove the comments from the discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 13:21:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159649#M1821237</guid>
      <dc:creator>ThangaPrakash</dc:creator>
      <dc:date>2014-03-16T13:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159650#M1821238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading data from BSEG Table is always time consuming sometimes also resulting in the dump that you got. Solution for this would be to optimize the select statment by better data fetching techniques like Open Cursor method or reading less number of records at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Mar 2014 13:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159650#M1821238</guid>
      <dc:creator>sudheendra_puthuraya4</dc:creator>
      <dc:date>2014-03-16T13:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159651#M1821239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Shweta ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the Range of Belnr in stead of the For all entries and try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;XBLNR&lt;/P&gt;&lt;P&gt;BLDAT&lt;/P&gt;&lt;P&gt;WAERS&lt;/P&gt;&lt;P&gt;CPUDT&lt;/P&gt;&lt;P&gt;MONAT&lt;/P&gt;&lt;P&gt;BLART&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;BKPF&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;IT_BKPF&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;BELNR &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;P_BELNR&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;BLDAT &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;P_BLDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: r_belnr &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;range &lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;bkpf-BELNR .&lt;/P&gt;&lt;P&gt;data: wa_bkpf &lt;SPAN class="L0S52"&gt;like &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;line &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;of &lt;/SPAN&gt;it_bkpf .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;loop &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;at &lt;/SPAN&gt;it_bkpf &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;wa_bkpf .&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_belnr-sign = &lt;SPAN class="L0S33"&gt;'I' &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_belnr-option = &lt;SPAN class="L0S33"&gt;'EQ'&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; r_belnr-low = wa_bkpf-belnr .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;r_belnr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;endloop &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;MENGE&lt;/P&gt;&lt;P&gt;MEINS&lt;/P&gt;&lt;P&gt;HKONT&lt;/P&gt;&lt;P&gt;WRBTR&lt;/P&gt;&lt;P&gt;MWSKZ&lt;/P&gt;&lt;P&gt;BUPLA&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;VALUT&lt;/P&gt;&lt;P&gt;ZFBDT&lt;/P&gt;&lt;P&gt;ZUONR&lt;/P&gt;&lt;P&gt;BSCHL&lt;/P&gt;&lt;P&gt;AUFNR&lt;/P&gt;&lt;P&gt;SGTXT&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;GJAHR&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;BSEG &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;IT_BSEG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;WHERE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; belnr &lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;r_belnr&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; BELNR = IT_BKPF-BELNR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;BUKRS = IT_BKPF-BUKRS&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AND &lt;/SPAN&gt;GJAHR = IT_BKPF-GJAHR&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;AND&amp;nbsp; &lt;/SPAN&gt;HKONT &lt;SPAN class="L0S52"&gt;EQ&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'12345'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;OR &lt;/SPAN&gt;HKONT &lt;SPAN class="L0S52"&gt;EQ &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'54321' &lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joyjit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159651#M1821239</guid>
      <dc:creator>former_member187109</dc:creator>
      <dc:date>2014-03-20T09:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159652#M1821240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 09:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159652#M1821240</guid>
      <dc:creator>former_member391265</dc:creator>
      <dc:date>2014-03-20T09:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in fetching data from bseg table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159653#M1821241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all check if table &lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;IT_BKPF is not initial if not initial then only write second query. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Avoid using OR condition where .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Instead filter those records from your internal table this will improve performance &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;hope it helps/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Thanks &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Rahul&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 10:29:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-fetching-data-from-bseg-table/m-p/10159653#M1821241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-20T10:29:41Z</dc:date>
    </item>
  </channel>
</rss>

