‎2007 Jul 15 5:45 PM
IN WHICH CONDITION CLEAR INTERNAL TABLE,APPEND INTERNAL TABLE STATEMENT IS USED?
‎2007 Jul 15 5:48 PM
hi,
Normally we use clear statement immediately after using append statement... so as to clear the header of internal table ..
loop at itab.
itab1-field1 = itab-field.
append itab1.
clear itab1.
endloop.
‎2007 Jul 15 8:10 PM
We use CLEAR itab after APPEND itab so that soem fields of data current record data should not move to next record of the table. because in some cases data from current record may not be overwritten next time..
Always use this..
Regards
Prax
‎2007 Jul 15 11:35 PM
Just make sure that your internal table is defined with a header line when you do that, otherwise it works as REFRESH command and deletes all the records in the internal table.