2006 Jan 10 6:10 AM
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
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
2006 Jan 10 6:13 AM
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
2006 Jan 10 6:37 AM
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
2006 Jan 10 6:51 AM
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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |