Application Development 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: 

Replace . with ,

Former Member
0 Kudos

Hi,

how to replace . with , in a quantity field?

many thanks!!!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try with 'REPLACE ALL OCCURRANCES OF' statement.

remember this REPLACE will work only on CHARACTER fields. So you need to use write to statement before using REPLACE statement.

data : char_qty type char18.

write wa_mara-qty to char_qty.

now you can use REPLACE statement.

thanks & regards

Kishore Kumar Maram

8 REPLIES 8

Former Member
0 Kudos

Hi,

REPLACE '.' WITH ',' INTO in_par-value.

Thanjks

Vikranth

Former Member
0 Kudos

Hi,

REPLACE { section_of | sub_string_in } dobj WITH new

Reward pts if usefull.

Regards,

Dhan

Former Member
0 Kudos

Hi,

Eg : V_Quanty = 9.99.000

Replace all occurance of '.' in v_quanty with ','.

Thanks

Vikranth

Former Member
0 Kudos

hi,

go to transaction su3.there in the defaults tab u will have an option called decimal notation.change the as u wish by drop button over there.

i think this willl help u.

please reward me if helpful.

reagards,

Reddy.

Former Member
0 Kudos

I have a quantity field....no char!!!

Former Member
0 Kudos

Hi,

Try with 'REPLACE ALL OCCURRANCES OF' statement.

remember this REPLACE will work only on CHARACTER fields. So you need to use write to statement before using REPLACE statement.

data : char_qty type char18.

write wa_mara-qty to char_qty.

now you can use REPLACE statement.

thanks & regards

Kishore Kumar Maram

Former Member
0 Kudos

Hi,

You could try using the 'TRANSLATE' keyword.

Hope it works,

Sandeep.

former_member181995
Active Contributor
0 Kudos
TRANSLATE <Ur_firld> USING '.,'.

Amit.