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
633

hi friends,

i need FM if i give 10,000 as input output must be 10000.

Thanks

Santhosh

5 REPLIES 5
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
606

You can try STRING_REPLACE

Read only

Former Member
0 Likes
606

Why do you need a special FM for this? You could just replace the comma with space and condense.

PS: Please use a meaningful subject line

Read only

Former Member
0 Likes
606

Hi Santosh,

I dont think there is a need for FM.

Try this.

TRANSLATE w_value USING ', '.

CONDENSE w_value.

This should work.

Regards

Avinash

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
606

Hello Santhosh,

Is the value '10,000 ' defined as numeric or character?

If numeric:

WRITE v_number NO-GROUPING.

If character:

REPLACE ALL OCCURENCES OF ',' IN v_char WITH ` `.
CONDENSE v_char NO-GAPS.
WRITE v_char.

It is really not an "in-thing" to call FMs for each & every req.

BR,

Suhas

Read only

Former Member
0 Likes
606

Moderator message - Please do not ask or answer basic questions - post locked

Rob