Generate Microsoft execl format from developer report

how can i generate my report in excel format. MY cliec=nt needs me to give them my oracle report in microsoft excel soft copy.
how do i do this pls

One way to do this would be to use PL/SQL from a button on the report. In the when-button-trigger add something like:
procedure ExcelButtonAction is
FileHandle text_io.file_type;
FileLine varchar2(4000);
path varchar2(200);
cursor cur_year is
select table_name, column_name from all_tabcolumns;
begin
path := win_api_dialog.save_file('list_of_tables.csv','Select save location and filename ','C:\TEMP');
-- open the file
FileHandle := text_io.fopen(path,'w');
-- make 1st line of file the titles of the column so user will now what the data represents in EXCEL
text_io.put_line(FileHandle,'Table Name'||','||
'Column Name');
-- loop through the cursor and write to the file
for rec in cur_year loop
FileLine := rec.table_name ||','||rec.column_name;
text_io.put_line(FileHandle,FileLine);
end loop;
-- now close file
TEXT_IO.fclose(FileHandle);
exception
when others then
text_io.put_line(FileHandle,sqlerrm);
srw.message (200,sqlerrm);
TEXT_IO.fclose(FileHandle);
end;
Hope this helps.

Similar Messages

  • Getting a report in excel format from oracle report builder 10gDS release2

    I want to get a report in excel format from oracle report builder 10gDS release2.
    Is there ne method by which minimum effort is required for changing already made reports .
    I have searched for it on internet :-
    http://www.oracle.com/webapps/online-help/reports/10.1.2/state/content/navId.3/navSetId._/vtTopicFile.htmlhelp_rwbuild_hs%7Crwwhthow%7Cwhatare%7Coutput%7Coutput_a_simpleexcel~htm/
    Example, given in the last of the page opened from the above url, is not working.
    Can neone plz explain the example and how to use it
    Thanks & Regards
    JD

    Ok, for the release 2 its quite straightfoward, in your calling form you would have something like this code:
    declare
         pl_id ParamList;
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_rep_status VARCHAR2(20);
    v_repsrv     VARCHAR2(100):= 'yourreportserver';
    v_serv varchar2(50) := 'yourservername' ;
    begin
    pl_id := Get_Parameter_List('tmpdata');
    if not id_null(pl_id) then
    Destroy_Parameter_List( pl_id );
    end if;
    pl_id := Create_Parameter_List('tmpdata');
    Add_Parameter(pl_id,'DESTYPE' ,TEXT_PARAMETER,'Screen' );
    Add_Parameter(pl_id,'PARAMFORM' ,TEXT_PARAMETER,'NO' );
    repid := FIND_REPORT_OBJECT('yourreport');     SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,RUNTIME);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER, v_repsrv);
    set_report_object_property(repid,REPORT_DESTYPE,CACHE );
    set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
    v_rep := RUN_REPORT_OBJECT(repid,pl_id);
    v_rep := substr(v_rep,length(v_repsrv)+2,10 ) ;
    end;
    I have plenty of reports being formated to excel with this same method so it should work for you, the only diference with my previous code is this line.
    set_report_object_property(repid,REPORT_DESFORMAT,'SPREADSHEET' );
    The rest remains untouched.
    Hope it helps.

  • How I could generate an XML file from a report in version 4.0B

    Good morning,
    How could I generate an XML file from a report? Please note that I am using version 4.0B
    I don't have access to
    Billy Vital

    Hi,
            In the Class CL_XML_DOCUMENT,
                 we have a method  EXPORT_TO_FILE to download an XML file.

  • Generate an HTML file from a Report in ABAP

    Good morning,
    How I could generate an HTML file from a report.
    Any Ideas... I have found the function WWW_ITAB_TO_HTML, but someone has the standar code and how use this function?
    Thanks a lot,
    Hernán Restrepo

    Hi,
    I am facing a similar problem.I did try using the function module WWW_ITAB_TO_HTML in the reoprt program, as I'm trying to generate a url from a report, but i'm not able to get the expected results. The code is given below. Could someone please try and help me resolve this issue.Thanks in advance.
    DATA:   emp_name                     TYPE char80.
    DATA:   it_itabex                    TYPE zdb_ex_tty,
            it_emp                       TYPE TABLE OF zis_emp,
            it_org                       TYPE TABLE OF zis_org,
            it_pos                       TYPE TABLE OF zis_pos,
            it_pos_alloc                 TYPE TABLE OF zis_pos_alloc,
            it_res                       TYPE TABLE OF zis_res,
            it_res_alloc                 TYPE TABLE OF zis_res_alloc,
            ls_itabex                    TYPE zdb_ex_s.
    DATA:   lv_filename                  TYPE string,
            lv_path                      TYPE string,
            lv_fullpath                  TYPE string,
            lv_replace                   TYPE i.
    DATA qstring LIKE it_itabex OCCURS 10.
    DATA: url(200), url2(200), url3(200), fullurl(200).
    FIELD-SYMBOLS: <fs_emp>              LIKE LINE OF it_emp,
                   <fs_org>              LIKE LINE OF it_org,
                   <fs_pos>              LIKE LINE OF it_pos,
                   <fs_pos_alloc>        LIKE LINE OF it_pos_alloc,
                   <fs_res>              LIKE LINE OF it_res,
                   <fs_res_alloc>        LIKE LINE OF it_res_alloc.
    Report Program to export data from database to Excel.
    Populate all the tables that have to be exported.
    SELECT * FROM zis_org       INTO TABLE it_org.
    SELECT * FROM zis_pos       INTO TABLE it_pos.
    SELECT * FROM zis_pos_alloc INTO TABLE it_pos_alloc.
    SELECT * FROM zis_emp       INTO TABLE it_emp.
    SELECT * FROM zis_res_alloc INTO TABLE it_res_alloc.
    SELECT * FROM zis_res       INTO TABLE it_res.
    Append the Column Header
    CLEAR ls_itabex.
    ls_itabex-ipp_pos_id            = 'IPP Pos ID'.
    ls_itabex-emp_name              = 'Name'.
    ls_itabex-dt_of_join            = 'JoinedOn'.
    ls_itabex-emp_status            = 'Status'.
    ls_itabex-org_name              = 'Org'.
    ls_itabex-prj_name              = 'Project'.
    ls_itabex-mgr_name              = 'Line'.
    ls_itabex-designation           = 'Designation'.
    ls_itabex-specialization        = 'Specialization'.
    APPEND ls_itabex TO it_itabex.
    Append all the tables into one internal table
    LOOP AT it_pos_alloc ASSIGNING <fs_pos_alloc>.
      CLEAR ls_itabex.
      ls_itabex-ipp_pos_id          = <fs_pos_alloc>-ipp_pos_id.
      READ TABLE it_emp ASSIGNING <fs_emp> WITH KEY emp_guid = <fs_pos_alloc>-emp_guid.
      IF sy-subrc = 0.
        CONCATENATE <fs_emp>-emp_fname <fs_emp>-emp_lname INTO ls_itabex-emp_name  SEPARATED BY space.
        ls_itabex-dt_of_join        = <fs_emp>-dt_of_join.
        ls_itabex-emp_status        = <fs_emp>-emp_status.
        ls_itabex-specialization    = <fs_emp>-specialization.
      ENDIF.
      READ TABLE it_pos ASSIGNING <fs_pos> WITH KEY ipp_pos_id = <fs_pos_alloc>-ipp_pos_id.
      IF sy-subrc = 0.
        ls_itabex-designation       = <fs_pos>-designation.
        READ TABLE it_org ASSIGNING <fs_org> WITH KEY  org_id = <fs_pos>-org_id.
        IF sy-subrc = 0.
          ls_itabex-org_name        = <fs_org>-org_name.
          ls_itabex-mgr_name        = <fs_org>-mgr_name.
        ENDIF.
      ENDIF.
      READ TABLE it_res ASSIGNING <fs_res> WITH KEY org_id = <fs_org>-org_id.
       ls_itabex-org_name         = <fs_org>-org_name.
      APPEND ls_itabex TO it_itabex.
    ENDLOOP.
    url = 'http://testweb/scripts/wgate/zvw10a/!?~language=en'.
    url2 = '&~OkCode(LGON)=LGON&login-login_user='.
    url3 = '&vbcom-vbeln='.
    CONCATENATE url url2 url3 INTO fullurl.
    WRITE: /'Staffing Excel'.
    CALL FUNCTION 'WWW_SET_URL'
      EXPORTING
        offset        = 12
        length        = 10
        func          = fullurl
      TABLES
        query_string  = qstring
      EXCEPTIONS
        invalid_table = 1
        OTHERS        = 2.
    Thanks & Regards,
    Preethi.

  • Remove Reschedule jobs from Developer Reports Sever 6i

    Dear All,
    Please guide me how i can remove reschedule jobs from Developer Reports 6i
    Regards
    USMAN ALI

    Install Forms in one directory (You can have reports in the same
    directory).
    Install oracle DB in another directory.
    Don't change any file and reboot.
    The listener will start automatically as a service.
    (If not from a command line write "lsnrctl start" to start it).
    To connect from forms/report to the DB you need to activate the
    sqlnet easy config tool from the directory where forms is.
    Follow the wizard to define an entry in the tnsnames.ora file
    automatically.
    Then you can use your forms with the DB.
    (IF you get problems it usually helps to let us know the error
    code you get so we can direct you in the correct direction).

  • How to generate a Text file from a Report

    Hi Friends,
    I need to generate a Text file foramat from my Report.My client is having a text file in a standard format.I need to Generate this Text file according to that text format.
    My requirement is For one production order there will be so many line items and for each line item based on its Quantity i need to generate serial numbers.
    For Ex for Production order 100 there r 3 line items.If 1st line item is of Quantity 20.I need to Generate 20 serial numbers for the 1st line item and the same for the remaining line items also.
    How can i proceed.I need to do dis based on the production order Number.
    In d selection screen i need to put the fields Production order Number and From:----
    To:----
      and u button Generate Text file.If I click on Generate Text file Text file should be generated.
    Thanks & Regards,
    Chitty.
    Edited by: chitty d on Mar 12, 2009 5:44 AM

    Hi,
    As far as i understand from your requirements, it like you need all the data item leve into a text file.
    You can fetch all the relevant data from variuos tables and then use  GUI_Download into a text file.

  • Error when exporting to other format from crystal report

    Hi,
    I have been facing an error "Method 'IRCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version = 11.0.3300.0, Culture-neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overriden." while trying to export the crystal report to another format (e.g. pdf and excel) from an application from a software vendor.
    For your information, the machine OS that is running the application is Window 7. Before I did the installation of the application, it already has Visual Studio 2005 and Crystal Report XI Release 1 installed in the Window  7 system. After I had the above error, I went to search more information on the website and found out that I need to upgrade to Crystal Report XI Release 2 from the search results. However, after I upgraded from Crystal Report XI Release 1 to Crystal Report XI Release 2 and apply service pack 6, I still faced the same error when I tried to export. I even tried to uninstall Visual Studio 2005 and Crystal Report XI Release 2 but I'm still facing the same above error while exporting. I also tried to reinstall the application from software vendor but the same error come out.
    Your help is highly appreciated. Thanks!!
    Regards,
    Jennifer

    Good morning Jennifer
    When you say:
    " I also tried to reinstall the application from software vendor but the same error come out."
    I wonder if the app you are trying to install is from a 3rd party vendor / developer? If it is, installing CR XI r2 (11.5) will not resolve the issue for you. From the error, the app was compiled with CR XI R1 (11.0) and the only way to get that app to use CR XI r2 will be to recompile it with CR XI r2 assemblies. E.g.; you will have to have access to the source code and then recompile the app, ensuring that you are referencing CR XI r2 assemblies. Or am I missing something here?
    Ludek

  • Date Formatting and SSN Formatting from BIP Report

    Hello,
    I found out how to format phone numbers.
    I just need help in formatting 2 fields from our report.
    1. The Call Date (MM/DD/YYYY HH:MM:SS AM/PM)
    2. SSN (123-45-6789)
    First, I am using the command below to convert the date into canonical format after the namespace:psfn.
    <?psfn:totext(ssWarrantyUpdatedDt, 'YYYY-MM-DDTHH:MI:SS')?>
    I then tried formatting the date using the Microsoft Format Mask definitions but it didn't work.
    On the SSN, I didn't see anything from the bookshelf that shows me how to do this formatting.
    Can anyone please help me?
    Thank you

    Hi,
    If you XML data is coming from Oracle Report (RDF), why dont you do date and SSN formatting in SQL itself. So that you will get directly the required format in XML. That is how I am doing in my report. Most of the time it is easy to make changes in Oracle Report SQL rather than in template bcoz BI publisher dont support so many MS Word properties.
    Thanks,
    Omkar

  • Exporting Queries from Developer Reports .rdf file

    Is there a way I can extract the queries from the Developer Reports .rdf file.
    We have the reports on a NT File server from where the users access the reports. We do not have the Report tables installed in the database.
    We are using Developer Reports 3.0
    Your help is highly appreciated.
    Thanks,
    Chegi Reddy

    This isn't possible directly. You could use the conversion utility to convert the rdf files to rex files (textual representations), or XML files with the 9i release, and then parse these files to get the queries. Note that since rex is considered an 'internal' representation there's no documentation on the structure, but it shouldn't be too difficult to figure out where the queries are.
    Hope this helps,
    Danny

  • Generate piped-delimited formate from xml formate.

    Does anybody know how to create a parser which will take any XML file and convert it into a pipe-delimited format?
    I need to generate a pip-delimited format file from a xml file.

    XML describes a tree structure. You won't be able to convert it into a pipe-delimited structure unless there's additional structural elements there sufficient to allow it to describe trees. If you were thinking of just having newlines delimit records and pipes delimit fields, that probably won't cut it. You could list data redundantly or use blank fields to help describe the tree structure, but that may or may not be what you want.
    [add]
    The point is that you have to decide what format you want, exactly.
    BTW I once did a project like this that created an HTML table (another square format) from an XML document. We used SAX. It was pretty straightforward if you just throw a stack in there. But again you have to flesh out the requirements of what the output format will be before you can proceed.
    Edited by: paulcw on Jun 17, 2010 1:05 PM

  • Dynamic content and Generating in many formats from RH HTML

    Hi,
    Working in RH HTML
    1. I was looking for info/thread which gives an idea on how
    to have one content used in many projects and chaning that on
    content would effect each project. ie. If I have a HTML project
    created and need a specific topic to display another topic/html
    file outside that project, how can I do this? And also when I
    change anything in the master topic/html it should effect all other
    projects were am using this file. OR if this is not possible how
    can I get another topic/html file to display in a different
    project?
    2. I generated my HTML project into many formats e.g.
    PDF,WORD,HTML,WEBHELP and so on.
    Am using a template (.htt ) to add Header and Footer to all
    the topics in the project. But when I go and view the pdf,word file
    the header and footer is not there. Though I can see this header
    and footer in the .chm file created
    How can I make this header and footer visible in the pdf,word
    files?
    Thx
    Kewal

    Take a look at the topics on Customising | Terminology and
    Printing on my sites. It covers what can be done.
    In short there are ways of getting the same info into more
    than one topic in one project but not more than one. However, the
    drawbacks may not suit.
    You will lose headers and footers when you generate printed
    output.

  • Generate a Work Item from a report

    Hi,
    I'm writing a report that needs a Work Item to be generated. It just has to be kinda notification that goes to agent's inbox.
    Could you please let me know the FM that can be used to do this?
    Thanks..

    Hi,
      Try using the function module SWW_WI_START..
    Thanks,
    Naren

  • Cannot export crystal report in excel format from crystal report viewer

    This problem occurs on only one workstation.
    Open Advanced Reports > Enter workorder # > Click on 'workorder work(uninvoiced)' > Work order opens.
    Click on icon "Export report"
    Save as type: change to .xls
    Error: Crystal Report Windows Forms Viewer. Error in file
    SAP.......rpt:
    Error detected by export DLL:
    Export failed.

    Try adding c:\Program Files\Business Objects\BusinessObjects Enterprise 12.0\win32_x86 to your windows enviroment variable PATH then restart.

  • Generate PDF file from a report using greek characters

    Dear all,
    I tried to generate a PDF file from a Report having greek characters on it.While in previewer I could see everything OK, when PDF file was generated all greek characters had been substituted by symbols...
    Any ideas, suggestions and workarounds are welcome.
    Thanx a lot!

    hi Kiriakos,
    which version are you using ?
    please test this with reports 9i since PDF support
    has been enhanced there.
    to test i would suggest to run the report from rwclient
    as well and specify desformat=pdf and to a generate to
    file within builder to see if the same behavior occurs.
    if this problem reproduces there as well i suggest
    to contact oracle support to log the problem.
    regards,
    christian

  • Code generate report in excel format from portal(Application Server)

    Hi all
    Please give some solution with code generate report in excel format from
    oracle portal(Application Server).

    Not feasible.
    Why? Because "the Excel format" is a binary and proprietary Microsoft file format. And writing a generator to generate Excel files will be complex, and resource expensive. In the vast majority of cases this will not be justified.
    As an alternative the very basic Microsoft XML office format can be used. But note that this is not a a ISO standard (it has been shot down in flames) - and effort and resources for that would be better spend on the Open Document XML standard (which very likely will be ratified as the ISO standard instead).
    Of course, you could have meant a CSV file - in which case, you need to play close attention to details. CSV is not an Excel format. A software designers and developers, our success is determined by attention to technical detail. In which case you are not paying any attention to technical detail by confusing CSV with Excel.

