Problem in getting Norms for each BOM

Hi Experts,
I am doing a report for stock with subcontractors and I am facing a problem in getting the accurate
Norms (STPO~MENGE) against the BOM (STPO~STLNR)  for each EBELN.
My requirement is :
1. Finished Goods - ( MSEG~MATNR)  or (EKPO~MATNR) but mseg-matnr is more prefered as  my output  is  based on the  mkpf-budat , WHERE BWART IN ('101','102')  then
MSEG~EBELN.
IF EKPO-PSTYP  ne  ' 3 '   delete Finished goods.
Then I take raw materials for finished goods and BOM for each rawmaterials.
2. Raw materials -  select (RESBMATNR, RESBSTLNR, RESBSTLKN, RESBSTPOZ)  where resb-baugr = mseg-matnr and ebeln = mseg-ebeln.
Now I am facing problem in getting NORMS against each BOM.
3. Norms - * select STPOMENGE where STLNR = RESBSTLNR , IDNRK = RESB~MATNR,
                    STPOZ = RESB~STPOZ.
But I am not getting the correct Norms for each EBELN, please advice if my logic is wrong or if my
tables are wrong.
Thanks
Karthik.
Edited by: Karthik R on Mar 13, 2009 10:32 AM
Edited by: Karthik R on Mar 13, 2009 10:32 AM
Edited by: Karthik R on Mar 13, 2009 10:33 AM

Hi Karthik,
You try this one, which I already tried and working fine for me when i developed a custom's enquiry report,
here is a peice of code,
  SELECT  ABUDAT AXBLNR BMBLNR BZEILE
          BBWART BEBELN BMENGE BDMBTR B~KUNNR
          INTO CORRESPONDING FIELDS OF TABLE IT_FINAL
          FROM MKPF AS A INNER JOIN MSEG AS B ON AMBLNR = BMBLNR AND
                                                 AMJAHR = BMJAHR
          WHERE A~BUDAT IN S_BUDAT AND
                B~MATNR = WA_IMAT-MATNR AND
                B~WERKS IN S_WERKS .
  IF NOT IT_FINAL IS INITIAL.
    SELECT MATNR WERKS STLAN STLNR STLAL
           FROM MAST INTO TABLE IT_MAST
           WHERE MATNR = WA_IMAT-MATNR AND
                 WERKS IN S_WERKS AND
                 STLAN = '1'.
  ENDIF.
  IF NOT IT_MAST IS INITIAL.
    SELECT STLTY STLNR STLAL DATUV BMEIN BMENG
           FROM STKO INTO TABLE IT_STKO
           FOR ALL ENTRIES IN IT_MAST
           WHERE STLNR = IT_MAST-STLNR AND
                 STLAL = IT_MAST-STLAL AND ( STLTY = 'D' OR STLTY = 'E' OR STLTY = 'K' OR
                                             STLTY = 'M' OR STLTY = 'S' OR STLTY = 'T' OR STLTY = 'P' ).
  ENDIF.
  IF NOT IT_STKO IS INITIAL.
    SELECT STLNR DATUV IDNRK POSNR MEINS MENGE
           FROM STPO INTO TABLE IT_STPO
           FOR ALL ENTRIES IN IT_STKO
           WHERE STLNR = IT_STKO-STLNR AND STLTY = IT_STKO-STLTY.
  ENDIF.
  IF NOT IT_STPO IS INITIAL.
    SELECT MATNR MAKTX
           FROM MAKT INTO TABLE IT_MAKT
           FOR ALL ENTRIES IN IT_STPO
           WHERE MATNR = IT_STPO-IDNRK AND
                 SPRAS = 'EN'.
  ENDIF.
  LOOP AT IT_STKO INTO WA_STKO.
    " Own Custom Logic, If Item Quantity is 500 KG, how to calculate per KG, Simple divide by the same Qty.
    IF WA_STKO-BMEIN = 'KG'.
      LOOP AT IT_STPO INTO WA_STPO.
        WA_STPO-RATIO = WA_STPO-MENGE / WA_STKO-BMENG.
        MODIFY IT_STPO FROM WA_STPO.
        CLEAR : WA_STPO.
      ENDLOOP.
    ENDIF.
    CLEAR : WA_STKO.
  ENDLOOP.
  LOOP AT IT_STPO INTO WA_STPO.
    LOOP AT IT_MAKT INTO WA_MAKT.
      MOVE-CORRESPONDING WA_MAKT TO WA_STPO.
      DELETE TABLE IT_MAKT FROM WA_MAKT.
      CLEAR : WA_MAKT.
      EXIT.
    ENDLOOP.
    MODIFY IT_STPO FROM WA_STPO.
    CLEAR : WA_STPO.
  ENDLOOP.
  LOOP AT IT_FINAL1 INTO WA_FINAL1 WHERE BWART = '101' OR BWART = '102'.
    MOVE WA_FINAL1-BUDAT TO WA_FINAL2-BUDAT.
    MOVE WA_FINAL1-EBELN TO WA_FINAL2-EBELN.
    MOVE WA_FINAL1-MENGE TO WA_FINAL2-MENGE.
    MOVE WA_FINAL1-DMBTR TO WA_FINAL2-DMBTR.
    APPEND WA_FINAL2 TO IT_FINAL2.
    CLEAR : WA_FINAL1.
  ENDLOOP.
