Program:
REPORT ZINTERNAL.
TYPES: BEGIN OF str,
id type int4,
name TYPE char10,
location type char10,
END OF str.
DATA: it TYPE STANDARD TABLE OF str,
wa TYPE str.
wa-id = '1'.
wa-name = 'SUVADEEP'.
wa-location = 'KOLKATA'.
APPEND wa to it.
wa-id = '2'.
wa-name = 'SOUMYODEEP'.
wa-location = 'MUMBAI'.
APPEND wa to it.
wa-id = '3'.
wa-name = 'NITAIPADA'.
wa-location = 'BANGALORE'.
APPEND wa to it.
loop at it into wa.
write: / wa-id, wa-name, wa-location.
ENDLOOP.
OUTPUT:
0 Comments