Exit variable with multiple values or with ranges

Dear Experts,
I have a date exit variable used in a planning level. If the variable has a single value, I am able to execute the planning function. But if the exit is populated with a range or multiple single values, I am unable to execute the planning function. I get this message 'Variable "ZXPRDATE" is not restricted to a single value'.
I should be able to read all records from the cube in date range of one week for repost. Please advice if this is possible.
Thanks,
Gnana

Hi Mayank,
Yes, I am using the same variable for repost function also.
Let me explain in detial.
Req: I have a planning level with product, effective date and count(keyfigure). I want all products that has a count keyfigure value for the last one week.
If my effective date is a single value, I get all the list of products on that particular day. But, if my effective date has multiple dates or a date range, nothing is read from the data base.
Please advice.
Thanks,
Gnana

Similar Messages

  • Customer exit variable with exclusion

    Hello all, anyone know why a customer exit variable cannot exclude values ?
    I've tried with multiple, single and interval without success (it give me a generic error in the customer exit for my variable).
    Only the "selection option" mode seems to be enabled to exclude values (also in debug mode with rsrt transaction).
    Unfortunately, I cannot use selection option (because this exclusion is an integration of pre-existence selection on a complex structure).
    We have SAP BW 3.1C, with SP16. I've looked for sap notes but nothing about this problem (may be a limit).

    Now I post my code. The variable is a "Multiple Single Values", optional, not "Ready for Input".
    This is my code.
      DATA: L_S_RANGE TYPE RSR_S_RANGESID.
      If I_STEP = 2.
        CASE I_VNAM.
         WHEN 'ZXXXXX'.
            clear l_s_range.
            l_s_range-sign = 'E'.
            l_s_range-opt = 'EQ'.
            l_s_range-low = 'xxxxxxx'.
            append l_s_range to e_t_range.
        ENDCASE.
      ENDIF.
    The query raise an error (generic error on customer exit).
    I've debugged the code. Error has raised from plausibility_check on RRS_VAR_VALUES_EXIT_AFTER. The following is the code that raise the error.
            CASE i_vparsel.                                              
              WHEN   rro04_c_vparsel-param                               
                  OR rro04_c_vparsel-<b>multiple</b>                            
                  OR rro04_c_vparsel-table.                              
                IF     <l_s_range>-sign <> rs_c_range_sign-<b>including</b>     
                    OR <l_s_range>-opt  <> rs_c_range_opt-<b>equal</b>.         
                  PERFORM raise USING rs_c_false g_c_ue_invalid_range    
                                      i_vnam space space space.          
                ENDIF.                                                   
    From this code, it seems that with multiple selection we only have sign including and option equal.
    What do you think about ?

  • Populate user exit Variable with User Authorizations using ABAP?

    Hi, Does anyone know of a way to populate a user exit variable (with ABAP) with the Authorization Values for a user running a report?  I am turning off authorizations for our InfoProvider using RSSM and want to populate a variable instead and use the variable as a filter.

    Hi Kenneth ,
    You need dynamic authorization in your report .This can be done at query runtime by using exit variable and writing cmod code for the same .
    This code will read authorization maintained at runtime of query in i_step = 1 and will pass input var values accordingly .
    For step by step information you can access this document .
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0f9f33c-0f17-2d10-d3a2-ae52ccd00780?quicklink=index&overridelayout=true
    Hope this will be helpful .
    Regards,
    Jaya Tiwari

  • Map the user exit variables with the queries/cubes using them

    Hello Friends,
    What are the post unicode conversion tests that you can perform on front end/existing queries?
    is there any added advantage for queries due to unicode?
    is testing the working of variable  enough? is there any table to map the user exit variables with the queries/cubes using them?
    Thanks
    Tanya

    Guys, any clue about this? Answer are appreciated.
    Thanks
    Tanya

  • Variable with range- only 1st value used in manual planning ?

    Hi,
    We're trying to define a column in a manual planning layout that will represent a YTD total.  We have defined a variable  for 0fiscper that contains the range of periods we require in the YTD total.  When we execute that manual planning area with this variable used as a restriction on the data column we want, the key figure values displayed only represent those for the 1st period in the range - not  all periods in the range !
    I'm hoping someone can tell me if manual planning layouts can use variables in this manner.  If not, how can this best be done ? 
    Many thanks,
    Blair

    Hi Blair,
    Create a total column using the dynamic column, as a result you would have the individual period columns and the total column in the layout. Now make the individual period columns hidden using any of the options below.
    You could achieve the same, by making the column hidden in the transaction UPX_MNTN
    > Enhance Planning Layout
      > Select the relevant layout
         > Select the enhanced button for the key figure
           column
           > Mark the hidden check box there.
    Alternatively if you are using Excel GUI, you could set the column width of the columns preceeding the total column as 0 (in the third screen of the layout) to make them hidden.
    Hope it helps

  • Bex Exit variable with workbook

    Hi experts,
    I've defined a query that uses an exit variable which select a specific range of customers.
    When I execute the query the variable is populated with correct values.
    Then I saved this query as workbook; but when I execute the workbook, the selection is not taken into account; it's as the exit is ignored.
    When executing the workbook I 've got an information message as follow:
    "The Can be changed in query navigation property has been set for variable VACLCONSID, characteristic 0BILLTOPRTY. However, the variable is used in the query in such a way, that the system is unable to apply this change-option"
    But in my query definition for VACLCONSID, flag "can be changed in query navigation" is't checked.
    Moreover I can't debug exit ZXRSRU01 with a workbook.
    Any ideas
    Thanks in advance
    Thierry

    Hi Radha,
    thanks for your reply.
    My exit variable depends on a customer variable which is filled during variables screen processing
    User selects a period, and exit defines customers selection with this information
    I use i_step= 2 in exit ZXRSRU01
    No other parameters are filled in the workbook by user
    Regards
    Thierry

  • Exit variable with $

    Hi,
    What is the meaning of aexit  variable with a $ sign in front ot it?
    Thanks

    hi Will,
    i think you mean authorization variable via user exit
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1b439590-0201-0010-ea8e-cba686f21f06
    hope this helps.

  • Displaying Customer Exit Variable with derived value from another ODS

    Hi All,
    Sorry if this question has been answered before.  I searched the forums and could not find anything specific to my problem.
    I am new to BEx Query.  Customer is requesting a variable(s) be created which will be displayed as a column along with other CKF and RKF.  This query is a payroll query for US/Canada.  This new variable will be based on the user input date for the query.  We are to take this date and go look up the actual pay date for the pay period to which the user input date belongs.  The pay date is stored in another ODS.
    So far, as far as the changes to the Customer Exit ZXRSRU01 are concerned, I would perform the logic when I_STEP = 2.  Do a basic selection off the second ODS, derive the pay date, and store in range table E_T_Range.
    The data displayed off the user input date is displayed in rows.  This is done six times, going back seven days for each row (first row is data for period user entered date to user entered date - 7 days; second row is data for period user entered date - 7 days to user entered date - 14 days; etc ...).  For this to happen  correctly, I am assuming the variable(s) are to to have characteristic types 'Not ready for input', 'Mandatory', 'Customer Exit', and 'Single Value'.
    My question is ... How do I display the six variables in columns (how are they to be defined in the query) and the characteristics I list above, are they correct? Does this need to be a replacement path variable?
    Thanks.
    Edited by: Amir Hasan on Jun 11, 2009 6:24 PM
    Edited by: Amir Hasan on Jun 11, 2009 6:25 PM

    Hi Amir,
    What i can understand from u r requirement is you want to few columns that will show something like below,
    User entered date = x
    Period of X to Period of (X-7)       Period of X to Period of (X-14).....
    This can be done by CMOD for variable only.
    Logic steps :
    1) Take the user input.
    2) Find out the period by using T009B table and store in temp variable.
    3) Do day -7 and find out period for the same
    4) Assing period of X to ls_range-high range and X-7 to ls_range-low.
    Let me know if you have any doubt
    Regards,
    Viren

  • SAP Exit Variable not returning values - 0CMONTH

    Hi all -
    I'm running a query in our Q system that has a variable restriction of:
    LOW: 0CMONTH - 12
    HIGH: 0CMONTH - 1
    Because today is April 17, 2007, I expect my result range to be April 2006 - March 2007.
    I'm currently getting "No Applicable Data Found" when I run the query, and the text elements don't show any restrictions being passed for 0CALMONTH. If I hardcode the restrictions in my query definition to a range of April 2006 - March 2007, then I get a ton of data.
    The variable seems to be working fine in the dev system. It's active in both systems, and the change date and user is still set to SAP circa 2002 in both places. I checked the RREX_VARIABLE_EXIT in both systems and they're identical.
    Any idea why this variable isn't working?
    Thanks!
    Adam

    Ok, there's no problem with 0CMONTH. This is the result of staring at something for too long. The restriction on the range was 0CMONTH-1 : 0CMONTH-12 so the query interpreted that as 03/2007 - 04/2006, which is an invalid range. I switched the offsets and now it works fine.

  • Hierarchy node variable: select multiple values at once

    Dear,
    We have a hierarchy node variable (Multiple single values, optional) on profit center. If I launch this query in the BEx, it is possible to enter multiple single values in one go. However, on the web, it is required to insert a new row for each extra value the we want to select. However, when selecting a filter value on the web, it is possible to select several values at once (by checking a checkbox).
    Is it possible to select several values at once in the selection screen on the web for this variable?
    Thank you!

    we recently had the same requirement and posted the question at SAP. their reply was : this is not possible. even through the exit it was not possible, due to the logic of the sql select when executing the query, it seems.
    concerning the fact if this would be possible in a near future, there was no reply
    M.

  • A variable with multiple values. Is it possible?

    Normally, when we need a variable with multiple values we just write them while creating the variable or, if they depend on some other variable selected by the user a variable of type exit is used.
    However, this time we would like my user to select <b>a few</b> variable values <b>at a time</b>, i.e years 2005,2006 and 2007. He can change his mind and then select 2007 and 2008. I don't want the user to be forced to select ONLY ONE value. They need to select several values at the same time.
    Ideally, I don't want to use a range with values from 2 variables to do that.
    Thanks,
    Alberto Sabate
    Message was edited by: Alberto Sabate

    Hello Alberto,
    When restricting variables to multiple values you need to use a range. The variable restriction in BPS supports two operators EQ - equals and BT - between.
    In your example below however you could use a user exit to support this. The years you have typed in below are sequential and therefore would fit into a range.
    Cheers,
    Scott

  • IP: Exit-variable multiple single values

    Hello,
    I have a question to Exit-Variables in IP. I'd like to fill an Exit-variable with several single values, e.g. A, D, G. At the moment I could transfer only one single value, e.g. A, with following coding:
      l_example TYPE CHAR VALUE 'A'.
      l_s_range-low = l_example.
      l_s_range-sign = 'I'.
      l_s_range-opt  = 'EQ'.
      APPEND l_s_range TO p_t_range.
    How could I change the coding for transferring several single values?
    Many thanks for your help.
    Friedrich

    Hi,
      take whatever values you want to populate into one internal table l_example. Then loop over this internal table.
    Loop at l_example into wa_example.
    l_s_range-low = wa_example-value.
    l_s_seqno = sy-tabix.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    insert l_s_range INTO TABLE p_t_range.
    clear wa_example.
    Endloop.
    Hope this works.
    Regards,
    Bindu

  • How to exclude values in an exit variable?

    Hello experts,
    I try to exclude special values from my selection via exit variable but I get an error of invalid values.
    could it be that something in my selection table is wrong? Do I have to use an other value for SIGN or OPT to exclude values?
    my Coding is:
    l_s_range-low  = '0000000404'.
    l_s_range-sign = 'E'.
    l_s_range-opt  = 'EQ'.
    APPEND l_s_range TO e_t_range.
    I tested my values with include them (SIGN = I) and this works fine.
    settings of the variable are:
    Type of variable:      characteristc value
    processing by:         Customer exit
    variable represents: Multiple single values.
    Where is the Error?
    Thanks in advance
    Johannes

    Hi there,
    I tried once to do that, i.e., with customer defined variable use the exclude sign 'E' for a variable but it doesn't work.
    Don't know why, but excluding values with 'E' doesn't work.
    Although it seems stupid you might consider excluding that value directly in the query in filter, or use BT from a value till 0000000403 and other BT from 0000000405 to above.
    Diogo.

  • User Exit Variable picking values from InfoProvider

    Hi,
    I've created a User Exit variable (of type Interval, Mandatory) on 0CALMONTH and populating it in exit.
    The problem is at the time of query execution, I get "BRAIN 657" error i.e.  "Value <value> is Invalid for Variable <variable name>".
    After doing some analysis I figured out that once the user-exit code is performed, system validates the entries populated in this Variable against the values in InfoProvider and gives error when it doesn't find those values.
    E.g. lets say InfoProvider has values for 0CALMONTH from 06.2010 till 10.2010 and if I populate my variable with range 03.2009 till 12.2010 then it throws above error. But if I populate the variable with exact values i.e. 06.2010 till 10.2010 then it works.
    Any idea how can I remove this validation and populate with my own value range?
    Regards,
    Vikrant.

    hi remove that default value from the variable.
    and you shd be able to run the query without any problem.
    regards,
    VJ

  • Multiple Values in Variable.

    How can I assign multiple values to one variable in rpd?
    Say I want 'NY', 'CA', 'IL', 'TX' states in one variable, is that possible? if so how?
    Thanks.

    The session variable, NQ_SESSION.STATE, is defined as Row-Wise Initialization. It is restricted to usage with equality comparisons you receive because you cannot set default value as long as row wise session variable has multiple values and it does not make any sense to set default value, so if you test it in RPD the results is like:
    STATE State1
    STATE State2
    STATE State3
    STATE State4
    Therefore it can be used only in the filter (equality comparisons).
    If you say, for example:
    select 'CATEGORY', prod_category from
    (select distinct prod_category from sh.products)
    where prod_category='Peripherals and Accessories'
    Row wise STATE get only one value and you can use it as default to the dashboard prompt or in Answers edit column formula, otherwise not.
    In your example:
    (SELECT CASE WHEN VALUEOF(NQ_SESSION.GROUP) = 'EXT_USERS' THEN 'FL' ELSE VALUEOF(NQ_SESSION.STATE) FROM ***) END)
    VALUEOF(NQ_SESSION.STATE) has multiple values, so if want to set one of that value as default use another init session variable block to set only one of these values like:
    select 'STATE_DEFAULT', state from dim-locations where state ='NY'
    or just hardcode it in the RPD because you said that you don't want that it shows up for external user in the dashboard prompt (like you hardcode 'FL') and then put it in the default part:
    SELECT CASE WHEN VALUEOF(NQ_SESSION.GROUP) = 'EXT_USERS' THEN 'FL' ELSE VALUEOF(NQ_SESSION.STATE_DEFAULT) FROM ***) END)
    Regards
    Goran
    http://108obiee.blogspot.com

Maybe you are looking for