2 variables on the same characteristic

Hi Experts,
Currently I'm using BEx BI7.x.
I restrict a characteristic Scenario with 2 variables for FACT and PLAN. When entering both values on the selection screen and opening a workbook the PLAN variable is Not assigned. When I update the workbook with different value for PLAN variable it is assigned the value I've selected.
Any ideas?

Hi,
Check the conditions if you are using any.
Regards,
anil

Similar Messages

  • Two selection option-variables for the same object

    Hi,
    I'm using two selection-option variables for the same characteristic in my query:
    One is authorization variable and the other is used for restrictions (filter) in a selection screen.
    I get an error: SELOPT/Query variable .... does not allow any further selections.
    If a selection option-variable is used, no additional selections can be specified for this characteristic in this element.
    Is there a way to overcome this problem?
    Thanks,
    Hagit

    Hi,
    I have solved the problem by changing the authorization object (in RSECADMIN) from range to single value and also the variable in BEx from selection single value.
    To be more clear:
    object in RSECADMIN was: infoobject BT var1 - var5
    I have changed it to:
    infoobject EQ var1
    infoobject EQ var2
    infoobject EQ var3
    infoobject EQ var4
    infoobject EQ var5
    Hope this helps.
    Hagit

  • Trying to move a list of form variables to session variables of the same name

    I am trying to move a list of form variables to session variables of the same name and I am having a lot of trouble.
    I have never had to post of this forum with a language question in all the 10 years I have been using ColdFusion. I was a qa Engineer @ Allaire/Macromedia back when it was going from one to the other. I have a pretty good grasp of the language.
    I have software that runs off a list. The fieldnames are variable and stored off in an array. It's survey software that runs off a "meta file". In this example; I have the number of fields in the survey set to 12 in the "metafile". I have each field declared in that file in array Session.SurveyField[1] and the above loop works fine. I include this "metafile" at the start of the process.
    I cfloop around a struct and it works wherever I have needed to use it; such as here - writing to the database for example;
    <CFQUERY NAME="InsertRec" DATASOURCE="Survey">
    INSERT into #variables.SurveyTableName#
    (EntryTime
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    ,#Session.SurveyField[arrayindex]#
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,q01_name,q02_AcadTechORNA,q03_Water,q04_FirstAid,q05_CPR,q06_LifeGuard,q07_AED
    ,q08_ProjAdv,q09_Color,q10_SantaClaus,q11_Supervisor,q12_SupervisorOpinion --->
       VALUES
        ('#EntryTime#'
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thisname = "Session." & Session.SurveyField[arrayindex]>
    ,'#evaluate(variables.thisname)#'
    </cfloop>
    <!--- EXAMPLE OF WHAT THE ABOVE GENERATES
    ,'#Session.q01_name#','#Session.q02_AcadTechORNA#','#Session.q03_Water#','#Session.q04_Fi rstAid#'
    ,'#Session.q05_CPR#','#Session.q06_LifeGuard#','#Session.q07_AED#','#Session.q08_ProjAdv# ',
    ,'#Session.q09_Color#','#Session.q10_SantaClaus#','#Session.q11_Supervisor#','#Session.q1 2_SupervisorOpinion#' --->
    </CFQUERY>
    NOW HERE'S THE PROBLEM: I am running into trouble when trying to move the form variables to session variables of the same name. It is the only part of the software that I still need the datanames hard coded and that is a roadblock for me.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thissessionfield = "Session." & Session.SurveyField[arrayindex]>
    <cfset thisformfield = "Form." & Session.SurveyField[arrayindex]>
    <cfset #thissessionfield# = #evaluate(thisformfield)#>
    </cfloop>
    I have tried it with or without the "evaluate"; same result. It doesn't give an error; it just ignores them (session variables look as such in the next page in the chain)
    q01_name=
    q02_acadtechorna=
    q03_water=
    q04_firstaid=
    q05_cpr=
    q06_lifeguard=
    q07_aed=
    q08_projadv=
    q09_color=
    q10_santaclaus=
    q11_supervisor=
    q12_supervisoropinion=
    Note: they exist because I CFPARAM them in a loop like the above at the start of the procedure) - and this works just fine!
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset dataname = "Session." & Session.SurveyField[arrayindex]>
    <cfparam name="#variables.dataname#" default="">
    </cfloop>
    </cflock>
    I EVEN tried exploiting the Form.Fieldnames list using CFLoop over the list and the same sort of logic within and it still gives me nothing....
    Here's the FORM.FIELDNAMES value
    "Q01_NAME,Q02_ACADTECHORNA,Q03_WATER,Q04_FIRSTAID,Q05_CPR,Q06_LIFEGUARD,Q07_AED,Q08_PROJAD V,Q09_COLOR,
    Q10_SANTACLAUS,Q11_SUPERVISOR,Q12_SUPERVISOROPINION"
    Here's the logic; SAME RESULT - The session variables don't get set.
    <cfoutput>
    <cfloop list="#Form.FieldNames#" index="thisfield">
    <!--- <br>#thisfield# --->
    <cfscript>
    thisSESSIONfield = "Session." & thisfield;
    thisFORMfield = "Form." & thisfield;
    #thisSESSIONfield# = #thisFORMfield#;
    </cfscript>
    </cfloop>
    </cfoutput>
    The CFPARAM in a loop with variable output name works just fine; so does the post (which I included above) as does the SQL Create, Param Form Variables, Param Session Variables, etc.
    THIS even works for moving BLANK to each session variable, to zero them all out at the end of the process;
    <cflock scope="Session" type="EXCLUSIVE" timeout="30">
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    </cfscript>
    <cfset #thissessionfield# = "">
    </cfloop>
    </cflock>
    Expanding on that code, you would think this would work, but it doesn't;
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
    <cfset thislocalfield = Session.SurveyField[arrayindex]>
    <cfscript>
    thissessionfield = "Session." & thislocalfield;
    thisformfield = "Form." & thislocalfield;
    </cfscript>
    <!--- debug --->
    <!--- <cfoutput>#thissessionfield# = "#evaluate(thisformfield)#"</cfoutput><br> --->
    <cfoutput>
    <cfset #thissessionfield# = "#evaluate(thisformfield)#">
    </cfoutput>
    </cfloop>
    And see that debug code in the middle? To add insult to injury... When I uncomment that it shows me this. So it certainly looks like this should work....
    Session.q01_name = "Me"
    Session.q02_AcadTechORNA = "N/A"
    Session.q03_Water = "Yes (certificate expired)"
    Session.q04_FirstAid = "Yes (certificate is current)"
    Session.q05_CPR = "No"
    Session.q06_LifeGuard = "Yes (certificate expired)"
    Session.q07_AED = "Yes (certificate expired)"
    Session.q08_ProjAdv = "Yes (certificate expired)"
    Session.q09_Color = "Gray"
    Session.q10_SantaClaus = "Yes"
    Session.q11_Supervisor = "Da Boss"
    Session.q12_SupervisorOpinion = "Not a bad thing"
    There must be some simpler way to do this. This way won't work against all odds even though it seems so much like it should.
    So I end up having to hardcode it; still looking for an automated way to set these #@%$*@!## session variables over the list from the form variables of the same @#@!$#%$%# name. Do I sound frustrated???
    No matter what I do, if I don't HARDCODE like this;
    <cfset Session.q01_name = Form.q01_name>
    <cfset Session.q02_AcadTechORNA = Form.q02_AcadTechORNA>
    <cfset Session.q03_Water = Form.q03_Water>
    <cfset Session.q04_FirstAid = Form.q04_FirstAid>
    <cfset Session.q05_CPR = Form.q05_CPR>
    <cfset Session.q06_LifeGuard = Form.q06_LifeGuard>
    <cfset Session.q07_AED = Form.q07_AED>
    <cfset Session.q08_ProjAdv = Form.q08_ProjAdv>
    <cfset Session.q09_Color = Form.q09_Color>
    <cfset Session.q10_SantaClaus = Form.q10_SantaClaus>
    <cfset Session.q11_Supervisor = Form.q11_Supervisor>
    <cfset Session.q12_SupervisorOpinion = Form.q12_SupervisorOpinion>
    I always get this from my next page because the session variables are empty;
    You must answer question 1.
    You must answer question 2.
    You must answer question 3.
    You must answer question 4.
    You must answer question 5.
    You must answer question 6.
    You must answer question 7.
    You must answer question 8.
    You must answer question 9.
    You must answer question 10.
    I tried duplicate as well, but I can not get the above to work...
    Can anyone help me do this thing that one would think is simple????

    I think if you use structure array syntax you should get the results you want.
    <cfloop from="1" to="#Session.NumberOfSurveyFields#" index="arrayindex">
          <cfset session[Session.SurveyField[arrayindex]] = Form[Session.SurveyField[arrayindex]]>
    </cfloop>
    Or probably even easier.
    <cfset session = duplicate(form)>

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

  • Different authorizations on different cubes for the same characteristic

    Hello,
    Is it possible to implement different authorizations on different groups for the cubes characteristic?
    For example a user should be authorized to see just the data of company code 101 on Cube A but he should see the data of all company codes on Cube B (Cube B also contains the company code. ":"-Authorization is not an option)?
    In transaction RSECADMIN it is possible to insert the "special characteristics" Acitivty, InfoProvider and Validity into an authorization. But standard setting for InfoProvider is * and I get an error message if I want to modify for just 1 Cube because the characteristic "InfoProvider" (SAP Content) isn't marked as authorization relevant.
    Can you please answer:
    1) If it is possible to implement different authorizations on different cubes for the same characteristic?
    2) What is the function of the special charactristics if I can't maintain the values?
    Thank you
    Johannes

    Hi there,
    Yes it is possible.
    The new authorization concept created union also based on InfoProvider Characteristic.
    You have to change in rsd1 transaction the characteristics 0TCAACTVT, 0TCAKYFNM, 0TCAIPROV and 0TCAVALID to be authorization relevant.
    So you can do this:
    Create two authorizations in rsecadmin like this:
    Aut_1:
    0comp_code: 101
    0TCAACTVT: 03 (activity of display)
    0TCAKYFNM: * (all key figures)
    0TCAIPROV: Cube A
    0TCAVALID: * (authorization valid for ever)
    Aut_2:
    0comp_code: *
    0TCAACTVT: 03 (activity of display)
    0TCAKYFNM: * (all key figures)
    0TCAIPROV: Cube B
    0TCAVALID: * (authorization valid for ever)
    Now in rsecadmin give both authorizations aut_1 and aut_2 for the user.
    If the user opens a query built on cube a he will be having authorizations only for company code 101. If the user opens a query for cube B he will be having authorizations for all the company codes.
    Diogo.

  • Set expression's variable in the same step

    I probably asking a rhetorical question, but does it exist a way to set an expression's variable (say for load sequence dynamically) in the same step (sequence call)?
    I have a situation where I need to read a sequence path from the database and then call this sequence. If I try to do that in pre-step it doesn't work, TestStand tries to evaluate the sequence file path expression when call the step and before the pre-step is executed.
    So, what I doing now, do this in two steps, read database first and then do sequence call.
    Similar problem is for Message Popup, I need to read the message to display from the database.
    Two steps works fine but are not convenient to use. We create our test sequences from custom step types and it would be easier to drop just one step instead of pair of steps in order. Or, is it a way to bind two step types together and always drop two if one is selected?
    Sergey Kolbunov
    CLA, CTD

    Dah! I didn't know about the OnNewStep when I posted this.
    Juergen, thank you, this is interesting example but not related to my question.
    My concern is mostly cosmetical. I can do the job in two steps, but because these two steps will always come together I'd like to combine them in one step in the sequence. This is not possible because the second step depends of the first step output.
    Looks like my second example for Message Popup is not true, at least it works if I set the message in the step's Pre-expression. But take a look to my Sequence Call.seq. How to obtain Sequence Path specified by expression in the same SequenceCall step?
    Sergey Kolbunov
    CLA, CTD
    Attachments:
    Message Popup.seq ‏6 KB
    Sequence Call.seq ‏5 KB
    Dummy.seq ‏6 KB

  • Access variable in the same tilme

    Can i have to access in reading at the same time (for example by 2 process in parallel) at a control (string for example) witout risk to crash the PC?
    Likewise, is it possible to write at the same time in a indicator  witout risk to crash the PC? How to work the access right on a variable (locale and others)
    It is mandatory to use a queue file?
    Thanks in advance  

    Yes, it's possible to read the value of a control in multiple locations without it "crashing the PC". I'm guessing you've had a bad history with computer crashes?
    For indicators the questions doesn't make much sense. An indicator will always display the last value written to it. So, while you can access it from more than one location, you will only see the last value (unless it's a waveform chart, of course.).
    Now, there's actually a secondary issue, which is where the control/indicator is, and where you're trying to access it. A control/indicator resides on the front panel of a VI. If you're trying to access it from another VI then you have to use the VI Server functions to get to it. While errors with the VI Server are infrequent, they can happen. Never seen a crash, though, due to the functions. Can you use a queue? Of course. It all depends on the data you're trying to access and what you're trying to do. You asked if it's mandatory, and the answer is, of course, no.
    If you can provide more detail into what you're doing a more specific answer can be provided as well as tips on program structure.

  • Using currency conversion and text variable at the same time

    Hi all,
    In a 3.5 bex query, i am applying currency conversion on a key figure with a variable of 0currency.
    as i know, to be able to apply currency conversion, variable of currency should not be in Free characteristics or in Filter.
    it has to be selected only on the key figure.
    but now, i want to use text variable for selected currency (with type replacement path). But as i know, to be able to use text variable, variable of currency has to be
    in Free characteristics or in Filter.
    Can you please advise, how to both use currency conversion and text variable on currency?
    Thanks in advance.
    Sancho

    Sancho,
    I'm not 100% sure about this, but I'm thinking that if you are pulling the text variable from a selection in a structure, you should not need it in the free characteristic or filter. Try creating a structure, placing the currency in it as a selection, and creating a text variable as the title for the selection that is based on the currency. This may help.
    Cheers,
    Rusty

  • Expand, unhide table and set variable at the same time?

    Hi all,
    How should i go about to create the following?
    I want to Expand a table at the same time as i set at variable and unhide another table. I have implemented a single-click solution i the Table API that works fine. I would like to use the Table API for this problem also.
    Is this possible? Do I need to make it in multiple steps ie some kind of java-script?
    Have tried this but it wont work:
    SAP_BW_URL_Get() +  ' ' ''&amp;DATA_PROVIDER=DATAPROVIDER_1&amp;' 'CMD=Expand&amp;IOBJNM=0MATERIAL&amp;FILTER_IOBJNM=0CUSTOMER&amp;FILTER_VALUE=' I_CHAVL '&amp;VAR_NAME_1=ZLS_CUST&amp;VAR_VALUE_EXT_1=' I_CHAVL '&amp;CMD_1=ITEM%3DTABLE_2%26HIDDEN%3D' ''''
    Any ideas?
    Cheers,
    Max

    Hi Alex,
    This is not written in the WAD, but in the Table API. The table API generates the link, creating a JavaScript call. But i hvae also tried to write this url directly in the WAD on an http://.... format but it still does not work.
    BR/Max

  • Multilpe offsets on the same variable in the same selection

    Hello,
    I'm trying to get the total rolling 12 value in a single column of a query based on cube 0PCA_C01. I have a regular selection variable called VAR_001 which I would like to manipulate with offsets for this purpose..
    I can add several offset values on the same variables by drag-and-drop in the selection pop-up, but I can't save it.. Whenever I click OK and go back into the selection, all offsets created on the variable except one are gone..
    Why is this? Should it work to add many offsets (with different values) in the selection on 0FISCPER. I.e:
    VAR_001 (-1)
    VAR_001 (-2)
    VAR_001 (-3)
    VAR_001 (-4)
    VAR_001 (-5)
    VAR_001 (-6)
    VAR_001 (-7)
    VAR_001 (-8)
    VAR_001 (-9)
    VAR_001 (-10)
    VAR_001 (-11)
    VAR_001 (-12)
    Since there is no selection for value range on offsets, I guess this would be the way to do it?
    Regards,
    F C

    FC
    Select a range between with your variable VAR_001 for 0FISCPER. You should see a range with the same variable entry:
    (VAR_001) - (VAR_001)
    Then select offset. You will enter two entries, first on is -11 and leave the second to 0.
    You should end up with something like this:
    (VAR_001)-11 - (VAR_001)
    This will create your rolling 12 where the report user will just have to enter the end date.
    Regards,
    Andy

  • How to apply different styels to different variable in the same window

    Dear experts
    can any one tell me how to print to different variable with different smartstyle in the same window in Smartforms
    thanks in advance

    Not possible to switch dynamically a smartstyle inside a text. A workaround is to use a SAPscript style (SE72) and switch to it with the following control command inside the text. To come back to the original smartstyle within the same text (if you need it) I think you may use style name &#42;.
    /: STYLE <stylename>
    (please search SDN if you need more information)

  • Combine two hierarchies for the same characteristic

    Hi experts,
    I need to show the values of the characteristic 0COMPANY that are in different levels of two hierarchies.
    For example,
    Hier. 1
         Level 1
              Company A
              Company B
    Hier. 2
         Level 1
              Company A
              Company C
    Well, I need the intersection of the two levels 1 --> Company A.
    Is this possible?
    Thank you in advance
    Manuel

    Hi Silvio,
    The regular text variable will not work for your 3rd column because there are two years are involved. If  "Actual vs. Previous" is not sufficient and it has to be "2008 vs 2007", you will have to use a user exit Text variable. Within the user exit, you should be able to find the  "Actual Fiscal Year" (2008).
    Hope this helps!
    Bill

  • Is it possible to store and retrieve request variables from the same page?

    I can't seem to get this to work.
    In the page constructor to retrieve the variable on reload of the page:
    String myReqValue = (String) getValue("#{requestScope.name}");
    and in public void beforeRenderResponse() {}
    setValue("#{requestScope.name}", some_var);
    Of course in th page constructor I check that its not null to know if its the first load of the page.
    Regards
    Jonathan

    Hi,
    Your setters and getters looks fine.
    This is what i did.
    public String button1_action() {
    setValue("#{requestScope.name}", "abcd");
    return "case1";
    In the page constructor .
    String check = (String) getValue("#{requestScope.name}");
    Just check whether this can help you.

  • Can I Send&Load Variables at the same time using php?

    Hi
    I have a php file that is using $_GET method to get the "id"
    of an item and then a query will search the database and return the
    results back. I am using the following code but there is something
    wrong. Can anyone help me with this?
    myVar = new LoadVars();
    myVar.id = "1";
    myVar.SendAndLoad("
    http://localhost/sports/latest_news.php",myVar,"GET");
    //<?php $out = "";
    // $out .= "idn" . $i . "&" ;
    // $out .= "titlen" . $row['sports_news_title'];
    // echo $out;
    //?>
    myVar.idn
    myVar.titlen
    myVar.onLoad = function (success)
    if (success)
    for( var key in this )
    //content is the variable name for the text object where the
    output text will be displayed
    content = this[key];
    else
    trace (" Error loading variables ");

    thanks for the fast response.
    Its working but i want to display more than one results and I
    am using:
    myVar.onLoad = function(success)
    if (success)
    for( var prop in this )
    trace (prop + ". " + this[prop]);
    //trace(this.idn);
    //trace(this.titlen);
    else
    trace(" Error loading variables ");
    when i run the above code i get:
    apos;s World Cup campaignidn. 7
    apos;s conversionidn. 2
    titlen. Bath still sitting pretty
    idn. 1
    onLoad. [type Function]
    id. 1
    how can i choose which details to display?

Maybe you are looking for