<?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 How to convert string to integer in ABAP. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077060#M96580</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 convert number which is stored as string or character type into integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Nov 2005 12:19:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-25T12:19:14Z</dc:date>
    <item>
      <title>How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077060#M96580</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 convert number which is stored as string or character type into integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Archana.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:19:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077060#M96580</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T12:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077061#M96581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;check the below code which will convert character to integer..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NO1(10) TYPE C VALUE '1234567890'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NO2 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO2 = NO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE NO2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the foll code will convert the string to interger.&lt;/P&gt;&lt;P&gt;DATA NO1 TYPE STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA NO2 TYPE I.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO1 = '1234567890'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NO2 = NO1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE NO2.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Abdul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if ans is helpful...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Abdul Hakim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077061#M96581</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2005-11-25T12:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077062#M96582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Archana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Just declare a new variable of type i.&lt;/P&gt;&lt;P&gt;  and assign the character variable to i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. eg.&lt;/P&gt;&lt;P&gt;REPORT ac.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : a(50) type c.&lt;/P&gt;&lt;P&gt;data :num type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a = '799'.&lt;/P&gt;&lt;P&gt;num = a.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; a.&lt;/P&gt;&lt;P&gt;write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the above helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:23:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077062#M96582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T12:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077063#M96583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You must have to check if the value contain only number.&lt;/P&gt;&lt;P&gt;you could do that with a check: check w_value na sy-abdcd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you want to prevent any problem, you could include your move with a catch. That will block the shortdump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgd&lt;/P&gt;&lt;P&gt;Frédéric&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077063#M96583</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2005-11-25T12:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077064#M96584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Use this Fm to do that.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;CONVERT_STRING_TO_INTEGER&lt;/P&gt;&lt;P&gt;JUST pass string variable to this you will get int value&amp;lt;/b&amp;gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077064#M96584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T12:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077065#M96585</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;I don't know if it's your case, but, I guess you don't need a FM, it's is automaticly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v1(8) type c ,&lt;/P&gt;&lt;P&gt;      v2    type i .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v1 = '10' .&lt;/P&gt;&lt;P&gt;v2 = v1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;att,&lt;/P&gt;&lt;P&gt;Alexandre Nogueira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Nov 2005 12:41:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/1077065#M96585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-25T12:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert string to integer in ABAP.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/13951062#M2037990</link>
      <description>&lt;P&gt;INCORRECT&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 14:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-convert-string-to-integer-in-abap/m-p/13951062#M2037990</guid>
      <dc:creator>AmirKa</dc:creator>
      <dc:date>2024-11-28T14:42:31Z</dc:date>
    </item>
  </channel>
</rss>

