<?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: Data type conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536182#M850824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divide the number by 100 after assigning to the variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : string1 type string value '98.00'.&lt;/P&gt;&lt;P&gt;data : v_dec type ANZHL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_dec = string1.&lt;/P&gt;&lt;P&gt;v_dec = v_dec / 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 11:09:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T11:09:28Z</dc:date>
    <item>
      <title>Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536181#M850823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i need to convert string to decimals.string has a value 98.00%  i want to assign this to dec as .98&lt;/P&gt;&lt;P&gt;if any links for data type convertion.i.e from which type to which type we can assign.&lt;/P&gt;&lt;P&gt;please send me links.&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 11:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536181#M850823</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T11:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536182#M850824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divide the number by 100 after assigning to the variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : string1 type string value '98.00'.&lt;/P&gt;&lt;P&gt;data : v_dec type ANZHL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_dec = string1.&lt;/P&gt;&lt;P&gt;v_dec = v_dec / 100.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 11:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536182#M850824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T11:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Data type conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536183#M850825</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 think there will be a Function Module for this, but i don't have a system available to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do it with your own coding as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_string type string,
      lv_int    type i,
      lv_result type p decimals 2.

lv_string = '98.00%'.

replace '%' in lv_string with ''.

move lv_string to lv_int.

lv_result = lv_int / 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Roelof&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 11:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-type-conversion/m-p/3536183#M850825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T11:24:18Z</dc:date>
    </item>
  </channel>
</rss>

