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
948

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
920

variable name TYPE P decimals 2

6 REPLIES 6
Read only

Former Member
0 Likes
921

variable name TYPE P decimals 2

Read only

Former Member
0 Likes
920

This way

DATA: lv_dat type P DECIMALS 2.

-A

Read only

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

If I recall correctly, the correct syntax is

amount(11) type p decimals 2

Read only

0 Likes
920

Hi Gustavo,

Yes indeed, sorry I miss typed it .

regards,

Advait

Read only

Former Member
0 Likes
920

Thanks