Variable restriction

Hi:
When I run a query on web, On selection screen for 0CUSTOMER, when I do drop down, It shows me all customers. I want to restrict this list by the attribute of 0CUSTOMER but I do not see filter Icon on the screen.
My question is How can i restrict 0CUSTOMER listing using specific value for an attribute of cutomer.
Thanks

Sunil,
(If i understood your question properly)
To achieve that you need to define the attr of 0customer
as a navg attr. and drag and drop that  in to the query designer.Try doing this
-Doodle

Similar Messages

  • Contant selection use with variable restriction

    Hi gurus,
    My issue is as follows:
    I am trying to create a query where there will be a restricted key figure with a variable restriction (ZCALMON - ready for input-mandatory-single) on 0CALMONTH characteristic. I want this restricted key figure to be constant (no changes shall be allowed based on drill-down or any other filters in the query). So I selected the 0CALMONTH char in restrictions screen and made "Constant selection".
    In the filters part of my query, I am again restricting 0CALMONTH with another variable Z12MONTH(Customer exit-interval-mandatory). The from value of the variable should be 12 months before ZCALMON and to value of the variable should be ZCALMON. The value of Z12MONTH is determined via CMOD (it is correct as I have checked it via RSRT + Debugging).
    However, when I run the query, only the ZCALMON values for 0CALMONTH are coming (although this should only affect the restricted key figure and report should be listing all 12 months determined by Z12MONTH).
    What may be the problem?
    Is it because of using "Constant selection" with a variable restriction option?
    Thanks in advance for your support,
    Regards,
    Dilek

    Deepmala,
    I gues it is not possible..
    Check the following :
    Variable offset
    Dilek

  • BEx variables restricted value not shown

    Hello,
    I have 2 variables defined and used in a query. I put both these characteristics as global filters.
    When the query is run, a popup screen allows user to input these 2 variable values.
    The navigation block in the worksheet shows only 1 of the 2 variables values entered by the user. That is, only the restricted value for one variable is shown. The other is not shown. The result is, however, correct.
    Not sure why is it so. Hope to get some clues.
    Thanks.
    Regards,
    Mirella Russo

    Dear AVR,
    Thanks for the reply.
    I placed the period and year infoobjects restricted by their respective variables in the free characteristics area but still the filtered values are not showing, although the period and year characteristics for filtering are shown as normal in the navigation block.
    I have several other reports also using the same period and year variables in free char or global filter section without such 'anomaly'.
    I noted that this problem report has columns restricted also by period and year variables. In fact, the year variable is an offset of -1. Is the problem caused by this restriction?
    I tried creating a new query of the same design. The problem is replicated.
    I hope you can throw me some more clues.
    Appreciate it very much.
    Thank you.
    Best regards,
    Mirella Russo

  • Exit variable restriction

    hi gurus
    I use exit variable in one planning level, in the exit coding, multiple single values (multiple "EQ") are exported as result, however the restriction is at most 9999 single values are allowed in the data structure, is there any possibility to extend this restriction, for example 999999? I know the performance maybe slowed down, but first of all I need solution to fulfill my functionality.
    any hints are highly appreciated.
    Patrick

    Hello Ravi
    thanks for your reply, my business requirement is quite complicated, I will explain as follows:
    we have two rows in the cube,
    CharA/CharB/CharC/KfigD
    10001/X/01/100    --->  (row 1 - for process 1)
    10001/#/#/200     --->  (row 2 - for process 2)
    We also have two separate processes on row 1 and row 2, and those processes are controlled by two different departments, both rows cannot lock each other, hence, different values of CharB and CharC is solution for that.
    In process 1, depends on the business logic, row 1 may be reposted to
    CharA/CharB/CharC/KfigD
    10001/X/02/100   
    or be reposted to
    CharA/CharB/CharC/KfigD
    10001/X/03/100   
    let's assume process 1 repost row 1 to
    CharA/CharB/CharC/KfigD
    10001/X/02/100    ---> (row 1' )
    Meanwhile, process 2 never changes values of CharB and CharC, but it needs to know the latest status of process 1, i.e. for process 2, there is a variable and a layout, the variable is for user selection of CharC, if user select value "03" of Char C(to know the latest status of process 1), then there is no any rows in layout, if user select value "02" of CharC, then one row appears in the layout.
    Because CharC always equals to "#" in process 2, we cannot use variable of CharC in the level of the layout( otherwise, the layout always select no rows for process 1), therefore, I define an exit variable of CharA for the level(meanwhile the package) which the layout belongs to, then use function module "UPC_DATA_READ" to read the latest data of process 1 which reponds to user selection of variable of CharC in process 2, then collect values of CharA into the exit variable, since CharA is the linkage of process 1 and process 2, finally, layout in process 2 can read real-time status of process 1.
    However, the exit variable only supports 9999 single values, but CharA of row 1 can extend to 10000+ which fulfills the condition like CharC = "02", in this case, my solution is defeated, for my first willing, it's better for me to extend the restriction of 9999
    sorry for the complex logic, but I urgently hope to solve the problem.
    Patrick

  • Display non changeable Variables / restricted values on variables Screen

    Dear SAP-Experts,
    is it possible to display non changeable / restricted char values on the variables screen?
    regards
    Jürgen

    Dear Jürgen,
    Now I understand what you mean.
    I'm afraid this is indeed not possible, unless you create customer exit for i_step=3 to invalidate any change made by user in variable screen for this variable, which is not really a practical way.
    Actually the user would be able to see the filter information after query execution. The detailed location depends on whether you use BEx Analyzer or portal.
    Regards,
    Patricia

  • Variable Restriction help

    Hi Experts,
    I have a requirement where in the query when the Variable screen popups
    i want to restrict the selection values it offers so that instead of
    all the values from the data target it only display certain character
    values.
    Example
    Data target will have these values.
    Project Type-project no-manager
    AAA--10000001-John Wilkinson
    AAA--10000258-David Keat
    BBB--11450008-Miller Wayes
    BBB--18975620-Raju.A
    DDD--25252525-Vinod P
    EEE--45898785-Krishna
    from the above values i have reports based on Project Types
    like for example when i am having a report on project type AAA and i have a variable
    on Manager, so when the variable popups i want it to show only two values like
    John wilkinson and David Keat not all the managers.
    How can i achieve this (here i have given the data for example in real i have around 1000 managers with 15 project types.
    can i achieve this .
    thanks and regards

    Sreedhar,
       Try to create a user variables for Project and Manager and populate with initial values under I_STEP = 1.
    <a href="http://www.box.net/shared/d05j3ngzru">Sample Code...</a>
    <a href="http://www.box.net/shared/i1tmtc6stf">User Exit</a>
    Hope it Helps
    Srini

  • Variable restriction combination

    Hi,
    i have selection done by variable (manual inputs) but i need to set up a dependance between variables input.
    i have the main variable (A) which is an attribut of variable 2 (B) and B is an attribute of variable (C)
    I bps i created a characteristic relationship but the system control coherence between value but i does not propose the list of value of B depending input in A.
    Why characteristic relationship does not work for my variables values.
    Cyril

    Hello Cyril,
    variables are independent of characteristic relationships because they can be used in many places. If you want to have dependent variables, then you can use exit variables where you code the logic yourself.
    Regards,
    Marc
    SAP Techology RIG

  • Restricted Key Figure with interval variable

    Hi,
    I've a restricted key figure for KF 0AMOUNT restricted by 0FISCPER. There is a variable restriction on 0FISCPER which determines the period interval in customer exit.
    e.g. 001.2008 to 009.2008
    The problem is, in query this RKF is returning only the values for period 009.2008. It should return the total for all the periods.
    Can you tell me what could be missing?
    Regards,
    Amit

    Hi Amit,
    please check the cutomer exit, as the range might not be properly defined in the exit.
    Firstly check if the variable is defined as range or single value, and if defined as range please check the below mentioned lines in the exit:
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    as they stand for:
    SIGN     (I)ncluding [ ] or (E)xcluding ] [
    OPT     Operators: EQ =, BT [ ], LE <=, LT <, GE >=, GT >, CP, and so on.
    hope it helps
    Regards,
    Umesh

  • What is the scope of implicit loop variables?

    Hi,
    I'm facing some strange error from the ABSL editor (syntax checker).
    In ABSL the loop variables are implicit and don't have to be declared in the head section of the script.
    My question now is simple: How is the scope/visibility of such loop variables specified ?
    There's a complete code snippet below.
    In line no.9, there's the first time use of implicit loop variable 'task_inst'.
    Because of type inference, it will be typed as MasterDataWanneBe/Tasks (which is my own BO type).
    In line no.20, I want to use the same variable name in a different loop, outside the parenthesis/scope of the first first use.
    Now the ABSL syntax checker complains about incompatible types (see code snippet)
    Thus the type inference should result in the, (lets say 'local') type Project/Task, which is the one I was querying for.
    To me it looks like, that loop variables implicitly get a global scope (hopefully bound to this ABSL file only).
    I would like to see the scope/visibility of loop variables restricted to the parenthesis.
    In other words only inside the loop.
    Hint
    I heard (from little sparrows), that local variable scoping is not possible because of underlying
    generated ABAP code. If so, than it would be helpful to print warnings, in case of types are compatible
    but used in different scopes. Think about the unintended side effects.
    import ABSL;
    import AP.ProjectManagement.Global;
    var query_tasks;
    var query_tasks_param;
    var query_tasks_result;
    foreach (empl_inst in this.Employees) {
         foreach (task_inst in empl_inst.Tasks) {
             //   ^^^^^^^^^  first time use
              task_inst.Delete();
    // ===========================================================================
    query_tasks = Project.Task.QueryByResponsibleEmployee;
    query_tasks_param = query_tasks.CreateSelectionParams();
    query_tasks_result = query_tasks.Execute(query_tasks_param);
    foreach (task_inst in query_tasks_result) {
          // ^^^^^^^^^ Error: 4
          // The foreach loop variable is already inferred to an incompatible type:
          // Node(MasterDataWanneBe/Tasks). Expected Node(Project/Task)

    Yes, variable declarations in ByD Scripting Language indeed have (snippet) global visibility. In the FP 3.0 release the variables can be declared anywhere in the snippet (not only in the beginning, as with FP 2.6), however still not within code blocks, i.e. within curly braces ({}). Therefore variable name shadowing is still not supported and because of the global visibility of variables they cannot be reused for a different type, later in the same snippet. This is because of the statically typed nature of ByD Script, despite the type inference convenience.
    Kind regards,
    Andreas Mueller

  • BW report authorization for restrict cost center

    dear all,
    i have problem on BW report authorization for restrict cost center.....when i execute the query, after selection screen, appear error message 'you cannot change zv_cctr for characteristic 0COSTCENTER during query'.
    note : zv_cctr is variable restriction for costcenter, type processing = customer exit.
    below the customer exit :
    WHEN 'ZV_CCTR'.
        IF i_step = 2.
          DATA : gt_mstuidvscc TYPE TABLE OF  ztbw_mstuidvscc,
                 gs_mstuidvscc TYPE  ztbw_mstuidvscc,
                 wa_final2(10) TYPE c.
          SELECT * FROM ztbw_mstuidvscc INTO CORRESPONDING FIELDS OF TABLE gt_mstuidvscc
            WHERE userid = 'sy-uname'.
          LOOP AT gt_mstuidvscc INTO gs_mstuidvscc.
            wa_final2 = gs_mstuidvscc-kostl.
            l_s_range-opt = 'EQ'.
            l_s_range-high = wa_final2.
            APPEND l_s_range TO e_t_range.
          ENDLOOP.
        ENDIF.
    Regards,
    Tony

    i defined variable as ready for input and mandatory.
    regards,
    Tony

  • 2 questions on variables in BEx

    Hi,
    I have 3 variables popping up on my Selection criteria (when I open a query) which I do not want. I verified all the characteristics in the query and none of these variables show as a restriction on any of the characteristics.  Any ideas on where to find and remove them
    Also, why would a restriction on 0Plant (a row in a query) have    &    in its technical name, i.e. at both ends when it was created and on the next day it disappears?
    Thanks

    Followup to your posts:
    For the rows, columns, etc in the structure, I could easily see those key figures and characteristics with Variable restrictions. It is not so obvious when it comes to the RKF, calculated key figure, etc. Is there an easier way locating such an object other than going through all the restricted key figure, calculated key figures (looking through the various formulas), etc? This will take forever.
    Also, under the rows, char, etc, I could also see variables based on the icons but now, searching through formulas, etc in RKF, calculated key figures, it is becoming tough. Any way to identify a variable in a formula other than knowing the variable complete name?
    The variables are: Plant to, Business Area hierarchy, Valuation class hierarchy and movement Type
    Thanks

  • Text Variable with Replacement Path

    Hi,
    I want to create a report which will show me 5 years of data. I have used a variable for Fiscal year which will be given by the user. Now I created a 5 key figures with offset to show the 5 years of data. 
    I used a text variable with replacement path based on Fiscal Year, to display the year in the column heading. But I am only able to get the correct year in the first column. Rest of the column is showing me the same heading. Actually the offset is not working for the text variable.
    Can anybody let me know how could we achiev the column heading for the columns with offset.
    Thanks

    Prashanth,
    I have used a replacement variable in the exact situation. Instead of years, I have different months. I have used this variable on 0CALMONTH. I also have two more keyfigures where CALMONTH is offset by -12 and +1.
    This variable works perfectly for me as expected.
    Did you check the data to make sure that your offset is working? This is was I did for Offsetting and i am sure you have done the same thing.
    Right click on the variable, "restrict". A window opens with the values. With the variable selected in the right side, right click "Specify Variable Offsets". If the replacement variable is built on this infoObject, it should work.
    Hope it helps. Let me know if you still can not find a solution.

  • Check user entry in Customer Exit Variable in i_step2

    Hi Folks,
    at the moment I'm facing a challenging problem. In an BW Query i have a Customer Exit defined as "not ready for Input" to catch the Variable in I_Step = 2 and fill by a certain algorithm. When i change the CE Variable to "Inputready", the user can enter values, but i have no chance to react on these values as i_step = 2 will not b reached during execution- And this behaviour is correct. BUT is there any chance to Check user entries in an Customer Exit variable and change this somehow in des code?
    Thanks for all replies.
    BR,
    Maik

    Hi there,
    It is possibel depending on what you wish to accomplish.
    You can create two variables for the same characteristic.
    The first is an input ready variable for the user to enter the data and the second is a not input ready variable CE where you can in step 2 process the data entered from the variable ready for input.
    You can than fill the CE variable with any data, but you will have the variable restricted by the two variables (the ready for input and the CE).
    But for validating you could throw an error message based on the variable input ready.
    Diogo.

  • Query Designer Issue (Variables)

    Hello,
    I'm trying to create an input query in BI-IP, with 2 característics in rows (untill here evrything works fine).
    I'm having problems in creating the columns the way client want. It's a plan query, so the Client wants to Plan his budget monthly for the next year (I've created a mandatory Interval Variable ready for input based on 0FISCPER) if i run the query at this point, it runs, doesn't give results because there are no values.
    The problem is that the Client wants to see the Acumulated Real Amount of the previous year in a column before the monthly ones! This is where the query stucks. I assign another variable i've created for cumulative values, and assigned an offset of -1 to that variable
    Does anyone knows how to solve this or has any idea so we can start a conversation over here! I'm quite in a hurry as the project is reaching it's end.
    Thanks

    "The problem is that the Client wants to see the Acumulated Real Amount of the previous year in a column before the monthly ones! This is where the query stucks."
    I didnot get that...
    When u want to see the Accumulated Real amount of previous year
    y do u need to create a variable for it....
    for e.g. if i have to do i will do it following way...
    Client wants tos ee the Amount of Last year and Current year
    i will insert Amount in Columns
    right click and say edit
    now bring time chars... ofiscper
    now restrict it with interval variable , ready for input...
    save and hit okey
    i will copy the whole amount and paste it below
    now i will go to variable restrict screen and then set offset as -1
    is this what you did....
    if yes... then how does the data corresponds in BW system
    logint to rsa1
    goto ur cube
    right click and hit display data
    see what u are seeing....
    go to rsrt
    run and execute ur query
    it will display how each column value is getting calculated
    if there is no relevant data then i t will nt show
    if there is then u need to redesign variables...
    if u r using mandatory variable in columns of keyfigures
    dont use 0fiscper in Free chars/Selection screen

  • How to populate a text variable

    Hi All,
    I need to populate a text variable based on the value of a characteristic in the query. Since the value of the characteristic and the text variable value is not the same I cannot use replacement path. So here I have to use customer exit.
    My problem is how to get the value of the characteristic in the customer exit.
    If the characteristic is used in a variable I know how to get the value of the characteristic (We can get it from i_t_var_range). But here I am not using the characteristic in any variable. So how will I get the characteristic value in the customer exit.
    Any useful help will be appreciated.
    Thanks
    Anand

    Hi Srini,
    Based on my above scenario suppose that there are only two month values in the cube, say January and March. So in the column side there will be only two column for each key figure, if only month characteristic is there in the column side, one for January and the second for March. Here I want to populate "First" as value for text variable where January is there and "Third" as value of text variable where March is there.
    Here you have mentioned "you can read all available values in cube and pass required value/text to text variables". Here how do I write a code to read the month values from the cube, that is my question.
    If it is there in some variable I could have got it from "i_t_var_range". But as per user requirement I cannot use a variable restriction on the month and they want to use this text variable across the queries(which I am not creating, user themselves are creating the queries) based on their requirement.
    Thanks,
    Anand

Maybe you are looking for

  • How do I update from iOS 6.0.1 to iOS 7.1? As I've never updated my phone since buying from a friend and my phone won't allow me to update to iOS 8??

    How do i update my iOS 6.0.1 to iOS 7.1? As I've never updated my phone since buying from a friend and my phone won't allow me to update to iOS 8??

  • Report Execution in AIS

    Dear All,      While I am trying to execute the transaction S_ALR_87101046 - GL Account balances, the system is automatically selecting the variant SAP&AUDIT_ABST  and throwing an error as given below: "Variant SAP&AUDIT_ABST of program RFSSLD00 is n

  • ChaRM customizing - status hangs

    Hi, in customizing Service Desk/ChaRM we are using Incident Tickets (type ZLPI) which are linked with Change Requests (type ZDCI). The status profile used for the Incident Tickets is the following:  10     OPEN     Open     10     25     1     1     

  • Brspace -f idrebuild

    Hello, i would like to rebuild indexes from a table. When i use the underlying Syntax i receive an BR0667E. brspace -p initC3T.sap -c force -s 20 -l E -U -f idrebuild -t ARFCSSTATE 6 - SAPC3T   ARFCSSTATE           ARFCSSTATE~05        NO   1  PSAPC3

  • IPhone in water....remedy?

    Hi Everyone, My wife got her iPhone quite wet in her purse last night. It sat in water for a few minutes probably. I got it out and dried it off (it was in a leather case, the phone itself wasn't terribly wet). Immediate after I dried it, someone cal