You are on page 1of 2

Internal Table

Global Table

Internal table relation with work area

Wrk-are

Itab

Task

ID NAME COURSE FEE DOB

Date Format 99991231

*Type of work area and Internal Table


types: begin of student_type,
id(2) type n,
name(16) type c,
age(2) type c,
end of student_type.
*Work Area.

data: wa type student_type.


*Internal Table.
data itab type table of student_type.
wa-id = '01'.
MOVE 'HAMAD AHMAD' to wa-name.
wa-age = '18'.
append wa to itab.
clear: wa.
wa-id = '02'.
wa-name = 'UMER MUNIR'.
wa-age = '34'.
append wa to itab.
clear wa.
wa-id = '03'.
wa-name = 'HAMZA'.
wa-age = '32'.
append wa to itab.
clear wa.

*****************************************************************
loop at itab into wa.

" write:/ wa-id,


/ wa-name,
/ wa-age.
uline.
endloop.
WRITE: 'Total Number of Records: ', sy-tabix.
*********************************************************************

You might also like