02-02-2007 11:18 AM
Hi all,
how can i find the size of the internal table data interms of KB,MB..
Thanks in advance
02-02-2007 11:20 AM
02-02-2007 11:20 AM
Hi,
U can get the no.of records in the internal table the keyword like DESCRIBE
Thanks,
Shankar
02-02-2007 11:21 AM
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
02-02-2007 11:22 AM
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
02-02-2007 11:27 AM