Ansicht
Dokumentation
ABAPREFRESH_ITAB - REFRESH ITAB
ROGBILLS - Synchronize billing plans Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
REFRESH
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.
Addresses (Business Address Services) Fill RESBD Structure from EBP Component Structure
This documentation is copyright by SAP AG.
Length: 2073 Date: 20240328 Time: 171321 sap01-206 ( 33 ms )