<?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: amount field with thousand separator in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816468#M917909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as you said i used  write  v_amt_comma to v_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting ouput as 000000000005792.it should be 5,792.00&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 May 2008 10:00:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-11T10:00:26Z</dc:date>
    <item>
      <title>amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816465#M917906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to display amount field (5794.00)with thousand separator as (5,794.00).&lt;/P&gt;&lt;P&gt;i defined amount field as character data type for my requirement.&lt;/P&gt;&lt;P&gt;user want to see this value with thousan separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me hoe can i get thousand separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 08:17:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816465#M917906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T08:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816466#M917907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;System--&amp;gt;User Profile --&amp;gt; own data ..&lt;/P&gt;&lt;P&gt;In the Defaults tab .. change the Decimal Notification to 1 234 567,89&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 08:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816466#M917907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T08:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816467#M917908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or else use write to statement. This will add the thousand separator on its own.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
WRITE numfield TO charfield.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 08:23:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816467#M917908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T08:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816468#M917909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;as you said i used  write  v_amt_comma to v_amt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am getting ouput as 000000000005792.it should be 5,792.00&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 10:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816468#M917909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T10:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816469#M917910</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 like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: a(15) type c,&lt;/P&gt;&lt;P&gt;      b type ekpo-netpr.&lt;/P&gt;&lt;P&gt;      a = '5794.00'.&lt;/P&gt;&lt;P&gt;      b = a.&lt;/P&gt;&lt;P&gt;      write:/ b.  'I got output as 5,794.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;s.senthil kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 10:51:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816469#M917910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T10:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816470#M917911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;When u get the amount from database table definitely it will be of type curr. What u have to do is directly write that currency field to ur character variable. no need of numeric variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: LOOP AT itab INTO wa.&lt;/P&gt;&lt;P&gt;        CLEAR w_amount.&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;WRITE wa-wrbtr TO w_amount.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above statement will write the thousand seperator as per the user settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u always want to have 2 decimals then use addition DECIMALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE wa-wrbtr TO w_amount DECIMALS 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So no need of numeric field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 11:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816470#M917911</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-05-11T11:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: amount field with thousand separator</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816471#M917912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is two functions for converting display currentcy&lt;/P&gt;&lt;P&gt;CURRENCY_AMOUNT_SAP_TO_DISPLAY &lt;/P&gt;&lt;P&gt;Convert currency value from value stored in SAP to displayed currency &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CURRENCY_AMOUNT_DISPLAY_TO_SAP &lt;/P&gt;&lt;P&gt;Convert currency value from displayed currency value to value stored in SAP &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try below,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;DATA declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;WMTO_S-AMOUNT =  Type DEC :: length 15 :: Deciamls 4 &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;parameter: p_discur like TCURC-WAERS,     "Display currency&lt;/P&gt;&lt;P&gt;           p_intval like WMTO_S-AMOUNT.   "Internal Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:      gd_disval  like WMTO_S-AMOUNT. "Display Amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*Start-of-selection.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;          currency        = p_discur&lt;/P&gt;&lt;P&gt;          amount_internal = p_intval&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;         AMOUNT_DISPLAY   = gd_disval&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;         INTERNAL_ERROR   = 1&lt;/P&gt;&lt;P&gt;         OTHERS           = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; You are now able to manipulate the returned value.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                        I.e. Convert it to GBP&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Without using this function module you would only be manipulating the&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SAP stored value, which is often missing a number of zeroes.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      I.e. 28000 JPY is stored within SAP as 280.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*End-of-selection.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/(30)  'Value stored in SAP:', p_intval,&lt;/P&gt;&lt;P&gt;      /(30)  'Displayed currency:',  p_discur,&lt;/P&gt;&lt;P&gt;      /(30)  'Ammount is displayed Currency:', gd_disval.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it help&lt;/P&gt;&lt;P&gt;Wiparat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 May 2008 14:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/amount-field-with-thousand-separator/m-p/3816471#M917912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-11T14:32:56Z</dc:date>
    </item>
  </channel>
</rss>

