I have an ALV grid where I need the default display to change between four different views based on the inputs and and the button selected. The difference between the inputs is a certain data type that is specific to my business. There are two different buttons, one which displays all columns, one which only displays some of the columns.
I know that default displays can be set on the ALV page itself. I have done this, but this will save the display for one of my data types, and then when the other data type is entered, the ALV grid still has the other layout.
Is there a way to hard code which default to use? I am preparing the columns of the ALV grid in a perform, I would like to just be able to select a default display within that perform, but I am not sure how to go about this or if it is even possible.
Thanks,