<?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: Execute procedure error (Native SQL) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503193#M565716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How your are accessing Oracle Database through DBLINK or anyother way. Kindly check the statement which link Oracle Database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jul 2007 14:58:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-17T14:58:54Z</dc:date>
    <item>
      <title>Execute procedure error (Native SQL)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503192#M565715</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;I create a procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    create or replace procedure update_zsmadiprinc&lt;/P&gt;&lt;P&gt;    is begin&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                          ( p_codigo         in  number(5),&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            p_ano            in  varchar2(4),&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            p_doc_vlr_princ in  varchar2(10)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                            p_subrc       out number ) is begin&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      update T_INTERF_RESSARC_FORNEC_R3&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      set   ano_doc              = p_ano,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;            NUM_DOC_VALOR_PRINC  = p_doc_vlr_princ,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      where cod_interf_ressarc_fornec_r3 = p_codigo;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      if sql%found then&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        p_subrc := 0;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      else&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        p_subrc := 4;&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      end if;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    end;&lt;/P&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and execute it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  EXEC SQL.&lt;/P&gt;&lt;P&gt;    execute procedure update_zsmadiprinc&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                     (in  :wa-cod_interf,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      in  :wa-ano_doc,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      in  :wa-num_doc_valor_princ,&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      out :vg_subrc)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i execute the procedure, shows dump error:&lt;/P&gt;&lt;P&gt;Database error text........: "ORA-06550: line 1, column 7:#PLS-00905: object&lt;/P&gt;&lt;P&gt;UPDATE_ZSMADIPRINC is invalid#ORA-06550: line 1, column 7:#PL/SQL:    &lt;/P&gt;&lt;P&gt; Statement ignored#"                                                         &lt;/P&gt;&lt;P&gt;Triggering SQL statement...: "CLOSE "                                        &lt;/P&gt;&lt;P&gt;Internal call code.........: "[DBDS/NEW DSQL]"                               &lt;/P&gt;&lt;P&gt;Please check the entries in the system log (Transaction SM21).               &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I comment all source, and the error is the same.&lt;/P&gt;&lt;P&gt;When i create the procedure, no erros are show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the name of the procedure, the type of parameters, and now i comment all and the error always is the same!!!! Can you help me!!! I need to finish this urgently!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        RP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503192#M565715</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-17T14:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Execute procedure error (Native SQL)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503193#M565716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How your are accessing Oracle Database through DBLINK or anyother way. Kindly check the statement which link Oracle Database.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jul 2007 14:58:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503193#M565716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-17T14:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Execute procedure error (Native SQL)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503194#M565717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not possible to create a procedure, then, i just execute sql direct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/execute-procedure-error-native-sql/m-p/2503194#M565717</guid>
      <dc:creator>rodrigo_paisante3</dc:creator>
      <dc:date>2007-07-18T11:11:32Z</dc:date>
    </item>
  </channel>
</rss>

