Code: Alles auswählen.
TRY .
cl_salv_table=>factory(
EXPORTING
list_display = IF_SALV_C_BOOL_SAP=>FALSE
IMPORTING
r_salv_table = l_ref_salv_table_cash
CHANGING
t_table = <tab_cash> ).
CATCH cx_salv_msg.
ENDTRY.
* l_ref_columns = l_ref_salv_table_cash->get_columns( ).
* l_ref_columns->set_headers_visible( abap_false ).
l_ref_aggreg = l_ref_salv_table_cash->get_aggregations( ).
l_fcat = cl_salv_controller_metadata=>get_lvc_fieldcatalog( r_columns = l_ref_columns
r_aggregations = l_ref_aggreg ).
* CALL METHOD cl_salv_controller_metadata=>get_lvc_layout
* EXPORTING
* r_columns = l_ref_columns
* CHANGING
* s_layout = l_layout.
* l_layout-no_headers = abap_true.
IF cl_salv_bs_a_xml_base=>get_version( ) EQ if_salv_bs_xml=>version_25 OR
cl_salv_bs_a_xml_base=>get_version( ) EQ if_salv_bs_xml=>version_26.
l_ref_result_data = cl_salv_ex_util=>factory_result_data_table( r_data = l_ref_cash
t_fieldcatalog = l_fcat ).
* s_layout = l_layout ).
Code: Alles auswählen.
l_ref_columns = l_ref_salv_table_cash->get_columns( ).
l_ref_columns->set_headers_visible( abap_false ).
Code: Alles auswählen.
TRY .
APPEND INITIAL LINE TO l_vbak.
cl_salv_table=>factory(
EXPORTING
list_display = if_salv_c_bool_sap=>false
IMPORTING
r_salv_table = l_ref_salv_table_cash
CHANGING
t_table = <l_cash> ).
CATCH cx_salv_msg.
ENDTRY.
l_ref_aggreg = l_ref_salv_table_cash->get_aggregations( ).
l_ref_columns = l_ref_salv_table_cash->get_columns( ).
l_ref_columns->set_headers_visible( abap_false ).
" ...
l_ref_salv_table_cash->to_xml( xml_type = if_salv_bs_xml=>c_type_xlsx ).
" ...
DATA lt_binary TYPE srt_abuf_transport_tab.
DATA lv_xtring_xml TYPE xstring.
DATA lv_filesize TYPE i.
cl_soap_xml_helper=>xstring_to_table(
EXPORTING
xvalue = lv_xtring_xml
IMPORTING
transport_size = lv_filesize
transport_list = lt_binary
).
" ...
cl_gui_frontend_services=>gui_download( EXPORTING
filename = lv_filename
filetype = 'BIN'
bin_filesize = lv_filesize
CHANGING
data_tab = lt_binary ).