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

Similar Messages

  • How to Select in a query considering key date of time-dependent characteris

    Hi, Everybody
    I have a Infoobject called CONTROL. It can be tested during the year once, twice, three times,six times  or can be not Tested.
    The Characteristic that contain the number of  test that the Control will be tested is time dependent.
    For example, one control can have the charcteristic to test twice in a year. Then 31/10/2007 it can turn "not test".
    I can have these records:
    CONTROL   VALID INIT       VALID END     TEST  
       XYZ         01/01/2007       31/01/2007       TWICE
       XYZ         01/02/2007       28/02/2007       TWICE
       XYZ         01/03/2007       31/03/2007       TWICE
       XYZ         01/04/2007       31/10/2007       TWICE
       XYZ         01/11/2007       31/12/9999       NO TEST
    I have a query that I should select the number of controls different of  "NO TEST" During the time selected.
    For example, if I select Interval Time = 01/01/2007 to 31/10/2007, This record should be Counted, because it was to be tested during this period.
    If I have selected Interval time = 01/11/2007 to 31/12/2007, it should not be selected because in this period, this control doesn´t able to be tested.
    If I put filter restricting NO TEST, the query should check the time of validity, but when I do that, BW doesn´t accept that because I can´t restrict by Validate Date.
    Anybody already had a problem like that?
    I´d like suggestions to solve that or comments that could explain that.
    Thanks a lot,
    Elisabeth
    Edited by: Elisabeth Umebara on Feb 2, 2008 12:21 AM

    Hi, everybody.
    I already solved this problem. Thanks a lot.
    For this I selected the controls in a exit variable that should be selected in from table time-dependent  from infoobject. This solution ran just for BWD and BWQ, because there was a lot of data in BWP.
    Then I made a first query that has selected the controls. After that, in the original query I defined the substitution path relating with the first query.
    Thanks again,
    Elisabeth

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

  • WAD 3.5 - Pass a date to Hierarchical Filter Selection Key Date

    I'm working in WAD 3.5, with 3.5 queries.  I currently have a Hierarchical Filter Selection on Org Unit using a query with no Key Date set, so as to pull the most current version of the hierarchy.  This filter selection is then applied to several charts and tables below. 
    I need the web app to initially display this current version, but also allow the user to select a date, which triggers a requery of the Hierarchical Filter Selection data provider, passing the date selection to the key date of the data provider query.  1) how do I pass the date (currently from a drop down) to the key date of the other query, and 2) how do I force a requery of the Hierarchical Filter Selection?
    The problem we are attempting to address is that if Org Unit A contained Org Units 1, 2, and 3 at the end of 2007, but only 1 and 2 today, the Hierarchical Filter Selection will not show #3, thus not allowing the user to drill down to it.  If they can choose the version/point in time of the hierarchy, they will then have the ability to drill down on the older Org Units.
    Thanks!
    Anna
    Edited by: Anna Kamrath on Feb 6, 2009 8:52 AM

    Our solution was to modify the user exit variables and store the values in a MEMORY ID and restore from there.

  • Selection Screen - Date and Time

    Hi,
    I have given a selection screen where the user needs to key in the input in the following format
    dd.mm.yyyy hh:mm:ss.
    Reason is that the database fetching these elements accepts only in this criteria.
    Now as they look into automating this program, they would want to automatically take the current system date and time - 24 hours .
    How do I achieve this in the above format? If this is not possible, let me know if i can make the selection screen with normal sap date format and convert it to the above format on passing to the select statement.
    Regards
    Sam

    Hi Sam,
    See this. Is this your requirement.
    With this we are able to get Current time-stamp to selection parameter.
    REPORT ZTEST.
    DATA: L_TS TYPE TZNTSTMPS,
           L_TS_C TYPE CHAR14.
    PARAMETERS:
    P_TMSTMP TYPE TMSTMP OBLIGATORY MEMORY ID TEST.
    INITIALIZATION.
       GET TIME STAMP FIELD L_TS.
       MOVE L_TS TO L_TS_C.
       SET PARAMETER ID  'TEST' FIELD L_TS_C.
    The output is
    Jogeswara Rao K

  • SQL Command to select MAX(date) & Max(time)

    My am having a really hard time getting a sql command to return data with the max(date) & max(time) combination. I think I need a sub query but can not figure it out. I have looked all over the internet but still don't understand it. Below is my command which returns the max date & max time but they are not from the same row of data. Please help.
    SELECT  "labor"."order-no", "labor"."oper-no", MAX("labor"."end-date") AS myDate, Max("labor"."end-time") AS myTime
    FROM   "E940LIVE"."PUB"."tm-log" "labor"
    WHERE  "labor"."order-no"='73153-bc' AND "labor"."company"='01'
    GROUP BY  "labor"."order-no", "labor"."oper-no"

    Progress does not support the DATEADD function. Waht if I forget the number is time and look at it just as a number. Here is my data and what I have tried (again I don't understand the multiple select concept yet).
    Data
    oper-no   end-date    end-time
      20      2/2/2010     41,975
      30      2/3/2010     45,906
      30      2/16/2010    32,941
      40      2/4/2010     46,099
      40      2/4/2010     50,227
      40      2/4/2010     59,466
      40      2/4/2010     62,024
      40      2/16/2010    43,838
      60      2/17/2010    32,679
      90      2/25/2010    35,270
    SQL Command
    SELECT a."oper-no", a."end-time", a."end-date"
    FROM   "E940LIVE"."PUB"."tm-log" a, (SELECT "end-time", max("end-date") AS max_date FROM "E940LIVE"."PUB"."tm-log" WHERE  "order-no"='73153-bc' AND "company"='01' GROUP BY "end-date", "end-time") b
    WHERE  a."end-time" = b."end-time" AND a."end-date" = b.max_date AND a."order-no"='73153-bc' AND a."company"='01'
    Result
    oper-no   end-date     end-time
      20      2/2/2010      41,975
      30      2/3/2010      45,906
      40      2/4/2010      50,227
      40      2/4/2010      46,099
      40      2/4/2010      59,466
      40      2/4/2010      62,024
      30      2/16/2010     32,941
      40      2/16/2010     43,838
      60      2/17/2010     32,679
      90      2/25/2010     35,270
    Desired Result
    oper-no   end-date    end-time
      20      2/2/2010     41,975
      30      2/16/2010    32,941
      40      2/16/2010    43,838
      60      2/17/2010    32,679
      90      2/25/2010    35,270
    Thanks for any and all help!
    Wayne

  • IOS 8.1 will not let me make calls via car Bluetooth system , i can only receive calls , making calls i have to select handsfree manually each time , no problem before , 2013 mitsubishi outlander

    iOS 8.1 will not let me make calls via car Bluetooth system , i can only receive calls , making calls i have to select handsfree manually each time ,  i had no problem before iOS 8 , 2013 mitsubishi outlander , I'm based in South Africa and support of any type really ***** here , would really appreciate any help , i have unpaired , deleted , repaired and so forth , nothing works

    Hi
    i have a honda crv, 9 month old. I have before an iphone 5 s, it was perfect./ios7.1.2/
    after soft update 8.0 disconected from hands free system, every 5-6 second, over 2-3 second back into connection automatically.
    After i changed into iphone 6 / only 8.X/
    It was an update. i think 8.0.2 for this problem, that this update was bad.
    This problem is by lexus, VW, and another 2 Honda CRV, 1 civic / 2024 /
    ONLY 8.0 or higher soft
    this time 8.1.2
    Today was 1 minutes call, by calling was 4-5 disconnect episodes
    i probe with another iphone 5s/7.1.2/, motorola x 2014, galaxy s5 - there are perfectly
    IT'S a  SOFTWARE PROBLEM!!!!

  • Deleting data form time dependent master data

    Hi,
    I have a characterstic say 0ZEMP s time dependent master dataom it.
    But when I am trying to delete some data from it it is giving a mesage saying"data is used in /BI0/QZEMP canu2019t be deleted.
    How to delete data in this case?
    Thanks

    Thank you for quick reply.
    I am trying to delete data ttributes which are not time dependent so how can I do that?
    Can you pelase tell me the procedure?
    Suppose if I delete all the transactional data will that be okay.
    "In SLG1 it is giving wrror mssg saying data is used in /BI0/ZEMP, and canu2019t be deleted"
    Thanks
    Edited by: abhi ram on Jul 18, 2008 8:05 PM

  • Show master data attribute time dependent for pervious period

    hi
    I would to know how  get in report values of pervious period of attribute which is time dependent
    (like person)

    Hi,
    refer below threads might be helpful
    [http://help.sap.com/saphelp_nw04/helpdata/en/13/c3e7379899d06fe10000009b38f8cf/content.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/80/1a634be07211d2acb80000e829fbfe/content.htm]
    Thanks

  • ALV - selecting the data based on layout set in selection screen

    Hi,
    I have an ALV report (Custom). I want to give layout selection at selection screen, so the user can create/select/manage layout at the time of selection screen and only these columns will be displayed in the final output. Instead user execute the report for all column and at the end user select the layout. I want this layout at the selection screen level like the standard reports.
    Thanks,

    You can do the following
    When the user clicks on download
    1.Use FM REUSE_ALV_LIST_LAYOUT_INFO_GET / REUSE_ALV_GRID_LAYOUT_INFO_GET to get the Fieldcat (since due to selection of layout on sel screen some columns are disabled. For the columns which have been disabled the resultant Fieldcat from the above FMs would have NO_OUT = 'X'. Delete columns from Fieldcat itab where no_out = 'X'
    2.create a dynamic itab using cl_alv_table_create=>create_dynamic_table( )  passing the above Fieldcat itab, get a handle of new itab
    3.loop over the original itab and fill the new dynamic itab
    hope this helps...

  • Selection of time-dependent hierarchy variables after selection of time

    Hi guys,
    I'm having the following question regarding the selections of variables in a BEx Query:
    I need to select e.g. a position out of a hierarchy which is time-dependent. In the selection screen I'm only able to select a certain date but not the key date that I need for the hierarchy. Now I would like to replace the needed key date for the hierarchy out of the date value. Having the parameters for the hierarchy selected I would like to select a position of the right hierarchy.
    My idea is to select the date first:
    Date: 05.2009
    In the next pop up window the hierarchy key date is replaced by the date:
    Date: 05.2009 --> key date: 05.2009
    Now I can select a position for the right hierarchy.
    Is a two-stage selection possible? How can a variable be replaced and simultaneously serve in the selection of object with a hierarchy?
    Thanks in advance!

    Hi Partho,
    Please check this link. Might be helpfull.
    http://www.ibm.com/developerworks/data/library/cognos/infrastructure/cognos_specific/page551.html
    Regards,
    Rahul

  • BIAUTH: Time-dependent hierarchy authorization in BI 7.0

    Hi folks,
    we got an authorization problem with time-dependent hierarchies.
    For example: Hierarchy A has DATETO 20100220 definied in BI
                          Hierarchy B has DATETO 99991231
    In our user authorization (BIAUTH) we have defined a node authorization, based on Hierarchy B like this:
    Hierarchy    PPS/99991231// [NAME OF IOBJ]                                    
    Nodes        679                                                                               
    Type of Authorization   1                                                 
    "Subtree Below Nodes"                                                      
    Hierarchy Level        0                                                 
    Validity Range         1         -
    >???  this should allow us key date-free selection ???                                        
    "Name and Version Identical"
    For evaluating the users authorization on the IOBJN in our own BI exit variable and FM we are using the SAP FM "RSSB_AUTHORIZATIONS_OF_USER".
    Despite the fact we call this FM with the wanted date (i_date), the FM does not return us the correct Hierarchy nodes desolved in s_tsx_auth_values_user.
    Is there any possibility to authorize on time-dependent hierarchies generally llike we did (Hierarchy B) and still get the key-date selected hierarchy at the time?
    Thanks a lot for any hint!
    Norbert

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

  • How To... Change the Data Type for a SELECT-OPTIONS at run time.

    Hello,
    I am trying to restrict the values available for entry into a SELECT-OPTIONS at run time depending on user input.
    The logic is as follows. The user has two input fields. A PARAMETER field which has the type RSDIOBJNM and allows them to choose an InfoObject. And the user has a SELECT-OPTIONS field to allow them to select the Characteristic values for that InfoObject.
    I would like the following example to be possible:
    The user enters 0MATERIAL into the PARAMETER. When the user clicks on the SELECT-OPTIONS control code will derive a list of possible options the user can enter in the SELECT-OPTIONS. In this case only values found in the master data or at least no values greater than 18 characters.
    I have looked at the following function module SELECT_OPTIONS_RESTRICT and this do not appear to be helpful as they only restrict on the signs allowed for the values (unless I misunderstand, it is a complex function module!).
    The code I have so far is (thus the user enters a InfoObject into p_char1 and the select options so_char1 should only accept active values of that InfoObject):
    declaration of variables for user interface
      DATA c_char(32) TYPE c.
    declaration of count variable
      DATA i_count TYPE i.
    declaration of user interface
      SELECTION-SCREEN BEGIN OF BLOCK a1 WITH FRAME TITLE text-001.
        PARAMETERS: p_ipack TYPE RSLOGDPID.
      SELECTION-SCREEN END OF BLOCK a1.
      SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-002.
        PARAMETERS: p_char1 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char1  for c_char NO INTERVALS.
        PARAMETERS: p_char2 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char2  for c_char NO INTERVALS.
        PARAMETERS: p_char3 TYPE RSDIOBJNM.
        SELECT-OPTIONS: so_char3  for c_char NO INTERVALS.
      SELECTION-SCREEN END OF BLOCK b1.
    Is what I am trying to do possible???
    Thanks for any help. Ross.

    You really want to restrict possible values of a select-option based on another field, not change the length of type of the select-option field, right?
    Here is what you do:  Code a custom F4 value help for the select-option at event AT SELECTION-SCREEN ON VALUE REQUEST FOR..  The first thing you do here is read the value of the parameter field (p_ipack in your example).  You can use function module DYNP_VALUES_READ.  Based on this value, you can propose values for the select-option fields.  Note that the use can still enter whatever s(he) wishes in to the select-option field without pressing F4. In this case, you will have to code some input validations taking into account the value in the p_ipack field.

  • Issue making Cost Center Hierarchy Time Dependent

    Hi,
    We have three hierarchies on top of cost center and cost center was not time-dependent. There is a new requirement to make one of the hierarchies time dependent. To faclitate it, I changed the hierarchy property in cost center infoobject to "Hierarchy structure is time-dependent" and then loaded the hierarchy.It took the validity dates of 1.1.1000 to 31.12.999. A costcenter was changed from one node to another in ECC and was extracted into BI. As time-dependency is set, I thought that node will have two entries now one with validity period 1.1.1000 to 30.10.2009 and another with 31.10.2009 to 31.12.999. But instead the hierarchy was overwritten and only the latest change is refelcted.
    Can someone please help in figuring out the issue. Should some change be done in ECC for time-dependency to reflect.
    Thanks
    Achyuta

    Hey Achyuta,
    The hierarchy needs to be time dependent in the source system and then the datasource for the time dependent hierarchy would then need to be replicated again.  You'll know if it's right after the replication if you view the datasource in BW and the Data is Time Dependent check box is checked on the General Info Tab.  Once the datasource is time-dependent, loads should populate the DateTo and DateFrom as you expect.  Consult your R/3 expert if you need help over on the source system side.
    Peace,
    Dan Glick

Maybe you are looking for

  • Canon MP560 prints wirelessly ok but scanner is not recognized

    Something is going on with the latest Mac OS. Seems to be only with Intel Macs only.Image capture does not recognize either scanner I have.(Canoscan 8400F also). I see others have broken connections other than Canon also. Has Apple given an official

  • Display a progress indicator in the jsp

    Hi to all; Once more i need your help. I have built a website that can connect insert and retrieve data into and from any database. My problem is that, since some of the insert operations take long to complete, I would like a pop up progress indicato

  • Black 1st screen on movie made in Iphoto

    Hello. I have just created my first Quicktime movie in Iphoto. I have imported it into my Iweb website that I am creating, but the first thing you see is a blank screen. How can I have the first image in my movie be what you see before you press play

  • Anyway to build a form outside of Business Catalyst and connect it to the platform?

    I am trying to do one of two thing to accomplish what I am trying to do. First I am trying to build an order form that allows a user to add a field as they go. So if I have three fields for one product. One for a product name, one for a SKU number, a

  • Data loaded into ODS, but no activation possible

    Hello Experts, I've data loaded data into an ODS, but no activation is possible! In Monitor it just say something like "not activated yet". usually it only takes a minute to activate, so I'm confised. any suggestions? Thanx Axel