I have a requirement where the user will be selecting a variant for a report before executing. This report has output as ALV and mail.
Right now ALV is considering the varaint selected and is preparing the layout based on the variant (I am using 'REUSE_ALV_GRID_DISPLAY' for ALV display). The same needs to be done for mail also.
So I want to capture this variant layout so that I can prepare an internal table which i will send as an excel attachment in the mail.