Skip to Content
avatar image
Former Member

ME23N - Disable Printing from Print Preview Screen

We have had people change a purchase order, go to print preview and print the purchase order and then not save it. They now have a copy of a purchase order that does not exist as printed.

Can you disable the ability to print from print preview?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 15, 2008 at 04:36 PM

    Hi

    I suppose the program to drive and show the print is custom: so u can change that program in order to check the transaction, if it's ME23N u can abort the preview and show a warning or information message.

    Max

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi

      Are you using a standard print for PO? Wow .

      If it's so I believe u should create a z-program as copy of the std one in order to manage the control of preview.

      Else you can try to use the BADI ME_PROCESS_PO_CUST in order to stop the preview

      Max

  • avatar image
    Former Member
    Sep 16, 2008 at 12:02 PM

    Hi

    SAPFM06P is the standard program to print the PO ... u copy that to Z program ... in the include FM06PE04 goto the line

    call function 'FP_JOB_OPEN' .

    just before that write this :

    fp_outputparams-NOPRINT = 'X'.

    hope this helps ........... 😊

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the clue given in this forum.

      We are able to grey out the print icon in print preview screen by adding following code in print program just before calling smart form function:

      ls_output_options-TDNOPRINT = 'X'.

      CALL FUNCTION lv_fm_name

      EXPORTING

      control_parameters = ls_control_parameters

      output_options = ls_output_options

      user_settings = ' '

      i_nast = nast

      EXCEPTIONS

      ...