To find the latest Date in a group.

Hi,
I am having  fields  called services and a date field.I am grouping the records based on services.I want to display the records for only the latest date in that particular record.
say for eg..if i am having dates for a particular service as
12/31/2008
11/30/2008
01/31/2009
02/04/2009
I want to display records only for 02.04/2009.But now when i use maximum function i am getting 12/31/2008.I think it is considering only the day values.
Can anyone please help me.
Thanks in Advance,
Hema

or you can do it at report level as well, do it at database level for better performance..
At report level, follow the steps..
go to report main menu - > Selection formula - > group
In the editor write the formula..
If  maximum({Command.LATEST_ETA}) = {Command.LATEST_ETA}
then true else false
Hope this helps...
Thanks
-Azhar

Similar Messages

  • To find the latest date and time

    HI all,
    I have a Ztable which contains execution date and exe time.
    1) I need to find the latest date and time How  can we do this?
    2) In my program,I need to insert some values to date,time and status field in Ztable. How can I insert it directly into the table?
    for eg ZTAB-DATE = 010122006
            ZTAB-TIME = 12.20.20
          just INSERT ZTAB is enough or NOT????????????
    POINTS WILL BE REWARDED
    THANKS IN ADVANCE

    1) You can do a number of things, one you can get all of the relevant records and sort the internal table by date and time in decending order, then simply read the first record of the internal table.
    2) It depends on the key of the table. Say for example, you have a table like so.
    MANDT
    KEYFIELD
    DATE
    TIME
    If the key alreays exists, you can use the modify statement to update the record, if it dosn't exists, you need to use the INSERT statement to insert the records.
    data: xtab type ztable.
    xtab-keyfield = 'ABC'.
    xtab-date = '20070207'.  " or sy-datum
    xtab-time = '221600'.    " or sy-uzeit.
    insert ztable from xtab.
    Make sure to use internal fomat for DATE and TIME.
    Regards,
    Rich Heilman

  • Finding the record with the latest date

    Post Author: sconlon
    CA Forum: General
    Hi,I am using CR 8 with an Access database which has a table that holds (multiple) sales records for each of our clients. I want to create a report that lists only the latest sale from each client.  I am thinking that I first need to group by client and then create a sub-report that prints the necessary details of sales record with the latest date of sale.  It's this last bit that I cannot figure out how to do.  Can anyone suggest a way of doing this?Many thanks,sconlon

    Post Author: Jagan
    CA Forum: General
    Charliy's suggestion if fine, and does require sorting and displaying in the group header/footer according to the sort order. In case it's not clear, when you print in the group header you are using the first record's data; when you print in the group footer you are using the last record's data (first and last within the group that is).
    Personally, I'd group on the client have a group selection formula of:
    {table.date_field} = maximum({table.date_field}, {table.client_id})
    so that there's no date sort required as you'll only get one record per client group - assuming that each record has a unique date of course. I'd probably still suppress the details section and display in the group footer, but it wouldn't matter if you use the details section either.
    I believe the benefit with the group selection formula is that any summary formulas, running totals etc. you use would only have the one record per client to work on, rather than including all of the suppressed records too.

  • Were do i find the latest up dates for the 3g phone

    were do i find the latest up dates for the 3g phone

    On iTunes when you connect your iPhone. The latest version for the 3g is 4.2.1. What version do you have on your iPhone?

  • Where can I find the latest version number in a document in the web? so I can download it with wget to check if the current installed firefox version is up to date and update ir if necessary?

    My problem is that I can't find the latest version number in here http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32 as a document, so I can check against "HKLM\SOFTWARE\Mozilla\Mozilla Firefox\CurrentVersion" and update or not, all this is done by a script. It will be great not have to change the versión number in the script every time there is a new release.
    Thanks

    I think I solved, all I have to do is this:
    //here I download the entire page
    wget.exe http://www.mozilla.org/en-US/firefox/all.html -O index
    //here I search for the word curVersion and set a variable with the result, which is "10.0.2"
    for /f "tokens=3 delims=</> " %%A IN ('type index ^| FIND /I "curVersion" ' ) do set latestversion=%%A
    //here I just make sure I get a number
    echo "%latestversion%"
    pause
    Later I check it against the registry and voila! I hope this can help other admins who have the same problem.
    Regards.

  • To find the latest active date in case if any gap occurs

    Hi Experts,
               I've to find the active date if employee is on leave, any kind, and joined again.
               Is there any FM exist to find out the last active date before the gap??
    Regards,
    Jyoti Shankar

    It would be worth chatting to someone functional in the HR area of the company that you are trying to do this for, as there are many different ways that have been implemented at different sites to say when exactly an employee started/finished.
    Many companies will use IT0041 rather than relying on IT0000 because of the payroll complications that occur with making changes to IT0000 - not to mention that it is rare that a company has been on SAP HR so long that the IT0000 start dates actually reflect employee hire dates (normally a large part of them will reflect system cut-over date).
    Also, many companies have taken the approach of using a new employee number when a person re-joins the company and just using a reference personnel number to copy the common data. In this case using IT0000 is not very useful.
    Like was mentioned above, you're going to have to code something yourself, but it's worth finding out what the local processes for your company are first!
    Hope this is helpful,
    Chris

  • How to select the latest date for a field in CR?

    Dear all expert.
    I need to develop a report where it only show the latest date. For example, I had a report, it contain a customer description and bussiness transaction posting date.
    Customer description           BT posting Date
    A                                          03/10/2010
    A                                          15/10/2010
    A                                          23/11/2010
    A                                          24/12/2010
    A                                          30/12/2010
    A                                          15/02/2011
    A                                           20/03/2011
    B                                           20/03/2011
    B                                           02/04/2011
    B                                           08/04/2011
    B                                           11/04/2011
    But in CR, i Just wan it to show me:
    Customer description          BT posting Date
    A                                         20/03/2011
    B                                         11/04/2011
    I just want to show customer with the latest BT posting Date, How can I do that?
    Thank You.

    Hi Alex,
    If you want to show the data only in Detail other than group then you may follow the following :
    --Create a group on Curstomer Descripton
    --Createa fromula : Maximum(,)
    --Go in Section Expert -- suppress condition -- then give a condition like :
      <>  Maximum(,)  //  'not equal'
    This will suppress other dates and give you the latest date on your detail.
    Thanks,
    Sastry

  • Find the latest updated or the latest inserted record  in a table

    Hi All,
    Thanks in advance
    Just a simple question
    How do we find the latest updated or the latest inserted record in a table ?
    Provide some queries in SQL?

    You can order by rowid desc to get lately inserted records, but I'm not sure about updated records.That is incorrect, Oracle might use old rowid's even in inserts and you cannot assure that the max(rowid) refers to the latest record.
    If the table is created with rowdependencies one can use ORA_ROWSCN pseudo column to check on date/time when the last dml has been performed over that table. But, that has some limitations too, Old snapshots will be erased hence one can check the last dml with a time frame of few days.
    Regards,
    Prazy

  • Get the latest date record in Query

    Hi, Expert:
    Please help on this:
    The requirement is to get the the latest date record in Query. For example:
    Data in provider:
    Plant          date            amount
    A01         2007/04/08      30
    A01         2007/06/09      70
    A01         2007/12/08      30
    we only want the query display:
    A01         2007/12/08      30
    I have tried exception aggregation, but it does not work. Any ideas are highly appreciated.

    Or you can model the date as a key figure after 0date_kyf and set aggregation to max, you'll get something like
    select plant, amount, max(date) from ... group by plant, amount
    used it for inventory reporting (materials and their last movement date, days from the last movement etc.) and worked well.

  • Where do I find the latest version of iOS?

    Where can I find the latest version of iOS?

    Plug in your iPod to the computer, open iTunes, if it doesn't automatically say there is an update available then click "Check for Updates."  It'll update your phone.  Double check that it backs up first.  It would stink to have a problem and lose data.

  • Getting the latest dates

    Hello,
    I have simple question ....i dont know why i m brain dead today...
    I m trying to get the latest date for the each id
    with test_data as(
    select '001'id, 'xyz'name, '1/1/2009'start_date from dual union all
    select '001',  'abc', '1/2/2099' from dual union all
    select '001',  'def', '1/3/2009' from dual union all
    select '001',  'ghi', '1/4/2009' from dual union all
    select '001',  'jkl', '1/5/2009' from dual
    The output i m looking for just one record with latest date
      with result as
         select '001',  'jkl', '1/5/2009' from dual 
    i tried this
    select id,name, greatest(start_date) from test_data
      group by id,name,start_date
    It gives me output ...which i m not lookg for
      with t as
         select '001',  'abc', '1/3/2009' from dual union all
         select '001',  'ghi', '1/4/2009' from dual union all
         select '001',  'jkl', '1/5/2009' from dual
       )select * from t
       I was wondering if we have any function's in oracle PL/SQL to do these kind of stuff's
    Any suggestions is greatly appriciated!! Thank you sio much!!
    Edited by: user642297 on Mar 12, 2010 12:21 PM

    SQL> with test_data as(
      2  select '001'id, 'xyz'name, '1/1/2009'start_date from dual union all
      3  select '001',  'abc', '1/2/2099' from dual union all
      4  select '001',  'def', '1/3/2009' from dual union all
      5  select '001',  'ghi', '1/4/2009' from dual union all
      6  select '001',  'jkl', '1/5/2009' from dual union all
      7  select '002',  'ghi', '1/4/2009' from dual
      8  )
      9  select id, max(start_date), max(name) keep (dense_rank first order by start_date desc)
    10  from test_data
    11  group by id;
    ID  MAX(STAR MAX
    001 1/5/2009 jkl
    002 1/4/2009 ghiMax
    http://oracleitalia.wordpress.com

  • Infotype Header Data - Cost center- System to read the latest data

    Dear Group Members,
    I am modifying Infotype Header data and calling Cost center (Field - KOSTL) in header data via modifying header data in   table T588J. The cost center values appears on the  header data (As stored in Infotype 0001) however it appears with the oldest data. i.e. if the employee cost center had been changed after his joining system does not picked up the Latest data/ Latest cost center value.
    Any one on how to resolve this issue with SAP Standard functionality.
    Regards
    VISHAL SAXENA
    SAP Specialist - HCM

    Hi,
    The answer to your question lies in table V_582A_B. You can either access it through SM30 or by following IMG path:
    SPRO>Personnel Management>Personnel Administration>Customizing User Interfaces>Change Screen Header>Header structure per infotype
    There is a u201Cchoose datau201D indicator for each infotype. If that is checked, the header displays data as per the start date of infotype displayed; otherwise, it shows data valid as of system date. Please bring up SAP help on the field by F1 for more information.
    Also check table T588H (data selection field) as it has some dependencies for the above mentioned settings. The table can be brought up from:
    SPRO>Personnel Management>Personnel Administration>Customizing User Interfaces>Change Screen Header> Infotype header data selection control
    Hope this helps.
    Donnie

  • How do I find the latest Critical Sun Solaris Patches on Oracle site

    Hello
    How do I find the latest critical Solaris Patches available to the users. I was searching the list on Oracle's site it's hard to determine which patch is critcal or not. When I type uname -a this is what returns Generic_142909-17.
    Any help you could provide would be appreciated.

    Sorry, I wrote "Monthly" when I meant to write "Quarterly". Apologies for the confusion. My bad.
    From - http://www.oracle.com/technetwork/topics/security/alerts-086861.html
    They are released on the Tuesday closest to the 15th day of January, April, July and October. Starting 2011, the scheduled dates for the release of Critical Patch Updates will be on the Tuesday closest to the 17th day of January, April, July and October. The next four dates are:
    * 19 April 2011
    * 19 July 2011
    * 18 October 2011
    * 17 January 2012
    The CPU for the Solaris Operating System is a rebranded snapshot of the Recommended OS Cluster. The rebranding involves only superficial changes to the patch cluster, with the actual patch content remaining unchanged. The patches contained in this patch cluster are considered the most important and highly recommended patches for Solaris 10. They provide the least amount of change required to address known security, data corruption and availability issues.
    If there's a particular CVE Alert which you're vulnerable to or interested in, then the fix will be released within the patch that corresponds to the area of code the vulnerability affects. You can then apply that patch and it's requirements separate to the clusters. Next time you apply the cluster it will either install the latest rev of the patch or skip it if you have the latest installed already.
    The Recommended Patch Cluster bundle is a much larger collection of patches and contains all the latest patches (at the time of release) which include Solaris updates, Security, and Sun Alert fixes. Note that we merged "Recommended Patch Cluster/Kernel Jumbo Patchset" and the "Sun Alert Patch Clusters" back in June 2010. See http://blogs.sun.com/patch/entry/merging_the_solaris_recommended_and for more information regarding what happened and why.
    Of course there will be a large overlap between the "Recommended OS Cluster" and the "Critical Patch Updates" patchsets will be rolled in to the "Recommended OS Cluster" whenever it's cut and released.
    There's a lot of information in the README files for each cluster so you may want to read those to understand the subtle differences.
    Regards,
    Steve

  • Is it just me that finds the latest version of iTunes a bit rubbish? Is there any way to have a playlist open in a new window?

    Is it just me that finds the latest version of iTunes a bit rubbish? I'm used being able to open a playlist in a separate window in order to browse through my music and easily drag and drop tracks into the playlist (in a separate window). It also meant that I could search and play the contents of my main library and just drag and drop into a large space AND easily hit the stop button and instantly hit the pay button to just start a new tune from a new playlist. Now you can only press pause / play / pause and so on. If I want to view the contents of a playlist while listening to another I need to navigate to it which takes me away from what I'm doing in the other. It just makes for a lot of clicking and navigating around the houses when I used to be able to have multiple windows.
    I'm an avid music fan and just love organising my music to make finding / listening to my favourites eaiser.
    Maybe I'm just a bit thick and not using the software correctly, but it seems that a lot of handy features have been either removed or replaced with inferior ones (at least for me anyway). I appreciate that probably for most generic general music goers this isn't an issue, but for me it is.
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open, but also a chance to have a public moan about a great piece of software that has been updated and gone backwards - a bit like the iPhone google / apple maps situation!

    http://www.apple.com/feedback/kaywerty wrote:
    A rather long winded way of asking if anybody knows if it's possible to have multi-windows open
    It's not possible.
    Suggestions here -> Apple Product feedback

  • How do I search and find the latest albums of a particular genre (Circuit)?

    Hello,
    I'm new to iTunes and the music I want to buy is Circuit Party (House).
    All I want to do is log on and search for and find the latest Circuit Party music albums. Unfortunately, sometimes I will do a search and a song and its album will show up, but the album is not appearing in the "New and Noteworthy" section, even though it is a new release.
    What I have been doing as a workaround is to visite another site which has the latest Circuit music albums and then switching back to iTunes Store to search for each specific album. This is a slow process and a pain!
    I figure I must not be doing something right with the iTunes store, so if you can tell me the best way to find my music, I would really appreciate it!
    Thanks!

    Hi Tom,
    As I can see from what you posted, this correction seems a program correction. You can use SNOTE transaction to apply it. Just download the OSS Note and apply it. The transaction it's pretty simple to use.
    Otherwise if you don't have SNOTE installed you can find them in the following places:
    SELECT_STATE_FOR_CONDTAB_BUILD - This is a function you should find this through the se37.
    Hope it helps.
    Regards,
    Gilberto Li

Maybe you are looking for

  • How do I convert AIFF song files in iTunes to ACC files to fit iPod?

    How do I convert AIFF song files in iTunes to ACC files to fit iPod? My AIFF files are appartently bigger per song than ACC files. How do I convert an AIFF song or playlist in iTunes to ACC files so they take up less room. Right now I can only fit 50

  • Tables are not visible in SQL Developer 3.0 Navigator but are queriable.

    I have installed SQL Developer 3.0 and have connected to an oracle 11g db. I can see all the tables of all the users in the navegation pane when I am logged in with the system account. I can not see any tables in the navagation pane when I am logged

  • WBS Element extraction from R3

    I have created a new extractor for Materials Management and when I extract 'WBS Element', it appears in BW as a number eg. C/LS/0019.01 in R3 appears as 1441 in BW. I extract WBS Element from other areas of R3 and map to the same WBS Element InfoObje

  • Integration between SD to MM, PP and FICO

    Can anyone please post some information about the integration between SD to MM, PP and FICO? I Would greatly appreciate your help. Also some questions that can be asked during an interview regarding the integration. My email address is <removed> Than

  • Abap url not found returncode

    Hey, i need a Function or Method to open an url from ABAP with a returncode not found. At time i use  CL_GUI_FRONTEND_SERVICES=>EXECUTE This function also has the Exception 'File_not_fond', but even if the File is not found, i get the sy-subrc 0. Has