Output to PDF in Unix from Reports 6i

I am having some trouble getting pdf output in the unix environment from Reports 6i.
If I kick off a defined report file (.rep) from the command line as follows:
rwrun60 testreport.rep destype=file desformat=pdf desname=testreport.pdf userid=connection_details
I get the following errors:
REP-0004: Warning: Unable to open user preference file.
REP-3300: Fatal error in toolkit.
UI-9: This function call is out of context
If I run the command without the file output options (rwrun60 testreport.rep userid=connection_details) then the report opens up on the screen correctly. From here, if I try to generate a pdf file, I get the following error:
REP-1800: Formatter error.
The report is defined as character type, and is a simple listing of approximately 50 records from a database table. There are no graphics or any pl/sql defined in the report.
Has anyone had similar problems in trying to do this?
Any help is greatly appreciated.
Cheers
Nick

Dear Nick,
Just ensure a printer is configured. This can be done by typing in echo $PRINTER at the $Prompt.
If it returns null then configurea printer and i fell this should resolve your problem,
Since it did resolve my problem.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nick Mavrakis:
I am having some trouble getting pdf output in the unix environment from Reports 6i.
If I kick off a defined report file (.rep) from the command line as follows:
rwrun60 testreport.rep destype=file desformat=pdf desname=testreport.pdf userid=connection_details
I get the following errors:
REP-0004: Warning: Unable to open user preference file.
REP-3300: Fatal error in toolkit.
UI-9: This function call is out of context
If I run the command without the file output options (rwrun60 testreport.rep userid=connection_details) then the report opens up on the screen correctly. From here, if I try to generate a pdf file, I get the following error:
REP-1800: Formatter error.
The report is defined as character type, and is a simple listing of approximately 50 records from a database table. There are no graphics or any pl/sql defined in the report.
Has anyone had similar problems in trying to do this?
Any help is greatly appreciated.
Cheers
Nick<HR></BLOCKQUOTE>
null

