2007 Sep 03 4:37 PM
hallow
i wont to declare filed that i get the numbers after divide like 3.25 or 20.25 or 100.55 how?
regards
2007 Sep 03 4:58 PM
I always prefer like data dictionary :
data val type vbap-netpr. " Netpr contains 2 decimals..
Thanks
Seshu
2007 Sep 03 4:45 PM
Hi,
u can declare like this.
Data l_number type p decimals 2.
Regards,
Niyaz
2007 Sep 03 4:45 PM
2007 Sep 03 4:58 PM
I always prefer like data dictionary :
data val type vbap-netpr. " Netpr contains 2 decimals..
Thanks
Seshu
2007 Sep 03 4:59 PM
Hi Tal,
Declare as <b>TYPE P DECIMALS 2</b>.
DATA:
V_A TYPE P DECIMALS 2 VALUE '25.59',
V_B TYPE P DECIMALS 2 VALUE '11.31',
V_C TYPE P DECIMALS 2.
V_C = V_A / V_B.
WRITE:/ V_C.
Thanks,
Vinay