SAP ABAP Question:

Download Job Interview Questions and Answers PDF

What is the difference between Free and Refresh?

SAP ABAP Interview Question
SAP ABAP Interview Question

Answer:

Free - You can use FREE to initialize an internal table and release its memory space without first using the REFRESH or CLEAR statement. Like REFRESH, FREE works on the table body, not on the table work area. After a FREE statement, you can address the internal table again. It still occupies the amount of memory required for its header (currently 256 bytes). When you refill the table, the system has to allocate new memory space to the lines.

Refresh - This always applies to the body of the table. As with the CLEAR statement, the memory used by the table before you initialized it remains allocated. To release the memory space, use the statement

Download SAP ABAP Interview Questions And Answers PDF

Previous QuestionNext Question
What is the inside concept in select-options?Can we have more than one selection-screen and how?