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

need FM

Former Member
0 Likes
709

Hi,

I have a requirement in a case where i have to replac the ' ,' with space.

There is a standard FM for that can any one help me.

eg:

70,000,00 it should come as 70 000 00.

thanking in advance.

sampath

Hi,

I have a requirement in a case where i have to replac the ' ,' with space.

There is a standard FM for that can any one help me.

eg:

70,000,00 it should come as 70 000 00.

thanking in advance.

sampath

5 REPLIES 5
Read only

Former Member
0 Likes
687

Hi Sampath,

Use replace command,

Replace ',' with ' ' in str.

regards,

keerthi.

Read only

Former Member
0 Likes
687

Hi Sampath,

Yes, I am agreeing with keerthi. It can possible by using Replace command.

Try that it will solve.

Hope this helps you. Reply for queries

Regards,

kumar.

Read only

Former Member
0 Likes
687

Hi Sampath,

There is no such function module available for this type of replacements.

For this you can use REPLACE syntax.


REPLACE ',' WITH '.' IN W_STR.

Regards,

Kunjal

Read only

Former Member
0 Likes
687

Hi Sampath,

Check this FM : STRING_REPLACE

Parameters :

pattern = ' , '

substitute = ' ' " space

text = ' 70,000,00 '

-Satya

Read only

Former Member
0 Likes
687

Hi Sampath,

This F.M will work for u ,

<b>"SSM_REPLACE_CHAR_BY_SPACE"</b>

parameters:

INPUT_STRING = ' 70,00,000'

CHAR = ,

output will be '70 00 000'

null