Created
September 6, 2023 05:35
-
-
Save hapejot/e9ad557a00a20ed617795adc1c069ae5 to your computer and use it in GitHub Desktop.
Generate Field Catalog for ALV Grid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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