Similar Messages

  • Gif images in pdf file generated from Reports 6i

    Hello,
    When I generate pdf file from Reports Builder 6i and open this file with Acrobat Reader 5.0 I get that some of my gifs are black or other color.
    When I generate the same report to the live previewer everything is OK.
    Is it a Reports 6i bug? Any workarounds?
    Best regards
    Raimundas Katilius

    Hi
    If u generate the report output to PDF from the report
    GIF images doesn't show up properly . Generate it from the
    application then i think it will print clearly.
    If u try to print text followed by image and followed by text
    again PDF will not print
    I think this should help u
    Sri
    Hello,
    When I generate pdf file from Reports Builder 6i and open this file with Acrobat Reader 5.0 I get that some of my gifs are black or other color.
    When I generate the same report to the live previewer everything is OK.
    Is it a Reports 6i bug? Any workarounds?
    Best regards
    Raimundas Katilius

  • Bursting Program PDF Fonts different from Report Program PDF

    We have designed a new XML Publisher report which uses bursting mecahnism to send out the output pdf to supplier. The report rdf completes successfully and generates the pdf with right fonts (Font Mapping configured in XML Publisher Administrator). AfterReport trigger of this report triggers the bursting program. This program sends out the pdf to the right recepients. But this pdf that comes through mail has different fonts then what it was in the output of first program. Can some one guide on how to get the same pdf fonts through bursting email file that is similar to the one that was generated through Report Program. Any help will be highly appreciated.
    Thanks,
    Mohammadi

    Anyone who can throw light on this?
    Thx

  • Output required in MS Excel from Reports Oracle 10g error with built in pac

    Hi All,
    Our requirement is to get matrix report output in MS Excel. For that i found a report online. However, im having issues with Built-in Package OLE2.obj_type.
    Below is the report log file:
    ******* Custom: Version : UNKNOWN
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XX_MATRIX_REPORT module: XX_MATRIX_REPORT
    Current system time is 10-AUG-2012 17:23:17
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    REP-0736: There exist uncompiled program unit(s).
    REP-0736: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1247: There exist uncompiled program unit(s).
    REP-1247: Report contains uncompiled PL/SQL.
    Report Builder: Release 10.1.2.3.0 - Production on Fri Aug 10 17:23:19 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 11242010.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 10-AUG-2012 17:23:20
    Please Help!!!

    After Report:
    function AfterReport return boolean is
    begin
    RPT2XLS.release_memory;
    srw.user_exit('FND SRWEXIT');
    srw.message(101,'After Report');
    return (TRUE);
    end;
    RPT2XLS package body:
    PACKAGE BODY RPT2XLS IS
         TYPE ExcelCell IS RECORD(RowNo binary_integer,
                                                                     ColNo binary_integer,
                                                                     Val varchar2(2000),
                                                                     FontName varchar2(20),
                                                                     FontSize binary_integer,
                                                                     FontStyle binary_integer,
                                                                     FontColor binary_integer,
                                                                     BgrColor binary_integer,
                                                                     Format varchar2(60),
                                                                     Align xlHAlign
         TYPE ExcelCells IS TABLE OF ExcelCell;
         Cell ExcelCells := ExcelCells();
         CurrentRow binary_integer := 1;
         PROCEDURE new_line IS
         BEGIN
              CurrentRow := CurrentRow + 1;
         END;
         PROCEDURE put_cell(ColNo binary_integer, CellValue in varchar2,
                                                      FontName in varchar2 DEFAULT null,
                                                      FontSize in binary_integer DEFAULT null,
                                                      FontStyle in binary_integer DEFAULT null,
                                                      FontColor in binary_integer DEFAULT null,
                                                      BgrColor in binary_integer DEFAULT null,
                                                      Format in varchar2 DEFAULT null,
                                                      Align in xlHAlign DEFAULT null
                                                      ) IS
         BEGIN
              Cell.Extend;
              Cell(Cell.Last).RowNo := CurrentRow;
              Cell(Cell.Last).ColNo := ColNo;
              Cell(Cell.Last).Val := CellValue;
              Cell(Cell.Last).FontName := FontName;
              Cell(Cell.Last).FontSize := FontSize;
              Cell(Cell.Last).FontStyle := FontStyle;
              Cell(Cell.Last).FontColor := FontColor;
              Cell(Cell.Last).BgrColor := BgrColor;
              Cell(Cell.Last).Format := Format;
              Cell(Cell.Last).Align := Align;
         END;
    PROCEDURE run IS
              Application OLE2.OBJ_TYPE;
              Workbooks OLE2.OBJ_TYPE;
              Workbook OLE2.OBJ_TYPE;
              Worksheets OLE2.OBJ_TYPE;
              Worksheet OLE2.OBJ_TYPE;
              WorkCell OLE2.OBJ_TYPE;
              WorkColumn OLE2.OBJ_TYPE;
    WorkFont OLE2.OBJ_TYPE;
    WorkInterior OLE2.OBJ_TYPE;
              ArgList OLE2.LIST_TYPE;
         BEGIN
              Application := OLE2.create_obj('Excel.Application');
              OLE2.set_property(Application, 'Visible', 1);
              Workbooks := OLE2.get_obj_property(Application, 'Workbooks');
    Workbook := OLE2.invoke_obj(WorkBooks, 'Add');
              Worksheets := OLE2.get_obj_property(Workbook, 'Worksheets');
              Worksheet := OLE2.get_obj_property(Application, 'ActiveSheet');
              for i in Cell.First .. Cell.Last
              loop
                   if Cell(i).Val is not null then
                        ArgList := OLE2.create_arglist;
                        OLE2.add_arg(ArgList, Cell(i).RowNo);
                        ole2.add_arg(ArgList, Cell(i).ColNo);
                        WorkCell := OLE2.get_obj_property(Worksheet, 'Cells', ArgList);
                        ole2.destroy_arglist(ArgList);
                        ole2.set_property(WorkCell, 'Value', Cell(i).Val);
                        ole2.set_property(WorkCell, 'NumberFormat', Cell(i).Format);
                        if Cell(i).Align is not null then
                             ole2.set_property(WorkCell, 'HorizontalAlignment', Cell(i).Align);
                        end if;
                        WorkFont := OLE2.get_obj_property(WorkCell, 'Font');
                        WorkInterior := ole2.Get_Obj_Property(WorkCell, 'Interior');
                        if Cell(i).FontName is not null then
                             OLE2.set_property(WorkFont, 'Name', Cell(i).FontName);
                        end if;
                        if Cell(i).FontSize is not null then
                             OLE2.set_property(WorkFont, 'Size', Cell(i).FontSize);
                        end if;
                        if mod(Cell(i).FontStyle, 2) = 1 then
                             OLE2.set_property(WorkFont, 'Bold', 1);
                        end if;
                        if mod(Cell(i).FontStyle, 4) > 2 then
                             OLE2.set_property(WorkFont, 'Italic', 1);
                        end if;
                        if mod(Cell(i).FontStyle, 8) > 4 then
                             OLE2.set_property(WorkFont, 'Underline', 2);
                        end if;
                        if Cell(i).FontColor is not null then
                             OLE2.set_property(WorkFont, 'ColorIndex', Cell(i).FontColor);
                        end if;
                        if Cell(i).BgrColor is not null then
                             OLE2.set_property(WorkInterior, 'ColorIndex', Cell(i).BgrColor);
                        end if;
                        OLE2.release_obj(WorkInterior);
                        OLE2.release_obj(WorkFont);
                        OLE2.release_obj(WorkCell);
                   end if;
              end loop;
              ArgList := ole2.create_arglist;
              ole2.add_arg(ArgList, 'A:Z');
              WorkColumn := ole2.Get_Obj_Property(WorkSheet, 'Columns', ArgList);
              ole2.destroy_arglist(ArgList);
              ole2.invoke(WorkColumn, 'AutoFit');
              OLE2.release_obj(WorkColumn);
              OLE2.release_obj(Worksheet);
              OLE2.release_obj(Worksheets);
              OLE2.release_obj(Workbook);
              OLE2.release_obj(Workbooks);
              OLE2.release_obj(Application);
         END;
         PROCEDURE release_memory IS
         BEGIN
              Cell := ExcelCells();
              SYS.DBMS_SESSION.free_unused_user_memory;
         END;
    END;
    We are getting the error in log file Report contains uncompiled PL/SQL.
    due to ole2.obj_type...

  • Empty PDF when printing from report

    I have a number of reports where I want to be able to download the report as both CSV and PDF.
    The CSV download works fine but the PDF only contains the headers, no data. The printer is set up otherwise I wouldn't be able to get a PDF at all.
    Is there anything obvious I might have overlooked?
    Thanks in advance.

    Hi,
    We have the exact same problem with an interactive report in Apex 3.2. The CSV export works fine, but the PDF file only shows the header.
    The problem only occurs when using a page item in the where clause. Is that a bug ? How can I fix this ?
    Thanks
    Patrick

  • PAYABLES NOT GETTING THE REPORT OUTPUT IN PDF AFTER APPLYING RUP5 R12

    Hi All,
    RDBMS:10.2.0.3.0
    Oracle Apps :12.0.4
    OS:AIX 5.3
    Problem Description:
    We are presently facing an issue in Payables not getting the report output in PDF esp for the reports "Invoice Register", Invoice Hold Report and also other reports. We were able to generate the reports till our last test performed on last Thursday. This instance was cloned over the last weekend and probably the new upgrade to RUP5 R12,would have impacted it.
    Concurrent Programs submitted are completed normal but on clicking "view output" results in Blank PDF output.
    The error message what was shown is as below:
    "Adobe Reader could not open 'AcrC.tmp' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)".
    Where could we locate ther above 'AcrC.tmp' of Adobe Reader..
    could anyone please share such an experience encountered for resolution..
    Would appreciate an early response..
    Thanks for your time!
    Regards,

    I suggest you speak to your DBA/sysadmin. This is not likely to be a reports problem.
    Check that you can see the output from apps through the viewer (the report may not hav output anything)
    Check whether you can print anything on that printer from apps.
    May also be worth checking to see if you can print to another printer from this report.

  • Help: calling report from report in report 9i

    Background:
    1. Report Builder 9i and the outputs are PDF files;
    2. Report A and Report B both have two identical parameters: P1 and P2;
    3. Calling Report A through FORM using web.show_document() with paraform=YES,
    Help:
    If Report B can be called from Report A, the parameters P1, P2 passed through calling report A, the user then needs not to enter twice P1 and P2 using web.show_document().
    Wishful way of thinking:
    The Calling FORM refered here is the one that provides all buttons for more than 20 reports and that is the reason of using parameter form. Consequently, I am looking for ways of making:
    Calling FORM -> REPORT A -> REPORT B
    where both Report A and B have same parameters, calling FORM calls REPORT A using REPORT A parameter form and hoping that REPORT A can call REPORT B with these parameters.
    Any help are greatly appreciated.
    Jimmy

    I tried something in Before Report trigger like:
    function BeforeReport return boolean is
    begin
    srw.run_report('batch=yes sf1='||:pf1 || 'sf2='||:pf2 || ' report=REPORT_B destype=cache desformat=pdf');
    return (TRUE);
    end;
    An error raised as: REP-1428: 'beforereport': Error while running SRW.RUN_REPORT.
    Here sf1, pf1 and sf2, pf2 and two pairs of identical parameters.
    Any suggestions?

  • Regression testing on PDF output files from Reports?

    My current client is looking to do more automated regression testing of the output (content) of their reports, most of which are output from Reports6i into Adobe Acrobat PDF file format. Is anyone currently using or aware of a tool (QARun, WinRunner, etc.) that will do this? (Most of the tools can do a binary comparison of the PDF files that were output, but we need something that will look into the PDF files themselves and tell us where any differences are found in the actual content (text) of the report itself.)
    Thanks in advance for any info anyone can provide!
    - Bill

    Dear Nick,
    Just ensure a printer is configured. This can be done by typing in echo $PRINTER at the $Prompt.
    If it returns null then configurea printer and i fell this should resolve your problem,
    Since it did resolve my problem.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nick Mavrakis:
    I am having some trouble getting pdf output in the unix environment from Reports 6i.
    If I kick off a defined report file (.rep) from the command line as follows:
    rwrun60 testreport.rep destype=file desformat=pdf desname=testreport.pdf userid=connection_details
    I get the following errors:
    REP-0004: Warning: Unable to open user preference file.
    REP-3300: Fatal error in toolkit.
    UI-9: This function call is out of context
    If I run the command without the file output options (rwrun60 testreport.rep userid=connection_details) then the report opens up on the screen correctly. From here, if I try to generate a pdf file, I get the following error:
    REP-1800: Formatter error.
    The report is defined as character type, and is a simple listing of approximately 50 records from a database table. There are no graphics or any pl/sql defined in the report.
    Has anyone had similar problems in trying to do this?
    Any help is greatly appreciated.
    Cheers
    Nick<HR></BLOCKQUOTE>
    null

  • Unable to view PDF output from Report Server

    Help!
    I have successfully setup CGI Report Server and can generate and view reports in IE5 as HTML repformat.
    However when I try to generate output as PDF I do not get the report displayed. Instead I get a little acrobat icon displayed in the top left of the browser window.
    When I click on the icon I get a IE5 message:
    "There is no viewer available for the type of object you are trying to open....
    Content Type: application/pdf"
    ...and then insists on taking me to Microsoft activex plugin page.
    This is very stange as I DO have Adobe Acrobat Reader 4 installed and the plugin works ok when viewing PDF files on Oracle webpage.
    Any suggestions on how to resolve are gratefully received!!
    Regards,
    Richard.

    You have run into an interesting problem. The problem is not with Reports. The problem is with Adobe. You can search Adobe's web site and they point to Microsoft (btw, this problem doesn't occur with netscape as the browser) Microsoft's web site point to Adobe.
    The Problem is that the .ocx Adobe puts out for use with IE times out if the report take stoo long to start sending back data. We had report that worked and some that didn't. We took a report that worked and put a sleep command in it and when the sleep command got to 10 the report quit working.
    My suggestion: move to netscape, make your reports as fast as absolutely possible.
    Jeff
    null

  • CE10 Converting All reports output as PDF from A4 to US size paper.

    I have created a number of reports which on Crystal are set as A4. These are then published to CE10 and set to output as PDF.
    When they are previewed in History after being scheduled they appear as US size 11.68 x 8.26 in, and are thus cropped on bottom and righthand side.
    Even when I preview the report on the Properties tab they are cropped to US size.
    I have looked every where on the CE Admin page but can not see any where that a page size can be set. Is it something to do with how Acrobat has been set up on the CE server? Or have I missed something on the CE configuration.
    We did not have a default printer on the server so we added one and that made no difference.
    Acrobat is not installed on the server.
    It looks like its something to do with the ActiveX conversion as the object is stored as a .cwr file and then ActiveX converts it to PDF, but in doing so changes size to US Paper rather than A4.
    It must be somewhere in this code
    http://srvcors08/crystal/enterprise10/admin/en/infoobject.cwr?action=-10005&cmd=view&id=603250&iid=617366&WCSID=12809936971026%2D2886740171%3A6401
    But as I know nothing about ActiveX I can not see what is happening and even if I did I would not know where to start in changing it!
    I know CE10 is no longer supported but there are no plans to upgrade, so other than making all my reports a bit smaller is there a solution to this?
    Ian

    Hi Ian,
    I moved your post to the BusinessObjects Legacy products forum.
    Thank you
    Don

  • Report output as pdf

    I followed the instructions from OTN "Rendering Oracle HTML DB Reports as PDFs Using Formatting Objects Processor". All installation steps have been performed.
    After clicking on the "Output to PDF Document" link I get the following errormessage in a new browser window:
    "The requested URL /htmldb_fop_render.jsp was not found on
    this server."
    I've changed the path in the htmldb_pdf.js file to:
    var g_Render_URL = 'http://131.141.11.163:7777/htmldb_fop_render.jsp';
    Any ideas?
    Thanks for your help

    Depending on your environment (I tried the following with AS 10g / J2EE); you should use http://131.141.11.163:7777/j2ee/htmldb_fop_render.jsp - note the additional j2ee.

  • Converting simple report output to PDF print layout issue

    Hi all,
    I am converted one report output to PDF format, it is working fine in one DEV sever, but when we moved it to other server the layout of output preview & font size  is not coming properly (as same in DEV server)  in the new server. I am using the below code, please check & correct me if anything is wrong.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
          EXPORTING
            copies                 = '1'
            cover_page             = space
            destination            = 'LOCL'
            expiration             = '1'
            immediately            = space
            mode                   = space
            new_list_id            = 'X'
            no_dialog              = 'X'
            user                   = sy-uname
            line_size              = 200
            line_count             = 65
    *        layout                 = 'Z_65_230'
            layout                 = 'X_58_170'
            sap_cover_page         = 'X'
          IMPORTING
            out_parameters         = mstr_print_parms
            valid                  = mc_valid
          EXCEPTIONS
            archive_info_not_found = 1
            invalid_print_params   = 2
            invalid_archive_params = 3
            OTHERS                 = 4.
        IF sy-subrc EQ 0.
    **--Creating Spool Request.
          CALL FUNCTION 'JOB_OPEN'
            EXPORTING
              jobname          = lv_job_name
            IMPORTING
              jobcount         = lv_job_count
            EXCEPTIONS
              cant_create_job  = 1
              invalid_job_data = 2
              jobname_missing  = 3
              OTHERS           = 4.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ELSE.
    **--Submitting the Report & Get the Output.
            SUBMIT  zpsr_submit_prcng WITH SELECTION-TABLE t_ebeln TO SAP-SPOOL WITHOUT SPOOL DYNPRO
                                  SPOOL PARAMETERS mstr_print_parms
                                  USER             sy-uname         " User for runtime authorizations
                                  VIA JOB          lv_job_name
                                  NUMBER           lv_job_count
                                  AND RETURN.
            IF sy-subrc <> 0.
              MESSAGE ID    sy-msgid TYPE sy-msgty NUMBER sy-msgno
                      WITH  sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
            ELSE.
              CALL FUNCTION 'JOB_CLOSE'
                EXPORTING
                  jobcount         = lv_job_count
                  jobname          = lv_job_name
                  strtimmed        = 'X'
                IMPORTING
                  job_was_released = lv_job_released.
              IF sy-subrc <> 0.
                MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
              ENDIF.
    Thanks & Regards
    Avish
    Moderator Message: Please use code tags when pasting code snippets. Also paste relevant portions of the code
    Edited by: Suhas Saha on Jul 13, 2011 3:05 PM

    Dear Alexander,
    Thanks for the reply.
    In this I am using the FM 'CONVERT_ABAPSPOOLJOB_2_PDF'. I have checked the settings from SPAD that is also same in both servers for particular output device. But the patches are diffrennt in both the servers, the server from which layout is not coming properly having the high level patches in compare to the other server(which is working fine).

  • Hide URL in PDF output in hyperlink , Maintain History within reports

    hi
    i have some issues to discuss for report output in pdf format.
    we are using java application to call reports via AS 10g, my issue are
    1) Hide URL in PDF output for hyperlink created.(Using username/password in Key is not enough)
    2) Maintain history as i call second report from my parent report then i want to go back to parent report.(Note here go.history or history.go(-1) work in HTML output format but not in PDF)
    3)To Call Child PDF report in new window(here again working fine target="_blank" for HTML output but not for PDF)
    regards
    abid

    Hi Ram,
    Not sure if this is possible.
    However, one workaround might be the following:
    1. Write a javascript that submits the URL using, say a POST method, and does not show the parameters in the URL. You will have to write this javascript code in the "Before Report" Report Escape. For a generic example on how to use javascript in a report, see Metalink Note 125652.1. This note shows javascript to disable the right-click of the mouse on the report output.
    2. Use the Hyperlink peroperty of the report to call this javascript function, eg,
    javascript:myfunction('http://machine:port/reports/rwservlet?report=...+server=...+empno=&empno')
    I am not a javascript expert, so I cannot give you an example of the function, but I hope someone in your team can find out.
    Navneet.

  • Converting report output to pdf by submit spooland email to multiple vendor

    Hi all,
               my current program converting the report output to pdf and then downaloding andsending  to vendor email.If user enter single vendor is o.k. but if suppose user enter multiple vendors,report is dipalying with multiple vendor information and all this information converting to one pdf file only.but i need particular vendor pdf have particular vendor info only excluding remaining vendor info.I am pasting my code.can anyone suggest?
    TYPES: BEGIN OF type_data,
           lifnr TYPE ekko-lifnr,
           matnr TYPE lips-matnr,
           vgbel TYPE lips-vgbel,
           vgpos TYPE lips-vgpos,
           mfrgr TYPE lips-mfrgr,
           vbeln TYPE ekes-vbeln,
           erdat TYPE ekes-erdat,
           lfdat TYPE ekes-eindt,
           lgort TYPE lips-lgort,
           verur TYPE ekes-xblnr,
           lfuhr TYPE ekes-uzeit,
           lfimg TYPE lips-lfimg,
           meins TYPE lips-meins,
           posnr TYPE lips-posnr,
           kdmat TYPE lips-kdmat,
           dabmg TYPE ekes-dabmg,
           eindt TYPE eket-eindt,
    * Add by liza DEVK989704
           park TYPE ZPO_PARK-menge,
    * End by liza DEVK989704
           END OF type_data.
    DATA: gt_data TYPE STANDARD TABLE OF type_data.
    DATA: gw_data LIKE LINE OF gt_data.
    form display_list.
    DATA: lv_maktx   TYPE makt-maktx,
            lv_adv(01) TYPE c.
      DATA: lv_menge TYPE zomm_t0104m-menge.
    *-- Set titles
      title1 = 'Shipping notifications'.
      title2 = '(Formerly Known As Matsushita Industrial )'.
      title3 = sy-title.
      IF NOT pa_fax IS INITIAL.
        NEW-PAGE LINE-SIZE 120 LINE-COUNT 44.
        title3 = 'Outstanding shipping notifications by supplier'.
      ENDIF.
      SORT gt_data BY lifnr lfdat matnr vgbel vgpos eindt.
      LOOP AT gt_data INTO gw_data.
        AT NEW lifnr.
          NEW-PAGE.
          sy-pagno = 1.
    *-- Get the vendor name
          CLEAR: gv_name1,
                 gv_telf1,
                 gv_telfx.
          SELECT SINGLE name1 telf1 telfx
                 INTO (gv_name1, gv_telf1, gv_telfx)
                 FROM lfa1
                 WHERE lifnr = gw_data-lifnr.
        ENDAT.
    AT NEW matnr.
    *-- Get the material description
          CLEAR lv_maktx.
          SELECT SINGLE maktx INTO lv_maktx
                 FROM makt
                 WHERE matnr = gw_data-matnr
                   AND spras = sy-langu.
        ENDAT.
    *-- If "only pending shipping notifications" is selected, remove all
    *   entries with no pending quantity
        IF gw_data-lfimg LE gw_data-dabmg AND
           pa_pend = 'X'.
          CONTINUE.
        ENDIF.
    *-- Highlight entries where the SN delivery date is before the PO
    *   delivery date
        IF gw_data-lfdat < gw_data-eindt.
          FORMAT INTENSIFIED ON.
          lv_adv = 'X'.
        ELSE.
          FORMAT INTENSIFIED OFF.
          CLEAR lv_adv.
        ENDIF.
        lv_menge = gw_data-lfimg - gw_data-dabmg.
    * Add by liza DEVK989704
        clear: PARKING, T_PARK.
        refresh: T_PARK.
        Select * from ZPO_PARK into T_PARK
        where vbeln = gw_data-vbeln
        and lifnr = gw_data-lifnr
        and matnr =  gw_data-matnr.
        Append T_PARK.
        Endselect.
        Loop at T_PARK.
          PARKING = PARKING + T_PARK-menge.
        Endloop.
        gw_data-park = PARKING.
    * End by liza DEVK989704
        IF pa_fax IS INITIAL.
          WRITE:/2(18) gw_data-matnr,
                  (40) lv_maktx,
                       gw_data-vgbel,
                       gw_data-eindt,
                  (04) gw_data-mfrgr,
                  (18) gw_data-verur,
                       gw_data-vbeln,
                       gw_data-lfdat,
                  (07) gw_data-lfimg UNIT gw_data-meins,
                  (07) gw_data-dabmg UNIT gw_data-meins,
                  (07) lv_menge UNIT gw_data-meins,
                       gw_data-lgort,
                       gw_data-erdat,
                  (01) lv_adv,
    * Add by liza DEVK989704
                  (08) gw_data-park.
    * End by liza DEVK989704
        ELSE.
          WRITE:/2(12) gw_data-matnr,
                  (26) lv_maktx,
                       gw_data-vgbel,
                  (16) gw_data-verur,
                       gw_data-vbeln,
                       gw_data-lfdat,
                  (07) gw_data-lfimg UNIT gw_data-meins,
                  (07) gw_data-dabmg UNIT gw_data-meins,
                  (07) lv_menge UNIT gw_data-meins,
                       gw_data-lgort.
        ENDIF.
        PERFORM write_vline.

    AT END OF lifnr.
         If pa_dtim NE '000000'.
          ULINE.
          SKIP.
          WRITE:/12 TS_VEND.
          WRITE:/12 TS_ATT.
          WRITE:/12 TS_FROM.
          SKIP.                                     "D01K934099
          WRITE:/12'DELIVERY TIME:',pa_dtim.        "D01K934099
          SKIP.                                     "D01K934099
          WRITE:/12 TS_TEXT1.
          WRITE:/12 TS_TEXT2.
          WRITE:/12 TS_TEXT3.
          WRITE:/12 TS_TEXT4.
        Else.
          ULINE.
          SKIP.
          WRITE:/12 TS_VEND.
          WRITE:/12 TS_ATT.
          WRITE:/12 TS_FROM.
          WRITE:/12 TS_TEXT1.
          WRITE:/12 TS_TEXT2.
          WRITE:/12 TS_TEXT3.
          WRITE:/12 TS_TEXT4.
    Endif.
    ENDAT.
         move-corresponding gw_data to t_data.
         move : lv_maktx  to t_data-maktx,
                lv_menge  to t_data-menge,
                lv_adv    to t_data-adv,
                parking   to t_data-park.
           append t_data.
    L_X = 'X'.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
       EXPORTING
         NO_DIALOG                      = L_X
       IMPORTING
         OUT_PARAMETERS                 = GS_PRINT_PARAMS
         VALID                          = G_VALID
      IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
          GS_PRINT_PARAMS-PAART = 'X_65_80'.
          GS_PRINT_PARAMS-LINSZ = '185'.
    *   /*----------store the current selection screen details---------/
      CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
        EXPORTING
          CURR_REPORT           = SY-REPID
        TABLES
          SELECTION_TABLE       = T_RSPARAMS
       EXCEPTIONS
         NOT_FOUND             = 1
         NO_REPORT             = 2
         OTHERS                = 3
      IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    *   /*--- importing variable value set at first time to restrict the infinite loop --------/.
    IMPORT VAR FROM MEMORY ID 'abc' .
      VAR = VAR + 1 .
      P_UNAME = SY-UNAME .
      P_REPID = SY-REPID .
    * /*------checking variable to restricted scecond time exction of this block of code---------/
      IF VAR = 1 .
        V_MEMID = 1 .
        EXPORT VAR TO MEMORY ID 'abc' .
    * /*-----------submitting the spool request--------------/
        SUBMIT (P_REPID) WITH SELECTION-TABLE T_RSPARAMS
                           TO SAP-SPOOL
                         SPOOL PARAMETERS GS_PRINT_PARAMS
                         WITHOUT SPOOL DYNPRO
                         AND RETURN.
    endif.
    FREE MEMORY ID 'abc'.
    *  /*-------Calculating the lenth of report name--------/
      v_len = STRLEN( P_REPID ) .
    *  /*-------consutrucing the database variable  rq2name to search the spool request---------/
      IF v_len >= 9 .
        CONCATENATE P_REPID+0(9)
                    P_UNAME+0(3) INTO LC_RQ2NAME .
      ELSE.
        V_LEN1 = 9 - V_LEN .
        DO V_LEN1 TIMES .
          CONCATENATE V_TEMP '_' INTO V_TEMP .
        ENDDO.
        CONCATENATE P_REPID V_TEMP
                    P_UNAME INTO LC_RQ2NAME .
      ENDIF.
    *  /*--------selecting the spool request using the above constructed variable----------/
      SELECT  * FROM TSP01 INTO TABLe IT_TSP01
              WHERE RQ2NAME = LC_RQ2NAME .
    * /*--------sorting the internal table-----------/
      SORT  it_tsp01 BY RQCRETIME DESCENDING .
    * /*--------reading the first spool request-------/
      READ TABLE IT_TSP01 INDEX 1.
    * /*--------Convert Spool to PDF-----------/
      IF GS_PRINT_PARAMS-PDEST IS INITIAL.
        GS_PRINT_PARAMS-PDEST = 'LOCL'.
      ENDIF.
      CONCATENATE P_DEST T_DATA-LIFNR '.PDF' INTO G_FILENAME.
      CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
        EXPORTING
          SRC_SPOOLID                    = IT_TSP01-RQIDENT
         NO_DIALOG                      = SPACE
       IMPORTING
         PDF_BYTECOUNT                  = G_BYTECOUNT
       TABLES
         PDF                            = T_PDF
       EXCEPTIONS
         ERR_NO_ABAP_SPOOLJOB           = 1
         ERR_NO_SPOOLJOB                = 2
         ERR_NO_PERMISSION              = 3
         ERR_CONV_NOT_POSSIBLE          = 4
         ERR_BAD_DESTDEVICE             = 5
         USER_CANCELLED                 = 6
         ERR_SPOOLERROR                 = 7
         ERR_TEMSEERROR                 = 8
         ERR_BTCJOB_OPEN_FAILED         = 9
         ERR_BTCJOB_SUBMIT_FAILED       = 10
         ERR_BTCJOB_CLOSE_FAILED        = 11
         OTHERS                         = 12
      IF SY-SUBRC  0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Is there a way to merge 3 or more report output in PDF into one

    Hi All,
    I know about the report sectioning. I am wondering is there any other way to merge 3 or more report output in pdf form to a single document.
    I have seen that there are many thrid party tools. Wondering is there anything from Oracle reports feature or any Oracle product for this?
    Thank You
    Rajesh ALex

    If not changing the reports design, third party tools is the only options. AFAIK, there is no Oracle proprietary tool for merging PDF files..

Maybe you are looking for

  • Change in Standard VAT Report :  S_alr_87012385

    Dear All, In  VAT summary report - S_ALR_87012385 I need some additions and changes as listed below- 1. Document wise line level tax detail is displayed - need at document level 2. Vendor TIN number is not getting displayed in the standard VAT report

  • Error with J1I6 (modvat forecast)

    Hi Experts I am experiencing error with transaction J1I6. "Default Condition Type not defined for Tax Procedure TAXINN" Message no. 8I046 The remidy suggested in the above message is "Maintain table j_1itaxdef for tax procedure and specify condition

  • Authorization Issue in WebUI (also ST01 question)

    Hi All, we are implementing new CRM 2007 and users will be working with the WebUI mainly in the future. Now here is something strange that we found out: When a user logs on to the Web UI and enters some sales transaction trying to add a new material

  • FCC error

    Hi , I am doing file to file using FCC (txt - xml).here am getting below error.Please find and let me know the solution.   <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>   <SAP:P1>com/sap/xi/tf/_MM_EmpDetails_</SAP:P1>   <SAP:P2>com.sap

  • Lightroom trial consistently crashes

    I downloaded and installed (after several tries) a trial version of Lightroom for Windows.  The program will open, but as soon as I click Import (either the button or through the File menu), it crashes - the little circle thing spins endlessly, and I