<?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: string in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905866#M377568</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;Try &lt;/P&gt;&lt;P&gt;CA (Contains Any): &lt;/P&gt;&lt;P&gt;c1 contains at least one character from the string c2. &lt;/P&gt;&lt;P&gt;If c1 or c2 is of type C, the comparison takes into account the full length of the field, including blanks at the end. &lt;/P&gt;&lt;P&gt;If c1 or c2 is of type STRING and empty, the result of the comparison is always negative. &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 in c1 which is also in c2. &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 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' CA 'CY' is true; SY-FDPOS = 2. &lt;/P&gt;&lt;P&gt;'ABCDE' CA 'XY' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this may solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 08:23:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-06T08:23:03Z</dc:date>
    <item>
      <title>string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905862#M377564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai all,&lt;/P&gt;&lt;P&gt;data : c_rcpt1 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am checking that string contains 0,1,2,3,4,5,6,7,8,9 i have to make changes in code. for that i am using code c_rcpt1 cs '0' or c_rcpt1 cs '1'  or c_rcpt1 cs '2' and so on&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any code directly comparing like&lt;/P&gt;&lt;P&gt;c_rcpt1 cs '0 or 1 or 2 or 3 or 4 or 5 or 6 or 7 or 8 or 9'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plese help&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905862#M377564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905863#M377565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laxmi,&lt;/P&gt;&lt;P&gt;   YOu want to check if the string is numeric?&lt;/P&gt;&lt;P&gt;Then do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      call function 'NUMERIC_CHECK'&lt;/P&gt;&lt;P&gt;          exporting&lt;/P&gt;&lt;P&gt;            string_in  = c_rcpt1&lt;/P&gt;&lt;P&gt;          importing&lt;/P&gt;&lt;P&gt;            string_out = c_rcpt1&lt;/P&gt;&lt;P&gt;            htype      = type.&lt;/P&gt;&lt;P&gt;      if type = 'NUMC'.&lt;/P&gt;&lt;P&gt;         write:/ 'The string contains only numbers.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:18:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905863#M377565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905864#M377566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if c_rcpt1 ca '0123456789'.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905864#M377566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905865#M377567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Laxmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a sting as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_rcpt2 = '0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And use commant:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c_rcpt1 ca c_rcpt2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:19:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905865#M377567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905866#M377568</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;Try &lt;/P&gt;&lt;P&gt;CA (Contains Any): &lt;/P&gt;&lt;P&gt;c1 contains at least one character from the string c2. &lt;/P&gt;&lt;P&gt;If c1 or c2 is of type C, the comparison takes into account the full length of the field, including blanks at the end. &lt;/P&gt;&lt;P&gt;If c1 or c2 is of type STRING and empty, the result of the comparison is always negative. &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 in c1 which is also in c2. &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 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' CA 'CY' is true; SY-FDPOS = 2. &lt;/P&gt;&lt;P&gt;'ABCDE' CA 'XY' is false; SY-FDPOS = 5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So this may solve ur problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905866#M377568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: string</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905867#M377569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try to use CA instead of CS CA (contains any). and if you are checking only no then you can use CO(contains only).&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;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 08:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string/m-p/1905867#M377569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T08:24:19Z</dc:date>
    </item>
  </channel>
</rss>

