<?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: Comparison operator for character-type operands issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328730#M1537864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following wild card character '*'. It is recognizing the pattern. You can have a look at the documentation for a detailed explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: str1 TYPE string,
      str2 TYPE string.


str1 = 'FROM /BIC/AZSD_O1100'.
str2 = '*ZSD_O1100*'.

IF str1 CP str2.
BREAK-POINT.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Oct 2010 16:17:42 GMT</pubDate>
    <dc:creator>samantak_chatterjee</dc:creator>
    <dc:date>2010-10-07T16:17:42Z</dc:date>
    <item>
      <title>Comparison operator for character-type operands issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328727#M1537861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am lost .... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following values in my variables&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INPUT_PATTERN1 = ZSD_O1100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WA_LOOKUP_FINDER-LINE = FROM /BIC/AZSD_O1100&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But the If condition below is not executed ?&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF ( wa_lookup_finder-line CP input_pattern1 ).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&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;Could you inform me what to correct ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 15:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328727#M1537861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-07T15:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison operator for character-type operands issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328728#M1537862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using IF wa_lookup_finder-line CP *&lt;STRONG&gt;ZSD_O1100&lt;/STRONG&gt; *.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 16:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328728#M1537862</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-10-07T16:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison operator for character-type operands issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328729#M1537863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Line is not executed?  Or is executed and returns non-zero code?  If so, change to 'CS' contains string, since you're not really supplying a pattern.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 16:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328729#M1537863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-07T16:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison operator for character-type operands issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328730#M1537864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the following wild card character '*'. It is recognizing the pattern. You can have a look at the documentation for a detailed explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: str1 TYPE string,
      str2 TYPE string.


str1 = 'FROM /BIC/AZSD_O1100'.
str2 = '*ZSD_O1100*'.

IF str1 CP str2.
BREAK-POINT.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 16:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328730#M1537864</guid>
      <dc:creator>samantak_chatterjee</dc:creator>
      <dc:date>2010-10-07T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Comparison operator for character-type operands issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328731#M1537865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
concatenate '*' 'ZSD_O1100' '*' into INPUT_PATTERN1.
WA_LOOKUP_FINDER-LINE = 'FROM /BIC/AZSD_O1100'.
IF ( wa_lookup_finder-line CP input_pattern1 ).
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 16:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/comparison-operator-for-character-type-operands-issue/m-p/7328731#M1537865</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-10-07T16:20:37Z</dc:date>
    </item>
  </channel>
</rss>

