<?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 CP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702417#M307836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this one of the correct syntax for CP ?.What would this do ?&lt;/P&gt;&lt;P&gt;kschl cp 'ZAD&lt;STRONG&gt;' or kschl cp 'ZDP&lt;/STRONG&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Nov 2006 05:42:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-02T05:42:30Z</dc:date>
    <item>
      <title>CP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702417#M307836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this one of the correct syntax for CP ?.What would this do ?&lt;/P&gt;&lt;P&gt;kschl cp 'ZAD&lt;STRONG&gt;' or kschl cp 'ZDP&lt;/STRONG&gt;'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 05:42:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702417#M307836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T05:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: CP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702418#M307837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just check whether this can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP (Contains Pattern)&lt;/P&gt;&lt;P&gt;The logical expression&lt;/P&gt;&lt;P&gt;&amp;lt;f1&amp;gt; CP &amp;lt;f2&amp;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;&amp;#149; for any character string: * &lt;/P&gt;&lt;P&gt;&amp;#149; 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;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;&amp;#149; characters in upper and lower case &lt;/P&gt;&lt;P&gt;&amp;#149; the wildcard character "&lt;STRONG&gt;" (enter:#&lt;/STRONG&gt;) &lt;/P&gt;&lt;P&gt;&amp;#149; the wildcard character "&lt;EM&gt;" (enter: #&lt;/EM&gt; ) &lt;/P&gt;&lt;P&gt;&amp;#149; the escape symbol itself (enter: ## ) &lt;/P&gt;&lt;P&gt;&amp;#149; 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;'ABcde' CP '&lt;STRONG&gt;b&lt;/STRONG&gt;' true &lt;/P&gt;&lt;P&gt;'ABcde' CP '&lt;STRONG&gt;#b&lt;/STRONG&gt;' false&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 05:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702418#M307837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T05:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: CP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702419#M307838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarika,&lt;/P&gt;&lt;P&gt;Check this.&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2006 06:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cp/m-p/1702419#M307838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-02T06:06:12Z</dc:date>
    </item>
  </channel>
</rss>

