Hello Friends,
What would be the output of the below two program.
What would be the output of the below two program.
zpar_at_end_of_1.
zpar_at_end_of_2.
REPORT zpar_at_end_of_1.
TYPES: BEGIN OF ty_tab,
id TYPE char5,
name TYPE char50,
email TYPE char40,
END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab INITIAL SIZE 0,
ls_tab TYPE ty_tab.
ls_tab-id = '00001'.
ls_tab-name = 'PARTHA SARATHI GOSWAMI'.
ls_tab-email = 'DUMMY_1_email@gmail.com'.
APPEND ls_tab TO lt_tab.
ls_tab-id = '00001'.
ls_tab-name = 'PARTHA SARATHI GOSWAMI'.
ls_tab-email = 'DUMMY_2_email@gmail.com'.
APPEND ls_tab TO lt_tab.
LOOP AT lt_tab INTO ls_tab.
AT END OF id.
WRITE:/ ls_tab-name.
ENDAT.
ENDLOOP.
REPORT ZPAR_AT_END_OF_2.
TYPES: BEGIN OF ty_tab,
id TYPE char5,
name TYPE char50,
email TYPE char40,
END OF ty_tab.
DATA: lt_tab TYPE STANDARD TABLE OF ty_tab INITIAL SIZE 0,
ls_tab TYPE ty_tab.
FIELD-SYMBOLS: <lfs_tab> TYPE ty_tab.
ls_tab-id = '00001'.
ls_tab-name = 'PARTHA SARATHI GOSWAMI'.
ls_tab-email = 'DUMMY_1_email@gmail.com'.
APPEND ls_tab TO lt_tab.
ls_tab-id = '00001'.
ls_tab-name = 'PARTHA SARATHI GOSWAMI'.
ls_tab-email = 'DUMMY_2_email@gmail.com'.
APPEND ls_tab TO lt_tab.
LOOP AT lt_tab ASSIGNING <lfs_tab>.
AT END OF id.
WRITE:/ <lfs_tab>-name.
ENDAT.
ENDLOOP.