Using PDF in a report

Hi All,
I am working on a report where I need to use PDF as an output option inplace of the ALV. So can you please tell me how can I do this.
Thansk,
Rajeev

HEllo
Check these two links
should Solve your problem
Transfer ITAB contents to PDF format
https://wiki.sdn.sap.com/wiki/display/ABAP/PDFDownlaodByCreatingSpool+Request
Thanks

Similar Messages

  • Generation of report in landscape mode using PDF template

    Hi,
    I am creating a report using pdf template, I have used the repeating group i.e I have used the code <?rep_field="BODY_START"?> and <?rep_field="BODY_END"?> as the repeating area and with the field which needs to be repeated i have used the code <?rep_field="T1_G1"?> in order to display data in the loop.
    But finally when the report is displayed, the report acts strange ...sometimes it fails to open says that an internal file read error occured , whereas if I remove the <?rep_field="T1_G1"?> code it works fine , other times if at all it displays the report, the values in the repeating field operlap each other and they are vertically oriented wheras for landscape mode it should be vertical, I tried setting the properties and locking the fileds but all in vain.
    Kindly help ASAP!!
    Thankz
    -Gaurav

    I have had the same problem for a year. I never got my TAR answered so I tried again. I am waiting...again. Portrait works fine for me. I am using it to generate po's with custom headers. The only part that does not work for me is the total appears on every page, not just the last one. If I get an answer, I will let you know...

  • Printing out report using pdf

    I am using report 6i.. i have set the layout parameter to landscape for all three sections, header,main,trailer
    when I put the report on the web,using pdf, i have to use page setup to have the report print our in a landscape..
    I thought that the report would pass along the parameter of landscape to Acrobat??
    Any suggestions would be grealty appreciated.
    Thanks
    Ellery

    This issue is known and a bug has been logged. Please contact Oracle support for information on this.
    Thanks,
    Siva

  • Report using PDF

    i want to know whether Acrobat Reader which displays the files using PDF extension is included as a part of Internet Explorer or does Acrobat reader needs t obe installed separately. Please help in solving my doubt.

    Hi Jatin,
    You need to download Acrobat Reader separately
    http://www.adobe.com/products/acrobat/readstep2.html
    Navneet.

  • How to show custom header in pdf generated from report

    Hi,
    I  have created a report that is used to display Leave record of employees in an organization. After which it creates a pdf file and send it to respective HOD.
    In this case I am trimming generated output and sendinf only required fields to the pdf.
    When pdf is getting generated it shows program name as Title of that report.
    I want to change this header to my own header along with some variable but not sure how I can do so.
    I have also tried TOP-OF_PAGE but problem in this case is that I am still getting program name along with it.
    To generate pdf I have used function :
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid   = spoolid
          no_dialog     = ' '
        importing
          pdf_bytecount = l_no_of_bytes
          pdf_spoolid   = l_pdf_spoolid
          btc_jobname   = l_jobname
          btc_jobcount  = l_jobcount
        tables
          pdf           = l_pdfdata.
    Then I had converted this pdf to Binary
    call function 'QCE1_CONVERT'
        tables
          t_source_tab         = l_pdfdata
          t_target_tab         = lit_record
        exceptions
          convert_not_possible = 1
          others               = 2.
    Then I had created subject matter and used FM : SO_NEW_DOCUMENT_ATT_SEND_API1: to send mail to respective HODs.
    I tried dubbing it but couldn't get any variable which is holding program name.
    Sorry for putting in wrong forum.
    so Closing it from this forum and raising the same in ABAp-General forum.
    How to change header of pdf in generated report
    Edited by: gaur.yagyesh on Apr 16, 2010 4:03 PM

    To make it more clear to my question.
    I am using sun one webserver 6.0 sp6.
    I need to enable custom header on the webserver so that any request having a custom http header coming to webserver should be captured by the webserver.
    Thanks,

  • Print to pdf option in report

    I am working on a drill-down report...
    So I have a Summary and a Details report...
    Now i need a way to select multiple records in the Summary report so i can print the details for those entries...
    I don't want to use the default "save as pdf" option...
    It would be nice to add a link or a button...
    Is there any way I can do this...
    Dhananjay Rele

    Hi Dhananjay,
    According to your description, you have a drilldown report where you have different summary report and entries for toggling down to see detail reports. Now you want to select different summary reports, collect detail reports of those selected summary reports
    and put them into a PDF file by using a link or button, right?
    In Reporting Service, we cannot collect part of the report into a PDF by only using a link or button directly.  What we can do is using parameter to filter multiple records, and using “Go to a report” action and passing this parameter to another report.
    Then show the detail information on this report based on different summary. At last export this detail report to a PDF file. We have tested this case in our local environment. Here are steps and screenshots for your reference:
    Go to your summary report. Create a parameter for summary (select allow multiple values).
    Create a filter in dataset.
    Create a new Textbox, type “View Detail” in it. Right click on this Textbox, select Textbox Properties.
    Select Action tab. In select a report from the list, select your detail report. Add the summary parameter in Use these parameters to run the report.
    Go your detail report. It supposes to have a parameter for drilldown already, now you just need to select allow multiple values in Parameter Properties.
    Also create a filter in your dataset (use the parameter you have created for drilldown).
    Save and preview.
    Select summary in dropdown list and click “View Report”.
    Click view Detail.
    Export report into PDF file.
    Reference:
    Using Parameters to Control Report Data
    Add a Filter to a Dataset
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou
      

  • JNDI error while generating pdf from crystal reports in java

    Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
    1. Server Name      = testdb
    2. Database Name  = testdb
    3. User
    4. Password
    I am using CR XI.
    In CRConfig.xml i had given following details.
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
         <JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
         <JDBCUserName>user</JDBCUserName>
         <JNDIURL>password</JNDIURL>
         <JNDIConnectionFactory></JNDIConnectionFactory>
         <JNDIInitContext>/</JNDIInitContext>
         <JNDIUserName>testdb</JNDIUserName>
         <GenericJDBCDriver>
              <Default>
                   <ServerType>UNKNOWN</ServerType>
                   <QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
                   <StoredProcType>Standard</StoredProcType>
                   <LogonStyle>Standard</LogonStyle>
              </Default>
         </GenericJDBCDriver>
    </JDBC>
    When i am calling from java as standalone, i am getting following error.
    JRCAgent1 detected an exception: Error finding JNDI name (testdb)
    at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source)      at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
    Can anyone let me know where is the problem?

    Actually, the question boils down to; does the framework support the fonts?
    I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
    I believe if you use the code below, it will list fonts available to the framework:
    foreach(FontFamily ff in FontFamily.Families)
    System.Diagnostics.Debug.WriteLine(ff.Name);
    For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
    Ludek

  • Issues in exporting SSRS report to PDF format in Report Server - Blank spaces are deleted

    Hi Gurus,
    I have a problem in exporting SSRS report to PDF format. It deletes all the blank spaces when I use bullet in a Text box and try to export to PDF formt in Report Server . For example
    •             Project submitted to the TRC
    Result in PDF format:
         • ProjectsubmittedtotheTRC
    I also noted that when I try to export to PDF in Visual Stuio 2005 (Business Intelligence development studio), it does not delete any blank spaces and shows the correct aligned Data in PDF format.
    Please help me as it is frustrating a lot
    I would highly appreciate for your quick response 

    Was there ever a solution found for this as i have the same issue.
    When bullet point is entered in a field all the spaces are removed when exported to PDF
    i tried exporting to excel and it does not remove spaces, however this is no use to me as it needs to be in PDF
    Using IE 7 (Don't think the browser has anything to do with it as this happened via a subscription)
    Didn't know SSRS had specific Service Packs, i though they came as patches to SQL Server (SQL Server is on Service Pack 3)
    This should be easy to replicate all you need to do is copy text containing a bullet point into a sql server database field and then add this field to a report export to pdf and the spaces are gone
    Thanks in advance,
    Mark Brunton
    brunzire

  • PDF Attachments in Report output.

    Hi Gurus,
    I have a Smartform Print program. My Business needs it the Smart form output is send to E-mail as PDF attachment.
    But the exact requirement is ,
    They need it a summury report before sending to E-mail.
    In the report output The Smart form appears as an PDF atachment. If he clicks that attachment user can able to open and see the attachment. And beside the attachment there is one check box. If he checks the check box and click on E-mail button, then only the PDF should goes to E-mail as PDF attachment.
    Here my question how we can place the PDF attachments in Report output.
    If any one have suugestion or samle code send it to me.
    Thanks and Regards
    Srihari.

    Hi,
    If you have to display the pdf attachment in the report output, you may try using CL_GUI_PDFVIEWER. Have a look at this code sample as to how to implement it
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d8bb0975-0e01-0010-2192-bd1fffd80cae]
    Regards,
    Vikranth

  • XSTRING with Binary of PDF - display R3 report in portal

    Hello,
    We have a requirement to show an R/3 report on portal as PDF. User will then be able to Print/Save the same.
    I have browsed through different posts on SDN and
    The idea I have is:
    1. Print the report to spool (Backend).
    2. Convert the spool to pdf (Backend).
    3. Create a FM (in the backend) that exports an xstring with the binary of the pdf (of the report)
    4. Using webdynpro for Java, create pdf form based on binary xstring.
    5. Render the pdf to portal and display it in portal.
    I have a couple of questions regarding this approach:
    1. What exactly does the function module needs to export (what format and type should be used)?
    2. How should the data being sent from the backend be handled in the Webdynpro Code? (What Context attribute should be created and what type should be used?)
    Please share your experience if some one had developed a similar application. Any sample code would be really appreciated.
    Thanks for Reading the post and for your time.
    Regards,
    Raj

    Hi Raj,
    Thanks for the link, i followed the procedure the way it mentioned in the link, but i am getting the below error as nullpointer exception, i checked everything but still i am getting the error.
    i can see one thing in webdynpro java code , i am getting warning message for this " wdwebresource"
    as deprecaiated, what is this meant?
    thanks,
    vinay
    java.lang.NullPointerException
         at com.vin.view.PdfView.wdDoInit(PdfView.java:115)
         at com.vin.view.wdp.InternalPdfView.wdDoInit(InternalPdfView.java:137)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:207)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

  • PDF format of Reports (Very urgent)

    I am using developer 6i forms & report server to run my application on the web.
    My forms r working quite fine. My reports when I run my reports in HTML/HTMLCSS format the output comes well.
    But when I set FORMS60_REPFORMAT=PDF in registry to get the output of the reports in PDF format, the browser opens acrobat reader, but does not open the PDF file and an error comes 'Error while opening the document'.
    But in the temporary folder of reports server the output of the desired report is created perfectly well. When i open that file directly by giving the path of the folder separately the browser shows that document very well.
    I have tried IE4, IE5, IE6.
    When using Netscape 4.7 when report's URL is sent to browser, the browser shows save as window instead of directly opeing the file.
    Please help me out.
    Thanks

    Maybe this solution from Metalink will help you:
    fact: Oracle Reports Developer 6
    fact: Oracle Reports Services
    fact: Microsoft Internet Explorer
    fact: Acrobat Reader 4.0
    symptom: Running Report with Desformat=PDF and Paramform=HTML Returns Blank Page In Browser.
    cause: Problem documented in <Bug:784236> WHEN PARAMFORM = YES AND DESFORMAT=PDF WEB REPORT SHOW BLANK PAGE WITH IE
    and <Bug:761674> PDF STREAM TO IE DOES NOT WORK WHEN PARAMETER FORM ENABLED
    Problem closed as 3rd Party product problem
    fix:
    Use the following workaround
    1. Click on the Report name and bring up the property palette to show all of the properties for the whole report.
    2. Under Report Escapes->Before Form Value, change form method from post to get.
    This will then do it dynamically for the report without having to save a static paramform.

  • Trying to generate a pdf with jasper reports

    Fellas,
    i hav trying to generate a pdf with jasper reports, but i cant. I create a file .jasper with iReports. This is my code:
    emite.java
    package utilitarios;
    //import net.sf.jasperreports
    import net.sf.jasperreports.engine.*;
    import net.sf.jasperreports.view.JasperViewer;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    import java.util.HashMap;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class emitebl {
    private static Connection getConnection( ) throws ClassNotFoundException, SQLException{
    String driver = "org.postgresql.Driver";
    String url = "jdbc:postgresql://localhost/sist";
    String user = "usuario";
    String password = "";
    Class.forName(driver);
    Connection con = DriverManager.getConnection( url, user, password );
    return con;
    public void geraRelatorio( ) throws JRException, Exception{
    Connection con = getConnection( );
    Statement stm = con.createStatement( );
    String query = "SELECT * FROM emissaobl WHERE id=4";
    ResultSet rs = stm.executeQuery(query);
    JRResultSetDataSource jrRS = new JRResultSetDataSource(rs);
    Map parameters = new HashMap();
    JasperFillManager.fillReportToFile("emitebl.jasper",parameters,jrRS);
    JasperExportManager.exportReportToPdfFile("emitebl.jrprint");
    JasperViewer.viewReport("emissao_bl.pdf",false);
    } emissao.jsp:
    <%@ page import="utilitarios.*" %>
    <%
    new emitebl().geraRelatorio();
    %>Following the error message exception:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: emitebl.jasper
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:846)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:76)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
    root cause
    net.sf.jasperreports.engine.JRException: emitebl.jasper
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:73)
         net.sf.jasperreports.engine.JasperFillManager.fillReportToFile(JasperFillManager.java:270)
         utilitarios.emitebl.geraRelatorio(emitebl.java:37)
         org.apache.jsp.emissaobl.exportapdf_jsp._jspService(exportapdf_jsp.java:54)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:99)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:325)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)where i hav to put the .jasper file?

    Hi,
    If you have placed your .jrxml file say in C:\reports, and when you use compileReportToFile(jrxmlFileName), then the jasper file will be created in the same directory C:\report with the same file name with .jasper extension. If you want a pdf report then specify the same location and file name with '.pdf' extension as destination .
    Hope this helps

  • PDF Merge - merged report ages are not continuous but starting in new page.

    Hi,
    we tried using - FOUtility.mergeFOs(java.io.Reader[] foReaders, java.util.Properties prop) to merge and create a single PDF file but its not working as expected.
    Issue:
    The space of output pdf page 1 is discarded and the second merged file always starting in new page.
    Input:
    Report1 having 1 page
    Report2 having 2 pages - (another description )
    Expected Output PDF:
    Page 1 ( report1) , Page 1( report 2's page1 and continues ) to page 2(report 2)
    Actual Output PDF :
    Page 1 ( report 1), Page 2( report 2's page1), Page 3 ( report 2's page 2)
    Issue:
    The space of output pdf page 1 is discarded and the second merged file always starting in new page.
    Anyone faced this issue before, if yes, how did you solve it ?
    Thanks,
    Ayaps

    The output is a chm file. I am compiling as MS HTML Help
    under RoboHelp x5.
    After doing a little more trail work, I have noticed some
    other "strange" happenings. I can get the porjects to merge, but
    from the TOC all of the articles open in a new window. From the
    index, however, they all open as they should--in the topic frame
    from the main window. Not sure why that is.
    For a brief synopsis, here is what I have at this point:
    A "master" project file that includes:
    One new project for a section that is
    complete.
    One project from the existing documentation.
    I am not sure if I need to have the window definitions for
    each project would impact this or not.
    Through trial and error, I have narrowed down the problem to
    the original documentation project. If I remove it from the TOC and
    generate the project, the new topics display as they should.
    I will keep testing and see what I came come up with. If you
    have any idea as to what I might change in the original
    documentation to get it to work just let me know.
    Thanks for all your help!
    Aaron

  • Secure PDF from Crystal Reports

    What's the best way to secure a .pdf from Crystal Reports? I'm using reportdocument.exporttostream(ExportFormatType.PortableDocFormat) in vb.net(VS2005) to create an IO.MemoryStream which is then sent via email. I'd like to add a password to this file before it's sent by email.....is it possible?

    At least one of the 3rd-party Crystal report Desktop Scheduling tools listed at: http://www.kenhamady.com/bookmarks.html
    provides this functionality.  It even allows you to dynamically control the password via a field/formula inside the Crystal report. It can also take care of the emailing part.  You can call and request the processing from your own application (via a command line API).

  • Create PDF from Crystal Reports

    Hi,
    We are using Crystal Reports XI with Adobe Acrobat Professional 8. When we create a pdf from crystal reports its giving crw32.exe encountered problem. Reinstall both the softwares are not useful. Adobe support professional says problem could be in crystal reports.
    We are doing the following steps to create a pdf.
    Crystal Reports->File->Print->Select Adobe PDF....
    So please let me know the solutions for this.
    Shivkumar.
    Edited by: Shiv Kumar on Oct 4, 2008 11:53 AM

    Hi Shiv
    As I said, only TTF fonts are supported with the PDF format otherwise it will give an error message as "Failed to export". Enhancement request for the same has been raised.It might get fixed in the coming service pack.
    Try exporting the report which is using only ttf.
    Regards
    Asha

Maybe you are looking for