Skip to Content
0
Former Member
Mar 16, 2009 at 05:32 PM

How does the (ABAP) AS handle unused internal tables? (garbage collection?)

47 Views

Hi,

Let's suppose i have a class, which contains a simple method like follow:

method do_this.

data lt_table type something_tab.

"do some manipulation on the lt_table.

endmethod.

So during runtime, at the moment when we leave the method "do_this", will the lt_table memory space be freed? Or is it still allocated? Do we need to use an explicit "free lt_table" statement?

I want to optimise memory usage in my code, and was wondering if such explicit calls to "free" is necessary.

Thank you,

Edited by: Huynh Van Du Tran on Mar 16, 2009 6:38 PM