remove TRY without CATCH

This commit is contained in:
larshp 2018-07-29 11:14:48 +00:00
parent 56f6fafe77
commit 9f94ee3af3
2 changed files with 11 additions and 15 deletions

View File

@ -223,9 +223,7 @@ ENDMETHOD.
METHOD zif_excel_converter~create_fieldcatalog.
DATA: lo_salv TYPE REF TO cl_salv_table.
TRY.
zif_excel_converter~can_convert_object( io_object = io_object ).
ENDTRY.
ws_option = is_option.

View File

@ -42,13 +42,11 @@ IF sy-subrc <> 0.
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
CREATE OBJECT lo_reader TYPE zcl_excel_reader_2007.
TRY.
LOOP AT lt_filetable INTO ls_filetable.
lo_excel = lo_reader->load_file( ls_filetable-filename ).
lo_worksheet = lo_excel->get_worksheet_by_index( iv_index = 1 ).
lo_worksheet->get_table( IMPORTING et_table = lt_tab ).
ENDLOOP.
ENDTRY.
ENDIF.
"
"Do the presentation stuff