Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Convert decimal to User Decimal format

Former Member
0 Likes
4,733

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,326

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

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.

5 REPLIES 5
Read only

Former Member
0 Likes
2,326

hii

use FM CONVERT_NUMBER.

thanks

Read only

former_member585060
Active Contributor
0 Likes
2,326

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.

Read only

Former Member
0 Likes
2,326

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.

Read only

Former Member
0 Likes
2,327

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

Read only

0 Likes
2,326

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