BW3.5 - changing variables in a PREquery with VBA... Possible?

Hello All,
Here's my problem (note that this relates to BW 3.5).
I am refreshing one workbook (containing 47 queries) a number of times using a different set of variables each time (there are 10 variables altogether). My sets of variables are saved on an Excel spreadsheet and I use a loop in VBA which reads them and then overwrites variables on the SAPBEXQueries sheet. VBA then forces queries refresh, runs additional macros, and saves the workbook. I repeat this operation about 40 times. All queries have "Save and reuse variables" ticked on, so I don't get a variables box popping up. This basically is meant to work as a sort of a broadcaster and run at night.
However, some of my queries need running a prequery (there's a replacement path), and that's when problems begin. A pop up box of a prequery appears requesting a variable to be entered. BW doesn't seem to "remember" that the same variable has been used in other queries already, and doesn't automatically populate it, and is waiting for user's input. The question is: how can I populate it automatically using VBA, so I don't get the pop up box? Obviously, variables for prequeries are not saved on the SAPBEXQueries, so the pop up box would need to be populated on the fly.
Has anyone have any suggestions please?
A.

Simon, thank you for you suggestions.
This must sound like an awefully complicated solution we are using to automate our reporting. However, it proves to be very efficient, in fact, and works on a number of workbooks (works better than BW broadcaster).
As for your suggestions. Firstly, I have not authorisations to perform any actions requiring CMOD changes. This would need to be done by another department and take, in fact, months and lots of paperwork... I can't afford that
Secondly, all my variables are used by other users, so I cannot change them. I haven't worked with variants before, but if this would require me to change all my variables, then I can't do it (at least not this time). However, could you pls describe this solution in more detail, and I will do some research as well.
Thanks,
A.

Similar Messages

  • Format for Predefined lists of repeated measurements with changing variables

    Hi,
    I am a scientist and trying to draw an instrument ("writing a script" sounded wrong for LabView ) that is supposed to perform repeated measurements in an imaging experiment.
    I want to be able to give the instrument a list that defines the values for several variables for each repetition, because I want it to do different things in different episodes of the experiments and/or alternate different acquisition methods. In this way I can use the same script for a wide range of experimental paradigms.
    I am trying to decide on the format in which I could write the sequence to LabView to read. I looked into XML, but the LabView scheme seems pretty useless. If I use a textfile I would have to program a parseing script myself. If I use binary files I need to program an editor.
    I also thought about whether I want a line by line execution protocoll or just changing variables and leaving the execution protocoll integrated in the instrument. However, the latter would reduce the versatility.
    What would you think is a good way to do it?
    In general each measurement consists of:
    0. wait for a defined time (always the same)
    1. light on (different light sources)
    2. acquire images (different durations, exposure times, frames numbers)
    3. trigger a device (not in all repetitions, maybe changing devices in future)
    4. turn on a channel (changing channels)
    5. acquire images (different durations, exposure times, frames numbers - also different from step 2)
    6. turn off the channel (same as in 4)
    7. acquire images (different durations, exposure times, frames numbers - also different from step 2 and 5)
    8. light off (same source as 1)
    So there is basically a repetitive pattern. The image acquitisition 'epics' are performed by the same device, everything else is switching on and off channels of a NI PCI.
    Dennis
    P.S. I use LabView 2009

    I'm in agreement that your best bet would be a simple CSV or tab delimited file.  You can edit these in Excel, which makes the writing a lot easier.  There is the Read Spreadsheet File VI which can give you a 2D array for your steps and parameters.
    So, to keep it simple, use a csv.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Variable Exit Not Working with Personalization After Upgrade

    We recently upgraded our BW production system from version 3.5 to 7.0. Currently, we have some web templates/reports that use date related
    user exit variables in the query. For instance, we have a date range
    variable that is populated with a 90 day rolling period in the Customer
    Enhancement RSR00001 / program ZXRSRU01.
    Before the upgrade, these variables would get populated by the Customer
    Enhancement even if the web template/page was personalized. However
    after the upgrade the, when the users try to personalize their
    page/template the date range is not populated by the user exit anymore.
    Instead, the date range that was present when personalization is being
    set.
    Seems like the sequence priority for the population of variables has
    changed with the upgrade where personalization supercedes the customer
    exit for variable population.
    As a result, all these web reports are coming with wrong dates now
    after the upgrade.

    This is due to deactivation/format change of few info objects post upgrade.
    This can be recitified by a program or by manual activation.
    With NW2004s SAP Content contains the new versions of InfoObjects 0TCTLOW, 0TCTHIGH and 0TCTIOBJVAL having type CHAR with the length 60 are delivered.
    In order to resolve the problem with personalization ensure that the right version of these InfoObjects in active. If still the old version with filed length 32 is used, it is necessary to activate these 3 InfoObjects using Administrator Workbench --> Business Content.
    When activation is completed, personalization of variables should be repeated once again in order to write the values to the DSO 0PERS_VAR.
    Program correction, I am not completely sure, but its something like RS_PERS_ACTIVATE.
    Please check.
    Naveen.A

  • Sampling local variable and synchroniz​e with DAQmx

    Hello, 
    I made a small change in the set-up I used with labview and now when I wanted to change the code I'm having a rather complicated problem.
    In my old set-up I was measuring three variables: x and y with a QPD and the power of a laser with a power detector. I was using the DAQmx and I was getting a matrix with three columns with n (sample rate) values. Now, for various reasons I had to take out the second detector. So now I want to build the same matrix as constructed before, but instead of putting the measured values of the laser power I want to put the theoretical values (they are in a local variable) as I cannot measure them. The problem is that this local variable, in general, changes during the DAQmx acquisition time and I would need to sample it at the same rate as I acquire the data from DAQ and then combine all them. How I could sample this variable and attach it to my DAQ results? DAQmx doesn't accept local variables.
    Thanks

    A local variable is not something standalone. It is always associated with a control or indicator. Hows is it updated?
    From your description, it is not clear what you are doing. Can you show us some code instead?
    (Also be more clear when using acronyms. QPD cound mean many things)
    LabVIEW Champion . Do more with less code and in less time .

  • Changing variable values in query navigation

    Hello,
    We used to use the functionality of a user exit variable for a web template query and could enter a default value for a query, like yesterday's date. This allowed the web template to be presented without a user having to enter variables in order to initially see data. Then either dropdowns or the navigation block objects could be used to navigate the query. To do this the, "Can be changed in query navigation", was set to on. In BI 7.0 this functionality has been removed. Is there a way to provide a default value to a characteristic that can still be changed during query navigation?
    According to documentation this functionality has been enhanced with default values in the variables but there does not seem to be a way to enter a non-fixed value and still change it during navigation.
    Any assistance would be appreciated.
    Thanks,
    Rick

    This can be done by changing the variable to be processed with user exits and changing the user exit for variables to populate the variable value at runtime.

  • Currency conversion with variable in selection mask with problems

    Hi Gurus,
    I want to implement a currency conversion as follows:
    when the query is opened a selection screen should appear and the whole data which is with Euro currency should be possible to translate in USD, GBP, FRF (depends on which currency the user is choosing).
    I did a conversion with a variable with default value USD but I am not able to insert multiple currencies like GBP and FRF as default value/ suggestion in variable.
    I created a variable on 0Currency with following adjustments:
    - Processing By: Manual Input/Default Value.
    - Reference Characteristic (0CURRENCY) Currency.
    - Variable Represents: Single Value.
    - Ready for input: checked
    - default value: USD.
    With adjustment "variable represents" > "single value" it is not possible to insert two or three currencies as default value.
    When changing "variable represents" to "multiple single values" or to "selection option" it is possible to insert two or three currencies as default value.
    But when the variable is saved with "multiple single values" or "selection option" the variable doesn´t appear in currency translation type in tab currency when selecting target currency with option "target currency from variable".
    Any idea why the variable doesn´t appear with adjustments with "multiple single values" or "selection option"?
    Or any idea how it is possible to achieve my whished currency conversion?
    Thanks in advance!

    Charlie Belt wrote:
    saplaz-
    > If I read your request properly, you would like to be able to translate values to any one currency at a time, from a possible list of currency. Remove the default value and whatever currencies are available in your RSCURR should be there.
    That´s correct. I want to have a list of currencies in which it would be possible to translate. That means clicking in selection mask and the list appears.
    That was my first thougth ... removing the default value. I removed the default value but only Euro (EUR) appeared in that list for selecting. I thought this has maybe something to do with the data which is available in the cube and that is only in EUR.
    I will check the RSCURR and what kind of currencies are available.
    cheers

  • Change variable from negative to postive

    hallow
    i wont top now how i change variable from negative  to postive
    like change -5 to 5
    thankes

    Hi Shnya,
    You just multiply with " -1", it wil get converted from Positive to negative or vice versa.
    Hope I answered your query.
    Regards,
    Sujatha

  • To Run GPS by changing variable in UPSPL transaction automatically??

    Can somebody tell me if it is possible through an ABAP code to run global Plannig Sequence by changing variable value automatically by just a single click of button. (for eg. If i have a variable which can be given 5 different values, and i want to run a Global Planning Sequence for each variable value. Then can i write a ABAP code so that on just a single click of botton this is possible.) It would be helpful if somebody can send me a demo code also. My email id is [email protected]
    Regards
    Rishi

    Hi Rishi,
    To Answer, How to run GPS through ABAP code -
    i do not know a planning function to run a GPS, but i have written an ABAP code thought with i'm executing 3 planning functions one after another using function module UPC_FUNCEXE.
    CALL FUNCTION 'UPC_FUNCEXEC'
      EXPORTING
        I_AREA                =
        I_PLEVEL              =
        I_PACKAGE             =
        I_METHOD              =
        I_PARAM               =
    IMPORTING
      ET_LOG                =
      E_ERROR_OCCURED       =
    you can call this function module multiple time in your ABAP code. it will work same as a Global Planning Sequence.
    Can you explain more about how do you want to execute a planning sequence on the change of variable value.
    Regards
    Tarun

  • BEx crashes when changing variable values

    Hi all,
    We're having a problem with BEx.
    It crashes when trying to change variable values.
    We've been looking into syslogs and dev logs and so on,
    and found that the cpic connection has been disconnected
    before the crash. BUT we cannnot find out what is actually
    disconnecting the session.
    Well, at least F/W wasn' the cause. Have check the logs.
    Any ideas? Thx in advance!
    Yuko
    Below is our info.
    BEx: BI 7.10 sp7
    BI: BI 7.0 SAPKW70017
    <BI syslog at the time of BEx crash>
    15:40:36 RD                                 Q0  I Operating system call recv failed (error no. 232 )
    15:40:36 RD                                 S2  3 Connection to CPI-C client 586 was closed
    15:40:36 RD                                 S7  4 > Partner LU name:
    15:40:36 RD                                 S0  R > Host: 172.19.xx.xxx
    15:40:36 RD                                 S0  I > Partner TP Name: EXCEL
    15:40:36 DIA  000 500 BIB103                R4  9 Communication error, CPIC return code 020, SAP return code 223
    15:40:36 DIA  000 500 BIB103                R5  A > Conversation ID: 82142217
    15:40:36 DIA  000 500 BIB103                R6  4 > CPI-C function: CMSEND(SAP)
    <dev_rd log trace level 3>
    GWRD LOOP **********
    I'm in GwReceive
    SiSelPSelect: start select (timeout=20000)
    Thu Apr  9 15:40:36 2009
    SiSelPNext: an error occurred in sock 31
    NiSelISelectInt: error detected on hdl 18 / sock 31
    NiSelIListInsert: add hdl 18 [17] to sel-list (0) of set0
    NiSelISelectInt: 1 handles selected (0 buffered)
    main: NiSelNext (ni_hdl=18, read=1, write=0, connect=0, hdl_info=0x6000000000587400)
    request from CLIENT
    GwRequest: request from client 586
    GwGetMemory: allocated 0x600000000089bee0 (len=34615)
    NiHsLGetHostName: found address 172.19.xx.xxx in cache
    ***LOG Q0I=> NiIRead: recv (232: Connection reset by peer) [nixxi.cpp 4423]
    ERROR => NiIRead: SiRecv failed for hdl 18 / sock 31
        (SI_ECONN_BROKEN/232; I4; ST; 172.19.xx.xxx:1097) [nixxi.cpp    4423]
    Adresse   Offset  bad request
    GwSaveErrInfo2: save err info (225)
    ***LOG S23=> GwIDisconnectClient, client disconnected (586) [gwxxrd.c     11657]
    ***LOG S74=> GwIDisconnectClient, client disconnected ( SY08472) [gwxxrd.c     11665]
    ***LOG S0R=> GwIDisconnectClient, client disconnected () [gwxxrd.c     11704]
    ***LOG S0I=> GwIDisconnectClient, client disconnected ( EXCEL) [gwxxrd.c     11713]
    LOCATION    SAP-Gateway on host mxxx112 / sapgw01
    ERROR       connection to partner '172.19.xx.xxx:1097' broken
    TIME        Thu Apr  9 15:40:36 2009
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -6
    MODULE      nixxi.cpp
    LINE        4423
    DETAIL      NiIRead
    SYSTEM CALL recv
    ERRNO       232
    ERRNO TEXT  Connection reset by peer
    COUNTER     790

    Just FYI.
    After all, we ended up applying BEx addon patch 9.
    The problem about the BEx crash seemed to be fixed in patch 8, but another problem (I heard it was about something to do with report jump function) was not fixed. As a result, we skipped patch 8 and applied 9.
    Both problems were fixed in patch 9.
    Many thanks to SDN informations.
    Yuko

  • How do I change my apple id associated with FaceTime?

    Hi do I change the apple id associated with FaceTime on my MacBook?

    Beset would be to go to Settings>General>Reset>Erase all content and settings and then set up the iPod with with the new ID.
    The Apple ID is used for:
    Settings>iTunes and App stores
    Settings>FaceTime
    Settings>Messages>Send and Receive
    Settings Game Center

  • I just got an iphone and I already have an itunes account for my ipod, but I need to sync my phone and I do not want all my music and apps on it, can I change setting on my pc with out hooking up my phone

    I just got an iphone 4s and I need to sync it to my itunes on my pc, but I do not want all the music and apps to be synced to my phone, can I change the settings in itunes with out hooking up my phone?

    Open itunes, connect iphone,select what you want, sync

  • I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.

    I am trying to change the email address associated with my existing account to free up my university email address for use in obtaining Creative Cloud.  Every time I go to the account settings of my existing account (which currently uses my university email, as I set it up years ago and had no idea it'd eventually cause problems), I enter a different email to use for that account but I continuously receive an error message saying "account changes cannot be saved."  It makes me think that it's because the email isn't verified (funny, it actually is verified since it has been the alternate email on the old account for years), but when I click the "send verification email" nothing happens (that is, no email is sent to that other email address).
    Anyway, my university is now requiring that faculty create new accounts using our university email addresses in order to register/use Creative Cloud.  Am I able to delete my old account, or can anyone help me actually change the email address associated with my old account without getting a "changes can't be saved" error?

    This is an open forum, not Adobe support... you need Adobe support to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    or
    Make sure that EVERY DETAIL is the same in every place you enter your information
    -right down to how you spell and punctuate the parts of your name and address
    Change/Verify Account https://forums.adobe.com/thread/1465499 may help
    -Credit card https://helpx.adobe.com/utilities/credit-card.html
    -email address https://forums.adobe.com/thread/1446019
    -http://helpx.adobe.com/x-productkb/global/didn-t-receive-expected-email.html

  • On my windows Itunes I changed computers and ended up with two of every song. How do I delete the duplicates without doing it one at a time?

    I have duplicates of all the songs on my windows 7 computer.  I changed computers and ended up with duplicates of all of my songs. How can I delete them all without having to do it one at a time? thanks!

    Apple's official advice is here... HT2905 - How to find and remove duplicate items in your iTunes library. It is a manual process and the article fails to explain some of the potential pitfalls.
    Use Shift > View > Show Exact Duplicate Items to display duplicates as this is normally a more useful selection. You need to manually select all but one of each group to remove. Sorting the list by Date Added may make it easier to select the appropriate tracks, however this works best when performed immediately after the dupes have been created.  If you have multiple entries in iTunes connected to the same file on the hard drive then don't send to the recycle bin.
    Use my DeDuper script if you're not sure, don't want to do it by hand, or want to preserve ratings, play counts and playlist membership. See this thread for background and please take note of the warning to backup your library before deduping.
    (If you don't see the menu bar press ALT to show it temporarily or CTRL+B to keep it displayed)
    tt2

  • How do you change the Apple ID associated with an iOS device?

    So…I made the mistake of putting the wrong Apple ID (I have three – don't ask) on my iOS devices. If I try to change the Apple ID on my Mac, it wants to erase everything that I have on my Mac that is also stored on the iCloud. That is not a good solution. So, I want to change the Apple ID associated with my iOS devices (far less to lose there). The problem is that niether of my iOS devices will let me change the Apple ID associated with them – at least not that I can find.
    Does anyone know how to do that so I can get my Mac on the same page with my iPhone/iPad?
    Thanks.

    This is the kind of question where it helps to know what you are trying to achieve since the way you phrased the question has several interpretations.  CarolynSamit gave you one, here's another two:
    Apple ID Support - http://www.apple.com/support/appleid/  -> Apple ID FAQ http://support.apple.com/kb/HE37
    "How do I change my Apple ID Name or personal information?
        You can change your Apple ID Name at My Apple ID. Select your country and language, enter your desired changes, then click the Continue button. Changes take effect immediately. You can also use My Apple ID to change your personal information, such as your mailing address or email address. See How to change the name you use for your Apple ID if you'd like more information."
    How to change the name you use for your Apple ID - http://support.apple.com/kb/HE40
    Another answer is you cannot.  Items purchased with one AppleID cannot be transferred to a different account.

  • How do I change the Apple ID associated with my iTunes account?

    How do I change the Apple ID associated with my iTunes account?
    I have an apple ID that i have associated with my account but I want to change it to another ID that I just created.  I needed to create this new ID so that both my wife and I can use the ID for our shared iTunes account and then we each have our own apple IDs with our own calendars, contacts, etc.

    Change it on what way ? You can update the primary email address on an account by tapping on it in Settings > iTunes & App Store on an iOS device and signing into the account, via the Store > View Account menu option on your computer's iTunes or via http://appleid.apple.com
    If you want to log out of the account so that you can log in with a different account then tap on it in Settings > iTunes & App Store if using an iOS device and sign out, or on a computer's iTunes use the Store > Sign Out menu option. Any content downloaded by the currently logged in account will remain tied to that account, so only that account will be able to redownload it and/or download updates to its apps

Maybe you are looking for

  • What's actually IN a saved iDVD project?

    After upgrading to iLife '06, I wanted to burn a new copy of an iMovie project I first put on iDVD a few weeks ago. I've never done this before; always burned all copies at once. When I open the named/saved iDVD project (both from within Documents an

  • Reprinting check with same check number

    How to reprint the check with same check number. In transaction FCH7, I am able to reprint the check but it gives another check number. Is there another transaction code to reprint the same check with the same check number thankyou

  • HELP! JMF2.1.1e  installation Hell

    Hi I hope you can help, I've been at this for close to 4hours now with no joy. I'm using Win2000 service pack4, which is running Sun Studio 4 CE, Java Run Time Enviro 1.4.2_03, JVM 1.4.2_03-b02, and Java Plugin 1.4.2_03. I can't get JMF2.1.1e to work

  • Old 2d to 3d

    old 2d animation with 3d www.bleed.ondapc.com/circle.htm

  • When on Facebook I can nolonger load photos. But when on Explorer I can. What Should I do?

    I had no problem loading picture into Facebook, but recently it stopped with the update. I can load them with explore but not Firefox. what Can I do to fix this problem?