BICS - Passing variables to a BEx Query

Hi Experts,
We are currently developing dasboards in Dashboard Design (XCelsius) using BICS. Since we want to leverage the 'create once, reuse many times' principle, we would like to populate our (data intensive) dashboard using 8 connections that fill out different values in one and the same BEx Query. The results (8 crosstabs) will be put in our embedded sheet on 4 different tabs.
All data has to be refreshed before components are loaded (so this option is set for all connections).
Furthermore, we set the 8 connections with the following parameters:
[definiton tab].[input values].[variables].[BEx variable] > link to a cell containing tech name of input value
[definition tab].[input values].[filters].[key figures] > link to a cell containing the tech name of the key figure we want to display in the crosstabs.
Now, we are facing 2 problems:
1. The variables are not automatically passed to the BEx query (we see a BEx web variable input screen on launch)
2. The key figures are not filtered (we did set the tech key i.e. 8KPM8AAGH55L3ONGZC0Y27FBG)
Does anyone have similar experiences, using BICS and (ideally) found a solution yet? I'd like to avoid creating 8 different BEx queries to solve this. Thank you in advance!
KR, Bart Santing

Hi,
You have to map the excel cell to the exact keyfigure or vriable.
For example.
I have two filters in my BEx Query. Calendar Year & Country
For mapping these filters expand the ==>Filters in Data Manager of xCelsius. Then you can see Calendar Year and Country. Map Calendar Year to an excel cell as well as map the country to another excel cell.
Do this same for variable also.
Thanks,
Ajish George

