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.

Similar Messages

  • How to make key date of query as transcation date in cube

    I am facing an issues in displaying the transaction data with time dependent master data.
    I want to set the key date of the query to go against the transaction date and diplay the respective master data.
    I read in other posts,
    that i cant use the user exit variable, because the exit is executed only once before the query run.
    The fllowing is the report i want to achive,
    customer|customer_grp-|date-|--|sale
    100-----|-sa|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    in the above scenario, customer_grp for cusotmer 100 is sa from jan - mar and
    customer_grp for cusotmer 100 is ic from apr - dec
    I have customer_grp as time dependent attribute of customer. when i execute the report with key date as ,nov 1st
    it displays as,
    customer|customer_grp-|date-|--|sale
    100-----|-ic|jan 1|--- 15$
    100-----|-ic|oct 1|--- 32$
    if key date is jan 1st it displays as,
    customer|customer_grp----|date-|--|sale
    100--|-sa|jan 1|--- 15$
    100--|-sa|oct 1|--- 32$
    let me know whether it is possible to achive this type of report
    -thanks in advance
    - points will be awarded for  inputs

    Hello,
    I have the same kind of requirement.
    Is it possible to assign a Date field from the cube to Keydate of the query so that the time-dep attribute value is properly displayed based on InvoiceDate of each record, not based on today(query keydate by default)?
    Otherway i can think of is to add a Char/KF to cube and insert the value using a query on Masterdata in update rules. How far this approach is recommended?
    Thanks in advance,
    vamsi.

  • Function Module - Calculate 5 weeks lookup based on -7 increments from the Key Date

    Hi Guys,
    I am looking to create a variable on Fiscal Period/Year, that automatically populates the variable with the previous 5 weeks based on -7 increments from the key date , when the user runs the query .
    For Example: If key date is 03/11/2014 need to get previous 5 weeks 03/04/2014, 02/25/2014, 02/18/2014, 02/11/2014, 02/04/2014. mm/dd/yyyy.
    Is there any Function Module available/ please provide the logic code - can anyone help?
    Thanks,
    Suresh Narayan

    Hi suresh,
    Please once try with this approach,
    Create a variable with variable represents :  multiple input value, Processing type : customer exit ; variable is ready for input.
    and write the below code :
    if i_step = 1.
    data : fdate type d ,
            wa1 like line of e_t_range,
           n1 type i.
    n1 = 1.
    if n1 <= 5.
    wa1-opt = 'EQ'.
    wa1-sign = 'I'.
    wa1-low = fdate.
    append wa1 to e_t_range.
    fdate = fdate - 7.
    endif.
    endif.
    Hope you got it,

  • What is the use of the key date in filters in IP?

    Hi all,
    can anybody tell me what the key date on the filter in the planning modeler is good for? It seems to be always overwritten by either the key date in the query or the one set for the infocube in the planning modeler. Even if I don't set a key date for the latter two, the infocube date seems to be taken (I get the current day as query key date).
    Or to put it this way: Where do I set my key date when I try to use time-dependent navigation attributes in a planning query? The infocube key date seems to take precedence, but I haven't found a way to derive my key date from the input-ready planning year variable in the query (exit or replacement path won't work).
    Regards,
    Tilman

    Hi Indu,
    many thanks already for your replies.
    Do I understand you correctly that the key date on the filter will only have an effect when used in conjunction with planning functions (not queries)? I was going to use one filter both.
    I turns out that my problem is rather how BI evalutates the key dates in the query/infocube/filter, and while I might not have the problem with planning functions, I do have it once I try to use key dates on an input-ready query. Since my key date needs to be derived from the planning year variable on-the-fly, only an exit variable used on the query's key date seems to be able to to this (variables in the infocube's key date get evaluated before the query's variable screen is displayed) . Unfortunately, it gets overwritten by whatever is set as key date in the infocube, and the filter's key date does not seem to matter at all.
    Further, this seems to be a very IP-specific problem. Not only that normal reporting does only offer one key date (query), if you "manage" to break characteristic relations of your planning cube in a way that input-readiness is no longer provided, things work JUST AS DESIRED....The query's key date takes precedence, and time-dependent navigational attributes get displayed with their correct value.
    This can't be right. I do not think that the case of having to use time-dependent navigational attributes in a planning query is rare, so I might have to open a ticket...
    Regards,
    Tilman

  • Regarding the KEY DATE OF PRODUCTION VERSION

    Dear Guru's
    Client facing a issue like :
    They have master recipe which was created on say example: 01.01.2001 and they had changed "activity type" activity time" later on date for particular Production version P001.  & obviously Production version Valid from date is on  01.01.2001.
    But if he check the key date of particular version(P001), it shows the same date as 01.01.2001 & it will show only the recipe which was created on 01.01.2001.
    It is not showing any other changes which we did after 01.01.2001
    While transferring to APO, system is picking the Production version (P001) based on the key date 01.01.2001 & they are not getting the changes in that recipe while creating the order
    How can we resolve this issue Plz help.
    Thanks & Regards,
    Arvind S

    Thanks Krishnan,
    But when I createa  new formular variable, I have lots of options for varaibles.
    So, in the formula screen.
    Formula variables->New Formula variable - > Edit
    Then
    Processing by ->Replacement path ->ref characteristic date
    Then, on the replacement path tab:
    Replace variable with ->variable.
    Click on the box to search available variables to replace, and I have lots of options e.g.
    Current fiscal year (single value entry, mandatory)
    Approver
    Base budget
    etc.
    but not "key date of the query". It is not there?
    Any more help gratefully appreciated.

  • F-20 (No due items exist at the key date)

    Dear Experts,
    I had done the configured Bill of Exchange for customer.
    While testing when I am going to reverse the liability through f-20 an error is coming "No due items exist at the key date".
    GLs and dates are mentioned properly.
    Also please note I am using special GL "S" and not "W" in OBYN.
    Please help.
    Regards
    Uttam.

    Hi, Uttam
    Please check if you have the field 'B/exch.payment period' filled in with transaction OB86. If you check the F1 help for this field, these days are added to the due date. The bills of exchange are selected when the Due date is lower or equal to the date that is defined in the 'Due by' field of transaction F-20.
    I hope this helps.
    M Trein

  • Key date in query designer

    Hi All,
    I have a requirements to read data based on t.code S_AHR_61016403 by using Trip Begins On date and filter by receipt date therefore I’m using DS 0FI_TV_01 and able to get data into Cube level correctly.
    In Query designer, I have to use trip beginning date and filter by receipt date then put in MTD and YTD bucket based on receipt date.
    For example, trip beginning date 01.07.2014 – 31.07.2014, could get 100 records which has different months data with total amount1500/- but based on receipt date 01.07.2014 – 31.07.2014 there are only 75 records with total amount 1000/-  I only interested total value 1000/-
    I’m thinking to create a Key Date in query designer to read beginning date range and receipt date range. 
    Can anybody give how to achieve this.
    regards
    Naani

    0FI_TV_01 is a transaction datasource. Hence your Trip begin/Enddates are transactional data. You cannot use them as part of Key date in Query designer.
    One more thing, you can't use ranges in Key date. It works only with single date.
    you have to either create two variables in query filter. or restrict your KF with both variables.

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

  • Question about the key of loops

    I am reading the logic getting started book
    and they say there are two type of loops
    audio files and software instruments.
    in the book it says:
    "the advantage of apple loop audio files is their ability to automatically match the tempo and key of a logic project"
    is that possible an audio file being able to change key to the key of your project?? how about if the audio loop is a guitar strum strumming a C chord, it is able to switch the strum to a D chord, F chord, etc...?? how does that work??
    sorry if this is a stupid question
    I can understand how the software instrument loops would be able to change to match your project because they are midi and the midi notes can just be transposed to whatever Key, chord, etc....
    please explain if you know i will really appreciate it
    Thanks

    wow that is crazy i can't believe it is able to transpose audio loops (not midi) to different keys. especially stuff with more then one note playing at the same time like guitar strum.
    I know how to set up the key in logic and change it etc... i was really wondering how it is capable of doing this?? does it have some kind of melodyne or autotune built in to it?? i never heard of software being able to do this with pre recorded audio that plays more than one note at a time.
    Message was edited by: smurffy

  • How to display the request date in query

    Hi,
    I want to display the No. of request ID and request date in the query, but how could I get the  request date?
    Can anyone give me some suggestion?
    Thanks
    Huaiyuan

    Hi,
    By "request date" you mean the loading process "request date" ?
    If so, as Diogo said, add an infoObject in your data provider for this, but you won't be able to collapse anything if that's a cube.
    Thanks
    Matthieu

  • No due items exist at the key dat Message no. F5345

    Hi Gurus
    When I try to reverse this item BOE (because payment is received) through the T-Code F-20 ,SAP gives me the below error message (u201CNo due items exist at the key dateu201D Message no. F5345) I have checked the customer line item and document is due for 31.01.20111 and  Due by date: 04.03.2011(entered F-20). So what could be th ereason fo rthis error?
    Thnaks
    Sanju

    Hi,
    If the OB86 settings are changed after the BoE document is posted then current OB86 settings are not applicable. OB86 settings available at the time of posting BoE documents are considered.
    By transaction OB86, You can define the life period of the bill of exchange.
    In your case the "Life of a bill of exchange" has the value 3 that will be added to the bill of exchange due date.
    Now if you run F-20 the field 'due by' will be 3 days after due date.
    regards
    Waman

  • How can i get more info about the sent data in RTP?

    Hello.
    I'm working with the examples AVTransmitt2 and AV Receive2 and i want to get more information about the data that it is being sent to de receiver side. In AVTrasmitt2 i only see a calling to processor.start();. How could i know each packet that AvTransmit2 sends to the other side. I want info like the size of the data, the quality, format, etc..

    Hi!
    As I mentioned above. RTPSocketAdapter has two inner classes, SockOutputStream and SockInputStream.
    SockOutputStream have a write method which is called when RTP data is sent over the NET. SockInputStream have a read method which is called when RTP data is received.
    If you for instance want to know exactly what is sent you can parse the byte array that comes into write.
    Like this:
    * An inner class to implement an OutputDataStream based on UDP sockets.
    class SockOutputStream implements OutputDataStream {
         DatagramSocket sock;
         InetAddress addr;
         int port;
         boolean isRTCP;
         public SockOutputStream(DatagramSocket sock, InetAddress addr, int port, boolean isRTCP) {
              this.sock = sock;
              this.addr = addr;
              this.port = port;
         public int write(byte data[], int offset, int len) {
              if(isRTCP){
                   parseAndPrintRTCPData(data);               
              }else{
                   parseAndPrintRTPData(data);
              try {
                   sock.send(new DatagramPacket(data, offset, len, addr, port));
              } catch (Exception e) {
                   return -1;
              if(debug){
                   System.out.println(debugName+": written "+len+" bytes to address:port: "+addr+":"+port);
              return len;
    private void parseAndPrintRTPData(byte[] data) {
         // part of header, there still left SSRC and CSRC:s
         byte[] rtpHeader = new byte[8];
         System.arraycopy(data, 0, rtpHeader, 0, rtpHeader.length);
         ByteBuffer buffer = ByteBuffer.wrap(rtpHeader);
         int word = buffer.getInt();
         // version
         int v = word >>> 30;
         System.out.println("version: "+v);
         // padding
         int p = (word & 0x20000000) >>> 29;
         System.out.println("padding: "+p);
         // extension
         int x = (word & 0x10000000) >>> 28;
         System.out.println("extension: "+x);
         // CSRC count
         int cc = (word & 0x0F000000) >>> 24;
         System.out.println("CSRC: "+cc);
         // marker
         int m = (word & 0x00800000) >>> 23;
         System.out.println("marker: "+m);
         // payload type
         int pt = (word & 0x00700000) >>> 16;
         System.out.println("payload type: "+pt);
         // sequence number
         int seqNbr = (word & 0x0000FFFF);
         System.out.println("sequence number: "+seqNbr);
         // timestamp
         int timestamp = buffer.getInt();
         System.out.println("timestamp: "+timestamp);
    private void parseAndPrintRTCPData(byte[] data) {
         // this only works when the RTCP packet is a Sender report (SR).
         // All RTCP packets are compound packets with a SR or Receiver report (RR) packet first.
         // part of header, there is still the report blocks (see RFC 3550).
         byte[] rtcpHeader = new byte[28];
         System.arraycopy(data, 0, rtcpHeader, 0, rtcpHeader.length);
         ByteBuffer buffer = ByteBuffer.wrap(rtcpHeader);
         int word = buffer.getInt();
         // version
         int v = word >>> 30;
         System.out.println("version: "+v);
         // padding
         int p = (word & 0x20000000) >>> 29;
         System.out.println("padding: "+p);
         // reception report count
         int rc = (word & 0x0F000000) >>> 24;
         System.out.println("reception report count: "+rc);
         // payload type, which is 200 in this case (SR=200)
         int pt = (0x00FF0000 & word) >>> 16;
         System.out.println("payload type: "+pt);
         // length
         int length = (word & 0x0000FFFF);
         System.out.println("length: "+length);
         // SSRC of sender
         int ssrc = buffer.getInt();
         System.out.println("SSRC: "+ssrc);
         // NTP timestamp
         long ntp_timestamp = buffer.getLong();
         System.out.println("NTP timestamp: "+ntp_timestamp);
         // RTP timestamp
         int rtp_timestamp = buffer.getInt();
         System.out.println("RTP timestamp: "+rtp_timestamp);
         // sender's packet count
         int nbrOfSentPackets = buffer.getInt();
         System.out.println("sender's packet count: "+nbrOfSentPackets);
         // sender's octet count
         int nbrOfSentBytes = buffer.getInt();
         System.out.println("sender's octet count: "+nbrOfSentBytes);
    }I added a boolean isRTCP to the constructor so to know what sort of data is sent.
    Hope this clarifies things.

  • How to get the card unique  key(KMC) and the key data

    I want to know how to get them above in the applet.
    If can't, how to do?
    Edited by: 893695 on 2011-10-28 上午5:03

    But during personalization, where are the the application level key(derived three key: enc, mac, dek) come from?They are generated by whatever is doing the personalisation. If they are application level they are stored in the application. If they are ISD/SSD keys they are not accessible to the applet.
    the custom command "put key"?Either custom or ISO7816-4 or GlobalPlatform. Once again it depends on where the keys come from or are stored.
    Cheers.
    Shane

  • Query about the forum date

    When I browse this forum as a guest, today's date appears as "Mar 2" (and that was yesterday). When I log in, however, the date is given as (the correct) March 3.
    What's up with that?

    When you're browsing as a guest, click on Guest Settings and change the time zone. This information is stored as a browser cookie and not on the server; therefore, it will need to be repeated for each cookie database instance you use. The settings of an account holder are stored on the server.
    (41313)

  • Using informations about the XML Data Set in *.js

    Dear Users,
    I hope I am able to explane my problem correctly:
    I wonna create a fade effect with various pictures. They don't should blend to 0 - I found a js script that lets the pictures fade from one to the other like this: www.sv-guenther.de
    What this script needs is the number of pictures. I put the picture links into an XML file. Everything works as long as write the number or length of the picture children manually.
    I tried to read out the length by using the ds_RowCount option. This works fine as long as I use this in HTML context like this:
    <div spry:region="ds1" ><script type="text/javascript">  alert({ds_RowCount});</script>{ds_RowCount}</div>
    Both works: The alert shows the number 21 AND you can read the "21" and not {ds_RowCount}.
    okay, but how do I use the "21" integer in a script block in the head area? like this:
    <head>
    <script type="text/javascript">
    var x = {ds_RowCount};
    </script>
    </head>
    I tried it in different ways: var x = '{ds_RowCount}'; or spry:....
    As you can see: I am afraid my scripting knowledge is not the best - like my English is...
    Sorry and thank you very much for your help! - any kind of help
    best regards from Bonn, Germany
    Thorsten

    Dear Ben,
    if you would see me, you wouldn't laugh anymore, you would cry -) - but you are in DownUnder - this would look like I am laughing for you - wouldn't it?
    Thank yoou so much for remembering me. I have been reading your post about this topic (blend a picture). Once somebody asked the same (or almost the same) like I did yesterday. But the difference is, that if you blend a text to 0 it is big diference blending a picture - in my mind. I would love to reduce the opacity from one picture when the next picture is already behind it. So it looks like a smooth fade in fade out, without displaying the background.
    I found a quite good code example for this:HERE
    To make it as easy as possible for me I tried to include the number of the pictures straight into the js code. in the meantime I found the correct code option for this: What I was looking for was: getData() and if I combine it with an observer to wait for the "onPostLoad" everything works fine. I am ashamed that I asked first and then lokked into the SPRY API - Sorry!
    Everything works fine? No not yet - unfourtunally. So I am pleased to get the chance to ask a second time:
    Let's say I have more than one picture and more than one topic. So my XML looks like this:
    <leistungen>
    <inhalte name="Bauvorhaben">
         <inhalt name="Bautechnische Beratung">
         <texte>
              <text>Beurteilung der Baubeschreibung, Beratung zur Ausführungsplanung</text>
         </texte>
         <bilder>
              <bild></bild>
         </bilder>
         </inhalt>
         <inhalt name="Baubegleitende Qualitätsüberwachung">
         <texte>
              <text>Stichprobenhafte Kontrollen der Bauausführung zur Gewährleistung der Einhaltung anerkannter Regeln der Bautechnik und vertraglicher Vereinbarungen</text>
         </texte>
         <bilder>
              <bild>3867</bild>
         </bilder>
         </inhalt>
         <inhalt name="Baumängel">
         <texte>
              <text>Feststellung und Beurteilung von Baumängeln, Ursachenermittlung,Sanierungsempfehlung, Schätzung der Instandsetzungskosten</text>
         </texte>
         <bilder>
              <bild>2857</bild>
              <bild>3612</bild>
         </bilder>
         </inhalt>
         <inhalt name="Beweissicherung">
         <texte>
              <text>Dokumentation von  Schäden an  Bestandsgebäuden im Einflußbereich von Bauvorhaben, Beurteilung von Schadensansprüchen</text>
              <text>Bauzustandsdokumentation, Leistungsfeststellung</text>
         </texte>
         <bilder>
              <bild>1176</bild>
              <bild>154</bild>
         </bilder>
         </inhalt>
         <inhalt name="Abnahme von Bauleistungen / Abnahmebegleitung">
         <texte>
              <text>Einfamilienhäuser</text>
              <text>Mehrfamilienhäuser</text>
              <text>Wohnanlagen</text>
              <text>Bürogebäude</text>
         </texte>
         <bilder>
              <bild>2485</bild>
              <bild>3485</bild>
              <bild>3481</bild>
              <bild>3460</bild>
         </bilder>
         </inhalt>
         <inhalt name="Schiedsgutachten">
         <texte>
              <text>Rechtsverbindliche Beurteilung von Bauprozessen und Gewerken zur Konfliktvermeidung und -lösung</text>
         </texte>
         <bilder>
              <bild>7080</bild>
         </bilder>
         </inhalt>
    </inhalte>
    <inhalte name="Bestandsgebäude">
         <inhalt name="Beweissicherung">
         <texte>
              <text>Dokumentation von  Schäden an  Bestandsgebäuden im Einflußbereich von Neubauten, Beurteilung von Schadensansprüchen</text>          
         </texte>
         <bilder>
              <bild>1176</bild>          
         </bilder>
         </inhalt>
         <inhalt name="Gebäudeschäden">
         <texte>
              <text>Feststellung und Beurteilung von Gebäudeschäden, Ursachenermittlung, Sanierungsempfehlung, Kostenschätzung</text>
              <text>Bautechnische Beratung beim Kauf einer Bestandsimmobilie</text>
         </texte>
         <bilder>
              <bild>2108</bild>
              <bild>4004</bild>
              <bild>1387</bild>
              <bild>3488</bild>
         </bilder>
         </inhalt>
    </inhalte>
    </leistungen>
    First I create an new object
    var ds1 = new Spry.Data.XMLDataSet("xml/leistungen.xml", "leistungen/inhalte/inhalt/texte");
    So the  dsR =  ds1.getData() gives me a dsR.length = 8 - correct - because this XML has got 8 <texte> nodes. But some of these <texte> nodes have more than one <text> node. If I asked for the contet of the fifth node dsR[4]["text"] it gives me back "Bürogebäude" = the last sub node content. I wished I could catch the first, second, third as well. Just like a spry:repeat - do you understand?
    I figured out that it doesn't help to extend the string like
    dsR[4][0]["text"] or dsR[4][0][0].
    As far as I understood the Spry framework flattens the XML like a table. So I thought that there might be just in this raw, in the actual column just another object (not a string)  to be found.This object  I could touch or open with square brackets. Like
    dsR[0]["texte"][0]
    - but: I can't!
    But this would mean, that straight in js I could always only catch the first node value??? I must be wrong!!!  But I don't know were!
    Dear Ben, Dear Guys out there - is this to difficult what I am looking for or am I blind?
    thank you so much for helping me out here - again!

Maybe you are looking for

  • Need help to recover my windows 7 home premium

    Hi, Hope someone can help me by providing me Windows 7 home premium (64bit) installer so that i can use again my product key on my Lenovo IdeaPAd Z560 since my hard disk and i replaced it with new disk. Appreciated if someone can help me. Thanks, Set

  • Integration of CR2008 .RPT report files within Paradox 10

    Hello, Our goal is to produce richer reports than those allowed by the ( 2002 ) Paradox report engine. We are evaluating CR2008 with the trial version plus other commercial report generator. No problem with the conectivity to BDE 5.1 tables and the r

  • How to find failed spatial  index

    hi friends i want to query to find failed spatial index in the schema so please give me the query i think it is "staus" column so please paste the query and help me out thanks

  • Error Loading Material Master Data

    Hi All, When I try to load ZMATERIAL in BW development. I am getting the below error. I am on BI 7.0. seems like bad data, but how to fix it?? any thoughts?? in the details TAB of the monitor, I  get a red error message under 'Transfer (IDocs and TRF

  • Problem Inserting Movies

    Okay, so when you click on the 'Media' button and you get the tabs for audio, photos, and movies, some of my movies that I have in my 'Movies' folder are displayed there, and others are not. How can I get the other ones to be displayed? Thanks.