Skip to Content
author's profile photo Former Member
Former Member

Free key word Function

hi experts,

i am confusing with free key word usage.

right now i have not used FREE in my abap programs.

i read documentation it is saying

FREE:-Releases the memory space needed to process the internal table itab.

My doubt is why i need to Release the internal table memory. if i am not using what is the problem.

Please help me

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 03:01 PM

    When you execute a program it occupies certain memory space on apllication server . If your internal tables are huge ( large no of rows ) and you do not need them further in your program it is good to use Free itab so that memory is released and can be used by other programs ( this will increase the performance of your application server ). Otherwise this memory is only freed up when your program ends. If your internal table is expected to have not many rows then free itab does not have much significance.

    Cheers.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 19, 2005 at 02:59 PM

    FREE is used to free up the memory space of an internal table. You can use the keyword REFRESH also. This will clear the internal table. When processing large amounts of data with a lot of internal tables, it could be a good idea to FREE the interal tables when they are no longer being used. If you don't, you could have some memory issues.

    Regards,

    Rich Heilman

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 19, 2005 at 03:00 PM

    Hello Ramesh,

    the difference between CLEAR table[] and FREE table is:

    CLEAR only markes the memory space allocted by table before as empty.

    FREE deallocates the memory.

    If you find my answer useful, please don't forget the reward.

    Regards,

    Juergen

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.