<?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 Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749141#M1459841</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 to avoid using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CORRESPONDING FIELDS OF . - alternative - &amp;gt; declare the internal table with the fields in the same order as that of the fields being selected in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you checking out whether the availability of the data in the internal table "it_in"?&lt;/P&gt;&lt;P&gt;if 'NO", then do not proceed for the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Apr 2010 02:47:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-08T02:47:14Z</dc:date>
    <item>
      <title>Time out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749140#M1459840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;     I use the parallel way to get data from two large table.  the SQL is below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'ZIMMA011'&lt;/P&gt;&lt;P&gt;          STARTING NEW TASK l_taskname&lt;/P&gt;&lt;P&gt;          DESTINATION IN GROUP l_srv_grp&lt;/P&gt;&lt;P&gt;          PERFORMING return_back_this_task&lt;/P&gt;&lt;P&gt;          ON END OF TASK&lt;/P&gt;&lt;P&gt;          TABLES&lt;/P&gt;&lt;P&gt;            it_in     = lt_component&lt;/P&gt;&lt;P&gt;            it_plant  = gs_werks&lt;/P&gt;&lt;P&gt;            it_storl  = gs_lgort&lt;/P&gt;&lt;P&gt;            it_bwart1 = s_bwart1&lt;/P&gt;&lt;P&gt;            it_bwart2 = s_bwart2&lt;/P&gt;&lt;P&gt;            it_date   = lt_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In function ZIMMA011 the code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT mseg&lt;SUB&gt;mblnr mseg&lt;/SUB&gt;zeile mkpf&lt;SUB&gt;budat mkpf&lt;/SUB&gt;cpudt mkpf&lt;SUB&gt;cputm mseg&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;           mseg&lt;SUB&gt;menge mseg&lt;/SUB&gt;meins mseg~shkzg&lt;/P&gt;&lt;P&gt;           mseg&lt;SUB&gt;werks mseg&lt;/SUB&gt;lgort&lt;/P&gt;&lt;P&gt;           mseg~bwart&lt;/P&gt;&lt;P&gt;      FROM mkpf JOIN mseg&lt;/P&gt;&lt;P&gt;        ON mkpf&lt;SUB&gt;mblnr = mseg&lt;/SUB&gt;mblnr&lt;/P&gt;&lt;P&gt;      INTO CORRESPONDING FIELDS OF TABLE it_out&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN it_in&lt;/P&gt;&lt;P&gt;     WHERE  matnr = it_in-matnr&lt;/P&gt;&lt;P&gt;       AND  werks IN it_plant&lt;/P&gt;&lt;P&gt;       AND  lgort IN it_lgort&lt;/P&gt;&lt;P&gt;       AND  ( bwart IN it_bwart1 OR bwart IN it_bwart2 )&lt;/P&gt;&lt;P&gt;       AND cpudt IN it_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the inner table has 2000 records, when I run foreground it is OK, but short dump with  CALL_FUNCTION_REMOTE_ERROR result from Time limit exceeded. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error point:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 1449 *&amp;amp;RECEIVE RESULTS FROM aRFC calls&lt;/P&gt;&lt;P&gt; 1450   REFRESH lt_mseg.&lt;/P&gt;&lt;P&gt;=====   RECEIVE RESULTS FROM FUNCTION 'ZIMMA011'&lt;/P&gt;&lt;P&gt; 1452     TABLES&lt;/P&gt;&lt;P&gt; 1453        it_out                        = lt_mseg.&lt;/P&gt;&lt;P&gt; 1454&lt;/P&gt;&lt;P&gt; 1455   IF l_taskname &amp;lt;&amp;gt; 'TASK'.&lt;/P&gt;&lt;P&gt; 1456     g_running = g_running - 1.&lt;/P&gt;&lt;P&gt; 1457   ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: zheng michael on Apr 8, 2010 2:30 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 8, 2010 9:08 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 00:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749140#M1459840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T00:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Time out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749141#M1459841</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 to avoid using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CORRESPONDING FIELDS OF . - alternative - &amp;gt; declare the internal table with the fields in the same order as that of the fields being selected in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you checking out whether the availability of the data in the internal table "it_in"?&lt;/P&gt;&lt;P&gt;if 'NO", then do not proceed for the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Apr 2010 02:47:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749141#M1459841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-08T02:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Time out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749142#M1459842</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;1) Before the select statement,  add the condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if it_in[] is not initial.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) In select statement, i think you should add one more condition while joining MKPF and MSEG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mkpf~mblnr = mseg~mblnr
and mkpf~mjahr = mseg~mjahr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;which ensure the use of primary key during table join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Check whether index exists for the where condition field sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Apr 2010 09:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749142#M1459842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-11T09:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Time out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749143#M1459843</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;   Pls add  MJAHR in Join condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This select can not use useful index.&lt;/P&gt;&lt;P&gt;  Pls try add to foliowing index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         MANDT&lt;/P&gt;&lt;P&gt;        CPUDT&lt;/P&gt;&lt;P&gt;       MBLNR&lt;/P&gt;&lt;P&gt;       MJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;   Gaito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Apr 2010 08:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/time-out-error/m-p/6749143#M1459843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-15T08:56:09Z</dc:date>
    </item>
  </channel>
</rss>

