Inserting a query in workbook

I have inserted 2 differnt queries in a workbook and i noticed that the selection screen is no combined into 1.  Is there a way to have each query run separately?  Also my default template only works on the 1st worksheet.  How do I aplly my defautl to all sheets?

Hi,
can you be a bit more specific on the question:
- How do I apply my default to all sheets?
is the problem the following:
- You insert on another sheet a grid and the table header is not positioned correctly and it always start on the same cell? This issue will be fixed but probably only with SP11. In the meantime you can use the code below for a fix (but not tested yet). The Macro can be found in Module1
Sub CallBack(ParamArray varname())
On Error Resume Next
Dim lOld As Integer
Dim lRange As Range
Dim lRAnge2 As Range
Dim lcell As Range
Set lRange = varname(1)
' Get all columns count and clear if necessary
If ThisWorkbook.Names("LOLD_" & lRange.Worksheet.Name) = Null Then
   ThisWorkbook.Names.Add Name:="LOLD_" & lRange.Worksheet.Name, RefersToR1C1:=1
End If
lOld = Replace(ThisWorkbook.Names("LOLD_" & lRange.Worksheet.Name).Value, "=", "")
If lOld <> 0 Then
  Set lRAnge2 = lRange.Worksheet.Range(lRange.Worksheet.Cells(lRange.Row - 1, lRange.Column + 2), lRange.Worksheet.Cells(lRange.Row - 1, lRange.Column + lOld - 1))
  lRAnge2.ClearFormats
ThisWorkbook.Names("LOLD_" & lRange.Worksheet.Name).Value = lRange.Columns.Count
End If
Set lRange = varname(1).Worksheet.Range(lRange.Worksheet.Cells(lRange.Row - 1, lRange.Column), varname(1).Worksheet.Cells(lRange.Row - 1, lRange.Column + lRange.Columns.Count - 1))
    lRange.Font.Size = 10
    lRange.Font.FontStyle = "Bold"
    lRange.Interior.ColorIndex = 51
    lRange.Interior.Pattern = xlSolid
    lRange.Interior.PatternColorIndex = xlAutomatic
     Call setFilterStyle
Sheet2.Shapes("TextQueryTitle").DrawingObject.Text = BEx.DataProviders("DATA_PROVIDER_1").Request.Properties.QueryDescription
Sheet3.Shapes("TextQueryTitle").DrawingObject.Text = BEx.DataProviders("DATA_PROVIDER_1").Request.Properties.QueryDescription
End Sub
Heike

