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 Function Module

Former Member
0 Likes
395

Hi ,

I need a function module which insert comma into numerical value. For eg, total = 10203.45

I need a funtion module which outputs as 10,203.45

Kindly help me to do so

Reply Imm

Thanks

3 REPLIES 3
Read only

Former Member
0 Likes
380

Hi jayasree,

1. FM not required.

Simple Write Num to MyStr

will do.

2. just use this logic

3.

REPORT ABC.

DATA : NUM LIKE P0008-BET01.

DATA : MYSTR(15) TYPE C.

NUM = '10203.45'.

WRITE NUM TO MYSTR.

WRITE NUM.

WRITE MYSTR.

regards,

amit m.

Message was edited by: Amit Mittal

Read only

Former Member
0 Likes
380

Hi,

You can change the format in system profile->utilities->own data. it is possible to select the format which you want.

hope this works.

thanks

shivakumar

Read only

0 Likes
380

Hi,

You can use the FM <b>HRCM_STRING_TO_AMOUNT_CONVERT</b>

pass the field, decimal separator as '.' and thousand separator as ',' . you will get the required output.

Regards

vijay