‎2008 Apr 02 3:41 PM
Hi,
I want to disable the menu option dynamically for certain condition, can anybody please say the procedure.
Thanks in Advance
‎2008 Apr 02 4:06 PM
try and use this:
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'DELE' TO itab.
APPEND 'PICK' TO itab.
SET PF-STATUS 'STA3' EXCLUDING itab.
‎2008 Apr 02 4:06 PM
try and use this:
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'DELE' TO itab.
APPEND 'PICK' TO itab.
SET PF-STATUS 'STA3' EXCLUDING itab.
‎2008 Apr 02 4:07 PM
try this
to diable sort button in your alv output..see the text in bold
data: IT_EXCLUDE TYPE SLIS_T_EXTAB
append '&OUP' to it_exclude. "sort ascending
append '&ODN' to it_exclude. "sort descending
put tab on the button and click f1 to get function codes and pass to it_exclude you can disabe your standard buttons ojn the top..
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = l_layout
it_fieldcat = it_fieldcat
IT_EXCLUDING = it_excludeTABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.