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

Similar Messages

  • 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

  • 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.

  • 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.

  • 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

  • Error: Element entry overlaps with another entry of the same type

    Dear,
    while entering salary this error comes (Error: Element entry overlaps with another entry of the same type). what should i do for solving this issue? your feed back will be highly appreciated.
    REGARDS SAJJAD HASSAN KHAN

    Hi,
    I have faced the similar issue. And got it resolved after deleting the Element entries made for the employee.
    After deleting the similar element I was able to create Salary proposal for the employee.
    Please Verify whether any future dated salary proposal are existing for this employee.
    Also check if it has similar entries made for the ELEMENT.
    Thanks,
    Prem

  • Multiple running queries at the same time

    Hi!
    I looked around (and RTM) for this but didn't find anything, so I'm asking here.
    I have quite a few long running queries (data loading and such things, warehousing stuff), and I need to be able to run multiple queries/statements at the same time. In TOAD I can do this, start a procedure and while it is running I can do SQL statements in another session tab (it supports threaded sessions - it starts queries in their own background thread/session).
    When I start a long running procedure or query in SQL Developer I can not do anything until the procedure execution finishes. Is there any way (setting/preference) to enable SQL Developer to be able to run multiple queries at the same time?
    I really would like to move away from TOAD, but this is a major showstopper for me.
    Thanx for any tips.
    Alex

    Hi!
    This post is going to be a little longer, but I have to clarify things out.
    I did not mean to throw any wild accusations, because I did my fair share of RTFM and searching the help. I can tell you that if you put any of these in the help search box:
    session
    non shared
    non-shared
    connection
    concurrent <- I guess this one should yeld something
    multiple
    spawn
    you won't find anything usefull, the article that comes closest, is this:
    "Sharing of Connections
    By default, each connection in SQL Developer is shared when possible. For example, if you open a table in the Connections navigator and two SQL Worksheets using the same connection, all three panes use one shared connection to the database. In this example, a commit operation in one SQL Worksheet commits across all three panes. If you want a dedicated session, you must duplicate your connection and give it another name. Sessions are shared by name, not connection information, so this new connection will be kept separate from the original."
    It does not mention any spawning of non-shared connections from the current one, nor it does mention using a accelerator key combo. But since there could be written something about it, I guess you could call it a documentation bug, because it does not provide any clue to this functionality. The help is definitely of no help in this case. As you can see, I do not throw accusations without trying to find out something first. I guess if someone is not as deep into SQL Developer as you are, there is no way for him/her to know this.
    OK, I tried your suggestion, and (sadly) it does not work as I suppose it should.
    Here's what I did:
    - start a new connection, and enter the following code in SQL Worksheet:
    declare
    j number;
    begin
    for i in 1..1000000
    LOOP
    j := sin(i);
    end LOOP;
    end;
    As you can see, it doesn't do much besides holding the connection busy for a while when executed.
    - start a new non-shared connection from the first one using CTRL-SHIFT-N (as you suggested) and put the following statement in the new SQL Worksheet (with "__1" appended to connection name)
    select sysdate from dual;
    - go to the first SQL Worksheet and execute the procedure
    - while the procedure is executing, go to the second SQL Worksheet and hit F9.
    The sysdate is returned as soon as the first SQL Worksheet finishes and not any sooner. It may run in separate session, but the result is not returned before the other session is finished doing what it is doing. I guess the correct behaviour would be to return the sysdate immediately.
    I verified this behaviour repeating it 3 times starting with a new instance of SQL Developer, each time connecting to another schema and spawning the new non-shared session. The database used was Oracle 10.2.0.3 EE on RHEL 4 UPD3.
    The concurrent execution lacks concurrency. The statements might be executed concurently on the database (i did not went the extra mile to verfiy this), but the returning of results is just not independent of other sessions. To the end user this is as much concurrent as it is serial execution.
    I hope developers get this issue straightened out soon, as I said, I'd love to move away from Toad, but I'll have to wait until they fix this out.
    Is there anything else that can be done to make it behave correctly?
    Kind regards
    Alex

  • How do I print multiple identical small images on the same sheet of paper?

    I would like to know how I can produce multiple identical small images (10mm x 10mm) on the same sheet of paper?
    I used to be able to do this in older versions of Adobe Photoshop.
    Thank you.

      Try using picture package. There is an option to print 10 copies on a single sheet.
    1. Select your photo in Organizer
    2. Click File >> Print
    3. Choose picture package in section 4 of the print dialog
    4. Select layout in section 5 and choose fill page with first photo
    5. Click print button
      Click to view image

  • Why is my scanner (epson PX710) now scanning the same sheet of paper at 20 mb now where as before it was 107kb for a pdf scan before Maverick?

    Proir to downloading Mavericks my Epson PX 710 printer/scanner would scan a sheet of paper with typed numbers and figures on and file in my docs box at about 107kb each and every week now the same sheets are coming out at 20+mb each sheet. I have downloaded the new epson download changed my printer in the system preference and it's still crap! (excuse my langague but frustration is getting  to me)

    Check the scan settings in your software, whatever scanning software you are using.  It sounds like you are scanning at a much higher resolution than before.   Check your scan resolution.  Files will be much larger if the scan is done at 600 ppi than at 72 ppi.
    Some scanners have special settings called Text, Line Art, Magazine, B&W Photo, Color Photo, etc.   The Text & Line Art scans are always much smaller than the other selections.  Color Photo will always yield the largest files.

  • Mac printing two pages on the same sheet of paper double-sided

    I have a large PDF file that I'm trying to save paper by printing two pages of the file on the same sheet of paper and then printing double-sided, e.g. pages 1-2 would be on the front and 3-4 on the back. I can accomplish the first part by changing the page layout, but then can't figure out how (or if) I can duplex print. Can anyone help? I'm using Adobe Reader 8.1.2 on a Mac running OS 10.4.11.

    Yes I do. Normally, I just have the printer print even pages on one side and odd on the other side. But, putting two pages on the same side fouls up that process. If I try printing odd pages, I get 1 and 3 on the front and 5 and 7 on the back, instead of what I want. Maybe I'm wanting to do something that can't be done. After I changed to the two-page layout, I thought maybe I could do a Save As PDF in the Print dialog box, but that was not allowed by Reader.

  • HT2506 Is it possible to print separate pages on the same sheet in preview. I would like to split a set of class power points to display Page 1 and 2 on the first page, page 3 and 4 on the second page etc. Thanks in advance!

    Is it possible to print separate pages on the same sheet in preview. I would like to split a set of class power points to display Page 1 and 2 on the first page, page 3 and 4 on the second page etc.
    Thanks in advance!

    Nevermind everyone!
    I got it to work with Print Down/Across...silly me.
    Thanks anyway!
    -Arin

  • Multiple Queries on the same WB-sheet - overlapping/overwriting

    Hi experts,
    we need to create a workbook with more than one query on a single workbook-sheet.
    Unfortunately the cell-range needed by the queries is not static or good predictable.
    The problem is that if you position 2 analysis-tables below each other, it might happen that
    the first/upper one grows into the cell-range of the 2nd analysis-table. Hence the both tables
    overlap and overwrite each other.
    BEx Analyzer 3.5 had a solution for this problem - the 2nd table was shifted down and always
    started after the (dynamic) end of the 1st analysis-table. Such a function seems to be missing in BEx-Analyzer 7.
    Is there a common solution for this issue?
    How did you solve such cases?
    Thanks for your input in advance,
    kind regards,
    Marco
    P.S.:
    For beeing correct:
    The 2nd table overlaps/overwrites the 1st one - because it is refreshed later.

    Good afternoon Marco,
    Have you tried using 'Clipping' where the screen is clipped to the size required and then the use of 'Scroll Bars' allows the resulting field toexpand as such without overwriting a second query within the same page. The actual outer size of the first query does not expand but using scroll bars, you can see more results .....
    There is some documentation on this in the help.sap.com website ..:
    http://help.sap.com/saphelp_nw70/helpdata/EN/85/1321d0b7864766b5208a0b221a7608/frameset.htm
    goto the very bottom of the page ..
    Would this help your scenario?
    Regards,
    Karen

  • Embedding 2 queries within the same tab in a work-book?

    Hi Experts,
    Is it possible to embedd multible queries within a single tab in a Workbook?i.e. can we define a cell range in which a particular query is to be embedded and a different cell range within the same tab for another query?
    Thanks
    Aravind

    Hi,
    It is very much possible.
    Just insert the 2 queries at different places and save the work book.
    In the properties you can so the the result of the 2 queries do not overwrite and ouput is adjusted accordingly.
    Regards,
    Nitin

  • Workbook: view key and description in the same cell.

    Hi Developers,
    I'd to Know if it is possible to see (in the workbook) in the same excel's cell the Key and the denomination and not in two different cells.
    Thanks in Advance!
    Domenico

    Hi Domenico,
    let's suppose you have an InfoObject (ZIOBJ) with short medium and long descriptions and that you do feed such values using a DataSource for texts. In the Trasfer Rule you map ZIOBJ 0TXTSH, 0 TXTMD and 0TXTLG to 4 different fields ZVALUE, TXT_SH, TXT_MD and TXT_LG of a Transfer Structure.
    You could write a simple ABAP Routine for the 0TXTLG as:
    CONCATENATE ZVALUE, TXT_MD SEPARATED BY SPACE INTO RESULT.
    Hope it's clear.
    GFV

  • Printing iCal appointments and To-Dos on the same sheet

    Some time ago I pointed out that it was impossible to print what I saw on the iCal day screen with Appointments in the left and To-Dos in the right hand column.
    Apple "solved" this by wiping the To-Dos from the right hand column (in the print out) and repeating the appointments in their place. What sense this has I can't understand but I've found a solution: Buy a very inexpensive little program called "TODAY"!
    Today prints the day sheet as Events across the page, followed further down by timed Appointments followed again by the list of To-Dos.
    Garoolgan

    Go to File>New>Blank file. Enter height & width of your paper stock. Background color to suit. Resolution should be about the same as that of your picture files. This will be your canvas. For printing, it is desirable to have the resolution in the 240-300 px/in range.
    Open Picture #1. Go to Select>all, Then Edit>copy to put it on the clipboard
    Go back to the blank file from step #1, then Edit>paste.
    Do the same for picture #2
    Use the move tool to position each picture, and, if necessary, re-size with the corner handles of the bounding box
    In the layers palette you should see 3 layers: Background, and  layers with each of your 2 pictures.

