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: 

remove commas

Former Member
0 Kudos

i am getting output as 200,000. i want to remove commas.how can i do this by coding.

7 REPLIES 7

Former Member
0 Kudos

Hi,

REPLACE ALL OCCURRENCES OF ',' IN yourVar WITH ''.

regs

Former Member
0 Kudos

hi suganya

create a variable

take this output another variable

remove the commas

disply the new variable

Former Member
0 Kudos

hi suganya

create a variable

take this output into new variable

remove the commas

disply the new variable

Former Member
0 Kudos

Hi,

Usethe following statement:

v_var =200,000.

REPLACE ALL OCCURRENCES OF ',' IN v_var WITH ''.

Ashvender

Former Member
0 Kudos

Hi

Check Help for this Sentences: REPLACE

Regards

Gregory

Former Member
0 Kudos

data : var1(40) type c. "length depends on your variable......

*--var contains ur output......

move var to var1.

translate var1 using ', '.

condense var1 no-gaps.

write 😕 var1.

Regards

vasu

messier31
Active Contributor
0 Kudos

Hi,

<b>Use NO-GROUPING while writing.

For example :-

write amount_field NO-GROUPING.</b>

Enjoy SAP.

Pankaj Singh.