Save report output automatically into html

Hi Gurus!
I have few reports that give a simple list output as result.
Now I want to put an option in the output , an option that will be
  a save buttom which when clicked will automatically save the output
into an html file and archive it to a particular folder.
I would like to know how to automatically archive the report output
when this save buttom is clicked to a folder.
DO we do it after we have printed the report in the output
and how do we go abot doing this .
Regards
Sumit

Hi,
After running a report, call this function module WWW_LIST_TO_HTML
to convert the list output to HTML.
Best Regards,
Krishna

Similar Messages

  • Print report output Automatically.

    Hi friends
    I am using GET_PRINT_PARAMETERS to create an spool request to print the report output automatically once it is displayed on screen, the problem with this FM if I assigned import parameter immediately = 'X' it does not create any spool request.
    Is there any other way to automate the printing instead of pushing Pritn Icon on Application toolbar.
    Thanks
    Lakhbir

    Hi,
    do this way...
        CALL FUNCTION 'GET_PRINT_PARAMETERS'
           EXPORTING
             <b>IMMEDIATELY                  = 'X'</b>         LINE_SIZE                    = 220
             <b>RELEASE                      = 'X'</b>         MODE                         = 'CURRENT'
           <b>  NO_DIALOG                    = 'X'</b>       IMPORTING
    *     OUT_ARCHIVE_PARAMETERS       =
             OUT_PARAMETERS               = L_PARAMS
             VALID                        = L_VALID
           EXCEPTIONS
             ARCHIVE_INFO_NOT_FOUND       = 1
             INVALID_PRINT_PARAMS         = 2
             INVALID_ARCHIVE_PARAMS       = 3
             OTHERS                       = 4.
          IF SY-SUBRC <> 0.
          ENDIF.
          NEW-PAGE PRINT ON   PARAMETERS L_PARAMS <b>NO DIALOG</b>.
    "you can start your write statements here...
           PERFORM DISPLAY_DATA.
          NEW-PAGE PRINT OFF.
    This will automatically prints the report
    Regards
    vijay

  • Show Oracle APPS Report Output Automatically in IE

    Normally in Oracle EBS (View>Requests>Submit New Request) we submit the request to run any report and after normal completion of the report, we press the button View Output and system show the Output in IE, output may be in PDF or Text. In my case requirement is not from front end so i create one trigger (AFTER INSERT ON MTL_MATERIAL_TRANSACTIONS)and through "FND_REQUEST.SUBMIT_REQUEST" submit the report request to the concurrent manager successfully and completed. Here I want to show the report output automatically show in the IE instead of open the request and click on the View Output button.

    Why you have defined trigger that we can't understood.
    Can you explain more in detail or code you have written ?
    The Logs and Output are located in $APPLCSF/$APPLLOG and  $APPLCSF/$APPLOUT respectively,
    The output file is generated with  o<request_id>.out  in $APPLCSF/$APPLOUT  directory.

  • Save report output to file

    Hi, I'm using BI publisher web service to schedule reports to email, printer, fax..etc
    How can I save report output to file? I tried both options saveOutputOption and saveDataOption but I can't find report output on the server.
    Thank you,

    option 1: bursting
    option2:
    you have to get the output, search for ReportResponse and getReportBytes,

  • Reports output as seperate HTML

    HI all,
    I have a situation I am using reports 6i and XP
    I have a report with 60 pages
    What i need to do is i need to generate report as each page as one html and save it some where
    For example I have 60 pages I need to get output in 60 html pages or save 60 html pages
    Is it possible to do in report
    Any help is appreciated
    Thanks

    Hi
    Sorry I was wrong. In Reports 6.0 onwards, HTML page streaming ia avilable, means that you can display individual pages of your HTML/HTMLCSS report output in the browser, without having to download the entire report. From the first page of the report, you
    can navigate to any page by clicking from page to page or by entering the page number required.
    Thus, HTML page streaming gives navigation controls to the web report. In its simplest form, page streaming is very easy to implement. The parameter PAGESTREAM=YES is used.
    HTML page streaming uses a built-in JavaScript provided by Reports. To implement HTML page streaming, the default JavaScript provided can be used or your own JavaScript can be written.
    To view the built-in JavaScript:
    1. Go to the Report property palette by double clicking in the Report name in the object navigator.
    2. Choose the 'Page navigation control value' property.
    3. Click on the 'more' button; this will open the built-in JavaScript script.
    If you wish to implement your own JavaScript, this file can be updated, or your own script can be referenced by setting the 'Page navigation control type' property to file and putting the filename of your JavaScript in the
    'Page navigation control value.'
    Please refer to Reports documentation on more on Page streaming feature.
    Thanks
    Rohit

  • Not able to save report output in a text file and RTF file

    I am using Oracle Developer6.0 . I am facing problem with reports. I am invoking reports from form using run_product.
    1. I could not able to save the report in text file . Whenever i try to save the report output in a text file.It gives dump and application get closed.
    2. In RTF format , it execute the query which i have given at the design time while creating a report . But while running i am passing query either through lexical parameter or passing value of where criteria user parameters. It display the output for the specified value. But when i save this report output in rtf file . It execute design time query and save that in a rtf file.
    If any body is having any idea about it . Please let me ASAP . It is very urgent for me.
    Thanks in advance

    Try the following:
    Do not generate the report to .rep file, but rename/copy the .rdf file to .rep file and execute it.

  • Unable to save report output in excel format.

    Hi all,
    I am facing a problem on 10gR2 Application Server, When I try to run a report from portal, Report shows o/p in the excel but when I try to save the O/P by using File -> save as , it shows only 4 types of files like htm, html, txt.
    I have used desformat=delimiteddata and minetype=application/excel.
    When I run same report using simple url it allows me to save in excel.
    Plz suggests some way to save the o/p in excel.
    Regards
    Amit.

    If you have the Financial Report open there are two options:
    - in the bottom right hand corner of the report click the link: "Export In Query ready Mode"
    (this opens the report so you can use it as an Excel retrieve)
    - from the Hyperion menu, select File>Export>Excel
    (this exports the headers as objects and the data grid, so you can manipulate in Excel).
    Cheers, Iain

  • Converting Smartforms output content into HTML File

    Hi,
    I have a requirement, Smartforms output contents needs be converted as HTML File and it should be sent as email.
    I am able to get the Smartforms output in html format but the output is shown as binary format.
    After the fm call the job_output_info parameter is holding the smartforms output content in
    job_output_info-XMLOUTPUT[]           (xsf content)
    job_output_info-XMLOUTPUT-STSHEET[]   (css content)
    job_output_info-XMLOUTPUT-TRFRESULT[] (html content)
    Help me out how to handle the job_output_info details to html format.
    Code
    DATA v_fm_name TYPE rs38l_fnam.
    DATA v_tdsfname TYPE tdsfname VALUE 'ZVR39_SF'.
    DATA output_options TYPE ssfcompop.
    DATA job_output_info TYPE ssfcrescl.
    DATA document_output_info TYPE ssfcrespd.
    DATA job_output_options TYPE ssfcresop.
    DATA w_control TYPE ssfctrlop.
    *-Finding the Smartform Layout Name
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = v_tdsfname
      IMPORTING
        fm_name            = v_fm_name
      EXCEPTIONS
        no_form            = 1
        no_function_module = 2
        OTHERS             = 3.
    *-Defining the output to HTML Format
    *-Activating XSF Output
    output_options-xdfcmode   = 'X'.
    output_options-xdf        = space.
    output_options-xsfcmode   = 'X'.
    output_options-xsf        = 'X'.
    output_options-xsfoutmode = 'A'. "
    output_options-xsfoutdev  = 'P863'.
    output_options-xsfformat  = 'X'.
    *-Calling the Smartform Layout
    CALL FUNCTION v_fm_name
      EXPORTING
        output_options       = output_options
        user_settings        = 'X'
      IMPORTING
        document_output_info = document_output_info
        job_output_info      = job_output_info
        job_output_options   = job_output_options
      EXCEPTIONS
        formatting_error     = 1
        internal_error       = 2
        send_error           = 3
        user_canceled        = 4
        OTHERS               = 5.
    Giri

    Hi,
    Check this link.In that,I am converting the output of smartform to PDF and then attaching it through mail.
    https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap code samples/smartforms/smartform in abap.pdf

  • How to save report output in a PDF file and also show preview in one processing cycle

    Hi every body,
    We R re-developing an application from COBOL to Oracle.
    Using Reports 6i 6.0.8.11.3.
    The requirement is that whenever a user processes a report, it should be saved on disk say in PDF format. Then it should be shown in Reports Runtime Previewer.
    So far I have explored that only one of theses can be done in one processing cycle.
    That is if we set DESTYPE to FILe it will only be saved to disk. If we set DESTYPE to Preview, the report can be previewed and optionally printed but not saved.
    I want that both saving to disk and preview should be possible.
    I have explored .DST file option but there is only provision for FILE, PRINTER and MAIL.
    Printing facility should be optional, otherwise we would have used FILE and PRINTER destinations in .DST file.
    Once that file is saved on disk, it can later on be printer if user requires more copies.
    I would prefer a solution other than User_exit as I don't have training in developing user_exits.
    Any help please.
    Tariq

    I had a similar requirement and decided to run the report from forms. When a button is pressed, the report is run to create the pdf file, followed by separate command to invoke acrobat reader or internet explorer to display the file, rather than using reports previewer.
    The file can be displayed from forms by a host command in client server, or by web.show_document on the web.

  • Save rendered JSF page into HTML

    Hi,
    We have a requirement wherein, a rendered JSF (i.e. JSP) page needs to be saved in HTML form on server side.
    One option is to write filter which will process the response and write to File. But in this case filter will intercept all request, while in my case, I want to generate HTML only when user click on particular button. For rest of the request it should bypass this filter.
    Apart from filter, can we have some API which will do this?
    Thanks
    Chintan

    Is the page contents idempotent or not? If it is, just use java.net.URLConnection to query the same page. If not, then you need to do more work. You need to clone the response stream before it is been sent to the client and store it somewhere. You can do it using a Filter which replaces the HttpServletResponse with your own HttpServletResponseWrapper implementation.

  • How to save an output job into external directory in Workspace 11.1.2.1 ?

    Hi All,
    I am using Workspace 11.1.2.1.600 and I'm trying to set an external directory from an ouput job, but I'm not getting to set it.
    I click on Navigate --> Schedule --> Batch Schedule and choose my batch file. Then I right click on it and choose properties after fill up all information I've reach the Destination optionn and choose "Export to PDF" and "Export to an external Diectory". But I want to redirect it to another directory.
    How can do that ? Does someone could help on that ?
    Thanks,
    Regards

    An export folder needs to be defined by running FRConfig.cmd,syntax related details are available on page 17 of
    http://docs.oracle.com/cd/E17236_01/epm.1112/fr_webadmin.pdf

  • How to download the report output  into PDF format

    Hi friedns
    from the report output when user clicks download button
    it has to download to PDF format
    how to do this
    thanks in advance
    venu

    hi venu,
    check this sample code
    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to
    PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to
    create PDF files.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant. Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
    tsp01.
    *-- STRUCTURES
    data:
    mstr_print_parms like pri_params,
    mc_valid(1) type c,
    mi_bytecount type i,
    mi_length type i,
    mi_rqident like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
    mtab_pdf like tline occurs 0 with header line,
    mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
    p_repid like sy-repid, " Report to execute
    p_linsz like sy-linsz default 132, " Line size
    p_paart like sy-paart default 'X_65_132'. " Paper Format
    start-of-selection.
    concatenate 'c:\'
    p_repid
    '.pdf'
    into mc_filename.
    *-- Setup the Print Parmaters
    call function 'GET_PRINT_PARAMETERS'
    exporting
    authority= space
    copies = '1'
    cover_page = space
    data_set = space
    department = space
    destination = space
    expiration = '1'
    immediately = space
    in_archive_parameters = space
    in_parameters = space
    layout = space
    mode = space
    new_list_id = 'X'
    no_dialog= 'X'
    user = sy-uname
    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.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
    if mstr_print_parms-pdest = space.
    mstr_print_parms-pdest = 'LOCL'.
    endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
    mstr_print_parms-linsz = p_linsz.
    mstr_print_parms-paart = p_paart.
    submit (p_repid) to sap-spool without spool dynpro
    spool parameters mstr_print_parms
    via selection-screen
    and return.
    *-- Find out what the spool number is that was just created
    perform get_spool_number using sy-repid
    sy-uname
    changing mi_rqident.
    *-- Convert Spool to PDF
    call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
    exporting
    src_spoolid= mi_rqident
    no_dialog = space
    dst_device = mstr_print_parms-pdest
    importing
    pdf_bytecount = mi_bytecount
    tables
    pdf = mtab_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.
    call function 'DOWNLOAD'
    exporting
    bin_filesize = mi_bytecount
    filename = mc_filename
    filetype = 'BIN'
    importing
    act_filename = mc_filename
    tables
    data_tab = mtab_pdf.
    FORM get_spool_number *
    Get the most recent spool created by user/report *
    --> F_REPID *
    --> F_UNAME *
    --> F_RQIDENT *
    form get_spool_number using f_repid
    f_uname
    changing f_rqident.
    data:
    lc_rq2name like tsp01-rq2name.
    concatenate f_repid+0(8)
    f_uname+0(3)
    into lc_rq2name separated by '_'.
    select * from tsp01 where rq2name = lc_rq2name
    order by rqcretime descending.
    f_rqident = tsp01-rqident.
    exit.
    endselect.
    if sy-subrc ne 0.
    clear f_rqident.
    endif.
    endform." get_spool_number
    Regards,
    Naveen

  • Submitting Report output to spool

    Hi All,
           We have problem while submitting reort output to spool.Have tried using FM'Get_print_parameters and submitting the report using stmt
    SUBMIT REP TO SAP-SPOOL AND RETURN.We have to submit report output to spool
    But its going to infinite loop.Any help is utmost regarded as this is very urgent.
    Thanks and Regards,
    Raj.

    Hi,
    See this sample code it might help u.
    http://sap.ionelburlacu.ro/abap/sap2/Save_Report_Output_to_a_PDF_File.html
    Save Report Output to a PDF File
    This report takes another report as input, and captures the output of that report. The output is then converted to PDF and saved to a local file. This shows how to use some of the PDF function modules, as well as an easy way to create PDF files.
    One thing I am not thrilled about is how the spool number is retrieved. If anyone has any better method, please let me know! Until I actually have a production use for a program like this, I will not try to find a better way.
    Source Code Listing
    report zabap_2_pdf.
    *-- Enhancements: only allow to be run with variant.  Then called
    *-- program will be transparent to users
    *-- TABLES
    tables:
      tsp01.
    *-- STRUCTURES
    data:
      mstr_print_parms like pri_params,
      mc_valid(1)      type c,
      mi_bytecount     type i,
      mi_length        type i,
      mi_rqident       like tsp01-rqident.
    *-- INTERNAL TABLES
    data:
      mtab_pdf    like tline occurs 0 with header line,
      mc_filename like rlgrap-filename.
    *-- SELECTION SCREEN
    parameters:
      p_repid like sy-repid, " Report to execute
      p_linsz like sy-linsz default 132, " Line size
      p_paart like sy-paart default 'X_65_132'.  " Paper Format
    start-of-selection.
    concatenate 'c:'
                p_repid
                '.pdf'
      into mc_filename.
    *-- Setup the Print Parmaters
      call function <b>'GET_PRINT_PARAMETERS'</b>
       exporting
         authority= space
         copies   = '1'
         cover_page                   = space
         data_set = space
         department                   = space
         destination                  = space
         expiration                   = '1'
         immediately                  = space
         in_archive_parameters        = space
         in_parameters                = space
         layout   = space
         mode     = space
         new_list_id                  = 'X'
         no_dialog= 'X'
         user     = sy-uname
       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.
    *-- Make sure that a printer destination has been set up
    *-- If this is not done the PDF function module ABENDS
      if mstr_print_parms-pdest = space.
        mstr_print_parms-pdest = 'LOCL'.
      endif.
    *-- Explicitly set line width, and output format so that
    *-- the PDF conversion comes out OK
      mstr_print_parms-linsz = p_linsz.
      mstr_print_parms-paart = p_paart.
    <b> submit (p_repid) to sap-spool without spool dynpro
                       spool parameters mstr_print_parms
                       via selection-screen
                       and return.</b>*-- Find out what the spool number is that was just created
      perform get_spool_number using sy-repid
                 sy-uname
        changing mi_rqident.
    *-- Convert Spool to PDF
      call function 'CONVERT_ABAPSPOOLJOB_2_PDF'
        exporting
          src_spoolid= mi_rqident
          no_dialog  = space
          dst_device = mstr_print_parms-pdest
        importing
          pdf_bytecount                  = mi_bytecount
        tables
          pdf        = mtab_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.
    call function 'DOWNLOAD'
         exporting
              bin_filesize            = mi_bytecount
              filename                = mc_filename
              filetype                = 'BIN'
         importing
              act_filename            = mc_filename
         tables
              data_tab                = mtab_pdf.
    *       FORM get_spool_number *
    *       Get the most recent spool created by user/report              *
    *  -->  F_REPID               *
    *  -->  F_UNAME               *
    *  -->  F_RQIDENT             *
    form get_spool_number using f_repid
         f_uname
                    changing f_rqident.
      data:
        lc_rq2name like tsp01-rq2name.
      concatenate f_repid+0(8)
                  f_uname+0(3)
        into lc_rq2name separated by '_'.
      select * from tsp01 where  rq2name = lc_rq2name
      order by rqcretime descending.
        f_rqident = tsp01-rqident.
        exit.
      endselect.
      if sy-subrc ne 0.
        clear f_rqident.
      endif.
    endform." get_spool_number
    Hope this helps u.
    Also refer
    Re: PDF Output
    PDF Output
    Message was edited by: Judith Jessie Selvi

  • Set My Report output to A4 Size

    Hi All,
    May i know how to set my report output automatically to set to A4 size
    Thanks in Advance
    Have a NIce day

    Hi Tim
    Thanks for your response.
    I have used landscape mode and as my table in the report are wide and at present the pdf is generated in letter size .
    Is there any way to restrict my output to A4 so that they wont need to change any print settings before they take the print .As i cannot use the A4 size paper in design as many of reports tables are wide.
    Have a Nice day.

  • Save a the output of a SAP report into Html

    Hi , I have a SAP report which in MM to determine pro rate factor of oil & water for the  given combination of  plant, storage location, material, period and   year  . When we run the report it produces a report which can be printed and signed by managers, I wnat to save this to N drive automatically for future use just incase something goes wrong .So I want to save this automatically in html in the N drive, how do I do that please.
    Thanks
    Aarav

    Hi ,
    try this
    USE THE FM
              CALL FUNCTION 'WWW_HTML_MERGER'
                   EXPORTING
                        template    = rep_template
                   IMPORTING
                        html_table  = html[]
                   CHANGING
                        merge_table = merge_table[]
                   EXCEPTIONS
                        OTHERS      = 1.
    I think this will convert the output into HTML format.
    So in the HTML[] you will have the data.
    NOW upload this data into the N drive.
    I got this code from
    include FGRWEF98B_F98_BATCH_OUTPUT_CLO.
    Check this include .
    Regards,
    Venkatesh.

Maybe you are looking for