<?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 Dynamic Update Statement in Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update-statement-in-native-sql/m-p/7319048#M1536633</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 want to dynamically pass the field in Update statement in Native SQL. For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str1 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str1 = 'MARKETS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;      UPDATE PRDT.TBVEHDS4 SET (str1) = :'U'&lt;/P&gt;&lt;P&gt;      WHERE  VEH_NO       =  :'K1WK-54520'&lt;/P&gt;&lt;P&gt;      AND    SEGMENT_NO   =  :'01'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not taking (str1) as MARKETS field to update as U , its taking STR1 itself, Giving native SQL exception as Invalid Token as we are using DB2 as external DB system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked with field-symbols also, but nothing helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Sep 2010 19:23:17 GMT</pubDate>
    <dc:creator>abhishek_katti</dc:creator>
    <dc:date>2010-09-30T19:23:17Z</dc:date>
    <item>
      <title>Dynamic Update Statement in Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update-statement-in-native-sql/m-p/7319048#M1536633</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 want to dynamically pass the field in Update statement in Native SQL. For eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str1 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str1 = 'MARKETS'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;      UPDATE PRDT.TBVEHDS4 SET (str1) = :'U'&lt;/P&gt;&lt;P&gt;      WHERE  VEH_NO       =  :'K1WK-54520'&lt;/P&gt;&lt;P&gt;      AND    SEGMENT_NO   =  :'01'&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is not taking (str1) as MARKETS field to update as U , its taking STR1 itself, Giving native SQL exception as Invalid Token as we are using DB2 as external DB system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked with field-symbols also, but nothing helped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help, thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 19:23:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update-statement-in-native-sql/m-p/7319048#M1536633</guid>
      <dc:creator>abhishek_katti</dc:creator>
      <dc:date>2010-09-30T19:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic Update Statement in Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update-statement-in-native-sql/m-p/7319049#M1536634</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;Check this demo program in SE38  ADBC_DEMO, take as example to construct your own dynamic native sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Sep 2010 19:39:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-update-statement-in-native-sql/m-p/7319049#M1536634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-30T19:39:09Z</dc:date>
    </item>
  </channel>
</rss>

