Layout to be generated as PDF output in a Spool

Hi ,
I am generating a layout using smartform. My requirement is layout has to be generated as PDF output in a Spool.
Please let me know how to write the code  in my driver program to generate the spool or any FMs related to this. 
Thanks in advance.
Regards,
Jyothi
<MOVED BY MODERATOR TO THE CORRECT FORUM>
Edited by: Alvaro Tejada Galindo on Jul 14, 2009 12:44 PM

hi
use  below sample code  hope this may help u out
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
IMPORTING
          fm_name            = fname
CALL FUNCTION fname
  IMPORTING
          job_output_info    = impdata..
i_itcoo[] = impdata-otfdata[].
CALL FUNCTION 'CONVERT_OTF_2_PDF'
        EXPORTING
          use_otf_mc_cmd         = 'X'
        IMPORTING
          bin_filesize           = binsize
        TABLES
          otf                    = i_itcoo
          doctab_archive         = idocs
          lines                  = t_pdf
        EXCEPTIONS
          err_conv_not_possible  = 1
          err_otf_mc_noendmarker = 2
          OTHERS                 = 3.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
          CHANGING
            filename = filename
            path     = path
            fullpath = fullpath.
CALL FUNCTION 'GUI_DOWNLOAD'
          EXPORTING
            bin_filesize = bin
            filename     = fullpath
            filetype     = 'BIN'
          TABLES
            data_tab     = t_pdf 
          EXCEPTIONS
            OTHERS       = 99.
thank you
surya