Maybe you are looking for

  • I need a recovery disk

    My cousin has formatted my recovery partition and now I cannot refresh or reset my netbook to its factory settings. Is there a way that I can retrieve it or get another one? I am using HP Pavilion TouchSmart 14-b114se Sleekbook Serial Number: [Person

  • PSE 9 Installation Issue

    Hi- I've been trying to d/l PSE 9 onto my Mac Computer and keep getting this error: "inconsistency in the installer database.  Please restart your computer and install again."  I will restart my computer and re-try only to get the same message.  I to

  • FAQ: Can I install the Photoshop CS6 beta if I have the Lightroom 4 beta installed?

    Yes, both Photoshop CS6 beta and the Lightroom 4 beta can be installed and used together on the same system. However, the Lightroom 4 beta expires on 3/31/2012. If you want to try the Photoshop CS6 bta and Lightroom 4 together, download the 30-day tr

  • Do you want save the changes

    Hi, I have an item in a block with when_new_item_instance trigger, which is to clear the entire form. but when i make changes in other block and coming back to this item it forces to save the changes. but i dont want to save the changes , so how coul

  • How To Create A Windows Installation Disk From Your Old PC

    If you have bought a mac and want to get windows onto it from your old computer, have no fear. I found some great instructions on how to make a bootable windows XP cd from a PC. Not sure if it will work with Vista, but it definitely worked for XP. ht