cancel
Showing results for 
Search instead for 
Did you mean: 

Disable Ctrl+P in PF-Status on a screen

former_member530652
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Sandra_Rossi
Active Contributor
0 Kudos

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.

christoph_hopf
Advisor
Advisor
0 Kudos

Hi,

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.