How to generate pdf report in swing

Hello,
can you help me?
i want to generate pdf report in my swing based project but i don't know about any idea of this report generating
procedure . Please help me.

shesh_07 wrote:
Hello,
can you help me?Can you help yourself? Two suggestions I have for posting to a technical forum are:
1) Add an upper case letter to the start of each sentence. This helps the reader to scan the text quickly, looking for the important parts. It also helps to dispel the impression that the writer is just lazy.
2) Try to do some research on your own, summarise it and state any conclusions you have reached. Ask a specific question and generally, try not to sound so pathetic.
i want to generate pdf report ..Search for [Java PDF|http://lmgtfy.com/?q=java+pdf] *(<- link).*
Figure how to generate a PDF report in a class used from the command line, then..
..in my swing based project .....wrap a GUI around that class. For details on the latter, see the [Swing tutorial|http://java.sun.com/docs/books/tutorial/uiswing/] *(<- link).*
..but i don't know about any idea of this report generating
procedure . Please help me.Please help yourself.

Similar Messages

  • How to generate PDF report directly instead of RPT report by using JRC ?

    Hi,
    Good Day !
    How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
    My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
    BUT
    i want it direct to generate a PDF report, not a RPT report.
    The code like below (2 java files)
    ClassA.java
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(XXX, 0);  
    ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
    paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());        
    new ReportViewerFrame(reportClientDoc);
    // End of ClassA.java
    // Begin ReportViewerFrame.java
    public class ReportViewerFrame extends JFrame
           //Initial window frame properties.
         private final int XPOS = 80;
         private final int YPOS = 60;
         private final int WIDTH = 760;
         private final int HEIGHT = 550;
         private ReportViewerBean reportViewer = new ReportViewerBean();     
         private ReportClientDocument reportClientDoc = new ReportClientDocument();     
         public ReportViewerFrame(ReportClientDocument reportClientDoc) throws    Exception
              //Initialize frame properties.
              this.setResizable(true);
              this.setLocation(XPOS, YPOS);
              this.setSize(WIDTH, HEIGHT);
              this.setTitle("Crystal Report Java Viewer");
              //Add GUI components to the frame including the ReportViewerBean.
              addComponents();
              //Add GUI listeners to the frame.
              addListeners();
              //Set the report that the ReportViewerBean will display.
              this.reportClientDoc = reportClientDoc;
              reportViewer.setReportSource(reportClientDoc.getReportSource());     
              reportViewer.init();
              reportViewer.start();
              //Display the frame.
              this.setVisible(true);     
    How to set the export option to PDF base on existing code ?
    Where can i download this package/jar ?
    regards

    Please find a console app that you can extend it to a JFrame app by importing the relevant swing package:
    //Crystal Java Reporting Component (JRC) imports.
    import com.crystaldecisions.reports.sdk.*;
    import com.crystaldecisions.sdk.occa.report.lib.*;
    import com.crystaldecisions.sdk.occa.report.exportoptions.*;
    //Java imports.
    import java.io.*;
    public class ExportReport {
         static final String REPORT_NAME = "ExportReport.rpt";
         static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
         public static void main(String[] args) {
              try {
                   //Open report.               
                   ReportClientDocument reportClientDoc = new ReportClientDocument();               
                   reportClientDoc.open(REPORT_NAME, 0);
                   //NOTE: If parameters or database login credentials are required, they need to be set before.
                   //calling the export() method of the PrintOutputController.
                   //Export report and obtain an input stream that can be written to disk.
                   //See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
                   //possible with the JRC.
                   ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
                   //Release report.
                   reportClientDoc.close();
                   //Use the Java I/O libraries to write the exported content to the file system.
                   byte byteArray[] = new byte[byteArrayInputStream.available()];
                   //Create a new file that will contain the exported result.
                   File file = new File(EXPORT_FILE);
                   FileOutputStream fileOutputStream = new FileOutputStream(file);
                   ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
                   int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
                   byteArrayOutputStream.write(byteArray, 0, x);
                   byteArrayOutputStream.writeTo(fileOutputStream);
                   //Close streams.
                   byteArrayInputStream.close();
                   byteArrayOutputStream.close();
                   fileOutputStream.close();
                   System.out.println("Successfully exported report to " + EXPORT_FILE);
              catch(ReportSDKException ex) {
                   ex.printStackTrace();
              catch(Exception ex) {
                   ex.printStackTrace();
    As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
    Cheers

  • How to generate pdf report and automatically save in the folder?

    Hi all,
    I want to ask, how to generate pdf report and automatically save in the folder?
    Actually, if i run pdf report and show to screen. Now do not need to show to the screen but save the pdf file in the folder.
    If anyone know, please share to me.
    Thanks and regards,
    Iwan

    Hi all,
    Thanks for the reply.
    when i run pdf report, and i got this URL to show the pdf report.
    http://190.180.55.73:7778/reports/rwservlet/getjobid3828?server=sitcnrepsvr
    Do any body know where can i get this pdf report that i have run in application server report folder ?
    Thanks and regards,
    Iwan

  • How to generate PDF report in Sharepoint Office 365

    Hi,
    We are building a custom webpart using sandbox solution and would like to generate report in PDF. Anyone have a clue?
    Thanks in advance ;
    Cheers, IXI solution

    You can use SSRS reports which can be saved in any format. Refer to the following post for more information
    http://sharepoint.stackexchange.com/questions/86100/best-way-to-generate-pdf-report
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/7a1b7d4d-c55d-4621-88d2-619a1ab23448/export-sharepoint-chartsreports-to-pdf?forum=sharepointadminprevious
    Alternatively, you could also try this solution from CodePlex
    http://pdfreport.codeplex.com/
    --Cheers

  • How to generate a report in swing

    Hi
    I Would like to generate a report in the following formate. Could you please help me By providing some Sample code.
              BOSCO COLLEGE LIBRARY
                Book Details
    BookID | Book Name |  Book Author| Refrence/Non Reference
    ---------------------------------------------------------here the details should come from the Database.
    Thank you very much

    hi
    i tried out your idea, It is working well But here with me the Problem is I am not able to align the Page with in the A4 Sheet and then Roport Heading is shown at the CENTER on the Screen But while Printing at the Papar it is going to the Top Right Corner. Here i am posting My code please check it and give me Solution for it
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.util.Vector;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.io.*;
    import java.awt.event.*;
    import java.awt.print.*;
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.table.DefaultTableModel;
    public class Report extends JFrame implements Printable, ActionListener{
         JPanel headerPanel,titlePanel,dataPanel,btnPanel,masterPanel;
         String headerStr,titleStr;
         JTable table;
         DefaultTableModel dtm;
         Vector dataVector,temp,colVec;
         JScrollPane scrollPane;
         JLabel headerLabel,titleLabel;
         private JButton btnprint, btncancel;
         private Connection con;
         private Statement st;
         // Founction FOR PRINTING
           public int print(Graphics g, PageFormat pf, int page) throws PrinterException {
            if (page > 0) { /* We have only one page, and 'page' is zero-based */
                return NO_SUCH_PAGE;
            /* User (0,0) is typically outside the imageable area, so we must
             * translate by the X and Y values in the PageFormat to avoid clipping
            Graphics2D g2d = (Graphics2D)g;
            g2d.translate(pf.getImageableX(), pf.getImageableY());
            /* Now print the window and its visible contents */
            masterPanel.printAll(g);
            /* tell the caller that this page is part of the printed document */
            return PAGE_EXISTS;
         public Report(Connection con){
              headerPanel=new JPanel();
              headerPanel.setLayout(new BorderLayout());
              titlePanel=new JPanel();
              titlePanel.setLayout(new BorderLayout());
              dataPanel=new JPanel();
              dataPanel.setLayout(new BorderLayout());
              //you can take dynamic values here..
              headerStr="DON BOSCO SCHOOL LIBRARY";
              this.setSize(750,500);
              titleStr="Book Details";
              //Creating button for print
              btnprint= new JButton("Print");
              btnprint.addActionListener(this);
              btncancel = new JButton("Cancel");
              btncancel.addActionListener(this);
              btnPanel = new JPanel();
              btnPanel.add(btnprint);
              btnPanel.add(btncancel);
              //getContentPane().add(btnPanel,BorderLayout.SOUTH);
              colVec=new Vector();
              dataVector=new Vector();
              headerLabel=new JLabel(headerStr);
              headerLabel.setHorizontalAlignment(SwingConstants.CENTER);
              titleLabel=new JLabel(titleStr);
              titleLabel.setHorizontalAlignment(SwingConstants.CENTER);
              headerPanel.add(headerLabel,BorderLayout.NORTH);
              headerPanel.add(titleLabel,BorderLayout.CENTER);
              table=new JTable();
              //table=new JTable();
              //write your code to get details from database and return in vector if possible
              //I am giving static values here it here
              try
                   st=con.createStatement();
                   ResultSet rs=st.executeQuery("Select * from Books");
                   ResultSetMetaData md= rs.getMetaData();
                   int columns =md.getColumnCount();
                   String booktblheading[]={"BOOK ID","BOOK NAME","AUTHOR","REFERENCE","CATEGORY"};
                   for(int i=1; i<= booktblheading.length;i++)
                        colVec.addElement(booktblheading[i-1]);
                   while(rs.next())
                        Vector row = new Vector(columns);
                        for(int i=1;i<=columns;i++)
                             row.addElement(rs.getObject(i));
                        dataVector.addElement(row);
                   ((DefaultTableModel)table.getModel()).setDataVector(dataVector,colVec);
                   rs.close();
                   st.close();
              catch(Exception e)
                   System.out.println(e);
              /**dtm=new DefaultTableModel();
              dtm.setDataVector(dataVector,colVec);*/
              table.setShowHorizontalLines(false);
              table.setEnabled(false);
              table.getTableHeader().setBackground(Color.WHITE);
              scrollPane=new JScrollPane(table);
              scrollPane.setAutoscrolls(false);
              masterPanel = new JPanel();
              dataPanel.add(scrollPane,BorderLayout.CENTER);
              dataPanel.setPreferredSize(scrollPane.getPreferredSize());
              dataPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK));
              getContentPane().setPreferredSize(new Dimension(750,500));
              getContentPane().setLayout(new BorderLayout());
              headerPanel.setBackground(Color.WHITE);
              dataPanel.setBackground(Color.WHITE);
              masterPanel.setLayout(new BorderLayout());
              masterPanel.add(headerPanel,BorderLayout.NORTH);
              masterPanel.add(dataPanel,BorderLayout.CENTER);
              getContentPane().add(masterPanel,BorderLayout.CENTER);
              //getContentPane().setBackground(Color.WHITE);
              getContentPane().add(btnPanel,BorderLayout.SOUTH);
              pack();
              setVisible(true);
    public void actionPerformed(ActionEvent ae)
         Object obj = ae.getSource();
         if(obj==btnprint)
              PrinterJob job = PrinterJob.getPrinterJob();
                  job.setPrintable(this);
                  boolean ok = job.printDialog();
                  if (ok)
                      try {
                           job.print();
                   catch (PrinterException ex)
                            /* The job did not successfully complete */
         else if(obj== btncancel)
              setVisible (false);
              dispose();
    }Thank you very much

  • Generate Pdf Report using OAF

    Hi,
    I need to generate Pdf Report using OAF.. I dont know how to generate Pdf reports..
    Can anyone help me to do it using OAF..
    Please tell me what steps i need to use and any jar files required for doing it...
    Thanks,
    Babu

    Hi Guys ,
    I found the classes the DocumentHelper class is found in
    oracle.apps.xdo.oa.common.DocumentHelper
    The properties class was in java.util.properties
    I compiled the code and when i run it i get the following exception
    oracle.apps.fnd.framework.OAException: Application: FND, Message Name: SYSTEM-ERROR. Tokens: MESSAGE = Io exception: Got minus one from a read call; (Could not lookup message because there is no database connection)
         at oracle.apps.fnd.framework.server.OAExceptionUtils.processAOLJErrorStack(OAExceptionUtils.java:988)
         at oracle.apps.fnd.framework.server.OAUtility.getWebAppsContext(OAUtility.java:352)
         at oracle.apps.fnd.framework.CreateIcxSession.getEncryptedSessId(CreateIcxSession.java:144)
         at oracle.apps.fnd.framework.CreateIcxSession.createSession(CreateIcxSession.java:80)
         at runregion.jspService(runregion.jsp:96)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
    I get the exception at this point in the code :
    String dataDefCode = "DTFEMP" ;
    String dataDefApp = "CIE";
    DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(), dataDefApp,dataDefCode );
    Thanks
    Tom...

  • How to generate a report direct in PDF with oracle developer 6i

    hi all
    Please help me about this issue.
    THAT How to generate a report directly in PDF using oracle developer 6i.
    Regards
    Yousuf Ahmed Siddiqui

    Hi,
    You can create the Report directly in PDF by setting some of the Report Parameters
    i.e. DESTYPE, DESNAME AND DESFORMAT as follows before calling the Report.
    DECLARE
         PL_ID          PARAMLIST;
         PL_NAME     VARCHAR2(10) := 'param_list';
    BEGIN     
         PL_ID := GET_PARAMETER_LIST (PL_NAME);
         IF NOT ID_NULL (PL_ID) THEN
                  Destroy_Parameter_List(PL_ID);
         END IF;
         PL_ID := Create_Parameter_List(PL_NAME);
         Add_Parameter (PL_ID, 'DESTYPE', TEXT_PARAMETER, 'FILE');
         Add_Parameter (PL_ID, 'DESNAME', TEXT_PARAMETER, 'c:\test.pdf');
         Add_Parameter (PL_ID, 'DESFORMAT', TEXT_PARAMETER, 'PDF');
            RUN_PRODUCT (REPORTS, 'REPORT_NAME', ASYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
    END;Hope this helps.
    Best Regards
    Arif Khadas
    Edited by: Arif Khadas on Apr 22, 2010 9:24 AM

  • How to generate a report in pdf from a stored proc

    Hi, i need guidance on how to generate a report in pdf from an oracle stored proc.
    The environment is oracle 10gas + 10gdb.
    On a specific event, a PL/SQL stored procedure is called to do some processing and at the end of the processing to generate report which has to be sent to the printer (and optionally previewed by the user).
    Can anyone assist me with this?

    Hi ,
    One 'simple' way is by using the DBMS_SCHEDULER db package and the procedure CREATE_JOB(....) using as job_type the value 'EXECUTABLE'...
    Read for further info in 'PL/SQL Packages and Types Reference'.
    If you have access to OEM ... you can configure this there using wizard.....
    Other way is to use the External Procedure call capabiblity of Oracle DB Server...:
    http://www.oracle.com/pls/db102/ranked?word=external+procedure+call&remark=federated_search
    My greetings,
    Sim

  • How to generate my report in HTML format

    Hi
    I am using Forms and reports 6i . How to generate a report in Html format.
    Please explain what are the option available in reports and the way to do
    thanks in advance
    prasanth a.s.

    *specify  desformat=html  in cmd line
    refer
    * Forms Reports integration 6i
    http://otn.oracle.com/products/forms/pdf/277282.pdf
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra positi

    While generating reports in Oracle BI Publisher in pdf format, the generated pdf reports have hindi  इ matra displaced by one character. For example, रिपोर्ट is printed as रपेिोरट.  Word file generated of the same report have correct hindi इ  matra position and also pdf generated from this word file also contains the same.

  • How to call PDF Report with parameters in jdeveloper 10.1.3

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

    Hi all,
    how to call PDF Report with parameters in jdeveloper 10.1.3
    for example I have Report name is repdept.pdf with parameter as deptno
    and I want call this Report from JSP page ?
    thanks
    frank

  • How to generate interactive report in alv

    hi,
      how to generate interactive report in alv,for this what are the requirements,
    give me one sample report.
                                                 thankyou.

    Hi,
    Chk these helpful links..
    ALV
    http://www.geocities.com/mpioud/Abap_programs.html
    http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
    Simple ALV report
    http://www.sapgenie.com/abap/controls/alvgrid.htm
    http://wiki.ittoolbox.com/index.php/Code:Ultimate_ALV_table_toolbox
    ALV
    1. Please give me general info on ALV.
    http://www.sapfans.com/forums/viewtopic.php?t=58286
    http://www.sapfans.com/forums/viewtopic.php?t=76490
    http://www.sapfans.com/forums/viewtopic.php?t=20591
    http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
    2. How do I program double click in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=11601
    http://www.sapfans.com/forums/viewtopic.php?t=23010
    3. How do I add subtotals (I have problem to add them)...
    http://www.sapfans.com/forums/viewtopic.php?t=20386
    http://www.sapfans.com/forums/viewtopic.php?t=85191
    http://www.sapfans.com/forums/viewtopic.php?t=88401
    http://www.sapfans.com/forums/viewtopic.php?t=17335
    4. How to add list heading like top-of-page in ABAP lists?
    http://www.sapfans.com/forums/viewtopic.php?t=58775
    http://www.sapfans.com/forums/viewtopic.php?t=60550
    http://www.sapfans.com/forums/viewtopic.php?t=16629
    5. How to print page number / total number of pages X/XX in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=29597 (no direct solution)
    6. ALV printing problems. The favourite is: The first page shows the number of records selected but I don't need this.
    http://www.sapfans.com/forums/viewtopic.php?t=64320
    http://www.sapfans.com/forums/viewtopic.php?t=44477
    7. How can I set the cell color in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    8. How do I print a logo/graphics in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=81149
    http://www.sapfans.com/forums/viewtopic.php?t=35498
    http://www.sapfans.com/forums/viewtopic.php?t=5013
    9. How do I create and use input-enabled fields in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=84933
    http://www.sapfans.com/forums/viewtopic.php?t=69878
    10. How can I use ALV for reports that are going to be run in background?
    http://www.sapfans.com/forums/viewtopic.php?t=83243
    http://www.sapfans.com/forums/viewtopic.php?t=19224
    11. How can I display an icon in ALV? (Common requirement is traffic light icon).
    http://www.sapfans.com/forums/viewtopic.php?t=79424
    http://www.sapfans.com/forums/viewtopic.php?t=24512
    12. How can I display a checkbox in ALV?
    http://www.sapfans.com/forums/viewtopic.php?t=88376
    http://www.sapfans.com/forums/viewtopic.php?t=40968
    http://www.sapfans.com/forums/viewtopic.php?t=6919
    Go thru these programs they may help u to try on some hands on
    ALV Demo program
    BCALV_DEMO_HTML
    BCALV_FULLSCREEN_DEMO ALV Demo: Fullscreen Mode
    BCALV_FULLSCREEN_DEMO_CLASSIC ALV demo: Fullscreen mode
    BCALV_GRID_DEMO Simple ALV Control Call Demo Program
    BCALV_TREE_DEMO Demo for ALV tree control
    BCALV_TREE_SIMPLE_DEMO
    BC_ALV_DEMO_HTML_D0100
    Regards
    Anversha

  • How to generate a report in Excel with multiple sheets using oracle10g

    Hi,
    I need a small help...
    we are using Oracle 10g...
    How to generate a report in Excel with multiple sheets.
    Thanks in advance.
    Regards,
    Ram

    Thanks Denis.
    I am using Oraclereports 10g version, i know desformat=spreadsheet will create single worksheet with out pagination, but my requirment is like the output should be generated in .xls file, and each worksheet will have both data and graphs.
    rdf paperlayout format will not workout for generating multiple worksheets.
    Is it possible to create multiple worksheets by using .jsp weblayout(web source) in oracle reports10g. If possible please provide me some examples
    Regards,
    Ram

  • How to generate a report based on account description

    Hi Experts,
    How to generate the report based on account description, that means
    i want to generate a report on G/L account and which account numbers are having 'CASH' description.
    for Ex: G/L a/c no: 25010026-Cash and Bank balance(des)
    G/L a/c no: 101000-Cash-freight
    like this.
    please help to do this,
    good answer will be appreciated with points,
    Thanks in advance
    Venkat

    Hi shana,
    my requirement is
    I have G/L account numbers, that account numbers having some descriptions, in these some descriptions are belongs to cash transactions, i want to generate the report on these cash transactions, and the report is " G/L account, debit cash, credit cash, balance".
    is it possible or not,
    thanks in advance,
    Venkat

  • How to generate classical report

    Hi guys,
                I need a help from you. how to generate classical report can you guide me please.
    Thanks guys.

    Vijay,
    To generate a report, follow the steps below
    1) Determine the desired output for End-user
    2) Based on the desired output, write a program with data declarations for all the variales u will display in the report
    3) Write extraction routines to fetch data from the DB tables
    4) Read extracted data and bind the data for final output
    5) Output data
    here's a simple example for your ref
    report ztest.
    Table declaration
    data: it_mara type table of mara with header line.
    SELECTION SCREEN
    parameters: p_matnr like mara-matnr.
    start-of-selection.
    select * from mara into table it_mara where matnr = p_matnr.
    end-of-selection.
    loop at it_mara.
      write: it_mara-matnr, it_mara-mtart, it_mara-mbrsh.
    endloop.
    reward if helpful,
    Karthik
    Message was edited by:
            Karthik

Maybe you are looking for

  • My macbook pro and iphone will not connect to the internet

    For three days my macbook and Iiphone have not been able to connect to the internet.The macbook says the wifi is connected with a green light, but when I open google chrome and attempt to go on any website it says "This webpage is not available." I h

  • How to make changes in infose query in SQ01

    Dear experts, I hv question abt infoset query. I m not very familiar with infoset query and now i hv to make some changes in already existing query. I hv found the infoset in use. from this infoset i can find the query. Now the question is I just hv

  • Error when displaying analytical view

    Hi, I own a cloudshare account. i created attribute views and when i want to display, it worked. but when i created the analytic view and look for "open content" option, its missing. then i gave the sql command "Grant select on schema SYSTEM to _SYS_

  • Automatic Payment Run - Problem with downloading DME file

    Hi, My client recently went live with the Automatic Payment run. But when trying to download ( or export) the DME file he is unable to do so. The message says like "There is no source data for this data record". Please help. Regards, Raj/

  • Duplex printing for smartform

    Hi, Has anyone worked on Duplex printing for smartform? If yes, please tell me the procedure/steps that need to be taken for the same. Thanks Regards