Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

headerline

Former Member
0 Kudos

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

1 REPLY 1

Puneet_Gupta
Contributor
0 Kudos

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