Skip to Content

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.    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'         EXPORTING              p_status  = sy-pfkey         TABLES              p_exclude = itab.       SET PF-STATUS 'ZDISP' EXCLUDING 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


yvr55.png (29.7 kB)
Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    May 20, 2013 at 12:21 PM


    The default menu bar options of SYSTEM and HELP i think are selected by default when you try to do a custom menu bar. So, no need to add your own SYSTEM amd HELP which you have done.

    Try using a SWITCH option in MENU PAINTER should help you. Check the link to get started.



    Add comment
    10|10000 characters needed characters exceeded

    • Hi Arindam,

      Since I cannot locate System menu bar from menu painter, I'm lost at how to check the Function code.

      Should I trigger the error message from the program code? If so, then could u pls explain the procedure a bit clearer.

      Thanks in advance.

  • avatar image
    Former Member
    May 28, 2013 at 05:55 AM

    Hi Kaushalya,

    The Printing of the report can also be prevented on similar lines by checking the

    authorization object 'S_GUI'.

    For example:-



    ID 'ACTVT' FIELD '04'.



    Add comment
    10|10000 characters needed characters exceeded

    • Thank you Smruti,

      But I couldn't figure out at which event block to put this code, as I tried to call this code bock after END-OF-SELECTION it prevents the display of the list output completely. I just want this message to trigger only when user click on PRINT menu bar item.

      Any suggestions would be really helpful.

      Thanks in advance.

  • May 20, 2013 at 06:13 AM

    Hi Kaushalya,

    Can't you just check the program name in your code?



    Add comment
    10|10000 characters needed characters exceeded