Maybe you are looking for

  • HT3275 Time Machine says my external hard drive does not have enough

    Time Machine says my external hard drive does not have enough space for the current backup.  It needs 34 G out of a 250G hard drive.  All that is on the drive is earlier backups.  I recently added memory, which may confuse Time Machine into thinking

  • Trying to DL PS CC  But say my Operating Systen no longer supported! Running Windows 7  HELP

    Anybody having issued with Download PS CC.  It says my operating system no longer Supported.  Here is what I'm running; Win 7 Service Pack 2 Processor: Intel i7 930 @ 2.80 GHz Ran 13 GB 64 Bit system

  • Help with reuse_uk dataserv-recycling

    Would like to know if anyone has had issues with receiving payment from them as I sent my G5 on the 2nd of March and still not had money transferred into my bank. They hardly reply to emails and when they do they just say same thing, that it takes 21

  • Mail Stationary in Different Languages

    I just bought Leopard for my Macbook and I was looking at the templates for Mail and if I open up any of the templates for, all of the words on the templates except for the titles are in different languages and I cannot even look at the template and

  • INCI codes and CAS-numbers in EH&S

    Hello, This is probably very basic question. I'd like to know how to implement the following requirement: I have a material XXX, three INCI codes A, B, and C. In addition, there are three CAS-numbers. I want to create a kind of a BOM in EH&S for my m