‎2012 Nov 16 3:01 PM
We are running into Memory failure and was wondering about the memory used by internal tables defined locally in subroutine? Meaning the memory allocated to internal tables defined locally in subroutine freed up after the subroutine is executed ? or do we have to explicitly release the locally defined internal tables in subroutine?
‎2012 Nov 16 3:22 PM
Hello Krish ,
You don't have to explicitly free it . To my understaning your memory failure is due to huge amount of Data selection In the internal table iff your error is like 'Memory Allocation failed' .
This is case only for Local data in the subroutine.
But it has many Variations take a look at below link .
http://help.sap.com/saphelp_470/helpdata/en/9f/db978335c111d1829f0000e829fbfe/frameset.htm
http://scn.sap.com/thread/790282
Hope this helps,
Anup Deshmukh
‎2012 Nov 16 3:12 PM
‎2012 Nov 16 3:22 PM
Hello Krish ,
You don't have to explicitly free it . To my understaning your memory failure is due to huge amount of Data selection In the internal table iff your error is like 'Memory Allocation failed' .
This is case only for Local data in the subroutine.
But it has many Variations take a look at below link .
http://help.sap.com/saphelp_470/helpdata/en/9f/db978335c111d1829f0000e829fbfe/frameset.htm
http://scn.sap.com/thread/790282
Hope this helps,
Anup Deshmukh