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
897

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
869

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
870

variable name TYPE P decimals 2

Read only

Former Member
0 Likes
869

This way

DATA: lv_dat type P DECIMALS 2.

-A

Read only

Former Member
0 Likes
869
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
869

If I recall correctly, the correct syntax is

amount(11) type p decimals 2

Read only

0 Likes
869

Hi Gustavo,

Yes indeed, sorry I miss typed it .

regards,

Advait

Read only

Former Member
0 Likes
869

Thanks