<?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 Pattern Comparison in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945016#M1601148</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;Split the string at '-' into two variables and then check the first variable if it contains any alphabets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Jun 2011 05:38:16 GMT</pubDate>
    <dc:creator>sridhar_meesala</dc:creator>
    <dc:date>2011-06-27T05:38:16Z</dc:date>
    <item>
      <title>String Pattern Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945015#M1601147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;                      I want to compare my input string with the pattern as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input String = 'ABCD-100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to compare before -(dash) entered string should only contains character(s) (e.g; A, b, D, C etc.); not the numbers.&lt;/P&gt;&lt;P&gt;how should I do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sohail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 05:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945015#M1601147</guid>
      <dc:creator>muhammad_sohail</dc:creator>
      <dc:date>2011-06-27T05:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: String Pattern Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945016#M1601148</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;Split the string at '-' into two variables and then check the first variable if it contains any alphabets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 05:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945016#M1601148</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2011-06-27T05:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: String Pattern Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945017#M1601149</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;PRE&gt;&lt;CODE&gt;
PARAMETERS p_date(20)." 
DATA : lv_po TYPE sy-fdpos,
       l_date(10).

IF p_date CA '-'. "check the - sybol is there or not

lv_po = sy-fdpos. "get the position

l_date = p_date(lv_po).

IF l_date CA '123456789'. " any numbers is there or not
MESSAGE 'error' TYPE 'E'.
else.
  MESSAGE 'Sucess' TYPE 'S'.
ENDIF.

ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhina..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 05:38:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945017#M1601149</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T05:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: String Pattern Comparison</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945018#M1601150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data str type string value 'AB2D-100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str1 type string,&lt;/P&gt;&lt;P&gt;      str2 type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split str at '-' into str1 str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if str1 na '0123456789'.&lt;/P&gt;&lt;P&gt;  write: 'Not containing Numbers'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  write: 'Contain Numbers'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jun 2011 05:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-pattern-comparison/m-p/7945018#M1601150</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-06-27T05:49:28Z</dc:date>
    </item>
  </channel>
</rss>

