How to get which fields are currently displayed by ALV?
I have a program which displays list in the form of ALV . I have a parameter on the screen which takes the layout name from the user. At the same time I have the parameter which takes the filename from the user.
Now the program should write only those fields to the file which are displayed on the screen depending on the layout.
How can I get the names of the fields which are displayed on the ALV layout so that I can write only those fields to the file ?
[Here the requirement is such that we have to provide seperate download to file option even if we have the same functionality provided by the ALV]