Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Disabling the Print Option in List (System Menu)

Hi Gurus,

I've a requirement to disable Print option for a custom transaction.

First, I disabled PRINT icon on Standard Tool bar.

This seems worked fine as I added the following code:


    DATA itab TYPE TABLE OF sy-ucomm.


    APPEND: 'PRIN' TO itab.



              p_status  = sy-pfkey


              p_exclude = itab.


But, still, the user can Print the list from Standard Menu bar (System -> List -> Print) option.

For this I used the menu painter to copy the system menu MENUSYST into my custom program, and modified the system menu.

This also worked fine and now the System -> List -> Print option is disabled.

Except for now when I execute my custom transaction, I see duplicate menus for System and Help on the menu of the screen

And the Print function on the second system menu is enabled!

I can't figure out how to remove this second set of menus or how to modify them.

However, any modification to system user interface will affects system wide. Is there any possibilities to remove system menu or disable list/print option from standard menu bar completely, only for this custom report?

I also tried to use the print authorization object. The issue here is, the common users usually has authorization to print other reports, but need to be restricted from printing this custom report only. Any suggestion would be greatly appreciated.

Thanks in Advance


Not what you were looking for? View more on this topic or Ask a question