Documentation View

We are hiring and constantly growing! Have a look through our vacancies to find the right role for you!

ABAPREFRESH_ITAB - REFRESH ITAB

ABAPREFRESH_ITAB - REFRESH ITAB

RFUMSV00 - Advance Return for Tax on Sales/Purchases   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

REFRESH

Short Reference



REFRESH itab.

Effect

This statement deletes all lines in an internal table itab. This releases the memory space required for the table, except for the initial memory requirement (see INITIAL SIZE). itab expects an internal table.

The statement FREE can be used to delete all lines and release all memory occupied by these lines.

System Fields

This statement always sets sy-subrc to 0.

Notes

  • The statement REFRESH itab has the same effect on internal tables as CLEAR itab[]. If the internal table itab has a header line, the table body is initialized and not the header line.
  • If the internal table itab does not have a header line, REFRESH itab has the same effect as CLEAR itab. The use of tables with header lines is obsolete and forbidden in classes, which makes the use of REFRESH instead of CLEAR obsolete too. CLEAR or FREE can always be used to delete lines in internal tables.

Example

The following example shows that REFRESH initializes the table body but not the header line of an internal table itab.






BAL Application Log Documentation   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.

Length: 2073 Date: 20230207 Time: 082412     sap01-206 ( 36 ms )