<?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: Compare text fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854550#M669024</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try using this:&lt;/P&gt;&lt;P&gt;CS (Contains String): &lt;/P&gt;&lt;P&gt;c1 contains the character string c2. &lt;/P&gt;&lt;P&gt;Trailing blanks in c1 and c2 are ignored if the respective field is of type C. &lt;/P&gt;&lt;P&gt;An empty string c2 (i.e., only blanks with type C, or empty string with type STRING) is included in any string c1, including the empty string itself. On the other hand, there is no non-empty string c2 included in an empty string c1. &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. &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;The comparison is not case-sensitive. &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' CS 'CD' is true; SY-FDPOS = 2. &lt;/P&gt;&lt;P&gt;'ABCDE' CS 'XY' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;'ABAAA' CS 'AB ' is true; SY-FDPOS = 0. &lt;/P&gt;&lt;P&gt;' ABC' CS ' AB' is true; SY-FDPOS = 1. &lt;/P&gt;&lt;P&gt;'ABC DEF' CS ' ' is true; but: SY-FDPOS = 0, &lt;/P&gt;&lt;P&gt;since ' ' is interpreted as a trailing blank and is thus &lt;/P&gt;&lt;P&gt;ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardsm&lt;/P&gt;&lt;P&gt;Prasant&lt;/P&gt;&lt;P&gt;*reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2007 09:57:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-19T09:57:55Z</dc:date>
    <item>
      <title>Compare text fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854547#M669021</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; I should compare two fields xblnr and belnr which have lenth 16 and 10 respectively. We should not reduce lenth of first field. Both are character type. Suggest me efficient way. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:40:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854547#M669021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compare text fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854548#M669022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;character fields are left-justified so you can just compare with "=" the first 10 digits of XBLNR and the field BELNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854548#M669022</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2007-09-19T09:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Compare text fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854549#M669023</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;Can you use xblnr(10) EQ belnr?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854549#M669023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Compare text fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854550#M669024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;try using this:&lt;/P&gt;&lt;P&gt;CS (Contains String): &lt;/P&gt;&lt;P&gt;c1 contains the character string c2. &lt;/P&gt;&lt;P&gt;Trailing blanks in c1 and c2 are ignored if the respective field is of type C. &lt;/P&gt;&lt;P&gt;An empty string c2 (i.e., only blanks with type C, or empty string with type STRING) is included in any string c1, including the empty string itself. On the other hand, there is no non-empty string c2 included in an empty string c1. &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. &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;The comparison is not case-sensitive. &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' CS 'CD' is true; SY-FDPOS = 2. &lt;/P&gt;&lt;P&gt;'ABCDE' CS 'XY' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;'ABAAA' CS 'AB ' is true; SY-FDPOS = 0. &lt;/P&gt;&lt;P&gt;' ABC' CS ' AB' is true; SY-FDPOS = 1. &lt;/P&gt;&lt;P&gt;'ABC DEF' CS ' ' is true; but: SY-FDPOS = 0, &lt;/P&gt;&lt;P&gt;since ' ' is interpreted as a trailing blank and is thus &lt;/P&gt;&lt;P&gt;ignored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regardsm&lt;/P&gt;&lt;P&gt;Prasant&lt;/P&gt;&lt;P&gt;*reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 09:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/compare-text-fields/m-p/2854550#M669024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T09:57:55Z</dc:date>
    </item>
  </channel>
</rss>

