File Handling Part 3 2
File Handling Part 3 2
CL_GUI_FRONTEND SERVICES :-
We have a employee record in a notepad and we have to read the data from
the notepad.
Hint :-
We will use FILE_OPEN_DIALOG method to select a file.
Solution :-
Step 1 :- Create a executable program in ABAP Editor.
Step 2 :- Create a type structure for the data which you want to upload.
lo_file = ls_file_table-filename.
endif.
TRY.
CALL METHOD cl_salv_table=>factory
EXPORTING
list_display = IF_SALV_C_BOOL_SAP=>FALSE
IMPORTING
r_salv_table = data(lo_alv)
CHANGING
t_table = lt_file
.
CATCH cx_salv_msg.
ENDTRY.
lo_alv->display( ).