Restricting Variable values selectively

How to restrict values of Variable while creating query. For Ex: I am creating variable for Fiscal Year and it has a value starting from 2000 to 2050.
So in my report it will show all the values, I would like to restrict it for say between 2002 and 2015.
Thanks
Raghu

Hi Raghu,
I hope u have already created a Variable for FISC Year,just check in the properties on the Variable ,in the details TAB,whether the TAB Variable Represents is Multiple Single values or Selection.
If not Create one more variable with the above settings and in the Default values in the Propewrties TAB you can specify the range as 2005 to 2012.
With this the report will run for the range u have given,incase if you want to change the value range then in the POP-UP screen ,change the values,say 2005 to 2015 and run the report.
There are other ways too ,but hope this meets ur Requirement.
Rgds
SVU123

Similar Messages

  • Restrict variable values in the pop-up selection screen

    Hi,
    I have a variable based on a caracteristic that has 0COMP_CODE as attribute in a Web Report (BW 3.1B).
    This variable has to be accessible so that users can select a value.
    I need to restrict the values that users can see on the selection screen according to their 0COMP_CODE value, even in the pop-up.
    I have tryed authorization variable and user exit, but none worked.
    The best I could do was a "several single values" variable that was preselected with the caracteristics of their 0COMP_CODE, but it didn't worked in the pop-up.
    Does anybody knows how to handle this?

    As far as I could find out, it should be made through customer exit.
    The point is : I have to use a customer exit variable that has been check as "ready for input".
    I can't find a way to restrict the values displayed in the variable selection screen (in the help pop-up window for this variable).
    The exit can pre-fill the selection fields with values, but whenever the user opens the window, he sees all the values.
    I have tryed all the values for I_STEP (0,1,2 and 3) but none did it.
    Does anybody knows how to limit those values?

  • 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.

  • BPS - Variable value selection

    Is there a way, where a user (e.g. admin) could make a selection for a variable from multiple values in a dropdown in a web application, and have the selection enforced for all users?
    William Lee

    Current options, whether bps0 or uploading, are a little hard to swallow for the client, especially when the application is already web-enabled. Hope your how-to paper will address this typical admin/user relationship and in essence enable on-web adminstration of variable values. Looking forward. Thanks Marc.
    William Lee

  • Display variable values selected as header in WAD

    Hi All Gurus,
    I need to display the variable values entered for running the report as a header to the report being displayed.
    I'm using NW2004s BI and standard template 0analysis_pattern. Is there a way I can display the variable values as header info.
    Thanks in Advance
    Sid

    Hi Sid,
    You may need to make a copy of this template, or create your own and use the Information Field web item:
    http://help.sap.com/saphelp_nw70/helpdata/en/47/96784226d1d242e10000000a1550b0/content.htm
    You can set this to display the Variables  (VARIABLES_VISIBLE)
    Hope this helps...

  • How to Restrict Variables in Selection Screen

    Hi Experts,
    I have set filter variable for my Region which includes (East, West, North, South).
    And I'm restricting North and South in the Selection Screen and displaying a choice of East or West on the Selection Screen.
    I tried right click variable in filter pane-> Restrict -> Move.....East and West to right side. and saved it.
    When I tried executing it I'm being displayed all the 4 values at the Selection Screen.
    Can any real experts help me resolve this
    Thanks

    Hi
    There are two ways in which you approach this
    - Create a variable for Region and set the Default values to East and West. This way when the user runs the query the selection will be by Default populated as East and West. You don't have to go in and do a selection.
    - Personalize the variables.
    Refer to the link below which contains details on Personalizing variables.
    http://help.sap.com/saphelp_nw70/helpdata/en/45/6e4f4db9cc1956e10000000a11466f/frameset.htm
    In short, when you run the query you can see a Personalize variables button where you can just choose Ease and West. You can also choose whether to display or hide the personalized variable. When you hide it will internally be restricted to Ease and West.The result is displayed with your personalized values the next time you execute the query. The down side to this is this is specific to a user.
    Apart from the above two, i don't think you can choose the selection only to display East and West. As long as your master data and info provider has all four values you cannot hide them.
    In the query designer, when you click on the Region infoobject in the Advanced tab, you will see four options. You can only choose among the four. Here you can see that you can only choose between Master data, infoprovider etc.
    Regards,

  • Query performance when multiple single variable values selected

    Hi Gurus,
    I have a sales analysis report that I run with some complex selection criteria.  One of the variables is the Sales Orgranisation.
    If I run the report for individual sales organisations, the performance is excellant, results are dislayed in a matter of seconds.  However, if I specify more than one sales organisation, the query will run and run and run.... until it eventually times out.
    For example; 
    I run the report for SALEORG1 and the results are displayed in less than 1 minute. 
    I then run the report for SALEORG2 and again the results are displayed in less than 1 minute.
    If I try to run the query for both SALEORG1 and SALEORG2, the report does not display any results but continues until it times out.
    Anybody got any ideas on why this would be happening?
    Any advise, gratefully accepted.
    Regards,
    David

    While compression is generally something that you should be doing, I don't think it is a factor here, since query performance is OK when using just a sinlge value.
    I would do two things - first make sure the DB stats for the cube are current.  You might even consider increasing the sample rate for the stats collection  if you are using one.  You don't mention the DB you use, or what type of index is on Salesorg which could play a role. Does the query run against a multiprovider on top of multiple cubes, or is there just one cube involved.
    If you still have problems after refreshing the stats, then I think the next step is to get a DB execution plan for the query by running the query from RSRT debugging mode when it is run with just one value and another when run with multiple values to see if the DB is doing something different - seek out your DBA if you are not familiar with executoin plan.

  • Restricting variable values and booleans

    When you see a class diagram and one of the attributes is like the example below:
    Status (Professional, Semi-pro, Amateur)
    Is it possible to create this variable and restrict construction of objects using this variable to one of the 3 specified values. If so how is it done, been looking but can find no standard way to perform such a task.
    Also when you use a variable that is a boolean, instead of printing out false or true in my toString () method, how can I make it more effective!!! It is always initially false indicating that no lessons have been received and if true indicates lessons have been taken. It would be far more useful to display 'Lessons Not Take' or 'Lessons Taken'. Again any suggestions are welcome!!!
    Regards

    Yes, you can do it with an enumeration.
    Joshua Bloch shows how to do it in his "Effective Java":
    http://java.sun.com/developer/Books/shiftintojava/page1.html
    MOD

  • How to select different Querys based on Variable Value

    Hi guys i need to know how to select different Querys, based on variable values selected by the user, i try to do it using a Web Template but i don´t know how to program a Dynamic Query.....
    I hope sombody could help me with this
    Message was edited by: Oscar Diaz

    Hi Diaz,
    Can you explain the exact scenario which you are looking for!!!
    regards
    Happy Tony

  • Pass variable value to Nested I-view

    Hi All,
    Short question:
    In a nested I-view, how can i refer back to variable value (selected value in dropdown box) located in main I-view?
    Detailed situation:
    In VC i have quite a large table presenting x/customer over a variable fiscal year. If a customer is selected in that table another query is triggered and will show a chart with some specific info regarding that customer over that same fiscal year.
    Thus: var. fiscal year --> first query --> table: x/customer --> action: customer selected --> second query --> chart: detailed customer info / var. fiscal year.
    In the connection between the table and the second query i can configure the input field (fiscal year) and assigned value easily by select the input form concering the variable fiscal year.
    However this construction works when i keep everything in one I-view. Regarding performance i've to split up my model into several nested i-views.
    Therefore the dropdown box where the fiscal year can be selected and submitted is detached. So now, in my main I-view i've various dropdown boxes and some nested i-views.And In one of those i-views i've a 'signal in' (containing var. fiscal year) and the continuation of the ealier mentioned construction.
    Now, when i'm trying to filter the connection between the table and the second  query i'm not able to refer back to the input form containing the var. fiscal year (because its not in that Nested I-view, but in the main I-View). Also i'm not able to refer to the input signal.
    Any suggestions?
    Kind regards,
    Bart

    Hi Bart,
    short answer
    You have to pass your value with a signal in into your nested iView.
    Best Regards,
    Marcel

  • Hiding variable values in the input selection screen.

    Hello Experts,
    We have an authorisation relevant characteristic on which we have built a variable. We have restricted few values for this characteristic through the analysis authorisation.
    The business requirement is that these values which are maintained in the analysis authorisation should not be populated in the input selection screen for that particular variable. In other words we have to hide these values but the variable should a part of input selection screen.
    Can anyone please guide on how can we hide these variable values inspite of maintaining them in our analysis authorisations.
    Thanks..
    Best Regds,
    Suyog...

    Hi Suyog,
    Have you got any solution on this issue.  I have same kind of issue in BI7.  When running the RSRT transaction manager has to give some comments for a document option.  but the subordinates should not modify or see the comments.  Is there any way to restrict this access to certain users.  Our requirement is to either disable the document option or should not appear in the list.
    please give your inputs to find a way to solution.
    Thanks in advance.
    Regards,,
    Appala Raju

  • Restrict the values on variables screen

    I've a variable on report screen which I want to restrict the values getting from master data. Variable is a authorization variable type. So I can't set default values. I need to restrict the values for example "00D*".
    At result user should see the master data list values which starts with "00D".
    Cheers,
    Yigit

    SELECT_OPTIONS_RESTRICT is not intended for this, only to restrect the kind of sign and options which are allowed in the select-options, you can restrict to single values, range or disable exclusion, this kind of restriction.
    For your requirement, you have to restrict the dropdown values using FM VRM_SET_VALUES. (use the search tools in [forums|http://forums.sdn.sap.com/search.jspa?objID=c42&q=VRM_SET_VALUES] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=VRM_SET_VALUES&searchQuery.spaceKey=conf_global])
    Regards,
    Raymond

  • Restricting Prompt values until parent prompt is selected

    OK - this should be simple,but again its causing problems. I have a prompt with a series of drop downs based on the Organisation dimension. They are restricted so that they are filtered accordinly when the values are selected. I need to go one step further and not show any values until de parent value is selected. I am trying to do this with presentation variables and then using SQL to generate the values for each prompt passing as filter the variable for the parent prompt. I am getting an errors on the "@{var_name}" syntax.
    Has anyone managed to do this?

    Sorry, I thought that was what you were asking for (aside from the syntax of using prompts in the SQL statement). So please clarify again. When the user selects a value in the parent prompt, that value is stored in the PV. Now, what exactly do you want the users to see in the drop down of the child prompt?
    I just thought of something... Are all your prompts stored in one prompt file? If so, and the prompts are all set to Report Defaults, values in the prompts won't show until the drop down value is pressed and a value selected. Also, the prompt won't launch the report until the "Go" button is pressed. (By checking "constrain," each subsequent prompt will be properly constrained by the one before, as applicable.)
    If the prompts are in separate prompt files, then above would not be true.
    Message was edited by:
    LC143

  • Regrading restricting the variable values in the report

    hi experts,
    i have a requirement that i have to restrict the values of 2nd level vendors in variable selection screen based on the 1st level vendor selected i mean  we are using the variable for 1st level vendor as mandatory so when user enters the value for 1st level vendor linke xxxx and when he goes to the next variable 2nd level vendor he must have the options related to the 1st levle vendor only i mean he does not see all the 2nd level vendors but he must see the 2nd level vendors related to first level vendor only
    ex for 1st level vendor xxx the 2nd level vendor is yyy and zzz
         for 1st level vendor aaa the 2nd level vendor is bbb and ccc
    now when he select the option first level vendor as xxx it is showing the all 2nd level vendors in the slection screen but client wants that when he select the 1st level vendor he must see the 2nd level vendor list related to particular 1st level vendor only
    thanks and regards
    pedamarla

    pedamarla,
    Does you mean if xxxx is the value for 1st vendor then in 2nd level vendor variable shd be other than xxxx.....
    is my interpretation is right.then you can write the code in step 3 so that 1st vendor value and 2nd vendor is different ....let us know

  • Bind Variable in SELECT statement and get the value  in PL/SQL block

    Hi All,
    I would like  pass bind variable in SELECT statement and get the value of the column in Dynamic SQL
    Please seee below
    I want to get the below value
    Expected result:
    select  distinct empno ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    100, HR
    select  distinct ename ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    TEST, HR
    select  distinct loc ,pr.dept   from emp pr, dept ps where   ps.dept like '%IT'  and pr.empno =100
    NYC, HR
    Using the below block I am getting column names only not the value of the column. I need to pass that value(TEST,NYC..) into l_col_val variable
    Please suggest
    ----- TABLE LIST
    CREATE TABLE EMP(
    EMPNO NUMBER,
    ENAME VARCHAR2(255),
    DEPT VARCHAR2(255),
    LOC    VARCHAR2(255)
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (100,'TEST','HR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (200,'TEST1','IT','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (300,'TEST2','MR','NYC');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (400,'TEST3','HR','DTR');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (500,'TEST4','HR','DAL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (600,'TEST5','IT','ATL');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (700,'TEST6','IT','BOS');
    INSERT INTO EMP (EMPNO,ENAME,DEPT,LOC) VALUES (800,'TEST7','HR','NYC');
    COMMIT;
    CREATE TABLE COLUMNAMES(
    COLUMNAME VARCHAR2(255)
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('EMPNO');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('ENAME');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('DEPT');
    INSERT INTO COLUMNAMES(COLUMNAME) VALUES ('LOC');
    COMMIT;
    CREATE TABLE DEPT(
    DEPT VARCHAR2(255),
    DNAME VARCHAR2(255)
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('HR','HUMAN RESOURCE');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('MR','MARKETING');
    INSERT INTO DEPT(DEPT,DNAME) VALUES ('IT','INFORMATION TECH');
    COMMIT;
    PL/SQL BLOCK
    DECLARE
      TYPE EMPCurTyp  IS REF CURSOR;
      v_EMP_cursor    EMPCurTyp;
      l_col_val           EMP.ENAME%type;
      l_ENAME_val       EMP.ENAME%type;
    l_col_ddl varchar2(4000);
    l_col_name varchar2(60);
    l_tab_name varchar2(60);
    l_empno number ;
    b_l_col_name VARCHAR2(255);
    b_l_empno NUMBER;
    begin
    for rec00 in (
    select EMPNO aa from  EMP
    loop
    l_empno := rec00.aa;
    for rec in (select COLUMNAME as column_name  from  columnames
    loop
    l_col_name := rec.column_name;
    begin
      l_col_val :=null;
       l_col_ddl := 'select  distinct :b_l_col_name ,pr.dept ' ||'  from emp pr, dept ps where   ps.dept like ''%IT'' '||' and pr.empno =:b_l_empno';
       dbms_output.put_line('DDL ...'||l_col_ddl);
       OPEN v_EMP_cursor FOR l_col_ddl USING l_col_name, l_empno;
    LOOP
        l_col_val :=null;
        FETCH v_EMP_cursor INTO l_col_val,l_ename_val;
        EXIT WHEN v_EMP_cursor%NOTFOUND;
          dbms_output.put_line('l_col_name='||l_col_name ||'  empno ='||l_empno);
       END LOOP;
    CLOSE v_EMP_cursor;
    END;
    END LOOP;
    END LOOP;
    END;

    user1758353 wrote:
    Thanks Billy, Would you be able to suggest any other faster method to load the data into table. Thanks,
    As Mark responded - it all depends on the actual data to load, structure and source/origin. On my busiest database, I am loading on average 30,000 rows every second from data in external files.
    However, the data structures are just that - structured. Logical.
    Having a data structure with 100's of fields (columns in a SQL table), raise all kinds of questions about how sane that structure is, and what impact it will have on a physical data model implementation.
    There is a gross misunderstanding by many when it comes to performance and scalability. The prime factor that determines performance is not how well you code, what tools/language you use, the h/w your c ode runs on, or anything like that. The prime factor that determines perform is the design of the data model - as it determines the complexity/ease to use the data model, and the amount of I/O (the slowest of all db operations) needed to effectively use the data model.

Maybe you are looking for

  • Issues since itunes update 11.0.2.26

    Ipod nano 6th generation. No previous issues. I updated itunes on my PC to 11.0.2.26 recently and when I opened it the first time all of my music was gone. It asked to do a scan and import and I agreed. My music came back (at least I hope they are al

  • XML Parse error while loading an XML file

    HI Folks, I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools  is getting loaded without any issues.. I have created a XML-File format with the corresponding XSD.. But here in BODS it is g

  • Cds not displaying in itunes

    THis is a fairly recent problem, but when I enter a CD into the drive, it used to immediately show up in itunes. But now after about 30 seconds the only thing that happens is something called Gracenote pops up for a second, goes away and the CD never

  • How to overwrite existing DB's in SQL 2008?

    I use Maintenance Plan of SQL 2008 Server for Backup some DB's. As a result i need to keep, only one set of Backup Up's and not more. So actually i can use Maintenance Plan Clean Up wizard, but i need something like Overwrite. That mean i don't want

  • Lightroom 5 insatll failed.

    my installation of lightroom 5 has failed with the error "insall msi payload failed with error: 1624. also "third party payload installer_lightroom_x64. msi failed with exit code: 1624. I'm running windows 8.1 on a x86 computer could this be the inst