Similar Messages

  • How to insert a query into a NEW workbook ?

    Hi Friends,
    Could some one tell me how to insert a query into a new workbook? i am trying to run query in NW2004S BEx Query Designer, which always open the query on web when executed. i want to run the query in NW2004S BEx Query Designer and want it to open the result in Excell.
    If i am not wrong then to do the same, i need to embed the query into workbook. Correct me if i am wrong. If i am right then plzz tell me the steps to insert the query into workbook.
    Ur help will be rewarded in terms of points.
    Thanks,

    Hello,
    If you open the BEx Query Designer from the desktop, you cannot execute the query directly to the BEx Analyzer for an Excel view. You can only execute it directly to the Web. This is true for the SAP BW 3.x version as well as the SAP NetWeaver 2004s version.
    If you open the BEx Query Designer from within BEx Analyzer, once you select (or create) your query, you will have a green check mark icon that will then allow you to deploy the query directly to the BEx Analyzer for the Excel view.
    However, this would only make sense if you are creating or modifying the query. If not, you would simply open BEx Analyzer and use the Open Query option in this tool to see your query in an Excel format, as has been previously suggested by the other respondents to this posting.
    Regards,
    Katie Beavers
    SAP NetWeaver Product Management

  • Insert Query in workbook

    Hi
    Can anyone of you please give me some information or any links explaning step by step procedure on:
    1. How to copy a query
    2. How to insert query in Workbook
    Many Thanks

    Hello,
    1. How to copy a query
    Open the Query Designer and choose edit of the query then choose "Save as". This will copy your query. You can also use transaction RSZC to copy queries between different InfoProviders if possible
    2. How to insert query in Workbook
    Just open the workbook, go to the place you want and click on the option Tools->Insert query (with BW 3.x); With BI 7, just open your workbook, choose a place you want to insert the query and click on the table button, then you have to assign that table to a dataprovider (a query)
    Diogo.

  • Inserting query in workbook

    Hi,
    Does anyone know the Function Module/program that inserts a query in a workbook? (table RSRWORKBOOK)
    Thanks in adv.

    thanks for your rep. My situation is, im am migrating queries/workbooks from system x to system z. queries are moved using a custom program (query BAPI's) Queries are created with new GUID's, hense, the workbook/query relationship is lost. So I need to reestablish the relationship programatically if possible....

  • Steps to create workbook and need to insert 10 query's in the workbook

    Hi,
    Please let me know Steps to create workbook and need to insert 10 query's in the workbook.
    Thanks,
    rajesh b

    Hi,
        Creating Workbook ---> Open your query --> save it as a new workbook -->provide description for workbook -->If you want more queries into the same workbook then insert related queries into different different sheets by insert query from Tools menu .
    Regards
    Pcrao.

  • Query and Workbook BI 7.0

    Hi
    I am in BI 7.0
    1)I created a query X and saved it as workbook. When I edit the changes in query, I don't see the changes reflected in workbook.I thought if I change the query or workbook, the changes should take place.
    2) I have to create 12 queries of same structure but contains different hardcoded costcenters.Can somebody advice me what is the  best method to accomplish the above requirement.Should I create query or query views and what major differences did you guys observe between Query and Query View from your expereince and practices...

    Hi Jacky,
        If you change the query this way you wont have to re-insert the query each time you make changes.
    1. Open the workbook.
    2. Select the query by clicking on it. Then use the Edit query option from the toolbar.
    3. Make changes to the query.
    4. Execute the query by clicking the Green check mark.
    5. After making sure that the changes have been applied, save the workbook.
    Hope this helps...

  • Report Designer - Issue in inserting the query

    Hi
    I'm facing problem when inserting the query in the Report Designer. Following is the steps I take to create new report in report designer.
    1. Developed the query in Bex Analyzer.
    2. Click on new in Report Desginer.
    3. Click on 'Insert Data Provider'.
    4. And at this point it self system throw a message saying that "Do you really want to delete this section? Query will be removed if it is not used in any other section.'
    Has anybody come across thos type of issue.
    Please advice if I'm going wrong any where.
    Regards
    Rohini

    Hi,
    You mean you have created query in query designer right....
    because a query/workbook.query view created bt Bex abalyzer can't be a data taregt for report designer
    Cheers,
    Swapna.G

  • How to add more than 1 query in workbook

    Hi All,
    How do we add More than 1 query in workbook, Can any one provide me steps.
    Thanks in Advance.

    Hi,
    If you are using BI7 Bex analyazer, please check whether the following explanation helps you:
    "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. "
    Thanks & Regards,
    Sapna

  • Sorting query in workbook

    Hi Expert.
    I have a big problem.
    When I insert a query in a workbook this not sort by keyfigure.
    I insert a condition ( TOP 20 for example ).
    If I refresh a query in a workbook this sort correct but if I execute a workbook this is sorted by characteristic.
    My problem is like
    Sorting by a Key Figure in Query Designer
    Anybody find a solution?
    Thank,
    Marco

    add
    I can sort a query using VBA code but the problem is when I have a query with hierarchy.

  • We have upgraded to BI7 and When I am trying to save a query as workbook

    Hi,
    we have upgraded to BI7 and When I am trying to save a query as workbook and open it is opening but a junk data is getting displayed in the excel workbook.The excel version is 2007.
    But when I tried the same with excel version 03 it is opening fine with valid data.
    Pl help.
    Thanks in adavance,

    Thanks Bernd:  I am using Adobe Acrobat 10 Pro.  I did get a response from Dave Marchant which directed me how to find the layers icon and I found the options icon as suggested in Adobe Help.  However, the options do not allow me to choose an option of either merging layers or flattening layers.  I am a novice at this and am trying to get this 1-page pdf graphic to convert to a Word document.  Is it possible that I already have a single layer pdf and that Word is doing something weird during the conversion?  I tried to convert the document yesterday and I ended up with two pages in Word.  One page had the text boxes and one had the river channels on which the text boxes had been inserted.  This is not a document I created.  We have been struggling for 5 years at various times to get this one page document into Word so that it can be used in multiple reports.  Even the graphics departments at a couple of companies have not been able to get this document resized from the original 11 x 17 format into 8.5 x 11.  I managed to get that done yesterday.  But now can't get a useable version into Word.  Suggestions?

  • SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field

    Hi,
    I am using Access 2013 and I have the following VBA code, 
    strSQL = "INSERT INTO Master SELECT * from Master WHERE ID = 1"
     DoCmd.RunSQL (strSQL)
    when the SQL statement is run, I got this error.
    SELECT * cannot be used in an INSERT INTO query when the source or destination table contains a multivalued field
    Any suggestion on how to get around this?
    Please advice and your help would be greatly appreciated!

    Rather than modelling the many-to-many relationship type by means of a multi-valued field, do so by the conventional means of modelling the relationship type by a table which resolves it into two one-to-many relationship types.  You give no indication
    of what is being modelled here, so let's assume a generic model where there is a many-to-many relationship type between Masters and Slaves, for which you'd have the following tables:
    Masters
    ....MasterID  (PK)
    ....Master
    Slaves
    ....SlaveID  (PK)
    ....Slave
    and to model the relationship type:
    SlaveMastership
    ....SlaveID  (FK)
    ....MasterID  (FK)
    The primary key of the last is a composite one of the two foreign keys SlaveID and MasterID.
    You appear to be trying to insert duplicates of a subset of rows from the same table.  With the above structure, to do this you would firstly have to insert rows into the referenced table Masters for all columns bar the key, which, presuming this to be
    an autonumber column, would be assigned new values automatically.  To map these new rows to the same rows in Slaves as the original subset you would then need to insert rows into SlaveMastership with the same SlaveID values as those in Slaves referenced
    by those rows in Slavemastership which referenced the keys of the original subset of rows from Masters, and the MasterID values of the rows inserted in the first insert operation.  This would require joins to be made between the original and the new subsets
    of rows in two instances of Masters on other columns which constitute a candidate key of Masters, so that the rows from SlaveMastership can be identified.
    You'll find examples of these sort of insert operations in DecomposerDemo.zip in my public databases folder at:
    https://onedrive.live.com/?cid=44CC60D7FEA42912&id=44CC60D7FEA42912!169
    If you have difficulty opening the link copy its text (NB, not the link location) and paste it into your browser's address bar.
    In this little demo file non-normalized data from Excel is decomposed into a set of normalized tables.  Unlike your situation this does not involve duplication of rows into the same table, but the methodology for the insertion of rows into a table which
    models a many-to-many relationship type is broadly the same.
    The fact that you have this requirement to duplicate a subset of rows into the same table, however, does make me wonder about the validity of the underlying logical model.  I think it would help us if you could describe in detail just what in real world
    terms is being modelled by this table, and the purpose of the insert operation which you are attempting.
    Ken Sheridan, Stafford, England

  • Query on workbook.

    Is it possible to build Query on workbook?
    ie: Is it possible to summarize the results of two querys and to display the result in another query.
    Problem: Due to wrong definition of field the data get overflowed and results in sql error in query.
    Now if i change the field definition thant its a risky process due to the data presence for field in different target.
    Instead of that i have planned to built two queries with different selection and summarize the result in third query and attach the third query in webtemplate for web reporting.
    Sure points for valid inputs.
    Thanks in advance.

    Hi Armstrong,
    Yes, it is possible to summarize the results of two querys and to display the result in another query by using workbook.
    Create a workbook with the two queries in two seperate worksheets(sheet1 & sheet2) in the workbook.
    Take a new work sheet(sheet3) for the 3rd query i.e. result query. In this worksheet you copy the result of 1st query and 2nd query and add it
    or
    You can write a formulia for adding these two query result.
    Select the cell which you want the summiation of 1st and 2nd query to be displayed in sheet3. Type = in that cell and click the sheet1 and select the result of 1st query ( we displayed 1st query in sheet1) then type + and click sheet2 and select the result of 2nd query ( we displayed 2nd query in sheet2) then press enter. Now you can see the summiation of these two queries in that cell in sheet3.
    Now attach this workbook in webtemplate for web reporting.
    I hope you understand the procedure. If you have any clarifications let me know.
    Regards,
    Patil.

  • Very slow insert and query

    Dear Professionals:
    The insert and query become very slow and somtimes hang. It wasn't like this before .. Network people added 100 pc to the network .. most of them not using the databse only internet and we are all in the same network .. Can this slow down the database Oracle 9.2.0.1.0 OS w2k server ? And how to know that the slowness is from network and not from query or inserts ?
    Ahmed.

    Hi,
    >>Network people added 100 pc to the network .. most of them not using the databse only internet. Can this slow down the database Oracle 9.2.0.1.0 OS w2k server ?
    Maybe yes, maybe not, maybe a network performance problem ...
    If you try to execute these DML's (insert, ...) and querys directly on the Server, what's happen ?
    Cheers

  • Discoverer EUL Workbooks - Query Statistics, Workbooks Queried By User

    Hi there.
    I've just ran Discoverer EUL workbooks and found out a nice functionality on one of those queries. It's on EUL Query Statistics workbook, "Workbooks Queried By User" worksheet (and others).
    If you take a look at the "Worksheet Usage" column, you'll notice that there's an effect that looks a lot like a "progress bar". According to the times that worksheet was used, this bar advances or retract.
    I noticed it's a calculated column, but when I try to edit it, it shows no more than COUNT_DISTINCT("Date & Sheet"). I got a little confused on how this COUNT_DISTINCT shows that "progress bar"....
    So... how can I implement this on my DM queries?
    TIA.

    You need Desktop. When you format the data, there is a check box to show graphical bars. This option is not available in Plus, but the bars will show up when the report is displayed in Plus.

  • Default Query or Workbook on BEx Open

    Is there a way for individual users to set a default Query or workbook to execute when they open BEx?

    Hi
    There is a way to do it using Windows functionality.
    right click on the Analyzer icon and add the full path name of the work book (which is saved on the local PC) in the Target text box.
    You can also open the saved work book and then run the Analyzer.
    I don't think there is a way to do it via the BW server.
    Thanks Edan

Maybe you are looking for

  • How do I tell if itunes is on my computer? I tried to download it.

    How do I get songs from a CD onto the nano?

  • How do I move my iTunes Music to an external hard drive? Please help!

    I bought an external hard drive and moved the iTunes Music folder from my local hard drive to the external hard drive and now the iTunes library appears empty. I moved all my music back into the local hard drive and the libarary is now full full of m

  • Zip-Unzip

    New to Mac. Is there a file compressor/decompressor that comes with OS X? If not, any recommendations for an open source/freeware/shareware or inexpensive version? I need to compress as well as decompress. Thanks, Eric Weir Decatur, GA USA

  • Invoking EJB3 from BPEL 11g

    Hi, I need to call EJB from my BPEL process. I am using Jdev 11.1.1.4. I am able to call the EJB from my BPEL if both are deployed in the same container. Ideally I would be having the EJB deployed in a different machine. But when I try to invoke EJB

  • Many Tables & Group Summaries

    I've been away from CR for a while and need some help with a report. The database I'm reporting from has many tables and the ones I'm using are: Units Workorders Activity Detail Activity Master Labor Details Parts The report is based on a unit with W