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

Integer Lenght

Former Member
0 Likes
3,998

HI All,

Can anyone tell me if i declare variable as int1, int2, int4 how many digits it can store

int1 ?

int2?

int3 ?

thnaks ..please tell in number of digits not in bytes

Thanks in Advance .

3 REPLIES 3
Read only

Former Member
2,479

Hi,

Type - Length

Int1 - 3

Int2 - 5 ( 2-byte integer (signed))

Int3 - 3

Best regards,

Prashant

Read only

Former Member
0 Likes
2,479

Hi,

INT1 - 3 digits

INT2 - 5 digits

INT4 - 10 digits

THanks,

Naren

Read only

0 Likes
2,479

this is what SAP Help says about the Integer Data types..

INT1: 1-byte integer between 0 and 255. The length is set to 3 places for this data type.

INT2: 2-byte integer between -32767 and 32767. Fields of this type should only be used for length fields. These long fields are positioned immediately in front of a long field (type LCHR, LRAW). With INSERT or UPDATE on the long field, the database interface enters the length which was actually used in the length field. The length is set to 5 places for this data type.

INT4: 4-byte integer between -2147483647 bis 2147483647. The length is set to 10 places for this data type.

~Suresh