<?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: How to change Decimal Notation based on User settings programmatically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545307#M1428720</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarbajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need for FM. Try like below using 'Write To' statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable of type P.&lt;/P&gt;&lt;P&gt;Move ur number to that variable.&lt;/P&gt;&lt;P&gt;Then Write that variable to variable of type Char.&lt;/P&gt;&lt;P&gt;Now Char variable will contain value according to the User Decimal Settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: num TYPE i DEFAULT 9999.  " Enter ur number
DATA: qty TYPE p DECIMALS 3,  " Variable of Packed type 
            ch(13) TYPE c.  " Character variable

qty = num.           
WRITE qty TO ch.     " According to Decimal format in SU01, value is written
WRITE ch.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Jan 2010 08:57:43 GMT</pubDate>
    <dc:creator>awin_prabhu</dc:creator>
    <dc:date>2010-01-22T08:57:43Z</dc:date>
    <item>
      <title>How to change Decimal Notation based on User settings programmatically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545304#M1428717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Like cl_abap_datfm=&amp;gt;conv_date_ext_to_int  and cl_abap_datfm=&amp;gt;conv_date_int_to_ext which changes the date format ,is there any class/method which changes the number format......I mean decimal and thousand separator format. I have to do that based on the User settings which I am getting from USR01 table. But not getting any class/method where I have to submit the number along with the format to get the format as per user settings.&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;regards.&lt;/P&gt;&lt;P&gt;Sarbajit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545304#M1428717</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2010-01-22T06:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Decimal Notation based on User settings programmatically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545305#M1428718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i dont know regarding the class or method but you can try the following if it helps in your code&lt;/P&gt;&lt;P&gt;use the set statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DECIMAL '/ /,/'&lt;/P&gt;&lt;P&gt;Specifies the following number format: 1 999 987,98&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DECIMAL '///'&lt;/P&gt;&lt;P&gt;Specifies the following number format (Loader default): 1999987.98&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:50:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545305#M1428718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T06:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Decimal Notation based on User settings programmatically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545306#M1428719</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;Try using SET Decimal,FORMAT statment in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 06:57:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545306#M1428719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T06:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Decimal Notation based on User settings programmatically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545307#M1428720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sarbajit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No need for FM. Try like below using 'Write To' statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a variable of type P.&lt;/P&gt;&lt;P&gt;Move ur number to that variable.&lt;/P&gt;&lt;P&gt;Then Write that variable to variable of type Char.&lt;/P&gt;&lt;P&gt;Now Char variable will contain value according to the User Decimal Settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: num TYPE i DEFAULT 9999.  " Enter ur number
DATA: qty TYPE p DECIMALS 3,  " Variable of Packed type 
            ch(13) TYPE c.  " Character variable

qty = num.           
WRITE qty TO ch.     " According to Decimal format in SU01, value is written
WRITE ch.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 08:57:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545307#M1428720</guid>
      <dc:creator>awin_prabhu</dc:creator>
      <dc:date>2010-01-22T08:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to change Decimal Notation based on User settings programmatically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545308#M1428721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved by myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Mar 2010 06:22:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-change-decimal-notation-based-on-user-settings-programmatically/m-p/6545308#M1428721</guid>
      <dc:creator>sarbajitm</dc:creator>
      <dc:date>2010-03-09T06:22:10Z</dc:date>
    </item>
  </channel>
</rss>

