Finding the Max Number

Hi All,
                 I have table from which i have to find out the site and its max number.i fetch all the data in ITAB. now i am not understanding wat to do to find the max number.here is my problem...
Site              Number
1001             2
1001            1
1001            5
1001           50
1001         30
1002          1
1002          100
1002          10
now i have all this data in my ITAB and den it is printing in my alv.
now i want data to be like this...
Site            Number
1001          50
1002         100
plz tell me wat to do...as i am very new in this area.
Thanx,
Vaneet
Moderator Message: Basic Post. Put some effort of your own first.
Edited by: kishan P on Dec 10, 2010 3:42 PM

Pretty straigth forward.
Just sort the internal table by site number descending. That way you know you always have the highest number in the first record for the site.
sort itab by site number descending.
loop at itab.
  at new site.
     itab2-site = itab-site.
     itab2-number = itab-number.
     append itab.
  endat.
  continue.
endloop.

Similar Messages

  • How do I find the max number of sessions ever recorded?

    Hi,
    I see sessions_highwater column in v$license shows the max number of sessions since the database startup time, but I'm wondering if there is a view that shows the max number of sessions ever recorded? (i.e. before the last database restart)
    Thanks!
    Jon

    You can check the number of sessions from the below query using hist views. But you can only go back upto  the retention policy setting.
    SELECT   res.snap_id, s.begin_interval_time, s.end_interval_time,
             res.instance_number, res.resource_name, res.current_utilization,
             res.max_utilization
        FROM dba_hist_resource_limit res, dba_hist_snapshot s
       WHERE s.snap_id = res.snap_id AND res.resource_name = 'sessions'
    ORDER BY s.begin_interval_time, res.instance_number

  • What is the max number of hyperlinks supported in a PDF docment?

    What is the max number of hyperlinks supported in a PDF docment?
    How do I find out how many hyperlinks there are in a PDF document?

    I don't think there's a limit to the number of links you can add to a file...
    This code (taken from the reference files) will report the number of links in your file:
    var numLinks=0;
    for ( var p = 0; p < this.numPages; p++)
    var b = this.getPageBox("Crop", p);
    var l = this.getLinks(p, b);
    console.println("Number of Links on page " + p +" is " + l.length);
    numLinks += l.length;
    console.println("Number of Links in Document is " + numLinks);

  • Finding the minimum number greater than zero in an array

    Hi All,
    I have an Array (Attached). I need to find the minimum number that is NOT zero.
    Using the Array Max & Min returns 0 as the min. What I want is the next minimum number.
    Thank you.
    D
    Attachments:
    Array.jpg ‏72 KB

    Do you also need the position of the found element? What if several numbers have the same minimum value?
    If you just want the value of the smallest nonzero element,  here's what I would do. All you neet to do is retain is a single number.
    This assumes that your zeroes are really zero. With DBL you never know.  
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    SmallestNEZero.png ‏20 KB

  • What is the Max Number of Total Work Process that we can Have on  One C.I

    Hi,
    What is the Max Number of Total Work Process that we can have on a Single C.I
    Is there any Limit that We can only have Perticular Number of Total work process ?
    Or it is just Unlimited number of total work process
    Thanks & Regards
    Dan.

    from the system throughput point of view a rule of a thumb is:
    1 up to 4 sometimes 5 workprocesses per CPU.
    (one is used in Benchmarks where you have a very small number of transactions running with a small amount of database accesses)
    you can easily find it out:
    configure 4 WPs per CPU. If you have a number of WP's consuming nearly no CPU time you can reduce the number of WPs.
    regards
    Peter

  • Finding the max value

    Hi team,
    I have the following query where i need to find the max value
    [code]
      with t as  (
       select 'L1' R_nm ,'Data' R_Data , 'Obj' R_Obj , 'Wd' r_prec , '2' val  from dual
       union all
       select 'L1' , 'Data', 'Obj' , 'No', '4' from dual
    union all
       select 'L2' , 'Data', 'Obj' , 'No', '4' from dual )
       select t.*, max(val) over(partition by r_nm,r_data,r_obj)  rk from t
    [/code]
      My expected output should be
    [code]
    r_nm    r_data     r_obj   r_prec   val     rk
    L1        Data         Obj     Wd       2       1
    L1        Data         Obj     No       4        2
    L2        Data         Obj     Yes      1       1
    [/code]
    Thank You

    Hi,
    It looks like you're not interested in the MAX at all.  It looks like you want to rank the rows, such that the one with the lowest value is assigned the number 1, the row with the 2nd lowest values gets 2, ..., and the row with the N-th lowest value gets N.  If doesn't matter if the MAX is 4, or 2, or 420.
    Here's one way to do that:
    SELECT    t.*
    ,         RANK () OVER ( PARTITION BY  r_nm, r_obj
                             ORDER BY      val
                           )  AS rk
    FROM      t
    ORDER BY  r_nm, r_obj
    ,         val
    Depending on how you want to deal with ties, you might want to use ROW_NUMBER or DENSE_RANK instead of RANK.

  • HT1349 How do you get help from apple if you don't know where to find the serial number of my "product."  I don't know if they mean my itunes program, my iphone, my computer, which one, the number on the computer (is there one), or something in Windows or

    How are you supposed to get help from Apple if you don't know what your serial number is?  They say to input the serial number of the "product" that you are asking about.  Since my problem is how to deauthorize/authorize computers, and they are saying I have more than 5 (which I have never owned more than 5 computers in my life), I can't imagine what serial number they mean.  Does it mean your desktop computer?  If so, which one?  Do they mean your device?  LIke your iPhone, iPod or whatever?  Do they mean the software ON one of your computers and/or devices?  If so, which program, and on which computer/device?
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not.  I only know of 2 computers that have iTunes on them, so how can there be 5?  We also have 2 iPhones and 2 iPods in this family, but one of the iPhones has his own apple id.  He may have been using mine, since his computer died.  I read that those don't count as "computers" to the 5.  Do they, then?
    Help!  I can't contact apple because I have no idea what they mean about serial number.  I doubt they would help me anyway.  In order to get the serial number off my desktop computer (that has iTunes on it already), I will have to move furniture, so I don't want to if that's not it.  Is there some way to find the serial number in the software, either on my desktop or my iPhone?

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • How do I find the serial number of my stolen macbook?

    I recently had stolen my macbook, macbook pro and iphone....and other than retrieving the MEID number of my Iphone, I did not have the serial numbers of the macbooks listed anywhere and I also bought these used online so I did not have a receipt with the serial number either.   I did not have an icloud, any retrieving software, nor itunes.  I did though bring them into the apple store after buying them and had them cleared for my own use and also listed them as devices on my apple account.  After discussing this matter with apple and checking my devices, it came to our attention that my device list had fell off my account due to the person who stole them had cleared them with apple, which automatically puts the macbook devices onto a new account.  Does anyone have any ideas?  I need the serial numbers for the police report.                                            

    How to find the serial number of your Apple hardware product

  • I'm locked out of my IPhone 3 and I cannot find the serial number

    This wouldn't be an issue if I could find the serial number. However, since this is an IPhone 3, I don't know if the serial code is on the outside of the device. I set my password, then when I tried it, it wouldn't let me in. I checked on the back of the device to find the serial number, however, it doesn't seem to be printed.
    It says: 'Designed by Apple in California. Assembled in China. Model Number: ***** FCC ID: ********* IC ID: ****-******'
    I do not know if the FCC ID or the IC ID is the serial number or not. I need the serial number to get service, and I need service to get the serial number. That's my issue.
    My computer, for whatever reason, also cannot download ITunes. Although I know there is a way to do 'recovery mode' with connecting the phone to ITunes, I'm having trouble doing that.

    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • HT1349 I don't have a MAC, I have an HP pavilion a706n so I don't know what the serial number is. The HP serial number was accepted and neither was my itunes serial number. Does anyone know where to find the serial number?

    I am trying to find the serial number that is required by itunes for troubleshooting. But the trouble is, I don't know what it is.
    My computer is a HP (not a MAC). I have the itunes serial number. Before loosing my almost 5000 songs I was using an
    older version of itunes. I thought if I upgraded to the new version that I would get my itunes back. When I noticed the songs
    were gone was when I was taking saved items from my documents into a new 500G hard drive I bought yesterday. After
    loading a bunch of stuff it (not any itunes) I went into itunes and ALL of my songs were gone. What happened? What should
    I do? & Where is that serial number they are talking about?

    Hi Susan,
    Not sure why your post ended up in the Apple Server section but here goes.
    By default your music should be located in one of the following locations
    which you can see by clicking on My Computer
    Windows XP - C:\ - Documents & Settings - Username (your name or your login name) - My Music - iTunes
    Windows Vista/7 - C:\ - Users - Username - My Music - iTunes
    it's unlikely your music has been wiped and more likely that iTunes can't find the library file that tells it what music is in your collection and where it's located. This can happen if you renamed or moved one of the folders above to something/somewhere else. Another idea is to do a search and look for files in a format used by iTunes such as .mp3 or .aac which might show you where they are.
    Hope that helps
    Beatle

  • How can I find the serial number for my creative suite CS6 I bought it from a store.

    How can I find the serial number for my creative suite CS6 I bought it from a store.

    https://www.adobe.com/account.html for serial numbers or subscriptions on your Adobe page... or
    Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How can I find the serial number from CS4 for my mac? I remembered it being on the box, but now I can't find it, and they website I thought to have registered it to doesn't recognize the e-mail I would have used then I got it.

    I don't know if this is the right place to ask this, but the website recommend I ask here. I bought the CS4 when I bought my macbook pro in when I was in college. I remember there being 2 serial numbers, so I could install to one other computer. That macbook pro finally died, and now I have a new mac which I am trying to re-install the creative suite on, only I can't find the serial number.  The two stickers on the back of the CS4 box (which i thought were the serial numbers) don't look like that they're asking for, and the website listed on the inside of the box for me to register to doesn't recognize my e-mail (which hasn't changed since buying CS4).  Any idea where I could find the serial number?

    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html

  • How to find the serial number for more than one Ipod Touch in Itunes?

    I lost my Ipod Touch (first one I bought), how can I find the serial number in Itunes or somewhere else beside I sync my daughter's new Ipod (2nd I bought) with my Itunes account, because when I try to find the serial number they show me only my daughters Ipod, not my Ipod????

    Hover the mouse pointer over your iPod backup in iTunes>Preferences>Devices and the SN will pop up.
    Go to:
    My Support Profile

  • How can we find the Idoc number which posts the material document in SAP

    Hi All,
    How can we find the Idoc number which posts the material document in SAP. We could not able to find the IDOC number from the material document which was posted by Idoc.
    Thanks
    Chandru

    Hi,
    In MIGO you can go to service of object(Just above show overview) and check 5th option workflow you will find the idoc number.
    regards
    suresh

  • Is there a way to find the serial number in these files so that I can reinstall the full version?

    I had to restore from backup to a new hard drive, and only have part of my Adobe Photoshop installation. Is there a way to find the serial number in these files so that I can reinstall the full version?  I have only part of the documentation so this is the best way I see to get the full version back.

    Hello brad,
    you did purchase your product from these firms like Amazon, so you didn't get a serial number, only a code with which you can request a serial number from Adobe. Please have a look at http://helpx.adobe.com/x-productkb/global/find-serial-number.html. (Start here: How did you purchase your product?)
    The following part, so I just see at least, ceased to exist on my Adobe website, everything takes place in the link from above. I leave it as an info yet, it might still fit for you. For this purpose, please click your way through to your Adobe Store and find the button "Get Serial Number". Fill in the form and after a while you will get the real serial number.
    Additionally you should have a look at Adobe's database, to see what's stored/saved about your accounts. Here you will find general infos about your Adobe Account.
    On the other hand, if necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use the chat, I for may part had the best experiences. I quote from Adobe's employee Preran: The chat button is activated as soon as there is an agent available to help.
    Hans-Günter

