‎2008 Jul 21 11:16 AM
Hi all, how can disable the grid toolbar buttons(predefined buttons). Depending on some conditions these buttons need to be enabled and disabled. Any method available to do this?
Thanks and Regards,
Balakrishna.N
‎2008 Jul 21 11:20 AM
Hi,
copy the standard PF-Status use it in ur program conditions.
‎2008 Jul 21 9:23 PM
Hello Balakrishna
When you call the fm (or method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID) you have an IMPORTING parameter to exclude functions from the ALV toolbar. Fill this itab with all non-required functions (in case of OO-based ALV have a look at the constants of CL_GUI_ALV_GRID).
Regards
Uwe
‎2008 Jul 21 9:28 PM
HI,
Please look into the PF-Status of the screen.
You will find a lot of buttons. You cab delete add do anything you wish to.
Shreekant
‎2008 Jul 21 10:43 PM
Hi,
Append the toolbar function codes (That you want to exclude) into an internal table and use this in the toolbar parameter of the ALV grid func module or method call.
Regards,
Subramanian