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: 

Size of the Internal Table

Former Member
0 Kudos

Hi all,

how can i find the size of the internal table data interms of KB,MB..

Thanks in advance

5 REPLIES 5

Former Member
0 Kudos

Hi,

refer to this thread:

regards,

madhu

p291102
Active Contributor
0 Kudos

Hi,

U can get the no.of records in the internal table the keyword like DESCRIBE

Thanks,

Shankar

Former Member
0 Kudos

Hi

Please check it you have the class CL_ABAP_MEMORY_UTILITIES in SE24

If you do have it check out for the method GET_MEMORY_SIZE_OF_OBJECT

this would give you the size of your internal table

Please check out this thread

https://forums.sdn.sap.com/click.jspa?searchID=1006391&messageID=86317

former_member181962
Active Contributor
0 Kudos

Hi Aima,

YOu can know how much space each record occupies by the declaration of the itab.

for eg:

data: begin of itab,

field1(60),

field2(40),

end of itab.

this makes 100 chars or 100 bytes of data per record.

use describe statemnet to know how many records are there in a table.

describe itab lines v_lines.

total_size - v_lines * 100. "In this example.

total_size will get the value in bytes.

if you want it in KB, divide it with 1024.

Regards,

Ravi

Former Member
0 Kudos

check these links..... they have a given an example how to calculate

regds,

kiran