Hello,
So here is the problem. I have an ALV grid. I want to do some codings when the user clicks Print, Print preview and Export to spreadsheet.
I used the event top-of-list. I added this event to the events used in REUSE_ALV_GRID_DISPLAY(it_events).
Form top_of_list.
if sy-ucomm = '&XXL' "for export to spreadsheet
or sy-ucomm = 'PRIN' " Print
OR sy-ucomm = '&RNT_PREV'. " Print Preview
..................................
endif.
endform.
I put a breakpoint on the if. When i run the report and click on print or print preview, the programs stops at the if.
But if i click on export to spreadsheet, nothing happens. So my code can not be executed.
Can anyone help me?
Thanks,
Efren