<?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 Select statements in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632912#M282336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to select a set of records from a table in which one of the field entries should start with 'XY-----'. How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;ABAPer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2006 13:18:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-12T13:18:20Z</dc:date>
    <item>
      <title>Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632912#M282336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to select a set of records from a table in which one of the field entries should start with 'XY-----'. How to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reagards,&lt;/P&gt;&lt;P&gt;ABAPer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:18:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632912#M282336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632913#M282337</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;Select &amp;lt;field list&amp;gt;&lt;/P&gt;&lt;P&gt;into &amp;lt;internal table&amp;gt;&lt;/P&gt;&lt;P&gt;from &amp;lt;table&amp;gt;&lt;/P&gt;&lt;P&gt;where &amp;lt;b&amp;gt;field like 'XY%&amp;lt;/b&amp;gt;'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632913#M282337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:19:37Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632914#M282338</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;Try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select field1 field2 field3 field4 from ztable into itab where field like 'XY%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vivek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:21:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632914#M282338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632915#M282339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CP (Contains Pattern): &lt;/P&gt;&lt;P&gt;The complete string c1 matches the pattern c2 (c1 "matches" c2). &lt;/P&gt;&lt;P&gt;The pattern c2 can contain ordinary characters and wildcards. &lt;/P&gt;&lt;P&gt;'*' stands for any character string and '+' denotes any character. &lt;/P&gt;&lt;P&gt;If the result of the comparison is positive, the system field SY-FDPOS contains the offset of the first character of c2 in c1. The wildcard character '*' at the beginning of the pattern c2 is ignored when determining the value of SY-FDPOS. &lt;/P&gt;&lt;P&gt;If the result of the comparison is negative, the system field SY-FDPOS contains the length of c1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ABCDE' CP '&lt;STRONG&gt;CD&lt;/STRONG&gt;' is true; SY-FDPOS = 2. &lt;/P&gt;&lt;P&gt;'ABCDE' CP '*CD' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;'ABCDE' CP '+&lt;EM&gt;CD&lt;/EM&gt;' is true; SY-FDPOS = 0. &lt;/P&gt;&lt;P&gt;'ABCDE' CP '+CD*' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;'ABCDE' CP '&lt;STRONG&gt;B&lt;/STRONG&gt;D*' is true; SY-FDPOS = 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The character '#' has a special meaning. It serves as an escape symbol and indicates that the very next character should be compared "exactly". &lt;/P&gt;&lt;P&gt;This allows you to search for: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- characters in upper or lower case &lt;/P&gt;&lt;P&gt;e.g.: c1 CP '&lt;STRONG&gt;#A#b&lt;/STRONG&gt;' &lt;/P&gt;&lt;P&gt;- the wildcard characters '*', '+' themselves &lt;/P&gt;&lt;P&gt;e.g.: c1 CP '&lt;STRONG&gt;#&lt;/STRONG&gt;&lt;STRONG&gt;' or c1 CP '&lt;/STRONG&gt;#+*' &lt;/P&gt;&lt;P&gt;- the escape symbol itself &lt;/P&gt;&lt;P&gt;e.g.: c1 CP '&lt;STRONG&gt;##&lt;/STRONG&gt;' &lt;/P&gt;&lt;P&gt;- blanks at the end of c1 &lt;/P&gt;&lt;P&gt;e.g.: c1 CP '*# ' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If c2 does not contain the wildcard character '*', the shorter field is padded with "soft blanks" to bring it up to the length of the longer field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ABC' CP 'ABC ' is true, &lt;/P&gt;&lt;P&gt;'ABC ' CP 'ABC' is true, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ABC' CP 'ABC+' is false, &lt;/P&gt;&lt;P&gt;'ABC' CP 'ABC# ' is false, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because a "soft blank" is neither any character ('+') nor a "real" blank ('# '). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The escape symbol does not affect the length of f2 ('A#a#B' still has the length 3). &lt;/P&gt;&lt;P&gt;The comparison is not case-sensitive.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632915#M282339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632916#M282340</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;Plz try out below codings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from BKPF into table t_bkpf where&lt;/P&gt;&lt;P&gt;               bukrs   = s_bukrs&lt;/P&gt;&lt;P&gt;           and BVORG = XY%&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use XY and percentage symbol.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Divakar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:22:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632916#M282340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:22:25Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632917#M282341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one option is using LIKE  statement.&lt;/P&gt;&lt;P&gt;another option is to use&lt;/P&gt;&lt;P&gt;ranges.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_matnr-low = 'XY*'.&lt;/P&gt;&lt;P&gt;R_MATNR-OPTION = 'CP'.&lt;/P&gt;&lt;P&gt;R_MATNR-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;APPEND R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;FROM &amp;lt;TABLE&amp;gt;&lt;/P&gt;&lt;P&gt;INTO TABLE &amp;lt;ITAB&amp;gt;&lt;/P&gt;&lt;P&gt;WHERE MATNR IN R_MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:22:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632917#M282341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T13:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632918#M282342</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 the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;       matnr TYPE matnr,&lt;/P&gt;&lt;P&gt;       werks TYPE werks_d,&lt;/P&gt;&lt;P&gt;       END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT matnr werks FROM marc INTO TABLE itab&lt;/P&gt;&lt;P&gt; WHERE matnr LIKE '15%'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; itab-matnr,itab-werks.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in place of 15% use XY%.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 13:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632918#M282342</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-09-12T13:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Select statements</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632919#M282343</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;   If you know the case of the value you are looking for, then Vivek M's solution can be used. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I personally don't know a way to transparently select text of unknown upper/lower case from the data dict. tables (vrs 4.7)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Rgrds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Dan Perecky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 18:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statements/m-p/1632919#M282343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-12T18:23:01Z</dc:date>
    </item>
  </channel>
</rss>

