<?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: Ranges in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856970#M362249</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CP IS CONTAINS PATTERN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEANS 123* THAT IS LIKE 123* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2007 09:41:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-25T09:41:02Z</dc:date>
    <item>
      <title>Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856969#M362248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Can any one tell me the purpose of Contain parameter in  ranges.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;    Ex: r_ran-option = &amp;lt;b&amp;gt;&amp;lt;i&amp;gt;'CP'.&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:38:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856969#M362248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856970#M362249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CP IS CONTAINS PATTERN .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MEANS 123* THAT IS LIKE 123* &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:41:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856970#M362249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856971#M362250</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;It will be dealt as the wild card character here. for example if you give any search like 123, CP will assume the search as &lt;STRONG&gt;123&lt;/STRONG&gt; i.e. 123 can be any where in the search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856971#M362250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856972#M362251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;     Please check this .&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" 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;Please reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856972#M362251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856973#M362252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;  The purpose of using CP in ranges to get all records which contain the pattern specified.&lt;/P&gt;&lt;P&gt;Here is a program to illustrate the same&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Ranges : r_one for mara-matnr.

Data : wa_ran like line of r_one.

wa_ran-sign = 'I'.
wa_ran-option = 'CP'.
wa_ran-low  = 'C*'.
append wa_ran to r_one.

Data : it_one type table of mara.

select *
into table it_one
from mara
where matnr in r_one.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so what this program does is gets all the material numbers which start with 'C'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Assign points if reply is useful&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856973#M362252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Ranges</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856974#M362253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;CP is Contain pattren, means, let's say you want to have the range check for all company codes not starting with AB, you will set your code as follow&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bukrs-sign = 'E'.             "Exclude &lt;/P&gt;&lt;P&gt;bukrs-option = 'CP'.        "Pattern &lt;/P&gt;&lt;P&gt;bukrs-low = 'AB*'.            "Low Value &lt;/P&gt;&lt;P&gt;bukrs-high = ''.                "High Value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ranges/m-p/1856974#M362253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:47:22Z</dc:date>
    </item>
  </channel>
</rss>

