<?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: native SQL - execute procedure - using open cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131385#M1189453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Mar 2016 07:28:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-29T07:28:04Z</dc:date>
    <item>
      <title>native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131375#M1189443</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 would like your help in the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  exec sql.
      execute procedure d01.Z_PRICINGREPORT ( IN :v_symandt, IN :v_kschl )
  endexec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to get the output in a cursor. The following code is giving a native SQL exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  exec sql.
    open dbcursor for
      execute procedure d01.Z_PRICINGREPORT ( IN :v_symandt, IN :v_kschl )
  endexec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 15:54:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131375#M1189443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T15:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131376#M1189444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;incorrect statement removed&amp;gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131376#M1189444</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-01-21T16:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131377#M1189445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think while calling stored procedure you need to specify whether the parameters are output (OUT), input (IN), or input and output and not on CURSOR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the SAP Note : 44977&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131377#M1189445</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-01-21T16:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131378#M1189446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moreover, If I specify it in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dbcursor for 
EXEC d01.Z_PRICINGREPORT '210' 'ZPRE'
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it fetches the result but when i specify the parameters in the following way, the query executes with return code 0 but no records are fetched in the cursor. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dbcursor for 
EXEC d01.Z_PRICINGREPORT v_symandt, v_kschl
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_symandt contains the client&lt;/P&gt;&lt;P&gt;v_kschl contains the condition type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdullah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2009 16:13:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131378#M1189446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-21T16:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131379#M1189447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone suggest how to execute a procedure and get the resultset in a cursor using native sql?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 06:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131379#M1189447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T06:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131380#M1189448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Please check if it helps you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="913580"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 06:33:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131380#M1189448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T06:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131381#M1189449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue has not been resolved till now. I tried making a view in the database and querying. It is also degrading performance. I would like to call the stored procedure. Please let me know if it is possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Abdullah.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Jan 2009 16:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131381#M1189449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-25T16:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131382#M1189450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the SAP demo program ADBC_DEMO helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 13:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131382#M1189450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T13:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131383#M1189451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use the host variable syntax (preceeding colon) it works eg.  EXEC d01.Z_PRICINGREPORT :v_symandt, :v_ksch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Peterl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2009 23:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131383#M1189451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-29T23:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131384#M1189452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,ZAFCO ABAP &lt;/P&gt;&lt;P&gt;    the issue has been resolved?&lt;/P&gt;&lt;P&gt;    i think i have met the same issue .There is a Oracle pl/sql stored procedure ,it's have a output parameter of oracle's cursor type,by calling this stored procedure i can get a resuletset.Then,i tried coding as below:&lt;/P&gt;&lt;P&gt;    DATA dbcur  TYPE cursor&lt;/P&gt;&lt;P&gt;    EXEC SQL.&lt;/P&gt;&lt;P&gt;      EXECUTE PROCEDURE SP_TEST(out :dbcur)&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by notes 44977 i tried as below:&lt;/P&gt;&lt;P&gt;    EXEC SQL.&lt;/P&gt;&lt;P&gt;      open cr for PROCEDURE SP_TEST(out :dbcur)&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But both of above did not resolve it.Pls help me if you have been out of the issue. thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 02:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131384#M1189452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T02:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131385#M1189453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:28:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131385#M1189453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-29T07:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: native SQL - execute procedure - using open cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131386#M1189454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2016 07:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-execute-procedure-using-open-cursor/m-p/5131386#M1189454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-29T07:29:55Z</dc:date>
    </item>
  </channel>
</rss>

