Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disabling menu option

Former Member
0 Likes
345

Hi,

I want to disable the menu option dynamically for certain condition, can anybody please say the procedure.

Thanks in Advance

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
325

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.

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
326

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.

Read only

Former Member
0 Likes
325

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.