on 07-17-2007 10:53 AM
Hi all,
This is Lokesh.I got requirement that i have to display amount in standard format like...
If the amount like 12000.00
it has to be display as 12,000.00
I have tried in so many ways but i am not getting solution.
I have tried like this
REPLACE ALL OCCURRENCES OF '.' IN wrk_dmbtr WITH ''.
REPLACE ALL OCCURRENCES OF ',' IN wrk_dmbtr WITH '.'.
But lastly i am passing that amount to ZVFLDTXT-FLDTXT01 in the driver program.
In the form i have written that structure ZVFLDTXT-FLDTXT01.In the print preview it is displaying the value as 12000.00.
So i am unable to display that value to 12,000.00
if any one knows solution pls guide me.
This is urgent requiremet.How to solve this issue?pls guide me.
Points will be awarded.
Regards,
Lokesh.
I thought that thousand separators were controlled by your user parameters. Check these in SU3 or ask someone else with the correct defaults to test your program.
Gill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Declare a varaible with datatype P.
Ex: DATA : amount type p decimals 2.
MOVE : '12000' TO amount. "automatically it will become like 12,000.00
Display amount.
Reward points if useful.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.