2012 Mar 13 2:43 PM
Hello Experts,
When i execute an ALV report using the function module 'REUSE_ALV_GRID_DISPLAY' i can see standard menu items like List export .... etc.
But when i try to display the data using oops (cl_gui_alv_grid ) i dont see any standard button , i see only system and help.
Please let me know how can i get this standard button in place and working.
Even if Copy from a standard report , it may appear but i need them to work as in REUSE_ALV_GRID_DISPLAY.
Regards,
Ratna Rajesh
2012 Mar 13 3:30 PM
CL_GUI_ALV_GRID don't use program statuses but a toolbar for those function. If you want to add the standard program status toolbar and menu to the programa and that those interact with the OO ALV grid, you will have to maintain the lik yourself in the AT USER-COMMAND module like performed in REUSE_ALV_GRID_DISPLAY_LVC.
- Creating menu
Copy status STANDARD_FULLSCREEN from program SAPLKKBL
- Managing user command
Fortunately, there is a method than can help you :
call method <ref-to-grid>->set_function_code
changing
c_ucomm = l_okcode.
Use this method in your PAI user command module/form.
As a sample look at include LSLVC_FULLSCREENF01 form PAI.
Regards,
Raymond
2012 Mar 13 3:30 PM
CL_GUI_ALV_GRID don't use program statuses but a toolbar for those function. If you want to add the standard program status toolbar and menu to the programa and that those interact with the OO ALV grid, you will have to maintain the lik yourself in the AT USER-COMMAND module like performed in REUSE_ALV_GRID_DISPLAY_LVC.
- Creating menu
Copy status STANDARD_FULLSCREEN from program SAPLKKBL
- Managing user command
Fortunately, there is a method than can help you :
call method <ref-to-grid>->set_function_code
changing
c_ucomm = l_okcode.
Use this method in your PAI user command module/form.
As a sample look at include LSLVC_FULLSCREENF01 form PAI.
Regards,
Raymond
2012 Mar 13 6:24 PM
2025 Sep 01 11:37 AM
thank you @RaymondGiuseppi , I struck with this issue for a long time and no AI tools helped me. but this solution works for me with below method call in PAI module.
call method <ref-to-grid>->set_function_code
changing
c_ucomm = l_okcode.