Fetching information within the given date range

Hello All,
PLease can u help me in solving this : --
I need to fetch those employees who will complete 18 yrs within the date range specified.
For example, if date1 = 10/21/2008 and date2 = 11/03/2008
then i need to display information of all those employees whose birthday fall within the date range along with the date.
Thanks in advance !

Hi,
16:58:25 b1>desc test1
Name                                      Null?    Type
AGE                                                NUMBER
BDATE                                              DATE
16:58:36 b1>SELECT * FROM test1
16:58:47   2  ;
       AGE BDATE
        18 23-OCT-08
        17 23-NOV-08
16:58:48 b1>SELECT *
16:58:55   2  FROM test1
16:58:55   3  WHERE  Bdate BETWEEN  TO_DATE('21/10/2008','DD/MM/YYYY')  AND  TO_
DATE('30/10/2008','DD/MM/YYYY');
       AGE BDATE
        18 23-OCT-08- Pavan Kumar N

Similar Messages

  • Any FM to get count of each week day for the given date range

    Hi guys,
    Any FM to get count of each week day for the given date range?
    eg: If i give 14/07/2008 to 14/08/2008
    I need to find how many Mondays, tuesdays...sundays in this given date range.
    If not single FM is available, any logic that gives above result is also appreciated.
    Thanks,
    Vinod.

    hi Vinod,
    this is not a full solution, I just give you a basic idea:
    DATA : lv_start TYPE sy-datum VALUE '20080714',
           lv_end   TYPE sy-datum VALUE '20080814'.
    WHILE lv_start LE lv_end.
      CALL FUNCTION 'FTR_DAY_GET_TEXT'
        EXPORTING
          pi_date = lv_start.
    * IMPORTING
    *   PE_DAY_TEXT1       =
    *   PE_DAY_TEXT2       =
    *   PE_DAY             =
    * you have to summarize the output here somehow...
      lv_start = lv_start + 1.
    ENDWHILE.
    hope this helps
    ec

  • Get Months for the given date ranges on the Selection Screen

    Hello All,
    If I give Begin Date (Begda) and End Date (Endda) on the Selection Screen, I need to get all the months given in the selection screen ranges.
    Could any one please suggest me how to proceed further on this.
    Thanks in Advance
    Regards
    Yathish

    HI,
    Check this FM
    HR_99S_INTERVAL_BETWEEN_DATES  ---> this can help you it will return the month in this table MONTH_TAB
    HR_99S_MONTHS_BETWEEN_DATES

  • Sum data for a given day within a given date range

    Anyone know how to add data in a coulumn if the adjacent column meets a specific date range? For example I want to add up hours flown (pilot logbook) in each specific month on a seperate type.

    Hi Jeff,
    Here's a simple example of how you might do this. Before getting involved with the EOMONTH function you can try a less compact (but somewhat easier to understand) approach. Add Year and Month columns to your log. You can extract the values from the date using the MONTH and YEAR functions or just enter them manually. Then do something like this:
    The formula in the B2 of the Year table, copied down, is:
             =SUMIFS(Log::$E,Log::$A,A2)
    The formula in C2 of the Month table, copied down, is:
             =SUMIFS(Log::$E,Log::$A,A2,Log::$B,B2)
    These two formulas look at the cell(s) to their left and pull the corresponding totals out of the Log table.
    Think of the arguments within SUMIFS as first the column of data to be summed, followed by column-criteria pairs.  The criteria are in the cells to the left. The columns are in the Log table.
    SG

  • Number of Vendor in the given date range

    Hi All,
    I have a requirement like I need to calculate Total Number of Vendors in a given Date in Report Level. Could anyone please let me know how to do this?
    Thanks in advance.
    with Regards,
    Mahi.S

    Hi Al,
    Thanks for the prompt answer.
    I tried creating a Calculated Key Figure and given Vendor as Characteristic. When I run the report I can see Count 1 for all the Vendors. But the user wants to see total number of records. FYR, please have a look at the below sample data.
    Vendor     Vendor Account Group     Company Code     Created on     Plant     Total number of Vendors
    2     ZINT     0101     07/2/1998     #     1
    3     ZINT     0101     07/2/1998     #     1
    4     ZINT     0101     07/2/1998     #     1
    5     ZINT     0101     07/2/1998     #     1
    7     ZINT     0101     10/27/1998     #     1
    12     ZINT     0101     05/6/1999     #     1
    14     ZINT     0101     05/6/1999     #     1
    17     ZINT     0101     06/7/1999     #     1
    18     ZINT     0101     06/7/1999     #     1
    19     ZINT     0101     06/7/1999     #     1
    20     ZINT     0101     06/7/1999     #     1
    22     ZINT     0101     08/26/1999     #     1
    27     ZINT     0101     09/28/1999     #     1
    28     ZINT     0101     09/28/1999     #     1
    29     ZINT     0101     09/28/1999     #     1
    30     ZINT     0101     09/28/1999     #     1
    31     ZINT     0101     09/28/1999     #     1
    32     ZINT     0101     09/28/1999     #     1
    33     ZINT     0101     09/29/1999     #     1
    42     ZINT     0101     10/1/1999     #     1
    52     ZINT     0101     10/22/1999     #     1
    53     ZINT     0101     11/16/1999     #     1
    54     ZINT     0101     11/16/1999     #     1
    57     ZINT     0101     02/1/2000     #     1
    62     ZINT     0101     04/25/2000     #     1
    63     ZINT     0101     04/25/2000     #     1
    67     ZINT     0101     05/30/2000     #     1
    72     ZINT     0101     07/6/2000     #     1
    82     ZINT     0101     09/21/2000     #     1
    Thanks & Regards,
    Mahi.S
    Edited by: SRI on Dec 20, 2011 7:57 AM

  • Name of users of a particular Tcode for a given date range

    Hi experts,
    I am making an alv where inputs will be
    1> T_code(as parameter)
    2> Date Range(as Select options)
    I have to display the following fields:::
    1> User name
    2> Frequency of use the Tcode for the given Date range.
    Please give me the tables where I can get the relation of those fields.
    N.B. I know the transaction AL08 and SM04.But it won't solve my purpose.
    Thanx in advance,
    Sourav

    >
    SOURAV PAUL wrote:
    > Hi experts,
    > I am making an alv where inputs will be
    > 1> T_code(as parameter)
    > 2> Date Range(as Select options)
    by creating the report As per your this requirement you need not to create any Bulk on your SAP.Just use STAD/STAT transaction they are availabe for this purpose.
    and more you may track by security log audit by SM20 get these details.
    i'm worried about tables which sre storing these details.

  • How to capture the data within the given range of maximum and minimum values ? from csv files

    My requirement,
    1. Here, the user will provide the range like maximum and minimum values, based on this range, the VI should capture the data within the given range. ( from CSV file as attached )
    2. Then VI should calcluate the average value for captured data and export it to excel.
    This is my requirement can anyone help me on this.
    Many thanks in advance
    rc_cks
    Attachments:
    sample_short.csv ‏2439 KB

    Hi,
    Thanks for remnding me. I forgt to attach the VI, 
    Here I am attaching the VI, what I tried. 
    From attached CSV file, I have to find an average value for columns B,C,D,E,F,G,H,I and AJ, AK. ( data range will be defined  by user ), focused only on these columns
    Here, the scope is to calculate an average value for given data range by user as MAX and MIN data.  
    FYI:  I tried manually for two instance i.e column H & I.  As per H column one steady state values from  7500 to 10500 and similarly in I column 7875 to 10050. So, I gave these as a limit to capture and calculate the average value. But unfortunaltely, requirement has been modified as per below requirements.
    More Info on requirement: 
    --> The user will define the range of data by giving some MAXIMUM and MINIMUM values(for above mentioned columns induvidually), then VI should capture          that data range and it has to caculate the average value for that range of data. This is the task I have to complete. 
    --> I am stuck in creating a logic for data capturing for given range of MAX and MIN value from user, 
         Can anyone help me on this. 
    If my explanation is not clear, Please let me know.  
    Many thanks, help mw
    rc
    Attachments:
    VI_rc.vi ‏25 KB
    sample.zip ‏4166 KB

  • Last Record Values for a given Date Range

    Hi, I have a unique requirement to process/report only the values of the last record found in a date range for a given set of characteristics.  The order would be by FISCPER.
    For example:  I have some data with 3 characteristics.
    STORE001 MATN001 2004001 100 PCS
    STORE001 MATN001 2004005 75  PCS
    STORE001 MATN001 2004006 80  PCS
    STORE002 MATN002 2003008 10  PCS
    STORE002 MATN002 2004001 15  PCS
    STORE002 MATN002 2004004 40  PCS
    A selected date range of 2003008 to 2004001 would result in the following records being processed.
    STORE001 MATN001 2004001 100  PCS
    STORE002 MATN002 2004001 15   PCS
    A selected date range of 2004002 to 2004006 would result in the following records being processed.
    STORE001 MATN001 2004006 80  PCS
    STORE002 MATN002 2004004 40  PCS
    How can I accomplish this at runtime?  Any ideas?

    Nope, it's not an inventory scenario.  It could be say the last status of a gas meter within a selected date range. 
    Any other ideas? 
    I've considered using VKF, but haven't figured out how this would work yet.  If I could modify the selected query data prior to query processing I might be able to number the records and then filter on that.....  Anyway I'm open to any suggestions or leads!
    I won't forget the points for anyone with a solution!
    Thanks!

  • Page Version Count within the selected dates

    Hi,
    We have a folder of name General in our site.
    i have two SharePoint date time controls on the user control.
    Now i need to get the number of page versions within the selected dates.
    I am able to get all the pages under the 'General' folder as below
    SPFolder oGeneralFolder = list.RootFolder.SubFolders["General"];
     DataTable dt = new DataTable();
    dt.Columns.Add("Page Versions Count");
    foreach (SPFile file in oGeneralFolder.Files)
    dr["Page Versions Count"] = ?
    Now i need to get the number of page versions within the selected dates.
    Because i don't see any supporting property in SPFile object to filter the page version according to the date.
    Please share your ideas or thoughts on the same.
    Regards,
    Sudheer
    Thanks & Regards, Sudheer

    Hi Naga,
    Get item of File and do the following
      foreach (SPListItemVersion v in item.Versions)
    if(v.Created > daterange &&v.Created < daterange )
    count++;
    Within the foreach loop, check for specified date range and increase the count if it fine.
    Thanks,
    Vivek
    Please vote or mark your question answered, if my reply helps you

  • How to calculate a week & Month in given date range (not for sele-options)

    Hi ,
      I have defined 2 date parameters in sel-screen (Plz remember that date variable are not a SELECT-OPTIONS).  Now i want ot display week nos & monts in output.
          Ex: date1: 20080101 & date2: 20080229. then
                    weeks : 1, 2, 3,---9.
                    months: jan-08, feb-08.
    Plz help me with block of code or any FM.
    Regards,

    Hi Srikanth,
            The FM HR_99S_INTERVAL_BETWEEN_DATES   is doesn't existing, but there is a fm HR_MX_INTERVAL_BETWEEN_DATES but it returns no of Years & Days.
           But i found some FM which r returns no of months for given date range. but my requirement is, want to display the month no bw 1 to 12. (ex: dat1=15-03-2008 & dat2= 01-06-2008 then in month fields 03,04,05 & 06. ).
    Plz help me on this.
    -Regards.

  • Get table partition name dynamically for given date range

    Dear All,
    Could you please tell me how to get the partition name dynamicaly for given date range ?
    Thank you.

    SQL> select table_name,
           partition_name,
           to_date (
              trim (
                 '''' from regexp_substr (
                              extractvalue (
                                 dbms_xmlgen.
                                 getxmltype (
                                    'select high_value from all_tab_partitions where table_name='''
                                    || table_name
                                    || ''' and table_owner = '''
                                    || table_owner
                                    || ''' and partition_name = '''
                                    || partition_name
                                    || ''''),
                                 '//text()'),
              'syyyy-mm-dd hh24:mi:ss')
              high_value_in_date_format
      from all_tab_partitions
    where table_name = 'SALES' and table_owner = 'SH'
    TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE_IN_DATE_FORMAT
    SALES                          SALES_1995                     01-JAN-96               
    SALES                          SALES_1996                     01-JAN-97               
    SALES                          SALES_H1_1997                  01-JUL-97               
    SALES                          SALES_H2_1997                  01-JAN-98               
    SALES                          SALES_Q1_1998                  01-APR-98               
    SALES                          SALES_Q2_1998                  01-JUL-98               
    SALES                          SALES_Q3_1998                  01-OKT-98               
    SALES                          SALES_Q4_1998                  01-JAN-99               
    SALES                          SALES_Q1_1999                  01-APR-99               
    SALES                          SALES_Q2_1999                  01-JUL-99               
    SALES                          SALES_Q3_1999                  01-OKT-99               
    SALES                          SALES_Q4_1999                  01-JAN-00               
    SALES                          SALES_Q1_2000                  01-APR-00               
    SALES                          SALES_Q2_2000                  01-JUL-00               
    SALES                          SALES_Q3_2000                  01-OKT-00               
    SALES                          SALES_Q4_2000                  01-JAN-01               
    SALES                          SALES_Q1_2001                  01-APR-01               
    SALES                          SALES_Q2_2001                  01-JUL-01               
    SALES                          SALES_Q3_2001                  01-OKT-01               
    SALES                          SALES_Q4_2001                  01-JAN-02               
    SALES                          SALES_Q1_2002                  01-APR-02               
    SALES                          SALES_Q2_2002                  01-JUL-02               
    SALES                          SALES_Q3_2002                  01-OKT-02               
    SALES                          SALES_Q4_2002                  01-JAN-03               
    SALES                          SALES_Q1_2003                  01-APR-03               
    SALES                          SALES_Q2_2003                  01-JUL-03               
    SALES                          SALES_Q3_2003                  01-OKT-03               
    SALES                          SALES_Q4_2003                  01-JAN-04               
    28 rows selected.

  • SD pricing extract for given date range

    Hi,
    Is any one knows any FM where you can able to extract pricing for given date range.
    FM Pricing works for one date. I don't want to loop at this
    FM for the given date rage. It takes very long time.
    Thanks for any suggestion.
    Kind Regards
    Nir

    Hi,
    Is any one knows any FM where you can able to extract pricing for given date range.
    FM Pricing works for one date. I don't want to loop at this
    FM for the given date rage. It takes very long time.
    Thanks for any suggestion.
    Kind Regards
    Nir

  • Information within the home hub

    Has anyone recently challenged the accuracy of the online monitor for Broad Band usage?
    I have been told I am going to breach the limit despite being on holiday.
    When I looked into the home hub the data usage over a connection time of nearly ten days amounted to a little over 3.3GB (figure1) whereas the data for the online monitor was nearly 17GB (figure 2).
    I phoned BT, the poor advisor I spoke with had no idea that this information was stored in the home hub and was completely out of their depth, unfortunately this meant the discussion was of no benefit whatsoever.
    The information within the help section of the home hub clearly states that the data usage corresponds to the connection time (in this instance almost identical to the online usage monitor) (figure 3).
    How can I challenge BT on this massive discrepancy and avoid being overcharged for the etherial data that I am not using?
    If a BT technician can explain the discrepancy to help me understand I would be most grateful, if not then anyone with limited data usage please start to challenge BT with the data they so helpfully store for us in the home hub
    Solved!
    Go to Solution.

    as has been posted many times before the hub refreshes the usage figure at around 5gb or every time the hub restarts
    If you want to say thanks for a helpful answer,please click on the Ratings star on the left-hand side If the reply answers your question then please mark as ’Mark as Accepted Solution’

  • Price change report for  a given date range in inforecords

    hi,
    Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or  fuction module.

    Hi,
    If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
    Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
    Hope, this helps!
    S. Siva

  • Working hours of an employee between a given date range

    Hi Everyone,
    how to calculate working hours of an employee between a given date range
    Please anyone qive me some idea..
    Thanks in advance

    Hi Lathessh,
    Thanks for the reply here is the sample data. Actually we have two datetime field and i want to calculate the Ageing of an employee , by excluding of sunday and holiday between startdate and endDate.
    Ageing should be in hours.   Thanks
    StartDateTime
    EndDateTime
    HolidayList
    2/24/2014 11:55
    3/1/2014 16:45
    1/1/13 0:00
    2/24/2014 12:08
    2/28/2014 12:55
    1/14/13 0:00
    2/24/2014 16:16
    2/28/2014 15:20
    1/25/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    3/27/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    3/29/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    4/24/13 0:00
    2/14/2014 12:56
    3/4/2014 16:20
    5/1/13 0:00
    2/26/2014 13:53
    3/4/2014 16:20
    8/9/13 0:00
    2/27/2014 12:13
    3/5/2014 13:05
    8/15/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    8/20/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    8/28/13 0:00
    3/3/2014 14:42
    3/5/2014 17:05
    9/18/13 0:00
    3/6/2014 12:28
    3/6/2014 17:55
    10/2/13 0:00
    3/6/2014 12:59
    3/7/2014 13:55
    10/16/13 0:00
    3/6/2014 14:37
    3/7/2014 11:15
    11/5/13 0:00
    3/6/2014 14:57
    3/7/2014 12:10
    11/15/13 0:00
    3/4/2014 17:21
    3/10/2014 15:55
    12/4/13 0:00
    3/4/2014 17:21
    3/10/2014 15:55
    12/25/13 0:00
    3/6/2014 12:08
    3/10/2014 14:10
    12/31/13 0:00
    3/6/2014 13:31
    3/10/2014 13:05
    1/1/14 0:00
    3/6/2014 13:14
    3/11/2014 13:20
    1/14/14 0:00
    3/6/2014 13:14
    3/11/2014 13:20
    3/17/14 0:00
    3/11/2014 14:29
    3/13/2014 11:20
    4/8/14 0:00
    3/11/2014 14:29
    3/13/2014 11:20
    4/14/14 0:00
    3/12/2014 12:56
    3/13/2014 11:45
    4/18/14 0:00
    3/12/2014 12:56
    3/13/2014 11:45
    5/1/14 0:00
    3/12/2014 14:02
    3/12/2014 18:10
    7/29/14 0:00
    3/12/2014 14:22
    3/12/2014 18:05
    8/15/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    8/18/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    8/29/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    10/2/14 0:00
    2/24/2014 16:49
    3/14/2014 12:10
    10/3/14 0:00
    3/12/2014 11:31
    3/14/2014 15:55
    10/6/14 0:00
    3/12/2014 13:31
    3/15/2014 12:20
    10/23/14 0:00
    3/12/2014 15:31
    3/15/2014 11:10
    10/24/14 0:00
    3/12/2014 15:49
    3/14/2014 13:55
    12/25/14 0:00
    3/12/2014 16:19
    3/14/2014 15:05
    12/31/14 0:00

Maybe you are looking for

  • My HP Printer HP Officejet Pro 8600 Problem

    My printer is not scanning, faxing and copying. Once I press the copy option it give me an error message stating that "unable to scan, fax and copy".

  • Class has be instantiated in document class but having issue..HELP

    Guys, I am making my way with AS3 in little steps and have hit a road block. This is what I have: I have a document class called "Document Class" I have a custom class called "Game" I have instantiated an object of "Game" class and I am able to trace

  • Migrate Business Events between systems

    We are in the process of creating several dozen custom business events and subscriptions, and was wondering if there was a way to migrate them from one instance to another. The thought of having to key each event and subscription 4x (dev,test,qa,prod

  • IPhone apps after syncing have not loaded

    Hello I have just completed a  sync on my iPhone 5 And have got all my apps on my iPhone although now that it is completed all the apps now Say waiting..... On my phone obviously they are waiting to load It has been a while now  is this normal? shoul

  • Extracting data using DBConnect/UDConnect

    Hi all, I need to connect an SAP BW system to an external database (MS SQL Server). The BW server runs on Sun Solaris. Could anyone kindly clarify whethere to use DBConnect or UDConnect for this purpose? When I tried to create a DBConnect connection,