Thanks & Regards,
Dileep .C

Similar Messages

  • When I input song information into "get info" for each of my songs, some do not save when I close my Itunes. When I click on the song the correct info pops back up.Why?

    When I input song information into "get info" for each of my songs, some do not save when I close my Itunes. When I click on the song the correct info pops back up.Why?

    I ran into the same problem, I think that, If you tab on a song that is on your IPOD, and the song data is grayed-out, I think it means that the song is probably twice on your IPOD and that the iTunes directory can not edit THAT song data for two (or more) files @once. Check if this is the case, sinceI have the same problem,am looking for a way to have One and the same song in more playlists but only keep the song once on the IPOD.

  • How to get LASTDAY for each and every month between given dates..

    Hi Friend,
    I have a doubt,How to get LASTDAY for each and every month between given dates..
    for ex:
    My Input will be look like this
    from date = 12-01-2011
    To date = 14-04-2011
    And i need an output like
    31-01-2011
    28-02-2011
    31-03-2011
    is there any way to achieve through sql query in oracle
    Advance thanks for all helping friends

    Here's a 8i solution :
    select add_months(
             trunc(
               to_date('12-01-2011','DD-MM-YYYY')
             ,'MM'
           , rownum ) - 1 as results
    from all_objects
    where rownum <= ( months_between( trunc(to_date('14-04-2011','DD-MM-YYYY'), 'MM'),
                                      trunc(to_date('12-01-2011','DD-MM-YYYY'), 'MM') ) );
    The above two query is worked in oracle 11GActually the first query I posted is not correct.
    It should work better with
    months_between(
       trunc(to_date(:dt_end,'DD-MM-YYYY'),'MM'),
       trunc(to_date(:dt_start,'DD-MM-YYYY'),'MM')
    )Edited by: odie_63 on 12 janv. 2011 13:53
    Edited by: odie_63 on 12 janv. 2011 14:11

  • Are there any ways to get sequence number other than getting it for each re

    are there any ways to get sequence number other than getting it for each record

    CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
    Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
    Cheers, APC
    SQL> create sequence seq cache 3
      2  /
    Sequence created.
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              1
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             1
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             2
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             3
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             4
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              7
    SQL>

  • How to get IAttributeStrand for each Cell in Table

    Hello All,
    I am trying to set the font and size depending upon the user inputs under each cell in the table.
    For Text frame I am able to achieve this by using ITextModel->QueryStrand(). But for Table I am not able to find any function which can allow me to query the Cell Strand and allow to apply the attributes.
    Has anyone been able to achieve the same. If so please do let me know its urgent.
    Thank you all in advance.
    regards
    Farzana.

    Hi,<br /> <br />Thanks for the prompt reply. By the way I forgot to mention that we are using the same in CS3.<br />We tried as you have mentioned in your mail. But we did not find any way to achieve the ITextStoryThread from ICellConent. We tried all possible ways but we always get the Text Frame TextModel.<br />We have used following code to get TextModel for each cell. We get correct startindex and endindex for each cell and also get the valid TextModel Interface. But when we try to find out its length then it returns the whole TextModel length. <br />Thus when we try to apply different attributes for each cell then it applies to whole table. <br />E.g. When we try to apply 12 font size for 1st cell then it also applies to remaining cells.  So we think we are not able to find out correct TextModel for each cell. <br /> <br />Below is our snippet of code on what we tried.<br /> <br />ITableModel::const_iterator iterTable(tableModel->begin());<br />ITableModel::const_iterator end(tableModel->end());<br /> <br />while(iterTable != end) <br />{<br />GridAddress gridAddress = *iterTable; <br />GridID gridid= tableModel->GetGridID(gridAddress);<br /> <br />   InterfacePtr<ITableTextContainer> tableTextContainer(tableModel, UseDefaultIID());<br />   if(tableTextContainer != nil) <br />   {<br />       InterfacePtr<ITextModel> textModel(tableTextContainer->QueryTextModel());<br />       if(textModel != nil) <br />       {<br />          InterfacePtr<ITextStoryThreadDict> textStoryThreadDict(tableModel, UseDefaultIID());<br />          if (textStoryThreadDict != nil) <br />          {<br />              InterfacePtr<ITextStoryThread> textStoryThread(textStoryThreadDict->QueryThread(gridid));<br />              if (textStoryThread != nil)<br />              {<br />                 InterfacePtr<ITextModel> iTextModel(textStoryThread->QueryTextModel());<br />                 if (iTextModel != nil)<br />                 {<br />                      TextIndex startIndx;<br />                      TextIndex endIndx;<br />                      startIndx=textStoryThread->GetTextStart(&endIndx);<br />                 }<br />                 else<br />                     CAlert::ErrorAlert("iTextModel == nil");<br />             }<br />          }<br />       } <br />   }<br />                                     <br />   ++iterTable;    <br /> }<br /><br />Regards,<br />Farzana.

  • GETTING COUNTS FOR EACH SSN

    I am doing a report in ORACLE REPORT WRITER. How can I get counts for each SSN. I want to check the last 7 SSNS
    and if the competence codes are different get a count for them. If the fitness codes are different get a count for them. This is for each SSN. Sometimes SSNS may have different competence codes but the fitness codes are the same. I still need counts for the competence codes. Other times the SSNS have different fitness codes but the competence codes are the same and I need counts for the fitness codes. Other times the fitness codes are different and the competence codes are different and I need counts for the fitness codes and counts for the competence codes. Here is a sample of what the report should look like:
    SSN TOTAL TOTAL
    Competence Fitness
    000000111 13 6
    000000222 6 0
    000000333 0 7
    I have everything wrapped up under one count. I don't know to change the query to display 2 separate counts.
    I have used Summary Columns but that does not work.
    I could use 2 separate querys and get counts for competence and fitness respectively but the SSNS would be out of order. The SSNS must be in order.
    Here is the query.
    SELECT DISTINCT T2.IND_SSN, COUNT(*)cnt1
    FROM (SELECT distinct(t.ind_ssn), t.ind_competence_rtg_old, t.ind_competence_rtg_new, ROW_NUMBER()
    OVER (PARTITION BY t.ind_ssn ORDER BY t.IND_SSN ASC, t.ind_er_per_end_dt DESC) rn
    FROM NCOER_JRNL T) t2
    WHERE t2.rn <= 7
    and (t2.ind_competence_rtg_old <> t2.ind_competence_rtg_new)
    GROUP BY T2.IND_SSN
    UNION
    SELECT DISTINCT T2.IND_SSN, COUNT(*)cnt2
    FROM (SELECT distinct(t.ind_ssn), t.ind_FIT_rtg_old, t.ind_FIT_rtg_new, ROW_NUMBER()
    OVER (PARTITION BY t.ind_ssn ORDER BY t.IND_SSN ASC, t.ind_er_per_end_dt DESC) rn
    FROM NCOER_JRNL T) t2
    WHERE t2.rn <= 7
    and (t2.ind_FIT_rtg_old <> t2.ind_FIT_rtg_new)
    GROUP BY T2.IND_SSN
    ORDER BY 1

    Thanks for you reply Ricardo. It does work (but only if select 1 ticket).
    My bad I only posted one Ticket Number. Actually there are lots of them ( as below). Your code take all the tickets as one tickets.
    TicketNumber
    OwningTeam
    Status
    Date
    Team Number
    123
    TEAM 1
    Pick Up
    11/12/2014
    1
    123
    TEAM 1
    Complete
    11/12/2014
    1
    123
    TEAM 2
    Pick Up
    11/12/2014
    2
    123
    TEAM 2
    Complete
    11/12/2014
    2
    123
    TEAM 2
    Resolve
    11/17/2014
    2
    123
    TEAM 2
    Complete
    11/24/2014
    2
    123
    TEAM 2
    Pick Up
    12/8/2014
    2
    123
    TEAM 2
    Complete
    12/9/2014
    2
    123
    TEAM 2
    Provide Info
    12/17/2014
    2
    123
    TEAM 1
    Pick Up
    1/8/2015
    3
    123
    TEAM 1
    Resoved
    1/8/2015
    3
    456
    TEAM 1
    Pick Up
    11/12/2014
    1
    456
    TEAM 1
    Complete
    11/12/2014
    1
    456
    TEAM 2
    Complete
    11/24/2014
    2
    456
    TEAM 2
    Pick Up
    12/8/2014
    2
    456
    TEAM 2
    Complete
    12/9/2014
    2
    456
    TEAM 3
    Pick Up
    12/17/2014
    3
    456
    TEAM 3
    Working
    12/18/2014
    3
    456
    TEAM 1
    Pick Up
    1/8/2015
    4
    456
    TEAM 1
    Resoved
    1/8/2015
    4
    789
    TEAM 1
    Pick Up
    11/12/2014
    1
    789
    TEAM 1
    Complete
    11/12/2014
    1
    789
    TEAM 2
    Complete
    11/24/2014
    2
    789
    TEAM 2
    Pick Up
    12/8/2014
    2
    789
    TEAM 2
    Complete
    12/9/2014
    2
    789
    TEAM 1
    Complete
    12/12/2014
    3
    Any work around is really appreciated.
    Thanks,
    Rajneet

  • How to get sum for each currency's in ALV Report

    Hi,
    A column has amounts with various currency's.
    May I know how to get sum quantity for each currency in ALV Report?
    Thanks in advance.

    Hi,
    Currency value column should have reference to currency code column.
    Regards,
    Wojciech

  • How to get top10 for each brand..

    Hi all,
    I have a table which contains brands information. to get top10 sites for a brand, we can use the following query.
    select brand,site,sales from (
    select brand,site, sales
    from all_brands_info
    where brand = :p_brand
    order by sales desc)
    where rownum<10
    There are 15 brands. If i want top10 sites for each brand, how can i...
    Please help me,
    satti.

    Given your sample data and desired output, I don't see how rownum would help. I think you need something more like:
    SQL> WITH t AS (SELECT 'A' brand, 'S1' site, 30 sales FROM dual UNION ALL
      2             SELECT 'A', 'S2', 40 FROM dual UNION ALL
      3             SELECT 'A', 'S2', 20 FROM dual UNION ALL
      4             SELECT 'A', 'S3', 20 FROM dual UNION ALL
      5             SELECT 'A', 'S4', 35 FROM dual UNION ALL
      6             SELECT 'B', 'S1', 40 FROM dual UNION ALL
      7             SELECT 'B', 'S2', 35 FROM dual UNION ALL
      8             SELECT 'B', 'S3', 50 FROM dual UNION ALL
      9             SELECT 'B', 'S3', 30 FROM dual UNION ALL
    10             SELECT 'B', 'S4', 45 FROM dual UNION ALL
    11             SELECT 'C', 'S1', 40 FROM dual UNION ALL
    12             SELECT 'C', 'S2', 35 FROM dual UNION ALL
    13             SELECT 'C', 'S3', 10 FROM dual UNION ALL
    14             SELECT 'C', 'S4', 30 FROM dual)
    15  SELECT brand, site, sales, rn
    16  FROM (SELECT brand, site, sales,
    17               ROW_NUMBER() OVER (PARTITION BY brand
    18                                  ORDER BY sales DESC) rn
    19        FROM (SELECT brand, site, SUM(sales) sales
    20              FROM t
    21              GROUP BY brand, site))
    22  WHERE rn <= 2;
    B SI      SALES         RN
    A S2         60          1
    A S4         35          2
    B S3         80          1
    B S4         45          2
    C S1         40          1
    C S2         35          2However, as I said before, you may want to look at rank and dense_rank depending on how you feel about ties. For example, for brand A if I add another 5 to site S1 making a tie with S4 for second highest see the differences in the values between row_number, rank abd dense_rank:
    SQL> WITH t AS (SELECT 'A' brand, 'S1' site, 30 sales FROM dual UNION ALL
      2             SELECT 'A', 'S2', 40 FROM dual UNION ALL
      3             SELECT 'A', 'S2', 20 FROM dual UNION ALL
      4             SELECT 'A', 'S3', 20 FROM dual UNION ALL
      5             SELECT 'A', 'S4', 35 FROM dual UNION ALL
      6             SELECT 'A', 'S1', 5 FROM dual)
      7  SELECT brand, site, sales,
      8         ROW_NUMBER() OVER (PARTITION BY brand
      9                            ORDER BY sales DESC) rn,
    10         RANK() OVER (PARTITION BY brand
    11                      ORDER BY sales DESC) rnk,
    12         DENSE_RANK() OVER (PARTITION BY brand
    13                            ORDER BY sales DESC) drnk
    14  FROM (SELECT brand, site, SUM(sales) sales
    15        FROM t
    16        GROUP BY brand, site);
    B SI      SALES         RN        RNK       DRNK
    A S2         60          1          1          1
    A S1         35          2          2          2
    A S4         35          3          2          2
    A S3         20          4          4          3John

  • Problem to get authorization for digital edition

    I have downloaded Digital Edition. Either it would give an connection error but internet is connected or it will show that have to wait to get authorization for this computer and it happen that I waited a whole day but nothing. What must I do please?

    Hi, I am getting the same error... saying there is an authorization error and to check that I am connected to the internet, which I am. Any help?

  • I'm using AOL for email and Firefox 9.0.1. Problem started 2 days ago. Before that I put in the first two letters of an email address and it gave me a list of possibles. Now I get "undefined" for each possible instead of the email address.

    After updating to Firefox 9.0.1 there were no problems. My contact list still shows as it did before this problem arose. When I type in the first letter or two of the email address, it used to give me a list of possibles. Now t is just showing the email address as "undefined" when it gives me suggestions for the email address I'm typing in the send line. This means that instead of being able to click on my choice in the possibles it gives me, I have to go to my contact list, find the name and then click on it if I'm sending the email to one person. If it goes to more than one, I either have to type in the full address or use copy and paste from the contact list. This is a huge hassle. Any help is appreciated.

    I moved the file formhistory.sqlite to another file folder. I then started Firefox up again to see if it worked or if I needed to start it in Safe Mode. No need for Safe Mode. It now works exactly as it should. Thank you so much!!

  • Problem with implemnting delete for each record in the report

    Hello all,
    I am having trouble implementing the following requirement in my application.
    In the reports, in each row..I need a delete button. Only few Users( Managers/Administrators) should be able to view this button. Rest should be able to see the normal report. Also when the user clicks on delete, the record should not be actually deleted but a column named Active/Inactive should be made InActive.( The report has only records which are active).
    My problem is when the user clicks on edit button, I dont want to go to another page and perform delete operation. I should be able to modify the record in the same report page. Is this possible?
    It would be really great if someone can give me inputs on how to do this..
    Thanks,
    shravanthi

    See this link for possible solution:
    Coding a delete process
    You will need to modify to do your "Delete"
    There is also Dene's Wonderful example application that shows a similar idea, but again you will need to modify to get your "delete" status set in the rows
    how to update records marked by [row selector] ?
    Thank you,
    Tony Miller
    Webster, TX

  • How to get Runtime for each statement in abap program

    Is there any tool which tells the runtime of each statement in our program..apart from sto5 and se30
    Thanks in advance
    PRASANNA

    Determining the calculation time for calculating the tangent of 1. Since the runtime of the statement is less than a microsecond, the runtime of several executions in an inner loop is measured. The exection time for the loop itself is also measured in order to deduct it as an offset. These measurements are executed several times in an outer loop and the mean value is created using division by n0. Through division by ni, the runtime of an individual statement is determined.
    DATA: t0    TYPE i,
          t1    TYPE i,
          t2    TYPE i,
          t3    TYPE i,
          t4    TYPE i,
          tm    TYPE f,
          no    TYPE i VALUE 100,
          ni    TYPE i VALUE 1000,
          res   TYPE f.
    DO no TIMES.
      GET RUN TIME FIELD t1.
      DO ni TIMES.
        res = TAN( 1 ).
      ENDDO.
      GET RUN TIME FIELD t2.
      GET RUN TIME FIELD t3.
      DO ni TIMES.
      ENDDO.
      GET RUN TIME FIELD t4.
      t0 = t0 + ( ( t2 - t1 ) - ( t4 - t3 ) ).
    ENDDO.
    tm = t0 / ni / no.
    Source: SAP Help.
    Regards,
    Santosh

  • Servlet Filters : how many times a filter get executed for each reques

    <p>Hello I am fairly new to ServletFilters and I am experiencing a really annoying problem.</p> <p>I have filter that I want to check every request so if the user enters a uri I will check it and forward them somewhere but if I try to set a condition to check the uri and forward, it stops the filter from processing the rest of the images and they do not show up on the page. It looks like the filter is called for every image I load into memory too</p>here is the code :</p>
    <pre>
    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    HttpServletRequest request = (HttpServletRequest)req;
    HttpServletResponse response = (HttpServletResponse)resp;
    HttpSession session = request.getSession(true);
    boolean flag = true;
    RedirectInfo currentRedirect = null;
    String uri = request.getRequestURI();
    //If it is a first request I let them go to the first page
    if(uri.equals("/home.jsp") || uri.equals("/") || uri.equals("/home.do")){
    RequestDispatcher rd2 = request.getRequestDispatcher("/home.jsp");
    rd2.forward(request, response);
    System.out.println("in the first condition all is good");
    return;
    }else{
    //This is to stop the filter from being called twice
    if(currentRedirect != null && currentRedirect.equals("null")){
    RequestDispatcher rd3 = request.getRequestDispatcher("/home.jsp");
    rd3.forward(request, response);
    return;
    currentRedirect = RedirectManager.searchByRedirect(request.getRequestURI(), taskUid);
    if(currentRedirect != null){
    //Here we send the client to the requested URI if it exists in the database
    RequestDispatcher rd = request.getRequestDispatcher(currentRedirect.getRedirect());
    rd.forward(request, response);
    //This is to stop the filter from being called twice
    currentRedirect.setRedirect("null");
    System.out.println("in the redirect condition all is good");
    return;
    if(currentRedirect == null){
    RequestDispatcher rd1 = request.getRequestDispatcher("/home.jsp");
    rd1.forward(request, response);
    return;
    System.out.println("the URI is: "+request.getRequestURI());
    chain.doFilter(request, response);
    </pre>
    <br>
    Any help would be great @;)
    <br>
    Steven Nelson

    <p>Hello I am fairly new to ServletFilters and I am
    experiencing a really annoying problem.</p> <p>I have
    filter that I want to check every request so if the
    user enters a uri I will check it and forward them
    somewhere but if I try to set a condition to check the
    uri and forward, it stops the filter from processing
    the rest of the images and they do not show up on the
    page. It looks like the filter is called for every
    image I load into memory toodepends on the where the images resides. if they reside inside an director that the filter is mapped too, then upon every image the filter is called too. For every image inside a html document an new request is formed.

  • Map Coord, Tile , problems with getting tile for a coord

    Hello,
    I got a following question of which i unfortunately don't see the answer ...
    I've a class Coordinate and a class Tile.
    Now when i'm loading the tiles,
    format: x y z color ...
    i put them in a Map Map<Coord, Tile>, where coord is x,y,z and Tile contains color etc
    so basically i want to do is this:
    Coordinate c = new Coordinate(1,1,0);
    map.get(c);But this returns null because it isn't mapped ...
    I know by creating a new coordinate it creates a new object, so it's normal it returns null.
    Though i want something like that so i can call the method above, but i just don't see it.
    The only way i can think of is looping through the keys, getting x, y and z of them, and check if they equal
    the x y and z of the new coordinate. Still i don't know if this would be a good solution, as i have - 10000 coords and about 5 differen heights so about - 50000 coordinates
    Any ideas ?
    Thanks in advance!
    Edited by: Kolarius on Apr 28, 2009 11:48 AM

    Your Coordinate class needs to override the hashCode and equals methods in a suitable manner. Read about those methods in the API documentation for java.lang.Object.

  • Getting number for each column value based on Date order

    Hi,
    I have Data look like:
    I need to create new column highlighted in red (Team Number). Even if same team comes in several number of times, it should be tracked as new team with whatever is the next number. For eg. team2 comes second time, its is called as 3. If Team 2 comes again
    then it will be 4.
    Any help is appreciated.
    Thanks,
    Punia 

    Thanks for you reply Ricardo. It does work (but only if select 1 ticket).
    My bad I only posted one Ticket Number. Actually there are lots of them ( as below). Your code take all the tickets as one tickets.
    TicketNumber
    OwningTeam
    Status
    Date
    Team Number
    123
    TEAM 1
    Pick Up
    11/12/2014
    1
    123
    TEAM 1
    Complete
    11/12/2014
    1
    123
    TEAM 2
    Pick Up
    11/12/2014
    2
    123
    TEAM 2
    Complete
    11/12/2014
    2
    123
    TEAM 2
    Resolve
    11/17/2014
    2
    123
    TEAM 2
    Complete
    11/24/2014
    2
    123
    TEAM 2
    Pick Up
    12/8/2014
    2
    123
    TEAM 2
    Complete
    12/9/2014
    2
    123
    TEAM 2
    Provide Info
    12/17/2014
    2
    123
    TEAM 1
    Pick Up
    1/8/2015
    3
    123
    TEAM 1
    Resoved
    1/8/2015
    3
    456
    TEAM 1
    Pick Up
    11/12/2014
    1
    456
    TEAM 1
    Complete
    11/12/2014
    1
    456
    TEAM 2
    Complete
    11/24/2014
    2
    456
    TEAM 2
    Pick Up
    12/8/2014
    2
    456
    TEAM 2
    Complete
    12/9/2014
    2
    456
    TEAM 3
    Pick Up
    12/17/2014
    3
    456
    TEAM 3
    Working
    12/18/2014
    3
    456
    TEAM 1
    Pick Up
    1/8/2015
    4
    456
    TEAM 1
    Resoved
    1/8/2015
    4
    789
    TEAM 1
    Pick Up
    11/12/2014
    1
    789
    TEAM 1
    Complete
    11/12/2014
    1
    789
    TEAM 2
    Complete
    11/24/2014
    2
    789
    TEAM 2
    Pick Up
    12/8/2014
    2
    789
    TEAM 2
    Complete
    12/9/2014
    2
    789
    TEAM 1
    Complete
    12/12/2014
    3
    Any work around is really appreciated.
    Thanks,
    Rajneet

Maybe you are looking for