class-methods lvc_fcat_from_internal_table
importing
it_table type any table
returning value(rt_fcat) type lvc_t_fcat.
method lvc_fcat_from_internal_table.
data: table type ref to data.
create data table like it_table.
assign table->* to field-symbol(<table>).
try.
cl_salv_table=>factory( importing
r_salv_table = data(salv_table)
changing
t_table = <table> ).
rt_fcat = cl_salv_controller_metadata=>get_lvc_fieldcatalog(
r_columns = salv_table->get_columns( ) " ALV Filter
r_aggregations = salv_table->get_aggregations( ) " ALV Aggregations
).
catch cx_root.
endtry.
endmethod.
class-methods slis_fcat_from_internal_table
importing
it_table type any table
returning value(rt_fcat) type slis_t_fieldcat_alv.
method slis_fcat_from_internal_table.
data: table type ref to data.
create data table like it_table.
assign table->* to field-symbol(<table>).
try.
cl_salv_table=>factory( importing
r_salv_table = data(salv_table)
changing
t_table = <table> ).
rt_fcat = cl_salv_controller_metadata=>get_slis_fieldcatalog(
r_columns = salv_table->get_columns( ) " ALV Filter
r_aggregations = salv_table->get_aggregations( ) " ALV Aggregations
).
catch cx_root.
endtry.
endmethod.