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

Replace . with ,

Former Member
0 Likes
1,010

Hi,

how to replace . with , in a quantity field?

many thanks!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
963

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
Read only

Former Member
0 Likes
963

Hi,

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

Thanjks

Vikranth

Read only

Former Member
0 Likes
963

Hi,

REPLACE { section_of | sub_string_in } dobj WITH new

Reward pts if usefull.

Regards,

Dhan

Read only

Former Member
0 Likes
963

Hi,

Eg : V_Quanty = 9.99.000

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

Thanks

Vikranth

Read only

Former Member
0 Likes
963

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.

Read only

Former Member
0 Likes
963

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

Read only

Former Member
0 Likes
964

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

Read only

Former Member
0 Likes
963

Hi,

You could try using the 'TRANSLATE' keyword.

Hope it works,

Sandeep.

Read only

Former Member
0 Likes
963
TRANSLATE <Ur_firld> USING '.,'.

Amit.