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 value

srahemi
Participant
0 Likes
2,972

Hi Every One

How Convert " 325426667.0000 " to " 325,426,667 "

1 ACCEPTED SOLUTION
Read only

teshanappadoo
Participant
2,866

Try declaring a variable with type currency and assign your value to it. It will be converted to the desired format.

6 REPLIES 6
Read only

teshanappadoo
Participant
2,867

Try declaring a variable with type currency and assign your value to it. It will be converted to the desired format.

Read only

0 Likes
2,866

hi teshan

Thanks for the reply

can you give an example ?

Read only

2,866

Hello,

Data: lv_converted_value type dzwert, " type currency
lv_unconverted_value type string.

lv_uncoverted_value = '325426667.0000'.

" Assign unconverted value
lv_converted_value = lv_unconverted_value.
" Using ABAP 7.4

data(lv_unconverted_value) = CONV dzwert( lv_unconverted_value ).
Read only

srahemi
Participant
0 Likes
2,866

hi teshan

Thanks for the reply

can you give an example ?

Read only

venkateswaran_k
Active Contributor
2,866

Hi Sina

You can use following way

You may use your currency accordingly.

This will convert the value as above.

Regards,

Venkat

Read only

2,866

Please note that this is american number format. If you are logged in with e.g. a user with german locale the result would be "325.426.667,00". If the exact format is desired you temporarily need to witch user locale before.