1. В нужной транзакции определяете GUI-status и отчет Система - Статус...
2. Прваливайтесь в GUI-статус - ищите нужный пункт меню и определяете его код.
Вызов gui-статуса с отдельными неактивными командами
осуществляется командой SET PF-STATUS 'STA3' EXCLUDING itab.
Цитата:
SET PF-STATUS ... EXCLUDING f ... EXCLUDING itab
Effect
Deactivates one or more of the status functions, so that they cannot be selected. Specify the appropriate function codes using one of the following:
a field f or a literal which contains a function code
an internal table itab which contains several function codes
This method allows you to modify the selectable functions of a status easily at runtime.
Example
DATA: itab TYPE TABLE OF sy-ucomm.
APPEND 'DELE' TO itab.
APPEND 'PICK' TO itab.
Sets the status STA3 which renders the functions with the function codes DELE and PICK inactive.
Соответственно в коде отчета из первого пункта ищите код строки меню. Он должен где-то входить в исключаемые команды по какому-то условию,которое у вас и выполняется