Display Decimal point to comma: N.NNN,NN

I want to display any value in this format : N.NNN,NN  WHICH SHOULD BE INDEPENDENT OF USER SETTING PARAMETERS(Decimal Notation).
This is my 3rd post regarding same...In earlier nobody clarified.
Please guide.
Thanks a million..
Edited by: Gaurav Kumawat on May 26, 2009 4:57 PM

It is possible to find the current number format by querying table USR01. DCPFM holds the relevant indicator. Null means number format is 1.234.567,89, 'X' means the format is set to 1,234,567.89, 'Y' indicates 1 234 567,89.
The logic could then be something like this:
CASE USR01-DCPFM.
WHEN 'X'.
replace ',' in num with '?'.
replace '.' in num with ','.
replace '?' in num with '.'
WHEN 'Y'.
replace space with '.' in num.
WHEN OTHER.
do nothing as the number will already be in the required format.
ENDCASE.

Similar Messages

  • Change Decimal point to comma: N.NNN,NN

    Hello,
    I want to display a curr value in this format N.NNN,NN no matter what the user setting is.. It shud always print like this.
    I have checked this frm USR01-DCPFM, but not able to do it correctly.
    IF USR01-DCPFM eq 'X'.
    REPLACE ','  WITH '.' INTO l_amt.
    ENDIF.
    But it doesnt work.
    Scenario could be:
    Input - 1000.00  OR
    Input - 1,000.00 OR
    Input - 1,000.00 OR
    Input - 1.000,00
    Output shud be - 1.000,00
    Please suggest.

    Hello,
    I don't think you can bypass the Decimal notation settings against the user in :
    SU01->Defaults->Decimal notation.
    Cheers,
    Remi

  • Do NOT display decimal points for 1 currency

    Dear Friends,
    i have a report which shows the revenue of all countries. we have a target currency (variable) in the report.if we give that target currency as EUR, it changes al currencies into EUR. similarly if we give USD, the report will change all currencies to USD with decimal points
    But the requirement here is, for all other countries, the decimal points shud get displayed for the revenue, but only for Korea curreny (WON) the decimal points shud not be dispayed.
    in the table TCURC, for Korea it is maintained as " whole numbers only ".
    is there a way to achieve this??
    Rgds.,
    ASha

    Hi Yogesh,
    Thank you for ur reply.
    in the report, i have 10 keyfigures. 4 are being picked up from the report and they have currency translation variable. The rest 6 are formulas. On these formulae, i restricted the decimal display to "nothing defined". it works fine for all the 6 formulae. for WON it does NOT show decimals and for the rest of the currencies, it shows decimals.
    but how this can be achieved on the 4 direct keyfigures??
    Rgds.,
    ASha

  • Change in Decimal Points with comma

    Hi Gurus,
    For the result data, we  need to change " ," for " . "  and viseversa because that is how  German follow the format.i have checked the decimal format but that doesnt change this option because at r/3 side it is maintained in same way.
    Eg 2,000.00 i need it to be 2.000,00
    help me please...
    Thanks in Advance..
    Rennie

    One place I know of is you change that in user maintenance..Tcode SU01 -- type in User ID -- Defaults tab
    Or
    From Menu -- System -- User Profile -- Own Data
    For the change to take efffect user must log off and log back in
    Edited by: sam hennry on Jan 23, 2008 2:13 PM
    Edited by: sam hennry on Jan 23, 2008 2:15 PM

  • I am trying to make a Calculator in LabVIEW. I can't able to display decimal point in the output display and i can't able enter floating point numbers? Please help me.

    I am new to LabVIEW. Please provide the detailed information. Thanks in Advance.

    First thing to check is the representation of the indicator. Right click on it and move the mouse to representation. If it's not eithe EXT, DBL, or SGL, then the indicator is set only for integers.

  • Dynamic displaying of decimal points for currency field in ALV

    Hi,
            In ALV output there is a currency field and displaying data of different countries. It should display decimal point according to the country's currency. But at a time it can display data of different countries.

    Hi Dilip,
    I think your question is about currencies with different number of digits after decimal point. If you have the currency field in the ALV row, you have to give it's name as currency reference for the value field in the field catalog.
    After creating the field catalog, call a form and do something like this (change fielnames accordingly).
    <pre>
    *&      Form  alv_fieldcat_enhance
          Individual Enrichment of field catalog
    FORM alv_fieldcat_enhance
      CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
      FIELD-SYMBOLS:
        <alv_fieldcat> TYPE slis_fieldcat_alv.
      LOOP AT pt_alv_fieldcat ASSIGNING <alv_fieldcat>.
        IF <alv_fieldcat>-fieldname(5) = 'KBETR' OR
           <alv_fieldcat>-fieldname(5) = 'SKBTR' OR
           <alv_fieldcat>-fieldname(5) = 'DMBTR'.
    Company code currency
          <alv_fieldcat>-cfieldname = 'BWAER'.
    Document Currency for conditions, net value and taxes
        ELSEIF  <alv_fieldcat>-fieldname(5) = 'KWERT' OR
                <alv_fieldcat>-fieldname    = 'NETWR' OR
                <alv_fieldcat>-fieldname    = 'NPAX_MWST_AMNT'.
    Document Currency
          <alv_fieldcat>-cfieldname = 'WAERK'.
        ENDIF." <alv_fieldcat>-fieldname(5) = 'KBETR' or
      ENDLOOP." at pt_alv_fieldcat assigning <fieldcat_alv>.
    ENDFORM.                    " alv_fieldcat_enhance
    </pre>
    Regards,
    Clemens

  • Comma and Decimal point

    Hi Gurus,
    I am encountering a problem regarding printout of our SOA
    Instead of the standard format of the total value (comma then decimal point (ex. 2,559.62)) output is (decimal point then comma(ex. 2.559,62)). This always happens to a particular customer only. What should I do?
    Regards,
    Jay

    Hi,
    The decimal notation of numbers in Visual Composer is based on the Locale as set in the Portal
    (User Administration -> select user (or group) -> Language)
    if language is not set, it's based on IE language, and afterwards on the OS language.
    therefore, setting a number field formatting to "LOCALE_NUM" or checking the "Local Format" checkbox in the field's formatting tab, will cause the runtime to format the number according to the above.
    Your customer is probably currently on a non US locale.
    Best Regards,

  • Decimal points not displayed correctly

    Hi team,
    I am experiencing issues with displaying decimal points in the following fashion (selected element spinner and changing the number format in the appearance tab):
    Number Format: Percent
    Decimal Points: 0
    50%
    Number Format: Percent
    Decimal Points: 1
    50%
    Number Format: Percent
    Decimal Points: 2
    050%
    Number Format: Percent
    Decimal Points: 3
    0.050%
    Number Format: Percent
    Decimal Points: 4
    00.50%
    I was expecting something like this:
    Number Format: Percent
    Decimal Points: 0
    50%
    Number Format: Percent
    Decimal Points: 1
    50.0%
    Number Format: Percent
    Decimal Points: 2
    50.01%
    Number Format: Percent
    Decimal Points: 3
    50.012%
    Any views?
    Many thanks,
    Frank

    Amit/Frank,
    This is stange...
    Spinner is working differently in different systems...:) I tried it on 3 different systems...
    One system shows..
    Value is 50
    Number Format: Percent
    Decimal Points: 1
    5000.0%
    Number Format: Percent
    Decimal Points: 2
    5000.00%
    Second system...
    Value is 50
    Number Format: Percent
    Decimal Points: 1
    50%
    Number Format: Percent
    Decimal Points: 2
    050%
    and 3rd system..does not show up any change be it Decimal Points 1 or 2, it still shows 50
    -Anil

  • Windows Service - While converting into decimal its takes comma instead of decimal point

    Hi,
    We are converting hex value into decimal in windows service application ,  its working fine in almost all PC's except one.
    When we are using same code/windows service in French PC, while converting hex value into decimal its going wrong ( Ex : 1256,8904 instead of 1256.8904 )  that's is instead of decimal point takes comma. We executed same code in sample win
    form on same PC its working fine.
    actual value is "1256.8904" but its converting into "1256,8904". Can you please give me some idea how to resolve this.
    Regards,
    Prabhu.R
    Prabhu.R

    Hi,
    This forum is for System Center Service Manager. I bet you will have better luck in getting an answer if you find a forum that suits your question better. :)
    Regards
    //Anders
    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

  • Comma instead of decimal point

    Is there a global way to doubles and floats to use a comma instead of a decimal point (like we do in Europe) when output as a string? (as opposed to having to reformat each number individually every time I want to display it)

    Kramis wrote:
    Thanks. Writing code internally is no problem with a dot. Will the locale of my computer determine the string output style automatically?I'm not sure what exactly to change on your PC to make that happen, but yes, I believe you can do this. This varies on every OS, of course, but you should look into your OS's country- and/or location settings.
    Kramis wrote:
    ... but then I assume I have to use it every time I output to a string with each individual number.That is correct.
    Kramis wrote:
    ... I was hoping for a more global method.You could place the formatter(s) in a separate class and invoke them from there: no need to create new formatter(s) every time you want to display a number. But you will have to do yourFormatter.format(aDouble) every time though.

  • Comma is showing in place of  decimal point  ( smartform)

    Dear All
    When i try to display quantity or amount field with decimals in smartform report,  system is displaying comma instead of decimal point. for e.g 1200.50 is displayed as 1200,50.
    Please advice.
    Ravindra Suvarna

    posting part of the code for your verification. Pls let me know is you need any further information.
    Form Interface
    IS_BIL_INVOICE     TYPE     LBBIL_INVOICE
    IS_NAST          TYPE     NAST
    IS_REPEAT     TYPE     NA_REPET
    Global Definitions
    WA_EXCISE     TYPE     LBBIL_HD_KOND-KWERT
    WA_CESS          TYPE     LBBIL_HD_KOND-KWERT
    WA_CST          TYPE     LBBIL_HD_KOND-KWERT
    WA_TCS          TYPE     LBBIL_HD_KOND-KWERT
    WA_FREIGHT     TYPE     LBBIL_HD_KOND-KWERT
    WA_INVVAL     TYPE     LBBIL_HD_KOND-KWERT
    WA_ITMVAL     TYPE     LBBIL_HD_KOND-KWERT
    WA_RATE          TYPE     LBBIL_HD_KOND-KWERT
    WA_EX_WORDS     TYPE     CHAR_200
    WA_IN_WORDS     TYPE     CHAR_200
    WA_NUM_CHR     TYPE     CHAR_18
    WA_VTTK          TYPE     S_VTTK
    TOT_NETWT     TYPE     PNUM
    TOT_GRSWT     TYPE     PNUM
    T_NETWT          TYPE     PNUM
    initialization
      PERFORM CHECK_INVOICE USING  IS_BIL_INVOICE
                            CHANGING WA_EXCISE
                                     WA_CESS
                                     WA_CST
                                     WA_TCS
                                     WA_FREIGHT
                                     WA_INVVAL
                                     WA_ITMVAL.
    Form Routines
    FORM check_invoice USING is_bil_invoice TYPE lbbil_invoice
                       CHANGING wa_excise   TYPE lbbil_hd_kond-kwert
                               wa_cess     TYPE lbbil_hd_kond-kwert
                               wa_cst      TYPE lbbil_hd_kond-kwert
                               wa_tcs      TYPE lbbil_hd_kond-kwert
                               wa_freight  TYPE lbbil_hd_kond-kwert
                               wa_invval   TYPE lbbil_hd_kond-kwert
                               wa_itmval   TYPE lbbil_hd_kond-kwert.
      DATA : wa_kond TYPE lbbil_hd_kond.
      DATA : wa_ikond TYPE  lbbil_it_kond.
      CLEAR wa_excise.
      CLEAR wa_cess.
      CLEAR wa_cst.
      CLEAR wa_tcs.
      CLEAR wa_freight.
      CLEAR wa_invval.
      CLEAR wa_itmval.
      LOOP AT  is_bil_invoice-hd_kond INTO wa_kond. "header sub total
        CASE wa_kond-kschl.
          WHEN 'JEXP'.
            wa_excise = wa_excise + wa_kond-kwert.
            wa_invval = wa_invval + wa_kond-kwert.
          WHEN 'JECP'.
            wa_cess   = wa_cess   + wa_kond-kwert.
            wa_invval = wa_invval + wa_kond-kwert.
          WHEN 'JLST' OR 'JCST' OR 'JIVC' OR 'JIVP'.
            wa_cst    = wa_cst + wa_kond-kwert.
            wa_invval = wa_invval + wa_kond-kwert.
          WHEN 'ZTCS' OR 'ZTCX' OR 'ZENT' .
            wa_tcs    = wa_tcs + wa_kond-kwert.
            wa_invval = wa_invval + wa_kond-kwert.
          WHEN 'ZFRC'.
            wa_freight = wa_freight + wa_kond-kwert.
            wa_invval = wa_invval + wa_kond-kwert.
        ENDCASE.
      ENDLOOP.
      LOOP AT is_bil_invoice-it_kond INTO wa_ikond. "item value
        wa_itmval = wa_itmval + wa_ikond-kwert.
      ENDLOOP.
      wa_invval = wa_invval + wa_itmval.
      IF wa_invval NE  is_bil_invoice-hd_gen-bil_netwr.
        MESSAGE e002(sy) WITH 'Invoice total Error. Pls Check the Pricing Conditions'.
      ENDIF.
    ENDFORM.                    "check_invoice
    Display
    &WA_ITMVAL(11.2)&
    &WA_EXCISE(11.2)&
    &WA_CESS(11.2)&
    &WA_CST(11.2)&

  • Sap Script : getting comma in place of decimal point & viceversa

    Hi experts
    In one Sap script for 2 currency fields comma is there in place of decimal point & viceversa.(But rest of currency fields are getting displayed correctly.)
    ex: 1426.88  is printed as 1.426,88
    please provide me solution as early as possible
    Thanks & Regards
    Swathi Vuddala

    Hi Swathi,
    Check this info.
    I am providing two ways with some sample code, you modify it accordingly to your code.
    THIS PROCEDURE IS BY CHANGING SETTINGS :
    In your user profile, change the decimal format you are currently using.
    System->User Profile->Own data.
    Go to defaults tab and then change your decimal notation.
    THIS PROCEDURE IS WITHOUT CHANGING DEFAULT SETTINGS:
    Report YH642_TEST.
    TABLES:
    mard.
    DATA : W_mard_labst type p decimals 3,
    w_dt1(18).
    data:
    W_N TYPE I.
    SELECT SINGLE * FROM MARD INTO MARD WHERE LABST = '10000.00'.
    WRITE: mard-labst .
    W_mard_labst = mard-labst.
    WRITE:/ W_mard_labst .
    w_dt1 = w_mard_labst .
    write W_mard_labst to w_dt1.
    Hope this resolves your query.
    Reward all the helpful answers.
    Regards

  • PDF export to Excel the decimal point is not displayed in the amount

    When I export a pricelist from pdf to excel then the decimal point is not displayed in the amount. It does'n matter in which language I try
    Anyone kow why?
    So the tool doesn't work for me.

    I have no problem. What is your country setting for the decimal separator?
    Attachments:
    read from csv.png ‏18 KB

  • In a pages table change the decimal point to a comma

    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.

    Scott Fox wrote:
    I live in Italy and love it. However, there are issues. One that you might be able to help me with is changing the usual decimal point in a table to a comma. In Italy they use a comma for separating change from dollars instead of the usual decimal point.
    I apologize but _*in many countries*_ the usual decimal separator is not the decimal point, it's the comma.
    It's time to understand that American habits aren't the universal rules or ways of life !
    I'm not saying that American habits are bad, just that they are local ones, not better than others.
    Yvan KOENIG (VALLAURIS, France) mercredi 30 septembre 2009 16:01:23

  • IN sharepoint 2013 custom list number type column ,decimal point shown as comma

    i have a sharepoint 2013 site in which a custom list is there. In number type field while i enter decimal number, instead of decimal point comma is comming. Any help appreciate
    Thanks sanjay

    Hi SanjayPradhan,
    According to your description, my understanding is that when type decimal point in number field, it became comma.
    I made a test in my enviroment and it works like a charm.
    Did you have some formula in that column ?
    If yes, I suggest you can check the formula in list settings->columns.
    If No, I suggest you can recreate a new list and number field to test whther it works.
    Best Regards
    Zhengyu Guo
    TechNet Community Support

Maybe you are looking for

  • Synchronized AI and AO on PCI-6052E

    Hi, I need to acquire data on analog i/p channels and send out a TTL pulse on the analog o/p channel simlutaneously,both based on a trigger on PFI0 pin .I could create a vi that does only triggered AI and a seperate vi that does triggered AO.But when

  • Question on populating a field based on 2 other fields

    Hi, I am looking for a solution wherein I need to populate a field (say no of days) based on the other two fields selected by the user (say date from and date to). As soon as user selects the value on "date to" field, "no of days" field should be aut

  • IPhoto 6 Folder Structure - Conversion planning from iPhoto 5

    I have read in another thread that iPhoto 6 will reorganize the iPhoto 5 library folder structure from Year/Mohth/Day to Roll Name/Import Group. I am planning to upgrade my iPhoto 5 library to iPhoto 6, but in my iPhoto 5 librabry I have some rolls w

  • Help with slightly complicated iPod/iTunes library issue

    I have an older iPod with about 80 gig of music and videos on it, all legally acquired through the iTunes store or via my own CD collection. I would like to transfer the music of this library (which does not match the current contents of my current i

  • My Mac Pro (Late 2013) with an Apple SSD as the only storage will not restart

    I have a Mac Pro (Late 2013) with an APPLE SSD SM0256F as the only storage.  When I restart all I get is the spinning bars. I have to manually hold the power button down to force shutdown. I have let it try to restart for as long as 30 minutes. It wi