04-25-2006 3:03 PM
Hi,
is it possible to find out the used memory (RAM) of a internal table?
thanks
markus
04-25-2006 3:15 PM
Hi Markus,
Please go through the following points.
Memory Display for Single Objects and Data Objects
You can activate and deactivate the memory display for individual objects and data objects by choosing Settings ® Memory Display On/Off. The current memory values are shown in the display for the individual objects or data objects.
If you choose the Find References icon, the system displays all references to an object, anonymous data object, string, or internal table.
If an internal table, an object, or an anonymous data object is part of an SCC, a button appears in the right of the column: choosing this button displays the relevant SCC.
You can also go through the following links.
http://help.sap.com/saphelp_47x200/helpdata/en/b5/fa121cc15911d5993d00508b6b8b11/content.htm
http://help.sap.com/saphelp_47x200/helpdata/en/a2/e5fc84cc87964cb2c29f584152d74e/content.htm
Hope this helps.
Please reward helpful answer.
Regards,
Amit Mishra
Message was edited by: Amit Mishra
04-25-2006 3:25 PM
Hi Markus,
When we define the internal table like this :
Data : begin of itab occurs 0,
field1 type i ,
end of itab.
In this the size is initialized .
Also in statement :
data : itab like table of <database table > with header line with initial size 1.
So these all are the ways we define the size of the internal table.
Now to determine the memory used ,
you can do the Performance trace. In taht you can see what is the percentage of memory being used by the internal table.
Regards,
Kunal.
04-25-2006 3:50 PM
Hi,
If want to see memmory used by internal table then do the following things,
1) Go in debugging Mode
2) Setting->Memmory display on/off
3) Click on tables
4) Enter The Internal Table Name.
5) u will see the memmory used has
Internal table ______________
Length of Table Reference (in Bytes) _________
Bound Memory Referenced Memory
Memory Allocated __________ ____________
Memory Actually used __________ ________
Mark HelpFull Answers
Regards
Manoj
Message was edited by: Manoj Gupta
04-25-2006 3:53 PM
Hi,
Which System are you using?
If you are using the latest one, SAP provides a new debugger where you can take memory snapshots of the table as well as the program at different stages.
Regards,
Tanveer.