Skip to Content

Preview PDF in ME21N after a Save

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 14, 2011 at 07:59 PM

    Hi,

    Have you tried with the HOLD PO through debugging.

    Regards,

    BK

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.