Import report into MS Excel

Hi guyz,
I want to import my report done in SAP in a microsoft excel template. how can i import it using the template i created? Thank You!
Michael

Hi
Any report that you make inside SBO can be exported to excel by clicking the excel button on your toolbar. If it does not open automatically in excel that measn your path in general settings is not defined or macro security in excell is not on low or you don't have full access to the excel folder defined in general settings.
I do not think you can make it go into a template. If you wish to use a template you can do so with XL reporter add on for SAP.
Hope this helps

Similar Messages

  • How to save each section report into different excel sheet?

    Hi all
    How to save each section report into different excel sheet?
    I have a report in which there are 4 sections north south west east now i need to save north in excel sheet 1 , south in sheet2, west in sheet3, and east in sheet4. under each section there is list report.
    Please let me know is it possible are not if possible let me no the procedure to be followed.
    Thank you

    If you're running XI 3.1 you might be able to solve this as follows.
    1. Create four users: east, west, north, south
    2. Create a profile that filters on the variable you used for the section/break
    3. Publish the report
    3.1 Set users created above to be the enterprise recipients
    3.2 Add personalization (the profile created above)
    3.3 Check the Deliver objects to each user in Destinations
    (3.4 You could use %SI_OWNER% to get a nice suffix to the report name)
    This should cause four reports to be created, each with its own "personalized" contents.

  • How to save BI report into normal excel sheet in Bex Analyzer

    Hi Experts,
    version of  Bex Analyzer:
    Bi addon 7.x
    support package 7,patch 1
    version 7004.4.0.5
    excel-2003
    when i am trying to save the report into excel in Bex Analyzer as below:
    file-save as->Microsoft excel work.
    when I open excel I am getting pop up windowu201Dthis file contains macros  with an expired or revoked signature.Since your running under  high security level,these macros will be disabled.u201D
    when I click ok I am getting one more pop upwindow as u201Cmacros  are diabled because the security level is set to high and a digitally signed trusted certificate is not attached to macros.to run the macros,change the security level to a lower setting(not recommended),or request the macros signed by the author  using a certificate  issued by a certificate authority.
    what are these macros? why i am getting this pop up windows
    When i opened  the excel report is not looks like general excel report.how can I generate general excel report .I should not want to get excel report as in bex analyzer.I donu2019t want to have author ,status of data,chart,filter,information in excel report.
    what settings I have to made to save the report in general excel format.
    As i am new to Bi please correct me if i am wrong.
    Anything is appreciable.
    regards,
    naresh.

    Macros in general are nothing but piece of code in excel.
    To allow unsigned macros to run, the Trust all installed add-ins and templates check box must be selected on the Trusted Publishers tab of the Security dialog box. This option is selected by default. If it is not selected (recommended), Excel allows you to run only macros that have trusted digital signatures.
    1. On the Tools menu, point to Macro, and then click Security.
    2. On the Trusted Publishers tab, select the Trust all installed add-ins and templates check box.

  • How to subscribe the report into one excel multiple sheets in ssrs

    Hi Team,
    I have a requirement where i pull my report in one excel with multiple sheets,
    1.I have a Emp_Report where i could subscribe my report into excel format,but here i want to subscribe this into multiple sheets in one excel form.
    2.Is it possible to subscribe the two reports in one excel with mulitiple sheets.i need this also.
    please guide me hw we can achive me ,so that i can start working on that .
    am using sql server 2008R2 sql server edition.
    pls help me out for this

    Hi Ychinnari,
    According to your description, you want to perform subscription for one report or two reports into multiple sheets within a Excel file.
    In Reporting Services, when we add a page break within the report, those pages will be exported into separated sheets in Excel.
    For first requirement, subscribe one report into multiple sheets in one Excel file. We can add a page break within a group, then the report will display on multiple sheets when subscribe into Excel format.
    For second requirement, subscribe one report into multiple sheets in one Excel file. You can add one report as a subreport into the main report, then add pagebreak between main report and subreport.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Writing multiple port data report into single excel file

    I'm working on a STTE automation of an power management unit in which data's from 6 different channels are received from the unit which has to be tested and then verified and co-related with the digital and analog inputs given by the user. So my question is finally how to write all dese six channel's data to a single excel file with multiple work sheets..... Like channel-1 one in sheet1,ch-2 in sheet2 so on.... (these data's from 6 different are received from 6 different serial communication port.)
     pls guide how to forward in the final report generation for abv mentioned requirement in labview

    As nyc mentioned you will have to use ActiveX if you want to do exactly what you discribed but if you're new to LabVIEW that can be a big step.
    In the VI you posted you write your data to xls file but the fact is that you use the write to text file function, so in the end your file is just a simple text file, and of course Excel can open this type of file.
    Maybe you could have your VI to write txt files and then have another bit of code that would transfert the data in each text file to differnt worksheet in a Excel file.
    Or maybe another option would be to write all your data to the same TDMS file (on channel per port) and then use the TDMS Excel Add in to generate an Excel file from the TDMS.
    Feel free to ask more questions :-o
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"

  • Downloading dashboard report into diff Excels

    Hi Gurus,
    I have 4 reports in my dashboard when i download to the excel, these 4 reports has to be placed in 4 different excel sheets.
    can any one help me how to achieve this requirement.
    Thanks,
    Rafi
    Edited by: Rafi.B on Sep 4, 2012 4:46 AM

    Rafi.B wrote:
    Hi Gurus,
    I have 4 reports in my dashboard when i download to the excel, these 4 reports has to be placed in 4 different excel sheets.
    can any one help me how to achieve this requirement.
    Thanks,
    Rafi
    Edited by: Rafi.B on Sep 4, 2012 4:46 AMHi Rafi,
    If I understood correctly..
    Enable Download link for all 4 reports using Report links in Edit dashboard..you will get Download option for each report and you can download them to 4 Excel sheets separately.
    if this is not you are looking for then try to explain ur Requirement clearly ...what you are trying to do?

  • Writing into an excel report from Forms10g in the same worksheet

    Dear all, I need your help pleae,
    I have eveloped a procedure in Forms 10g to write a report into an excel file, Please find below the code
    The problem is that the report is displayed in multiple sheets according to the rows fetched . How can all the data be written in the same sheet
    Actual case:
    IN SHEET 1 IN THE EXCEL FILE ->
    BANK NAME ACCOUNT
    11 XXX 124567890
    IN SHEET 2 IN THE EXCEL FILE ->
    BANK NAME ACCOUNT
    12 XXX 124567891
    etc...........................
    Wanted case:
    In the same sheet 1:
    BANK NAME ACCOUNT
    11 XXX 124567890
    12 XXX 124567891
    etc...................
    DECLARE
         V_BRCH NUMBER(3);
         V_ACC_NUM NUMBER(16);
    V_BANK NUMBER(3);
    V_NAME VARCHAR2(75);
         v_file_name          varchar2(100);
         APP                    CLIENT_OLE2.OBJ_TYPE;
         ARGS                CLIENT_OLE2.LIST_TYPE;
         CELL               CLIENT_OLE2.OBJ_TYPE;
         WS                    CLIENT_OLE2.OBJ_TYPE;
         WB                    CLIENT_OLE2.OBJ_TYPE;
         WSS                    CLIENT_OLE2.OBJ_TYPE;
         WBS                    CLIENT_OLE2.OBJ_TYPE;
         M_ROW               NUMBER:=1; --ROW
         M_COL               NUMBER:=1; --COLUMN
         v_first               NUMBER := 0;
         V_SYSDATE          DATE:=SYSDATE;
         CURSOR     C_CACC     IS
              SELECT     DISTINCT ACC_NUM, BRCH_CODE,BANK,NAME
              FROM     ACCNTS
              ORDER BY BRCH_CODE, ACC_NUM;
    BEGIN
         v_file_name := :N_EXCEL_PATH;     
              --INITIALISE EXCEL
         APP := CLIENT_OLE2.CREATE_OBJ('Excel.Application');
         CLIENT_OLE2.SET_PROPERTY(APP,'Visible', 'FALSE');
         WBS := CLIENT_OLE2.GET_OBJ_PROPERTY(APP, 'Workbooks');
         WB     := CLIENT_OLE2.INVOKE_OBJ(WBS,'Add');
         WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
         CLIENT_OLE2.SET_PROPERTY(app, 'DisplayAlerts', 0);
            WHILE CLIENT_OLE2.GET_NUM_PROPERTY(wss , 'Count') > 1
            LOOP
          --- Get a handle to the 2nd worksheet and delete it
          args := CLIENT_OLE2.CREATE_ARGLIST;
          CLIENT_OLE2.ADD_ARG(args, 2);
          ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args);  
          CLIENT_OLE2.DESTROY_ARGLIST(args);
          CLIENT_OLE2.INVOKE(ws, 'Delete');
          CLIENT_OLE2.RELEASE_OBJ(ws);
            END LOOP;
            CLIENT_OLE2.SET_PROPERTY(app, 'DisplayAlerts', TRUE);
         CLIENT_OLE2.RELEASE_OBJ(wss);
                   OPEN     C_CACC;
                   LOOP
                        FETCH     C_CACC     INTO     V_BRCH     ,     V_ACC_NUM, V_BANK,V_NAME;
                        EXIT     WHEN     C_CACC%NOTFOUND;
                        M_ROW:=1; --ROW
                        M_COL:=1; --COLUMN
                        M_SEQ:=0;
                        WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
                        if v_first = 1
                        then
                             WS     := CLIENT_OLE2.INVOKE_OBJ(WSS,'Add');
                        else
                             args := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(args, 1);
                             ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args); 
                             CLIENT_OLE2.DESTROY_ARGLIST(args);
                             CLIENT_OLE2.INVOKE(ws, 'Select');
                             v_first := 1;
                        end if;
                        CLIENT_OLE2.set_property(WS,'Name',V_SYSDATE);
                        FOR     M_COL     IN     1..3     
                        LOOP
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                             CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','BANK');
                             ELSIF     M_COL = 2
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','NAME');
                             ELSIF     M_COL = 3
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','ACCOUNT');
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
                        M_ROW := M_ROW + 1;
                        FOR     M_COL     IN     1..3     
                        LOOP
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                             CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             ELSIF     M_COL = 2
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             ELSIF     M_COL = 3
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
                             M_SEQ     :=     M_SEQ + 1;
                             IF M_SEQ = 1
                             THEN
                                  M_ROW     :=     M_ROW + 1;
                                  FOR     M_COL     IN     1..3
                                  LOOP
                                       --DETAIL ROWS
                                       ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                                       CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                                       CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                                       IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                                       END IF;
                                  END LOOP;
                                  CLIENT_OLE2.RELEASE_OBJ(CELL);
                             ELSE
                                  M_ROW     :=     M_ROW + 1;
                                  FOR     M_COL     IN     1..3
                                  LOOP
                                       --DETAIL ROWS
                                       ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                                       CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                                       CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                                       CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                                       IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                                       END IF;
                                  END LOOP;
                                  CLIENT_OLE2.RELEASE_OBJ(CELL);
                             END IF;
                        CLIENT_OLE2.RELEASE_OBJ(WS);
                        CLIENT_OLE2.RELEASE_OBJ(WSS);
                   END LOOP;
                   CLOSE     C_CACC;
                   COMMIT;
                   M_ROW:=1; --ROW
                   M_COL:=1; --COLUMN
                   M_SEQ:=0;
                   WSS     := CLIENT_OLE2.GET_OBJ_PROPERTY(APP,'Worksheets');
                   if v_first = 1
                   then
                        WS     := CLIENT_OLE2.INVOKE_OBJ(WSS,'Add');
                   else
                        args := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(args, 1);
                        ws := CLIENT_OLE2.GET_OBJ_PROPERTY(wb, 'Worksheets', args); 
                        CLIENT_OLE2.DESTROY_ARGLIST(args);
                        CLIENT_OLE2.INVOKE(ws, 'Select');
                        v_first := 1;
                   end if;
                   CLIENT_OLE2.set_property(WS,'Name',V_SYSDATE);
                   FOR     M_COL     IN     1..3     
                   LOOP
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                        CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                        IF          M_COL = 1
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','BANK');
                        ELSIF     M_COL = 2
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','NAME');
                        ELSIF     M_COL = 3
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','ACCOUNT');
                        END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                   M_ROW := M_ROW + 1;
                   FOR     M_COL     IN     1..3     
                   LOOP
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS, M_ROW); --- Row
                        CLIENT_OLE2.ADD_ARG(ARGS, M_COL); --- Column
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS', ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                        IF          M_COL = 1
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        ELSIF     M_COL = 2
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        ELSIF     M_COL = 3
                        THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE','-------------');
                        END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                   M_ROW     :=     M_ROW + 1;
                   FOR     M_COL     IN     1..3
                   LOOP
                        --DETAIL ROWS
                        ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                        CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                        CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                        CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                        CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1 AND V_BANK IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                                       ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                                       ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                                       THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                             END IF;
                   END LOOP;
                   CLIENT_OLE2.RELEASE_OBJ(CELL);
                        M_ROW     :=     M_ROW + 1;
                        FOR     M_COL     IN     1..3
                        LOOP
                             --DETAIL ROWS
                             ARGS := CLIENT_OLE2.CREATE_ARGLIST;
                             CLIENT_OLE2.ADD_ARG(ARGS,     M_ROW);     --ROW
                             CLIENT_OLE2.ADD_ARG(ARGS,     M_COL);     --COLUMN
                             CELL := CLIENT_OLE2.GET_OBJ_PROPERTY(WS,'CELLS',ARGS);
                             CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
                             IF          M_COL = 1 AND V_BANK IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_BANK);
                             ELSIF     M_COL = 2 AND V_NAME IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_NAME);
                             ELSIF     M_COL = 3 AND V_ACC_NUM IS NOT NULL
                             THEN     CLIENT_OLE2.SET_PROPERTY(CELL, 'VALUE',V_ACC_NUM);
                             END IF;
                        END LOOP;
                        CLIENT_OLE2.RELEASE_OBJ(CELL);
              CLIENT_OLE2.RELEASE_OBJ(WS);
              CLIENT_OLE2.RELEASE_OBJ(WSS);
              EXIT WHEN :SYSTEM.LAST_RECORD = 'TRUE';
              NEXT_RECORD;
         --SAVE AS THE EXCEL FILE
         ARGS := CLIENT_OLE2.CREATE_ARGLIST;
         CLIENT_OLE2.ADD_ARG(ARGS, v_file_name);
         CLIENT_OLE2.INVOKE(WB, 'SAVEAS',args);
         CLIENT_OLE2.DESTROY_ARGLIST(ARGS);
         --CLOSING CODE
         CLIENT_OLE2.INVOKE(WBS,'CLOSE');
         CLIENT_OLE2.RELEASE_OBJ(WBS);
         CLIENT_OLE2.invoke(app,'Quit');
         CLIENT_OLE2.RELEASE_OBJ(APP);
         CLIENT_OLE2.INVOKE(WB,'CLOSE');
         CLIENT_OLE2.RELEASE_OBJ(WB);
    EXCEPTION WHEN OTHERS THEN
         MESSAGE(SQLERRM);     
    END;

    Maybe you should set the value for v_first to a value greater than 1 after invoking the 'Add'-method.

  • Report painter report in portal - Excel output in SAP GUI for HTML

    Dear sirs,
    I need your expertize. I would like to let my users display (Excel in place)/ save the result of my report painter reports into MS Excel. I have found notes 499262 a 314568, but didn´t understand the message (or there is no message:)). Does that mean I cannot use Excel in place together with Report painter and SAP GUI for HTML?
    Second question: is there a place (user exit in generated code? I don´t even know what I am looking for) to get the data provided by the report painter engine and send the retrieved data to some custom function (to be able to call the Adobe form, to save it as a text file or any option how to manipulate the resulting data...?).
    thank you for your time and effort,
    regards Otto

    Hi Otto,
    You can send print the report to the spool and then use RSTXPDFT4 program to convert this spool to PDF file. Alternatively, you can export the spool to spreadsheet or ASCII file via SP01 transaction.
    Additinally, I'm not aware of unability to use Excel output with SAP GUI interface.
    Regards,
    Eli

  • Download a classical Report output to excel

    Hi All,
    We have a requirement to download the output of a classical report into a Excel sheet and it should be in the same format as the report output.We don't  just want to dump the internal table data into excel but need to display the classical report outputas it is in the excel sheet.
    Regards,
    Ashish

    Hi there,
    I am not sure on your requirement, but if you want to write a program that manipulates Excel, you can choose to use OLE objects. Below is some sample code.
    REPORT  ZTEST_EXCEL.
    INCLUDE ole2incl.
    DATA: application TYPE ole2_object,
    workbook TYPE ole2_object,
    sheet TYPE ole2_object,
    cells TYPE ole2_object.
    CONSTANTS: row_max TYPE i VALUE 256.
    DATA index TYPE i.
    DATA: BEGIN OF itab1 OCCURS 0, first_name(10), END OF itab1.
    DATA: BEGIN OF itab2 OCCURS 0, last_name(10), END OF itab2.
    DATA: BEGIN OF itab3 OCCURS 0, formula(50), END OF itab3.
    *START-OF-SELECTION
    START-OF-SELECTION.
    APPEND: 'Peter' TO itab1, 'Ivanov' TO itab2,
    '=Sheet1!A1 & " " & Sheet2!A1' TO itab3,
    'John' TO itab1, 'Smith' TO itab2,
    '=Sheet1!A2 & " " & Sheet2!A2' TO itab3.
    CREATE OBJECT application 'excel.application'.
    SET PROPERTY OF application 'visible' = 1.
    CALL METHOD OF application 'Workbooks' = workbook.
    CALL METHOD OF workbook 'Add'.
    * Create first Excel Sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 1.
    CALL METHOD OF sheet 'Activate'.
    SET PROPERTY OF sheet 'Name' = 'Sheet1'.
    LOOP AT itab1.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab1-first_name.
    ENDLOOP.
    * Create second Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 2.
    SET PROPERTY OF sheet 'Name' = 'Sheet2'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab2.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Value' = itab2-last_name.
    ENDLOOP.
    * Create third Excel sheet
    CALL METHOD OF application 'Worksheets' = sheet
    EXPORTING #1 = 3.
    SET PROPERTY OF sheet 'Name' = 'Sheet3'.
    CALL METHOD OF sheet 'Activate'.
    LOOP AT itab3.
    index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'Formula' = itab3-formula.
    SET PROPERTY OF cells 'Value' = itab3-formula.
    ENDLOOP.
    * Save excel speadsheet to particular filename
    CALL METHOD OF sheet 'SaveAs'
    EXPORTING #1 = 'c:\temp\exceldoc1.xls' "filename
    #2 = 1. "fileFormat
    * Closes excel window, data is lost if not saved
    * SET PROPERTY OF application 'visible' = 0.
    Edited by: Thung Yuen Yap on Aug 10, 2010 1:52 PM

  • Report output in excel format.

    Dear Friends,
    I have created a report in character mode and I want to store the output of that report into an excel file. So that data of each column with heading will be stored in seperate coulmns(with each row of output in each row in excel file).
    Output as follows:-
    EMPNO ENAME DEPT
    0099 JOHN ART
    0011 SMITH ENGG
    and so on...
    I hope I will get the solution quickly.
    Thanks in advance.
    Sanjeev Bhattacharya

    Hey Sandeep,
    I am working on a similar format for a report and if possible can you please give me some guidelines. I have initially created reports using XML Publisher, but for those , the output preview format was PDF. So, if I select the preview format as EXCEL will it give me output in Excel and for this to happen, how do I define the rtf template. I believe the working will be same as for PDF, create a rdf report, get output in XML and apply the template to get the data in Excel or there is something different to this.
    Thanks,
    Sunil

  • Ssrs report export to excel along with parameter filters

    HI,
    In ssrs reports export to excel along with parameter filters,is it possible or not?
    Could you please help me..
    indu

    Hi Sriindu,
    According to your description, you want to export the report into an excel file with the report parameter and filters. And you want to filter data in excel. Right?
    In Reporting Services, the components for exporting report into a file called Reporting Services Rendering Extension. There are three types of Reporting Services rendering extensions: Data Render Extension,
    Soft page-break renderer extensions, Hard page-break rendering extensions. All these three extension are only for rendering data. It can't keep the filters and parameter in the report. Also excel can't support Reporting Services filter in
    an excel file. So your requirement can't be achieved.
    Reference:
    Exporting Reports (Report Builder and SSRS)
    Interactive Functionality for Different Report Rendering Extensions (Report Builder and SSRS)
    If you have any feedback on our support, please click
    here.
    Best Regards,
    Simon Hou

  • Need Spool file 255 characters for background HR Reports into Excel

    We have been looking for a solution for problem this for more than 2 years now.
    Problem:
    1.     Requirement is to run large HR reports – either standard or with Ad Hoc Query in background mode in a company with more than 50,000 employees.
    2.     Nobody wants printed reports these days.  We want to save the forests. Customers prefer to be emailed an Excel file so they can do further data analysis, filtering, pivot tables etc.
    3.     Reports are running OK in foreground for smaller sections of the organisation, where you send the output to Excel from ALV, or save as a local file in spreadsheet format.
    4.     But large reports for entire company are awkward, tie up your PCs resources, and complex reports accessing many tables can timeout before completion.
    5.     So scheduling these reports to run in background would be the ideal solution.
    6.     However when we access the report output from SP02, we find that most reports (say with more than 13 or so fields) have an output wider than 255 characters and the output of the spool file wraps to the next line in Excel.  It is very tricky to then parse the data back into one row for each employee.  And you have a problem if you output is for 50,000 or so employees, because then you file is 100,000 rows and will not load completely into Excel – limit problem of 65,536 characters.
    7.     We simply want a spool file that does not wrap the data to the next line after 255 characters.
    8.     But how to explain this simple requirement to some technical people. It seems a lot of posts on SDN think we always want to print a spool file.  NO – remember the forests!
    Possible Solutions:
    I see a lot of posts here that refer to OSS note 186603, but they don’t mention the target for the output of the spool is to import into an Excel File (i.e. spreadsheet format).  Just search for 186603 or ” Spool request with more than 255 columns”.  There is also a reference to OSS note 313566.  I am not sure if these will work?
    I have also seen the suggestions that you need to define a customer printer format that does not wrap the output after 255 characters (create a new format type in transaction SPAD).
    Can anyone help us!
    John McKee

    Hi,
    Can you please check whether you can use:
    CONSTANTS C_LF TYPE X VALUE '0A'.
    CONSTANTS C_CR TYPE X VALUE '0D'.
    Regards,
    Lakshmi.

  • How export report into excel sheet automatically using SSRS 2010?

    Hi,
    I have created many reports using SQL Server Data Tool 2010 and at my work, we are using active batch to ran reports every month.
    Now question is, my boss want me to set up reports such a way that when active batch is ran, reports should be exported into excel sheet automatically with the default values given for parameters at some specific folder location. How can I export report
    into excel sheet automatically when active batch is executed?
    Please help me on this. Thanks for the help in advance.
    Vicky

    Check this:
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:/test.xls'
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_output
    Regards.

  • How to convert Oracle Report into Excel

    Hi,
    Please guide for the following:
    I am using, Report Developer 11g and I want to save Oracle report into Excel format, is it possible ?
    Regards,
    Thanks.

    There is a Reports manual you know!
    http://download.oracle.com/docs/cd/E14571_01/bi.1111/b32121/pbr_cla005.htm#i636884

  • I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to customer. Can you please help me on the same?

    HI Experts,
    I have a scenario. Import IDOC into PI and PI transform IDOC to Excel. Using mail adapter attach that Excel using pi and send to vendor. Can you please help me on the same?
    Thanks
    SaiSreevastav

    Hi Sai,
    you can use XSLT or java mapping or adapter module to convert IDOC xml to XLS. Please refer the below blog
    Convert incoming XML to Excel or Excel XML – Part 1 - XSLT Way
    Convert incoming XML to Excel Sheet Part 2 – Adapter Module way
    Convert incoming XML to Excel Sheet
    then after converting to Excel, you can use the payloadswap bean in mail adapter
    XI: Sender mail adapter - PayloadSwapBean - Step by step
    regards,
    Harish

Maybe you are looking for