Selection Variable Issue

Hello All,
Web report is based on two selection variables and both are mandatory entry.
0CALMONTH: Customer Exit : Populated from customer exit code. By default always Shows last month i.e 04.2011
Spend Attribute: A002.
Recently it is identified by user that selection variable is popluated as below
0CALMONTH: Customer Exit : 03.2010 - last year - Incorrect value
Spend Attribute: A002.
I have checked all transport request if anything by mistake moved production but every thing is fine.
Somehow 0CALMONTH is populating like 03.2010 which is incorrect. Even I debugged in T-code /nRSRT, it is showing correct 04.2011 while executing the report
Please provide me some ideas to resolve this issue?
Thanks in advance.
Vijay Velpula

Hello,
Thanks for your response. Please find below customer exit code.
*for variable: IC_SPEN1*
    WHEN 'IC_SPEN1'.
      IF i_step = 1.                                  "befor the popup
select in infocube dimension
        CLEAR sid_month.
        sid_month = 0.
        CLEAR /bic/dic_spend1t.
        SELECT * FROM  /bic/dic_spend1t.
          IF /bic/dic_spend1t-sid_0calmonth > sid_month.
            sid_month = /bic/dic_spend1t-sid_0calmonth.
          ENDIF.
        ENDSELECT.
select in 0CALMONTH master data
        IF sid_month <> 0.
          CLEAR n_month.
          SELECT SINGLE calmonth INTO n_month FROM /bi0/scalmonth
          WHERE sid = sid_month.
        ELSE.
          n_month = 200301.
        ENDIF.
        CLEAR l_s_range.
        l_s_range-low      = n_month.
      L_S_RANGE-HIGH     = n_month.
        l_s_range-sign     = 'I'.
        l_s_range-opt      = 'EQ'.
        APPEND l_s_range TO e_t_range.
        EXIT.
      ENDIF.
Values are coming correct under l_s_range.
Please suggest.
Vijay velpula

