Accessing same data in Multiple Excel Worksheets

I am trying to create a summary page based on data that is on subsequent worksheets via the Excel template in Bi Publisher 11g.
I wanted to know if there is a way to reference a Group. So if I had a Department (G_D) and a Employees (G_E) groups in the data model and then I wanted to reference G_D on both sheet 1 and Sheet 2 in the spreadsheet how would I do it.
I created the equivalent in the XDO_METADATa Sheet:
XDO_GROUP_?G_D1? <?(.//G_D)?>
XDO_?G_DNO1? <?(.//DEPTNO)?>
and the Template viewer ran but did not print out any departments. When I remove the XDO_GROUP_?G_D1? it prints out all of the departments in one row, rather than in columns as I would like.

Again, as I got no help from the forum, I resolved this by changing the data model within BI Publisher and created another query for the summary data and then referenced this on the other page.
Will leave thread open for a few days in case someone has a better way of doing it.
I wanted to reference the existing data because:
a) it is already there, why should I have to run another query
b) I am guaranteed to get the same results and won't have any rounding type issues when aggregating the individual values.

Similar Messages

  • Uploading multiple EXCEL Worksheets to SAP

    hello everyone.
    i am new to SAP, and i wanted to create a program that would read multiple excel worksheets and appened the values of the file to an internal table.
    can somebody help me with this?
    here's what i wanted to do exactly:
    excel tab:
    worksheet 1:
    pernr  |  begda | endda |
    worksheet 2:
    pernr  |  begda | endda |  address line 1 | address line 2 | phone number
    worksheet 3:
    pernr  |  begda | endda |  Annual salary |
    i wanted those data to be in the following internal tables:
    for worksheet 1: >>>> i_pa0002.
    for worksheet 2: >>>> i_pa0006.
    for worksheet 3: >>>> i_pa0008.
    thanks a lot for future replies.
    Mark

    hi,
    you can use  fm
    ALSM_EXCEL_TO_INTERNAL_TABLE
    call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
      exporting
        filename                      = 'File Path\File name.xlsx'
        i_begin_col                   = 'A'
        i_begin_row                   = 1
        i_end_col                     = 'E'
        i_end_row                     = 3
      tables
        intern                        = itab
    EXCEPTIONS
      INCONSISTENT_PARAMETERS       = 1
      UPLOAD_OLE                    = 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.
    thanks

  • Creating multiple Excel worksheet

    Gurus,
    I am downloading data into Excel from my web page by using the following:
    Response.setContentType("application/vnd.ms-excel");
    HtmlWriter out = aResponse.getWriter();
    out.print(
    I am able to view all the data in one Excel worksheet. Does anyone know of a way to create multiple worksheets?
    Thanks in advance for your help.

    Look at POI at http://jakarta.apache.org/poi/ for an open source library to write Excel with Java.
    If you just want to produce a one-off, you can save an Excel workbook as XML and look at that to see how the sheets are produced in XML.
    There are also commercial products like Formula One that provide support for reading and writing directly to/from Excel from Java.

  • How to spool data into multiple Excel sheet if result is more then 65k rows

    Hi all,
    Wann spool data into multiple excel sheet bocz my resultant no of rows are more then 65k.
    Thanks to all in advance.....

    many choices
    1) migrate to a newer version of Excel
    2) split the files after spooling
    for instance with split
    split -l65000 file.txtor with perl, java, vb or what-so-ever
    3) do more than one report by using rownum
    spool f1
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r<6 ;
    spool off
    spool f2
    select empno,ename  from (select * from (select rownum r,empno,ename from emp order by empno) where r<11) where r>5 ;
    spool off
    spool f3
    select empno,ename  from (select rownum r,empno,ename from emp order by empno) where r>10 ;
    spool off

  • Sending the same data to multiple receivers.

    Hi,
    In 7.1, I did a simple file-to-file scenario with mulitple receivers.I used only 1 Rcvr Det.(included multiple business components) and 1 Interface Det. without BPM and it works.I would like to know if there's any other way to send same data to multiple receivers without BPM and/or the approach used by me.
    Thanks,
    Vishal

    Thanks all for your replies. I did multimapping as suggested by couple of you and it works. Since it is required to send to 7 or more systems and the no. of fields to be mapped is huge, multimapping is time-consuming. So I would like to know if there's any other approach.
    @Ravi: can you please explain with more details regarding the approach suggested by you?
    Can someone explain why and/or how a mapping executes multiple times if we have multiple receivers getting the same data?
    And if there's any way to check(For Ex: Moni) if the mapping executed multiple times?
    Thanks in adavnce,
    Vishal

  • Report to multiple Excel Worksheets

    Hi,
    I have a report that has data from many data groups. Is it possible for me, using XML Publisher, to convert the groups of data into different worksheets within the same excel spreadsheet.
    Currently, I have all four groups of data (or sets of data) displayed one after the other in one spreadsheet using the RTF template. Our users want the data to be displayed in different worksheets within an Excel file. Is it doable?
    I am using version 5.6.3 of XML Publisher and 11.5.10.2 version of Oracle Apps.
    Thanks in advance.
    Regards,
    Venkat

    This is just a thought, as I am no Excel guru. Once the data is in one worksheet, you should be able to use Excel macros to split the data up and move it around (as long as the number of rows doesn't change).

  • Xcelsius suddenly only allows chart to call data from first excel worksheet

    Hi
    I'm using Xcelsius 2008 Engage with SP1 FP3 installed.
    I have never had this problem before, but in the last week, Xcelsius won't allow a chart to call data from any worksheet in the excel file other than the first worksheet. If I reorder the worksheets in the excel file, i can access a different worksheet, but only the one that is saved as the first worksheet (left most tab).
    In dashboards i have already created, i can't change the data range of a chart that's already calling data from a worksheet unless i select the first worksheet.
    Could this be an automatic update from microsoft? Has anyone else experienced this and worked out how to overcome it? It is frustrating to keep moving the worksheet to the front and reimporting the data everytime i want to make a change that isn't in the first excel worksheet.
    Thanks,
    Scott.

    As far as I remember it's not possible. Thus, find attached VI and use it to convert line/column to excel cell format. It's working if you are not using more than 26 columns (i.e. column AA, AB, ... if this is the case you have to improve it a little)
    Hope this helps
    Attachments:
    To_Cell_Format.vi ‏18 KB

  • ABAP Internal Tables to Multiple Excel Worksheets in One Workbook

    I have an ABAP List report that shows data from two dozen internal tables.  Each internal table has different fields, formats, column headers, etc.
    I need to allow the user to export this data into one Excel file.  The file should contain multiple worksheets (each on a separate tab), but it should only be one XLS file.  Each worksheet is formatted differently. 
    I just coded it with the OLE Automation commands.  It runs too SLOW.... way way too slow.  Is there another technique to use that runs faster?  Examples?
    Thanks in advance!

    I should add...
    the slow part of this process is setting the value of each cell.
      SET PROPERTY OF gh_cell 'Value' = p_lv_value
    I am looking into function modules XXL_SIMPLE_API and XXL_FULL_API.  They appear to work faster, but they only create a single worksheet.
    Maybe it would be fastest to use the XXL modules to create multiple spreadsheet files and then use the OLE commands to merge them into a single workbook file?

  • Is it possible to insert data into two Excel worksheets using Report Generation Toolkit?

    I'm using the toolkit to insert data into two separate worksheets in Excel using named cells. The problem is that it tends to favor one sheet or the other. In other words, one sheet will have data and the other no data and vice versa. (Sometimes I get data in both sheets.) Is there something I can do to clear this up or is what I'm trying to do unreasonable? I would like to use two worksheets so one sheet receives text and data. The other sheet is used to format the data into a printable report. (i.e. using Excel's CONCATENATE function) The second (report) sheet is also used to receive plots (JPEG files) from LabVIEW. I'd send the plot images to the first sheet, but I can
    not see a way to automatically transfer images from sheet to sheet. I'm using LV 7.1, Win2000 and Toolkit v.1.0.1

    Hi,
    You can use the "Excel Get Worksheet.vi" under All Functions >> Report Generation >> Excel Specific >> Excel General to specify a particular worksheet as the current worksheet. Then, you can specify which worksheet you want to write to in your VI.
    Let me know if you have any further questions and good luck!
    Kileen C.
    NI

  • Did being able to use the same data in multiple apps get added?

    In the new iOS 4.2, did Apple include the ability to use the same data, eg PDF files in multiple apps? I have several hundred PDF files that I want to use in three different apps.
    Or is it still the same, that you have to load up (and use valuable space) the same data again and again for EACH individual app?
    Thanks

    I don't know but think it would mean the PDFs must be stored somewhere on the device itself (like on a computer). Then also the apps must be designed to use the files from there. So a change in the iOS wouldn't be all that's needed.

  • How to import data from all excel worksheet ?

    hi
    I want to import data from excel worksheet. There is a fm ALSM_EXCEL_TO_INTERNAL_TABLE but it read data only from "actual" sheet. How can I   
    read data from all exel spread sheets ?
    krzys

    Hi,
    check this code, this is gathered from one of the thread.
    report zole123.
    INCLUDE ole2incl.
    DATA:  count TYPE i,
           application TYPE ole2_object,
           workbook TYPE ole2_object,
           excel     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, place(50), END OF itab3.
    *START-OF-SELECTION
    START-OF-SELECTION.
      APPEND: 'name1' TO itab1, 'surname1' TO itab2,
                                  'worli' TO itab3,
                'nam2' TO itab1, 'surname2' TO itab2,
                                  'chowpatty' TO itab3,
               'name3' TO itab1, 'surname3' TO itab2,
                                  'versova' TO itab3,
                'name4' TO itab1, 'surname4' TO itab2,
                                  'grant road' TO itab3,
                'name5' TO itab1, 'surname5' TO itab2,
                                  'gaon' TO itab3,
                'name6' TO itab1, 'surname6' TO itab2,
                                  'mahim' 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 OBJECT excel 'EXCEL.APPLICATION'.
      IF sy-subrc NE 0.
        WRITE: / 'No EXCEL creation possible'.
        STOP.
      ENDIF.
      SET PROPERTY OF excel 'DisplayAlerts' = 0.
      CALL METHOD OF excel 'WORKBOOKS' = workbook .
      SET PROPERTY OF excel 'VISIBLE' = 1.
    Create worksheet
      SET PROPERTY OF excel 'SheetsInNewWorkbook' = 1.
      CALL METHOD OF workbook 'ADD'.
    DO 3 TIMES.
        IF sy-index GT 1.
          CALL METHOD OF excel 'WORKSHEETS' = sheet.
          CALL METHOD OF sheet 'ADD'.
          FREE OBJECT sheet.
        ENDIF.
      ENDDO.
      count = 1.
      DO 3 TIMES.
        CALL METHOD OF excel 'WORKSHEETS' = sheet
          EXPORTING
            #1 = count.
       perform get_sheet_name using scnt sname.
        CASE count.
          WHEN '1'.
            SET PROPERTY OF sheet 'NAME' = 'firstName'.
            CALL METHOD OF sheet 'ACTIVATE'.
            " add header here
            LOOP AT itab1.
              index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
              CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
              SET PROPERTY OF cells 'Formula' = itab1-first_name.
              SET PROPERTY OF cells 'Value' = itab1-first_name.
            ENDLOOP.
          WHEN '2'.
            SET PROPERTY OF sheet 'NAME' = 'LastName'.
            CALL METHOD OF sheet 'ACTIVATE'.
    " add header here
            LOOP AT itab2.
              index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
              CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
              SET PROPERTY OF cells 'Formula' = itab2-last_name.
              SET PROPERTY OF cells 'Value' = itab2-last_name.
            ENDLOOP.
          WHEN '3'.
            SET PROPERTY OF sheet 'NAME' = 'place'.
            CALL METHOD OF sheet 'ACTIVATE'.
    " add header here
            LOOP AT itab3.
              index = row_max * ( sy-tabix - 1 ) + 1. " 1 - column name " for headings change the - 1 to + 1 to accomodate 2 extra lines
              CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
              SET PROPERTY OF cells 'Formula' = itab3-place.
              SET PROPERTY OF cells 'Value' = itab3-place.
            ENDLOOP.
        ENDCASE.
        count = count + 1.
      ENDDO.
    Save excel speadsheet to particular filename
      GET PROPERTY OF excel 'ActiveSheet' = sheet.
      CALL METHOD OF sheet 'SaveAs'
                       EXPORTING #1 = 'c:\temp\exceldoc1.xls'     "filename
                                 #2 = 1.                          "fileFormat
    Note: to make headings, change the -1 to +1 where specified in the above code and add the following where i have mentioned to add it
    index = row_max * ( sy-tabix - 1 ) + 1.
    CALL METHOD OF sheet 'Cells' = cells EXPORTING #1 = index.
    SET PROPERTY OF cells 'value' = header1.
    Reward for helpful answers
    Thanks
    Naveen khan

  • Query - How to output data to multiple Excel tabs?

    Hello,
    I have a quick question. Is it possible to build an ABAP query to send output data to multiple tabs in an Excel spreadsheet? I know this can be done at a single (first) tab level, but I am not sure if outputting data to multiple tabs is possible.
    For example, the address data for the different European countries should be directed to different tabs such as U.K., France, Germany, etc based on the country of residence.
    I appreciate your help with this.
    Thanks!

    Hi
    I think it is possible
    You define a common internal table with the address fields  and  based on the Language condition this table will be populated
    call the fun module to donwload to excel in a PERFORM using this Internal table and Language as paramter
    so that based on the language selection/condition the internal table will be filled from the data and that data will be passed to the fun module and downloaded to the file name given .
    pass the different file names to the fun module along with the PERFORM statement, so that different files will be created based on language
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Accessing the same data from multiple threads

    Hi
    In the following program the task5 routine takes ~3s to complete, when I uncomment the t2 lines it takes 11s (this is on a quad-core x86/64 machine). Since there is no explicit synchronization I was expecting 3s in both cases.
    public static int sdata;
    public static void Task5()
    int acc = 0;
    for (int i = 0; i < 1000000000; ++i)
    sdata = i;
    acc += sdata;
    [STAThread]
    static void Main()
    Stopwatch sw = new Stopwatch();
    sw.Start();
    Thread t1 = new Thread(new ThreadStart(Task5));
    // Thread t2 = new Thread(new ThreadStart(Task5));
    t1.Start();
    // t2.Start();
    t1.Join();
    // t2.Join();
    sw.Stop();
    System.Diagnostics.Debug.WriteLine(sw.ElapsedMilliseconds.ToString());
    Why are these threads blocking each other?

    This is loosely a duplicate of https://social.msdn.microsoft.com/Forums/en-US/cd00284d-3da3-457e-8926-c490e7ca6d92/atomic-loadstore?forum=vclanguage
    I answered you in detail over at the other thread.
    But the short version is that the threads are competing for access to system memory, specifically at the memory location of sdata.  This demonstrates how to spoil the benefits of not having to write-through from your CPU cache to system memory.  CPU
    Caches are wonderful things.  CPU cache memory is WAY faster than system memory.

  • Reading data from multiple excel sheets

    hi all
    i have to read the data from excel file's sheet1 and sheet3. how can i do this using forms6i
    thanks.

    Dear Rehman,
    Use This Code ,it is very useful to read the data from excel file's sheet1 and sheet2 and so on.here i written the code for sheet1 and sheet2 only.if u need sheet3 .. and extra make a code based on sheet1 or sheet2.
    Regards
    Gopinath M
    DECLARE
    --Declare handles to OLE objects
    application ole2.obj_type;
    workbooks ole2.obj_type;
    workbook ole2.obj_type;
    worksheet ole2.obj_type;
    cell ole2.obj_type;
    --Declare handles to OLE argument lists
    args ole2.list_type;
    Check_file text_io.file_type;
    no_file exception;
    PRAGMA exception_INIT (no_file, -302000);
    cell_value varchar2(2000);
    BEGIN
    --Check the file can be found, if not exception no_file will be raised
    Check_file := TEXT_IO.FOPEN('L:\Individual Person Folders\Gopi\test1.XLS','R');
    TEXT_IO.FCLOSE(Check_file);
    application:= ole2.create_obj('Excel.Application');
    workbooks := ole2.get_obj_property(application, 'Workbooks');
    --Open the required workbook
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'L:\Individual Person Folders\Gopi\test1.XLS');
    workbook := ole2.invoke_obj(workbooks, 'Open', args);
    ole2.destroy_arglist(args);
    --Open worksheet Sheet1 of that Workbook
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'Sheet1');
    worksheet := ole2.get_obj_property(workbook, 'Worksheets', args);
    ole2.destroy_arglist(args);
    --Get value of cell A1 of worksheet Sheet1
         args:= ole2.create_arglist;
    ole2.add_arg(args, 1);
    ole2.add_arg(args, 1);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
         ole2.destroy_arglist(args);
         cell_value :=ole2.get_char_property(cell, 'Value');
         message(cell_value);          
    args:= ole2.create_arglist;
    ole2.add_arg(args, 1);
    ole2.add_arg(args, 2);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
    ole2.destroy_arglist(args);
    cell_value :=ole2.get_char_property(cell, 'Value');
    message(cell_value);
    args:= ole2.create_arglist;
    ole2.add_arg(args, 1);
    ole2.add_arg(args, 3);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
    ole2.destroy_arglist(args);
    cell_value :=ole2.get_char_property(cell, 'Value');
    message(cell_value);MESSAGE(' ');
    args:= ole2.create_arglist;
    ole2.add_arg(args, 'Sheet2');
    worksheet := ole2.get_obj_property(workbook, 'Worksheets', args);
    ole2.destroy_arglist(args);
    --Get value of cell A1 of worksheet Sheet1
    args:= ole2.create_arglist;
    ole2.add_arg(args, 1);
    ole2.add_arg(args, 1);
    cell:= ole2.get_obj_property(worksheet, 'Cells', args);
         ole2.destroy_arglist(args);
         cell_value :=ole2.get_char_property(cell, 'Value');
         message(cell_value);
         args:= ole2.create_arglist;
         ole2.add_arg(args, 1);
         ole2.add_arg(args, 2);
         cell:= ole2.get_obj_property(worksheet, 'Cells', args);
         ole2.destroy_arglist(args);
         cell_value :=ole2.get_char_property(cell, 'Value');
         message(cell_value);
         args:= ole2.create_arglist;
         ole2.add_arg(args, 1);
         ole2.add_arg(args, 3);
         cell:= ole2.get_obj_property(worksheet, 'Cells', args);
         ole2.destroy_arglist(args);
         cell_value :=ole2.get_char_property(cell, 'Value');
         message(cell_value);
         MESSAGE(' ');
    ole2.invoke(application,'Quit');
    --Release the OLE2 object handles
    ole2.release_obj(cell);     
    ole2.release_obj(worksheet);
    ole2.release_obj(workbook);
    ole2.release_obj(workbooks);
    ole2.release_obj(application);
    EXCEPTION
    WHEN no_file THEN
    MESSAGE('file not found.');
    WHEN OTHERS THEN
    MESSAGE(sqlerrm);
    PAUSE;
    FOR i IN 1 .. tool_err.nerrors LOOP
    MESSAGE(tool_err.message);
    PAUSE;
    tool_err.pop;
    END LOOP;
    END;

  • Metadata: how to use same data on multiple tracks in a project.

    I need to figure out how to cut and paste metadata from one audio file to the next. I am transferring 500 vinyl albums to digital. I would like to be able to fill in the ID3 and other metadata that is the same for the 10 to 12 songs on the disk and have that information transfer to each of the files I ultimately turn into mp3. How can I do that. Essentially, artist, album, recording data, comments, genre, and copyright are all the same.
    My workflow is to copy all of the tracks from the master recording of the disk into individual audio files and save those as the MP3. If I enter metadata manually in the audio track, it is saved with the MP3 and read by iTunes when converted. However, I want to be able to create one metadata -- I guess template -- with the data that is the same and have that automatically transferred from the master to the cuts.
    Is it possible?

    Not in Audition, I'm afraid. But there's certainly software that will allow extensive metadata manipulation of ID3 tags available, possibly for just the reasons you are mentioning. You have to bear in mind that Audition is essentially an editor, and MP3s are just a saving possibility, and not the format it natively works in, so it's not extensively set up to deal with them in the way you want; not it's job, really!

