Read (a part of) a hierarchy at key date

Hi,
we use function module RSNDI_SHIE_STRUCTURE_GET3 to read a orgunit and all subordinated orgunits from a hierarchy. Our problem is that this function module only read orgunits, which end date is exactly the same how the transmitted "end date parameter" of function module.
Example:
An orgunit 4711 (and its subordinated orgunits) has got two time slices:
orgunit |  date from  |  date to
4711   | 01.01.2000| 31.12.2005
4711   | 01.01.2006| 31.12.9999
Now we want to read the hierarchy, which is valid at 31.12.2009. The result is an empty list.
If we use 31.12.2005, we would retrieve the first dataset.
If we use 31.12.9999, we would retrieve the second dataset.
Do you know a function module or a class, which can help us to solve this problem?
Which functions a "normal" query uses to read hierarchy at at a special key date?
Best regards,
Christoph

Hi,
I still don't think we understand each other.
If I run FBL5N I have option to select:
- Items that are or were open at the key date are displayed on one date
- All items posted on the posting date specified fromde date1 to date2.
- Items that were cleared at the clearing date specified
I would like a list of all items from option 1 (Items that are or were open at the key date are displayed on one date) so items that are or were STILL open and not yet cleared on one date, but not just for one date but for more days.
If I use your suggestion I get what items opened or cleared on one day not how many items were still open on particular day.
So a list of how many opened items were there at the day, and notjust items that were opened on that day but also all previous items that were not yet cleared at that day.

