2020 Feb 14 12:35 PM
buttons-function-codes.pngbuttons.pngHi Experts,
I have a requirement in alv output screen to add standard menu button in alv output to display row wise history data and column wise history data. I have added that menu button on left top corner of ALV output.Now the issue is i have to use method GET_SELECTED_ROWS for row selection and for column GET_SELECTED_COLUMNS using this two method i can current selected and current column but in alv report method is blank but i press any application layer button i method giving selected row and column.
Anybody having idea how to get selected row and columns in ALV output and i am using CL_GUI_ALV_GRID alv.
I have attached here both menu button and application button screen shots for better understand purpose, Please help on this.
Thanks,
2020 Feb 15 5:26 AM
Did you check out the test report BCALV_GRID_05 "Add a Self-Defined Button to the Toolbar", I think it does exactly what you need. I assume you have set up the event-handling appropriatly?
Logic from the report BCALV_GRID_05:
If you go by that Demo-Report, you should get your problem solved. Otherwise, please be more specific with your issue.
2020 Feb 14 1:15 PM
What means "but in alv report method is blank"?
NB: there shouldn't be any difference in processing the ALV Grid, whatever the function is started from the ALV Grid toolbar or from the menu or the application toolbar (remember that in the latter case, the ALV Grid control is to be stored in a global variable so that to be able to interact with it).
2020 Feb 15 5:26 AM
Did you check out the test report BCALV_GRID_05 "Add a Self-Defined Button to the Toolbar", I think it does exactly what you need. I assume you have set up the event-handling appropriatly?
Logic from the report BCALV_GRID_05:
If you go by that Demo-Report, you should get your problem solved. Otherwise, please be more specific with your issue.
2020 Feb 17 7:01 AM
Hi Experts,
Thanks for your reply issue was in my program, in method handle_change_finish FOR EVENT data_changed_finished my screen was getting refreshed, so i was not able to get the information from GET_SELECTED_ROW method.
Thanks.
2020 Feb 17 8:56 AM
Thanks. Please close your question (and mark the best answer if any).