Merge pull request #3 from ivanfemia/master

sync with original
This commit is contained in:
AtomKrieg 2018-08-19 23:44:10 +03:00 committed by GitHub
commit c3d9431b49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 15 additions and 31 deletions

View File

@ -35,8 +35,7 @@ DATA: lv_style_color0_guid TYPE zexcel_cell_style,
lv_style_color6_guid TYPE zexcel_cell_style, lv_style_color6_guid TYPE zexcel_cell_style,
lv_style_color7_guid TYPE zexcel_cell_style, lv_style_color7_guid TYPE zexcel_cell_style,
lv_style_credit_guid TYPE zexcel_cell_style, lv_style_credit_guid TYPE zexcel_cell_style,
lv_style_link_guid TYPE zexcel_cell_style, lv_style_link_guid TYPE zexcel_cell_style.
lv_style TYPE zexcel_cell_style.
DATA: lv_col_str TYPE zexcel_cell_column_alpha, DATA: lv_col_str TYPE zexcel_cell_column_alpha,
lv_row TYPE i, lv_row TYPE i,

View File

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

View File

@ -3838,9 +3838,7 @@ CLASS ZCL_EXCEL_WORKSHEET IMPLEMENTATION.
method GET_COLUMN. method GET_COLUMN.
data: LO_COLUMN_ITERATOR type ref to CL_OBJECT_COLLECTION_ITERATOR, data: LV_COLUMN type ZEXCEL_CELL_COLUMN.
LO_COLUMN type ref to ZCL_EXCEL_COLUMN,
LV_COLUMN type ZEXCEL_CELL_COLUMN.
LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ). LV_COLUMN = ZCL_EXCEL_COMMON=>CONVERT_COLUMN2INT( IP_COLUMN ).

View File

@ -46,7 +46,6 @@ INITIALIZATION.
START-OF-SELECTION. START-OF-SELECTION.
DATA: lo_excel TYPE REF TO zcl_excel, DATA: lo_excel TYPE REF TO zcl_excel,
lo_excel_writer TYPE REF TO zif_excel_writer,
lo_worksheet TYPE REF TO zcl_excel_worksheet, lo_worksheet TYPE REF TO zcl_excel_worksheet,
lo_column TYPE REF TO zcl_excel_column, lo_column TYPE REF TO zcl_excel_column,
lo_row TYPE REF TO zcl_excel_row, lo_row TYPE REF TO zcl_excel_row,
@ -61,10 +60,6 @@ START-OF-SELECTION.
DATA: lo_style_center TYPE REF TO zcl_excel_style, DATA: lo_style_center TYPE REF TO zcl_excel_style,
lv_style_center_guid TYPE zexcel_cell_style. lv_style_center_guid TYPE zexcel_cell_style.
DATA: lv_file TYPE xstring,
lv_bytecount TYPE i,
lt_file_tab TYPE solix_tab.
DATA: lv_full_path TYPE string, DATA: lv_full_path TYPE string,
image_descr_path TYPE string, image_descr_path TYPE string,
lv_file_separator TYPE c. lv_file_separator TYPE c.

View File

@ -199,10 +199,6 @@ START-OF-SELECTION.
DATA: row TYPE zexcel_cell_row. DATA: row TYPE zexcel_cell_row.
DATA: lv_file TYPE xstring,
lv_bytecount TYPE i,
lt_file_tab TYPE solix_tab.
DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog, DATA: lt_field_catalog TYPE zexcel_t_fieldcatalog,
ls_table_settings TYPE zexcel_s_table_settings. ls_table_settings TYPE zexcel_s_table_settings.

View File

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