<?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: SELECT statement with CP operator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169972#M460115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you'e to use LIKE for pattern searches ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data some_var(8) value '%abcdef%'.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE abc&lt;/P&gt;&lt;P&gt;FROM /abc/abc WHERE user LIKE some_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~SUresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 May 2007 02:28:13 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2007-05-09T02:28:13Z</dc:date>
    <item>
      <title>SELECT statement with CP operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169971#M460114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the correct statement to use CP operator in SELECT statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This does not work:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;            INTO CORRESPONDING FIELDS OF TABLE abc&lt;/P&gt;&lt;P&gt;            FROM /abc/abc WHERE user CP some_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 02:21:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169971#M460114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T02:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement with CP operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169972#M460115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you'e to use LIKE for pattern searches ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data some_var(8) value '%abcdef%'.&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE abc&lt;/P&gt;&lt;P&gt;FROM /abc/abc WHERE user LIKE some_var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~SUresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 02:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169972#M460115</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-05-09T02:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement with CP operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169973#M460116</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;You can build a wildcard ranges and please try something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_wildcard-sign =  'I'.&lt;/P&gt;&lt;P&gt;r_wildcard-option = 'CP'.&lt;/P&gt;&lt;P&gt;r_wildcard-low = 'B*'.&lt;/P&gt;&lt;P&gt;append r_wildcard.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;r_wildcard-sign =  'I'.&lt;/P&gt;&lt;P&gt;r_wildcard-option = 'CP'.&lt;/P&gt;&lt;P&gt;r_wildcard-low = '&lt;STRONG&gt;B&lt;/STRONG&gt;'.&lt;/P&gt;&lt;P&gt;append r_wildcard.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;select * from mara&lt;/P&gt;&lt;P&gt;into table gt_mara_b&lt;/P&gt;&lt;P&gt;where mtart = 'YSAB'&lt;/P&gt;&lt;P&gt;and matnr in r_wildcard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 03:01:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169973#M460116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T03:01:36Z</dc:date>
    </item>
    <item>
      <title>Re: SELECT statement with CP operator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169974#M460117</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;  Use LIKE Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP (Contains Pattern)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logical expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;f1&amp;gt; CP &amp;lt;f2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is true if &amp;lt;f1&amp;gt; matches the pattern &amp;lt;f2&amp;gt;. If &amp;lt;f2&amp;gt; is of type C, you can use the following wildcards in &amp;lt;f2&amp;gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any character string: * &lt;/P&gt;&lt;P&gt;for any single character: +&lt;/P&gt;&lt;P&gt;Trailing spaces are ignored and the comparison is not case-sensitive. If the comparison is true, the system field SY-FDPOS contains the offset of &amp;lt;f2&amp;gt; in &amp;lt;f1&amp;gt; . If it is false, SY-FDPOS contains the length of &amp;lt;f1&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to perform a comparison on a particular character in &amp;lt;f2&amp;gt;, place the escape character # in front of it. You can use the escape character # to specify&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;characters in upper and lower case &lt;/P&gt;&lt;P&gt;the wildcard character "&lt;STRONG&gt;" (enter:#&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;the wildcard character "&lt;EM&gt;" (enter: #&lt;/EM&gt; ) &lt;/P&gt;&lt;P&gt;the escape symbol itself (enter: ## ) &lt;/P&gt;&lt;P&gt;blanks at the end of a string (enter: #___ )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2007 03:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-with-cp-operator/m-p/2169974#M460117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-09T03:24:27Z</dc:date>
    </item>
  </channel>
</rss>

