cancel
Showing results for 
Search instead for 
Did you mean: 

Facing problem to display amount in standared format like 12,000.00?

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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

former_member196280
Active Contributor
0 Kudos

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