mirror of
https://github.com/abap2xlsx/abap2xlsx.git
synced 2025-05-05 05:12:03 +08:00
commit
ea61a073b6
|
@ -72,7 +72,7 @@ class lcl_test implementation.
|
|||
|
||||
try.
|
||||
out->read_worksheet_data( io_reader = lo_reader io_worksheet = worksheet ).
|
||||
fail(`Index to non-existent shared string should give an error`).
|
||||
fail( `Index to non-existent shared string should give an error` ).
|
||||
catch lcx_not_found into lo_ex.
|
||||
lv_text = lo_ex->get_text( ). " >>> May inspect the message in the debugger
|
||||
endtry.
|
||||
|
@ -166,7 +166,7 @@ class lcl_test implementation.
|
|||
|
||||
try.
|
||||
out->read_worksheet_data( io_reader = lo_reader io_worksheet = worksheet ).
|
||||
fail(`Reference to non-existent style should throw an lcx_not_found exception`).
|
||||
fail( `Reference to non-existent style should throw an lcx_not_found exception` ).
|
||||
catch lcx_not_found into lo_ex.
|
||||
lv_text = lo_ex->get_text( ). " >>> May inspect the message in the debugger
|
||||
endtry.
|
||||
|
@ -236,7 +236,7 @@ class lcl_test implementation.
|
|||
lo_reader = cl_sxml_string_reader=>create( lv_xstring ).
|
||||
try.
|
||||
out->skip_to( iv_element_name = `nonExistingElement` io_reader = lo_reader ).
|
||||
fail(`Skipping to non-existing element must raise lcx_not_found exception`).
|
||||
fail( `Skipping to non-existing element must raise lcx_not_found exception` ).
|
||||
catch lcx_not_found into lo_ex.
|
||||
lv_text = lo_ex->get_text( ). " May inspect exception text in debugger
|
||||
endtry.
|
||||
|
|
|
@ -4918,7 +4918,7 @@ METHOD create_xl_sheet_sheet_data.
|
|||
" Row visibility of previos row.
|
||||
IF lo_row->get_visible( io_worksheet ) = abap_false OR
|
||||
l_autofilter_hidden = abap_true.
|
||||
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true').
|
||||
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ).
|
||||
ENDIF.
|
||||
* lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ).
|
||||
* CONCATENATE lv_xstring lv_xstring_partial
|
||||
|
@ -4951,13 +4951,13 @@ METHOD create_xl_sheet_sheet_data.
|
|||
l_autofilter_hidden = abap_true.
|
||||
" Row dimensions
|
||||
IF lo_row->get_row_height( ) >= 0.
|
||||
lo_element_2->set_attribute_ns( name = 'customHeight' value = '1').
|
||||
lo_element_2->set_attribute_ns( name = 'customHeight' value = '1' ).
|
||||
lv_value = lo_row->get_row_height( ).
|
||||
lo_element_2->set_attribute_ns( name = 'ht' value = lv_value ).
|
||||
ENDIF.
|
||||
" Collapsed
|
||||
IF lo_row->get_collapsed( io_worksheet ) = abap_true.
|
||||
lo_element_2->set_attribute_ns( name = 'collapsed' value = 'true').
|
||||
lo_element_2->set_attribute_ns( name = 'collapsed' value = 'true' ).
|
||||
ENDIF.
|
||||
" Outline level
|
||||
IF lo_row->get_outline_level( io_worksheet ) > 0.
|
||||
|
@ -4970,7 +4970,7 @@ METHOD create_xl_sheet_sheet_data.
|
|||
IF lo_row->get_xf_index( ) <> 0.
|
||||
lv_value = lo_row->get_xf_index( ).
|
||||
lo_element_2->set_attribute_ns( name = 's' value = lv_value ).
|
||||
lo_element_2->set_attribute_ns( name = 'customFormat' value = '1').
|
||||
lo_element_2->set_attribute_ns( name = 'customFormat' value = '1' ).
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
IF lt_values IS INITIAL. " no values attached to autofilter " issue #368 autofilter filtering too much
|
||||
|
@ -5096,7 +5096,7 @@ METHOD create_xl_sheet_sheet_data.
|
|||
" Row visibility of previos row.
|
||||
IF lo_row->get_visible( ) = abap_false OR
|
||||
l_autofilter_hidden = abap_true.
|
||||
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true').
|
||||
lo_element_2->set_attribute_ns( name = 'hidden' value = 'true' ).
|
||||
ENDIF.
|
||||
* lv_xstring_partial = render_ixml_element_no_header( lo_element_2 ).
|
||||
* CONCATENATE lv_xstring lv_xstring_partial
|
||||
|
|
|
@ -36,7 +36,7 @@ START-OF-SELECTION.
|
|||
|
||||
" Get active sheet
|
||||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'PN_MASSIVE').
|
||||
lo_worksheet->set_title( ip_title = 'PN_MASSIVE' ).
|
||||
|
||||
DATA lt_test TYPE TABLE OF sflight.
|
||||
SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
|
|
|
@ -38,7 +38,7 @@ START-OF-SELECTION.
|
|||
|
||||
" Get active sheet
|
||||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'Internal table').
|
||||
lo_worksheet->set_title( ip_title = 'Internal table' ).
|
||||
|
||||
DATA lt_test TYPE TABLE OF sflight.
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ START-OF-SELECTION.
|
|||
|
||||
" Get active sheet
|
||||
lo_worksheet = lo_excel->get_active_worksheet( ).
|
||||
lo_worksheet->set_title( ip_title = 'Internal table').
|
||||
lo_worksheet->set_title( ip_title = 'Internal table' ).
|
||||
|
||||
SELECT * UP TO 2 ROWS FROM t005t INTO TABLE lt_test. "#EC CI_NOWHERE
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user