... XLSX/MHTML file from internal table in background and probably also somewhere in the net. To make it easier here are ready methods to create LVC and SLIS field catalogs from internal table using CL_SALV_CONTROLLER_METADATA ...
... works in two steps, firstly it displays reading log, if it is ok you have to press first button on the toolbar to create allocation. report zab_comp_allocation.
type-pools: cpsc,cmcl, slis.
tables: mapl. ...
...
type-pools: slis.
data: gt_fcat type slis_t_fieldcat_alv ,
gs_fcat like line of gt_fcat,
gs_layout type slis_layout_alv,
gs_variant_log type disvariant,
gs_variant type disvariant. ...
I've decided which way should I go, so now time to do it. I need to do following things to get what I desired: Create a function group or class to be able to reuse the solution in other programs also ...
...
data: gt_alv type tt_alv.
data: gs_alv type t_alv.
data: gt_trdir type standard table of trdir.
data: gt_fcat type slis_t_fieldcat_alv.
data: gr_salv type ref to cl_salv_table.
data: gr_columns type ref to cl_salv_columns_table. ...