Similar Messages

  • Org unit Hierarchy structure  at Key date

    Hello Friends,
    We have an issue with  displaying HR Org unit hierarchy structure  between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From  and Calendar month To
    The BI Report is  to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee  A had a sick absence of 5 days  in  the month 04.2011  in the Org unit X .  The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011  to 04.2011 , the employee A is showing  absence   under Correct Org unit ie X with correct Org structure .
    When  we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under  hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is  the latest Org unit .
    When I deactivate the Org unit hierarchy  and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X  and 4 days under Not assigned with  Correct Org unit hier structure  when we run the Report from 04.2011 to 05..2011  .
    We have a user Exit variable  for  the Key date  in the Bex Report  which  seems to be taking only one date at any time .
    Is  there any way to get the correct figures under Org unit hier structure where  employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi,
    You can try adding two more attributes to Org Unit as "Calender month from" and "Calender month to".
    In these attributes maintain the validity period for the corresponding master data.
    For example, in your case you can maintain the master data as:
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    And in report use variables for Calender month from" and "Calender month to".
    Hence, when user executes the report with selection as:
    Calender month from" = 04.2011
    "Calender month to"    =  05.2011
    The data will be read from master data based on these selections along with key date and report will show output as expected.
    Employee | Org Unit | Calender month from |Calender month to | sick absence
    A | X | 4.2011| 4.2011 | 5 days
    A |    | 5.2011 | 05.2011 | 4 days
    Hope this works for you.
    Regards,
    Geetanjali

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

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • In pages, how do you view two copies of a doc simultaneously, so you can read one part while working on another?

    Is there a way to view two copies of a doc simultaneously, so I can read one part
    while I am working on another part?

    @fruhulda,
    Peter,
    In Mountain Lion, you can choose a [.pages,.doc,.docx] document and request that it open directly in Preview via the Open with... menu. This includes Word 97/2000/XP .doc files. You cannot do this in Snow Leopard.
    The Quick Look functionality on Mountain Lion (also by that name on Snow Leopard), allows one to select one or more documents in the Finder, and display them with a tap from the spacebar. On Mountain Lion, it will display the previous file types, and offer to open them in the default application. On Mountain Lion, Quick Look also offers a Sharing panel for e-mail, messages, and AirDrop. The e-mail option makes a proper attachment in Apple Mail.
    The Snow Leopard version of Quick Look will also open an OpenOffice .odt file, even when that application is not installed. A feature improvement over the Snow Leopard version, the Mountain Lion Quick Look offers to open the displayed document in the default application that would ordinarily open it with a double-click. Therefore, on Mountain Lion, with OpenOffice installed (default for .doc/x files on my machine), Quick Look opens the .doc/x and .odt files and offers to open them in OpenOffice.
    Quick Look can open other file formats including .rtf, graphics, etc.
    Peter's reference to Cover Flow is an alternative Finder view of a filesystem hierarchy. The front-most, selected document viewed in the Finder Cover Flow view, can be opened via the Quick Look button on the Finder toolbar.

  • Changing the dimension hierarchy level keys in RPD online mode caused issue

    Hi,
    We tried to correct the dimension hierarchy level keys and remove prefered drill path settings in the business model layer in RPD in online mode. However this caused all the reports and dashboards based off of this subject area to show incorrect, and/or restricted data. The physical query generated by the answers requests were also incorrect.
    Even restarting the server and presentation services could not resolve the issue. Can someone please help us to understand what could have caused this issue?
    Thanks in advance

    Hi,
    I am not sure why the existing reports throw an error when I change the RPD dimension hierarchy level keys. Does anyone know how I resolve this issue.
    This is urgent. Any help will be most appreciated.
    Thanks in advance.

  • Hierarchy Key Date

    I've noticed something strange in our system.
    We have queries defined using a time-dependent hierarchy for which we specified a key date different from the query date.
    Now I cannot change it because the selection options for key date are greyed-out. Even creating a query from scratch with the hierarchy results in greyed-out key-date options on the hierarchy. It defaults to the key-date of the query. Can this be a change in behaviour after upgrade to 3.5?
    Regards,
    Eric

    Hi,
    I’ve made an additional search for OSS notes. Found a lot, concerned mainly on incorrect hierarchy or query key date.
    Found also very strange note, # 674220 “Date entry not valid for time-dependent hierarchy structure”:
    <b>Symptom
    For characteristics with time-dependent hierarchy structures, the
    hierarchy validity date is always the key date of the query
    Other terms
    Query, time-dependent hierarchy structures
    Reason and Prerequisites
    Programm Error
    Solution
    The date radio group buttons available for Key date
    has no meaning, when hierarchy structure is time-dependent. The validity
    date for hierarchy will always be taken as the key date of the query.
    in this case. Hence, kindly ignore any other date entered in this field.
    A corrective action will be taken in the future release to stop
    entering any other date.</b>
    It might be understood that hierarchy key date should always be as a query key date. Though the note was applicable to earlier releases but it could be read as that in future releases this option for hierarchy key date is going to be disabled.
    I’ve searched BW for 3.5 SP notes. Found nothing about this option to be disabled. Moreover, in my system this option is enabled. So, if there is a bug, I couldn’t find anything usefull.
    Documentation says that this option is to be enabled for time-dependent hierarchies only. So, if your situation is not caused by a bug, then something might be wrong with your hierarchies.  Please look directly in SE16 at your H, I, J & K hierarchies tables, try to find something unusual. Maybe DATEFROM or DATETO values are missing in H table. Maybe the hierarchy is not active or corrupt. Or something. 
    Should you have found nothing, the last resort is to raise OSS note to SAP.
    Best regards,
    Eugene
    Message was edited by: Eugene Khusainov

  • Defining hierarchy level keys

    Hi,
    What is the best practice regarding the level keys (used in the hierarchy level for dimensions)?
    I had a problem with the numbers shown because the level key contained values with a mix of letters and numbers. If the level key only contains letters or numbers it worked as it should, but once there was a mix like this
    0101
    X010
    the numbers for the balance sheet came out wrong (combined with a level based measure though).
    To me it seems like the level keys ALLWAYS should be in Numbers but this is not stated anywhere. Only by experience. I have searched the forum for this but could not find any exact hit.

    Hi,
    I am not sure why the existing reports throw an error when I change the RPD dimension hierarchy level keys. Does anyone know how I resolve this issue.
    This is urgent. Any help will be most appreciated.
    Thanks in advance.

  • Org unit Hierarchy structure between two  Key date s

    Hello Friends,
    We have an issue with displaying HR Org unit hierarchy structure between two calendar months.
    The BI Report has a selection parameter to select Org unit hierarchy , Calendar month From and Calendar month To
    The BI Report is to display the no.of sick absence days for employees in a chosen Org unit hier.
    Employee A had a sick absence of 5 days in the month 04.2011 in the Org unit X . The same employee had a sick absence of 4 days in 05.2011.The Org unit X then delimit in 05.2011 , the Org unit X is no longer in Org structure from 05.2011.
    When we run the report for 04.2011 to 04.2011 , the employee A is showing absence under Correct Org unit ie X with correct Org structure .
    When we run the Report for 05.2011 to 05.2011 , the employee A is showing absence under hierarchy Org unit Not assigned which is OK .
    But the issue is when we run the Report from 04.2011 to 05.2011 , The employee A absence days 9 (5 +4 ) showing under Not assigned Org unit hierarchy structure which is the latest Org unit .
    When I deactivate the Org unit hierarchy and choose tech name of Org unit , It is showing correct Org unit key
    But The user would like to see 5 days under org unit X and 4 days under Not assigned with Correct Org unit hier structure when we run the Report from 04.2011 to 05..2011 .
    We have a user Exit variable for the Key date in the Bex Report which seems to be taking only one date at any time .
    Is there any way to get the correct figures under Org unit hier structure where employee had absence in when we put range of calendar months on a selection screen ?
    Any advice appreciated.
    Thanks.

    Hi
    Yes, we can display the same by using time dependent hierachy's i.e. your org is converted to time dependent so that respective employee shows with respective of time.
    Regards
    Jagadeesh.M

  • Adobe Reader X closes when I press any key in the keyboard.

    Hello,
    I have recently updated my windows from xp to 7 and installed the latest version of adobe reader. Then I encountered a problem, after some time using my PC, Adobe Reader would close whenever I touched any key in my keyboard, but not on my mouse, so I could only view pdf files by moving around using the mouse, and loss funcionalities like searching for a word in the document, or saving it with a different name. The only way to solve this problem was to restart my PC, and then everything would be allright for a while, then the problem happened again. I uninstalled and installed Adobe again, however this problem persists, so I'm seeking help here.
    There is another thread with the same problem here http://forums.adobe.com/thread/901383, however it's dead and no solution is presented.
    Any help would be great, regards from Chle.

    I answer myself, solution is here http://forums.adobe.com/message/3806894#3806894, it took me a while to find it though.

  • Reading a part of a file

    Hello, do you know if this is possible (doesn't matter what language..):
    If I have a big file which is much larger that my memory + swap space, say 20gb. Is it possible to say something like read the part from  the 1132312 byte to the 2132312 byte into memory. And than in memory having the option to do normal things like it was a normal file like reading it from the begin to then end byte by byte. Also is it possible to say something like replace the part from the 12312312 byte to the 22312312 byte with this that I have in memory?
    I only know of things like read write and append but as far as I know this is only possible with small files.
    Thanks in advance,
    David

    leeghoofd wrote:I only know of things like read write and append but as far as I know this is only possible with small files.
    In C and most lower level languages, opening a file requires something in the area of 2-3 pointers.  That's it.  The file handle and what's called a "file pointer" which contains the location.  You can use open(), seek(), and read() to get where you want are read the amount you want.

  • How to read from an internal table with multiple key fields.

    Hi All!!
    I want to read from an internal table having keys as k1,k2,k3.
    How can I use read statement to read an entry having this as the key fields.
    Thanks in adavance..
    Prabhas Jha

    hi there
    use:
    sort itab by K1 K2 K3.
    read table itab into wa with key K1 = value 1
                                                  K2 = value2
                                                  K3 = value 3
                                                   BINARY SEARCH.
    where:
    itab is ur internal table
    wa is the work area with the same line type as the itab
    cheers
    shivika

  • Select key date of time-dependent hierarchy before select a hierarchy node

    Hello experts!
    I have a Web Application which has a selection on 0ORGUNIT (organizational unit). The selection is on hierarchy nodes and the hierarchy is time-dependent.
    Because of the time-dependency I have to give a key date for the hierarchy. But I want to select the key date at runtime/execution of the query and additionally I want to select the hierarchy node and other selection criterias.
    Maybe there is a solution to get all this in one pop-up or maybe in two or another solution how I can implement this requirement.
    Thanks for help!
    Peter

    Hey!
    You don't have to use the same presentation-hierarchy like  the selection-hierarchy is which you use for the variable. While presentation-hierarchy always has a key-date, the selection-hierarchy has none. So you see all values for selection but just this which are valid for the presentation-hierarchy are selected. And there is a warning which you can supress over RSRT.
    This solution works for our problem, maybe not for yours, don't know.
    Best regards,
    Peter

  • Exception: non-read-only mapping defined for the primary key field

    Hello.
    I'm new to Oracle and I created Java EE Web Project.
    And I created entities from tableA, tableB, tableC from my database.
    tableA has foreign key to tableB and has unidirectional Many-to-One relationship. tableC has two primary keys and one of these is foreign key to primary key in tableA. tableC also has unidirection Many-to-One relationship to tableA.
    Then I created session bean and data control from it, in design window, created read-only table from tableA.
    And I selected columns in tableA and also in tableB.
    I ran the application and saw the following exception in log window.
    Local Exception Stack:
    Exception [EclipseLink-46] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [tableC.tableA_ID].
    Descriptor: RelationalDescriptor(mypack.tableC --> [DatabaseTable(tableC)])
    tableA_ID is a primary key in tableA.
    How can I solve this error?
    Please help me.
    Edited by: 900471 on 2011. 12. 3 오전 5:32
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:33
    Edited by: 900471 on 2011. 12. 3 오전 5:34

    There are not enough details to be sure since you have not provided the mappings. From just the error, it looks like you are using the tableC.tableA_ID field as the foreign key in the ManyToOne relationship to A, but have marked it as insertable=false, writeable=false, meaning that it cannot be updated or used for inserts.
    Either make it writable (set the settings to true), or add another basic mapping/attribute in the entity for TableC that maps to the field which you can use to set when you insert a new tableC entity. A simple example is available at
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/2.0/DerivedIdentifiers
    Best Regards,
    Chris

  • Bw time dependent hierarchy authorization in Hr - Key date problem - 0orgunit

    Hello Gurus,
    I'm facing a problem with the 0Orgunit hierarchy authorization.
    In the Rsecadmin screen we set the hierarchy authorization for 0orgunit characteristic, before selecting the hierarchy node, we enter the key date.
    I tried many cases, but neither of the key dates gives the correct results in the report. (Todays date, 01.01.1900, 31.12.9999 etc..)
    In the report the key date variable is generated by RSTHJTMAINT transaction. I guess, this is creating a problem with the authorization key date.
    A similar problem is told in the following link as well:
    http://scn.sap.com/thread/1437951
    I spend some hours, and tried many possibilities (validity period etc.), but I could'nt get it worked.
    I'm not sure if I had this error before 7.31 update.
    With this opportunity, I want to thank you every one in the Sdn community. It helps a lot for resolving our issues and sharing the knowledge.
    Thanks a lot.
    Regards.

    Hi Norbert,
    Can you check that the SAP note 1301644 has been applied in your system.
    Best Regards,
    Des Gallagher

Maybe you are looking for