Single Selection Prompt for all queries

Hi All,
I have 5 queries in my workbook.
Each query uses some variable which is not used in the other queries.
So, i get 5 prompts when i run the query.
This looks very awkward and also my system almost hangs while showing for each prompt.
Is there any way of showing all the variables in a single prompt?
Thanks,
Arun KK

Hi,
I found this answer on a message board:
http://sap.ittoolbox.com/groups/technical-functional/sap-bw/assigning-same-variable-values-for-queries-in-workbook-711943
There are two answers to your question, depending on whether or not all of the dates are the same info object (i.e., have the same technical name).
Case 1:  All info objects have the same technical name.
Use the "refresh all" option:
Run "SAPBEX.XLA!SAPBEXrefresh", True 'true = refresh all
BW will use the input from the first set of refresh screen variables for all others.  IF each query have exactly the same refresh screen, you will not see another refresh variable screen.  If not, then BW will stop between queries to ask for more input, only if required. 
So, the trick would be to define the first query that refreshes in such a way that its variable screen covers everything needed.
Case 2:  Not all info objects have the same technical name.
Use the "Save and reuse variable values" option.  You will find this in the query Properties dialog box on the second tab ("Interaction").  Put a check there for all queries except the first one. 
Set up the workbook so that the first query refreshes by itself
Run "SAPBEX.XLA!SAPBEXrefresh", False 'False = refresh one only
Then, after the first query has refreshed, locate the date(s) the user selected and copy those to the ranges for all other date values.  If your installation is BW 3.x, the code below should do the trick.
It is slightly ineffecient because it will refresh the first query twice.  But, the second refresh will be fast because the results will still be in cache. And, the code to keep it from refreshing the first query twice is not something you really want to mess with.
Alternatively, instead of using the SAPBEXrefresh, True at the end, you could put in 13 different SAPBEXrefresh, False statements, identifying the other 13 query worksheets individually.
   Run "SAPBEX.xla!SAPBEXrefresh", False, _
       Sheets("firstQueryToRefresh").Range("a cell in the query")
   'locate dates user selected for "0CALMONTH"
   For i = numFilter + 3 To 4 Step -1
       If Range("GS" & i) = "0CALMONTH" Then
           myType = Range("GC" & i)
           myInterval = Range("GD" & i)
           intfirstMonth ("GE" & i)
           extfirstMonth = Range("GF" & i)
           intlastMonth = Range("GG" & i)
           extlastMonth = Range("GH" & i)
           Exit For
       End If
   Next i
   For i = 4 To numFilters + 3
       If Range("GS" & i) = "YCODOCMNT" Or _
           Range("GS" & i) = "YCOSHPMNT" Or _
           Range("GS" & i) = "0CALMONTH" Or _
           Range("GS" & i) = "YCOACCMT" Then
           Range("GC" & i) = myType
           Range("GD" & i) = myInterval
           Range("GE" & i) = intfirstMonth
           Range("GF" & i) = extfirstMonth
           Range("GG" & i) = intlastMonth
           Range("GH" & i) = extlastMonth
       End If
   Next i
   Sheets("SAPBEXqueries").Visible = xlSheetVeryHidden
   Sheets("firstQueryToRefresh").Select
   Application.ScreenUpdating = True
   Run "SAPBEX.xla!SAPBEXrefresh", False
End Sub
maybe this will help a bit.
regards,
Raymond Baggen
Uphantis bv

