Skip to content

Instantly share code, notes, and snippets.

@hapejot
Created September 6, 2023 05:35
Show Gist options
  • Select an option

  • Save hapejot/e9ad557a00a20ed617795adc1c069ae5 to your computer and use it in GitHub Desktop.

Select an option

Save hapejot/e9ad557a00a20ed617795adc1c069ae5 to your computer and use it in GitHub Desktop.
Generate Field Catalog for ALV Grid
TRY.
cl_salv_table=>factory( IMPORTING
r_salv_table = DATA(salv_table)
CHANGING
t_table = mt_data ).
mt_fields = 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment