<?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: Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968895#M1158095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;What is the data type of  fs_table-changed_field_name &amp;amp; fs_table-field.?&lt;/P&gt;&lt;P&gt;Have you ascertained that the variables are correctly filled during execution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2009 08:17:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-19T08:17:58Z</dc:date>
    <item>
      <title>Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968894#M1158094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have one internal table which was processed and there is some change in one filed. Now I want to place these changes back into the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now as I told u previously to establish link between SAP table and legacy system connection between the table and dictionary has been dropped so I need to write Native SQL there. Such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 

Loop at t_table into fs_table.

 

Exec sql.

   Update database_table_name

         Set changed_field_name = fs_table-changed_field_name

     Where filed = fs_table-field

Endexec.

 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give like this it is going to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I give values then it is working such as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

Exec sql.

 

   Update database_table_name

         Set changed_field_name = u201812345u2019

     Where filed = u2018XYZu2019

 

Endexec.

&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;P&gt;&lt;/P&gt;&lt;P&gt;But if I give variables it is not working, let me know what I can do&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968894#M1158094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T08:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968895#M1158095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;What is the data type of  fs_table-changed_field_name &amp;amp; fs_table-field.?&lt;/P&gt;&lt;P&gt;Have you ascertained that the variables are correctly filled during execution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968895#M1158095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T08:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968896#M1158096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;copy_pasted_from&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vijay Babu Dudla on Jan 19, 2009 5:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:18:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968896#M1158096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T08:18:16Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968897#M1158097</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;in open sql you will check the type of repository structure&lt;/P&gt;&lt;P&gt;in similier .. check the datatype of the base database as&lt;/P&gt;&lt;P&gt;wen you use opensql it directly likes to the database so give the type of bothe variables fs_table-changed_field_name &amp;amp; fs_table-field as same&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 08:22:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968897#M1158097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T08:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968898#M1158098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanks a lot,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem got solved....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2009 09:11:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968898#M1158098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-19T09:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968899#M1158099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me what is the solution ..&lt;/P&gt;&lt;P&gt;I am facing the same problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Teja V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/4968899#M1158099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:09:26Z</dc:date>
    </item>
  </channel>
</rss>