Maybe you are looking for

  • How to put values in a HashMap dynamically using a ArrayList as 'value'

    i have to generate different maps dynamically by passing arraylist (which is also dinamically increasing) in the value. i want to use : List myList=new ArrayList(); for(..........){ Map mymap=new HashMap(); myMap.put(key, myList.add(objectBean)); ===

  • How much memory does SQL Server 2008R2 Standard use on Windows Server 2008 R2 64-bit?

    Hi, can anyone tell me how much RAM will really be used by SQL Server? 72 GB are currently installed. As Windows is only able to use 32 GB is SQL Server able to use the other 40GB + the unused part of the first 32 GB? Thank you very much! BR Matthias

  • Ipod Nano does not appear in Itunes source

    Hi all I have an Ipod Nano and an Ibook, however when i plug my Nano into my Ibook it will not appear in the source menu in Itunes, but the nano does appear on my desktop. I am using Itunes Version 1.1.2, do i need to up grade my Itunes before it wil

  • Could you pls answer this

    What all the thing should be used in order to improve the performance and what all the thing should be avoided ? Explain abt control brk statement ? Could you pls give me clear explanation for CHECK,EXIT,STOP ? In real time, what is the steps which i

  • Minor Point:  Where's the compass app?

    does it come with the 3.0 upgrade? or only available with the new 3gs? because its not on my newly upgraded 3g, and everything i read indicated it should be. thanks