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.

Similar Messages

  • How can I set a date range for a Date/Time Field in LiveCycle ES2?

    I need to set a specific date range for a form set up in LiveCycle ES2. Cannot see where i allows me to do that without a code entered.

    Hi,
    You can't set a start and end date for the date/time field, the best you can do is validate the range after the user has selected it.
    An alternate is to make your own date / time field, like this sample http://adobelivecycledesignercookbookbybr001.blogspot.com.au/2013/05/an-alternative-date-p icker-for.html
    Regards
    Bruce

  • Specify a date range for a date field.

    Hi folks,
    I have cobbled together some javascript using code that someone provided in response to my thread about setting a maximum length between two dates as reference.
    My aim is to enforce a minimum date of 01/01/2014 and a maximum date of 31/12/2014. Any date entered that are outside of tis range should result in a warning message.
    When I use the below code, I find that the warning message pops up before I ahve even had a chnace to enter any dates, and also when I enter an invalid date it pops up over and over until the program crashes.
    Can anyone tell me how I can fix this?
    Cheers.
    function Scand(cFormat, cString) {
    var oDate = util.scand(cFormat, cString);
    if(oDate == null) app.alert("Error converting date " + cString + " with format of " + cFormat, 0, 0);
    return oDate;
    function GetField(cName) {
    var oField = this.getField(cName);
    if(oField == null) app.alert("Proposed Completion date cannot be more than 180 days after Commencement Date. Please revise " + cName);
    return oField;
    var date1 = (GetField('Field 30')).value;
    var cDateFormat = 'dd-mm-yyyy'; // adjust to match input field's format;
    var oDate1 = Scand(cDateFormat, date1)
    var nDate1 = Math.floor(oDate1.getTime() / (1000 * 60 * 60 * 24))
    if(nDate1 < 01-01-2014) app.alert('Date cannot be earlier than 01/01/2014');
    if(nDate1 > 31-12-2014) app.alert('Date cannot be later than than 31/12/2014');
    this.getField("Proposed Completion Date").setFocus();
    event.rc = false;

    When putting in Epoch time, do I just literally replace the dates in if(nDate1 < 01-01-2014) with the Epoch time value e.g. if(nDate1 < 1388531238)   because now its not calculating correctly, or am I misunderstanding what it is?  I tested by putting in today's date 19/02/2014 and still got the alert saying that it was before 1/01/2014...

  • Using a range of dates for Key Date

    In a HR Bi data warehouse, we have a position-to-position hierarchy, where each of the nodes are time dependent. So, it shows for each node,  valid from and valid to dates, and all the employees who are reporting to that position. This hierarchy is built on the infoobject 0HRPOSITION, which is maintained in R/3 and extracted to BI.
    Let us take an example: Position 1000 is valid from 1-1-2006 to 6-30-2006 Employees reporting to this position are A,B,C,D
                                           Position 1000 is valid from 7-1-2006 to 12-31-9999 Employees reporting to this position are A,E,F,G
    When a user chooses the position 1000, and date range 1-1-2006 to 12-31-2006, it show the complete list of employees as
    A,B,C,D,E,F,G.
    Because the Keydate can only be a single value, and it is automatically taking today's date, and pulling the nodes based on that.
    I have created a hierarchy node variable on the 0HRPOSITION infoObject, and entered the value 1000, with no value for the keydate.
    The system is simply showing employees, A,E,F and G. That is my problem
    My requirement is this: I like to be able to give a date range, (for the hierarchy)  say from 1-1-2006 to 12/31/2006 and get the complete list of Employees, which is A,B,C,D,E,F,G.
    Is this possible? Can I change the way this hierarchy is defined so that I can pull the possible values for a range?

    Thank you Ajay.
    After some thinking, I have realized that these options will not work.
    We have a position-to-position hierarchy that shows who reports to who in the organization. This hierarchy is built on the Infoobject 0HRPOSITION.  Each node in this hierarchy has is time-dependent. Note that, the entire hierarchy is not timedependent. Only the individual position nodes are time-dependent.
    This 0HRPOSITION infoobject exists in the  Heacount cube as one of the characteristics. Here is my requirement.
    1. I want to show in a report, all the employees (directly or indirectly) reporting to a manager for a period of say, 1 year?
    I know that I can specify a key date for the hierarchy 0HRPOSITION, then the report will show all the employees (direct and indirect) reporting to a position say 6/30/2008. I don't want this for a specific date, I want to get  ALL the employees (direct and indirect) reporting to a position in a range of dates( say 1 year)
    Does that make sense? How do we achieve this goal?

  • How to set a date range for date field ?

    Dear Experts,
    Scenario:
    I have a query in validating the date field in my BSP application. My application is for maintain infotype 0023 Other/Previous Employers online by employees in the company.
    As per our design we are maintaining the all employment details of the employee both ( with in the current company / previous employment outside the company) in the same infotype.
    Every employee will have a hiring date within the SAP HR system. We consider this date as the cutoff date between current and previous employment in our application. When the employee updating the details wia BSP page I need to check the following.
    Record inside current company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  greater than or equal HIRING DATE and END DATE(ENDDA) should be greater than FROM  DATE (BEGDA).
    Record outside current Company: Validation that, the user should only able to enter BEGIN DATE (BEGDA)  less than or equal HIRING DATE and END DATE (ENDDA) should be greater than FROM  DATE (BEGDA) and less than HIRING DATE.
    Technical Requirement:
    How to set a date range for date field, i.e. how we can limit the date range in a HTMLB date field? Can this it be achieved via standard functionality of HTMLB?
    Following is the code to describe date field in my application.
        <htmlb:inputField id= "ENDDA_NEW_IN"
                          type= "date"
                    doValidate= "TRUE"
                      showHelp= "TRUE"
                      disabled= "FALSE"
                         width= "183"
                         style= "cssTextAreadate"
                         value= "<%='99991231'%>"/>
    Thanks a lot in advance for your assistance and help.
    Cibinu2026
    Edited by: cibin kuruvilla on Nov 12, 2008 11:13 AM

    Hi,
    This functionality is known to be very important and is a key part of the next major release of the JRC planned for the first half of 2008.
    Regards,
    <p>Blair Wheadon</p>
    <p>Product Manager, Crystal Reports</p>

  • EasyDMS - search by date range for characteristics of type date

    Hi Folks,
    I have a characteristic of type date in the additional data of a DMS document. If I enter the date (for example validity date) as 08/31/2009 and search using cv04n and give a date range for the characteristic (i.e. 01/01/2009 - 12/31/2009), the search result will bring up the document.
    However, I cannot do this from the EasyDMS find function. I need to specify an exact date. This is not very helpful for user who need to find documents with a validity date between 01/01/2009 - 12/31/2009 for example. Is there a way users can search for date range in EasyDMS find function?
    Thanks,
    Lashan

    To search a date range with EasyDMS Client you have to set the registry key
    \HKEY_CURRENT_USER\Software\SAP\EasyDms\Generel\DateSearchPick to Value 0
    Then you can use the input field like in SAP-Gui. (01.01.2009-31.01.2009)
    If you set the value to 1 or the key is not defined you can only search for one specified date.
    If you don't find this key on your PC create it as dword.
    Maybe you must restart you PC for takeing effect.
    Hope this will help you.
    Regards Wolfgang

  • Date Range for a fixed fiscal year

    Dear All,
    How to write a code to fix the date range for 12months only. Example like mine selection should be between one fiscal year only.
    I have check that the date is of one year range like 1.05.2008 to 30.04.2009
    month bt 05 & 04 for one particular year. how to write the code.

    hi,
    check for the year like this.
      if v_date1(4) EQ v_date2(4).
      endif.
    this will check for the first 4 characters of the date string which is the year.
    regards,
    Peter

  • Exception CX_SY_MOVE_CAST_ERROR when Process Reassignments for Key Date Results

    Hi Experts,
    I got an exception error when process reassignments for key date results(transaction code /BA1/FG_PR_KR_REASS) in BANK ANALYZER, did anyone get the same problem before? any solutions?
    the process sequences is listed below:
    1,,Set SDL Timestamp,,              /BA1/B0_CLOSE_SDL
    2,,Generate Positions,,              /BA1/F2_PB_PR
    3,,Aggregate Financial Transactions,,,,          /BA1/FG_PR_FT
    4,,Prepare Business Transactions for Aggregation,,    /BA1/FG_PR_BT_PRE
    5,,Process Reassignments for Business Transactions,,    /BA1/FG_PR_RABT
    6,,Aggregate Business Transactions,,/BA1/FG_PR_BT
    7,,Process Reassignments for Key Date Results,,    /BA1/FG_PR_KR_REASS
    7.a),,Subcomponent view,,subcomponent=S_SVAC01 ,,OK
    7.b),,Subcomponent view,,subcomponent=S_SVFT01 ,,Exception
    I nenver changed subcomponent settings, they are all SAP delivered.
    Exception CX_SY_NO_HANDLER: An exception with the type
    CX_SY_MOVE_CAST_ERROR occurred, but was neither handled locally, nor
    declared in a RAISING clause
    Message no. /BA1/AL_X0_M_H000
    Exception CX_SY_MOVE_CAST_ERROR: Source type
    \CLASS-POOL=/BA1/CL_AL_FG_MD_SUB_CMP_VIEW\CLASS=LCL_SCV_FT2AGGRO is not
    compatible, forthe purposes of assignment, with target type \INTE
    Message no. /BA1/AL_X0_M_H000
    Thanks!

    Hi Abhi,
    in do_prepare_output you are getting mixed entity which is combination of bol entity and value node.
    you can get the bol entity from mixed node by calling a method get_model_node similarly to get value node entity get_value mode method is available check the class CL_BSP_WD_MIXED_NODE methos, you will get an idea.
    Cheers,
    Sumit Mittal

  • Cannot change variable for key date in aggregate

    Hello,
    when I drag time-dependant attributes into an aggregates definition I am prompted to enter a key date or choose a variable for that. I then activate and fill that aggregate. Afterwards I deactivate it and remove the time-dependant attributes so there are no time-dependant attributes in the definition any longer. I then want to also remove the variable for the key date but I can't do so. This property is greyed out and there is no context menu for the entry "Variable for key date".
    The SAP Help says this should be possible by changing the key date variable through the context menu (see http://help.sap.com/saphelp_nw04/helpdata/en/7d/eb683cc5e8ca68e10000000a114084/frameset.htm).
    Has anyone faced this problem, too? I do not want to redefine my aggregate as this is not an elegant solution to the problem.
    Thanks to any answers in advance.
    Regards,
    Philipp

    Hey Karim,
    Because you have time dependent attributes in the aggregate you need to specify key date:
    check this
    http://help.sap.com/saphelp_nw70/helpdata/en/44/70f4bb1ffb591ae10000000a1553f7/frameset.htm

  • Find date range for sick leaves

    Hi,
    Ive been trying to get readable output from HR system.
    I have added the source data into Data Model, since i had to read the data with power query. Now i have pivot table like this:
    date        workdaY?    user
    6.3.2014    Sickleave    user1
    1.2.2014    Sickleave    user2
    2.2.2014    Sickleave    user2
    5.3.2014    Sickleave    user4
    5.3.2014    Sickleave    user1
    5.5.2014    Sickleave    user1
    16.9.2014  Sickleave    user3
    7.3.2014    Sickleave    user1
    6.5.2014    Sickleave    user1
    6.3.2014    Sickleave    user4
    Is there any possible way to get some kind of find function to sort and combine the data like this:
    user1        Sickleave    5.3-7.3.2014
    user1        Sickleave    5.5-6.5.2014
    user2        Sickleave    1.2-2.2.2014
    user3        Sickleave    16.9-16.9.2014
    user4        Sickleave    5.3-6.3.2014

    One way to do this is with a VBA macro.  The following should get you started.
    As you can see looking at the macro, the original data is assumed to be on a worksheet named HRData and starts in A1.
    The results are placed on the same worksheet but starting at cell G1.  You could easily write the results to another worksheet.
    The original data is copied to a temporary worksheet for sorting (and the temporary sheet is subsequently deleted).
    A Class Module is added so we can use a User Defined Object which has the properties of the user name, start date and end date of the vacation period.
    We then cycle through the sorted data, and create a Sickleave object and add it to a collection.  If the "previous" row has the same user, and the date is one more than the previous End Date, we add one to the previous end date; if not, we
    create a new object and start another sickleave period.
    This is the data input:
    and  here are the results:
    To enter this Macro (Sub), <alt-F11> opens the Visual Basic Editor.
    Ensure your project is highlighted in the Project Explorer window.
    First, from the top menu, select Insert/Class Module.  Highlight the new class module in the Project Explorer; click F4, and rename it to cSickLeave
    Then paste the code below into that class module:
    =======================================
    Option Explicit
    Private pUser As String
    Private pStartDt As Date
    Private pEndDt As Date
    Public Property Get User() As String
    User = pUser
    End Property
    Public Property Let User(Value As String)
    pUser = Value
    End Property
    Public Property Get StartDt() As Date
    StartDt = pStartDt
    End Property
    Public Property Let StartDt(Value As Date)
    pStartDt = Value
    End Property
    Public Property Get EndDt() As Date
    EndDt = pEndDt
    End Property
    Public Property Let EndDt(Value As Date)
    pEndDt = Value
    End Property
    Then, from the top menu, select Insert/Module and
    paste the code below into the regular module window that opens.
    To use this Macro (Sub), <alt-F8> opens the macro dialog box. Select the macro by name, and <RUN>.
    ====================================
    Option Explicit
    Option Compare Text
    Sub SickLeave()
    Dim cSL As cSickLeave, colSL As Collection
    Dim wsSrc As Worksheet, wsRes As Worksheet
    Dim wsTemp As Worksheet, rTemp As Range
    Dim vSrc As Variant, rSrc As Range
    Dim vRes() As Variant, rRes As Range
    Dim I As Long
    'set Worksheets
    Set wsSrc = Worksheets("HRData")
    With wsSrc
    Set rSrc = .Range("A1", .Cells(.Rows.Count, "C").End(xlUp))
    End With
    Set wsRes = Worksheets("HRData")
    Set rRes = wsRes.Range("G1") 'upper left cell of results
    'Sort the HRdata on a Temp sheet
    Worksheets.Add
    Set wsTemp = ActiveSheet
    Set rTemp = wsTemp.Range("A1")
    rSrc.Copy rTemp
    Set rTemp = rTemp.CurrentRegion
    With rTemp
    .Sort key1:=.Columns(3), order1:=xlAscending, _
    key2:=.Columns(1), order2:=xlAscending, _
    Header:=xlYes, MatchCase:=False
    End With
    vSrc = rTemp.Value
    With Application
    .ScreenUpdating = False
    .DisplayAlerts = False
    wsTemp.Delete
    .DisplayAlerts = True
    End With
    'create collection for results
    Set colSL = New Collection
    For I = 2 To UBound(vSrc)
    If vSrc(I, 2) = "Sickleave" Then
    If I = 2 Then
    Set cSL = New cSickLeave
    With cSL
    .User = vSrc(I, 3)
    .StartDt = vSrc(I, 1)
    .EndDt = vSrc(I, 1)
    colSL.Add cSL
    End With
    ElseIf vSrc(I, 3) = colSL(colSL.Count).User And _
    (vSrc(I, 1) - 1) = colSL(colSL.Count).EndDt Then
    With colSL(colSL.Count)
    .EndDt = .EndDt + 1
    End With
    Else
    Set cSL = New cSickLeave
    With cSL
    .User = vSrc(I, 3)
    .StartDt = vSrc(I, 1)
    .EndDt = vSrc(I, 1)
    colSL.Add cSL
    End With
    End If
    End If
    Next I
    ReDim vRes(0 To colSL.Count, 1 To 3)
    vRes(0, 1) = "User"
    vRes(0, 2) = "workdaY?"
    vRes(0, 3) = "Date Range"
    For I = 1 To colSL.Count
    With colSL(I)
    vRes(I, 1) = .User
    vRes(I, 2) = "Sickleave"
    vRes(I, 3) = Format(.StartDt, "d.m\-") & _
    Format(.EndDt, "d.m.yyyy")
    End With
    Next I
    Set rRes = rRes.Resize(UBound(vRes) + 1, UBound(vRes, 2))
    With rRes
    .EntireColumn.Clear
    .Value = vRes
    .EntireColumn.AutoFit
    .Rows(1).HorizontalAlignment = xlCenter
    End With
    Application.ScreenUpdating = True
    End Sub
    Ron

  • Spliting user entered date range into u201CFrom Date u201C and u201C To dateu201D-user exit

    Hi,
    In the query i have a created a popup variable for date range for which the processing type is customer exit. When the user exceutes the query he gets the popup for the date range with the default values. The default values are set one month backward.
    For example: if today is 5/19/2008, then the popup date range shows 4/19/2008 to 5/19/2008.
    Already there is an user exit written for the same.
    Now the requirement is i need to split From date and to date entered by user and use them in seperate selections to restrict the keyfigure in the keyfigure column of the query.
    Can anyone throw a light on this, how to go about?
    Shall i need to create two different variables from date and two date and populate the values, if yes how can i do that ?
    Thanks,
    Rani.
    Edited by: rani on May 19, 2008 10:22 AM

    Hello Rani,
                     Check this code,
    var1 is already existing variable with values from date and to date values.
    ztest1 is the first customer exit single variable,
    ztest2 is the second customer exit variable.
    ztest1 and ztest2 you can use these variables in the restricted keyfigures which you have mentioned.
    when 'ztest1'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-low.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    when 'ztest2'.
        if i_step = 2. "after the popup
          loop at i_t_var_range into loc_var_range
          where vnam = 'var1'.
            clear l_s_range.
            l_s_range-low = loc_var_range-high.
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            append l_s_range to e_t_range.
            exit.
          endloop.
        endif.
    hope it helps,
    regards,
    karthik

  • Error while creating Data Source for master data attributes

    Hi BI Experts,
    Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
    I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
    Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as   ,
    and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is  MAT_NUMBER and MAT_NAME (with say 100 data in the file)
    same is the result when I am trying to load the text data too columns maintained are
    (LANGUAGE MAT_NUMBER Short Description)(same 100 data).
    now i used to rsa1old transaction  to upload the file using 3.5 version.i created info source for master data/text/hierarchies for  IOSP_Mat
    now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
    When I monitored ,I figured the data has not been even uploaded to the PSA level.
    Can you BI experts tell me the answer for this.
    Thanks,
    Srijith

    apologies to all of you for late response,
    was busy with some other activities.
    I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
    Thanks again for your quick response.
    Once again sorry to all of you for my late response
    Thanks,
    Sri

  • Data Type field read only in Data source for transaction data (PC_FILE)

    Hi folks,
    I need to change Data Type for some of the fields in "Field" tab in data source for transactional data. It became read only after I activate the data source. Need help in making it editable. All fields now have Data type=CHAR.
    Thanks

    Nevermind folks. I got it.

  • Problem in data sources for transaction data through flat file

    Hello Friends,
    While creating the data sources for transaction data through flat file, I am getting the following error "Error 'The argument '1519,05' cannot be interpreted as anumber' while assigning character to application structure" Message no. RSDS016
    If any one come across this issue, please provide me the solution.
    Thanks in Advance.
    Regards
    Ravi

    Hallo,
    just for information.
    I had the same problem.
    Have changed the field type from CURR to DEC and have set external instead of internal.
    Then, the import with flatfile worked fine.
    Thank you.

  • Data source for this data connection isn't registered for Power BI

    Hi, I am getting this error when I set Schedule Data Refresh to refresh data from db.  How do I register my connection to the data source?  Is this a fix on SQL server or Power BI?
    FAILURE INFORMATION
    Failure
    Correlation ID: c5132b7a-3c54-4f12-a048-3ddcf0b95f26
    Data connection Status
    SqlServer twcperfsql1 OfficePerf OnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Tell your Power BI admin the admin needs to register this connection to this on-premises data source.
    Thanks for your help.

    I'm running into the same issue, I did configure the Gateway and then the data source in Power Bi.
    When I go to the Power BI Admin Center and click on "Test Connection" it seems to be working. But when I refresh the data from Power BI it doesn't work. Now if I edit the spreadsheet in excel and refresh the data in PowerPivot then it works. So
    not sure why the solution doesn't refresh from the automated service in Power BI without this useless error.
    Thanks
    Fabian
    In case it helps this is the actual error:
    Failure Correlation ID: ecc73a16-7264-45b2-9baf-e3448f007211                                                     
    Power Query - dbo_TableAOnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI admin to register the data source in the Power BI admin center.
    Also further information I have found so far is that the Gateway is receiving the requests for the refresh and it shows the message below, so the data source is found and communication seems to be happening from server to client and back, not sure why server
    doesn't seem to like the data the Gateway is sending back to server.
    The feed 'dbo_TableA' was successfully accessed at 7/15/2014 4:23:26 PM.
    The request took 00:00:00.0000105 seconds.
    Activity ID: e8464e5d-3f0a-49c2-b10b-450fec3e5940

Maybe you are looking for

  • Why does that same photo keep appearing in the edited folder????

    Why is that same photo always mysteriously appear in the edited folder whenever a photo is added to camera roll?????  If I happen to take a picture on my iPad, then if I go to iPhoto, there is this one stubborn picture that mysteriously appears in th

  • No Sound after Leopard

    I have just bought a iBook G4 & have upgraded it to Leopard with after the software update is now running 10.5.4 I have noticed that the volume control in the menu bar is missing & using the F3 to F5 keys to control the volume brings up the on screen

  • WVC54GCA appears dead - now what?

    I have a WVC54GCA that has been providing me with good service for almost a year and a half. All of a sudden it stopped responding.  I took it off the network, did a power-off reset, did a reset via the reset button, let it sit unconnected and withou

  • Dbms_profiler in connection pooling environment

    Hello, I am looking for some experiences on using dbms_profiler in connection pooling environments ? I have got this working for single user cases but I am not sure how is this going to behave in connection pooling environments ? If you have done suc

  • How do you mount a device like normal unix?

    Hi, I'm trying to secure some files by encrypting a disk image (DMG file). I'm doing everything through the terminal so that I can script it. For the first step I want to mount the disk image file. But, I'm struggling to find a way to mount the disk