08-07-2012 6:29 PM
hi all, when u declare an internal table with header line , it will be initial at the time of declaration. if u store some data in it and then refresh it, the internal table doesnot become initial again, rather it will have 0 rows. how can i make it initial again? does free itab [ ] works? or is there an other way to do it?
Moderator message: please read ABAP documentation and try yourself before posting.
Message was edited by: Thomas Zloch
08-07-2012 6:35 PM
You will have to refresh the table and clear the header line.
refresh itab[].
clear itab.
Its the same case with free, it will affect only the table body not the header line.
free itab[].
clear itab.
The use of itab with header lines is obsolete along with the refresh statement.
You should declare the internal tables without header line and use a different work area to manipulate the data.
- Puneet