Similar Messages

  • XML Publisher Report not generating the PDF output.

    Hi,
    I am trying to develop a XML Publisher Report in R12 Vision Instance.
    I have developed the rdf report and concurrent program with XML as output format. Ran the concurrent program and I got the XML output. Based on XML output I have created the rtf template. Using both the template and xml output I have created in Data Definition and Template in XML Publisher Administrator Responsibility. Now I am comming to the concurrent program and running the program, here instead of generating the PDF output it is generating again the XML output and concurrent program completing with warning status.
    When I am trying to do the same in 11i Vision Instance, Concurrent Program completing with normal status and when trying to view the output it is saying "Unable to Publish output for the Processed Request".
    Kindly please help me out in this issue.
    Thanks,
    Manasa.

    Hi Mahesh,
    Here the concurrent programs are not erroring out. It is completing with Warning status and when we click on View Output the output is coming in XML format instead of PDF, this is in R12 Vision Instance.
    In 11i Vision Instance, concurrent program is completing with Normal Status but when we click on View Output it is saying "Unable to Publish output for specified request".
    Thanks,
    Manasa.

  • Jfmerge:Invalid printer Type (98) when generating  a pdf output.

    I am receiving "Invalid Printer Type (98)" error message when i call jfmerge from my servlet to generate a pdf output. Any idea?
    Thx,
    Anupam

    Hi Frazer,
    I am indeed using Central Output Server not the Central Pro. Is there any trial version available for Central Pro? Any information on this will be greatly appreciated.
    Thanks,
    Anupam

  • Output Post Processor is unable to generate the PDF output

    Hi,
    We are using a custom RDF to generate PDF output using a RTF template built using XML. We are facing some problem while running this XML report. The report is completing with warning because of the following reason.
    "The concurrent manager has timed out waiting for the Output Post-processor to finish this request."
    The problem is not because of the temp space because we printed a sample XML report which is having thousands of pages.
    We have tried by changing the value of the profile option "Concurrent: OPP Process Timeout" to 5000, 10000 etc. But still the issue is not resolved.
    The report is giving the output if the number of rows are less. It's failing for bulk number of rows.
    It would be greatful for us if any one of you can give ideas on these...
    Thanks in advance...

    Hi Sairam
    there might be something wrong with your template,
    might be improper usage of Conditional and Looping statments,
    might be improper usage of nested tables,
    just check you template once again
    report should work for any set of data(small or large),

  • How to generate a PDF output using batch file in 10G

    Hello,
    I am using .bat file to generate a report PDF output. I have done this many times in 6i but for 10G I am unable to do the same.
    Can someone please look at the syntax below and let me know where I am going wrong.
    I understand that reports are different for 6i and 10G specially .rep file but I am sure we should be able to generate a PDF file using 10G. Please let me know.
    Thanks
    IQ
    Contents of .bat file follow
    ECHO Opening parameter form. Please do not close this window.
    C:\
    FOR /F "tokens=1 " %%I IN ('time /t') DO (SET _TIME=%%I)
    FOR /F "tokens=2 " %%I IN ('date /t') DO (SET _DATE=%%I)
    SET EXP_DATE=%_DATE:~6,4%%_DATE:~0,2%%_DATE:~3,2%_%_TIME:~0,2%%_TIME:~3,2%
    SET FILENAME=SEND_EMAIL_%EXP_DATE%_%USERNAME%.PDF
    CD C:\Users\Documents
    RWCONVERTER REPORT=C:\Users\Documents\send_email.rep USERID=scott/tiger@ORCL1 ORIENTATION=LANDSCAPE DESFORMAT=PDF DESTYPE=FILE
    DESNAME=C:\Users\\%FILENAME% PRINTJOB =NO

    Rwconverter is not used to run reports:
    rwconverter (Reports Converter) enables you to convert one or more report definitions or PL/SQL libraries from one storage format to another.
    I think you mean rwrun:
    rwrun (Reports Runtime) runs a report by starting its own in-process server (not to be confused with the default in-process Reports Server), which runs in the same JVM as the rwrun process.
    This bat file has to run on the server. There is no Reports installation on the client anymore.
    If you want to run a report from a client, you can make a bat file that calls the report url
    See: http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla002.htm#i634710

  • Pdf output from abap spool

    Would like to know how to use the spool at the backend to create the pdf output in webdynpro. Thanks

    Appreciate if anyone can help me on this. Thanks!!

  • How do I generate a PDF output report when the layout template is an Excel file in BI publisher 11.1.1.7

    This is what I did ..
    1. Create new report
    2. Create a report using an existing Data Model (browsed and picked a data model)
    3. How do you want to create your report? (clicked on Used Report Editor)
    4. Clicked Finished (then saved the report)
    5. Then it asked me to create layout (I chose Upload or Generate Layout and then browsed for an uploaded  my excel template with XDO_* column mappings to the data model)
         Template File = Excel Template, Locale = English (US)
    5.  Clicked on Upload
    6.  Then clicked on View Report on the top right, which opened up my report file name "my_report_layoutname.xls"  with sheet 1 (xdo mapped all fine) and a xdo_metadata sheet.
    I just wanted step 6 to be a pdf report of sheet 1.    How do I do that ?  Can't find the place where I can specify that.
    M. Jamal

    Thanks Daniel for pointing that out.  Though you answer is helpful but I am not sure if that is what I would want to do.
    The link you provide for csv says "For each report there's an _report.xdo file that contains the XML structure of the report... "   It suggests I modify the .xdo file for each report.  I currently have 16 reports.
    Does it mean I modify the .xdo file for all 16  and what happens if someone creates a 17th report ?
    Also, what if I run the same report using different input parameters will that change the xml structure for the report  and therefore will need me to modify the .xdo again ? (I think it should not change the xml structure so the answer should be "NO" to that, unless I change the structure of the report).
    Finally, the link you provide says after doing what it suggest  "Now log back into BI publisher and select the report. You should now be able to see that CSV is now an option."
    CSV should be an option where ? on what screen/page ?  Maybe PDF is already an option for me that I cant see because I do not know where that option is.
    I was hoping there would be something I could do on the xdo_metadata sheet (in the data constraints section or elsewhere) OR in BI Publisher itself as some property of the report.
    I will try out what you suggest any ways.
    M. Jamal

  • How to generate a .pdf output for a BLOB column?

    Hi friends,
    (Forms 6i)
    I have a .pdf into a blob column and I want to show that .pdf as my report output...
    Example-> The report only have this query:
    select myblob_ column
    from mytable
    the column in database has the .pdf ... but when I execute the report, it only appears some information when I put the item to show as Text... But obviously it's not the ofriginal pdf...
    If I try to put as OLE2 doesn't appear either anything and if I try to put it as an Image, it appears a message error.
    Any ideas?
    Thanks.
    Jose.

    Hello,
    How has been "uploaded" the PDF file in the BLOB ?
    Regards

  • BI Publisher Report not generating the PDF output.

    I have developed the rdf report and concurrent program with xml as output format. Based on xml output I have created pdf template and created Data Definition and Template in XML Publisher Administrator Responsibility. Now I am comming to the concurrent program and running the program. When repeating field have value, it was completing with warning status.
    The OPP log:
    Template code: CLATHAPTWRA1
    Template app: CLA
    Language: th
    Territory: 00
    Output type: PDF
    [12-4-24 12:37:05] [2063384:RT5906678] Output file was found but is zero sized - Deleted
    [12-4-24 12:37:05] [UNEXPECTED] [2063384:RT5906678] oracle.apps.fnd.cp.opp.PostProcessorException: XML Publisher output file not created
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:355)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    [12-4-24 12:37:05] [2063384:RT5906678] Completed post-processing actions for request 5906678.
    [12-4-24 13:44:10] [OPPServiceThread1] Post-processing request 5906689.
    [12-4-24 13:44:10] [2063384:RT5906689] Executing post-processing actions for request 5906689.
    [12-4-24 13:44:10] [2063384:RT5906689] Starting XML Publisher post-processing action.
    [12-4-24 13:44:10] [2063384:RT5906689]
    Kindly please help me for this issue.

    Thanks for your quick response.
    EBS version: 12.1.3
    BI Publisher Version: 5.6.3
    Data Base Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
    OS Version: Linux version 2.4.21-27.ELsmp
    Log file content.
    APAC Consulting Localizations: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    CLATHAPTWRA1 module: Thai WHT Return Attachment (PND1) Report
    Current system time is 24-APR-2012 14:07:10
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_TAX_ENTITY_ID='6528'
    P_ORG_ID='3536'
    P_PERIOD_FROM='Apr-12'
    P_TYPE='1'
    P_REGEN_SEQ='Y'
    P_COVER_PAGE='Y'
    P_PRINT_TOTAL='Y'
    P_DEBUG_SWITCH='Y'
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_THAILAND.AL32UTF8
    Enter Password:
    MSG-00000: CLATHAPTWRA1 : CLA Thai Vendor WHT Return Attachment (PND1) Report : Initial Version R12.1.1 v1.3 : 4-Jun-2010
    MSG-00070: cs_no=1, cs_line_no=1
    MSG-00071: CP_PAGE_TOTAL_BASE_AMT=200, CP_PAGE_TOTAL_WHT_AMT=34
    MSG-00072: CS_Base_Amt=200, CS_WHT_Amt=34
    MSG-00070: cs_no=1, cs_line_no=2
    MSG-00071: CP_PAGE_TOTAL_BASE_AMT=5310, CP_PAGE_TOTAL_WHT_AMT=156
    MSG-00072: CS_Base_Amt=5110, CS_WHT_Amt=122
    Report Builder: Release 10.1.2.3.0 - Production on Tue Apr 24 14:07:12 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    42257
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 5906709 on node APG012 at 24-APR-2012 14:07:16.
    Post-processing of request 5906709 failed at 24-APR-2012 14:14:16 with the error message:
    The concurrent manager has timed out waiting for the Output Post-processor to finish this request.
    Check that there are enough Output Post-processor service processes running.
    More information may be found in the service process logfile.
    ------------- 2) PRINT   -------------
    Not printing the output of this request because post-processing failed.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 24-APR-2012 14:14:16
    Thanks,
    Shujuan

  • How to run IDS without EWPS and generate the PDF output and show it on user browser?

    How can we run IDS from custom code with xml input. I want to achieve this without EWPS. The end results should be a PDF in either byte array or URL.

    The doc is here http://docs.oracle.com/cd/E22582_01/sdk_book.pdf.
    Depending of what language you are using you would need to look at examples in specific language.

  • How to generate PDF output from OracleXMLQuery

    I want to generate a PDF out put from XML by using JSP. For this i writen jsp and xsl. My jsp code works fine if i include html formated xsl and it displays as a text when i pass pdf formated xls.
    Here i am providing my jsp code.
    I don't want to use XSQL, please provide me information ASAP.
    <%@ page import = "java.sql.*,oracle.xml.sql.query.OracleXMLQuery" %>
    <% Connection conn = null;
    Statement stmt = null;
    ResultSet rset = null;
    String dbURL = "jdbc:oracle:thin:@localhost:1521:oracle9i";
    try{
         DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
         conn = DriverManager.getConnection(dbURL, "scott", "tiger");
         stmt = conn.createStatement ();
         rset = stmt.executeQuery ("SELECT * " +
                   "FROM scott.emp ORDER BY ename");
    OracleXMLQuery xq = new OracleXMLQuery(conn, rset); %>
    <% xq.setStyleSheet("emptablefo.xsl"); %>
    <%= xq.getXMLString() %>
    <% } catch (java.sql.SQLException e) {  %>
    SQL error: <%= e %>
    <% }
    finally {
    if (stmt != null) stmt.close();
    if (rset != null) rset.close();
    if (conn != null) conn.close();
    } %>
    Thanks,
    Ramana

    >
    if the report output format is xls this code is generating the pdf output
    >
    looks like pdf is default output in template definition in xml publisher resp
    so for r12 use FND_REQUEST.ADD_LAYOUT as example
    v_request_id   number;
    xml_layout boolean;
    xml_layout := FND_REQUEST.ADD_LAYOUT('XXCUSTOM','XXCONCNAME','en','00','EXCEL');
    v_request_id := fnd_request.submit_request(application => 'XXCUSTOM',
                                               program     => 'XXCONCNAME',
                                               description => NULL,
                                               start_time  => NULL,
                                               sub_request => FALSE,
                                               argument1   => p_date
                                               );also see http://andyblg.wordpress.com/2012/08/23/run-concurrent-program-twice-with-different-layout-r12/

  • Error in generating PDF output

    Whenever, I generate a PDF output, RH goes through the process but displays an error message stating that the file_name.pdf is not found. It did the same thing when I tried generating a PDF of a sample project as well. Any pointers on how to resolve this issue?

    I am just trying to see where there could be a problem. When you generate a PDF from RoboHelp a temporary Word file is automatically created in the background from which the PDF is created. What I was trying to get you to check was whether the problem is with the PDF creation or somewhere else. If you go through the same process to create a PDF but deselect the PDF creation option BUT select the Word creation option, a Word file will be created. If that works, it will have exactly the same fonts, styles as the PDF would if you can create it.
    I am also a bit unsure what you mean. It sounds like you are generating a Word file, then changing the fonts and styles in Word. Why not just make sure that your fonts, styles in RoboHelp are correct and then just map these to your Word template when creating the Word file. Peter Grainge has some excellent tips on this on his site. It is well worth a read.
    http://www.grainge.org/pages/authoring/printing/printing.htm
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Oracle Report, How to Display Polish Characters in a PDF Output

    Environment :
    Oracle Application Server version 10.1.2.0.2 on Red Hat 4 Enterprise (Kernel 2.6.9-42.0.3 , 32 bit) Oracle Database Version 10.2.0.3.0 Our character set of database is UTF8
    I have trouble to display polish characters in Reports Output. We develop on Windows XP machines. I can see the Polish Caharacters in the Reports Builder using several fonts (arial, arial unicode, Times new roman, verdana...) during design time or when running with the paper layout. But when the report deployed to application server running on the linux, the polish characters are replaced by symbols.
    Even under Windows, when I select 'generate to a PDF' file option, the characters are not displayed correctly (When I open the generated PDF file with Acrobat reader and go to Document Properties / Fonts, I see the Fonts are always replaced with Adobe Sans MM)
    Using the Forms Applications running on the same application server we have no trouble dealing/displaying with the characters (Ąą ĆćĘę Ł ł ŃńÓóŚ ś Ź ź Ż ż ß Đ đ € )
    NLS_LANG setting is AMERICAN_AMERICA.UTF8 on the Linux Box and AMERICAN_AMERICA.WE8MSWIN1250 is on the Development machines. (have tried a number of different NLS_LANG settings on the development box as well with no luck).
    Any direction would be appreciated.

    Hi,
    You have several different approaches to fix this problem. First of all, you would be able to generate the PDF output with Font Subsetting setup and be able to see the Polish characters correctly when running the output with destype=cache&desformat=pdf. The following metalink documents would guide you with this setup :
    Note.207711.1 "How to Use Font Subsetting in Reports 9i and 10g for PDF Output"
    As at design time you use many different Windows specific fonts, I also advice you to check the following document :
    Note.356221.1 "A Practical Methodology on Porting Reports from Windows to Unix with Different Fonts"
    Once the PDF output is generated properly with correct characters, then if you need to use "destype=printer" for direct print, rather than "destype=cache" to display the output in browser, then you can use the "PDFPrint" pluggable destination, which is located in :
    http://www.oracle.com/technology/products/reports/pluginxchange/index.html
    Regards,
    -Bulent

  • The PDF output is not always displayed!

    Hello
    I'm tryin' to build some PDF outputs and I have the next problem: I have 20 reports to make it on PDF form (viewed with the Acrobat plugin from IE 5.5 or higher) and when I try to see what was builded the PDF it's not always displayed ( mean it's not readed by the plugin). I generate the PDF output from a servlet (which also set the servlet output context as 'application/pdf') and, if the output it's generated too fast (meanning the report information was too small), the Acrobat plugin doesn't catch him ! I think that I have to slow down the servlet response to allow the plugin complete loading, but I don't khow how to do this (and, ofcourse, if it's possible).
    Please, I need a solution. !
    Thanx!

    Hi,
    setting content type as application/pdf is quite enough for the plugin to catch
    I generate the PDF output from a servlet
    (which also set the servlet output context as
    'application/pdf') and, if the output it's generated
    too fast (meanning the report information was too
    small), the Acrobat plugin doesn't catch him !but i think IE has a problem catching this, cause i also once ran thro this kind of problem
    I think that I have to slow down the servlet response to allow
    the plugin complete loading, but I don't khow how to
    do this (and, ofcourse, if it's possible). Yes it is possible.... if ur sevrvlet ehich is displaying pdf is http://host/PdfServert
    just make in such a way that the extention is pdf..
    http://host/PdfServert?xy=z.pdf or register the servlet with .pdf ext
    http://host/PdfServert.pdf...
    belive it really worked perfect for me..
    regards,
    Arun.N

  • Italics in PDF output issue

    I am developing a report in Reports 6i on linux. The report generates a PDF output file, which is opened using Acrobat 7.0. I have made text italic at several points in the report, and the italic text shows up correctly in the previewer. However, when viewing the output in Acrobat, the italics slant to the left instead of the right (no matter what font I use). If I copy the italic text from the PDF and paste it into MS Word, it shows up correctly. Does anyone have an idea as to why Acrobat would display the italics incorrectly (and what can I do about it)? Thanks.

    Hello, I am having the same issue on IBM AIX. Italic text is slanted to the left instead of the right and all the config I tried with the fonts setup do not work.
    1) I installed the fonts on the report server.
    2) I followed the Oracle doc on http://download-uk.oracle.com/docs/cd/B13597_05/bf.904/b13673/pbr_font.htm to no avail.
    Hope someone has found a solution.
    Thanks.

