<?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 String Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828761#M661928</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;how to find out whether the first 5 chars alphabets or not in a string for a particualr field in an internal table&lt;/P&gt;&lt;P&gt;reply me soon if anyone can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hv a sting like this&lt;/P&gt;&lt;P&gt;yruwy8900&lt;/P&gt;&lt;P&gt;and i have to check whether the first 5 characters are characters or numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Oct 2007 07:29:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-01T07:29:02Z</dc:date>
    <item>
      <title>String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828761#M661928</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;how to find out whether the first 5 chars alphabets or not in a string for a particualr field in an internal table&lt;/P&gt;&lt;P&gt;reply me soon if anyone can&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hv a sting like this&lt;/P&gt;&lt;P&gt;yruwy8900&lt;/P&gt;&lt;P&gt;and i have to check whether the first 5 characters are characters or numeric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:29:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828761#M661928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828762#M661929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iHi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF var+0(5) CS sy-abcde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...First 5 characters are alphabates.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:31:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828762#M661929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828763#M661930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;str1 = str2+0(5).&lt;/P&gt;&lt;P&gt;if str1 CS sy-abcd.&lt;/P&gt;&lt;P&gt;&amp;lt;do some thing&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:32:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828763#M661930</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-10-01T07:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828764#M661931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moev the string value to a character value first.. gv_char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare a constant with all numbers (0 to 9). say gc_numbers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt;use this.. if gv_char+0(1) ca gc_numbers..&lt;/P&gt;&lt;P&gt;                 if gv_char+1(1) ca gc_numbers..&lt;/P&gt;&lt;P&gt;do the same upto 5 places in gv_char..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828764#M661931</guid>
      <dc:creator>abdulazeez12</dc:creator>
      <dc:date>2007-10-01T07:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828765#M661932</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;Check this condition for alphabets in a String:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF V_STR(5) CO SY-ABCDE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828765#M661932</guid>
      <dc:creator>varma_narayana</dc:creator>
      <dc:date>2007-10-01T07:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828766#M661933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikas ,&lt;/P&gt;&lt;P&gt;   check out this function module,&lt;/P&gt;&lt;P&gt;CATS_NUMERIC_INPUT_CHECK&lt;/P&gt;&lt;P&gt;put the letters of the word one by one in this function module,&lt;/P&gt;&lt;P&gt;if the letters are characters, it will through an exception no numeric.&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;Santosh Thorat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:34:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828766#M661933</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828767#M661934</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 below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_char(10) type c value 'yruwy8900'.&lt;/P&gt;&lt;P&gt;data: v_length type i, v_count type i, v_total type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_length = strlen( v_char ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_length &amp;gt; 5.&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt; case v_char+v_count(1).&lt;/P&gt;&lt;P&gt;  when '0' or '1' or '2' or&lt;/P&gt;&lt;P&gt;       '3' or '4' or '5' or&lt;/P&gt;&lt;P&gt;       '6' or '7' or '8' or '9'.&lt;/P&gt;&lt;P&gt;  v_total = v_total + 1.&lt;/P&gt;&lt;P&gt;  when others.&lt;/P&gt;&lt;P&gt; endcase.&lt;/P&gt;&lt;P&gt; v_count = v_count + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_total &amp;gt; 0.&lt;/P&gt;&lt;P&gt; write:/5 'Invalid entry'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt; write:/5 'Valid entry'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828767#M661934</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: String Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828768#M661935</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;SY-ABCDE contains alphabets with capital letters.  So, string myst be in capital letters only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with this code:&lt;/P&gt;&lt;P&gt;data: v_string(15) type c value 'APPLEBANANA2006'.&lt;/P&gt;&lt;P&gt;data : str(10) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;str = v_string+0(5).&lt;/P&gt;&lt;P&gt;write str.&lt;/P&gt;&lt;P&gt;if str CA sy-abcde.&lt;/P&gt;&lt;P&gt;write 'Characters'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write 'Numerics'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Oct 2007 07:52:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-problem/m-p/2828768#M661935</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-01T07:52:13Z</dc:date>
    </item>
  </channel>
</rss>

