Skip to Content
1
Former Member
Jul 18, 2007 at 09:45 AM

WDA - ALV table export in excel with header (but missing)

260 Views

Hi to all,

I have an ALV table in a WDA view. I have implemented the method to create the header of the table:

___________________________________

  • set visible row count

data:

lr_table_settings type ref to if_salv_wd_table_settings,

header type ref to cl_salv_wd_header.

lr_table_settings ?= wd_this->alv_config_table.

call method lr_table_settings->create_header

receiving

value = header.

call method header->set_text

exporting

value = ' My Header text'.

___________________________________

now, reading documentation:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/db22242d-0701-0010-28a2-aeaa1fefd706

at page 207 it should be possible to include this header in excel export, using the method SET_EXPORT_NO_TOL:

call method wd_this->alv_config_table->if_salv_wd_export_settings~set_export_no_tol

exporting

value = abap_false.

but nothing happen, so i obtain the excel with column header and cell data, without the header defined.

Does someone tested this functionality?

Thank a lot

Luca Grilli