on 03-16-2009 5:32 PM
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
Hi,
I would say it would be better use FREE itab at the end of the processing in your code. In the end-of-selection in your code, you can FREE all your itabs that were used in the program. This is one of the good approach of optimizing the memory.
Regards
Vimal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.