Skip to Content

Disable Ctrl+P in PF-Status on a screen

Hi All,

I have a Zprogram where I am displaying a WORD DOCUMENT as it is which is stored on the DMS content server. I want to take the print of this word document but do not want the pop up screen of the printing, ideally user should not change the number of copies option on the pop up screen.

I have disabled Print button on the standard toolbar and instead added button on application toolbar for this purpose. Button on application toolbar is working perfectly fine and not displaying the pop up screen while printing.

But when i hit the Ctrl+P from keyboard then pop up screen for the print is appearing, however I have disabled the Print button on the standard toolbar.

Any suggestion how I would be able to disable Ctrl+P also which triggers via keyboard.

Thank You

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 10, 2017 at 01:49 PM

    It depends on where the focus is (on which window, i.e. in a SAP GUI screen, there are pure SAP GUI elements, and there are "containers" for containing any Windows GUI control). If the focus is on the Word document, then Ctrl+P is handled by the Word software. But with SAP DOI, you can disable menu items the Office application, by using the method DELETE_MENU_ITEM (of interface I_OI_DOCUMENT_PROXY). I guess that removing the Print menu item, it would also disable the Ctrl+P keys assigned to it, and I hope Ctrl+P will then be handled by the SAP GUI (so, by your ABAP program).

    PS: I never tried, so I can't tell you how and whether it works.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 10, 2017 at 11:18 AM


    have you checked the GUI_STATUS of your program or function group?

    Here you can define also "Function keys" and maybe you can define another function here for the combination CRTL+P.

    Add comment
    10|10000 characters needed characters exceeded