The following two entities are necessary to populate the fields of the ALV list.
a. Database Table or Structure
b. Internal Table
Contact_Id | Contact_Name | Contact_Address |
101 | Mike | Street 10 |
102 | Raj | Street 11 |
103 | Thiru | Street 12 |
DATA lt_internal_table TYPE TABLE OF ztt_db_table1.
DATA ls_structure Like LINE OF lt_internal_table.
SELECT * FROM ztt_db_table1 INTO TABLE lt_internal_table
CALL FUNCTION ‘REUSE_ALV_GRID_DISPLAY’
EXPORTING
i_structure_name = ‘ZTT_DB_TABLE1’
TABLES
T_outtab = lt_internal_table