<?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: Update query with CL_SQL_STATEMENT class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261584#M1632164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandra! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Oct 2011 07:38:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-10-06T07:38:04Z</dc:date>
    <item>
      <title>Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261582#M1632162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to execute an update query with ADBC classes in order to modify two parameters (n_doc and processed) from a row with the following instructions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_con_ref = cl_sql_connection=&amp;gt;get_connection( 'DB_7879' ).&lt;/P&gt;&lt;P&gt;      l_stmt_ref = l_con_ref-&amp;gt;create_statement( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CONCATENATE 'update' gv_table ' set n_doc= ? processed = ''X'' where id_ordn = ? '  INTO l_stmt SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      GET REFERENCE OF materialdocument INTO l_dref.&lt;/P&gt;&lt;P&gt;      l_stmt_ref-&amp;gt;set_param( l_dref ).&lt;/P&gt;&lt;P&gt;      GET REFERENCE OF ps_zmm_mov-id_ordn INTO l_dref.&lt;/P&gt;&lt;P&gt;      l_stmt_ref-&amp;gt;set_param( l_dref ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_stmt_ref-&amp;gt;execute_update( l_stmt ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I got the error ORA-0933: SQL command not properly ended. I guess this error occurs because I am trying to update two parameters with a single query since using the following CONCATENATE instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CONCATENATE 'update' gv_table ' set n_doc= ? where id_ordn = ? '  INTO l_stmt SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;results ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know if it is possible to modify two parameters with only one update query with ADBC classes?&lt;/P&gt;&lt;P&gt;Thank you in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 16:50:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261582#M1632162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T16:50:23Z</dc:date>
    </item>
    <item>
      <title>Re: Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261583#M1632163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you should add a comma between the 2 column names -&amp;gt; update &amp;lt;tablename&amp;gt; set n_doc= ?, processed = ''X'' where id_ordn = ?&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 20:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261583#M1632163</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-10-05T20:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261584#M1632164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sandra! &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 07:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261584#M1632164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-06T07:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261585#M1632165</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;Sandra, out-of-curiosity, is this DB specific? Or this is kind of a thumb-rule?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 09:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261585#M1632165</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-10-06T09:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261586#M1632166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on Oracle, I see it conforms almost completely ISO/IEC 9075 ([Oracle and Standard SQL|http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/ap_standard_sql.htm#10293])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE seems to conform completely [UPDATE SET clause|http://download.oracle.com/docs/cd/B10501_01/server.920/a96540/statements_108a.htm#2087215]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using a comma to separate columns is true for every SQL language that conforms ISO/IEC 9075&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: of course SAP's "Open SQL" language does not conform at all &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2011 18:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261586#M1632166</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-10-06T18:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Update query with CL_SQL_STATEMENT class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261587#M1632167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically we need to check the semantics of the SQL statement beforehand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;of course SAP's "Open SQL" language does not conform at all &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Lol &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Oct 2011 10:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-query-with-cl-sql-statement-class/m-p/8261587#M1632167</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-10-07T10:33:19Z</dc:date>
    </item>
  </channel>
</rss>

