Application Development 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: 

field with Decimal

Former Member
0 Kudos

Hi all,

How to define a field to hold the data of decimals.?

I would like to define a field in such a way that it shoudl hold values like 123456789.55

Regards

Pavan

1 ACCEPTED SOLUTION

Former Member
0 Kudos

variable name TYPE P decimals 2

6 REPLIES 6

Former Member
0 Kudos

variable name TYPE P decimals 2

Former Member
0 Kudos

This way

DATA: lv_dat type P DECIMALS 2.

-A

Former Member
0 Kudos
data : amount type p(11) decimals 2.

regards,

Advait

Edited by: Advait Gode on Oct 1, 2008 2:41 PM

Former Member
0 Kudos

If I recall correctly, the correct syntax is

amount(11) type p decimals 2

0 Kudos

Hi Gustavo,

Yes indeed, sorry I miss typed it .

regards,

Advait

Former Member
0 Kudos

Thanks