<?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 using variables? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696901#M1103793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Host variables are for transferring data from database table to abap program.So i don't think so that we can use for reading the variables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Nov 2008 08:30:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-02T08:30:57Z</dc:date>
    <item>
      <title>Native SQL using variables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696900#M1103792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to assign a SQL query to a variable, and then using an OPEN statement to read the variable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g., &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;query TYPE STRING VALUE 'SELECT * FROM mytable'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;      OPEN c1 FOR :query&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 08:13:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696900#M1103792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T08:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL using variables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696901#M1103793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Host variables are for transferring data from database table to abap program.So i don't think so that we can use for reading the variables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 08:30:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696901#M1103793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T08:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL using variables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696902#M1103794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the quick reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So do you have any idea how to do to open using a variable? This is because my SQL statement needs to be constructed dynamically depending on other data (I am doing string processing before the statement is finalized).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or is there another way to do this instead of using cursor processing in Native SQL?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 08:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696902#M1103794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-02T08:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL using variables?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696903#M1103795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I've tried to narrow this length of string down to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data mystring type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"SELECT ... ... ... WHERE" ... and then "mystring" needs to be appended to the end of the SQL statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g., mystring could be " field1 = '1234' AND field2 = 'XYZ' "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? Thanks in advance for reading.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2008 01:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-using-variables/m-p/4696903#M1103795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-03T01:49:40Z</dc:date>
    </item>
  </channel>
</rss>

