Skip to Content
Author's profile photo Ankit Doshi

Change fieldcatalog and layout of ALV after its initial display.

We can do any number of modification to the fieldcatalog and layout of ALV grid even after it has been displayed on the screen, we can hide certain columns , change the column text, change the column position etc. We can achieve all this simply by using the following methods of the class CL_GUI_ALV_GRID:

For fieldcatalog modification:



For layout modification:



Steps to change the fieldcatalog after first display:

  1. Trigger the PAI using pushbutton or some other manner.
  2. Now for this triggered function code get the existing fieldcatalog using the method get_frontend_fieldcatalog.
  3. Make the required modification to the fieldcatlog.
  4. Now in order to reflect these changes to the ALV grid make use of the method set_frontend_fieldcatalog.
  5. Call the method refresh_table_display of class CL_GUI_ALV_GRID to refresh the ALV display so as to show the modifications done to the ALV grid.

The ALV layout can be changed in a similar manner using the get and set methods meant for layout.


This is the initial display of ALV gird.


On clicking the button Technical Name the existing column headings will be replaced by their equivalent technical name.


On clicking the Layout 1 button the existing layout will be changed to Zebra layout.


Similarly you can present multiple layout and display options to the user using this technique.

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Viva vivandh
      Viva vivandh

      Thanks you Very Much..its helped me lot.

      Author's profile photo Ankit Doshi
      Ankit Doshi
      Blog Post Author

      I am glad that it helped you