Change decimal notation as per user's profile

Hi all,
The input file has a price in the following format:
1,000.50
Is there any function module that converts the price as per the user's profile format.
1,000.50 should be converted to 1.000,50  as per the user's profile setting of decimal notation.
Regards,
Chandan

hi check this.....
data: test1(10)  type c  ,
      test type p decimals 2 value '1000.50' .
write test to test1 .
       replace all occurrences of ',' in test1 with '#' .
       replace all occurrences of '.' in test1 with '*' .
        replace all occurrences of '#' in test1 with '.' .
         replace all occurrences of '*' in test1 with ',' .
       write:/ test1 .
regards,
venkat.

Similar Messages

  • How to change Decimal Notation based on User settings programmatically?

    Hello All,
    Like cl_abap_datfm=>conv_date_ext_to_int  and cl_abap_datfm=>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.
    Thanks in Advance.
    regards.
    Sarbajit.

    Hi Sarbajit,
    No need for FM. Try like below using 'Write To' statement,
    Declare a variable of type P.
    Move ur number to that variable.
    Then Write that variable to variable of type Char.
    Now Char variable will contain value according to the User Decimal Settings.
    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.
    Thanks,

  • Setting Default Decimal Notation with ISA User Admin

    Hello all,
    I have been trying to find out how I can select a default decimal notation when creating users via ISA User Admin.  My client wishes the default notation to be 1,234,567.89.
    In advance, many thanks
    Jon

    Gun
    Thanks for your response.
    The problem is that customers will be creating their own users via Web Based User Management.  Currently the only way we can amend the decimal notation is via SU01.  This, then, would have to happen for every user because the default notation is not the one we require.  My question is - is there a way of setting the default decimal notation for each user so we do not need to manually amend each user in SU01.
    Thanks,
    Jon

  • 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

  • Impact on changing decimal notation at country setting

    Hello,
    There is a need to make change in the decimal notation in country setting (T005-XDEZP) from 1.234.567,89 to 1,234,567.89
    The company in this country is a live company since last couple of years.
    In case we make changes in t-code OY01 & change the decimal notation from 1.234.567,89 to 1,234,567.89,
    1. What will be overall impact?
    2. Will it affect
        a> posting
        b> reporting
        c> printing
        d> history data
        e> any other impact
    Thanking you in advance
    Regards
    Santosh

    Hi all,
    Although my functional has submitted a request to SAP on this issue, but i still hope by letting this issue still open in this forums that there are still ideas for this weird problem... su01 not saving the latest decimal notation...
    I will get back to everyone if there is an update from SAP.
    Thanks
    William Wilstroth

  • Default decimal notation in user profile

    Dear All,
    Is there any way by which we can ignore decimal notation saved in user profile.
    I need to set the decimal notation 1,234,567.89 irrelevant of user profile setting. If user has saved any other optios for decimal notation in user profile then also i need to set the decimal notation as 1,234,567.89.
    Thanks a adv.

    Hello
    So, for this I have created in OY01 three countries:
    Z1 with decimal notation 1.234.567,89
    Z2 with decimal notation 1,234,567.89
    Z3 with decimal notation 1 234 567,89
    When I need to use in report some decimal notation I set particular country:
    set country 'Z1'. " output will be in format 1.234.567,89
    " or
    set country 'Z2'. " output will be in format 1,234,567.89
    " or
    set country 'Z3'. " output will be in format 1 234 567,89

  • Changing the Decimal Notation

    Hello Experts,
    We have a request to change the decimal notation of values. Please consider the below example.
    Value: 450000 (Four lakhs and fifty thousand)
    Actual Decimal Notation in the syetm is 450,000.00 (In thousands)
    Expected Decimal Notation: 4,50,000.00 (In Lakhs)
    Please advice where to set this up in the system.
    Thanks in advance,
    Regards,
    Sekar

    Dear,
    Please go to Systems>User Profile>Own data,
    It will open a screen for your user ID, now go to Default Tab and change the decimal Notation as per your requirement.
    Hope this helps!!!
    Br,Vivek

  • 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

  • Global setting for decimal notation setting?

    Experts:
    Where can I set the decimal notation for all users? Is there a global default setting for this?
    I need to display numbers as xxx,xxx,xxx.xx.
    Each individual user can set this in their Maintain User Profile -->Default settings.
    But I need to have the system default for EVERY user to xxx,xxx,xxx.xx.
    Your assistance will be rewarded.
    Thanks
    Den

    Hi,
    Go to SU10 - Mass change. Enter all the User list and make the changes.
    Hope it will help u.

  • 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

  • Issue on Decimal notation

    Hi Friends,
    Here i'm facing issue on decimal notation, which we maintained at User profile screen
    like 1.234.567,89 / 1,234,567.89
    In an report output, for a particular field, value is displaying as 1.25 - here i chose decimal notation 1.234.567,89 on my userid
    But the value is displaying as 1,25 or 1.25 based on their user profiles whatever they maintained decimal notations at their user profiles, so now i need to make this as common decimal factor to either 'comma' or 'dot' at report output irrespective of users profile...hope you understand
    Please provide me your valuable inputs.
    Thanks
    Suren

    hi,
    convert the amount before passing to the report.Pass teh amount to a char field before printing.
    use bapi to convert it to desired format:
    BAPI_CURRENCY_CONV_TO_INTERNAL
    BAPI_CURRENCY_CONV_TO_EXTERNAL

  • BestPractices Error - Set Decimal Notation and Date Format

    Hello everyone,
    first of all, I don't know, if this is the right forum for my question, but I hope so
    We're trying to implement the Best Practices Scenarios to a new SAP ERP System.
    We did the steps of the following url, where everything worked fine: http://help.sap.com/bp_dm603/DM_DE/html/index_DE.htm
    Then we integrated Best Practices 603V8 via Solution Builder (TA: /n/SMB/BBI). But now, when we switch to Implementation Assistant and try to activate Scenario DE_109 --> 100(DE) --> Folder USERSETTINGS, we receive the following error in report /SMB99/SU3_O009_B32: Set Decimal Notation and Date Format.
    So we called transaction SU3 and changed Decimal Notation and Date Format, but the error still exists.
    Anybody knows what to do?
    Thanks for your help!
    Best regards
    Patrick
    PS: We executed Testscript /SMB99/SU3_C009_B32 via TA SECATT and there is the error:
    TCD SU3 0,292 sec N Maintain Users Own Data

    Hi,
    Follow below link to verify whatever you have done is correct:
    http://help.sap.com/bp_bblibrary/600/Documentation/B32_BB_ConfigGuide_EN_MX.doc.
    Thanks
    Sunny

  • 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

  • Regional Settings Decimal Notation

    Hi - Quick question here
    I want to default a specific Decimal Notation for our field sales team and do not want them to have to go to the Personalize menu to change.   How do I do this?   I have reviewed the Admin Guide but could not find any details on how to do this.
    Thanks,
    Jeff

    Hi Jeff,
    The decimal notation depends on the personalized settings of each user.
    In the current release of the system these changes are user specific i.e. all your users will have to change it with their respective logins to be able to use the required decimal notation.
    I’ve heard there is a plan to deliver a report which enables changing decimal notation for mass employees, but there is no commitment for this.
    Best Regards,
    Cristiano Rosa

  • Language settings per User

    Hi,
    has anyone an idea on how to change the language settings per User (not general Language Setting).
    Lets say one user uses  english another user swedish or geman as default language!
    Many thanks in advance, Nick

    Hi Nick,
    Yr suggestion is up to the mark, But SAP dont have such option.All user have same Lang.
    Thanks
    Kevin

Maybe you are looking for

  • Set up activities with PP-PI

    Hi all I'm trying to transfer recipes from ECC to APO, but I have a problem when creating set up activities. In APO they are not being created. I belive is that in the resource there is no formula to calcule the set up time. And there is no place for

  • How do I email a page in firefox? I do not want to send a link, but mail the actual page.

    I want to email a page in firefox. I do not want to send a link or copy it to a word or other document and then mail it. Is there a way to do this as in other browsers? Thank you.

  • Undo Mac Mini Update?

    I have a couple of friends who own a 2006 Mac Mini running Tiger. They tried to do a software update, but it failed. Then when they would try to boot up, they would just see the gray Apple logo screen with a never-ending rotating line status icon. I

  • Time Approval in MSS

    Hello Gurus, We  want to implement the Time Approval in MSS using the Webdynpro Application sap.com/msscatapproval/CatManagerApprove and don't want to implement workflow for this since users want to do a collective approval .....how can we implement

  • Can't Download After Effects CS6 Trial

    Error communicating with Adobe.com(Error 107). Restart Adobe Download Assitant and try to add the product again.