<?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: Converting character type to integer in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702978#M626038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Neeraja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the function module NUMERIC_CHECK for checking that ur char field contains an alphabet or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF htype = 'NUMC'.&lt;/P&gt;&lt;P&gt;then the field doesn't have any alphabets.&lt;/P&gt;&lt;P&gt;elseif htype = 'CHAR'&lt;/P&gt;&lt;P&gt;then the field is containing alphabets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the field didn't have any alphabets u can then move it directly to int field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kasinath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Aug 2007 12:34:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-16T12:34:30Z</dc:date>
    <item>
      <title>Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702974#M626034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;My requirement is like this.&lt;/P&gt;&lt;P&gt;I read transfer in units into a character field.&lt;/P&gt;&lt;P&gt;Now i need to check whether it is Less Than 0 or contains any alphabet.&lt;/P&gt;&lt;P&gt;Please tell me how to move this char field to an integer field.&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Neeraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:20:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702974#M626034</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:20:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702975#M626035</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 directly move it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LV_CHAR(4) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_CHAR = '10'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LV_INT TYPE I.&lt;/P&gt;&lt;P&gt;check lv_char ca 'abcdefgh....z'. " To check if it conains any alphabets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_INT = LV_CHAR.&lt;/P&gt;&lt;P&gt;WRITE LV_INT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:25:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702975#M626035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702976#M626036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mahesh,&lt;/P&gt;&lt;P&gt; i tried this way, but i am getting run time error .&lt;/P&gt;&lt;P&gt;Can please clearify.&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Neeraja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702976#M626036</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702977#M626037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_char(10), lv_int type i.

if lv_char co '0123456789'.
  lv_int = lv_char.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please mark points if the solution was useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702977#M626037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702978#M626038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Neeraja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using the function module NUMERIC_CHECK for checking that ur char field contains an alphabet or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF htype = 'NUMC'.&lt;/P&gt;&lt;P&gt;then the field doesn't have any alphabets.&lt;/P&gt;&lt;P&gt;elseif htype = 'CHAR'&lt;/P&gt;&lt;P&gt;then the field is containing alphabets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the field didn't have any alphabets u can then move it directly to int field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kasinath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:34:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702978#M626038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702979#M626039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Move the field inside a TRY ENDTRY block with a CATCH for CONVERSION_ERRORS.  If no error occurs, then check if less than zero.  If an exception occurs, the code in the CATCH can issue relevant message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702979#M626039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting character type to integer</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702980#M626040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Neeraja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a(10) type c,&lt;/P&gt;&lt;P&gt;b(10) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = '123'.&lt;/P&gt;&lt;P&gt;b = a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ b.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b = 0000000123.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the standard function module MOVE_CHAR_TO_NUM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Aug 2007 12:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/converting-character-type-to-integer/m-p/2702980#M626040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-16T12:35:55Z</dc:date>
    </item>
  </channel>
</rss>