Maybe you are looking for

  • Doesn't open iPod in my computer.

    Hi. My boyfriend bought and 5th generation 30GB iPod and sync it in his PC computer. Later he tried to connect it to my computer (powerbook G4) but the iTunes doesn't want to open it. The program said that this iPod is sync to another library, but ne

  • Redaction error: Bad parameter

    I am using Acrobat Professional 8.1.2 on Windows XP. I have spent about 90 minutes redacting an 83-page document. When I ran the "Apply Redaction" command, the progress bar showed the program going through the pages till 83. But it gave an error mess

  • SQL express as Access back end (simple)

    Which bit of SQL 2012 is best for working around the 2GB limit on Access database file sizes? I have a very simple database with one very big table which is 1.8GB. CarolChi

  • Build Collada DOM 2.2 in X-Code and got _unZOpen, Close a link errors

    I am trying to build Collada DOM 2.2 in XCode and getting following link error. Collada DOM is providing minizip (library) which contains zip.h and unzip.h, which is called after calling mac libraries; Is any way I can specify in XCode project build

  • Update GlobalAddressList on domain workstations

    Hello, Most of my domain users sees an old GAL on their Outlook clients. Thus, Whenever I add a new user/mailbox, most of the users can't see the new user's email address. I'm using Exchange 2010 Version: 14.03.0158.001 [PS] C:\Windows\system32>Get-G