Output is not going to Printer Directly for XML (PDF) Output

Hi,
I am trying to print the AP Check Advice output directly to printer,using FND_REQUEST.set_print_options before submission of concurrent request. This was working perfectly,when report was RDF(with PDF) output. I changed it as XML with PDF output. Please help here.
CREATE OR REPLACE PROCEDURE <NAME>(ERRBUFF OUT VARCHAR2,
RETCODE OUT VARCHAR2,
P_PAYMENT_BATCH IN VARCHAR2) IS
L_REQUEST_NO NUMBER := 0;
L_PRINTER BOOLEAN := TRUE;
L_OUPTPUT_FORMAT VARCHAR2(100);
XML_LAYOUT BOOLEAN;
BEGIN
-- Submit the request to Run the report
L_OUPTPUT_FORMAT := 'PDF';
XML_LAYOUT := FND_REQUEST.ADD_LAYOUT(TEMPLATE_APPL_NAME => 'SQLAP',
TEMPLATE_CODE => 'SDAPBFAD',
TEMPLATE_LANGUAGE => 'en',
TEMPLATE_TERRITORY => 'IN',
OUTPUT_FORMAT => L_OUPTPUT_FORMAT);
IF XML_LAYOUT THEN
IF l_printer = FND_REQUEST.set_print_options('bapr001',
'PDF_PORT',
1,
TRUE,
'N',
'RESOLVE') then
FND_FILE.PUT_LINE(FND_FILE.LOG, 'Printer Setup Completed');
END IF;
L_REQUEST_NO := FND_REQUEST.SUBMIT_REQUEST(APPLICATION => 'SQLAP',
PROGRAM => 'SDAPBFAD',
START_TIME => NULL,
SUB_REQUEST => FALSE,
ARGUMENT1 => P_PAYMENT_BATCH,
ARGUMENT2 => FND_GLOBAL.LOCAL_CHR(0));
END IF;
COMMIT;
END ;

Payables: Version : 11.5.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
SDAPBFAD module: SDD Format Payments (Advice Print)
Current system time is 01-JUL-2009 11:20:31
+-----------------------------
| Starting concurrent program execution...
+-----------------------------
Arguments
P_PAYMENT_BATCH='Quick Payment: ID=461458'
Environment will now switch to UTF-8 code-set.
Parts of this log file may not display correctly
as a result. This is an expected behavior.
XML_REPORTS_XENVIRONMENT is :
/app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
XENVIRONMENT is set to /app/oapps/11.5.5/opm7ora2/8.0.6/guicommon6/tk60/admin/Tk2Motif_UTF8.rgb
Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
AMERICAN_AMERICA.UTF8
MSG-00001: After SRWINIT
MSG-00002: After Get_Company_Name
MSG-00003: After Get_NLS_Strings
MSG-00004: After Get_Base_Curr_Data
MSG-00800: Getting Payment Batch details....
MSG-00007: After Custom_Init
MSG-00020: After SRWEXIT
MSG-00010: L_REQUEST_ID
MSG-00020: Printer Setup Compeltedbapr002SDDCHECK
MSG-00010: L_REQUEST_ID23907445
MSG-01001: Quickcheck - deleting temporary records....
Report Builder: Release 6.0.8.27.0 - Production on Wed Jul 1 11:20:31 2009
(c) Copyright 1999 Oracle Corporation. All rights reserved.
Enter Username:
Start of log messages from FND_FILE
End of log messages from FND_FILE
Executing request completion options...
------------- 1) PUBLISH -------------
Beginning post-processing of request 23907442 on node HOUN35 at 01-JUL-2009 11:20:42.
Post-processing of request 23907442 completed at 01-JUL-2009 11:20:48.
------------- 2) PRINT   -------------
Printing output file.
Request ID : 23907442      
Number of copies : 1      
Printer : bapr001
Finished executing request completion options.
Concurrent request completed successfully
Current system time is 01-JUL-2009 11:20:49
<stdin>: The file is damaged and could not be repaired.