Similar Messages

  • Passing variables to a BEx query dynamically

    Hi All,
    We have a requirement to pass values for variables dynamically to a Bex 7x query because we do not want to prompt any variable screen to the user. I tried few steps as suggested in SAPBEXsetVariables range but still have some questions unanswered. So request your thoughts on the same.
    Below procedure has been followed.
    1. Open Bex Analyzer
    2. Navigate to Bex Analyzer (menu) -> Design Toolbar -> Insert Button. This will switch on the Design Mode.
    3. Click on the button, select "Workbook-Specific Command" and click on next (Data provider need not be worried about at this point as it can be changed later also).
    4. Select "Process Variables" and click on Finish.
    5. One more window with an heading "Properties of Button" will be shown with fields like "Name of Button", "Range", "Button Text", "Command Range" and few other.
    6. On the right side of this window, list of Static Parameters can be created.
    7. As an example, i created below parameters
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    and created a range having below details and provided this range in "Command Range" field (in button properties)
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    8. This DID NOT WORK for me. Actually nothing was happening when the button was pressed.
    After some investigation, i figured out that i need to have one command like below
    CMD          
              1     
    SHOW_VARIABLE_SCREEN
    Without this neither the variable screen was shown nor it read the parameter values from the excel range provided.
    Once this was done, the input screen was shown and with the values that i provided in my excel range.
    Here are my questions. Pls provide your valuable inputs.
    1. Why am i forced to have a command for "SHOW_VARIABLE_SCREEN"? Is this mandatory? problem with this is that user will always be shown a input screen which we don't want (in fact the very reason for this exercise is not to show the parameter screen but to supply values to it from the back end). Is there some setting that i need to do to get rid of this?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Thank you. Looking for a sooner response.
    Lohith

    Hi All,
    I figured out the mistake that i have done. Looks like the order of the commands is very important.
    In my case, i had something like below
    CMD                         0          PROCESS_VARIABLES
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    I should not have the PROCESS_VARIABLES as my first command. Instead should have DP_1 or the SUBCMD as first argument. So below order worked for me.
    DATA_PROVIDER      0          DP_1
    SUBCMD                   0          VAR_SUBMIT
    CMD                         0          PROCESS_VARIABLES
    So, i don't need to have "SHOW_VARIABLE_SCREEN" command as i don't want to show the screen.
    But my second question is still unanswered. Can you through some light on it?
    2. The setup can read values for only  2 parameters. i mean when there is an additional variable, the program is not reading the 3rd parameter values (of course i updated the "command range").
    VAR_NAME                     0         #NAME1#              
    VAR_VALUE_EXT            0          #VALUE#
    VAR_NAME_1                 0          #NAME2#
    VAR_VALUE_EXT_1         0          #VALUE2#
    VAR_NAME_2                 0          #NAME3#
    VAR_VALUE_EXT_2         0          #VALUE3#
    Lohith

  • How can i work with variables of the BEx-Query in WAD  ???

    Hi Experts !
    In my Web Template i want to work with the value of a BEx-Variable like this :
    </td>
    <td class="SAPBEXTbsTab" id="head_TAB4"><A href="javascript:if (V_TEST != '1') {goto_tab('TAB4')}">Summenblatt 3</A>
    </td>
    V_TEST is a variable in my BEx-Query.  Does someone know how i can get the value from this variable ???
    Thx Andreas

    to get the query variable value into javascript variable you can do like below
    <script>
    var period_val = '<object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="TEXTELEMENTS_PERIOD"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_TEXT_ELEMENTS"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="ELEMENT_TYPE_1" value="VARIABLE"/>
             <param name="ELEMENT_NAME_1" value="0P_FPER"/>
             <param name="ONLY_VALUES" value="X"/>
             ITEM:            TEXTELEMENTS_PERIOD
    </object>';
    </script>
    Raja

  • How to pass parameter values to Bex query through xcelsius (LO or QWAAS)

    Hi,
    I have prompt in Bex query and want to pass values to query prompt through xcelsius .
    In xcelsius i have selection
    e.g 1] Combo selection is for Vendor
    2] Combo selection is for Fiscal Year
    If i select value from Combo list  and refresh the dashboard im getting below error
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[4IKKZVYWWD3XKQK7Z1BK34VTL], [Measures].[4IKKZVJJUFWIJHHBND6VJ0YE1], [Measures].[4IKKZV46SIP3I8EFBP26YX0YH], [Measures].[4IKKZUOTQLHOGZBJ00XIET3IX] }  ON COLUMNS , NON EMPTY [0CREDITOR].[LEVEL01].MEMBERS ON ROWS FROM [0FIAP_O03/ZFIAP_O03_UNIVERSE] SAP VARIABLES [VN_VAR] INCLUDING A00140 [0S_FYEAR] INCLUDING V3/2010 : V3/2010 failed to execute with the error Unknown error. (WIS 10901)
    I have tried using LO and QWAAS but not able to do so......
    if any one knows plz help....

    Hi,
    most likely yo are passing the wrong value.
    you need to send the key or the member unique name.
    Ingo

  • Variable Selections in BEx Query Variants

    I am trying to save a variant for a BEx query that uses a floating date range.  I want the date range to move with the calendar.  I r/3 this is done with the variable selection.  In BW 3.5, I don't see how this is possible.  I only see options for TVARVC which are user exit selections.  Can someone point me in the right direction.
    Regards,
    Kevin B

    Hi Kevin
    Your requirment is that date range should move with calendar (ex. In first week , the date range should be from 1 to 7 of the current month & in  second week the date range should be from 1 to 15 of current month) ...if it is like this then you can go ahead with - create a variable and do the coding with sydatum (system date ) and embed the required logic. But if your requirement is completely random then you can not use this.
    Hope this helps
    Regards
    Pradip
    (Rewarding points is the way of saying thanks on SDN !!)

  • RRI?  How to call ITS URL and pass field value from Bex Query.

    I am doing RRI from query to webaddress,
    i have defined jump(report type: webaddress and reicver report as url) from shopping cart bex query(SRM ) to webaddres.
    here url is SRM ITS base link for monitoring shoppingcart(http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN).
    jump is working from portal(from bex query ivew).
    but i want to pass value(shopping cart value) to above url and want to skip first screen.
    i have maintained assignment detail by assigning field name against shopping cart infoobject with type url parameter, but its not directly call reciver url with given input field.
    i tried the diffrent combination of url and field assignment as like below:
    1: web address url:http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN
    assigned field: GS_HEADER-OBJECT_ID
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap/bc/gui/sap/its/bbp_mon_sc?sap-client=200&sap-language=EN?GS_HEADER-OBJECT_ID='selected number value'
    2: web address url:http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc
    assigned field: flNUQVRFPTgzMTcuMDAyLjAxLjAx
    but when we call reciver url from portal bex ivew, only initial screen come with page url as below:
    http://(hostname):(SRM port)/sap(cz1TSUQlM2FBTk9OJTNhc3JtZGV2X0lTRF8wMCUzYUdxdFNqdWdMS2xyTEFEelFTNFlWTnJXRjEzdy05UnhTWXl4TW03c3AtQVRU)/bc/gui/sap/its/bbp_mon_sc/~flNUQVRFPTgzMTcuMDAyLjAxLjAx====#jump_to_selected_sc?flNUQVRFPTgzMTcuMDAyLjAxLjAx='selected number value'
    I have seen the source code of that url(inital screen and after entring the value to that screen) too.
    how to call webadress(SRM ITS base shopping cart URL) with passing the one of field value of that url screen?
    Thanks and regards,
    Dushyant.

    Declare the gv_orderid in modulepool program.
    And Declare the parameter as import parameter in smartform.
    CALL FUNCTION  lv_form
       EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    *   OUTPUT_OPTIONS             =
    *   USER_SETTINGS              = 'X'
         i_input                    =  gv_orderid
    * IMPORTING
    *   DOCUMENT_OUTPUT_INFO       =
    *   JOB_OUTPUT_INFO            =
    *   JOB_OUTPUT_OPTIONS         =
    * EXCEPTIONS
    *   FORMATTING_ERROR           = 1
    *   INTERNAL_ERROR             = 2
    *   SEND_ERROR                 = 3
    *   USER_CANCELED              = 4
    *   OTHERS                     = 5

  • Pass Variables into AS3 through Query String?

    Man! I've been searching ferociously and can't seem to find a solution that works for me. I am trying to pass variables via query string on a PHP page to Flash, and then have the swf add movie clips to the stage depending on the information it receives.
    Here is what the PHP outputs:
    swfobject.embedSWF("flash/detailScore.swf?a=0-0&b=0-0&c=30-54&d=30-20&e=42-18", ...
    And here is my AS3 code:
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);
    The addTheResults function takes the coordinates, adds a MC instance to the stage and positions it accordingly.
    var colorMCArray:Array = new Array();
    function addTheResults(val,colnum:Number){
    if(val == null){val = "52-46";} // so I can test it locally
    var daColor:String;
    switch (colnum){
    case 1:
    daColor = "f3951c";
    break;
    case 2:
    daColor = "74b47d";
    break;
    case 3:
    daColor = "436494";
    break;
    case 4:
    daColor = "9b74ac";
    break;
    case 5:
    daColor = "b43d44";
    break;
    var dash:int = val.indexOf("-");
    var lateral = val.slice(0,dash);
    var vertical = val.slice(dash+1);
    lateral --;
    vertical --;
    // adding the MC instance
    var comm:tileB = new tileB();
    comm.name = "comm"+colnum;
    addChild(comm);
    colorMCArray[colnum] = comm;
    //Change the color
    var colorTransform:ColorTransform = colorMCArray[colnum].transform.colorTransform;
    var thiscolor = "0x"+daColor;
    colorTransform.color = thiscolor;
    colorMCArray[colnum].transform.colorTransform = colorTransform;
    colorMCArray[colnum].x = 5;
    colorMCArray[colnum].y = 536;
    colorMCArray[colnum].x += (lateral * 9);
    colorMCArray[colnum].y += (vertical * 9)*-1;
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OVER, btnro);
    colorMCArray[colnum].addEventListener(MouseEvent.MOUSE_OUT, btnrout);
    I don't know what I'm doing wrong here.

    Was this the "e" in the code below you were pertaining to as the culprit? "e" is not a keyword. It's just the shortcut for the word "event" for the variable name of type Event which is the Event object that triggered the call of function loaderInfoSh. In your code you assigned e = myQueryString.e which should have given you a type mismatch error.
    function loaderInfoSh(e:Event):void{
    var myQueryStrings=this.loaderInfo.parameters;
    a = myQueryStrings.a;
    b = myQueryStrings.b;
      c = myQueryStrings.c;
    d = myQueryStrings.d;
    e = myQueryStrings.e;
    addTheResults(a,1);
    addTheResults(b,2);
    addTheResults(c,3);
    addTheResults(d,4);
    addTheResults(e,5);
    this.loaderInfo.addEventListener(Event.COMPLETE, loaderInfoSh);

  • How to pass variable to jump to query !

    hello Experts !
    i have a query with variable "Month". so when i run that , user enters the Month/year and it gives the results for "Employee ID" for that month/year.
    i have also creted another query on dso, in order to get detail line item information abt " Employee ID" and join this query with the main one thru RRI.
    in RRI , i have selected "Employee ID" as single value field for both the query. the problem is when i do GOTO from the first query , it does work and gives me the result, but it gives records corresponds to that "Employee id"for all the months and year.
    How do i also pass "Month" - variable value along with that "Employee id" so that the second query only shows line item for that employee id for that selected month.
    thanx

    Hi,
    The use of jump query is to get the detailed level information, for the key figure values which appears in main query.
    This mainly happen when in your cube design you do not details information.
    For example:
    In your main query output you have :
    division , company code , variable amount
    Rec1)10, 1012,4000
    Rec2)20,1001,5000
    Now you want to know what are the document numbers involved to get the variable amount:
    So now , you jump query output will be for record no 1.
    Document number , variable amount
    100001,500
    100002,1000
    100003,2000
    100004,500
    So now you can see that jump query is giving you the documents numbers which are total of 4000.
    Once you have variable in main query , the jump will give details of those keyfigur values only.
    In case of jump query you need not to have any variable , it will automatically take from parant query.
    Though you can define varaible for jump also.
    I hope it clear your doubt
    Thanks
    Mayank

  • How to pass variable into lov sql query using like operator

    hi.
    i want to use a lov where i want to pass a variable using like operator.
    my query is
    select empno,name from table where empno like ':ed%';
    my empno is A001 TO A199 AND B001 TO B199 so i want show either A% or B% empno
    how can i do this ?
    reagrds

    kindly press Shift+F1 at a time you face this error to see the exact Oracle error message.
    and provide us with that detail
    and its better if you start new topic for that error... because that will be new error,,,
    -- Aamir Arif
    Edited by: Aamiz on Apr 7, 2010 12:27 PM

  • Passing Variables to a SQL Query

    I have a select box with multiple choices allowed in
    form1.ASP. I want =
    to pass the form on submit using request.form ("variable")
    and process =
    data and a query string for an SQL select where statement.
    The form =
    data is in the format of "E123 B456 X789" . What is the best
    means of =
    processing that for my Access database?
    Thanks.
    Ross

    Well, here's the answer:
    http://kb.adobe.com/selfservice/viewContent.do?externalId=3Dtn_15906&slic=
    eId=3D1
    "ross m. greenberg" <[email protected]> wrote in
    message =
    news:gb5reg$714$[email protected]..
    I have a select box with multiple choices allowed in
    form1.ASP. I want =
    to pass the form on submit using request.form ("variable")
    and process =
    data and a query string for an SQL select where statement.
    The form =
    data is in the format of "E123 B456 X789" . What is the best
    means of =
    processing that for my Access database?
    Thanks.
    Ross

  • Anding of the Input Variables in a BEx Query

    Hello,
    I have following scenario: If the report is executed by user1, then one set of shipto's should be visible (also if that user enters a valid shipto, then only that should be visible) AND if the report is executed by user2, then any shipto's should be visible.
    If I take two input variables for Shipto, one of them I give to user for input and the other I populate in the exits (I_Step = 1) by checking the user type and populate the 2nd input variable accordindgly then the list of shipto's for that user is given.
    The PROBLEM occurs when the user also enters a Shipto, then the Output shows: List of Shipto's derived thru the exit plus the ones that user has entered, WHEREAS it should be that if the user has entered a Shipto then only that should be visible, i.e. it should be an 'AND' operation not 'OR' between two variables.
    I hope this can be achieved by some way. If you have an idea about the same, it will be of Great Help.
    Many thanks for your help.
    Best Regards,
    Sumita

    Hi Sumita,
    I think concept Valueset can be used here.
    You define your values of "shipto" for user in a table and than accordingly you can use this in BEx.
    I will see if I can find some more solutions.
    Hope this helps.
    Regards,
    Ashish

  • Adding description in variable screen of Bex query

    Hi All,
    I have restricted one variable ( let us say abc)
    these variable have value P, A.
    when user select this value in the variable screen (let us say 'P') then the description field also shows 'P' .
    I want user to select the value as 'P' but in description field it should come as "Pending' .
    Please suggest how to do that
    regards

    1. If u want the description in the variable screen,  the variable should be created on MD in which the text should maintain on this.
    2.  In the Multiprovider, go to that infoobject -> Provider Specific properties -> make this as key and text.
    If you dont get the description, finally go to that infoobject, in Business explorer tab -> general settings - give key and text for Display.
    hope this would help u.

  • Restrict variable values based on another variable in the bex query...

    I am struggling to restrict the variable values from other varaible in the selection criteria. I have a variable which restricts he organisation(0ORGUNIT) and another to restrict employees.
    When the user selects any organisation unit form the hierarchy, I want only those employees related to that organsation in the varaible selection options.
    Is there any way I can make a variable values dependant on the another variable value in variable selection screen?
    Thanks,
    Your help in this matter will be much appreciated.
    Edited by: Kthapa on Nov 25, 2010 11:08 PM

    Hi Kthapa,
    Did u try using cmod?
    i_step = 1? Used to provide default values for the selection screen variables and
    i_step = 2 for filling up the variables after selection screen.
    Try using based on ur requirement.
    Hope this helps. Revert back for any queries.

  • BICS - Passing Mandatory Filter Variable value to a BEx Query

    Hi All,
    I have similar problem as the below URL.
    BICS - Passing variables to a BEx Query
    Details:
    I have a mandatory filter - Display Currency in BEx query. I'm trying to input this mandatory filter from Xcelsius, (by mapping the filter value to a cell in Xcelsius spreadsheet).
    However, when I lauch the dashvoard in IE page, it still throws an error:
    " One or more mandatory varaibles of the query... are not filled"
    Does anyone face this issue?
    Regards,
    AK

    Hi Sriram,
    I assume you are using SAP direct connectivity.
    >> Yes, it is direct connectivity to SAP-BW.
         (And I'm publishing this dashboard in SAP-BW system itself.)
    1. What are all the Variables you get in intial variable screen?
    because if you have a Mandatory variable in your Bex query, a intial variable screen will appear with all the variables.
    >> I'm testing the underlying BEx query, it has one mandatory variable for "Display Currency". Other are optional variable-filters, so other filters are not a problem.
    2. when you get this error "One or more mandatory varaibles of the query... are not filled", just after the Launch or after the variable screen?
    >> I use the option in Xcelsius: SAP --> Launch -->  a new IE page opens, then I get this error
    3. However you can bye pass this screen only when you give default values to your mandatory variables.
    >> When I use personalization in BEx side, to input default value (e.g: USD), and then run this standard content dashboard, the hangs.(Do not see anything on IE page for long time. Though the data is very less-Few hundres rows)
    So, I'm looking at passing the value from Xcelsius-spreadsheet, however, the dashboard is not picking up the value from the mapped-cell.
    Hope this gives more clarity on the problem.
    Cheers,
    AK
    Edited by: Anil Kumar2981 on Jun 16, 2011 12:12 AM

  • Creating Restrictions in BEx query designer for (1-a), where a is variable.

    Dear All,
    >>  Suppose for the variable in the BEx query designer, I've created restriction for 0FISCPER to the variable 0P_PER (as 0P_PER-1) by right clicking 0P_PER3, from that a dialog box appears.  In that I've selected 0P_PER3 and then clicked on offset variable and when I set the offset variable, it works for (0P_PER-1.etc, 0P_PER+1,etc..)
    But if I want to have (1-0P_PER), then plz tell me how to define this restriction?
    Plz explain me the steps to perform (1-0P_PER) restriction in BEx query designer in BW1.
    I'm using SAP BI 7.2 gui.
    Expecting your reply soon,
    with Regards,
    Jerald

    My requirement is that I want to have " 1-fiscal year"., But this I could not define using offset variables, since using offset we can define "fiscal year +1" or "fiscal year -1". 
    So there would be some other way to define "1-fiscalyear".  So Please help me to define "1-fiscalyear"  by giving me the steps.
    Thank you,
    with Regards,
    Jerald

Maybe you are looking for

  • How to write two triggers on same table how it works?

    Hello sir.. I have to write two triggers on same table for auditing different columns of different pages (may be different modules). I will have an audit table in which i will insert data such as (user_id,module_id,column_name,old_col_val,new_col_ va

  • Regarding battery issue

    Hello I am facing problem with my battery. from last some days it giving some backup problem.It is getting more heat.I can't use it on withour ac power.whenever i use it on battery it uses 100% cpu uses and become unoperable state. firstly it was giv

  • HT4009 Accidental In-App Purchase - Howto cancel ?

    Hello Everyone... my nephew was over for a visit and he started playing with my ipad. Since this is not happening regularly I didn't activate restrictions on this device. After I downloaded this game for him the password remained active. Within this

  • 802.1x Failed Authentication with WS-C3750G-24T

    Hi, I have already set up a lab  comprising of  1x2950-24 switch, 2x3750-24T in stack mode and 2x MS Domain Controller with AD 2008 Servers and NPS enabled (Domain level 2008). I use NPS as a Radius Server. I am trying to test the 802.1x framework in

  • Will the magnetic lasso tool work in Premier Elements?

    In Photoshop CS the magnetic lasso tool works to knockout the background from an image (photo). Will this tool work in Elements 13?