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

Value conversion

Former Member
0 Likes
678

Hello,

I want to convert the value 565.923.708,00 into the format 565,923,708.00. Is there ant function module, BAPI or conversion routine available for this?

Thanks

Nayan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

Hi

You need to check the number format from USR01 then only you can change

The you use Replace to change . to ,

Regards

Shiva

6 REPLIES 6
Read only

Former Member
0 Likes
646

Just try with WRITE

WRITE a TO b.

Regards,

Atish

Read only

0 Likes
646

what do you mean by write a to b????

I was just giving you an example...These values are not gonna be the same.

I want a general solution to this problem.

Read only

0 Likes
646

Hi nayan,

It is a general solution. Actually this format is depend on the user master record and WRITE take care of it.

Regards,

Atish

Read only

Former Member
0 Likes
647

Hi

You need to check the number format from USR01 then only you can change

The you use Replace to change . to ,

Regards

Shiva

Read only

Former Member
0 Likes
646

Hi

Try this out:

<b>write <fieldname> currency <currency_variable>.</b>

THanks

Vijay

Plz reward points if hlepful

Read only

gopi_narendra
Active Contributor
0 Likes
646

You can use the translate statement to change DOT's to COMMA's

Check this sample code

  select single * from USR01 where BNAME = SY-UNAME.

  case USR01-DCPFM.
    when 'X'.
      translate L_QNTY1 using ',.'.
      translate L_QNTY2 using ',.'.
    when ' ' .
      translate L_QNTY1 using '.,'.
      translate L_QNTY2 using '.,'.
    when others.

Regards

Gopi