Similar Messages

  • Firefox does not allow page re-directing for paypal payment

    firefox does not allow page re-directing for paypal payment. How do I fix this problem. It occurs with several sites where it was not a previous problem. When I press "allow", I get returned to the very beginning of the order process.

    I really appreciate your (spookily timely) help. Yes, I did try safe mode once.
    The problem with testing this problem is that I have to have something in the cart to buy, and if it works I've bought it.
    I was hoping to find that someone else had already done the logic and experimenting part, and the solution was just 'out there'. I did get one response (from Daz3d) that said Firefox had been having a problem with PayPal on their site, but no details.
    And as soon as I buy what I need using a credit card, as far as they're concerned the problem is done.

  • Why do I not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task?

    We are trying to use workflows to review and edit pdf files in sharepoint 2010. We are having a couple of issues and am hoping someone has the answer.....
    1)  When myself and coworkers click on the pdf document in the library, we get the check out option as expected.  However when we click on the document
    link in a workflow task (on the sharepoint site), the pdf opens as a temporary file and we do not get the check out option.  Why does this happen????? 
    2)  The same thing happens when we click on the document link in the workflow task email;   HOWEVER,  one of our co-workers does get the
    check out option when clicking on the link in the email task.  Why would she get the checkout option using the email and not when clicking on the link in the task list on the sharepoint site ????  We have compared our internet settings and adobe
    settings to ours and found no differences.
    We are using Sharepoint 2010, Windows 7, IE8, Adobe Reader X or XI.  Some of us have Adobe Pro X and have the same issues.

    Hi,
    According to your post, my understanding is that you could not get the checkout option for a pdf type document when clicking on the document link in the SharePoint workflow task.
    I try to reproduce the issue, however, no matter when I click the pdf type document in the library or click on the pdf document link in the workflow task email, it download the pdf doucment and then I can open it.
    It will be better if you can descript how you
    get the check out option as expected when you click on the pdf document in the library.
    Then I upload a
    word type document to the library, no matter when I click the word type document in the library or click on the word document link in the workflow task email, I can open the word document directly and get the check out option as expected.
    I recommend to use the other type docuemts to check whether the check out option works.
    Thank you for your understanding.
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Reader 9.3.2 does not remember last page visited for scanned pdfs

    Using an old school PPC Mac, OSX 10.4.11.  Reader 9.3.2 does not remember last page visited for scanned pdfs. It only remembers the last page visited for searchable pdfs, but not for scanned.  I have the box checked in "Preferences: Restore last view settings..."  I cannot upgrade Reader on this system, or my OS, so I'm stuck using what I have for now. I have to read huge documents for my work, that will include hand written notes in the margin and other marks on the page. The documents are hundreds of pages long, so it's a bit frustrating that it can't remember the page number for this type.
    Are there any fixes for this? Something else I can try?

    I tried to find the download for 9.5.5, but my OS is not in the list. I'm on a non-intel PPC mac. I tried finding that version on the web, but most of the links lead me back to Adobe, where it doesn't seem to want to be found. It obviously exists somewhere, but Adobe isn't making it easy to access!

  • SAP HR-- In form 16 , i am not able take print out for all pages..

    Hi,
           In SAP HR module , i have totally 5 pages, i need to take the printout for all pages.. but i am getting only 1 pages.pls could u solve this problem
    Regards
    senthil

    There is no relation with module to printer settings
    check the printer settings for declared printer in output devices
    otherwise contract basis guy
    regards
    sateesh

  • Why can I now not print direct from a PDF from an email

    Why can I now not print direct from an email file attatchment

    Can you explain in better detail?
    Is it when you open the file attachment and attempt to Print?
    Is it right-mouse clicking and attempting to Print?
    Is it when you print the email itself and expect the attachment to Print?

  • Am I eligible for a student discount if its not going to be used for school or college purposes?

    I'm in 12th grade and I'm a student at a public high school. Can you get the student discount if your not going to be using the software for school or college?

    Well, all that matters is the school papers. Whether or not you use the software box as a door stop and nail the DVD to the wall as decoration is entirely up to you nor does the EULA exclude commercial use...
    Mylenium

  • TURBOTAX 2014 CD DOES NOT PERMIT OFFLINE PRINT OR SAVE TO PDF.  YOU CAN ONLY SAVE TO PDF OR PRINT IF ONLINE.  BIG SECURITY ISSUE.  INTUIT IN WSJ ARTICLE BLAMES APPLE, SAYING APP STORE SOFTWARE RESULTED IN THIS.  TRUE?

    Starting this year, Turbotax CD/download versions will not permit people to print tax forms when offline. If you try to print while not connected to the Internet, you receive the warning “There was a problem connecting to Intuit’s Secure Print Service.  Please check your Internet connection or try again later.”  Indeed, Paragraph 9 of the Intuit Software End User License Agreement states:  "You may save your return as a PDF file and understand it may be processed on Intuit servers, not as part of the Software."
    Even if you wish to protect your data by not exposing it to the Internet, Turbotax will not let you without sharing your entire return first with them.  They prohibit you from only printing locally on home, cable-connected printers.
    The result of this is that people who tried to be safe by never going online with tax data, are this year being forced by Intuit software to expose all their sensitive tax information files to the Internet and Intuit print server, even though they do not wish to. Turbotax is putting you at risk.
    On Feb 19 the Wall Street Journal quoted an Intuit spokesperson blaming Apple:  According to Julie Miller, an Intuit spokeswoman, TurboTax made the change “because the Mac product requires a special, third-party code library to support offline printing.” And she says, “based on Apple App Store guidelines, we could no longer distribute the third-party library with our software.”   She said the change in the TurboTax Mac software was first made for 2013 tax returns, but last year customers had the option of printing returns without being connected to the Internet.
    So is Apple to blame that I now have to expose my sensitive tax data to Intuit just to be allowed to save to PDF on my hard disk?  And it's all Apple's fault?
    Can anyone clarify this?

    Thank you for this an the other posts.  Particularly for Barney,
    I have just discovered that Turbotax actually permits you to print (and save to PDF) documents from the Help
    Center built into the program, even when you are OFFLINE.  Works just like normal printing is supposed to.  It just won't let you print actual tax forms. So I guess they were willing to violate Apple’s rules when you print information from their help center offline, but you just can't do the same with your own tax forms.  Clearly this shows that what Intuit told Forbes was a fabrication.
    They do in fact have the proper code in the program for printing and saving to PDF.  They just deny you usage of that code for printing your tax returns, which they want to copy.  I don’t think there can be any doubt about what they are doing.  Surely they are not deceiving apple by allowing the limited print function?
    We can only hope that a brave journalist will challenge them on this, since Intuit will not respond to customers.
    Thank you for any views on this points.

  • How to change the default print template for broadcast PDF Export

    Hi,
    I have currently designed a print template for printing purposes and use this as the template for the print button(Export to PDF),if i were to click on this button the output pdf is the desired PDF. But if i were to broadcast the template with output format as PDF it picks the layout of the current template, how do i set broadcast to pick up the print template also???
    Further how to insert a page break in a PDF print template.

    Hi Nagesh,
    These setting are for
    1.Adhoc Template for Queries
    2. Adhoc Template for reports designed through report designer
    3. Template for query precalculation
    4. Template for displaying broadcasting wizard.
    When we use broadcasting from query designer  to email PDF's the system uses 0QUERY_TEMPLATE_BROADCAST_PDF.
    From WAD the system uses the current template layout as PDF Layout.
    P.S: OSS note 1054460 -<b>Depending on the BI object type and possibly other criteria, different Web templates are used in BI broadcasting to generate PDF (and PS or PCL) formats:</b>
    <i>For Web templates: the Web template itself is used</i>

  • Disable print function for  a pdf document

    Is there a way to make an Adobe pdf read-only?  Can I disable the print function for an isolated document before making it available to others? I am working on MAC laptop.

    hi
    i got the answer
    we have to give issue output to -->screen

  • Not able to print xcelsius dashboards from pdf files.

    FYI. In case this has you stumped on how to print your dashboards from Adobe pdf you are not alone.You may have noticed that it is not possible to print your dashboards from Adobe pdf documents.  It is not possible to actually print any active embedded flash document from an Adobe pdf document and this behaviour is by design. You can however print your dashboards if they are exported to other formats such as such as MS Word or MS Excel.  Xcelsius 2008 does include a 'Print' button which you can add to your dashboards to allow your users to print them.

    FYI. In case this has you stumped on how to print your dashboards from Adobe pdf you are not alone.You may have noticed that it is not possible to print your dashboards from Adobe pdf documents.  It is not possible to actually print any active embedded flash document from an Adobe pdf document and this behaviour is by design. You can however print your dashboards if they are exported to other formats such as such as MS Word or MS Excel.  Xcelsius 2008 does include a 'Print' button which you can add to your dashboards to allow your users to print them.

  • Adobe reader does not work, what is best for viewing pdfs?

    While using Safari, I keep encountering a message that in order to view a .pdf, I need to download Adobe Reader, accept the end user agreement, then relaunch.  I have tried to do this many times and keep getting the above message. What program is best for viewing pdfs using Safari on an iMac

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click the line of text below on this page to select it, the copy the selected text to the Clipboard (command-C):
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, remove any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • Adding bar codes to printer device for smartforms pdf conversion?

    Hello friends,
    I would like to send a smartform as a pdf to an email recipient. The smartform shows some bar codes. The send process workes fine. But the bar codes doesn't appear on the pdf correctly. Therefore I would like to add bar codes to the printer device type in transaction SE73.
    Does somebody know the device type for smartforms pdf conversion? Or how can I add bar codes to smartforms pdf conversion process?
    greetings
    daniel

    Hello Denial,
    Try these links, this might solve ur problem
    http://www.tec-it.com//documentation/TBarCodeSAPLPD_EN.htm
    http://www.mecsw.com/info/appnote/app_024.html
    if you need any more information send me at [email protected]
    Thanks & Best Regards
    Ankur Jain

  • F14 not working as PRINT SCREEN for XP with apple numeric keypad

    i posted this elsewhere but i am basically desperate to get a couple things finalized over here so apologies if no one knows how to solve this one. just sort of hoping to get some things out of my hair once and for all...
    i have an apple keyboard with numeric keypad on my mac pro running windows xp and windows 7 in addition to Lion.
    for some reason the F14 key is not getting me a print screen despite spending a /lot/ of time trying to get this working.
    can anyone help me get this figure out finally? there is a lot of info on the net about this but now much help.
    mac tech articles seem pretty sure that F14 should be working.http://support.apple.com/kb/HT5636
    what am i missing?

    hi mooblie.
    a huge (HUGE!) thanks here for the help. i have been googling this off and on for about a year believe it or not.
    anyway, the lowdown appears to be Snip tool in win 7 as you indicate (right click i think it was to a save on taskbar once it was opened) and then i used Applekeys2 which i downloaded while in windows xp.
    two notes for those that come after. 1. i did download keyboard layout creator which is a windows tool but it seemed much more powerful (and complicated) than i needed at least for this initial issue to get me going finally.
    2. i can't remember if snip tool will drop an image file in a folder or on the desktop but i did FINALLY REALIZE that part of my problem here with windows XP was that you HAVE TO PASTE the captured image into a windows image program (i am using "Paint" i think which i also pin to the taskbar). this was a major pain because having gotten used to the mac screenshot i was totally clueless that it did not function so seamlessly in windows!!
    anyway, in short the Mac screencapture could be considered a "screencapture and save to file" and the windows (XP at least) could be called a "screencapture to windows whatever memory and then DON'T FORGET you will have to paste it somewhere..."
    this requires a /lot/ of clickthroughs so i am still looking for:
    A. one shot screencapture to file on desktop funtion in the windows OS's
    B. screencapture /selected/ area instead of whole screen since this also requires post editing that i would like to avoid.
    anyway - BIG THANKS.

  • Netflixs no longer streams instantly on firefox even with silver app updates.  Netflix said to call Apple Care that it is an Apple problem.  What to do since I am not going to pay Apple for the solution

    Recently Netflixs stopped instantly streaming their videos on Firefox even after installing silver----- update.  When I called Netflix, they said it was the Firefox browser and not them and told me to call apple care.  I do not have apple care coverage and want to know if I can solve this proble or is it Apple that is refusing to comply by making the browser incompatible with netflix software.  I can get Netflix on my Roku.

    Hope the following helps.  The secret seems to be to NOT download Silverlight from Netflix site.
    MacBook Pro  / Mozilla Firefox / Netflix / Silverlight Update solved - DON'T DWNLOAD FROM NETFLIX
    I solved this problem tonight. I have a MacBook Pro with 10.5.8. I know, it's old. But I love my Netflix and I recently noticed that Firefox plays Netflix much better.  Then I suddenly got this message that I needed to download the latest Silverlight - it only takes 30 seconds! - WRONG.   However, after much searching, I finally did the steps in order and it worked.  
    This was after repeatedly downloading Silverlight from the Netflix site without success.  So here's what I did:
    1. Went to http://www.microsoft.com/getsilverlight/Get-Started/Install/Default.aspx
    2. Followed the directions. I felt like such an idiot for not doing it right before.
    3. Go to your hard drive and search for "Silverlight" to locate ANY existing Silverlight files: .dmg, etc.
        [also check your Libary/ Internet Plug-ins, but the above search is faster]
    4. Drag it all to the trash and empty it.
    5. Go back to the Get  Silverlight page and click on the Install on that page, not the Netflix site.
    6. Note the steps for Safari or Mozilla Firefox - I wanted Firefox, so I follwed those instructions.
    7. Once it's installed, close all the browsers and Restart that bad boy. Right away.
    8. Open a browser, go to Netflix and proceed to joyfully rot your brain with Netflix content. Yay!

Maybe you are looking for

  • Console Log Errors

    I'm getting some errors and warnings in my console system log that I don't quite understand - they have me a little concerned since things have been running a little bit strange on my system over the past few days: Mar 19 12:23:59 localhost Directory

  • List distribution doesn't reflect the treatment split, Siebel Marketing 8.1

    hi, I have a segment tree with 2 branches. The first branch is assigned to treatment A, the other one to treatment B. If I load the campaign then 2 lists are generated and the number of clients reflect the treatment splits. However if I launch the ca

  • Error when Compare Size of P-, Q- with X- and Y- Tables in RSRV

    Hi Expert, I am using RSRV and trying to compare the content of P table to X table. But it seems that the X table was deleted while comparing it to P. And while doing it, I experience a "runtime error". Can I recover the X table and how? Janet

  • HT4085 My sound effects is not working

    My sound effects is not working can help me ?

  • DataBase Design For Library maintanence

    Sir I am doing my Final Year B.sc(Comp.sci), I am having my Oracle Project to do things. I just wan't a Detailed DataBase Design for Library Maintanence Please Could you help me in terms of DataBase Design......