What is "key date" in the query definition

Hello,
What is "key date" in the definition of query. Where does it come in picture and I see that it has value varaible?
Can someone explain?
Thanks

Hi K M,
This date is relevant for the time dependant master data if you are using it in your query.
http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/content.htm
You can use a variable in the key date and then the master data suuplied to the query (like nav attr) will be as per the date you have specified.
Hope this helps...

Similar Messages

  • Variable : Key date of the query

    Hello Everyone,
    I would like to share couple of points with you all during this cool holiday season.
    I need to use variable for a  time dependent hierarchy. I have a variable and selected that. Again I want to restrict this hierarchy by using variable for key date of the query.
    I can select a variable for the hierarchy. But I am not able to restrict the hierarchy.  When I choose a varaible for "key date of the query" system responed with an error message ' For characteristic 0Date, enter value in permitted format'. So I am not able to select a variable for "key date of the query " and restrict the hierarchy to choose a node.
    Please share your valuable inputs.
    Thanks in advance
    RJ

    Hello,
    what is the variable name that you are using to restrict the hierarchy date?
    Regards,
    Daniel

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

  • Characteristic "Master Data" setting in Query definition not working?

    Hi,
    I am having a problem with a query definition. (BI 7.0)
    The query comprises the following definition which relate to displaying Milestone dates for respective projects in a time series so the dates are populated in the correct column in a time series:
    Filter
    Project Definition = Fixed Single Project Definition
    Fiscal Year Variant = K4
    Project Profit Centre = Hierarchy Node
    Project Plant = Fixed Single Value
    Free Chars
    Network
    Network Activity
    Activity Element
    Rows
    Project Plant
    Project Profit Centre (With hierarchy)
    Project Definition
    Milestone Type  (Setting in characteristic to pick up Master Data)
    CSR Relevant    (Setting in characteristic to pick up Master Data)
          Structure
               Actual
               Scheduled
        (Actual:  Value type = Actual,  Origin = Manual ,Event = Start)
        (Scheduled:  Value type = Actual,  Origin = Scheduled ,Event = Start)
    Columns
    Key Figure structure of 12 key figures in a time series
    Selection
    Key Figure = Date
    Fiscal Year/Period = Current Fiscal Year / Period (SAP EXIT) (With Offset 1 to 12)
    FYI
    When I run the above it comes back correctly. However when I add "MILESTONE" (Characteristic setting (Posted Values) to the Query Definition immediately after the "Milestone Type" and before CSR it does not work it just is hanging for a considerable time.
    I am not using "Master Data" for the "Access Type for Result Vales" for the additional characteristic "MILESTONE" just "Posted Values".
    I was expecting that it would just show all Milestone types as per Master Data but just the Milestones that are posted for this result.
    I would appreciate a solution to this issue and an explanation to why it hangs when I add the "MILESTONE" characteristic to the definition as explained above.
    Thanks in advance..
    Stevo

    Hello there,
    Putting Milestone in the rows in the query definition is not being hang there (i.e., while creating and saving the query) right?
    It is stucked while executing the query isn't it so?
    That's because you have too many records to be desaggregated by milestone characteristic, and this is indepently of posted values in the characteristic settings.
    Putting milestone characteristic in the free characteristics will allow you to run the query, but desaggregate it (add it to the rows) will be to much information to read from your dataprovider (this is just a guess).
    If it is being stucked in query execution whike milestone is in the rows. Try this for example:
    Add milestone to the free chars. Execute the query. Filter milestone characteristic while still in the free rows and choose a value that you are pretty sure has the smallest records in the Dataprovider (could be for example value #). Than drill down milestone to the rows. You'll see that it can be executed without any problem.
    Diogo.

  • Another BW question about filter in the query definition

    Hi ,
    I have another question about filter in the query definition.
    <u>Question:</u>
    Which of the following objects can be filtered in the query definition?
    A. characteristic
    B. Key figure
    C. Structure
    D. Units
    E. Hierarchy
    My answer is A,B,D,E.
    The answer in the book is A,B,D
    Can anybody tell me which one is wrong?
    Thanks in advance,
    Liu Jia

    HI
    1.The answer could be A,B,D.you can not apply filters on hierarchies
    2.Whenever there is a change in Attribute data(like Location,Num etc...)that has to be reflected in all aggregates of the cube.Thsi can be done by running "ATTRIBUTE CHANGE RUN".
    sri

  • Display Current/System date in the Query

    Hi,
    Can any one tell me how i can display the current date or system date in Bex Query/report. I tried to use "0DAT" SAP exit as the key date in the "General Properties"... this helps me to execute query based on a Key date, but does not display the date. Can any one tell me, how I can use the current date in my query for some calculations and how I can display the current date.
    Thanks

    Hi Tanu
    If you want to see the query run date along witn query properties in the report output ( after you execute the report).. then go to "Layout".. (please check for Icons) >display text elements> all. ( This is if you are in BW 3.5).. if you are in BI 7.0, then simplay click on information and you will see all the details
    I see you are asking for some calcuation's also.. for that you should see what date fields you have in the backend cube/dsou2026
    Hope this helps
    Thanks
    Kalyan

  • Current date in the query

    Hi Experts,
    I want to display current date in the query in one of the time characterstic which i am including in the data target but i don't want to load anything in the data target but still i want to display the current date in the query only.
    how can i achieve this.
    thanks and regards

    Hi,
    It's a real fcahllenge or a non ABAPer.You have to create  a project in cmod and to assign enhancement RSR00002.
    In component EXIT_SAPMRSRU_001 you will find a couple of includes.
    Please add attached code. Replace  YOURCUBE by the name of your info provider and  YOURIO by the name of desired info object.
    *&  Include           ZXRSRTOP
    DATA: G_POS_YOURCUBE_ YOURIO TYPE I.   
    *&  Include           ZXRSRU02
    DATA: L_S_CHANM TYPE RRKE_S_CHANM.
    DATA: L_SUBRC1 TYPE SY-SUBRC. "execute only, if key figure really used
    CASE I_S_RKB1D-INFOCUBE.
      WHEN 'YOURCUBE'.
        L_S_CHANM-CHANM = 'YOURIO'.
        L_S_CHANM-MODE  = RRKE_C_MODE-NO_SELECTION.
        APPEND L_S_CHANM TO E_T_CHANM.
      ENDCASE.
    *&  Include           ZXRSRZZZ
    FORM USER_YOURCUBE USING I_S_RKB1D TYPE RSR_S_RKB1D
            CHANGING C_S_DATA  TYPE ANY.
    FIELD-SYMBOLS <L_YOURIO>.
    ASSIGN COMPONENT G_POS_YOURCUBE_YOURIO  OF STRUCTURE C_S_DATA TO  <L_YOURIO >.
    <L_YOURIO >.= SY-DATUM.
    ENDFRORM.
    Hope it works.
    Good Luck
    Joe

  • Hide 1ROWCOUNT in the query definition

    Hu Gurus,
    i'm facing the following problem and need your help.
    when i hide 1ROWCOUNT in the query definition the records which do not have values desapeare from the query when i excute the query.
    any advise to solve this.
    check this for more infos aboiut what i'm trying to do:
    http://help.sap.com/saphelp_sem40bw/helpdata/en/3a/d1603d13b5c72ee10000000a114084/content.htm
    thank you
    regards,
    Younes

    I hope you not made any settings like Suppress Zero values in Query properties

  • Hi , How to make a calculated kf as local in the query definition

    Hi ,
    How to make a calculated kf as local in the query definition
    Regards,
    Ravi.

    Hi,
    Calculate KF consists of Basic, restrict and other calculated kFs stored in Metadata repository.
    Calculate KF is a replicate of Formula and acts as Global.
    Calculate KF acts as Global--you can use Globally.
    Formula as Local--you can use as local to Query.
    you can create the Calculate KF as follow:
    Goto Query Designer>Open/Create Query>Select Key Figures Mode on left side of Query>Select that KF node> right click Select Calculate Keyfigure.
    then one popup window dispays, so you make the calculations based on Basic KF, Restirct Kf and Formule. then save it.
    Regards,
    Suman.

  • How to display language key (0LANGU) in the query for BW report

    Hi,
    Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.

    hi,
    check if the infoobject is kept as lang dependent or not  for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
    regards
    laksh

  • I am aware that the iPod Touch 5g has no official date yet, on the site it only says: Available to ship: October. But, does anyone know what a possible, date for the iPod to be released? :)

    I am aware that the iPod Touch 5g has no official date yet, on the site it only says: Available to ship: October. But, does anyone know what a possible, date for the iPod to be released? :)

    Well, I recently checked apple.com, and the "pre-order" button has been replaced with the "buy now" button. This is a very good sign that the iPods will begin to ship soon! There is still no exact date, but I expect that they will ship within the next 3 days. You should get an email when they have shipped.
    Take care!
    -59Ballons

  • Subtraction of dates in the query.

    Hi Experts, I am new here and need some help please.
    I want to subtract 2 different dates in the query. They are defined as characteristics. Can somebody help me with this please?
    Thanks

    Hi,
    As said in the previous post, Create 2 formula variables on these 2 dates. and use them in the calculation.
    Go to rows right click on structure Select New formula. Popup will come, select the formula varibles onleft below. Right click New variable slect the processing type as Replacement path. and reference char as these 2 characteristics.
    Khaja

  • Do not want key date in the selection screen in query

    Hi,
    I have made a query for Customer Ageing. I do not want a selection screen- however, i still get a prompt for the 'Key Date'.
    Can someone suggest me a workaround?
    Many Thanks,
    Deepinder

    Hi Deepinder,
    Though Key date is not there in the filter area, it is being used in any restrcited key figures in your report. Check all the RKFs used in your report. Also the ones indirectly involved in calculations. May be you are calculating diff between key date and posting date and then used this difference for further calculations.
    Either you remove those RKFs if not needed, or in the property of your formula variable uncheck ready for input.
    Best Wishes,
    Mayank

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

  • Display difference of a Date field and today's date in the query

    hi experts,
    I have a query which has a date field called 'Effective Date.'
    I just need to a add a column in the query that shows me the diffenrence between 'Effective Date' and the date the query is run (key date).
    Do i need a custom exit to accomplish this?
    The new column can either display the number days elapsed from 'Effective Date' to the key date or it can also display Number of Years/ Months / days.
    Any ideas?
    Thanks,

    Check this if it helps:
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html

Maybe you are looking for

  • IPhoto wont open library after upgrade

    I just updated to iLife 11 and iPhoto will not open. I get the following message: You can't open your current photo library using this version of iPhoto. This library must be upgraded by the iPhoto Library Upgrader application before you can use it w

  • Server app : random errors in configuration applied with configuration profile

    When I verify the informations contained in the user configuration profile with both the profile manager and textmate everything is ok. When i installs the configuration profile on a computer there are errors in the configuration of Mail app the emai

  • Simple Date Format

    Hi, I have an entity object with some attributes, one of them is called "CREATED_ON", which i have specified as a history column (created on). I have specified a format type of Simple Date in my Control hint and a format of dd-MM-yyyy. I then created

  • Blue screen on Ipad

    Hello Team, I am using ipad mini retina display and after the update of ios8, the ipad will automatically restart showing a Blue screen. Also, this thing is very irritating. Yes, instead of releasing new updates please fix this issue or keep the down

  • Epson prints too dark from LR on color managed MacBook Pro?

    Hi all, I have a newish MacBook Pro, calibrated with Spyder2, and printing to an Epson 2200. The prints are too dark, and don't really come close to matching the screen in LR. I've brought the images into PS2 for soft proofing, but the prints are sti