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

field with Decimal

Former Member
0 Likes
899

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
Read only

Former Member
0 Likes
871

variable name TYPE P decimals 2

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

6 REPLIES 6
Read only

Former Member
0 Likes
872

variable name TYPE P decimals 2

Read only

Former Member
0 Likes
871

This way

DATA: lv_dat type P DECIMALS 2.

-A

Read only

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

regards,

Advait

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

Read only

Former Member
0 Likes
871

If I recall correctly, the correct syntax is

amount(11) type p decimals 2

Read only

0 Likes
871

Hi Gustavo,

Yes indeed, sorry I miss typed it .

regards,

Advait

Read only

Former Member
0 Likes
871

Thanks