<?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: alphabet checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182134#M464209</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; use the FM C14W_CHAR_NUMBER_CONVERSION ,&lt;/P&gt;&lt;P&gt; if sy-subrc = 0 then it contains character field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 May 2007 07:33:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-04T07:33:43Z</dc:date>
    <item>
      <title>alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182130#M464205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I took a variable of type c &lt;/P&gt;&lt;P&gt;and another variable type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my question is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to check the content in variable type c &lt;/P&gt;&lt;P&gt;  either it is consisting of alphabets or numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is numeric then i want to move it into type i variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:20:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182130#M464205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182131#M464206</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;You can say:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if var_c CO '0123456789'.&lt;/P&gt;&lt;P&gt;   var_i = var_c.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182131#M464206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182132#M464207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srujan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make use of 'CO'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check help on 'log_exp - Comparison operators for character-type operands '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For 'CO'&lt;/P&gt;&lt;P&gt;Contains Only: True, if operand1 only contains characters from operand2. Upper/lower case and trailing blanks are taken into account for both operands. If operand2 is of type string and is initial, then the logical expression is false, unless operand1 is also of type string and is initial, in which case the logical expression is always true. If the result of the comparison is negative, sy-fdpos contains the offset of the first character in operand1, that is not contained in operand2. If the result of the comparison is positive, sy-fdpos contains the length of operand1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suruchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182132#M464207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182133#M464208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I forgot to include the comma (,) and the period (.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There could be cases when these are also in the value of var_c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Br!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:31:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182133#M464208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182134#M464209</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; use the FM C14W_CHAR_NUMBER_CONVERSION ,&lt;/P&gt;&lt;P&gt; if sy-subrc = 0 then it contains character field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nilesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:33:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182134#M464209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182135#M464210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srujan , &lt;/P&gt;&lt;P&gt;  You can use the FM &amp;lt;b&amp;gt;CATS_NUMERIC_INPUT_CHECK&amp;lt;/b&amp;gt; , this FM checks if the input is numeric or not , if not it raises an execption.&lt;/P&gt;&lt;P&gt;You can also use the FM &amp;lt;b&amp;gt;NUMERIC_CHECK&amp;lt;/b&amp;gt;, this check the input and return the data type CHAR or Numeric .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:36:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182135#M464210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:36:00Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182136#M464211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if not var CA sy-abcde.&lt;/P&gt;&lt;P&gt;move var to Ivar.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182136#M464211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182137#M464212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : text(10) type c value 'abc153f4a',&lt;/P&gt;&lt;P&gt;         pos type i,&lt;/P&gt;&lt;P&gt;        len type i,&lt;/P&gt;&lt;P&gt;v_text,&lt;/P&gt;&lt;P&gt;v_char(10),&lt;/P&gt;&lt;P&gt;v_chari(10),&lt;/P&gt;&lt;P&gt;v_int type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( text ).&lt;/P&gt;&lt;P&gt;do len times.&lt;/P&gt;&lt;P&gt;v_text = text+pos(1).&lt;/P&gt;&lt;P&gt;if v_text ca sy-abcde.&lt;/P&gt;&lt;P&gt;concatenate v_cahr v_text into v_char.&lt;/P&gt;&lt;P&gt;condense v_char no-gap.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate v_cahri v_text into v_chari.&lt;/P&gt;&lt;P&gt;condense v_chari no-gap.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;pos = pos + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;v_int = v_chari.&lt;/P&gt;&lt;P&gt;write : / v_char, v_int.&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>Fri, 04 May 2007 07:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182137#M464212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-04T07:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: alphabet checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182138#M464213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following , it will help u!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : varc(5) type c VALUE '456re',&lt;/P&gt;&lt;P&gt;       answer(5) type c  ,&lt;/P&gt;&lt;P&gt;       HTYPE LIKE DD01V-DATATYPE.&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        = varc&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;   STRING_OUT       = answer&lt;/P&gt;&lt;P&gt;   HTYPE            = HTYPE "--&amp;gt; returns numc in case of numeric else returns char&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regerds ,&lt;/P&gt;&lt;P&gt;Sooness&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 May 2007 07:46:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alphabet-checking/m-p/2182138#M464213</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2007-05-04T07:46:03Z</dc:date>
    </item>
  </channel>
</rss>

