<?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: Problem with CS (Contains String) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658730#M292163</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when wa_entity-service_descript = Edwards Medical Supply - Internal catalog &lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = EDWARDS MEDICAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in second case...&lt;/P&gt;&lt;P&gt;when wa_entity-service_descript = AGRO Envelope corporation - Internal catalog&lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = ARGO ENVELOPE CO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...(WRONG NA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st2 contains string st1...(CORRECT IS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THATS Y IT IS sy-fdpos = 60..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS TELL ME WT EXACTLY UR REQUIREMENT....&lt;/P&gt;&lt;P&gt;SO THAT WILL HELP U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAMESH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 08:55:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-26T08:55:02Z</dc:date>
    <item>
      <title>Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658727#M292160</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 am comparing a work area field (wa_entity-service_descript)  with an internal table field (lt_output-catalog_name) using CS (Contains String).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine when wa_entity-service_descript = Edwards Medical Supply - Internal catalog &lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = EDWARDS MEDICAL.&lt;/P&gt;&lt;P&gt;It returns sy-fdpos = 0.&lt;/P&gt;&lt;P&gt;But when wa_entity-service_descript = AGRO Envelope corporation - Internal catalog&lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = ARGO ENVELOPE CO&lt;/P&gt;&lt;P&gt;CS returns false and the value of sy-fdpos = 60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is CS not returning true in this case? What should I do so that the comparison returns true?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Jayesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658727#M292160</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658728#M292161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe because you have AGRO and ARGO...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658728#M292161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658729#M292162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the example, you have mentioned that work area contains service desciption starting with "AGRO" and you are comparing with catalog name starting with "ARGO". So both values are not matching and that returns total length of service description, which is true by working definition of CS. Read below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the comparison is true, the system field SY-FDPOS contains the offset of &amp;lt;f2&amp;gt; in &amp;lt;f1&amp;gt; . If it is false, SY-FDPOS contains the length of &amp;lt;f1&amp;gt;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any further queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to mark helpful answers!&lt;/P&gt;&lt;P&gt;Gaurav Parmar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658729#M292162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658730#M292163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when wa_entity-service_descript = Edwards Medical Supply - Internal catalog &lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = EDWARDS MEDICAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in second case...&lt;/P&gt;&lt;P&gt;when wa_entity-service_descript = AGRO Envelope corporation - Internal catalog&lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = ARGO ENVELOPE CO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...(WRONG NA)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st2 contains string st1...(CORRECT IS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THATS Y IT IS sy-fdpos = 60..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS TELL ME WT EXACTLY UR REQUIREMENT....&lt;/P&gt;&lt;P&gt;SO THAT WILL HELP U.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAMESH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658730#M292163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658731#M292164</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 spelling is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_entity-service_descript = A&amp;lt;b&amp;gt;GR&amp;lt;/b&amp;gt;O Envelope corporation - Internal catalog&lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = A&amp;lt;b&amp;gt;RG&amp;lt;/b&amp;gt;O ENVELOPE CO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:55:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658731#M292164</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-10-26T08:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with CS (Contains String)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658732#M292165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Re: Problem with CS (Contains String)   &lt;/P&gt;&lt;P&gt;Posted: Oct 26, 2006 4:55 AM        Reply      E-mail this post  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when wa_entity-service_descript = Edwards Medical Supply - Internal catalog &lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = EDWARDS MEDICAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in second case...&lt;/P&gt;&lt;P&gt;when wa_entity-service_descript = AGRO Envelope corporation - Internal catalog&lt;/P&gt;&lt;P&gt;and lt_output-catalog_name = ARGO ENVELOPE CO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st1 contains string st2...(WRONG NA)(AND ALSO OBSERVE 'AGRO' NOT THERE 'ARGO' IS THERE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;st2 contains string st1...(CORRECT IS)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THATS Y IT IS sy-fdpos = 60..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLS TELL ME WT EXACTLY UR REQUIREMENT....&lt;/P&gt;&lt;P&gt;SO THAT WILL HELP U.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 08:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-cs-contains-string/m-p/1658732#M292165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T08:56:29Z</dc:date>
    </item>
  </channel>
</rss>

