Skip to Content
author's profile photo Former Member
Former Member

Convert decimal to User Decimal format

Hi All,

I have number in this format 10.000,52.I want to change this format to my User decimal format whcih is entred in SU01.

Can anybody please help me out.

Thanks,

Swapna.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 12:18 PM

    Hi,

    I can't change the settings in the SU01.The value is coming from flat file like this '10.500,50'.In this value all commas should be replace with '.' and all '.'with ','.

    Or i need to convert this is user decimal format.How can i do tat.

    is there any FM to solve this pblm.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Swapna

      Below sample code to replace dot with comma and viceversa.

      while sy-subrc <> 0.

      if wf_value eq '.' then

      replace '.' with ',' into wf_value

      elseif wf_value eq ',' then

      replace '.' with '.' into wf_value

      endwhile

      BR

      Lavanya

  • Posted on Aug 11, 2008 at 10:42 AM

    Go to System>User Profile>Own data

    Defaults Tab, select the decimal notation type u required.

    next time when u give input any number, it will display according to that particular notations.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 10:30 AM

    hii

    use FM CONVERT_NUMBER.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2008 at 10:46 AM

    Hi Swapna,

    Please go to SU01 --> Enter user id --> display --> Anc click on default tab and check the decimal notation.

    Declare one field to currency type and then try

    Use FM BKK_AMOUNT_CONV_TO_INTERN_MAIN.

    you can check by changing the values in su01.but remember your change reflect only when you logoff SAP and again login.so once logoff is needed.

    regards,

    Ranveer.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.