<?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: Function module for decimal notation conversion in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913025#M685532</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;Please try FM C14N_NUMERIC_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: c(100) type c.
data: length type i.
data: offset type i.
                                                
c = '1223,54'.
                                                  
length = strlen( c ).
                                              
offset = length - 3.
                                                  
translate c+offset(1) using ',.'.
                                   
write:/ c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2007 19:21:21 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-10-15T19:21:21Z</dc:date>
    <item>
      <title>Function module for decimal notation conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913023#M685530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is there a function module to convert any decimal notation to the &lt;/P&gt;&lt;P&gt;1,234,567.890 , and if there is , then a sample code will be very useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 19:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913023#M685530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T19:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for decimal notation conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913024#M685531</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;do this way ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data : v_target type p decimals 2,
         v_source like bseg-dmbtr value '1222.22'.

   write v_source to v_target.

  write v_target.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 19:19:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913024#M685531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-15T19:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for decimal notation conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913025#M685532</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;Please try FM C14N_NUMERIC_FORMAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: c(100) type c.
data: length type i.
data: offset type i.
                                                
c = '1223,54'.
                                                  
length = strlen( c ).
                                              
offset = length - 3.
                                                  
translate c+offset(1) using ',.'.
                                   
write:/ c.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2007 19:21:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913025#M685532</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-15T19:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for decimal notation conversion</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913026#M685533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok , the problem that i am facin is as follows :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have  a input field which is of type decimal .The value in this field is taken and updated to a table using BDC call transaction. Now when the user default setting is 1,234,567.890  the program works fine. For example if I input 3 , then the value entered is 3.000 . Which is correct. If the default setting is changed to 1.234.567,890 , the program automatically adds 3 zeros before the decimal . So if I enter 3 , the value input is 3.000,000 instead of 3,000 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a solution for this. I have checked the attributes and the Fixed point arithmatic is checked. I tried both with checked and unchecked...and the problem persists.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2007 14:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-decimal-notation-conversion/m-p/2913026#M685533</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-16T14:15:37Z</dc:date>
    </item>
  </channel>
</rss>

