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

formating amounts

Former Member
0 Likes
534

Hi all,

I am getting amounts as 12,345.0 and 24,00 but it should appear as 12,345.00 and 2,400.00 in my webdynpro application.

Please guide me on how can i achieve it.

Thanks and Regards,

Shilpa Dhawan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
509

Hi Shilpa,

Declare the variables as type P decimal 2. then it will hold the last 2 decimal points..

Thanks,

Srini.

3 REPLIES 3
Read only

Former Member
0 Likes
509

You need to use Currency key while printing the Amount

Read only

0 Likes
509

Hi ,

Thanks fro the reply.

I am using statement ls_emp-ec_bssal to ls_emp-ec_bssal CURRENCY ls_emp-ec_currency but it is not working.

ls_emp is work area of table ls_emp.

thanks,

shilpa

Read only

Former Member
0 Likes
510

Hi Shilpa,

Declare the variables as type P decimal 2. then it will hold the last 2 decimal points..

Thanks,

Srini.