diff --git a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk index a1f0337..55b872c 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_WRITER_2007.slnk @@ -5533,7 +5533,7 @@ ENDMETHOD. - method CREATE_XL_TABLE. + METHOD create_xl_table. DATA: lc_xml_node_table TYPE string VALUE 'table', lc_xml_node_relationship TYPE string VALUE 'Relationship', @@ -5621,14 +5621,16 @@ ENDMETHOD. * STEP 4: Create subnodes " autoFilter - lo_element = lo_document->create_simple_element( name = 'autoFilter' - parent = lo_document ). + IF io_table->settings-nofilters EQ abap_false. + lo_element = lo_document->create_simple_element( name = 'autoFilter' + parent = lo_document ). - lv_ref = io_table->get_reference( ip_include_totals_row = abap_false ). - lo_element->set_attribute_ns( name = 'ref' - value = lv_ref ). + lv_ref = io_table->get_reference( ip_include_totals_row = abap_false ). + lo_element->set_attribute_ns( name = 'ref' + value = lv_ref ). - lo_element_root->append_child( new_child = lo_element ). + lo_element_root->append_child( new_child = lo_element ). + ENDIF. "columns lo_element = lo_document->create_simple_element( name = 'tableColumns' @@ -5705,7 +5707,7 @@ ENDMETHOD. lo_renderer = lo_ixml->create_renderer( ostream = lo_ostream document = lo_document ). lo_renderer->render( ). - endmethod. +ENDMETHOD. diff --git a/ZA2X/PROG/ZDEMO_EXCEL3.slnk b/ZA2X/PROG/ZDEMO_EXCEL3.slnk index 165ad94..4efcf97 100644 --- a/ZA2X/PROG/ZDEMO_EXCEL3.slnk +++ b/ZA2X/PROG/ZDEMO_EXCEL3.slnk @@ -1,5 +1,5 @@ - - + + @@ -55,8 +55,9 @@ START-OF-SELECTION. SELECT * FROM sflight INTO TABLE lt_test. "#EC CI_NOWHERE ENDIF. - ls_table_settings-table_style = zcl_excel_table=>builtinstyle_medium2. - ls_table_settings-show_row_stripes = abap_true. + ls_table_settings-table_style = zcl_excel_table=>builtinstyle_medium2. + ls_table_settings-show_row_stripes = abap_true. + ls_table_settings-nofilters = abap_true. lo_worksheet->bind_table( ip_table = lt_test is_table_settings = ls_table_settings ). diff --git a/ZA2X/TABL/ZEXCEL_S_TABLE_SETTINGS.slnk b/ZA2X/TABL/ZEXCEL_S_TABLE_SETTINGS.slnk index 9e1ed3f..6360c54 100644 --- a/ZA2X/TABL/ZEXCEL_S_TABLE_SETTINGS.slnk +++ b/ZA2X/TABL/ZEXCEL_S_TABLE_SETTINGS.slnk @@ -1,12 +1,13 @@ - - - - - - - - + + + + + + + + +