How to Add  3 queries in the same work book?

Hi Gurus,
Can any one tell How to Add  3 queries in the same work book?
Example, daily report,Monhly and yearly reports for sales should be in the same workbook.
Please help me if any one have a pointer or a how to doc if available.
<<Text removed>>
Thanks
James
Edited by: Matt on Apr 26, 2010 9:36 AM

Hi James,
According to BI 7.0 Version
Steps of creating workbook and to insert more than one query in a workbook.
When you run a query and it opens in Bex Analyzer you can click the save button and pick "Save as Workbook".
Once you save it as a workbook Click on the "Design Mode" button in the Bex toolbar (looks like an A).
Click in the sheet where you want the new query to go, click the "Analysis Grid" button. It will add the analysis grid to your new sheet.
Right click on the Analysis grid and go to properties.
Click on button to change data provider and select the query you want to attach.
Exit design mode and you should be all set.

Similar Messages

  • Many execution of a query with different selections in the same work book

    Hi all,
    I have a workbook with one query that show sales of a plant. User can select many plants, but he doesn't like it, too easy. In this way query shows all the plant in the same sheet and he want a sheet for each plant.
    The most simply way to do this is making a query for each plant with a filter with the plant as a constant. Then I put all that queries in the workbook. But this is not too smart, right?
    Any suggestion?

    Hi,
        I will try and explain here, if you get stuck and do get back.
    1) On Sheet1 Rename it to BEX01 and Add the Query that will return all Plants. Hide this Sheet
    2) On Sheet2 Rename it to BEX02 and Add the Main Query. Hide this Sheet.
    3) On Sheet3 Rename it to Main and Add a Command Button. Goto Properties and Change the Name to cmdRefresh and then do View Code and add following code. 
    Private Sub cmdRefresh_Click()
               Call RefreshReports
    End Sub
    4) Add a Module to your VBA Project
    5) Open Module1 and Add following code.
    Option Explicit
    Public Sub RefreshReports()
        Dim wksBEX01 As Worksheet, wksBEX02 As Worksheet, wks As Worksheet
        Dim lRows As Long, lRow As Long
        Dim sPlant As String, sName As String
        Dim fRng As Range
        sName = "Main"
        With ThisWorkbook
            Set wksBEX01 = .Sheets("BEX01")
            Set wksBEX02 = .Sheets("BEX02")
        End With
        wksBEX01.Activate
        wksBEX01.Range("A1").Select
        'This will refresh both the Queries All Plants and the Main one.
        If Run("SAPBEX.XLA!SAPBEXrefresh", True) <> 0 Then
            MsgBox "Refresh of All Queries Failed."
            Exit Sub
        End If
        'Lets say your All Plants Query, Lists all the Plants Starting in Cell A15
        'Then Do the following.
        lRows = wksBEX01.Cells(Rows.Count, 1).End(xlUp).Row
        For lRow = 15 To lRows
            sPlant = Trim$(wksBEX01.Cells(lRow, 1).Value)
            'Now Use this Plant to Set the Filter Value for the Main Query.
            'I am assuming that your Plant Charateristic will show up in A14 on the Worksheet.
            With wksBEX02
                .Activate
                'Adjust this according to where you insert the Query and which cell has correct info.
                .Range("A14").Select
                Set fRng = Selection
            End With
            'Call the API to Do a Select Filter Value.
            If Run("SAPBEX.XLA!SAPBEXSetFilterValue", sPlant, "", fRng) <> 0 Then
                MsgBox "Unble to Set Filter for Plant : " & sPlant
                Exit Sub
            Else
                'Here you can Now Copy the the Sheet to new Sheet. If filter value worked.
                 Set wks = ThisWorkbook.Sheets.Add(After:=sName)
                 wksBEX02.Cells.Select
                 wksBEX02.Copy
                 wks.Range("A1").Paste
                 wks.Name = sPlant
                 sName = sPlant
            End If
        Next
         'Save the workbook as new name else you will have to first delete all the old sheets.    
         Thisworkbook.SaveAs "Some New Name"
    End Sub
    Here I have just created a new Sheet for Each Plant. You can work on the EXCEL Part to take and do what you want with new Sheets.
    Hope this gets you started.
    Just a Suggestion. Don't hide the BEX01 and BEX02 sheets untill the code works correctly.
    Datta

  • How to add number to excel sheet work book cell?

    I am trying to create an excel sheet dynamically. I am able to create and populate the data as well.
    But in one of the cell I have to add 1.0 value. Since I have added this as a new Label(...), after opening the excel sheet I can see an icon in the cell with message as "Number in this cell is formed as a text".
    SO I have changed Label to Number while adding to cell.
    I am using the format as "#.#". Othen than 1.0 everything I can see in the cell as x.y format. Like 1.2, 5.7 etc...
    But for 1.0 I can see as "1." only.
    Is there any way to write 1.0 to cell as a number.
    I am using jxl.jar for excel.

    I have jxl supported api.
    It supports formating the numbers.
    It has NumberFormat class to support formating.
    NumberFormat format = new Numberformat("#.#");
    WritableCellFormat cellFormat = new WritableCellFormat(format);
    excelSheet.addCell(new Number(1, 0, 1.0, cellFormat);
    Api for Number : Number(int column, int row, double value, Cellformat ft);
    If I add other than 1.0, data is displayed properly in the sheet.
    1.2, 4.5, 3.567 --> 3.6 etc...

  • How to make all users have the same working environment?

    Hi guys,
    thanks for helping out on this issue.
    Is there a way to set all users on your system to have the same working environment? I believe, as root you can edit the /etc/profile. But when I looked at the file, I was confused. I had no idea where to add stuff because it was a script.
    Please if anyone can help me explain how to customize system wide working environments, I will be very grateful .
    Thank you
    Arrey

    Hi.
    It's not clear what you understand under system wide working environments ?
    /etc/profile it's one possible solution.
    Another way - put custimozed .profile to all users and use customezed */etc/skel* for new users.
    Regards.

  • HT5177 How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    How can two people edit the same FCPX file? One company, so both people/computers share the same license. Example: I work on revision A and my boss takes it and makes revision B and gives it back to me using two separate computers.

    Have the project, events and media on one drive which is common to both macs.
    You can download FCP X to both macs using the same Apple ID that it was purchased with.
    Andy

  • How to insert  two queries in the same workbook in new BI 7.0 Bex web analy

    Hi
    Can you please advise how to insert multiple queries in the same workbook in BI 7.0 web analyser.
    Sarah

    Hi,
    You need to switch to design mode (BEx Analyser Menu - Design Toolbar - Design Mode). For each query that you want to embed, insert an analysis grid item in the workbook. Link each analysis grid to its corresponding data provider (query).
    Hope this helps.
    Regards,
    Rajkandula

  • I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    I recently bought iphone6, My imessage and face time is not working and still it charged me for normal text message multiple times and still not able to authorise the usage. Let me know how I can start using the same.

    Hello vinay34,
    If you are having issues with activating your Apple ID for FaceTime and iMessage, then take a look at the article below to get it sorted out. Make sure that you have the Date and Time set to Automatic as well as any other steps listed in the article. 
    iOS: Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/en-us/ts4268
    Regards,
    -Norm G. 

  • TS1382 I want to add multiples of the same song from different playlists to my ipod but iTunes wont let me. How can I override this so that I get the songs I want on my ipod?

    I want to add multiples of the same song from different playlists to my ipod but iTunes wont let me. How can I override this so that I get the songs I want on my ipod?

    You can sync those different playlists to the iPod, and the song appears on each playlist.  However, the song is stored on the iPod once.  What is the practical reason for wanting to store the same song file multiple times (and waste storage space) on the iPod?

  • How do i create one source file that feeds two users on the same pro book?

    how do i create one source file/folder of photos that feeds two users on the same pro book?

    Well you can do exactly the same with a folder of photos, just put in the Users/Shared folder.
    Iphoto is a mite more complex than this. It's a database and so there's a bit more involved.
    For iPhoto 09 (version 8.0.2) and later:
    What you mean by 'share'.
    If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and use Fast User Switching to open the other account. In that account, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
    Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
    Remember iPhoto must be running in both accounts for this to work.
    If you want the other user to have the same access to the library as you: to be able to add, edit, organise, keyword etc.
    Quit iPhoto in both accounts. Move the Library to the Users / Shared Folder
    (You can also use an external HD set to ignore permissions, a Disk Image or even partition your Hard Disk.)
    In each account in turn: Double click on the Library to open it. (You may be asked to repair the Library Permissions.) From that point on, this will be the default library location. Both accounts will have full access to the library, in fact, both accounts will 'own' it.
    However, there is a catch with this system and it is a significant one. iPhoto is not a multi-user app., it does not have the code to negotiate two users simultaneously writing to the database, and trying will cause db corruption. So only one user at a time, and back up, back up back up.

  • Can Multiple users work on the same work Repository ?

    I have master repository and work repository on one machine, can multiple developers connect andwork on the same work repository? how?

    oh Yes!
    it is v simple.
    follow the steps:-
    once master and work repository has been created on a system.U just need to know all the information supplied wen creating a login to designer.
    like user name and password of database,url,driver as well as master's repository uname and password.
    if u have the following information with you,then u can create a new login with designer provided all the above information and u will have full access to designer
    in work repository u want to connect

  • Filter the content on different queries for the same infoprovider and user

    Hello,
    We are trying to make the following security scenario in BI, and have
    problem with the analysis object concept to filter at query level.
    The idea is to permit to :
    - user A
      - to execute query Q1 and view information about sites 1,2,3
      - to execute query Q2 and view information about sites 4,5,6
    but for example for another user :
    - user B
      - to execute query Q1 and view information about site 1,3
      - to execute query Q2 and view information about site 5,6,7
    Q1 and Q2 are queries from the same infoprovider.
    The idea is to make an automatic generation of analysis objects based
    on the standard program : RSEC_GENERATE_AUTHORIZATIONS.
    During tests, we have faced a problem with the object 0TCTQUERY that we
    thought will permit us to filter at the query level, but unless we add
    the name on the query on a role in the S_RS_COMP authorization object,
    field RSZCOMPID, the query is not granted to the user.
    The fact that we use both authorization objects : one for the query
    definition, and another for the analysis authorization concept
    (S_RS_AUTH, field BIAUTH), has disastrous effect : all values given in
    the analysis objects are for all queries of an indicated infoprovider.
    With that system, it's then not possible to propose dynamically different
    views of the same data (ie from same infoprovider) based on the
    authorization concept unless using the technic of customer-exit variable,
    but with variable you will have a problem with old queries that doesn't
    have a variable and that will permit to see all data given in the new
    authorization objects.
    Is there exists another object to filter at the query level in the
    analysis objects ? If it's not the case, what is possible to do to reach
    our goal with the new authorization concept ?
    Thank you in advance for your help.
    Best regards,
    Gaël.

    The data is protected on infoprovider level and not on the query level,  so when two querys are build from the same Infoprovider then the authorizations are the same,
    To achieve what you want to do,  the querys must be built off different providers.   This can be achieved by placing the infoprovider in 2 differnt multiproviders and building the querys and authorizations seperatly on these.

  • How to add marker on the clip?

    Hi!!!
    Could you help me, how to add marker on the clip? Not on the sequence. I need the marker to moving as I moving clip in the sequence.
    Thanks!!!

    Ohhh... I just had to switch to the source monitor. OK. Just I don't use the source monitor usally. Only the program one. Thank you. It worked!
    Fri, 12 Oct 2012 05:02:08 -0600 от Jim Simon <[email protected]>:
    >     
    >
        Re: How to add marker on the clip?
        created by Jim Simon in Premiere Pro CS5, CS5.5, & CS6 - View the full discussion

  • Workbook: overlapping of 2 queries in the same sheet

    I've 1 Workbook and I want to insert 2 queries in the same sheet.
    The query B must follow the query A.
    Now, I've inserted the query B bottom of query A.
    When refresh the workbook query B don't follow in a dynamic way the end of Result Area of query A.
    The final result is an overlapping of query A on query B!!!
    Do you know a solution of this problem?

    Hi Claudio, I hope that Eugene's answer fixed your problem.
    Another solution is:  move the result area of query 2 each time that query 1 is finished refreshing.
    To do this, you need to know the local queryID of each query.  Let's assume that the one which refreshes first has local queryID of SAPBEXq0001 and the one which refreshes second is SAPBEXq0002.
    If this be the case (and it probably is not, so please check!), then BW knows the location of each query's result area using a Name in the Excel Workbook's Names collection.  The names are:
    SAPBEXqueries!SAPBEXq0001
    SAPBEXqueries!SAPBEXq0002
    When query 1 refreshes, BW will run a Subroutine named SAPBEXonRefresh.  Find that subroutine, and in it, add the following code.
    Dim ws as Worksheet, wb as Workbook
    If queryID = "SAPBEXq0001" Then
    set ws = resultArea.Parent
    set wb = ws.Parent
    firstCol = resultArea.Cells(1).Column
    numCells = resultArea.Cells.Count
    lastRow = resultArea.Cells(numCells).Row
    nextRow = lastRow + 2  'or whatever space you want
    wb.Names("SAPBEXqueries!SAPBEXq0002").RefersToRange.Clear
    ws.Cells(nextRow, firstCol).Name = _
    "SAPBEXqueries!SAPBEXq0002"
    End If
    Now, no matter what, the results for the second query will always appear exactly 2 rows below the results of the first query.
    - Pete
    Message was edited by: Peter Knoer

  • 0PA_C01  different results from two queries on the same cube ....

    HI
    Can you please help with this  problems ...
    i am running a two queries with the same restrictions e.g
    Sep 08 for employee 22345 ,
    In one report it shows the Pay Scale level as A1 , then in the other report it shows Pay scale Scale level as A2  ,
    looking  at the master data in 0employee  , the first report is right ... this is how the data looks like in 0employee
    Employee  Valid from      To                Pay scale Level
    222345       2007-11-03   2008-09-30     A1
    222345       2008-10-01   9999-12-31     A2
    Can someone please shed some light on this , im thinking it has something to do with update rule but even that is supposed to use last date of the month , not 1st day of the following month. The Cube is a stndard cube 0PA_C01 and the update rule aswell .....

    Hi,
    Please check in the cube whether the data for the Employee is getting with two values like shown in your question:
    Employee Valid from To Pay scale Level
    222345 2007-11-03 2008-09-30 A1
    222345 2008-10-01 9999-12-31 A2
    and also check whether when the data loaded to the cube.
    There may be some change in the report structure where the difference is getting may in the column wise or row wise restriction may present.
    Please check on the structure of the report also.
    With Regards,
    Ravi Kanth

  • How to add request in the buffer

    Hii All,
    How to add request in the buffer in bulk.
    i am using following command.
    tp addtobuffer requestno <sid>
    but after doing it is giving me the following error
    C:\usr\sap\trans\bin>tp         addtobuffer     BWDK900161      BT1
    ^CThis is tp version 340.07 (release 640, unicode enabled)
    E-TPSETTINGS could not be opened.
    EXIT
    ERROR: System : Parameter SAPEVTPATH not set. Batch jobs cannot be started.
    Error in TPSETTINGS: transdir not set.
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0208
    tp finished with return code: 208
    meaning:
      error in transportprofil (param missing, unknown,...)
    Pls help.
    Regards,
    Viren.

    Hi Rolf,
    thax for your reply.
    But still it is not working it shows following message.
    C:\usr\sap\trans\bin>tp addtobuffer BWDK900051 BT1 pf=c\usr\sap\trans\bin\TP_DOM
    AIN_BT1.PFL
    This is tp version 340.07 (release 640, unicode enabled)
    E-c\usr\sap\trans\bin\TP_DOMAIN_BT1.PFL could not be opened.
    EXIT
    ERROR: System : Parameter SAPEVTPATH not set. Batch jobs cannot be started.
    Error in c\usr\sap\trans\bin\TP_DOMAIN_BT1.PFL: transdir not set.
    tp returncode summary:
    TOOLS: Highest return code of single steps was: 0
    ERRORS: Highest tp internal error was: 0208
    tp finished with return code: 208
    meaning:
      error in transportprofil (param missing, unknown,...)
    Regards,
    Viren.

Maybe you are looking for

  • XMLTYPE column as BLOB, not CLOB?

    All the documentation says, "When you create an XMLType column in a table, you can choose to store the XML data in a CLOB column or object relationally." (Oracle9i SQL Reference Release 2 (9.2), "Datatypes" section. (We have db version 9.2.0.4 on aix

  • How to fetch the SAP Standard Prog. built internal table into my_z_prog.?

    Hi Experts, Pls. let me know that, How to fetch the SAP Standard Prog. built internal table into my_z_prog.? For more explannation, pls. see my other thread with name of yestrday, SUBMIT RFGLBALANCE WITH selection criteria, then How to get resulted i

  • How to view icloud drive files in iphone ?

    who can tell me how to go this screen ?? thanks !

  • Dreamweaver CS3 blows up

    Every time I try to add <option value="<%=RSProductLine("BranchID")%>" CS3 blows up on me. I'm using using Windows Vista Business with all the latest patches. Dreamweaver Version 9.0 Build 3481

  • Firefox and Adobe Flash unsafe operation crash

    I have a bunch of saved htm pages from myspace. Everytime I open them a box pops up saying Adobe Flash Player has stopped a potentially unsafe operation. So and So is trying to communicate with internet enabled location. I have to keep clicking away