‎2006 Nov 16 5:45 PM
Hi...
I am awfully new on this abap thing and I got a question:
I got this data defined
example (5) TYPE p,
And I don't know if this means that I got 5 decimals after the point (1111,xxxxx) or something else.
Plus, is using "example DECIMALS X" the only way to specify que quantity of decimal my data will have?
And one final question... if I do not specify any DECIMALS that means my TYPE p will have no decimals?
Thank you so much!!!
‎2006 Nov 16 5:47 PM
‎2006 Nov 16 5:47 PM
‎2006 Nov 16 5:48 PM
Did you see the help, which gives you a example
http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
Regards,
Ravi
Note : Please mark all the helpful answers
‎2006 Nov 16 5:50 PM
you HAVE to specify DECIMALS n to display the decimals for TYPE P.
try this sample..
report zptest.
data p_1 type p value '100'.
data p_2(5) type p value '534.56'.
data p_3 type p decimals 2 value '345'.
write 😕 p_1,p_2,p_3.
~Suresh
‎2006 Nov 16 6:04 PM
Jimmy,
p length is 16. default no decimals.
DATA: PP TYPE P.
like PP = '123456789123456'.
if you are giving decimals 2, including decimals length should be of 16 characters.
DATA: PP TYPE P decimals 2.
like PP = '1234567891234'.
you can give at max 14 decimals
DATA: PP TYPE P decimals 14.
like PP = '1'.
-Anu