Similar Messages

  • How to get One Selection Screen for all queries?

    Hi Experts,
    I have three queries having selection screens. All the selection screen have the same variables, but the reports are different.
    I have created a workbook having these three queries. Each time when the workbook opens, the three selection screen pops up one after the another. Same values are entered in all the selection screens.
    Now the user wants only one selection screen for all the three reports. Is it possible? I tried but I do not see any way.
    I think there should be some way of getting it done.
    Waiting for your inputs,
    With kind regards,
    Shreeem

    Hi
    If a workbook contains multiple queries that use the same variable, you are prompted to enter the variable values again for each query. To avoid this, set the Display Duplicate Variables Only Once flag.
    Goto Workbook Settings>Under Variables Tab>select Display Duplicate Variables only Once
    http://help.sap.com/saphelp_nw70ehp1/helpdata/EN/54/a493f7256b43698191a2623e5a0532/frameset.htm
    Hope this helps,
    Aparna Duvvuri

  • Need Different Selection screen for different Queries in a Workbook

    Hi,
    I have created a workbook with Multiple tabs in BI 7.0.  Each Tab has different Queries and each query has different Selection screens (Variable Selections).
    When i open the workbook and refresh it, the selection screen is appearing only for one query.  All the queries are refreshed by this single selection screen, though each query has different Variable selections.  What i need is a seperate selection screen i.e seperate Variable selection appearing for each queries, when i refresh each one of them.
    Is it possible to do this?  If anybody has tried this, help me in solving this issue.  Thanks for ur time.
    Regards,
    Murali

    Murali,
    If you un-check the 'Display Duplicate Variables Only Once' this WILL solve your problem.
    When you Refresh, you should be presented with a single variable selection dialog box, but it should contain an area for each Query (DataProvider) that is embedded in the Workbook.
    This is the case if the queries are all on the same tab, or on different tabs.
    However, if you have multiple tabs each with a query on it, each query must have it's own DataProvider. If all queries are based on the same DataProvider, it will not work as the Workbook only 'sees' one Query for which it needs variable input.
    If you REALLY want multiple variable selection dialog boxes, then maybe the best way to do this is to have the queries in separate Workbooks.
    If you don't want the User to have to open 5 queries manually, you could use a Macro in each Workbook that runs on opening, to open the next Workbook in the sequence.
    I hope this makes sense!
    Regards
    Steve

  • IPhoto frustrating error..The volume for "Df23.JPG" cannot be found. It prompts for all photos with this issue rather than offering an option to ignore. I can find the images in spotlight but not in Find Photo. Does anyone have a solution

    iPhoto frustrating error..The volume for "Df23.JPG" cannot be found. It prompts for all photos with this issue rather than offering an option to ignore. I can find the images in spotlight but not in Find Photo. Does anyone have a solution?

    Unless you have the source files that were on the TC or Windows machine you will have to start over with a new library as follows:
    Start over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1.  Move the existing library folder to the desktop.
    2. Open the library package like this.
    Click to view full size
    3. Launch iPhoto and, when asked, select the option to create a new library.
    4. Drag the Masters (iPhoto 11) folder from the iPhoto Library on the desktop into the open iPhoto window.
    Click to view full size
    This will create a new library with the same Events as the original library but will not keep the metadata, albums, books slideshows and other projects.  Your original library will remain intact for further attempts at fixes is so desired.
    OT

  • For the first time, I downloaded a podcast in the podcast app by clicking on the cloud icon. Now, every single play button for all of my podcast episodes is grayed out. Why can't I play any of my podcasts any more?

    For the first time, I downloaded a podcast in the podcast app by clicking on the cloud icon. Now, every single play button for all of my podcast episodes is grayed out. Why can't I play any of my podcasts any more?

    Greetings Heather,
    After reading your post, it sounds like you are experiencing an error with the Podcasts app. You may want to consider restarting the device first, and then resetting if that does not work. This article provides detailed instructions for Restarting, and Reseting:
    Turn your iOS device off and on (restart) and reset
    How to restart
    Press and hold the Sleep/Wake button on the top of your device until the red slider appears. Then drag the slider to turn your device completely off.
    After the device turns off, press and hold the Sleep/Wake button again until you see the Apple logo.
    How to reset
    You should reset your device as a last resort and only if you can't restart it.
    To reset, press and hold both the Sleep/Wake and Home buttons for at least 10 seconds, until you see the Apple logo.
    Thank you for contributing to Apple Support Communities,
    BobbyD

  • Tcode to create single delivery document for all line items in PO

    Hi all,
    Sorry if it is a simple question, But I am from SD module. What is Tcode to create a single delivery documents for all line items in PO. I have 3 line items with Different materials having diffent quantities and there are different delivery dates and different delivery schedule dates. I need to create single delivery. Could you please tell me how to do it? What is the Tcode?
    Thanks
    Anil

    Hi,
    Inbound delivery T.code VL31N.
    Regards,
    JS

  • Single notification email for all users

    Hi friends,
    Is there any way of setting a single notification email for all users in oracle 11i so that all the notification email goes to that email address (for test purpose only)?
    thanks in advance.
    LISAN

    See MOS Doc 562551.1 (Workflow Java Mailer FAQ ) and search for "override address". More details in MOS Doc 828812.1 (How To Stop Old Outbound Workflow Notification Email Messages During Clone Activity)
    HTH
    Srini

  • What is Tcode to create a single delivery documents for all line itemsinPO?

    Hi all,
    Sorry if it is a simple question, But I am from SD module. What is Tcode to create a single delivery documents for all line items in PO. I have 3 line items with Different materials having diffent quantities and there are different delivery dates and different delivery schedule dates. I need to create single delivery. Could you please tell me how to do it? What is the Tcode?
    Thanks
    Anil

    Hi Anil
    For your 1st question , if the delivery date is same but he material and quantity are different also then both can be delivered . So you can combine those two materials into 1 delivery . what you said is true
    For your 2nd question , you said you have two line items in PO , but if you want combine them into 1 delivery document , then first of all as they are two different materials you cant combine , but if you have a 3 PO's for the one material only  then you can combine into one delivery by using VL10A
    Regards
    Srinath

  • Change read mode for all queries

    Hello, this should be an easy question for someone.  I believe there is a way to change the "read mode" for all queries at once.
    Can you tell me how to do that ?
    Thanks very much !!
    Keith

    Hello Bhanu,
    Iam not able to change query in my BW system but when i add authorization of SAP_NEW and SAP_ALL ,then iam able to change ,can i make modification in this table and then
    change or its a authorization problem.If this issue can be resolved with changing this table, kindly tell me how i have to call this table and wt parameters to change,kindly revert at earliest.I have sent u a mail also,kindly plz check.
    Regards,
    Saumya

  • Regarding Select using FOR ALL ENTRIES (FAEI)

    Hi all,
    Please help me with Select using FOR ALL ENTRIES (FAEI)
    Thanks in advns,
    Das.

    Hi,
    This version of the SELECT statement was the only way to join tables until SAP release 3.0E.  It is recommended that the SQL JOIN be used.  However, this is an alternate method of joining tables that may be used in some circumstances.  Remember, SQL JOIN doesn’t utilize the SAP internal database buffer.
    Example:
        SELECT EKGRP FROM T024
               INTO TABLE T_024.
        SELECT MATNR WERKS EKGRP FROM MARC
               INTO TABLE T_MARC
               FOR ALL ENTRIES IN T_024
               WHERE EKGRP = T_024-EKGRP.
    Prerequisites:
    The driver table cannot be empty. This would cause one full table scan.
    In general, keep the driver table as small and unique (in regards to the fields that would be needed for referencing in the FAEI) as possible. If duplicate entries are not deleted, identical data is read unnecessarily from the database.
    If FAEI is used, the selected field list must be a superset of all the key fields of the database tables used in SQL. This is absolutely required to avoid data loss since the DB interface in R/3 returns unique sets of the result set to the application program. Failing to ensure this may cause problems when you want to get all records from a database table that match a certain condition.
    Avoid using FAEI on a small DB table (like configuration tables). This could potentially cause full table scans for each FAEI packet. Even if it does index range scan, it is better to get data from the small DB tables by individual SELECT without the use of FAE.
    Always use FAEI in conjunction with a DB index otherwise it would cause multiple full table scans (one table scan for each FAEI packet).
    The first field(s) of the DB index should refer to the fields of the FAEI driver table in the SQL WHERE clause. Do not leave gaps between index fields in the WHERE clause. Inefficient index access will impact every FAEI packets.
    FAEI works best when retrieving a small percentage of data from a Database table. When a large percentage of data is needed, consider getting data out of the DB table without FAEI implementation, and then do additional filtration in your application
    Reward points if found helpfull...
    Cheers,
    Chandra Sekhar.

  • Turn off status messages for all queries in RSRT

    Hi Gurus,
    I got some help on this issue in a previous question, but I ended up having to fix more queries than I expected.
    Is there a way to turn off the messages for all queries in the system through transaction RSRT?   Right now I'm doing it one query at a time.

    Hi,
    Go to Transaction RSRT, then enter SUPPR_ALL in the tcode box again and hit enter. This brings up the maintain messages screen and it suppress the messages globally
    cheers,
    Swapna.G

  • Single Go button for all prompts - without making changes to system files

    Hi All,
    I went thru several threads and blogs which suggest to do certain changes in the .js files to get a single go button for a group of prompts (saved as individual objects)
    Is it possible to have single go button in 11g for prompts which are saved separately without changing the system files?
    Many Thanks,
    RS

    Hi,
    I dont think so. But in 11.1.6 version there is a feasibility to avoid apply and reset buttons. so that will make to appear all the prompts together.
    And you can try to built a common prompt filter with all the columns, but it will be bad and cause lots of problems.
    Hope this helped/ answered.
    Regards
    MuRam

  • Selecting single value using for all entries.

    Hi Experts,
    I want to know that is it possible to fetch only the first record for a particular condition while using for all entries.
    For ex:
    Suppose i got 10 different vbeln from vbak table into my internal table it_vbak. For a particular vbeln there can be multiple records in vbap table.
    Now i need to fetch only the first record which is getting from vbap table for different vbeln while using 'for all entries in it_vbak where vbeln = it_vbak-vbeln'. Is it possible?
    Thanks in Advance
    Be$t!N
    Moderator message - Moved to the correct forum
    Edited by: Rob Burbank on Nov 17, 2009 9:38 AM

    Hi Rob Burbank,
    Thanks..
    You are correct.. If that is the scenario in their company... Again it depends on the configuration and business process.. But it's possible that they may need to delete first on any line item after creation of sale order..
    In that case below solution will work..
    IF IT_VBAK[] IS NOT INITIAL.
    SELECT * FROM VBAP
    INTO TABLE IT_VBAP
    for all entries in it_vbak
    where vbeln = it_vbak-vbeln.
    ENDIF.
    SORT IT_VBAP BY VBELN POSNR.
    LOOP AT IT_VBAK INTO WA_VBAK.
    READ TABLE IT_VBAP INTO WA_VBAP WITH KEY VBELN = WA_VBAK-VBELN.
    IF SY-SUBRC = 0.
    APPEND WA_VBAP TO IT_VBAP2. " Another Internal table which stores only first record
    ENDIF.
    CLEAR : WA_VBAP.
    ENDLOOP.
    OR
    IT_VBAP3[] = IT_VBAP[].
    SORT IT_VBAP3 BY VBELN POSNR.
    DELETE ADJACENT DUPLICATES FROM IT_VBAP3 COMPARING VBELN.
    Now Table IT_VBAP2 and IT_VBAP3 will be having only first line items for all sales orders..
    Do some little changes in the code as per your requirement.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • How to show a single error message for all fields

    Hi
    I have a JSF from containing around 10 controls(input, select etc.) .
    Now I need to display an error message in case any of the mandatory control has validation error.
    Message format would be like
    "*Please,Complete the fields marked with yellow!"* The message I need to show in a div tag with Yelow background.
    Currently, I am getting individual default error message in case validation fails and related field is bordered with Yellow.
    My code is below.
    *<h:panelGrid columns="3">*
    *<h:outputText value="#{msgProv.bi_firstname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText*
    *value="#{brokerInformationFields.firstName}"*
    *label="#{msgProv.bi_firstname}" id="firstName" required="true">*
    *<f:validateLength maximum="10" minimum="2" />*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:outputText value="#{msgProv.bi_lastname}" />*
    *<h:outputText>*
    *<rich:spacer width="100px"></rich:spacer>*
    *</h:outputText>*
    *<h:panelGroup>*
    *<h:inputText label="#{msgProv.bi_lastname}" id="lastName"*
    *value="#{brokerInformationFields.lastName}" required="true">*
    *<f:validateLength maximum="20" minimum="1"/>*
    *<rich:ajaxValidator event="onblur" />*
    *</h:inputText>*
    *</h:panelGroup>*
    *<h:commandLink action="#{brokerInformationActions.submit}">*
    *<h:graphicImage value="/images/axa/btn_submit_from.png" style="border:0px;"/>*
    *</h:commandLink>*
    I am using (JSF1.2,Rich Faces 3.3.0,Facelets.)
    And a Phase Listener from
    http://balusc.blogspot.com/2007/12/set-focus-in-jsf.html
    This Phase listener is to border the control with Yellow in case validation fail.
    Now my Query
    *1) How can I show a single message for all fields as I marked above in case of validation failure?*
    *2) Now, the control is becoming yellow borderd when user clicks the submit button and validation fails.*
    *User can move from one control to other using tab. That time proper validation message is appearing.*
    *but the border of the control is not changing to yellow.*
    *What's the correcion can be made to meet that requirement too.*
    regards
    Roy

    Hi Nabheet,
    Thanks for your response.
    The FM returns the error messages if they are standard ones. For example, if the posting period is closed - the FM will not allow the Workflow to proceed further.
    But in this case, I have a custom error - for a particular Profit center, Cost center and I/O fields are mandatory(not at time of parking, but should be filled before posting).
    Since this is not a standard error, this FM will not stop workflow from proceeding further. How can I have the custom error captured in this FM?
    Thanks.

  • Capture @@ROWCOUNT for all QUERIES using SQL AUDIT

    I have a requirement where the customer wants to audit all SELECT queries made to a specific table  and also capture
    "No of rows returned" for these queries made to the table. I was able to capture various SELECT queries happening in the database /Table using SQL AUDIT, Wondering if anybody can suggest how to capture no of rows affected along
    with it, Since we have numerous stored procedures in the system we wont be able to modify existing stored procedures.

    Good day Vish_SQL,
    There are several options that you can use, which fit different cases. for example:
    1. Using extended events (My prefered solution for most cases like this)
    2. Using profiler (older option)
    3. Using view (with the same name as the table, and rename the tables related to the issue) instead of the original table, adding to the view a simple function or SP (CLR for example). the function return the
    column value, but behind the  screen write information to another table. It is a very rare case that you need this option, and I can't recommend
    it.
    4. using applications like GREENSQL which give another level between the application and the SQL Server. The users connect to the server but the server do not listen to remote connection but the external app dose.
    In this case the app get the query and send it t the server (after security or monitoring if you need)
    * it was much simpler if you want to monitor delete, update, or insert for example, since in those cases you could work with AFTER trigger.
    ** I highly recommend you to monitor the application that connect to the SQL Server rather than the SQL Server. if you can.
    Check this:
    http://solutioncenter.apexsql.com/auditing-select-statements-on-sql-server/
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

Maybe you are looking for

  • Apple ID - At My Wits End

    This exact same text has been posted in the "iTunes" forum. This question is probably not in the right place.  Fact of the matter is, there ISN'T a right place here for this question. I see I am signed in here as "Mudsharkbytes".  Even THAT surprises

  • Messages do no longer work on MPB

    Can no longer send/receive iMessages from my MBP using Os X Mavericks. Status shows offline, but also no chance to switch to available or any other "online-mode". Somebody else facing same issue or knows how to fix? Thanks Daniel

  • DVD drive will not take disc

    I know there are other threads about this, but it seems like my situation is a little different than others. My combo drive has worked fine since I bought my laptop. Now, of course, it stops working one month after my warranty expires. It just won't

  • Hyperlink color doesn't change when hovering over link

    I create hyperlink, color I select for hovering over link works fine. But sometimes when I publish to my website the link color does not change, but the link works ok. I go back to my mac and check, sure enough the color changes just fine. I wipe out

  • Seeing all pictures that I have in my computer

    In Snow Leopard there was a provision to see all pictures in the search, what is now Spotlight. Is there such a thing in Lion?