Application Development 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: 

Data Types

Former Member
0 Kudos

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

4 REPLIES 4

ramkumar007
Participant
0 Kudos

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

former_member219762
Contributor
0 Kudos

Hi,

We can find it in memory analysis in debugger.

Regards,

Sreenivas.

0 Kudos

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

Former Member
0 Kudos

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.