Register Login

Is is possible to hide or disable the SAP Printer Icon?

Updated May 18, 2018

We have an RFC that opens a new session in order to present a PDF document from our Adobe Document Server. This document is displayed in the Print Preview screen, SAPLFPCOMP.0500. The PDF is presented with the usual Adobe Reader controls including a print button.

Using the Adobe print function is out preferred method when someone needs to print the document and I was hoping to use GuiXT on the SAPLFPCOMP.0500 screen to hide or disable the SAP printer icon (on the line of icons below the menu). Clicking the SAP print icon generates a spool file rather than actually prints the document and some of our initial test users have been confused. I've been teaching them to use the Adobe Print function, but if the SAP Printer icon is hidden or grayed out, it should reduce the number of inadvertent spool jobs.

I'm already using the DEL M[Print] command in the screen file to disable the menu choice to print, but I'm not having any luck so far with the SAP Printer icon.

Any help is appreciated!


Comments

  • 03 Oct 2012 1:12 pm Shalesh Singh Visen
    One idea is this...


    Find the function code for the "Print" and then disable the invoking of the function.

    In your GuiXT Script:

    On "/FCode" process="do_nothing.txt"


    In your Input Script (do_nothing.txt):

    return


    This will return the click action to the same screen from where it's being invoked and do nothing.

    Hope this helps.
  • 03 Oct 2012 1:13 pm Shalesh Singh Visen
    Thanks for this great workaround idea! I've implemented it and added a message telling the user to use the PDF print icon rather than the SAP print icon. This will remind them of the best way to print this form and won't generate unnecessary spool files.

×