Currency decimal notation conversion

I am getting finacial values from a subsidary company in comma notation instead of the decimal notation.  It is clear that their user profiles are setup with this in mind and they don't want to change them.  Is there a function out there that converts comma to decimal i.e. 123,45 -> 123.45?
Thanks,
Kevin

HI Kevin May 
USE THIS CODE: IT TAKES CARE OF DECIMAL NOTATION BASED ON USER PROFILE.
WHAT EVER MAY BE THE USER PROFILE FOR DECIMAL NOTATION.
<b>
FIELD_NUM = 1,233.50
</b>
OR
<b>
FIELD_NUM = 1.233,50
</b>
OR
<b>
FIELD_NUM = 1 233,50
</b>
SELECT SINGLE DCPFM FROM USR01
                       INTO VAR_DCPFM WHERE BNAME EQ SY-UNAME.
          IF VAR_DCPFM EQ 'X'.
            REPLACE ALL OCCURRENCES OF ',' IN: FIELD_NUM WITH ''.
*            TRANSLATE FIELD_NUM USING ','.
          ELSEIF VAR_DCPFM EQ ''.
            REPLACE ALL OCCURRENCES OF '.' IN: FIELD_NUM WITH ''.
*            TRANSLATE FIELD_NUM USING '.'.
            TRANSLATE FIELD_NUM USING ',.'.
          ELSEIF VAR_DCPFM EQ 'Y'.
            TRANSLATE FIELD_NUM USING ',.'.
          ENDIF.
THIS CODE WILL WILL RESULT INTO :   <b>
FIELD_NUM = 1233.50
</b>
CHEERS,
VIJAY RAHEJA

