How to display ALV in SAP ABAP?

I am sharing here a code snippet, which is an example program showing how to display table data as ALV in ABAP.

This is a very simple application showcasing three approaches to creating ALV:

  • Using REUSE_ALV_GRID_DISPLAY function module
  • Using CL_GUI_ALV_GRID class
  • Using CL_SALV_TABLE class