Debugging Preview/Print in ME23N

Hi everyone,
I'm having problems with preview/printing a formular when I'm in transaction ME23N. I modified the standard program  SAPFM06P to decide in witch language it would be shown.
I made the changes before function 'OPEN_FORM' and i export the language parameter.
My problem is that this goes well with preview, when I try to print, the program didn't arrives to that point. The problem didn't executes any OPEN_FORM function or some functions related with SapScript...
What's going on?
Thanks a lot

Hello Jose,
You have copied the program SAPFM06P which is the main program which is executed for printing the PO. This program is copied as ZSAPFM06P and the same entry has been made in the customisation for message of PO.
Next the entry point in this program is also maintained in the customisation which is usually ENTRY_NEU and which I believe u have not changed. From this FORM the call to ME_READ_PO_FOR_PRINTING and ME_PRINT_PO or Z_PRINT_PO is made. Did u check if while printing an entry is made to the FORM routine?
Check the printing procedure it might just be skipping ur printing option altogather... Check through customisation. WHat is the status shown in PO when u go to messages section?

Similar Messages

  • How to prevent users from taking print through ME23N

    Hi Everyone,
    Please guide me for the following query:
    How can we restrict users from taking print through ME23N as through print preview in ME23N user is provided an option of taking print of the document.
    Please guide with authorization object information.
    Please guide.
    Thanks and Regards

    Hi Dear,
                     Consult with ur BASIS person.he can help u ........
    thanks

  • Debug PO print program

    Hi friends.
    I am trying to debug PO print program, even after putting an endless loop.. it's not going to debug mode. Please help
    Thanks
    Lakhbir

    Lakhbir,
    There are several ways to keep breakpoints.
    1. Get the Layout name. Go in SE71, give layout/form name and enter in display mode. Use menu path Form Check --> Texts. It will display all associated driver programs. If you know your driver program name, place a breakpoint from SE38. Usually there should be a FORM ENTRY routine call.
    2. Go to program RSNAST00 -search for
        PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE
                                                             US_SCREEN
                                                             IF FOUND.
    PGNAM is program name, RONAM is Name of routine to be called up in the processing program.
    Keep a break point. When you print from ME23N, control will come to this place in debugging mode.
    Check form name, program name. Go to program and associated form and keep breakpoint.
    Hope this will help you.

  • Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    Help! Pictures are not shown when saving to PDF.  Cannot Preview Print Job.

    I guess you need to fix it
    Or if you would like some help provide some information - there are no mind reader supporting this forum and we can only work with the information you give us - right not that is "it does not work"
    iPhoto has no "save to PDF" function - exactly what are you doing? and what exactly do you want to do?
    LN

  • Preview Printing

    I'm posting this question here after trying it at the Printing And Faxing forum. I have a book of my own compositions that i scanned to a disc. The book has a table of contents, and other introductory material that is numbered with roman numerals. The rest of the book is numbered normally, starting with the first composition on page one. The problems start when i try to print out one of the tunes. I click the print icon, enter the the page i want to print (i.e. from 23 to 23) and hit print. What happens is, Preview prints the 23rd page of the entire book, including the introductory pages, not page 23 starting from page 1. Other than adding up the roman numeral pages and tacking that on to 23 and printing that number, is there a way around this? It's extremely annoying, and it's kind of ruining Preview for me, even though i like it much better than Adobe Acrobat (where i don't have this problem) I'd like to dump Adobe and just use Preview, but i can't until this problem is solved. Thanks.
    intel imac   Mac OS X (10.4.8)   2.16 GHz intel core 2 duo, 1 GB RAM

    I have Word, and have been trying to open the PDF's in it, but I haven't been able to get it to work. I open Word, then file/open, then I navigate to the files on the disc, but all the different PDF's are greyed out. I just don't understand how PDF's can be opened in a text program. With that said, it's not really that big of a deal. Acrobat works o.k., I just like Preview better, it runs more smoothly and the images look better, I just hate the printing thing that started this whole thread. And thanks for the music scanning apps, but scanning my hand-written scores into the computer hasn't been the problem, just the printing in Preview.
    intel imac   Mac OS X (10.4.8)   2.16 GHz intel core 2 duo, 1 GB RAM

  • Preview printing to Black and White?

    for some dumb reason (either me or the UI....) i can't figure out how to set up a preset for a single page in black and white out of preview.
    can anyone help?

    With the Preview print dialog set to Show Details, you should be able to select the vendor menu where the B&W / Grayscale setting is located. Or if you are using Apple's AirPrint driver, then the B&W setting is present in the print dialog as shown below.

  • Preview Print is Boffo (V2)

    Someone tell me if I am doing something wrong of if Preview print just acts whack.
    I open three images in Preview:
    I. I do nothing and pulldown to Print and it will print the FIRST image
    II.I do nothing and pulldown to Print Selected and it will print the FIRST image
    III. I select all three images and pulldown to Print and it will print the FIRST image
    IV. I select all three images and pulldown to Print Selected and it will print ALL THREE IMAGES
    I mean, wouldn't the logical - and most HASSLE-FREE way to implement this is to let me run a PRINT and let me print all three images that I have opened? This way if I want to print /less/ I can SELECT LESS and run a Print Selected? Right now it is a /major/ pain to have to always SELECT ALL MY IMAGES when I want to print them. Also, it is really illogical to have three different ways of printing just the first image, isn't it?
    I missing something here and there is an easier way to print all my images than jumping through an additional two or three hoops to get there...?
    Is this the it's a turkey and not the i have a bug deal again?
    THANKS

    i am trying to simplify an existing workflow. can you just give me what you know and not what you presume because this is getting difficult to understand.
    I am giving you what I know. I have to presume some things because I'm not running your version of Mac OS X, so I can't be sure that Apple hasn't changed something between my version and yours.
    one way to do this is to use terminal to (apparently) change the default settings of the Print Dialog because these don't stick in a way that would make them more useful.
    No, the Terminal commands would alter the behavior of Preview, not the Print dialogue box.
    you are saying that these keystrokes are a REPLACEMENT for manually selecting all the images and then printing them? I mean, these two keystrokes replace my MANUALLY SELECTING ALL THE IMAGES and then running a PULLDOWN TO PRINT?
    No, I believe that's what fane-j was implying, in an ideal world. But at least on my system you can't "Select All" and then print, since you only get the image in the active window, and if I load multiple images at once, that command doesn't work anyway. I don't think Apple has changed that in this most recent version of Preview.
    If so, I would really rather prefer to have a workaround to avoid the dialog altogether that would just let me print images directly from Finder.
    We'd all like to reduce keystrokes, but I doubt you'd be able to avoid the Print dialogue anyway, because you do have to choose which printer you want, as well as paper size, etc. If you Control-click on a single image, you can choose 'Print' from the contextual menu and it will print immediately, without going to the Page Setup or Print diaglogue menus.
    Do you have a suggestions for reducing KEYSTROKES or MANUAL OPERATIONS to print all my documents? This is the point of the post unless I am using the dialog for Print wrong or unless there is a bug in my system.
    First thing you should do is try those Terminal commands and then test Preview to see if the annoying behavior continues; if not, that would reduce at least one click or keystroke. If not, there are some other things we can add or change that may also help you with the default sizing of your images.

  • Event "Workbook_BeforePrint" not on new funtion "preview&print"

    Hi
    After starting the work with Excel 2010 I recognized that the new function "print&preview" does not call the event "Workbook_BeforePrint" from the VBA code. In Excel 2007 the event is called on both functions, print and preview.
    As the new function "preview&print" is pushed to the user, it will the one to be used to call the preview. But with a macro on the event "Workbook_BeforePrint" the preview will not show the result as it will be printed.
    Is there any action I can take to solve this problem on my side? Or is there any plan to integrate the event into the new function?
    Many thanks for every help.

    Hello Parzungjh,
    Welcome to the MSDN forum and we are glad to help with you.
    After reading your post, I did test in Excel2010 and Excel2007, just as you said, I reproduce your problem. However, I don't think
    it as a problem.
    I think it is by design.
    I found that print and preview feature is integrated in Excel2010. If you want to control the trigger of BeforePrint event
    in Excel2010, you can write some simple VBA codes as follows:
    Private Sub Workbook_BeforePrint(Cancel As Boolean)
    Dim Print_or_Preview As XlYesNoGuess
    Application.EnableEvents = False
        Cancel = True
        Print_or_Preview = MsgBox("Show Print Preview?", vbYesNo)
        If Print_or_Preview = vbYes Then
            ActiveWindow.ActiveSheet.PrintPreview
            Else
            ActiveWindow.ActiveSheet.PrintOut
        End If
    Application.EnableEvents = True
    End Sub
    ActiveWindow.ActiveSheet.PrintPreview
    can open the print preview dialog like Excel2007. I haven't found the way to open the print view dialog through UI.
    I think it is the change in Excel2010.
    I hope it can help you and feel free to follow up after you have tried.
    Best Regards,
    Bruce Song [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Preview prints, Acrobat won't

    I am having trouble printing from Acrobat 7.0.7 (both Pro and reader), but the same documents print using Preview.
    Can anyone tell me the difference between the data being sent to my printers by each application?
    Thanks.

    I'm having the same trouble: Acrobat 7.0.7 Professional will not print documents, while Preview prints them just fine. The documents I'm trying to print were created on QuarkXpress 6.5 and printed with Acrobat Distiller 6.0.1 for MacIntosh, PDF Version 1.5 (Actobat 6.0). So, the suggestion that the problem may be PDFs created in Distiller for Windows does not apply. Unfortunately, the document's security settings to not allow me to use PDF Optimizer to resave the documents (nor am I able to recreate them by writing a PS File and distilling a new document). The security does allow for high resolution printing.
    I can print older PDF documents, but lately I've found that Adobe Acrobat will print documents. All I get are blank pages.
    I've tried removing the printer and reinstalling it. Did not help. There appears to be some incompatibility between OS 10.4.6 and Adobe Acrobat 7.0.7 Professional.

  • Smartform preview / print of chinese characters

    Hello all
    I am facing this issue:
    After implementing SAP Note 852926, the Smartform preview / printing works fine with Chinese characters in DEV system.
    The Unit test were OK and then the SAP Note has been transported to our TEST env, but the chinese characters are not previewed and printed correctly there.
    I see characters as "»ÆêÍ" instead of "黄晖"
    I can not find any difference in settings / fonts of the two systems. What am I missing?
    Anybody can give a hint?
    Thanks
    Imrich

    Hello Imrich,
    Do you use the same device type to print in th test system?
    To print Chinese characters from SAP, there are some rules:
    1. The form must have Chinese language key 'ZH' or the Chinese texts must be included as standard texts with the language key 'ZH'.
    2. The correct Chinese fonts(e.g. CNHEI or CNSONG) must be used for the Chinese texts in the form.
    3. The form must be processed with a device type that supports the simplified Chinese language.(eg:device type CNSAPWIN).
    Another possibility if you have a Unicode system is tp print via desvice type SWINCF. Here the language of the form doesn't matter.
    Regards,
    Aidan

  • Error print preview, print setup, print Reports

    Hi All
    I had Primavera P6.7 and worked well I upgrade to 8.2 after update when i make print preview, print setup, print and Reports ====> Run it give me errors like:
    Type : EAccessViolation
    Event Code : AVAA0-2875-6
    Description : Access violation at address 00758396 in module 'PM.exe'. Read of address 00000028
    Type : EAccessViolation
    Event Code : AVAA0-3237-4
    Description : Access violation at address 008F1B70 in module 'PM.exe'. Read of address 00000008
    I don't know what's the problem and what's the solution????
    Please Help me ??

    Dear Ibrahim,
    Can u Just let me know the Version and edition of Windows like Basic/Professional or Ultimate.
    AVAA errors are commonly caused by lack of permissions to the Project Management install directory, the default path is \Program Files\Oracle\Primavera P6\Primavera P6 Professiona
    Generally P6 writes a log to this directory. But if the Currently Logged in user does not have Read / Write access to this directory, an error will be thrown.
    Solution:
    Grant Read and Write access to the P6 PPM installation directory,
    by default: \Program Files\Oracle\Primavera P6\Primavera P6 Professional for the Currently Logged In User
    Pls Let me know whether this Has Worked For You Or Not.
    With Warm Regards
    S.Shankar
    0091-8951826900

  • How to debug Po printing

    Hi,
      How can I debug PO printing process.
    Ingen
    Edited by: Autobots 21 on Sep 23, 2008 11:56 AM

    Hi
    you need to put a HTTP / Session break-point inside any of the BADI Implementations (in SE19 Transaction)
    -  BBP_ECS_PO_OUT_BADI
    -  BBP_CREATE_PO_BACK BADI..
    Related pointers ->
    Re: BAPI_PO_CREATE1
    Note 539978 Automatic generation of BAPI test data directory
    Re: BBP_ECS_PO_OUT_BADI
    Re: Problem with BAPI_PO_CREATE1
    Re: BAPI for replicate PO in Ext. Classic Scenario
    Re: DATA VALIDATION INSIDE  BAPI_PO_CREATE / BAPI_PO_CREATE1
    Regards
    - Atul

  • Debugging MEDRUCK print program

    Hi All,
    How can I debug SAPFM06P (print program for MEDRUCK) ???
    Thanks
    Message was edited by:
            sapsudha rao

    Hi Sudheer,
    I've tried what you said...but while saving PO changes or while generating print view .....  control is not  stopping at break-point... do I need to make any further settings???
    Thanks in advance..

  • How to preview print in Contract agreement ( ME32K)

    Good morning SAP Experts, please clarify my ques, how to preview print in Contract agreement ( ME32K).
    regards,
    Anisha

    Dear Anisha,
    You could either use transaction ME9K or report RM06ENDR_ALV.
    Post your queries in relevant forum to get efficient answers. Moving the thread to MM Forum.
    Regards,
    Naveen.

  • Why does a PDF on preview print so slow on my macbook air?

    Why does my PDF on preview print so slow on my macbook air?

    Try deleting the current print queue ..
    Open System Preferences > Print & Scan > Print
    Click: Delete Print Queue ...
    Delete all prints jobs
    Restart your printer and your Mac.
    Try printing a PDF formatted file.

Maybe you are looking for