<?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: Timed Out Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615585#M1087529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more major thing please remove :&lt;/P&gt;&lt;P&gt;select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;from the loop. Before the loop starts use for all entries and populate a internal table and do read operation to fetch entry.&lt;/P&gt;&lt;P&gt;Try to change this first, rather than changing nested loops.&lt;/P&gt;&lt;P&gt;If this too doesnt work out we can go for removing nested loops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Oct 2008 06:56:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-14T06:56:02Z</dc:date>
    <item>
      <title>Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615577#M1087521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     I am getting Timeout error while appending the itab3 into itab4.&lt;/P&gt;&lt;P&gt;Below is the code which iam facing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   data: l_flg.
   refresh: itab3.
   select vbak~ernam vbak~vbeln vbap~posnr
         vbap~matnr vbap~arktx vbap~kwmeng
         vbap~erdat  vbap~prodh
         vbap~netwr vbap~wavwr vbak~knumv
         vbak~auart vbak~vkbur
         vbap~knuma_pi vbap~knuma_ag
  into corresponding fields of table itab3
  from vbak inner join vbap
  on vbak~vbeln = vbap~vbeln
   where vbak~erdat in s_date
     and vbak~auart in s_type
     and vbap~prodh in s_hier
     and vbap~ernam in s_name
     and vbak~kunnr in s_soldto
     and vbak~vkorg in s_org
     and vbak~vtweg in s_dist
     and vbak~spart in s_div
     and vbak~vkbur in s_slsoff
     and vbap~knuma_pi in s_slspmo
     and vbap~knuma_ag in s_slsdl.
 

 if not itab3[] is initial.
     select  knumv
            kposn
            kappl
            kschl
            kwert  from konv
             into table tab_kwert
             for all entries in itab3
            where konv~knumv = itab3-knumv
              and konv~kposn = itab3-posnr
              and konv~kappl = 'V'
              and konv~kschl in s_ctype.

     sort tab_kwert by knumv kposn.

  endif.
    clear itab4.
  refresh itab4.
  loop at itab3 assigning &amp;lt;fs_tab3&amp;gt;.
     clear: l_flg.
      loop at tab_kwert where knumv = &amp;lt;fs_tab3&amp;gt;-knumv
                        and kposn = &amp;lt;fs_tab3&amp;gt;-posnr
                        and kappl = 'V'.
       l_flg = 'X'.
      &amp;lt;fs_tab3&amp;gt;-kschl = tab_kwert-kschl.
      &amp;lt;fs_tab3&amp;gt;-kwert = tab_kwert-kwert.
       select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln.
      if sy-subrc = 0.
        &amp;lt;fs_tab3&amp;gt;-prsdt = vbkd-prsdt.
      endif.
      itab4 = itab3.
      append itab4.
      clear  itab4.
 
      commit work.
 
    endloop.
     if l_flg is initial.
      delete itab3.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide me some tips to avoid this problem&lt;/P&gt;&lt;P&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>Tue, 14 Oct 2008 06:36:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615577#M1087521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615578#M1087522</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;How many number of records are there in internal table "itab3"  and "tab_kwert" , if there is huge number of records then this issue will come. In order to avoid this dump, ur BASIS team has to set some parameter, to increase the time out time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Navneeth Bothra on Oct 14, 2008 8:39 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:39:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615578#M1087522</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615579#M1087523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi may be your program is going in some infinite loop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     if l_flg is initial.&lt;/P&gt;&lt;P&gt;      delete itab3. "check if it executing with sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:44:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615579#M1087523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615580#M1087524</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;Check this..,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link: [Space probelm of internal table|&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="928762"&gt;&lt;/A&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naveen.I&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:45:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615580#M1087524</guid>
      <dc:creator>naveen_inuganti2</dc:creator>
      <dc:date>2008-10-14T06:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615581#M1087525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Navneeth,&lt;/P&gt;&lt;P&gt;              &lt;/P&gt;&lt;P&gt;                Thanks for your reply there are 30,000+ records are there in table tab_kwert.&lt;/P&gt;&lt;P&gt;Is there any changes need to maintain in code to increase the performance?&lt;/P&gt;&lt;P&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>Tue, 14 Oct 2008 06:46:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615581#M1087525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615582#M1087526</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; Using the CORRESPONDING FIELDS addition will bring down the performance extensively. Try to avoid it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Also ask your basis consultant to change the System parameter rdisp/max_wprun_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>Tue, 14 Oct 2008 06:47:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615582#M1087526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615583#M1087527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are selecting the data form vbak and vbap which the header and the iten table.Why cant you select the data from vabak first into an internal table and after that using the intenal table with for all enteries od the second selection fron vbap.You are havig vbeln in common and you can map the fields which are in common this will definitly increase your performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Midhun Abraham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Midhun Abraham on Oct 14, 2008 8:51 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615583#M1087527</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615584#M1087528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avoid the nested loop of itab3 and tab_kwert, internal table tab_kwert will contain only for those entries which are there in itab3 (since you are using a for all entries). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try to modify the code and paste it here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Key: Avoid nested loops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615584#M1087528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615585#M1087529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more major thing please remove :&lt;/P&gt;&lt;P&gt;select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln&lt;/P&gt;&lt;P&gt;from the loop. Before the loop starts use for all entries and populate a internal table and do read operation to fetch entry.&lt;/P&gt;&lt;P&gt;Try to change this first, rather than changing nested loops.&lt;/P&gt;&lt;P&gt;If this too doesnt work out we can go for removing nested loops.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615585#M1087529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615586#M1087530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Navneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              Before that condition only i am facing the timed out problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;   loop at itab3 assigning &amp;lt;fs_tab3&amp;gt;.
     clear: l_flg.
      loop at tab_kwert where knumv = &amp;lt;fs_tab3&amp;gt;-knumv
                        and kposn = &amp;lt;fs_tab3&amp;gt;-posnr
                        and kappl = 'V'.
       l_flg = 'X'.
      &amp;lt;fs_tab3&amp;gt;-kschl = tab_kwert-kschl.
      &amp;lt;fs_tab3&amp;gt;-kwert = tab_kwert-kwert.
       select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln.
      if sy-subrc = 0.
        &amp;lt;fs_tab3&amp;gt;-prsdt = vbkd-prsdt.
      endif.
      itab4 = itab3.
      append itab4.
      clear  itab4.
 
      commit work.
 
    endloop.

     if l_flg is initial.
      delete itab3.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any possibility to avoid the problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615586#M1087530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615587#M1087531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am trying to modify code will paste by sometime&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:59:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615587#M1087531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615588#M1087532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: l_flg.
   refresh: itab3.
   select vbak~ernam vbak~vbeln vbap~posnr
         vbap~matnr vbap~arktx vbap~kwmeng
         vbap~erdat  vbap~prodh
         vbap~netwr vbap~wavwr vbak~knumv
         vbak~auart vbak~vkbur
         vbap~knuma_pi vbap~knuma_ag
  into corresponding fields of table itab3
  from vbak inner join vbap
  on vbak~vbeln = vbap~vbeln
   where vbak~erdat in s_date
     and vbak~auart in s_type
     and vbap~prodh in s_hier
     and vbap~ernam in s_name
     and vbak~kunnr in s_soldto
     and vbak~vkorg in s_org
     and vbak~vtweg in s_dist
     and vbak~spart in s_div
     and vbak~vkbur in s_slsoff
     and vbap~knuma_pi in s_slspmo
     and vbap~knuma_ag in s_slsdl.
 
 
 if not itab3[] is initial.
     select  knumv
            kposn
            kappl
            kschl
            kwert  from konv
             into table tab_kwert
             for all entries in itab3
            where konv~knumv = itab3-knumv
              and konv~kposn = itab3-posnr
              and konv~kappl = 'V'
              and konv~kschl in s_ctype.
 
     sort tab_kwert by knumv kposn.
 
  endif.

    clear itab4.
  refresh itab4.
      loop at tab_kwert where kappl = 'V'.
       read table itab3 assigning &amp;lt;fs_tab3&amp;gt; with key knumv = &amp;lt;fs_tab3&amp;gt;-knumv
                                                     kposn = &amp;lt;fs_tab3&amp;gt;-posnr.
       if sy-subrc eq 0. 
	&amp;lt;fs_tab3&amp;gt;-kschl = tab_kwert-kschl.
        &amp;lt;fs_tab3&amp;gt;-kwert = tab_kwert-kwert.
       select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln.
       if sy-subrc = 0.
        &amp;lt;fs_tab3&amp;gt;-prsdt = vbkd-prsdt.
       endif.
       itab4 = itab3.
       append itab4.
       clear  itab4.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 07:06:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615588#M1087532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T07:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615589#M1087533</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;Is the modified piece of code fine ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Navneeth Bothra on Oct 14, 2008 11:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 07:20:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615589#M1087533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T07:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615590#M1087534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Navneeth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  Still iam facing the same problem(Timelimt exceed).My itab3 has 55000 records and tab_kwert having 320,000 records. here the part of the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; sort itab3 by vbeln posnr matnr.
     
      loop at tab_kwert where kappl = 'V'.

       read table itab3 assigning &amp;lt;fs_tab3&amp;gt; with key knumv = tab_kwert-knumv
                                                     posnr = tab_kwert-kposn.

       if sy-subrc eq 0.
       l_flg = 'X'.
	&amp;lt;fs_tab3&amp;gt;-kschl = tab_kwert-kschl.
        &amp;lt;fs_tab3&amp;gt;-kwert = tab_kwert-kwert.

       select single * from vbkd where vbeln eq &amp;lt;fs_tab3&amp;gt;-vbeln.

       if sy-subrc = 0.
        &amp;lt;fs_tab3&amp;gt;-prsdt = vbkd-prsdt.
       endif.
       itab4 = &amp;lt;fs_tab3&amp;gt;.
       append itab4.
       clear  itab4.
       endif.
    endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide me some more light on this.&lt;/P&gt;&lt;P&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>Tue, 14 Oct 2008 14:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615590#M1087534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T14:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615591#M1087535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the structure of itab3?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you use the BINARY SEARCH addition of READ TABLE?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you're doing about 8 billion reads (320,000 * 55,000 / 2). If knumv &amp;amp; posnr are the starting fields of itab3 the BINARY SEARCH addition will speed things up (about 3000 times).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If TAB has n entries, linear search runs in O( n ) time, whereas binary search takes only O( log2( n ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Michael Evershed on Oct 14, 2008 5:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 15:02:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615591#M1087535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615592#M1087536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        The strcture of itab3 is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF itab3 OCCURS 0,
      ernam      LIKE vbap-ernam,          "USER
      vbeln      LIKE vbap-vbeln,          "SALES DOC. #
      posnr      LIKE vbap-posnr,          "LINE #
      matnr      LIKE vbap-matnr,          "ITEM NUMBER
      arktx(30)  TYPE c,                   "ITEM DESCRIPTION
      kwmeng     TYPE p,                   "ORDER QUANTITY
      erdat      LIKE vbap-erdat,          "CREATE DATE
      prsdt      LIKE vbkd-prsdt,          "PRICING DATE
      prodh      LIKE vbap-prodh,          "PRODUCT HEIRACHY
      netwr      LIKE vbap-netwr,          "NET VALUE
      wavwr      LIKE vbap-wavwr,          "STD/FOB COST
      knumv      LIKE vbak-knumv,          "CONDITION #
      auart      LIKE vbak-auart,          "ORDER TYPE
      kunnr      LIKE vbak-kunnr,          "SOLD TO
      vkorg      LIKE vbak-vkorg,          "SALES ORD
      vtweg      LIKE vbak-vtweg,          "DIST CHANNEL
      spart      LIKE vbak-spart,          "DIVISION
      pltyp      LIKE vbkd-pltyp,          "PRICE LIST CODE
      konda      LIKE vbkd-konda,          "PRICE GROUP
      kbetr      LIKE konp-kbetr,          "LIST PRICE
      name1      LIKE kna1-name1,          "CUSTOMER NAME
      shname     LIKE adrc-name1,          "Ship To Name
      pct1(6)    TYPE c,                   "LIST/NET WORTH
      pct2(6)    TYPE c,                   "DLR NET/NET WORTH
      pct3(6)    TYPE c,
      vkbur      LIKE vbak-vkbur,          "SALES OFFICE
      knuma_pi   LIKE vbap-knuma_pi,
      knuma_ag   LIKE vbap-knuma_ag,
      waerk      LIKE vbak-waerk,          "CURRENCY
      dlrnt      LIKE vbap-netwr,          "DEALER NET
      kondm      LIKE mvke-kondm,          "MATERIAL PRICING CODE
      kschl      LIKE konv-kschl,          "CONDITION TYPE
      kwert      like konv-kwert,          "CONDITION VALUE
 END OF itab3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&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>Tue, 14 Oct 2008 15:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615592#M1087536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T15:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615593#M1087537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move knumv and posnr to the top of the ITAB3 structure and do a SORT itab3 BY knumv posnr just before the loop and add BINARY SEARCH to the READ TABLE line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't change ITAB3's structure create an ITAB4 with the same fields as ITAB3 but with knumv and posnr at the top and fill it with a loop of itab3. That READ TABLE command is going to kill you unless you can use a BINARY SEARCH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 16:02:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615593#M1087537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T16:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615594#M1087538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   I have modified the code like below.However when i modify the ITAB3 Again it is giving Timelimt exceed error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  modify itab3 transporting check where knumv = tab_kwert-knumv
                                         posnr = tab_kwert-kposn.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of itab_temp occurs 0,
        vbeln like vbkd-vbeln,
        prsdt like vbkd-prsdt,
      end of itab_temp.

select vbeln prsdt into table itab_temp from vbkd
       for all entries in itab3
       where vbeln = itab3-vbeln.

sort tab_kwert by knumv kposn.
delete tab_kwert where kappl &amp;lt;&amp;gt; 'V'.
sort itab3 by knumv posnr.

loop at tab_kwert.
  read table itab3 with key knumv = tab_kwert-knumv
                            posnr = tab_kwert-kposn
                            binary search.
  if sy-subrc = 0.
    read table itab_temp with key vbeln = itab3-vbeln binary search.
    if sy-subrc = 0.
      itab3-prsdt = itab_temp-prsdt.
    endif.
    itab3-kschl = tab_kwert-kschl.
    itab3-kwert = tab_kwert-kwert.
    itab4 = itab3.
    append itab4.
    clear itab4.
    itab3-check = 'X'.
    modify itab3 transporting check where knumv = tab_kwert-knumv
                                         posnr = tab_kwert-kposn.
  endif.
endloop.

sort itab3 by check.
delete itab3 where check &amp;lt;&amp;gt; 'X'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Provide me some light on the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 18:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615594#M1087538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T18:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615595#M1087539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please see:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Performance of Nested Loops|&lt;A class="jive_macro jive_macro_blogpost" href="https://community.sap.com/" __jive_macro_name="blogpost" modifiedtitle="true" __default_attr="41337"&gt;&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 18:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615595#M1087539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Timed Out Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615596#M1087540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;        I have avoided nested loops instead of i have read the table inside the loop.but  I am facing problem while modify the itab3 table.here it is giving time limit exceed error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 18:26:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/timed-out-error/m-p/4615596#M1087540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T18:26:21Z</dc:date>
    </item>
  </channel>
</rss>

