<?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: Time out? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603672#M1276983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can use the OPEN CURSOR concept. It reduces execution time to a lot extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR C1 FOR&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr zeile bwart matnr werks lgort charg lifn &lt;/P&gt;&lt;P&gt;kunnr shkzg waers dmbtr menge &lt;/P&gt;&lt;P&gt;FROM mseg WHERE matnr IN ra_fert &lt;/P&gt;&lt;P&gt;AND mseg~werks IN ('IN00','IN09','IN02','IN08') "M1 &lt;/P&gt;&lt;P&gt;AND mseg~lgort IN it_mseg_lgort &lt;/P&gt;&lt;P&gt;AND mseg~bwart IN ('301','302') &lt;/P&gt;&lt;P&gt;AND mseg~charg IN ('A','B','C','D') &lt;/P&gt;&lt;P&gt;AND mseg~lifnr EQ space. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;    CLEAR GWA_MSEG.&lt;/P&gt;&lt;P&gt;    FETCH NEXT CURSOR C1 INTO CORRESPONDING FIELDS OF GWA_MSEG.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      APPEND GWA_MSEG TO GIT_MSEG.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CLOSE CURSOR C1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&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;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 May 2009 09:48:53 GMT</pubDate>
    <dc:creator>agnihotro_sinha2</dc:creator>
    <dc:date>2009-05-04T09:48:53Z</dc:date>
    <item>
      <title>Time out?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603670#M1276981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have more then 1 mln. rows in my db. If I write "loop' statement I have time out error.&lt;/P&gt;&lt;P&gt;Does anybody have any idea, how I can loop the db without time out error? &lt;/P&gt;&lt;P&gt;And I have a question yet. I have a "select" statement and I have to write "commit work" inside it. I know it's not possible. Is there any alternate statement for "commit work" in the "select statement"?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603670#M1276981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Time out?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603671#M1276982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can follow the below steps to avoid timed out error.&lt;/P&gt;&lt;P&gt;1. Optimise the select query on DB table by giving the appropriate conditions in the WHERE clause.&lt;/P&gt;&lt;P&gt;2. Try to run the report in background mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sowmya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603671#M1276982</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-04T09:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Time out?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603672#M1276983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;You can use the OPEN CURSOR concept. It reduces execution time to a lot extent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR C1 FOR&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr zeile bwart matnr werks lgort charg lifn &lt;/P&gt;&lt;P&gt;kunnr shkzg waers dmbtr menge &lt;/P&gt;&lt;P&gt;FROM mseg WHERE matnr IN ra_fert &lt;/P&gt;&lt;P&gt;AND mseg~werks IN ('IN00','IN09','IN02','IN08') "M1 &lt;/P&gt;&lt;P&gt;AND mseg~lgort IN it_mseg_lgort &lt;/P&gt;&lt;P&gt;AND mseg~bwart IN ('301','302') &lt;/P&gt;&lt;P&gt;AND mseg~charg IN ('A','B','C','D') &lt;/P&gt;&lt;P&gt;AND mseg~lifnr EQ space. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;    CLEAR GWA_MSEG.&lt;/P&gt;&lt;P&gt;    FETCH NEXT CURSOR C1 INTO CORRESPONDING FIELDS OF GWA_MSEG.&lt;/P&gt;&lt;P&gt;    IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;      APPEND GWA_MSEG TO GIT_MSEG.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;      CLOSE CURSOR C1.&lt;/P&gt;&lt;P&gt;      EXIT.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDDO.&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;ags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 May 2009 09:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out/m-p/5603672#M1276983</guid>
      <dc:creator>agnihotro_sinha2</dc:creator>
      <dc:date>2009-05-04T09:48:53Z</dc:date>
    </item>
  </channel>
</rss>

