Skip to Content
0
Former Member
Mar 18, 2009 at 12:08 PM

Performance issue in internal table

32 Views

Hi experts

can you help to increase the performance of this code.

say best statements to replace the following code.which will give good performance.

DATA: itab TYPE STANDARD TABLE OF (db table)

WITH HEADER LINE.

DATA: BEGIN OF itab1 OCCURS 0,

field1 LIKE itab-field1,

field2 LIKE itab-field2,

END OF itab1.

LOOP AT itab.

MOVE-CORRESPONDING itab TO itab1.

APPEND itab1.

DELETE itab.

ENDLOOP.

REFRESH itab. CLEAR itab.

Edited by: sailu k on Mar 18, 2009 1:10 PM