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

Similar Messages

  • 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

  • SAP BW Hiearchy Key Date Variables - Web Intelligence

    Hi,
    I have couple of issues / scenarios which are not working as expected. First, as I understand that hiearchy variables are supported by WebI.
    Scenario 1
    I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?
    Scenario 2.
    I change the hierarchy key date so it uses the key date of the query (so no longer a variable).
    As an example,I have employee "Employee X" assigned to "team A." This team moves from the Desktop team to the IT team on the 01.04.2011.
    IT
       A - 01.04.2011 -> 31.12.9999
    Desktop
       A - 01.01.2011 -> 31.03.2011
    I have a hiearchy variable so I can select a team as requied (using the object 0ORGUNIT) If I run the report using the key date 01.04.2011 the WebI report displays the current hierarchy nodes i.e.
    IT
       A
    and the data shows correctly,
    If I now re-run the report using the key date 01.03.2011 in the selection screen in the WebI report the following is still shown
    IT
       A
    If I select team A - no data is displayed. So it looks like via the use of the "Use query key date" for the hierarchy key date works but not in selection screen which is a problem.
    Is this a bug or am I doing something wrong?
    Thanks

    Hi,
    I have now got scenario 2 working - well I didnt do anything apart from run it InfoView and it is fine. But for some reason does not work in WebI Rich client - I will have a look into this furrher but am happy that it works in infoview. Sceanrio 1 is no working still I have run it in InfoView and get the error "A database error occured. The database error text is: Failed to execute MDX query. Reason: Specify a value for variable Hierarchy Key Date. (WIS 10901)" This hiearchy key date is th variable which I have created and assigend to the hiearchy so that a "hierarchy date" can be selected.
    +Scenario 1+
    +I have created a hiearchy key date variable within the report and made it optional. I run the report an no key date appears. It should appear. If I then make the hiearchy key date to mandatory I get a database error. Looks like there is a problem with hierarchy key date variables?+
    Any help is appreciated.
    Thanks.
    Edited by: Leo on Apr 25, 2011 4:20 PM

  • No data to retrieve in Query 1 for particular User

    Error: No data to retrieve in Query 1 for particular User
    Hello,
    We have webi report in 3.1 version which is running fine in Infoview for particular user.
    But when same report is send into Inbox of other user and if user try to run it in infoview it is giving below error.
    "No data to retrieve in Query 1"
    All the security and  group member level settings for both the user are exactly same. What could be the reason for this behaviour.
    Thanks

    Can you please check user is part of which group in enterprise receipts group.
    Also please check dynamic receipts tab of publication where data can be filtered
    Thanks,
    Swapnil

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

  • Making key date variable optional on selection screen

    Hi All,
    My query is based on time dependent data and I want user to specify key date during execution. I created variable for the same with setting "Optional". But still it asks user to enter key date everytime as if it is a mandatory.
    Is there anything i am missing out? Doesnt it take a current date as key date if no value is specified?
    Or is there a way to populate keydate variable by current date?
    I am on 2004s. Please let me know. Thanks in advance.
    -Abhijit

    Hi,
    You better take 2 variables in the query. One Variable is just for taking user entry and lets say it as VAR1. And VAR1 is optonal varible.
    Take the Other variable as Customer exit varible which is actually used for Key date. Heres in the code , you assign the value of VAR1 to this if it caontains a value ,otherwise you will assign sy-datum to Customer exit variable.
    With rgds,
    Anil Kumar Sharma. P

  • Date variable in a query

    Hi all,
    Currently I'm working on a query and I'd like to put in a date variable. It has to be a monthly report and I'm building the query for it based on the attribute "TaxDate" (with format DD-MM-YY) from the table "ORDR".
    For the query I'd like to build in a variable where the user can put in the month and year, for instance 01-04. I know how to put in a variable, but how can i solve this problem?
    I thank you in advance!
    Edited by: Chief on Mar 12, 2008 1:23 PM

    Chief,
    The parameters in a SQL Query accepting a date works the same way as you would enter a date on DocDate or DocDueDate field on the form.
    But, you will need to filter the input and take only the Month.
    So test this simple query
    SELECT T0.DocNum AS 'Document Number', T0.DocDate AS 'Posting Date' FROM  [dbo\].[ORDR\] T0  WHERE MONTH(T0.TaxDate) = MONTH('[%0\]')
    Suda

  • Key date not work in query on infoset

    hi experts,
    i have a infoset, which includes a time-dependent infoobject eg.0employee and an ods eg. ods1
    i set the ods time-dependent by setting from ods1-field1 to ods2-field2, and link the 0employee to ods1.
    then i create a query on the infoset and set a key date in the query, eg20061231.
    but the query result goes wrong, the key date doesn't work, the result shows below:
    employ1 1000.12.31-2008.01.01   $123 (this record is right,because i want the key date to be 20061232)
    employ1 2008.01.02-9999.12.31   $123 (but this record should not be displayed)
    i haven't set any field in infoset to be key date, just set the "from" and "to".
    pls help and thanks a lot!

    Hi
    Check the link.
    http://help.sap.com/saphelp_nw04/Helpdata/EN/11/723c3b35703079e10000000a114084/content.htm
    Chandu.

  • I would like to programatically set the "Date Unused" on X Scale formatting for time plots.

    I can use the X Scale formatting on the front panel, but when I change from time to decimal using property nodes the "date" keeps showing up. How can I turn the date feature off so I just see Time in HH:MMS format?

    Disregard. I found the answer. Set the XScale.Format value to 6 (relative Time). feed in total seconds from start of day to the Xo, The reciprocal of data frequency to DeltaX, and set the decimal resolution to 3. This results in a time tagged plot showing just time (no Date).

  • Key Date Variable in Webi

    Hi
    I have one webi report created on top of BW/ Bex Query and im using the KeyDate variable as my exchange rate conversion date. So, whenever i run the Webi Report it prompts a screen where i can key in the Date.
    Whenever i repoint the universe to the new unverse which is created on the same bex Query, the keydate variable isn't working anymore.
    Can anyone help me on this, i need to repoint several reports to this new universe.
    Regards,
    Siva

    Well, there are several versions in the old universe and just to avoid confusion i created a new universe.
    There is a warning message when i remap the webi report universe. this is the error message i got "An Internal Error Occured while calling 'ProcessDPcommands' API . (Error: ERR_WIS_30270)"

  • How to copy data from a Input query to real time Infocube

    Hi All, I need some help on IP related stuff. The details are as below:
    I am using two real time infocubes and one Multiprovider on them.
    First Infocube u2018PRODUCTu2019  with the following Objects:
    Product Group ,Product,Region ,Fiscal Year , Fiscal Year Varient ,0currency
    Gross Sales
    Second Infocube u2018C_PRODUCT u2018 with the following Objects:
    Product Group ,Product,Region ,Fiscal Year , Fiscal Year Varient ,0currency
    Gross Sales and Forecast Sales
    ( u2018Forecast Salesu2019 in the extra object in the second Infocube. Remaining objects are same in the both the cubes)
    First Infocube  u2018Productu2019 has data but the second cube does not have any data.
    I have created a Multiprovider ZMulti and in that I have included these two cubes. On this Multi Provider, I have created a Aggrigation Level(The details of the aggregation level is provided in the next page).
    On this Aggrigation level  I have built a Input Query by which I run the report.
    (In the Rows area, I have taken Product Group, Product, Region and Fical year.
    In the Key Figure section, I have taken Gross Sales and Forecast Sales( which is part of the second Infocube C_Product). These two Key Figures are made Input as Input ready. And the Query is Input ready query. In the Filter, I have taken Fiscal Year Variant. )
    Data available in the first cube and no data currently in the second cube. Now executed the report and report displayed information from the first cube.
    EX:
    Product     Product     Region          Year     Gross Sales     Forecast Sales
    Group
    PG01           Beer           North           2008            10000           u2026u2026u2026
    PG01           Beer          South          2008          20000           u2026u2026u2026
    PG01          Beer          East          2008          15000           u2026u2026u2026
    The second column is empty and there is no data for the Forecast sales Key Figure in the column.
    Things look OK till the above.
    Now based on the Gross Sales, I am entering  forecast Sales values and I need to save the entire record to the second cube.
    For this in the report, I have given the Forecast sales values in the second column and right clicked the mouse and form the menu which I got, selected the u2018SAVEu2019 Option to save the data. For some time, I can see u2018Processingu2019 message and later values at u2018Forecast Salesu2019 are disappearing.
    Data is not saving to the cube second cube.
    ====================================================
    Am I missing any thing?
    In the Query, Do I need to provide InfoProvider and restrict it to specific value?
    In the query, Do I need to include, 0currency object?
    Could you please guide me on this?
    =============================================
    Details of the Aggrigation level.
                I have created an Aggrigation Level ZAL_Prod  on MultiProvider.
                Selected all the objects and activated.
                In the Filter, I have taken 0Fiscal Year Variant  and saved it.

    Restrict Forecast sales to the Plan cube in the Query.
    that should fix it.

  • QUERY NEED FOR TIME DIFFERENCE

    Hi
    I need a query to find the difference between time
    for example
    5.00 hours - 0.30 minutes = 4.30 hours
    Thanks in Advance
    Adina

    Is this what you are looking for -
    1  select to_date('05:00', 'hh24:mi') - 0.5/24   --Subtract ½ Hr from time
      2* from dual
    SQL> /
    TO_DATE('05:
    200804010430
      1  select to_date('05:00', 'hh24:mi') - 3/24     --Subtract 3 Hrs from time
      2* from dual
    SQL> /
    TO_DATE('05:
    200804010200
      1  select to_date('05:30', 'hh24:mi') + 0.5/24   --Adds ½ Hr to the time
      2* from dual
    SQL> /
    TO_DATE('05:
    200804010600
      1  select to_date('20080416 00:02', 'yyyymmdd hh24:mi') - 0.5/24     --Subtract ½ Hr from time  2* from dual
    SQL> /
    TO_DATE('200
    200804152332Shailender Mehta

  • 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

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

  • Currency Translation on Key Date for AR Aging

    Need your valuable advice!
    I have created an AR Aging query including both Open and Cleared Items based on 0FIAR_C03_Q0005 standard query. However the requirement is to do currency translation to Group Currency (USD) on Key Date. This Key date is defaulted to today but the user can change this to go back in time and pull all the ARs as of that back dated key date.
    I was planning to create a currency translation type on M rate based on the Key Date Variable in RSCUR. However I am confused on which variable to base this currency translation. I have several key date variables in my query such as 0P_KEYD2 (based on Posting Date), 0P_KEYDT (based on Net Due Date) and 0P_KEYD3 (based on Clearing Date).
    Which Key Date Variable should I use in 'Time Reference from Variable' field in RSCUR? Would it be one of the 3 mentioned above or something else and why?
    Appreciate your valuable advice.
    Thanks,
    Al

    Hi,
    Yes I do want to use the Key date from the variable screen and I am using the standard 0FIAR_C03_Q005 with slight modification including currency translation.
    As I mentioned in my original post I have several key date variables in this query such as 0P_KEYD2 (based on Posting Date), 0P_KEYDT (based on Net Due Date) and 0P_KEYD3 (based on Clearing Date). My question is which one should I use if I want to base it on the specific key date variable from the variable screen? I need the specific Key Date variable technical name.
    Thanks,
    Al

Maybe you are looking for

  • CS2 won't save jpg since LR2.7 has been installed

    Hi folks, A few weeks ago I purchased LR 2.7 (and don't regret it for a minute!). Since then my CS2 has developed some funny habits, though, and won't save any  photos as jpg that have first been worked on in LR. The error I get is "Cannot save due t

  • SSO Connection Between Netweaver CE 7.2 and MDM 7.1

    Hi , I am trying to set up SSO connection between Netweaver CE 7.2 and MDM 7.1 systems in our landscape. But Iam not finding the MDM template in Netweaver CE to create the MDM system in System configuration tab of CE. Please help me on how to go abou

  • Great N200! Works after being washed in was

    It is a N200 256M player and was in the pocket of a pants with battery. I did not know that when I put those clothes into the washe and started a cotton washing process. I found out the player when I pulled those clothes out of the washer this mornin

  • Notebooks losing contact with printers

    I babysit a small group of Macs in my office's otherwise Windows work network. Two are Mac Pro (each Intel, quad 2.66). These are occasionally moved around and are connected to our network wirelessly with no problems. The two printers these Mac Pros

  • How can i recover my photos if i restored my phone but turned off icloud backup?

    how can i recover my photos if i restored my phone but turned off icloud backup?