Key date properties popup

HI all
when I refresh the webI report, a pop up with name key date properties is showing up, and once i enter the date value init then it is taking me to prompt window.
I just wonder why this popup is showing up, in Bex query properties I don't see any variable in the key date assigned.
My second question is I need to show the prompt values in the header of the report. I can show the one which is in prompt window by using UserResponse() function, but if I use the same UserResponse() function for the key date variable it is not showing up in the report.
Thanks

@Pumpactionshotgun:
very thank you for the reply, I tried the function can you please help me with syntax too because I tried this
=DataProviderKeyDate("Calender Date(Parameter,Mandatory)")
It's not taking it  and saying dataproviderkeydate() using invalid data type, but I feel it is correct.
Thanks

Similar Messages

  • Key Date variable; Interval in query properties for Time Dep. Masterdata

    Hi,
    I've been searching on the forum, and I think I know the answer already, but still I'd like
    to ask you all whether it's possible to create a Key Date Interval variable to be used in the query properties.
    As far as I can see you can only report by a single key date used in the query properties field for time dependant masterdata, but my customer has asked me to investigate the possibility to enter a date range.
    As all masterdata is time dependant I don't see how this would work, but if someone can shine a light on this maybe there is a solution available?
    Thanks for your help.
    M.

    Hi marc
    I understand your problem.
    I had an idea for a workaround.
    If you can create master data compounded with Valid from and Valid to both of these characteristics , how the query is computing
    the keyfigures.
    Every change in valid from or valid to is unique for the system in this case.
    Thanks
    N.Ganesh

  • About the Key date in Query Properties

    Hi,
    With regard to the Key date in Query Properties, As I understood from the previous postings that it is used to filter out the data for Time dependent Master data object. But once we set up this key date, isn't it applicable to all InfoObjects in Query. For example, if I give  Key date as 20/05/2007, can't we get data beyond 20/05/2007 to all the objects in Query when I have Employee Group as Time dependent Attribute. And if we create any variable for Key date under calday, isn't it applicable to all objects. How is it applicable to only Employee Group.

    Re: Key Date in Query Properties -can it be dynamic ?
    Say i have a query that has a user input date range interval. Say the query is supposed to display some key figures restricted on a Time Dependent Characteristic attribute for the date range.
    So, in the Query Properties - i really DONT want to set the Key Date to a fixed date ( today or a user input date) but instead i want to set it to the system date that the BW olap processor is going to use while selecting each and every row from the cube while processing the date range.
    for example while processing the date range - for each one of the dates it hits upon a fact table record and it has to fetch the attribute from the time dependent master data table using that date and if this attribute is 'x' then aggregate the key figure if not go to the next one...
    do i make sense ? let me know if the above doesn't. I will try to explain my Q again. Want to know if BW lets you do that.
    thanks
    Arun Pond.

  • Key date for a query

    Dear All,
    I have created a customer exit variable on key date of a query.
    With this input variable i am first asking user to input one particular date say he enters 31.12.2010 then i am trying to add 1 more day to it and making it 01.01.2011.
    I have put a break point in the code but it does not stop the processing there.. report executes directly taking the first user input.
    I want to add 1 more day to the user entered date and this modifiied date should be the input date for key date field.
    Below is my code.
      WHEN 'ZCAL_DAY_EXT'.
        IF I_STEP = 2. "after the popup
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
          WHERE VNAM = 'ZCAL_DAY_EXT'.
            CLEAR L_S_RANGE.
          ENDLOOP.
          DATA: v_temp like sy-datum.
          v_temp = loc_var_range-low.
          v_temp = v_temp + 1.
          L_S_RANGE-LOW = v_temp.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
        ENDIF.
    Do let me know where am i going wrong? Or is it we cannot use customer exit with Key date.
    Thanks & Regards,
    Anup
    Edited by: Anup Chaudhari on Aug 2, 2011 7:16 AM

    Hi Anup,
    Basically I_STEP = 1 is used for populating the default value which will be shown on selection screen and I_STEP = 2 is the step in which you does the processing on variable values which are entered on selection screen.
    I am surprised that your internal table is empty, actually it is supposed to contain all the variable values which are entered in I_STEP = 1.
    Can you try to add some more variables along with the current variable and check whether their value is coming in the internal table or not?
    Finally what you can try is get the user input date in one variable and then create another customer exit variable in which you will calculate the new value and use this variable in Key date, the problem might be that we are trying to modify the same variable, actually it should not be the problem but I have no clue what is happening and you can just try this alternative.
    Regards,
    Durgesh.

  • Display key date of hierarchy in the query

    Hello,
    we have a query that uses a hierarchy with the time depending structure. The key date of this hierarchy has been restricted with a variable and can be entered by user in the query selection screen.
    Is there any way to display this key date variable in the query result ? Otherwise the users do not see the key date they had selected before.
    Thanks in advance !
    Regards
    Igor

    Hi Chandamita,
    Thank you so much for your quick response. I'm not sure if it will fix the issue because it has the same properties for other object which we do not encounter the issue.
    Thank you!

  • How to use Key Date in query

    Imagine an invoice was created for a customer on the 1st of January 2008 for £1000
    On the 1st of Feb, he paid $300, owing $700
    On the 1st of Mar, he paid $450, owing $250
    On the 1st of Apr, he paid $250.
    If I run an AR report today the 10th of Aug, I would see he owes nothing. What I want to do is to run the report today based on the 2nd of March and see a debt of £250. I dont want to use the posting date in the selection criteria henceI think this is the case when you use a key date but I’m not sure how to use this in the query properties of BI7. What Characteristic do I need to specify as time dependant? Is there anything else I should consider?

    hi,
    Key Date setting is for the 'time dependent' master data.
    Lets say u have a Characteristic MATERIAL with a time dependent attribute MATERIAL GROUP as follows.
    MATERIAL FROM TO MATERIAL GROUP
    ABD 01/01/1995 12/31/2003 X
    ABD 01/01/2004 12/31/9999 Y
    Depending on what you have for the Keydate, the Material group is selected.
    If your key date is, ex, 06/12/2001 there material group is X. Or if key date is 02/15/2005, material group is Y.
    If you do not enter any value for keydate, system automatically assumes today' date.
    hope it helps..

  • Passing of Key Date in RRI

    Hi Folks,
    This problem is related to passing of Key Date value in RRI. We have the Basic(Source) Report in one server & Detail(Target) Report in another server. Now my requirement is to pass Key Date (Query --> Properties) to Target query. I think only variable values & selection will be passed to the target query, So I had a variable in Source report which takes input from user (or default value goes). Now how can this be received by the Key date of the Target query. Iam getting "#" in the Key date of Target query. Mind you once again both queries are on different servers.
    Thanks & regards,
    Manoj.

    Found the answer, thanks to another thread:
    Function RRS_VAR_VALUE_FROM_MEMORY_GET with I_VNAM equal to the key date variable returns the value of the key date.
    DP

  • Current User & Key Date in Web Reports

    Hi,
    I want to default the current user name & current date (could be different from the varaible key date) in the header or footer of the web report. I tried text elements in the web template where we can default only the variable values entered by the user, or general text which include above two texts along with many other details which are not required by me. I have also tried text variable in the query properties in vein. Could someone give some tips, please.
    I have a formula variable "Current Calender Day". How I can create a text variable from this ?
    Thanks & regards,
    Sheeja.
    PS: I'm a functional guy, so kindly explain in detail if any EXit coding is involved.

    Hi Sheeja,
    If ur looking this option for a web template then please follow below steps for current user name & current date :
    1. Create a Text web item present under the Miscelaneous Tab of web items.
    2. In its properties tab Tick 'Display Text only'.
    3. Select General Text elements For text binding option (Present in Data binding)
    In general text Elements option:
    Make a binding with a data provider.
    For user name select - Current user
    For Current date - Select Last Refresh options.
    Try this, hope this will  help to u.
    Thanks !

  • Query key Date Variable not working

    Hi Folks -
         I am coming across an issue with which some of you might be able to help me. I have a time dependent master data object which I've marked as a datatarget and have created a report on it. I wanted to give the user an option of specifying the key date and hence have created a variable in the query properties for the key date. This variable is of the type SINGLE VALUE, MANDATORY, USER ENTRY and CAN BE CHANGED DURING QUERY NAVIGATION.
         Now my issue is that even though I enter a specific key date, the query is not pulling the records according to the key date. But instead if I use the option of specifying a particular date (instead of a variable in query properties), the query is running fine!!! Can someone please let me know why this is happening? Why is the query working fine when I mention a single constant value but not when I use a variable? Thanks for your help in advance.

    hi
    This clearly shows your variable is not working fine
    So in RSRT transaction debug using your variable
    See in every step whether the variable is working properly
    Assign points if useful
    Thanks
    N Ganesh

  • Variable For Query Key Date

    Hi All,
    I am using time dependent master data, i want to count number of employees on particular key date for diffferent Orgunits. So i created variable in the query properties for dynamic date selection .I also have other variable - Calendar month.
    If the user enters particular  Calendar Day (21.03.2008), then the report should show the total number of employees for that particular day.
    If the user chooses Cal Year/month  then the report should show the total number of employees for that time frame (12.2007-12.2008).
    When i enter Cal Year/month and execute the system not allowing to execute the report. It says Calender Day is mandatory.
    How can i bypass the calenderday when i choose calyear/month.
    Variable for Key date :
    Char - Calender Day
    Mandatory
    Ready for Input
    Regards
    A.Vasister

    Hi,
    For this work you have to create another 2 variable.
    1. Make your both user entry variables as optional.
    2. Create another 2 variables processing type as user exit.
    3. In the CMOD program, identify which variable contains data.
       - If the user entered month, then in the user exit of Calender day's from date should be
         first day of the month parameter and to    date should be the last date of the month parameter.
       - If the user entered date, then pass corresponding month&year value of the date to calmonth variable.
    Let me know the position.
    Vivek

  • Key date question

    How do i make the current date in a query the key date so that the current date the query is opened is the key date?

    Hi,
    Go to Query Properties(from Query designer)-->use  variable '0DAT' current calender day (SAP Exit) in Key date entry.
    Thanks

  • Key Date of the aggregate

    Hi Experts,
    I have created an aggregate that contains a time-dependent component, and also assigned the aggregate a key date 'Variable' (End of prior week).
    I have defined, checked and activated 'ZEPRWK' in the program ZXRSRU01. Currently the result is set to be sunday
    (Call function Week_Get_First_day
    ....todate= W_First_day_of_week-1)
    Then I created a query with this variable.
    After I have checked, activated and filled the aggregate, I notice that under the properties for the Aggregate the key date is not populated, it just reads 00/00/0000. Is there anything that i'm missing to do!
    Any ideas and suggestions are most welcome.
    Thank you,
    Tia

    Try changing W_WEEKNR(6) TYPE N to W_WEEKNR TYPE KWEEK.
    Tried it out with the following code and it is working fine:
    DATA: W_WEEKNR TYPE KWEEK,
    CURDATE LIKE SY-DATUM,
    TODATE LIKE SY-DATUM,
    W_FIRST_DAY_OF_WEEK LIKE SY-DATUM,
    L_S_RANGE TYPE RSR_S_RANGESID.
    CASE I_VNAM.
    WHEN 'ZEPRWK'.
    CURDATE = SY-DATUM.
    CLEAR L_S_RANGE.
    break-point.
    CALL FUNCTION 'DATE_GET_WEEK'
    EXPORTING
    DATE = CURDATE
    IMPORTING
    WEEK = W_WEEKNR
    EXCEPTIONS
    DATE_INVALID = 1.
    CALL FUNCTION 'WEEK_GET_FIRST_DAY'
    EXPORTING
    WEEK = W_WEEKNR
    IMPORTING
    DATE = W_FIRST_DAY_OF_WEEK
    EXCEPTIONS
    WEEK_INVALID = 1.
    TODATE = W_FIRST_DAY_OF_WEEK - 1.
    L_S_RANGE-LOW = TODATE.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    APPEND L_S_RANGE to E_T_RANGE.
    Changes over your code is the assignment of sy-datum to CURDATE and the weeknumber. Can;t think of anything else. The code seems fine.
    Did you activate the Aggregate today?
    Give it a try.

  • Bex query-KEY date for time dependent objects

    Hi
    I have one infoobject called 0customer that has one time dependent attribute .called status. I would know how the system works in the following senario for the a given key date(which in bex properties).
    question 1)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20081101      X
    can the data in the infoobject be overlapped? is the 3 rd record is  valid in the above example - as months(11&12of2008)  overlapping with second record? ? pls advise
    question 2)
    customer todate          fromdate    status
    1            20071231     20070101     Y
    1            20081231     20080101      N
    1            20091231     20090101      X
    If the keydate is 20080201 which record will it return?would it return the record that has status 'N'?
    what does the keydate is compared against? is it with from date or todate or between fromdate and todate? does the query return only one customer record for a given customer when it runs in the query?
    Please advise.
    Thanks
    Vennela

    1) Normally you cannot activate the data with this constellation. If you have inconsistent master data you can repair with transaction RSRV.
    2) The system returns N for key data 20080201.
    Best regards
    Dirk
    Edited by: Dirk Herzog on Nov 19, 2008 1:16 PM

  • Key date variable only works for i_step = 1?

    Hi, I'm working with the query designer. I need to change the key date of a query before and after the user input.
    Using the debugging on transaction rsrt I found out that key date of the query only works for i_step = 1.
    With i_step = 2 I never get this variable.
    After the popup I can only change the date manually.
    I couldn't find any documentation about this specific subject.
    Can anyone confirm/ help?
    Thanks,
    Cristina

    you can go thru the Article at [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d09d4588-3832-2c10-e185-f778d9dbea85?quicklink=index&overridelayout=true]
    with I_STEP = 1
    the enhancement call takes place before varaible entry. so this can be used to populate variables with default values
    with I_STEP = 2
    called after the processing of the variable pop-up.

  • Key Date?  Time-Dependent Master Data

    I need a report on Employee Hires in a given interval (between 1/1/2008 - 12/31/2008). Therefore, I pass the time interval to the query.  However, I need master data as of the Hire Date of the Employee.  What type of variable should I pass in the query properties (as key date) so that it reads employee hire date during query runtime?
    Just FYI...Hire Date is a characteristic and displays on the report.  Different employees could be hired on different days in a given time interval.
    Best Regards,
    -Sonny
    Edited by: Sonny Mohnalkar on Jun 9, 2009 7:23 AM
    Edited by: Sonny Mohnalkar on Jun 9, 2009 7:24 AM

    Hi,
         For query key date you can only specify a single date( fixed value or single entry variable).
    So, your requirement cannot be acheived using key-date functionality as there might be different hire dates for different employees. The only way to acheive this is to identify the master data for each employee based on his/her hire date at query runtime using the concept of virtual characteristics. This is a bit complex and will affect the performance of the query. There is a SAP How-to-Document available which can help you. Also you can refer to the following link for some more information on implementation of virtual characteristics.
    Link: [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e051fda8-71a9-2a10-ac9e-8d17414a8c8c]
    On the other hand, your requirement can be easily realized in the case where you run the query only for a single date. In this case, you need to use a single entry variable instead of Interval variable. And use the same variable for Key date.
    Hope this helps you.
    Thanks ,
    Nithin reddy.

Maybe you are looking for

  • Problem with Query Print Layout

    Hi, i have this type of problem. I have create a query with 5 fields,i have saved it, and ,after, i have created a report on this query (Query Print Layout). So, i have manipulated the report based on the preferences of the customer. After this opera

  • PDF memory leak

    opening the following URL and scrolling down to the graphic in section 4.3 causes Safari 4 to consume all RAM and then crash. http://delivery.acm.org/10.1145/1370000/1364038/p1498-park.pdf?key1=1364038&key2 =4311574421&coll=GUIDE&dl=GUIDE&CFID=389845

  • White/Grey screen

    My ibook works fine. That is the hard drive boots up and I can hear the system work. When I Plug it into an external display I can see the desktop and all the applications work. I do, however cannot see anything but a white/grey screen on the built-i

  • Where can i download database server 8.1.5?

    Where can i download database server 8.1.5? All download links to 8.x looks dead.

  • Sometimes I Can't open Properties page for a Web Role Project

    Occasionally when I attempt to open the properties for a Web Role project in Visual Studio by right clicking on the project name in the Roles folder I get "Object reference not set to an instance of an object". It doesn't happen very often and I have