<?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 SAP Query not working in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393786#M1735306</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;I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but when i check the table data, there are some records for that input condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged it, i found that the statement "FETCH NEXT CURSOR cursorname" is throwing sy-subrc eq 4. I couldn't understand the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be very helpful.&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;Mahidhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2013 16:32:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-04-01T16:32:54Z</dc:date>
    <item>
      <title>SAP Query not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393786#M1735306</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;I am facing problem with SAP Query. My query is not working for one particular date. Its giving timeout error when i just give date as input. I tried executing it by giving some particular document as input, then its giving "no data" message but when i check the table data, there are some records for that input condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debugged it, i found that the statement "FETCH NEXT CURSOR cursorname" is throwing sy-subrc eq 4. I couldn't understand the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any inputs will be very helpful.&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;Mahidhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393786#M1735306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-01T16:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393787#M1735307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try filtering the data to avoid timeout error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which table are you querying. What is date format you use?&lt;/P&gt;&lt;P&gt;Try to give date in&amp;nbsp; a different format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"FETCH NEXT CURSOR cursorname" giving sy-subrc = 4 means there are no more records to be found.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 17:37:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393787#M1735307</guid>
      <dc:creator>Azeemquadri</dc:creator>
      <dc:date>2013-04-02T17:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query not working</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393788#M1735308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azeem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are more than 10 tables that were used in this query with different types joins like inner join, left outer, right outer join. So i wasnt able to decode the select query that was present in open cursor command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given the date and executed the same in background. It ran in 19min. But when i add one more input parameter, then its running more than a day(still running &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1353/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;). Didn't get the exact problem still.&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;Mahidhar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 17:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-not-working/m-p/9393788#M1735308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-03T17:02:14Z</dc:date>
    </item>
  </channel>
</rss>

