<?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: logic for checking other than alphanumeric in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235980#M481555</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;check this which deletes special characters

REPORT ychatest.
 
DATA : v_char(25) VALUE 'A-B^34567-987',
       v_char1 LIKE fist-searchw.
 
v_char1 =  v_char.
 
CALL FUNCTION 'SF_SPECIALCHAR_DELETE'
  EXPORTING
    with_specialchar    = v_char1
  IMPORTING
    without_specialchar = v_char1.
 
v_char =  v_char1.
 
WRITE : v_char.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 14:38:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T14:38:11Z</dc:date>
    <item>
      <title>logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235979#M481554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any simple way or Fm to check the stringcontains  other than alphanumeric(A-Z and 0-9) and give an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sukumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235979#M481554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235980#M481555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;check this which deletes special characters

REPORT ychatest.
 
DATA : v_char(25) VALUE 'A-B^34567-987',
       v_char1 LIKE fist-searchw.
 
v_char1 =  v_char.
 
CALL FUNCTION 'SF_SPECIALCHAR_DELETE'
  EXPORTING
    with_specialchar    = v_char1
  IMPORTING
    without_specialchar = v_char1.
 
v_char =  v_char1.
 
WRITE : v_char.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235980#M481555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235981#M481556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi chandrasekhar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I checked that FM already.But it will not cover some characters like {} etc.&lt;/P&gt;&lt;P&gt;So, I want to check the string which doesnt contain alpha numeric and give them some msg.&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, 08 May 2007 14:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235981#M481556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235982#M481557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Sukumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  W_ALPHA_NUMERIC(36) TYPE C.&lt;/P&gt;&lt;P&gt;CONCATENATE SY-ABCDE '0123456789' INTO W_ALPHA_NUMERIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you want to check W_VAR wheteher it has other than ALPHA_NUMERIC .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF W_VAR CO W_ALPHA_NUMERIC.&lt;/P&gt;&lt;P&gt;  *"Do your task here&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  MESSAGE 'Contains Non ALPHA_NUMERIC Values' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regdards,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:45:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235982#M481557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:45:16Z</dc:date>
    </item>
    <item>
      <title>Re: logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235983#M481558</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: str type string.
data: valid_characters type string.
 
concatenate '0123456789' sy-abcde into valid_characters.
 
str = '123ABC'.
 
if str co valid_characters.
   write: / 'Characters are OK'.
else.
   write: / 'Characters are not OK'.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235983#M481558</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-05-08T14:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: logic for checking other than alphanumeric</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235984#M481559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sukumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: str type char62 value 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var1 CO str.&lt;/P&gt;&lt;P&gt;continue.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;print error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;var1 is ur variable to b checked.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;length of str may be 36 if case of alphabet is known beforehand.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds,&lt;/P&gt;&lt;P&gt;Avijit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 14:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/logic-for-checking-other-than-alphanumeric/m-p/2235984#M481559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T14:46:00Z</dc:date>
    </item>
  </channel>
</rss>

