<?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>Question Re: Calling store procedure using class cl_sql_statement not running in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849944#M2483172</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there was a solution for my problem. i had to add a special connection string i get from the collegues of the external database. But they told me that the method i want to call up is not a stored procedure but a function. how is it possible to call a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Jun 2010 13:27:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-06-02T13:27:46Z</dc:date>
    <item>
      <title>Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaq-p/6849939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello together&lt;/P&gt;&lt;P&gt;i want to call a stored procedure that has an input and an output parameter but when i using my coding i m getting the following error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORA-06550: line 1, column 7:#PLS-00201: identifier 'STORED_PROC_NAME' must be declared#ORA-06550: line 1, column 7:#PL/SQL: Statement ignored&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    GET REFERENCE OF lv_input  IN lr_dref."in

    lr_cl_sql_statement-&amp;gt;set_param( data_ref = lr_dref
                        inout    = cl_sql_statement=&amp;gt;C_PARAM_IN ).
   GET REFERENCE OF lv_out INTO lr_dref. "out
    lr_cl_sql_statement-&amp;gt;set_param( data_ref = lr_dref
                        inout    = cl_sql_statement=&amp;gt;C_PARAM_OUT ).

    TRY.
      data lv_ROWS_PROCESSED type i.

    CALL METHOD LR_CL_SQL_STATEMENT-&amp;gt;EXECUTE_PROCEDURE
      EXPORTING
        PROC_NAME      ='Stored_Proc_Name'
      RECEIVING
        ROWS_PROCESSED = lv_ROWS_PROCESSED

&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;HR originaltext="----" /&gt;&lt;P&gt;i my oppinion there could be an error in setting the parameters. Has anyone an running solution for calling a stored procedure with in and out parameter. I already tested the ADBC Programs and even had a sight in the class documentation but there is no example with in and output parameter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank your for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 16:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaq-p/6849939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T16:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849940#M2483168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do not know if it helps, but there is a function module DB_EXECUTE_SQL or similar (do not have system&lt;/P&gt;&lt;P&gt;available right now). Works i.e. to do "exec DBMS_STATS...." calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes SQL as a string, but is not able to return output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But may be you can peek into the code to learn something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Volker&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 16:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849940#M2483168</guid>
      <dc:creator>volker_borowski2</dc:creator>
      <dc:date>2010-05-20T16:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849941#M2483169</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;Not sure as the exact  solution , but you can try the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are executing the "stored procedure"  as which user , is it under your schema and do you have execute priveleges on it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see below links , might be helpful to you :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://forums.devshed.com/java-help-9/call-stored-procedure-337312.html" target="test_blank"&gt;http://forums.devshed.com/java-help-9/call-stored-procedure-337312.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://bytes.com/topic/oracle/answers/643380-pls-00201-identifier-user-procedure-name-must-declared" target="test_blank"&gt;http://bytes.com/topic/oracle/answers/643380-pls-00201-identifier-user-procedure-name-must-declared&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rishi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 22:52:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849941#M2483169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T22:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849942#M2483170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the user im using has the privileges to execute stored procedure. Thanks for the Links i checking it now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 May 2010 06:47:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849942#M2483170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-21T06:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849943#M2483171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the hyperlinks but they weren 't working. We still have the problem. A piece of simple code would be nice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 09:06:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849943#M2483171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T09:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849944#M2483172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there was a solution for my problem. i had to add a special connection string i get from the collegues of the external database. But they told me that the method i want to call up is not a stored procedure but a function. how is it possible to call a function?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jun 2010 13:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849944#M2483172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-02T13:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calling store procedure using class cl_sql_statement not running</title>
      <link>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849945#M2483173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I found a possible solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To call a stored function you have to create  an instance of cl_sql_statment and create a string with the form &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'SELECT &amp;lt;STORED_FUNCTION_NAME&amp;gt;(&amp;lt;PARAMETER_1&amp;gt;, ...&amp;lt;Parameter_n) from dual' like any other statement. Its necessary to make the select from the dual table a special oracle table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jun 2010 19:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/calling-store-procedure-using-class-cl-sql-statement-not-running/qaa-p/6849945#M2483173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-07T19:06:29Z</dc:date>
    </item>
  </channel>
</rss>

