what is the use of free and refresh?
Answers were Sorted based on User's Feedback
Answer / srikanth vinnakota
refresh clears the data in the internal table and free not
only clears data but also frees memory for the same
Is This Answer Correct ? | 45 Yes | 6 No |
Answer / sarathi
for example : refresh itab
it will remove content of internal table...
for example : free itab
it will deallocate memory associated with internal table
Is This Answer Correct ? | 33 Yes | 2 No |
Answer / prabhakar
Refresh : Refresh clears the data, at the same time it
releases dynamically allocated memory. Predefined memory
not released.
Free : Free clears the data, at the same time releases
both predefined and dynamically allocated memory. internal
table structure will not available any more.
Is This Answer Correct ? | 18 Yes | 3 No |
Answer / almas akhtar
Free is Use to clear the content of internal table as well
as it free the memory allocated to it.
Is This Answer Correct ? | 15 Yes | 3 No |
Answer / ravi
free delete all the row from internal table and free the
associated memory.
refresh delete all the row from an internal table but leave
the memory allocated.
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / galla phani kumar
CLEAR ITAB. ---> IT WILL CLEARS THE CONTENTS OF HEADER
LINE OF AN INTERNAL TABLE.
CLEAR ITAB[]. ---> IT WILL REMOVE THE CONTENTS OF AN
INTERNAL TABLE BODY NOT THE HEADER LINE.
CLEAR ITAB[] = REFRESH ITAB.
IN CLEAR AND REFRESH COMMAND THE MEMORY ALLOCATED FOR
INTERNAL TABLE REMAINS THE SAME.
BUT IN FREE ITAB. ---> IT WILL REMOVE THE CONTENTS OF
INTERNAL TABLE BODY AND DEALLOCATE THE MEMORY OF INTERNAL
TABLE BODY.
EVEN AFTER FREE STATEMENT CONTENTS OF INTERNAL TABLE HEADER
LINE REMAINS THE SAME....
REGARDS
GALLA PHANI KUMAR
Is This Answer Correct ? | 7 Yes | 0 No |
Answer / manivannan.m
Refresh:
example: refersh itab.
clear the body of the internal table data.
free:
example: free itab.
. clears the data.
.predefined the internal data and dynamically allocated
memory.
Is This Answer Correct ? | 4 Yes | 2 No |
Answer / kiran reddy
for example : refresh itab
it will remove content of internal table...
for example : free itab
it will deallocate memory associated with internal table
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / gurpej singh
Clear..IT WILL CLEARS THE CONTENTS OF HEADER.
Free : IT WILL REMOVE THE CONTENTS OF
INTERNAL TABLE BODY AND DEALLOCATE THE MEMORY OF INTERNAL
TABLE BODY.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / r ravinder reddy
refresh clears the data in the internal table and free not
only clears data but also frees memory for the same
Is This Answer Correct ? | 0 Yes | 0 No |
How to deactivate the sort button from the alv output
What is payroll driver
If internal table used in for all entries in empty then what happens?
how to sort numbers in sap-abap using internal tables without using sort technique.
3 Answers NNN, NTT Data, TPCUS,
What will happen when we use fully buffered in abap?
Events in Interactive Report?
What is going life actually? What is the role of a functional consultant in it? : sap abap hr
If u r working with call transaction method .any problem occurs error records r stored in BDCMSGCOLL structure.How do u find that an error has occured at a particular point,how can u handle to rectify and process it successfully? If a file has 10000 records where 3 records doent having right format,how do u tackle with this issue either by using call transaction or session method to transfer data perfectly into database table?tell me the steps how to procede?
Hi, My question is " How to display 3rd highest salary record from the internal table. The internal table has 2 fields named emno(Employee number) and salary.". Send answer to my mail shaiksha.it@gmail.com. Thanking you.
types of windows in smartforms?difference between them?
what does it mean occurs 0 while creating an internal table ?
Explain how do you move on to the next screen in interactive reporting?