<?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: Getting Time-Out at Select Query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626748#M603648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it may be due to....&lt;/P&gt;&lt;P&gt;select  a~qmnum&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         kunum&lt;/P&gt;&lt;P&gt;         iwerk&lt;/P&gt;&lt;P&gt;         spart&lt;/P&gt;&lt;P&gt; into    corresponding fields of iviqmel&lt;/P&gt;&lt;P&gt; from    ( qmih as a&lt;/P&gt;&lt;P&gt;           inner join qmel as b on b&lt;SUB&gt;qmnum = a&lt;/SUB&gt;qmnum )&lt;/P&gt;&lt;P&gt; for all entries in i_tab&lt;/P&gt;&lt;P&gt; where qmart in ('FS', 'ZP')&lt;/P&gt;&lt;P&gt;       and iwerk   = i_tab-iwerk&lt;/P&gt;&lt;P&gt;       and matnr   = i_tab-matnr&lt;/P&gt;&lt;P&gt;       and kunum   = i_tab-kunum&lt;/P&gt;&lt;P&gt;       and spart   = i_tab-spart.&lt;/P&gt;&lt;P&gt;   append iviqmel.&lt;/P&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur select u need to mention a~ or b~ to the fields ur selecting from the database...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 Aug 2007 12:47:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-08T12:47:31Z</dc:date>
    <item>
      <title>Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626747#M603647</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;&lt;/P&gt;&lt;P&gt;I am getting Time-Out at particular Select Query.&lt;/P&gt;&lt;P&gt;This error i am getting since last 3 days, before it was working fine. And there is no any change made to program in last 3 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
select  a~qmnum
         matnr
         kunum
         iwerk
         spart
 into    corresponding fields of iviqmel
 from    ( qmih as a
           inner join qmel as b on b~qmnum = a~qmnum )
 for all entries in i_tab
 where qmart in ('FS', 'ZP')
       and iwerk   = i_tab-iwerk
       and matnr   = i_tab-matnr
       and kunum   = i_tab-kunum
       and spart   = i_tab-spart.
   append iviqmel.
 endselect.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Program table QMEL also using the proper Index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please give me any suggestion that how to come out from this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dharmesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 12:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626747#M603647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T12:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626748#M603648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it may be due to....&lt;/P&gt;&lt;P&gt;select  a~qmnum&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         kunum&lt;/P&gt;&lt;P&gt;         iwerk&lt;/P&gt;&lt;P&gt;         spart&lt;/P&gt;&lt;P&gt; into    corresponding fields of iviqmel&lt;/P&gt;&lt;P&gt; from    ( qmih as a&lt;/P&gt;&lt;P&gt;           inner join qmel as b on b&lt;SUB&gt;qmnum = a&lt;/SUB&gt;qmnum )&lt;/P&gt;&lt;P&gt; for all entries in i_tab&lt;/P&gt;&lt;P&gt; where qmart in ('FS', 'ZP')&lt;/P&gt;&lt;P&gt;       and iwerk   = i_tab-iwerk&lt;/P&gt;&lt;P&gt;       and matnr   = i_tab-matnr&lt;/P&gt;&lt;P&gt;       and kunum   = i_tab-kunum&lt;/P&gt;&lt;P&gt;       and spart   = i_tab-spart.&lt;/P&gt;&lt;P&gt;   append iviqmel.&lt;/P&gt;&lt;P&gt; endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in ur select u need to mention a~ or b~ to the fields ur selecting from the database...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 12:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626748#M603648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T12:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626749#M603649</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 occurs very rarely, but if your i_tab IS EMPTY (at the for all entries), then the SELECT will check ALL ENTRIES without any restriction and this can cause a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 12:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626749#M603649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T12:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626750#M603650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tams,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am checking that also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ahve written select query between...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If not i_tab[] is initial.
.....Query
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dharmesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 12:52:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626750#M603650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T12:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626751#M603651</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;your useing code in &amp;lt;b&amp;gt;select and endselect&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;that is the main problem &lt;/P&gt;&lt;P&gt;if u r sending some small amount of data then it works fine &lt;/P&gt;&lt;P&gt;if data load is heavy then it will go timed out and genarate short dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a standard program then just your basis people to reduce the parameter load &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a z program then change that select and endselect &lt;/P&gt;&lt;P&gt;and puto into table itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will work fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 13:16:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626751#M603651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626752#M603652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the SELECT looks OK. The only problem I can see is if the database is not choosing the correct index (MCM - material/plant in this case). Have you done a performance trace (ST05) to see which index is being used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 14:04:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626752#M603652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T14:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626753#M603653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;If it was gng fine before. just check the RUNTIME PROFILE PARAMETER to  some higher values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neslin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 15:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626753#M603653</guid>
      <dc:creator>Neslinn</dc:creator>
      <dc:date>2007-08-08T15:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626754#M603654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't really know how significant this is, you can test it and see, but I would normally SELECT ... INTO CORRESPONDING FIELDS OF TABLE. As far as I know that is more efficient than SELECT ... APPEND ... ENDSELECT, in particular in your case, where you are appending without any processing inside the select loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it makes enough difference to make your program 'good', but I suppose any (easily gained) improvement is welcome when you have a performance problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are lots of things you can try, but my vote goes to Rob's suggestion about finding out if the correct index is being selected. Perhaps all you need is a database hint.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your table I_TAB containing a lot of entries? That can be a problem in FOR ALL ENTRIES selections. Perhaps it would be possible to rewrite your program to use a join in order to avoid the extra traffic back and forth between application and database server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, these were just some ideas. &amp;lt;u&amp;gt;You&amp;lt;/u&amp;gt; will have to find out what works, I'm afraid that's in the nature of performance problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 16:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626754#M603654</guid>
      <dc:creator>KjetilKilhavn</dc:creator>
      <dc:date>2007-08-08T16:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626755#M603655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run the SQL Trace also, Query is using correct Index.&lt;/P&gt;&lt;P&gt;and I had also chenge the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if not i_tab[] is initial.
    select a~matnr a~kunum a~spart
           b~qmnum b~iwerk
           into corresponding fields of table iviqmel
           from qmel as a inner join
                qmih as b
                on a~qmnum = b~qmnum
           for all entries in i_tab
           where a~qmart in ('FS', 'ZP')
             and a~matnr   = i_tab-matnr
             and a~kunum   = i_tab-kunum
             and a~spart   = i_tab-spart
             and b~iwerk   = i_tab-iwerk.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;even its geving time out error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dharmesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 03:13:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626755#M603655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T03:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626756#M603656</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;can you wirte down, &lt;/P&gt;&lt;P&gt;+ the key fields of both tables&lt;/P&gt;&lt;P&gt;+ the number of entries in your system&lt;/P&gt;&lt;P&gt;+ and the fields of used indexes if different from the primary key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you checked the ST05 and explain, did you see the expected number of rows and the expected costs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 11:16:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626756#M603656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T11:16:38Z</dc:date>
    </item>
    <item>
      <title>Re: Getting Time-Out at Select Query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626757#M603657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if it's time to update your database statistics or do a database re-org. Are other transactions agaisnt these tables slow as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 13:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-time-out-at-select-query/m-p/2626757#M603657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T13:10:31Z</dc:date>
    </item>
  </channel>
</rss>