Maybe you are looking for

  • Mac Book Connectivity with TV

    I used th Mini DVI-VGA adaptor, connected computer to TV. My desktop picture and the Dock appear on the TV screen, the mouse I see on my TV screen, but when I click on an application (iMOVIE) it does not open. I had to disconnect the computer from th

  • BAPI to maintain Internal Order

    Hi.    Which BAPI I can use to maintain internal order?I know there is BAPI_INTERNALORDER_CREATE for create.If there is no BAPI for this, then how can I maintain it?Using BDC?

  • Restoring iphoto from backup

    After a disc crash I had to reinstall the OS and various apps. I restored my files from a backup done with Retrospect. I was able to retrieve all of the iPhoto images in the Library but I haven't been able to find any of the individual albums I had p

  • Wrong language loaded on new Satellite C660-2DL

    Hi All, Brand new C660-2DL, Some how the wrong language (Finnish) got loaded at startup,is there anyway back? it should have been English. I think i shall be dead if i don't find a cure!!! All idears wellcome (Don't forget though everything is in Fin

  • Acrobat 11 ist nicht installiert, wird aber von der CC-App als installiert angezeigt.

    Hi, Ich kann Adobe Acrobat XI Pro nicht starten. Laut Startmenü und der Liste der installierten Programme ist es nicht installiert. Die Creative Cloud App zeigt mir aber an, es sei installiert. Ich kann es somit leider auch nicht neu installieren. Gi