<?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 Issue While Fetching Record From MBEW Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041588#M719853</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use Logical Database, if u cant find then let me know then i would give u correct LDB to use. LDB's are way more faster then using our queries. Sorry i dont have the system now. I will also let u know how to fetch data dynamically and with static attribute.&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;Usman Malik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Nov 2007 08:41:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-01T08:41:08Z</dc:date>
    <item>
      <title>Performance Issue While Fetching Record From MBEW Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041586#M719851</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;&lt;/P&gt;&lt;P&gt;We are fetching records from mbew table using key fields matnr,bwkey.&lt;/P&gt;&lt;P&gt;When we use for all entries option in select statement the system gets hang.&lt;/P&gt;&lt;P&gt;So we are using concept of package size to increase the performance.&lt;/P&gt;&lt;P&gt;It works fine for minimum no  of records but for large no of records it doesnt work.&lt;/P&gt;&lt;P&gt;Kindly guide us thru efficient way to resolve this issu.&lt;/P&gt;&lt;P&gt;The code is attached herewith for your reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM mard&lt;/P&gt;&lt;P&gt;               INTO TABLE it_mard_temp package size 400&lt;/P&gt;&lt;P&gt;               FOR ALL ENTRIES IN it_s033&lt;/P&gt;&lt;P&gt;               WHERE matnr EQ it_s033-matnr&lt;/P&gt;&lt;P&gt;               AND werks EQ it_s033-werks.&lt;/P&gt;&lt;P&gt;        IF sy-subrc EQ 4.&lt;/P&gt;&lt;P&gt;          MESSAGE e002(sy) WITH 'Record not found'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF it_mard_temp[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          SELECT matnr&lt;/P&gt;&lt;P&gt;                 bwkey&lt;/P&gt;&lt;P&gt;                 verpr FROM mbew&lt;/P&gt;&lt;P&gt;                 INTO TABLE it_mbew_temp&lt;/P&gt;&lt;P&gt;                 FOR ALL ENTRIES IN it_mard_temp&lt;/P&gt;&lt;P&gt;                 WHERE matnr = it_mard_temp-matnr&lt;/P&gt;&lt;P&gt;                 AND   bwkey = it_mard_temp-werks.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        append lines of it_mard_temp to it_mard.&lt;/P&gt;&lt;P&gt;        append lines of it_mbew_temp to it_mbew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        refresh: it_mard_temp,it_mbew_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;***************************Point is assured **********************&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041586#M719851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue While Fetching Record From MBEW Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041587#M719852</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;Try using OPEN CURSOR..CLOSE CURSOR...command .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Praveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041587#M719852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue While Fetching Record From MBEW Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041588#M719853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nope,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to use Logical Database, if u cant find then let me know then i would give u correct LDB to use. LDB's are way more faster then using our queries. Sorry i dont have the system now. I will also let u know how to fetch data dynamically and with static attribute.&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;Usman Malik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:41:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041588#M719853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue While Fetching Record From MBEW Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041589#M719854</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;use the function module below it resets the runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM mard&lt;/P&gt;&lt;P&gt;INTO TABLE it_mard_temp package size 400&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_s033&lt;/P&gt;&lt;P&gt;WHERE matnr EQ it_s033-matnr&lt;/P&gt;&lt;P&gt;AND werks EQ it_s033-werks.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 4.&lt;/P&gt;&lt;P&gt;MESSAGE e002(sy) WITH 'Record not found'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'ARCH_ANA_PROGRESS_INDICATOR'&lt;/P&gt;&lt;P&gt;         EXPORTING&lt;/P&gt;&lt;P&gt;              TEXT = 'Processing'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF it_mard_temp[] IS NOT INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr&lt;/P&gt;&lt;P&gt;bwkey&lt;/P&gt;&lt;P&gt;verpr FROM mbew&lt;/P&gt;&lt;P&gt;INTO TABLE it_mbew_temp&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN it_mard_temp&lt;/P&gt;&lt;P&gt;WHERE matnr = it_mard_temp-matnr&lt;/P&gt;&lt;P&gt;AND bwkey = it_mard_temp-werks.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of it_mard_temp to it_mard.&lt;/P&gt;&lt;P&gt;append lines of it_mbew_temp to it_mbew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh: it_mard_temp,it_mbew_temp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Nov 2007 08:42:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041589#M719854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-01T08:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Performance Issue While Fetching Record From MBEW Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041590#M719855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks shiv . point has given&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 06:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-while-fetching-record-from-mbew-table/m-p/3041590#M719855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T06:35:35Z</dc:date>
    </item>
  </channel>
</rss>

