<?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 Call Store Procedure Oracle DB using cl_sql_statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-store-procedure-oracle-db-using-cl-sql-statement/m-p/455412#M14072</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;
  &lt;P&gt;I've a question about calling a store procedure from ABAP returning a cursor Type.&lt;/P&gt;
  &lt;P&gt;Procedure is something like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;    PROCEDURE dlanguage (p_rlist OUT cur)
    IS
    BEGIN
        OPEN p_rlist FOR
            SELECT ID, ISO, DES
              FROM dbch.DLANGUAGE END;
    END;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;While I'm able to call a store procedure that returns simple parameters, I'm not able to call a store procedure giving a cursor back.&lt;/P&gt;
  &lt;P&gt;I've tried to use set_param_table method of CL_SQL_STATEMENT, passing a table pointer, but with not results.&lt;/P&gt;
  &lt;P&gt;CURSOR type in ABAP seems not working as type parameter.&lt;/P&gt;
  &lt;P&gt;The error is always:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;con=1(XXXXXXXXXXXXXXX/XXXX): ORA-06550: line 1, column 7:#PLS-00306: wrong number or types of arguments in call to 'DLANGUAGE'#ORA-06550: line 1, column 7:#PL/SQL: Statement ignored


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Could someone give me any tips about this? &lt;/P&gt;
  &lt;P&gt;Final Goal is to receive a structure with n fields of string type (undefined length) and it seems that probably we need to use Blob type in Oracle if is not possible to receive a data table back.&lt;/P&gt;
  &lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
    <pubDate>Tue, 25 Jul 2017 08:33:57 GMT</pubDate>
    <dc:creator>roberto_vacca2</dc:creator>
    <dc:date>2017-07-25T08:33:57Z</dc:date>
    <item>
      <title>Call Store Procedure Oracle DB using cl_sql_statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/call-store-procedure-oracle-db-using-cl-sql-statement/m-p/455412#M14072</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
  &lt;P&gt;I've a question about calling a store procedure from ABAP returning a cursor Type.&lt;/P&gt;
  &lt;P&gt;Procedure is something like this:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;    PROCEDURE dlanguage (p_rlist OUT cur)
    IS
    BEGIN
        OPEN p_rlist FOR
            SELECT ID, ISO, DES
              FROM dbch.DLANGUAGE END;
    END;
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;While I'm able to call a store procedure that returns simple parameters, I'm not able to call a store procedure giving a cursor back.&lt;/P&gt;
  &lt;P&gt;I've tried to use set_param_table method of CL_SQL_STATEMENT, passing a table pointer, but with not results.&lt;/P&gt;
  &lt;P&gt;CURSOR type in ABAP seems not working as type parameter.&lt;/P&gt;
  &lt;P&gt;The error is always:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;con=1(XXXXXXXXXXXXXXX/XXXX): ORA-06550: line 1, column 7:#PLS-00306: wrong number or types of arguments in call to 'DLANGUAGE'#ORA-06550: line 1, column 7:#PL/SQL: Statement ignored


&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Could someone give me any tips about this? &lt;/P&gt;
  &lt;P&gt;Final Goal is to receive a structure with n fields of string type (undefined length) and it seems that probably we need to use Blob type in Oracle if is not possible to receive a data table back.&lt;/P&gt;
  &lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jul 2017 08:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/call-store-procedure-oracle-db-using-cl-sql-statement/m-p/455412#M14072</guid>
      <dc:creator>roberto_vacca2</dc:creator>
      <dc:date>2017-07-25T08:33:57Z</dc:date>
    </item>
  </channel>
</rss>

