<?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: SQL select in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349074#M1731149</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alas OPEN-SQL don't allow a syntax like "dobj LIKE field+%", so you should programmatically convert your single value in a list of values, a range like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I EQ 560068&lt;/P&gt;&lt;P&gt;I EQ 56006&lt;/P&gt;&lt;P&gt;I EQ 5600&lt;/P&gt;&lt;P&gt;I EQ 560&lt;/P&gt;&lt;P&gt;I EQ 56&lt;/P&gt;&lt;P&gt;I EQ 5&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Apr 2013 10:07:39 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2013-04-03T10:07:39Z</dc:date>
    <item>
      <title>SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349072#M1731147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have table where one of the columns is called COL1.&lt;/P&gt;&lt;P&gt;Suppose this table has just one record where the column COL1 has the value &lt;STRONG&gt;56006*&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I want to select the above record even when I look up this table for records with COL1 value = &lt;STRONG&gt;&lt;SPAN class="L0S32"&gt;560068&lt;/SPAN&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I write such a query?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Saurabh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 09:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349072#M1731147</guid>
      <dc:creator>saurabh_chaturvedi</dc:creator>
      <dc:date>2013-04-03T09:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349073#M1731148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In select you can use the like operator&amp;nbsp; and the % symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;col1 from itab1 where col1 like '56006%'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 10:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349073#M1731148</guid>
      <dc:creator>Azeemquadri</dc:creator>
      <dc:date>2013-04-03T10:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349074#M1731149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alas OPEN-SQL don't allow a syntax like "dobj LIKE field+%", so you should programmatically convert your single value in a list of values, a range like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I EQ 560068&lt;/P&gt;&lt;P&gt;I EQ 56006&lt;/P&gt;&lt;P&gt;I EQ 5600&lt;/P&gt;&lt;P&gt;I EQ 560&lt;/P&gt;&lt;P&gt;I EQ 56&lt;/P&gt;&lt;P&gt;I EQ 5&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 10:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349074#M1731149</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-04-03T10:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349075#M1731150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think that this example is useful for you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REPORT&amp;nbsp; z_example_abap.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;TABLES&lt;/SPAN&gt; vbak.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;DATA&lt;/SPAN&gt;: &lt;SPAN class="L1S52"&gt;BEGIN&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; tb_vbak &lt;SPAN class="L1S52"&gt;OCCURS&lt;/SPAN&gt; &lt;SPAN class="L1S32"&gt;0&lt;/SPAN&gt;,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbeln &lt;SPAN class="L1S52"&gt;LIKE&lt;/SPAN&gt; vbak-vbeln,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; netwr &lt;SPAN class="L1S52"&gt;LIKE&lt;/SPAN&gt; vbak-netwr,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;END&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; tb_vbak.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;START-&lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt;-SELECTION.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REFRESH&lt;/SPAN&gt; tb_vbak.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CLEAR&lt;/SPAN&gt; tb_vbak.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; vbeln netwr&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt;&amp;nbsp; vbak&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; tb_vbak&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt;&amp;nbsp; vbeln&amp;nbsp; &lt;SPAN class="L1S52"&gt;LIKE&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'%178%'&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;DESCRIBE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; tb_vbak &lt;SPAN class="L1S52"&gt;LINES&lt;/SPAN&gt; sy-tfill.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;END&lt;/SPAN&gt;-&lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt;-SELECTION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;Ivan&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 09:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349075#M1731150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T09:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349076#M1731151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 12:38:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349076#M1731151</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T12:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349077#M1731152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;SELECT &lt;/SPAN&gt;* &lt;SPAN class="L0S52"&gt;FROM&amp;nbsp; table name &lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;INTO &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;gt_itab &lt;SPAN class="L0S52"&gt;WHERE &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;COL1&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class="L0S52"&gt;LIKE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'560006%'&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 12:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349077#M1731152</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-04-04T12:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349078#M1731153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems you're the only who spotted that the wildcard is a value the table!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349078#M1731153</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2013-04-04T13:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: SQL select</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349079#M1731154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, alas &lt;SPAN __jive_emoticon_name="sad" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1353/images/emoticons/sad.gif"&gt;&lt;/SPAN&gt;, as m&lt;SPAN class="hps"&gt;ost people&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;see what they&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;expect to see&lt;/SPAN&gt;, not what &lt;SPAN class="hps"&gt;is written. &lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;Moreover, in&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;this case the question&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would have been&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;too basic&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;would have justified&lt;/SPAN&gt; &lt;SPAN class="hps atn"&gt;a "&lt;/SPAN&gt;&lt;SPAN&gt;Report abuse&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;SPAN __jive_emoticon_name="devil" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1353/images/emoticons/devil.gif"&gt;&lt;/SPAN&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;It looks like &lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang="en"&gt;a Customizing table with wildcard&lt;/SPAN&gt;&lt;SPAN id="result_box" lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the program look for items&lt;/SPAN&gt;&lt;SPAN class="hps"&gt; that&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;can be applied to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;a value.&lt;/SPAN&gt;&lt;/SPAN&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;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 13:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-select/m-p/9349079#M1731154</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-04-04T13:48:53Z</dc:date>
    </item>
  </channel>
</rss>

