Skip to Content
0
Former Member
Nov 22, 2012 at 10:46 AM

insert initial line into itab

4585 Views

Hi,

Can someone explain the processing of this code? I am not getting the procedure.

TYPES:
BEGIN OF ty_test,
f1 TYPE c,
END OF ty_test.

DATA:
t_test TYPE STANDARD TABLE OF ty_test,
d_test TYPE ty_test.

INSERT INITIAL LINE INTO t_test INDEX 1.
APPEND 'X' TO t_test.
APPEND INITIAL LINE TO t_test.
APPEND 'X' TO t_test.
INSERT INITIAL LINE INTO t_test INDEX 1.
APPEND 'X' TO t_test.
APPEND INITIAL LINE TO t_test.
APPEND 'X' TO t_test.

DELETE ADJACENT DUPLICATES FROM t_test.

DESCRIBE TABLE t_test.
WRITE sy-tfill.