diff refresh Vs clear of internal table
Hello ABAP Experts,
What is the difference between refresh and clear of internal table.
REFRESH and CLEAR are the various methods for initializing Internal Tables.
If <itab> is not having header line, this will clear the entire contents.
If <itab> is having header line, this statement will just clear the contents of header line.
If <itab> has header line, this will clear the body contents ( excluding header line)
This statement will cause the body content to be cleared. But memory allotted to the table will remain as it is.. Then u have to use
FREE<itab> to free the memory.
Just check this link...