Similar Messages

  • Function module for decimal notation conversion

    Hi
    Is there a function module to convert any decimal notation to the
    1,234,567.890 , and if there is , then a sample code will be very useful
    Thank you

    Hi,
    Please try FM C14N_NUMERIC_FORMAT.
    or try this.
    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.
    Regards,
    Ferry Lianto

  • JPY Currency - Decimal Notation in SMARTFORMS

    When outputing an amount field how do you ensure the correct number of decimal places is displayed in smartforms?

    Hi Terry,
    abap-coding is:
    data: amount type bseg-wrbtr,
          hval(20).
    write amount to hval currency bkpf-waers.
    regards Andreas

  • How to maintain currency decimal notation

    Hi all,
    we want to display  currency format  1,234,567.89
    but we are getting  current format   as 1.234.567,89
    we  already maintained  the required format in the USER PROFILE's  DEFAULT
    still we are getting this format  1.234.567,89
    so is there any thing we have to set at SPRO level?
    and also we have to maitain any thing more than these?
    please let me know urgently
    thanks in advance

    Hi Ramesh,
      Check the transaction "OY01".
      You can change your format of commas and decimal out here.
      Reward points if it helps.
    Regards
    Karan

  • Decimal Notation conversion as per user setting

    Hi all,
    The decimal point and the u2018thousand separatoru2019 must conform the convention used that is specified in the user profile of the user who is running the program.Please let me know the standard Function Module name for the same.
    Example:  1,234,567.00 (for UK user) and 1.234.567,00 (for users in France, Germany, etc).

    Hello,
    I have already search for available FM for this functionality but haven't found any. You can use the code below.
    REPORT  Z_CHANGE_QTY_TO_DECMALNOTATION.
    types: begin of t_tab,
             sample_value(30) type c,
           end of t_tab.
    types: begin of t_number,
             text(30)        type c,
           end of t_number.
    data: i_tab  type standard table of t_tab,
          wa_tab type t_tab.
    data: g_dcpfm type usr01-dcpfm.
    data: g_whole(30)        type c,
          g_decimal(30)      type c,
          g_strlen           type i,
          g_ndiv             type i,
          g_nmod             type i,
          g_delimiter        type c,
          g_separator        type c,
          name(30)           type c.
    initialization.
    clear: g_dcpfm,
           g_whole,
           g_decimal,
           g_strlen,
           g_ndiv,
           g_nmod,
           g_delimiter,
           g_separator.
    selection-screen begin of block b1.
    *parameter: p_value(30) type c.
    select-options: s_value for name no intervals obligatory.
    selection-screen end of block b1.
    *At selection-screen
    Start-of-selection.
    select single dcpfm
    into g_dcpfm
    from usr01
    where bname = sy-uname.
    if sy-subrc ne 0.
      g_dcpfm = space. "by default
    endif.
    loop at s_value.
      split s_value-low at '.' into g_whole
                                       g_decimal.
      g_strlen = strlen( g_whole ).
      g_ndiv   = g_strlen div 3.
      g_nmod   = g_strlen mod 3.
      case p_dcpfm.
        when space.
          g_delimiter = '.'.
          g_separator = ','.
          perform change_quantity using g_delimiter
                                        g_separator
                              changing s_value-low.
          concatenate s_value-low
                      g_decimal
          into s_value-low
          separated by g_separator.
        when 'X'.
          g_delimiter = ','.
          g_separator = '.'.
          perform change_quantity using g_delimiter
                                        g_separator
                              changing s_value-low.
          concatenate s_value-low
                      g_decimal
          into s_value-low
          separated by g_separator.
        when 'Y'.
          g_delimiter = space.
          g_separator = ','.
          perform change_quantity using g_delimiter
                                        g_separator
                              changing s_value-low.
          concatenate s_value-low
                      g_decimal
          into s_value-low
          separated by g_separator.
        when others.
      endcase.
      modify s_value. "from wa_tab.
    endloop.
    end-of-selection.
    WRITE: SY-UNAME.
    WRITE: G_DCPFM.
    loop at s_value. "into wa_tab.
      write: / s_value-low.
    endloop.
    form change_quantity using p_delimiter type c
                                                   p_separator type c
                                          changing p_sample_value.
    data: li_number  type standard table of t_number,
          lwa_number type t_number,
          l_flag     type c.
    data: l_temp     type i,
          l_previous type i,
          l_previous_text(30) type c.
    refresh: li_number.
    clear:   lwa_number,
             l_previous,
             l_temp,
             l_flag,
             l_previous_text.
    * initially *
    clear: lwa_number,
           l_temp.
    if not g_nmod is initial.
      lwa_number-text = g_whole(g_nmod).
      append lwa_number to li_number.
      l_temp = g_nmod.
    endif.
    clear: l_previous.
    do g_ndiv times.
        lwa_number-text = g_whole+l_temp(3).
        l_temp = l_previous + 3.
        l_previous = l_temp.
        append lwa_number to li_number.
        clear: lwa_number.
    enddo.
    clear: l_flag,
           l_previous_text.
    loop at li_number into lwa_number.
    if l_flag is initial.
      concatenate l_previous_text
                  lwa_number-text
      into g_whole
      separated by p_delimiter.
      replace first occurrence of p_delimiter in g_whole with space.
      condense g_whole no-gaps.
      l_previous_text = g_whole.
      l_flag = 'X'.
    else.
      concatenate l_previous_text
                  lwa_number-text
      into g_whole
      separated by p_delimiter.
      l_previous_text = g_whole.
    endif.
    p_sample_value = g_whole.
    endloop.
    endform.
    regards,
    massive
    Edited by: massive on Aug 20, 2009 9:58 AM

  • Convert from Comma notation to Decimal Notation, Any FM ?

    Hi Experts,
    I am looking to convert from Europe format to US format for Quantity & amount fields, I mean
    e.g. Europe:  12.3456,78 -> US: 12,3456.78
    pls. i can not use offsetting, replace, pattern, overlay, concatenate etc.
    So, pls. let me know that, Is there any SAP FM for this purpose of DECIMAL NOTATION conversion?
    thanq
    Edited by: Srinivas on Feb 22, 2008 10:48 PM

    use.
    Replace all occurances of ',' in w_value with '.'.
    Check this thread.
    REgarding converting  ','  TO  '.'

  • Decimal Notation IDR Currency on SAP Fiori

    Dear Expert,
    I had trouble with decimal notation on SAP Fiori. While I look My Spend on SAP Fiori, amount is different in ECC SAP with decimal notation.
    In SAP Fiori : 98.130 IDR
    In ECC SAP : 9.813.000 IDR
    That's different on SAP Fiori and ECC SAP. I want amount in my Spend on SAP Fiori same with Amount in ECC SAP. I think SAP Fiori still pick the table (WRBTR) before calculate *100 with currency IDR, because  ECC SAP automatic calculate *100 when IDR Currency.
    ( I think SAP Fiori like this piture, because it pick WRBTR table, and i want SAP Fiori pick Table in G/L Amount on ECC SAP)
    How to solve this in SAP Fiori?
    Thank You

    Hi Dattaraya,
    If I change decimal place of currency code IDR on OY04, it will change value on ECC SAP. It's mean like on SAP Fiori and ECC SAP same 98.130 but it's wrong. I want in SAP Fiori same with amount on ECC SAP, IDR 9.8130.000. I think SAP Fiori still pick the table before calculate *100. How to solve it?
    Thank You

  • How to get decimal notation in 'SU01'?

    Hi guys,
    You know that when we process the currency, it needs to know what the user have set the decimal notation.
    You can run tcode 'SU01',click the tab 'default' to see it.
    So how to get the user the setting?
    Any function module ?
    Welcome any ideas.
    Thanks very much.
    --James Liu

    make use if table
    USR01
    USR01-DCPFM     XUDCPFM     CHAR     1     0     Decimal notation
    possible values:
              1.234.567,89
         X     1,234,567.89
         Y     1 234 567,89
    regards
    Prabhu

  • Decimal Notation in Forms as per his SAP Decimal Notation

    Hi,
    We need to display all numeric fields in the Adobe Form as per the Decimal notation of the User in his SAP user defaults.
    Also, we need to take care that the currencies have current decimal places.
    Please let us know if this is achievable in Adobe Forms. Is there a way we can set the number format of a field dynamically in Adobe.
    Any pointers in this regard is highly appreciated.....Thanks in Advance.,
    Raghavendra

    Hi Raghavendra,
    to be bale to decide in your abap-printprogram, which format to use for printing, you can read the decimals and number format from customizing (or user) and then pass into form through an additional interface parameter format_string of i.e. CHAR060.
    Place your format string in a hidden textfield on your form
    This format string can then be used in the adobe form to format the text-field using script:
    this.format.picture = your_hidden_textfield.rawValue;
    we do so for date-formats and currency-formatting we read out of the country customizing.
    regards

  • ME13-Difference in the decimal notation in amount in conditions

    Dear All,
    I get this issue in the conditions of ME13(PIR). The value in the database(KONP-KBETR) has 2 decimal places, whereas in the screen, decimal notation is not present. i.e., the value looks like being multiplied by 100. This is present only in one system. The other system shows the value as it is in the database. This is common for all users.
    How can I change this? Is it some screen setting? Please help.
    Thanks,
    Sumanth

    The database always stores the values with 2 decimals, but  dependend on the currency settings the SAP programs that show the values to the user (except they are using SE16)  or calculate values, or printing puchasing documents   will take care to show it in the right form.
    If you develope your own programs, then you have to take care about this by yourself.

  • Decimal notation in Smartforms

    Hi,
    We have two  smart from USD in one smart form it is showing as  14,840.50 in USD whereas for other smart forms it is showing as 14.840,50 USD.and both the invoices has been raised for the same customer whose country is belgium and currency is USD.
    As far as i know decimal notation done in User id in SU01 default tab and country specific also we do decimal notation.
    At present we have 1.234,56 decimal notation for Belgium in country setting and 1,234.56 in user id setting.If i changed country setting to 1,234.56 thn it shows value as 14,840.50 in the second smartform also which is our requirement.But why there is a different presentation of decimal notation?On what basis decimal notation happens in SMARTFORMS.
    Regards,
    SATYA

    Hi Satya,
    You might want to check the language of the smartforms, the translations and the restricted language control in the form attributes.
    hope it helps,
    Edgar

  • New  Decimal Notation Format Required  For Indian Projects

    Respected Members,
    As at the user level or tcode SU01 only three decimal notations are provided.
    But for country India the decimal notation format is totally different.
    Given decimal notation format is
    1,234,567.89
    And the Required Format For India is
    1,23,456.78
    Becoz we mention the Rupees in this format only.
    And this second format is not available in SPRO also .
    How to create the desired decimal notation and add the corresponding functionality.
    And if we use the given format (1,234,567.89) then when we converting the amount in words through Function module
    SPELL_AMOUNT ,it is not converting properly even though we have maintain the entries in View V_T015Z.
    Suppose our amount is 1,00,000 that is One lakh but it will show in the output  ONE HUNDRED THOUSAND.
    I know that there is another function Module HR_ch_ something to convert in words according to indian currency.
    But it does not solve the issue properly.
    THis DECIMAL NOTATION format for Indian Projects is a BIG MESS.
    So kindly tell me any solution or it is the drawback of SAP.
    So that we can ask SAP to append this Decimal Notation and required Functionality for the Indian Projects.
    Kindly Send Your Valuable answer and Try To Make clear picture and SAP Technical People if Reading this thread then kindly give stress on the REQUIRED DECIMAL NOTATION.
    THANKS A LOT.

    Hi Manish please you can try this code
    REPORT ZAMOUNT_CONVERSION.
    DATA : RESULT1(20).
    PARAMETERS : NUM TYPE P DECIMALS 2.
    DATA : num2 type STRING.
    DATA :  col_amt(20) type n,"15
             col_b type i,
             num_1(20) type C,"15
             Length type i.
    num_1 = num.
    write : 'default format      :',num.
    uline.
    skip.
    IF ( num >= 999999999 ).
           write num_1 using edit mask 'RR__,__,__,__,______' to col_amt.
           CONDENSE col_amt.
           length = STRLEN( col_amt ).
           if length = 16.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
           write :/'amount indian format:',col_amt.
           endif.
    ELSEIF NUM < 999999999 AND NUM >= 9999999.
           write num_1 using edit mask 'RR__,__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           if length = 13.
             REPLACE first OCCURRENCE OF ',' in col_amt with space.
             write :/'amount indian format:',col_amt.
           else.
             write :/'amount indian format:',col_amt.
          endif.
    ELSEIF NUM < 9999999  AND NUM >= 99999.
           write num_1 using edit mask 'RR__,__,______' to col_amt.
           condense col_amt .
           length = STRLEN( COL_AMT ).
           write :/'amount indian format:',col_amt.
    ELSEIF NUM < 99999.
       data : dumy(10) type c.
       dumy = num .
       CONDENSE dumy.
       length = STRLEN( dumy ).
         if length <= 6.
           write :/'amount indian format:',num.
           else.
           write num_1 using edit mask 'RR__,______' to col_amt.
           write :/'amount indian format:',col_amt.
          endif.
       ENDIF.
       uline.
    create a function module with this code .hope this will solve the issue.

  • Reg : Interchange in decimal notation.

    Hi Experts,
    We have 1 client 110 for development 210 for testing and its a cross client for 110.
    We have one more client 300 for Testing and then client 400 production System.
    I am facing problem in Client 300.
    As in client 110 we have developed a program and tested in 210 Cross Client of 110 For testing. I have received a Perfect decimal Notation for amount.
    But when i transport the same program to test in 300 Client it interchanges the Decimal notation(i.e Instead of showing 3,015.25 it shows me 3.015,25)
    this problem Occurs in 300 Client only but not in 210 client where we have tested our data before sending it to client 300.
    I have checked OY01 and SU3 both where we can set the decimal notations in Client 300 in which i am facing the problem.
    This is an Implementation project.As according to me if its working fine in client 210 then same program should work in client 300. So kindly let me know all the possible solution which can be done for this from configuration (Functional) Side.
    So kindly let me know As soon as Possible what should i need to do to achieve the same in client 300.
    Thanks in Advance,
    Swapnil.

    Dear,
    where in currencies exactly i have do changes as i am ABAPer. I will tell my functional that way. As comma and dot is comming perfectly for USD but it is been interchanged For SAR. So kindly let me know where i have to maintain for SAR currency Except OY01 and SU3.
    Please let me know as its very very urgent...
    Thanks in advance,

  • Change Decimal Notation Format

    Hi All
    We have a requirement to output currency and quantity fields in a smartform to a different format than is specified in the users settings.
    This can be different depending on the country key of the vendor.
    Does anyone know of a way to dynamically change the decimal notation of a smartform.
    Thank you
    Darren

    Hi,
    Please check this function Module HRGPBS_HER_FORMAT_AMOUNT
    or
    You can use :
    Write <CURRENCYFILED> to <new_field >USING CURRENCY 'USD'.
    then you can use New-field in the smartform
    Regards
    Sudheer

  • List of users and their decimal notation settings in SAP system

    Hi all, i'm looking to get my hands on a list of all users in our SAP system and their respective decimal notation settings? I know that these can be mass changed using SU10 however I am unable to determine how to view a list of users and their settings.
    Thanks,
    James

    Hi James,
    You can find many useful reports, in SUIM transaction to see user details, but not decimal notation field. I don't know a report to show decimal notations, but as a workaround, in order to see the decimal notation, you can check "USR01-DCPFM" by using "SE16".
    Best regards,
    Orkun Gedik

Maybe you are looking for

  • Programati​cally stop and start computer process

    Is there a way to programatically start and stop computer processes/services using LabVIEW? Thanks, Taylor

  • Cannot open MXF XAVC files in quicktime or FCP7

    I am working with a new Sony FS7 video camera  that records in XAVC codec as mxf  files - Same as the F5 or F55. I have installed the new ProApps update that is supposed to  make it easy to use XAVC in Final Cut 7 which I still use and have also upda

  • Is this really impossible? (urgent)

    Hi all! I have been trying to get some good answer to this question for a while now: Is it possible to launch MS-DOS (in Windows 98) from an application by using the Runtime.exec() method? If it is, I would appreciate if you could tell me how it is d

  • Tag Bean Instance Reuse

    Hi, all           From the compiled code of JSP with TagLib, we found JSP compiler did not do           any optimization to reuse the instances of TagBeans. It will instantiate a           new instance everytime it sees a Tag. This will be a serious

  • Web module: All Flash Galleries have a 'cool' tone on images

    My monitor is calibrated 3x year and I have no other issues with color anywhere but in the Web module and only when I use ANY Flash gallery.  This has been a problem for me since 4.0 was installed (now on 4.2)  Before any of the images (sRGB jpegs) a