cancel
Showing results for 
Search instead for 
Did you mean: 

Preview PDF in ME21N after a Save

Ratherfish
Explorer
0 Kudos

I have searched the forum but have not been able to find the solution to my current requirement.

The requirement is that the users would like the ability to preview the purchase order from within ME21N after the save has been done. They don't want to have to go to another transaction, like ME23N to do a print preview.

How I got to this point:

The PO was previously designed as a Smartform. A change was made and now the PO is designed as an ADOBE form.

Prior to the change to ADOBE the printer definition for the purchasing groups was defined as a PDF converter definition. This caused a pop-up to occur where the users could save or print the form.

The PDF converter printer definition for the purchasing groups would not work for the ADOBE form as the function module FP_JOB_OPEN would throw an error. So a printer with the printer type of HPLJ4 was set up for the purchasing groups.

All works fine but now the pop-up is gone and the users don't like it.

One simple solution was to do a print preview just prior to the Save but because the Save hasn't been completed there is no Purchase Order number on the form.

I've tried ensuring the print dialog would pop-up using the NODIALOG parameter supplied to the FP_JOB_OPEN function module but this doesn't work on a Save. It works on the print preview in ME23N though.

I've tried debuging the code but my break points don't get hit during a Save. My break points will work doing a Print Preview in ME23N though.

I thought the problem might be in my coding some how so I set up the processing routines in NACE to use the SAP supplied program code SAPFM06P and form MEDRUCK_PO and the behaviour is the same as my custom code.

Any ideas on how I can provide the users the ability to either print or save (locally) the Purchase Order on a save within ME21N?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Have you tried with the HOLD PO through debugging.

Regards,

BK

Ratherfish
Explorer
0 Kudos

I haven't tried using that feature. Wil that provide a Purchase order number?