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

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

    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

  • 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

  • Need Help With Combining Two Variables For A Redirect

    Hello-
    <br />
    <br />In a different part of my site (built with ADDT) I have this script that creates a variable by combining two session variables, and then the new variable is submitted into a mysqul database table using a hidden form field:
    <br />
    <br />
    <form>
    <input type="hidden" name="exerreference" id="exerreference" value="<?php echo $_SESSION['kt_login_user']; ?><?php echo $_SESSION['kt_exer_reference']; ?> <br />" />
    <br />
    <br />There is also this part of the script in the header script:
    <br />
    <br />$ins_exer1-&gt;addColumn("exerreference", "STRING_TYPE", "POST", "exerreference");
    <br />
    <br />What I am trying to do now on another page is combine a session variable "kt_login_user" with a piece of dynamic text "AA" so that I can compare it to the field "exerreference" that was inserted into the database using the above script. If the two variables match, the idea is to have a redirect to another page.
    <br />
    <br />So in a hypothetical example, if the value of the session variable "kt_login_user " is "bestperson," and static text is "AA" then I need to create the variable bestpersonAA (because this is how the variables exist in the exerreference recordset). This variable bestpersonAA then needs to be compared to the recordset value exerreference and if they match, the page redirects to ../previous/portalpre.php. If the two variables do not match, then there is no redirect.
    <br />
    <br />Here is what I have so far:
    <br />
    <br />if (isset($_SESSION['kt_login_user']))
    <br />{
    <br />if ($_SESSION['kt_login_user'.'AA'] = $row_Recordsetexer1['exerreference'])
    <br />{
    <br /> header ("Location: ../previous/portalpre.php");
    <br />}
    <br />}
    <br />
    <br />The script doesn't work yet - it's redirecting regardless of if the two varibles match. Any ideas on the correct syntax to get this working correctly?
    <br />
    <br />Thanks
    <br />Dale</form>

    Hi Dale,
    if ($_SESSION['kt_login_user'.'AA'] = $row_Recordsetexer1['exerreference'])
    for checking whether two variables match, you´ll need the == comparison operator:
    if ($_SESSION['kt_login_user'.'AA'] == $row_Recordsetexer1['exerreference'])
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • SEM-BPS Variable buffer clearing issue

    Hello experts,
    I have a situation where my user wants to use BPS functionality to perform direct data entry and validations. I know it's not standard, but that's not the point.
    How do I clear the variables buffer so that each time the user enters the plan layout they are requested to enter fresh variables to determine the selection combinations?
    Is there a function module?
    What tables store this info?
    Any suggestions will be appreciated. Thanks!

    I guess I'll answer my own question.
    There are two tables I've found that holds variables they are as follows:
    UPC_VAR_CHA_SEL - Variables - Selections
    UPC_VAR_CHA_ACT - Variables - Restricted Values
    A function module was created to read these tables and delete the values, based on the userid, hence causing a refresh.
    The function module needed to be executed in the planning folder on 'save'.
    This has worked fine.

  • BPS Variables

    Hi there
    May somebody help me with the following problem: I have two variables in a BPS package and I want the second variable to show only these entries/values which are possible to select according to the combinations which are in the cube or maybe in the reference data. eg. i have the two variables, controlling area and cost center. so when I select a controlling area, I want the cost center variable only to give me these cost centers for selection which are in the selected cost area. as it's possible in BEX.
    Thank's
    Message was edited by:
            Martin Studer

    Hi Ravi
    First thanks.
    If my understanding of the How To BPS Variables of Type Exit is right, then what I'm looking for is descript in chapter 1.4 / 3.6 "One variable restricts the selection of another variable". But therefore in my exemple controlling area had to be a master data attribute of cost center. But my problem is that one costcenter can be in different controlling areas, so i can't define the controlling area as a master data attribute of costcenter. So can i still use this exit variable? May someone is working with the BI-content in this issue and can give me an input from there?
    Thanks again.
    Martin Studer
    Message was edited by:
            Martin Studer

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

Maybe you are looking for

  • MSI Big Bang XPOWER II - Protools

    Hello Everyone!  Looking for some quick advice,   I am looking into the MSI Big Bang Xpower II motherboard for its rich features, solid CAPS (Very important to me),  Admittedly,  I wont be doing ALOT of Overclocking, but want the stability.  I am bui

  • Inventory Report for actuals  and  projected?

    Hi, currently i am doing APO-BI Project. I have a requirement to extract the Opening stock from ECC and Projected(Forecasted) Opening stock from APO. both are 2 different key figures 1 is from ECC and another one is from APO. I need to display in Bex

  • Four-Finger Swipe - HOLD Desktop

    Does anyone know how to use the four-finger up swipe to show and hold the desktop so that you can see the desktop AND work on it? Currently when I show the desktop (using 4-finger up swipe) as soon as I click on the desktop, all open windows/apps rev

  • DVD Control

    how can i use mi control of video (for the imac model 2007) in my new mac model 2013?

  • JBO-35007 in Portletized ADF Faces Page and alternative scenarios

    Hi all, I've started a new thread to address one of the problems referred to here Issues with Faces -> Portlet Bridge and ADF Faces In short, the issue arises when portletizing an existing ADF Faces page that uses an ADF BC bound af:Table on the page