cancel
Showing results for 
Search instead for 
Did you mean: 

ME23N - Disable Printing from Print Preview Screen

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Max -

Actually, it's not custom code. It's just standard SAP print a purchase order from the print preview screen.

What other information can I give you that would help clarify my question?

Thanks,

Cindy

Former Member
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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 ...........

Former Member
0 Kudos

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

...