<?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: Logical Expression (Rel Operators) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128747#M987250</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jul 2008 13:20:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-08T13:20:42Z</dc:date>
    <item>
      <title>Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128741#M987244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can any Please provide the more Detailed information and &lt;/P&gt;&lt;P&gt;Example Programs on Logical Expressions  Operators( CO, CA, CN ,NA .... )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:14:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128741#M987244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128742#M987245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128742#M987245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128743#M987246</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;*Contains any (ca) case sensitive		*&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
		If u2018SAPu2019 ca u2018ABAP/4u2019.
			Write:/ u2018Trueu2019.
		Else.
			Write:/ u2018Falseu2019.
		Endif.
			Output	True
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;STRONG&gt;Contains only (co)   case sensitive&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
		
		If u2018SAPu2019 co u2018ABAP/4u2019.
			Write:/ u2018Trueu2019.
		Else.
			Write:/ u2018Falseu2019.
		Endif.
			  Output  False
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Contains string (cs) not case sensitive&lt;/STRONG&gt;		&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
		If u2018ABAP/4u2019 cs u2018Abu2019.
			Write:/ u2018Trueu2019.
		Else.
			Write:/ u2018Falseu2019.
		Endif.

			Output True
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Contains pattern (cp) not case sensitive&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
		If u2018ABAP/4u2019 cp u2018*aP++u2019.
			Write:/ u2018Trueu2019.
		Else.
			Write:/ u2018Falseu2019.
		Endif.
			Output True
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:18:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128743#M987246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128744#M987247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&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;Abhijeet Kulshreshtha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:19:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128744#M987247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128745#M987248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128745#M987248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128746#M987249</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;Follo wthe link-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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;Sujit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sujit Pal on Jul 8, 2008 3:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128746#M987249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128747#M987250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these following links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra Sekhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128747#M987250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128748#M987251</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 refer to this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128748#M987251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128749#M987252</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;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:26:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128749#M987252</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-07-08T13:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128750#M987253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanku all&lt;/P&gt;&lt;P&gt;actually i have one string data object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it contains only ',' s i need to put in differnt count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it contains any values other than ',' s i need to put in differnt count.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;so i will try .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128750#M987253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128751#M987254</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;Logical expressions &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A logical expression compares the value in one field with the value in another field. Although the most common logical expressions compare the contents of two numeric fields, string fields can also be compared. It is important to understand (and remember) the different types of logical expression for strings as they can make it much easier to work within the string processing model. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A logical expression would be: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if logical expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  code goes here&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are 8 relational operators for strings &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CO - contains &lt;/P&gt;&lt;P&gt;Use this to test if field a contains field b. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUSNM = 'Mrs. Johnson'&lt;/P&gt;&lt;P&gt;TEST = 'Mrs.'&lt;/P&gt;&lt;P&gt;CUSNM CO TEST returns a true value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Test that CUSNM contains a value. If the field is blank ABAP returns a false true. &lt;/P&gt;&lt;P&gt;if ( p_matnr co ' 0123456789' ).&lt;/P&gt;&lt;P&gt;shift p_matnr right deleting trailing ' '.&lt;/P&gt;&lt;P&gt;overlay p_matnr with '00000000000000000'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;shift p_matnr left deleting leading ' '.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CN - does not contain &lt;/P&gt;&lt;P&gt;Inverse of contains &lt;/P&gt;&lt;P&gt;CA - contains any &lt;/P&gt;&lt;P&gt;NA - contains none &lt;/P&gt;&lt;P&gt;Inverse of contains any &lt;/P&gt;&lt;P&gt;CS - contains string &lt;/P&gt;&lt;P&gt;NS - does not contain string &lt;/P&gt;&lt;P&gt;Inverse of contains string &lt;/P&gt;&lt;P&gt;CP - contains pattern &lt;/P&gt;&lt;P&gt;Allow you do do some rudimentary pattern matching. Use "&lt;STRONG&gt;" to match any string and "+" to match a single character. "#" is used as the escape character, allowing you to match "&lt;/STRONG&gt;","+" or "#" itself. The comparison is not case-sensitive. &lt;/P&gt;&lt;P&gt;CN - does not contain pattern &lt;/P&gt;&lt;P&gt;Inverse of contains pattern &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:29:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128751#M987254</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Logical Expression (Rel Operators)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128752#M987255</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;The one and only one SAP HELP: Here's the link-&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3516358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3523358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/fc/eb3523358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.abap2java.com/String_Comparison_Operator" target="test_blank"&gt;http://www.abap2java.com/String_Comparison_Operator&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Jul 8, 2008 7:02 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Harsh Dave on Jul 8, 2008 7:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2008 13:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logical-expression-rel-operators/m-p/4128752#M987255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-08T13:32:31Z</dc:date>
    </item>
  </channel>
</rss>