Similar Messages

  • Reports - Variable Selection, Restriction Issue

    Hi Experts,
    I have an object (Region) in the variable selection screen, which is displaying South, East, North, West and some more junk value.
    I want to have only South, East, North and West on the Variable screen of the Analyzer.
    I have right clicked the Region Char. Variable on the Filter Section and have selected only South, East, North, West.
    But when I try to select the region on the Analyzer. I'm getting all the values including the junk values.
    Can anyone tell me how do I have only these 4 regions nothing apart from that.
    Thanks

    Hi All,
    The data I'm getting is from the Data Provider.
    But I want to restrict only 2 Zones like South and North in the Variable Selection Screen.
    When I try to restrict it at Filter Pane ->select infoobject ->selection variable->right click it restrict.
    Both the Zones are correctly being set on the restriction but when I try to execute it in Analyzer its not displaying me only those zone but all the values.
    Hope its clear. Please reply.
    Thanks

  • Selected variable value is different from the displayed value

    Hi all,
    I have an issue with variable selection in portal. I have a IO - customer which is compounded to source system. So I have soem customers with the same key with different sources. And I have a variable created on customer. For ex - i have 3 customers like below. 
    SA/1234567
    BP/1234567
    F5/1234567
    1 - And when I search for a customer 1234567 - I find only one customer that is SA/1234567. And IO properties are set to read all the masterdata values and not infoprovider or posted values.  - thats issue one - I would like to see all the three and let the user select what ever he wants.
    2 - Now when I select SA/1234567 and run the report. It shows me data for F5/1234567 - which is correct data for that customer. But in the template I have a info field web item to display the selected variables on the screen. That info field shows the Customer as BP/1234567 - which is wrong and confusing. I checked the properties of the web item and everything seems ok.  So in the variable screen I get a value, the result set if of another value and the variable value that shows in the Info tab is another customer. - Driving me nuts
    3 - When I recreate the same scenario in 3.x query - everything works the way they should - this only happens in 7.0 query. What am I missing here??
    Any pointer or insight is appreciated - sorry for the long post.
    Voodi
    Edited by: voodi on Jun 8, 2010 2:26 PM

    Sorry - its not how its displaying the values rather what its displaying - it misses on 2 other values from the three - though the Bex setting in IO are set to read all the values from materdata table. And in the query I'm using IO properties. And display settings are ok

  • Web Report - Selecting variable value

    Hi,
    I have web report, where one selection variable for company code is there.
    If i am running the report like compnay code 2000 it is working.
    The web report is having a facility to select multiple company code like >1000. Means before the text box to enter the company code 1000, there is another selection box where we can select =,>,< etc like that.
    If i am selecting > and company code 1000. Then report is not displaying any thing.
    But we have company codes > 1000 like 1001-1007,2000,3000.
    Could you please advise me what might be the wrong with this case.
    Thanks & Regards
    Srini

    One possibility would be that you are having a security issue. If you do not have authorization to see ALL companies > 1000, then your report will show no data (even if you do have authorization to see company 2000).
    Hope this helps...
    Bob

  • Selection variable not working properly on portal

    Hi,
    We have a report in which Survey is a selection variable(Not a mandatory variable). If I select Two or more surveys simultaneosuly in the initial selection screen, then the Portal is not displaying the data. PFB screenshot of the selection.
    If I select the same two surveys individually in the selection screen, then the portal outputs the result. If I execute without selecting any survey and then apply a filter (after the output is generated) for those two surveys together, then also the data is displayed properly.
    Kindly note that this report is being used by German users and the problem exists only when the Language preferences of the portal is changed to German. With English Language Preferance, the selection variable works properly.
    Please suggest if anybody has faced a similar issue
    Regards,
    Keerthan

    Hi Lakshmi,
    The texts are maintained for those survey values and even with German Language Key, still not getting the output.
    If i select them individually, then I am getting the output.
    For instance, I have selected the surveys "0000084001" and "0000090001" together in the selection screen(I have inserted the Pic in the original post, but i am sorry it is not clear in that) and not getting the output or it hungs up in the execution state.
    If i select the same survey "0000084001" only, then I get the output.
    This is the same case when I select only "0000090001".
    This scenario is only with German Preferance.
    If i change the preferance to English and select these two surveys together, then it outputs the result.
    Regards
    Keerthan

  • How to create boolean selection variable

    hi experts,
    i need a selection variable (which can be a boolean).
    depending on the value of ythis variable, i would like to adjust calculation of number of worked days in the month with taking/or not into account current day in this calculation...
    i already implemented exit for this calculation, but i don't know how to create this variable without changing anything in the infocubes...
    any idea?....
    Dev

    Hi,
    once u solved it with your own please post it...share the knowledge to others who are facing the same issue.
    Thanks,
    Chinna.

  • Authorization Variables with Optional Selection Variables

    Has anyone used authorization variables in addition to optional selection variables?
    I'm getting funny results and trying to figure out why. 
    Here's the scenario:
    InfoObject zcompany has 5 values A - E
    UserX is authorized to see all 5 values in his user profile.
    In the query zcompany has two variables assigned to it. 1 is an optional multiple selection variable, and 2) is an authorization variable
    Here's the funny result:
    User X runs the query and selects company A from the optional selection criteria, he clicks execute and but the results returned are companies A - E.  ?????
    Is there a processing order here?  Are the authorizations being processed last and overwriting the selection criteria?  My users are annoyed with me because they feel like they have to pick everything twice.
    Any help anyone could provide would be much appreciated.
    thanks
    Smitty

    Hey Bhanu,
    thanks for the reply.
    I kinda tried that in the past and found out that it really annoyed my user community.
    I guess im looking for the best of both worlds here, because I like the fact that the authorization variable limits the optional selection values for the users that are only allowed to see one or two things, but for the super users this creates the issue described above because they're allowed to see everything.  But sometimes, the power users only want to see one or two values... and thus the problem above.
    I noticed in the query information the value for zcompany was "Complex Selection" is that the system's way of saying that it's confused?

  • Can we use 2 Conditions as Selection Variables in a Query?

    Hi Gurus,
    According to the requirement in our report , we need to have selection variables on 2 Key figures Target Quantity and Consumption.
    So ,we have used Conditions to have Variables in the Selection screen.
    The Conditions (the Selection screen variables) are not working properly.
    Can you please give some pointers on the Conditions to be used in the reports.
    Thanks,
    Sravani

    I did not understand whats the issue is...., is it with the condition? or the variable.
    If with the Condition please provide some more details about the condition.
    If it is a variable, as the other person said, how did you create the variable on the Keyfigure? because as per i know we cannot create any variable for the Keyfigure, but if is possible please let me know, and i can dig in to that, and let you know how to fix the issue.
    Regards,
    Ram
    Edited by: Ram Pawan on Aug 14, 2008 4:06 PM

  • Pass user selected variable to Entity implementation class

    Guys,
    I need to pass the user selected variable to Entity class. and looking for the best way to do this ......
    If user selected process1 or process2 then I need to call stored procedure right before the commit. So i need to pass the user selected process to entity class file.
    I am thinking about having a transient attribute on entity and set the value on front end..... so that value will be pass to the entity class file and in beforeCommit method i can check the value of transient variable and then call stored procedure
    is this a good approach or any other suggestions are greatly appreciated....
    thank you
    -Raj

    Thank you Timo and Jobinesh....
    Good suggestion Jobinesh... will start the implementation
    Thank you
    -Raj

  • Script logic - how to use a selection variable within an allocation logic

    Hi,
    I want to implement a simple top-down distribution to distribute values from a yearly budget (Y20xx.TOTAL) to a quarter budget (Q20xx.Q1, ... Q20xx.Q4) using the actuals of the previous year as reference.
    If we hard code the members it works fine:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=SBO; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    Of course, we want to make this dynamic, using the values inputted in the selection screen of the package: time, entity and category.
    So if we start with write the following logic, it does not work anymore:
    *RUNALLOCATION
    *FACTOR=USING/TOTAL
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN); USING=<<<; TOTAL=<<<
    *DIM TIME WHAT=%TIME_DIM%; WHERE=BAS(Q2009.TOTAL); USING=BAS(Q2008.TOTAL); TOTAL=<<<
    *DIM CATEGORY WHAT=%CATEGORY_DIM%; WHERE=<<<; USING=ACTUAL; TOTAL=<<<
    *ENDALLOCATION
    So, how to use the selection variables in this allocation logic? %TIME%, %CATEGORY% also did not work ...
    regards
    Dries
    solved it ...
    Edited by: Dries Paesmans on Feb 22, 2009 8:31 PM

    Hi Dries,
    Looks like you solved this, but if I can just add a small point -- when you use syntax like this:
    *DIM ACCOUNT WHAT=ACC_NOT_ASSIGNED; WHERE=BAS(FIN);
    *DIM TIME WHAT=Y2009.TOTAL; WHERE=BAS(Q2009.TOTAL);
    each time the logic runs, it will scan through the dimension from the FIN and Q2009.TOTAL members, one level at a time, until it reaches the base members (where calc = 'n'). This may happen very quickly, if the dimension has very few levels, but could take a bit of extra time if it's a particularly deep dimension. (By which I mean many levels of hierarchy -- not some 1970's Pink Floyd musical reference.)
    You may speed things up by using a member property instead of the BAS(xyz). Flag all the base members using a specific property value, and that way the logic engine can pick up the complete list of members in the WHERE clause, in a single query.
    *DIM Account What=ACC_NOT_ASSIGNED; Where=[FloydProperty]="DarkSideOfTheMoon"; ...
    This adds some maitenance work in the dimension, which may be problematic if your admins are changing it regularly (and will cause problems if they forget to update this particular property).
    I can't predict how much time this will save you (maybe not much at all), but anyway I figure you'd want to know exactly what work you're asking the system to perform.
    Regards,
    Tim

  • Schedule Manager - Use of Selection Variable

    Hi all,
    My Question is "What is the use of Selection Variable settings in Schedule Manager screen?"
    I am not asking about defining selection variable in the variants to pick up values from TVARV table. My question is how I can make use of the Selection Variable(Extras->Settings->Selection Variable) in the Schedule Manager screen.
    The variable value column is ready for input in the Schedule Manager screen, is it possible to set the variant to pick up this value for the tasks in SCMA?
    Any help would be greatly appreciated.
    Thanks,
    Prabha

    Hi Prabha,
    After you have finished maintaining your variant, you would have to click on the "<b>Attributes</b>" button just below the title and maintain the description for your variant. Save this entry and press the back <b>green arrow</b>. Your save button would now be activated and you can save your settings now.
    I hope this helps.
    Do not forget to award the point please.
    Regards,
    Jacob

  • How to Create a Selection Variable for restricting the querry output

    Hi Gurus,
    I have created a query in query designer on a Multiprovider and the output of the query is a Formula in a structure which calculates a % value, the client is looking for entering a range of number during the query selection screen and the output should be restricted to the given selection values.
    Can any one tell me how i should create a selection variable that would take the input from the user during the query selection screen and then restrict the output to that value which user specified.
    Is there a need to write any customer exit or is there any alternative way to make the query work as the requirement is.
    I hope this explains my problem but if any questions please let me know so that i can give u specific information.
    Thanks,
    Nisha.

    Hi Nisha,
    Firstly, in order to restrict the query output by a key figure value, you will need to create a condition on that key figure. This is done in the query deisgner. Now when you are creating the condition you can also use user entry variables (formula variables with user entry) to let the users enter the value that they want to see.
    See here for more details:
    http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/content.htm
    Hope this helps...

  • Sender JDBC Adapter Select/Update Issue

    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

    Amit
    Did you ever get a solution to your question ?
       Sender JDBC Adapter Select/Update Issue  
    Posted: Apr 24, 2008 2:29 PM           Reply 
    Dear All,
    We have configured a Sender JDBC Adapter to Poll data from the DB2 tables. It is working fine and both the select and the update queries written are also getting properly executed and are changing the status of the flag from Y to N once read from database.
    In the communication channel ->
    select * from <table> where flag = 'N'.
    update <table> set flag = 'Y' where flag = 'N'.
    But I have one doubt after executing the select query some new data comes into the table of status flag 'N"., then will this unselected data will also be updated to 'Y' .
    The question is while we do a select and update from XI on the DB table and at the same time there is an insert happening into the table from the other end how will the adpater behave in this case.Will it result in missing of some records during next select/update transaction from XI..
    Your inputs will be appreciated.
    Regards
    Amit

  • Selection variable for dynamic selection in QE51n

    Hi All,
    I have a scenario were we have a repetitive Manufacturing and we create one insp. lot of origin 13 and keep creating insp. points for days, so my user wants the insp. points to be displayed only for the past 3 days based of the Date Insp. point identifier which is one of dynamic selection criteria under insp. points, I see with other transaction I can do selection variable on dates for dynamic selection fields but I cannot do that in QE51n, I can do the same in QE51 but not in QE51n, can some tell me if there is a OSS or other way to get this working.
    I appreciate your help.
    Thanks,

    Hi Srikant,
    I think you can meet the requirement in QE51N also.
    In the screen for QE51N :Result Recording Work list", Follow this Path,,,,,,,,,
    Edit--->Dynamic Selection.
    The system will pop-up new small window for "Dynamic selection for insp. lot and operation" here I there is one folder is available named "Inspection point " which is having the selection criteria "Inspection point",  double click on it and enter the desired values.
    Regards,
    Shyamal

  • Selection variable for next month in RFPERIOD_OPEN in closing cockpit

    Hi,
    we would like to use RFPERIOD_OPEN in the closing cockpit in order to open the next period on D-10 automatically. I would like to use the selection variables of the closing cockpit in the program variant in order to avoid unnecessary variant maintenance every month.
    Unfortunately I cannot find a variable for the next month. There is only SAP_FAST_CLOSE_PERIOD_P. Do you know if it is possible to base a calculation logic to derive the next period from SAP_FAST_CLOSE_PERIOD_P.
    Thanks!
    Kind regards,
    Mariya

    Thanks! I checked it, but the appearance of months and order is okay in T247.
    Any other ideas?
    I thought I read somewhere that this is a bug but can´t remember where I found that bug hint.

Maybe you are looking for