11-19-2013 10:32 AM
Hi All ,
Please can you resolev my query ..I am using DEC data type like... DEC(23.53) so can you tel me how much memory space occupied in bytes .
I try to searched it but I am not able to get it.
Plz help me
Thanks
Suraj
11-19-2013 10:48 AM
DEC: Counter or amount field with decimal point, sign, and commas separating thousands. A DEC field has a maximum length of 31 places.
actuvally
min max
-2147483648 | 2147483647 |
dec(23.53) may be it's its occupied 17
Thanks and regards
Ram
11-19-2013 6:41 PM
Hi,
We can find it in memory analysis in debugger.
Regards,
Sreenivas.
11-19-2013 7:35 PM
Hi Sreenivasa Rao Yarru,
Below is the Initial Memory allocated to each variable of type DEC.
data a TYPE DECFLOAT34. 16 bytes
data b TYPE DECFLOAT16. 8 bytes
data c TYPE dec03. 3 bytes
data d TYPE dec07. 4 bytes
data e TYPE dec12. 7 bytes
Thanks.
Nishant Bansal
11-20-2013 1:48 AM
Hi Suraj,
The information is available on
http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm
Data Type | Initial field length | Valid field length | Initial value | Meaning | |
Numeric types | |||||
I | 4 | 4 | 0 | Integer (whole number) | |
F | 8 | 8 | 0 | Floating point number | |
P | 8 | 1 - 16 | 0 | Packed number |
So it can be minimum 8 to maximum 16 bytes depending on Float or Packed Decimal type.
BR.