<?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: contains pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484041#M226100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ponraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check these Examples:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP (Contains Pattern):                                       &lt;/P&gt;&lt;P&gt;                  The complete string c1 matches the pattern c2 (c1 "matches"  &lt;/P&gt;&lt;P&gt;                  c2).                                                         &lt;/P&gt;&lt;P&gt;                  The pattern c2 can contain ordinary characters and           &lt;/P&gt;&lt;P&gt;                  wildcards.                                                   &lt;/P&gt;&lt;P&gt;                  '*' stands for any character string and '+' denotes any      &lt;/P&gt;&lt;P&gt;                  character.                                                   &lt;/P&gt;&lt;P&gt;                  If the result of the comparison is positive, the system      &lt;/P&gt;&lt;P&gt;                  field SY-FDPOS contains the offset of the first character    &lt;/P&gt;&lt;P&gt;                  of c2 in c1. The wildcard character '*' at the beginning of  &lt;/P&gt;&lt;P&gt;                  the pattern c2 is ignored when determining the value of      &lt;/P&gt;&lt;P&gt;                  SY-FDPOS.                                                    &lt;/P&gt;&lt;P&gt;                  If the result of the comparison is negative, the system      &lt;/P&gt;&lt;P&gt;                  field SY-FDPOS contains the length of c1.                                                                                &lt;/P&gt;&lt;P&gt;Examples:                                                                                &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;The character '#' has a special meaning. It serves as an     &lt;/P&gt;&lt;P&gt;                  escape symbol and indicates that the very next character     &lt;/P&gt;&lt;P&gt;                  should be compared "exactly".                                &lt;/P&gt;&lt;P&gt;                  This allows you to search for:                                                                                &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;If c2 does not contain the wildcard character '*', the       &lt;/P&gt;&lt;P&gt;                  shorter field is padded with "soft blanks" to bring it up    &lt;/P&gt;&lt;P&gt;                  to the length of the longer field.                                                                                &lt;/P&gt;&lt;P&gt;Examples:                                                                                &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;but                                                                                &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;because a "soft blank" is neither any character ('+') nor a  &lt;/P&gt;&lt;P&gt;                  "real" blank ('# ').                                                                                &lt;/P&gt;&lt;P&gt;The escape symbol does not affect the length of f2 ('A#a#B'  &lt;/P&gt;&lt;P&gt;                  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;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Jul 2006 06:50:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-31T06:50:46Z</dc:date>
    <item>
      <title>contains pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484039#M226098</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;one of my int table field will be like this &lt;/P&gt;&lt;P&gt;" Material 000000000075008845"&lt;/P&gt;&lt;P&gt;" Material 000000000013245678".&lt;/P&gt;&lt;P&gt;please note space before letter "M" and a space between letter "l" and number zero ,and also letter"M" will be in caps.&lt;/P&gt;&lt;P&gt;Here i want to check whether my field contains like this " Material 000000000075007654" or not.&lt;/P&gt;&lt;P&gt;could anybody help?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ponraj.s.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484039#M226098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: contains pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484040#M226099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ponraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. We can use CS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if field1 CS ' Material 000000000075007654'&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; *----&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; code&lt;/P&gt;&lt;P&gt;  endif.&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;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:47:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484040#M226099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:47:07Z</dc:date>
    </item>
    <item>
      <title>Re: contains pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484041#M226100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ponraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check these Examples:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CP (Contains Pattern):                                       &lt;/P&gt;&lt;P&gt;                  The complete string c1 matches the pattern c2 (c1 "matches"  &lt;/P&gt;&lt;P&gt;                  c2).                                                         &lt;/P&gt;&lt;P&gt;                  The pattern c2 can contain ordinary characters and           &lt;/P&gt;&lt;P&gt;                  wildcards.                                                   &lt;/P&gt;&lt;P&gt;                  '*' stands for any character string and '+' denotes any      &lt;/P&gt;&lt;P&gt;                  character.                                                   &lt;/P&gt;&lt;P&gt;                  If the result of the comparison is positive, the system      &lt;/P&gt;&lt;P&gt;                  field SY-FDPOS contains the offset of the first character    &lt;/P&gt;&lt;P&gt;                  of c2 in c1. The wildcard character '*' at the beginning of  &lt;/P&gt;&lt;P&gt;                  the pattern c2 is ignored when determining the value of      &lt;/P&gt;&lt;P&gt;                  SY-FDPOS.                                                    &lt;/P&gt;&lt;P&gt;                  If the result of the comparison is negative, the system      &lt;/P&gt;&lt;P&gt;                  field SY-FDPOS contains the length of c1.                                                                                &lt;/P&gt;&lt;P&gt;Examples:                                                                                &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;The character '#' has a special meaning. It serves as an     &lt;/P&gt;&lt;P&gt;                  escape symbol and indicates that the very next character     &lt;/P&gt;&lt;P&gt;                  should be compared "exactly".                                &lt;/P&gt;&lt;P&gt;                  This allows you to search for:                                                                                &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;If c2 does not contain the wildcard character '*', the       &lt;/P&gt;&lt;P&gt;                  shorter field is padded with "soft blanks" to bring it up    &lt;/P&gt;&lt;P&gt;                  to the length of the longer field.                                                                                &lt;/P&gt;&lt;P&gt;Examples:                                                                                &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;but                                                                                &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;because a "soft blank" is neither any character ('+') nor a  &lt;/P&gt;&lt;P&gt;                  "real" blank ('# ').                                                                                &lt;/P&gt;&lt;P&gt;The escape symbol does not affect the length of f2 ('A#a#B'  &lt;/P&gt;&lt;P&gt;                  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;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:50:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484041#M226100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:50:46Z</dc:date>
    </item>
    <item>
      <title>Re: contains pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484042#M226101</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;Itab-material cp '# Material# ++++++++++++++++++'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: 1. There is a space immediately after '#'.&lt;/P&gt;&lt;P&gt;      2. And there are 18 '+' sign.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: vinodh balasubramaniam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: vinodh balasubramaniam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jul 2006 06:53:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/contains-pattern/m-p/1484042#M226101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-31T06:53:47Z</dc:date>
    </item>
  </channel>
</rss>

