Thursday, 6 August 2015

Difference between clear refresh and free

CLEAR-it clear the header area as well as the body area of internal table and workarea.

As with the CLEAR statement the memory used by the table before you initialized it remains allocated . to release the memory space we use FREE

u declare internal table with  header line :

DATA:itab type standard table of mara occurs 0 with header line.


CLEAR itab.  (it means it clears the header area)
clear itb[]. (it means it clears the body area)




REFRESH:it always works for internal table.

this always applies to the body of the table.

FREE: always works for internal table only,

you can use FREE to initialize an internal table and also to release the memory space.

1 comment: