<?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 convert select into native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-select-into-native-sql/m-p/4374178#M1040744</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select options are internal tables with header lines.  You'll have to got through each line in the table, and process it according to type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, say you have selopt S for field F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've got S-SIGN = I, S-OPTION = BT, S-LOW = 1, S-HIGH = 3 that'll be an SQL where clause of F GE 1 AND F LE 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've got S-SIGN = E, S-OPTION = EQ, S-LOW = 1, that'll be an SQL where clause of F NE 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to work out then what the appropriate SQL is for Including/Excluding for all the possible options - if you don't know what the options are then read the help on SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Aug 2008 08:22:56 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2008-08-15T08:22:56Z</dc:date>
    <item>
      <title>How to convert select into native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-select-into-native-sql/m-p/4374177#M1040743</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;I have a requirement to convert crtain statments to Native SQL &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from zabc into table it_zabc&lt;/P&gt;&lt;P&gt;      where a in s_oa&lt;/P&gt;&lt;P&gt;      and   b in s_ob&lt;/P&gt;&lt;P&gt;      and   c        ge date_time-datefrom&lt;/P&gt;&lt;P&gt;      and  d          le date_time-dateto&lt;/P&gt;&lt;P&gt;      and   e  in admin_st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle selct options in Native SQL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 07:40:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-select-into-native-sql/m-p/4374177#M1040743</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-15T07:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert select into native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-select-into-native-sql/m-p/4374178#M1040744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Select options are internal tables with header lines.  You'll have to got through each line in the table, and process it according to type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, say you have selopt S for field F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've got S-SIGN = I, S-OPTION = BT, S-LOW = 1, S-HIGH = 3 that'll be an SQL where clause of F GE 1 AND F LE 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you've got S-SIGN = E, S-OPTION = EQ, S-LOW = 1, that'll be an SQL where clause of F NE 1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to work out then what the appropriate SQL is for Including/Excluding for all the possible options - if you don't know what the options are then read the help on SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Aug 2008 08:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-select-into-native-sql/m-p/4374178#M1040744</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-08-15T08:22:56Z</dc:date>
    </item>
  </channel>
</rss>

