ALV Om Full screen display - how to hide some of the buttons defined
I have created a ALV using the Full screen display of the ALV Object model. I have attached a PF status via the call
gr_table->set_screen_status( pfstatus = '/TPISP/MVU_STAT' report = sy-repid set_functions = gr_table->c_functions_all ).
This ALV serves as the output for a report.
I need to hide few buttons based on some conditions before the ALV is displayed. I tried to use something like before displaying the ALV:
APPEND 'DELETE' TO lt_func_excl_list. SET PF-STATUS '/TPISP/MVU_STAT' OF PROGRAM sy-repid EXCLUDING lt_func_excl_list.
but doesnt seem to work ! (may be i used it at the wrong place.)
Any ideas on how to achieve such a functionality?
Thanks & regards,