<?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: How to write native SQL for UPDATE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160543#M1195376</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You check wheater :w_date field is having value while debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Feb 2009 11:17:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-10T11:17:59Z</dc:date>
    <item>
      <title>How to write native SQL for UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160542#M1195375</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;Now I need to write a native sql for updating fields in the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i write like this &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 exec sql.
    UPDATE ZTAB_GLTR_DATA
       SET DOCUMENT_ID  = :w_id
     WHERE COMPANY_CODE = :fs_gltr_data-company_code and
               GLTRANID = :fs_gltr_data-gltranid and
                GLROWID = :fs_gltr_data-glrowid
  endexec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is working fine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now i need to update two fields for that i wrote like this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 exec sql.
    UPDATE ZTAB_GLTR_DATA
       SET DOCUMENT_ID  = :w_id, POST_DATE  = :w_date
     WHERE COMPANY_CODE = :fs_gltr_data-company_code and
               GLTRANID = :fs_gltr_data-gltranid and
                GLROWID = :fs_gltr_data-glrowid
  endexec.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is leading to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any ony tell me how to write the code for updating two fields......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 10:13:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160542#M1195375</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T10:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to write native SQL for UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160543#M1195376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You check wheater :w_date field is having value while debugging.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160543#M1195376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to write native SQL for UPDATE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160544#M1195377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes w_date has value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2009 11:20:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-native-sql-for-update/m-p/5160544#M1195377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-10T11:20:02Z</dc:date>
    </item>
  </channel>
</rss>

