Filter on last value available considering the order

i have a requiremnet in which i have to filter the records fro material ids  based on the last value available considering the following  order
AB
PC
ZU
VP
KB
Can someone help me with this.
Thanks in advance

What you explained doesnt make any sense. What determines which is last value? Is there a column to determine that? Please elaborate giving some sample data.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Similar Messages

  • Sequence get the last value (or store the .NEXTVAL anywhere)

    Hi there,
    I created some tables and one table references the other (foreign key).
    Now I want to add some test data and insert rows to both tables.
    My problem is:
    The "insert into command" for table a uses a sequence value to create the primary key. Now I need the assigned primary key in my second insert command to assign the right value to the foreign key.
    Is there a way to get the last assigned value from a sequence? Or can I store the key to some sort of variable and use this in both statements?
    Thx a lot
    Dominik

    Is there a way to get the last assigned value
    from a sequence?
    NEXTVAL return next available value in the sequence.
    If you want last returned value you need to use
    CURRVAL instead.
    >SELECT <your_sequence>.CURRVAL from dual;Peter D.Currval not work always, read the following example :
    Re: auto generating primary key
    Nicolas.

  • How to get the last value edited by users from JTable?

    Hi.
    I have a JDialog that includes an editable JTable. This table is used to set up field caption and font for a report program. I found only when cursor is moved to another cell, the value in current cell being edited will be transferred to Table Model. So if the user don�t move cursor to another cell after editing the value of a cell but click OK button directly, Table Model cannot get the last value edited by the user, I wonder if there is a way to fire JTable to transfer the value being edited to Table model.
    By the way, I found if the TableCellEditor is using JCheckBox or JComboBox instead of JTextField, there is no this problem.
    Thank you for any reply.

    I guess you can make use of the following methods on your table model to inform it make it getValueAt bcos table data has changed.
    fireTableCellUpdated
    Notifies all listeners that the value of the cell at [row, column] has been updated.
    fireTableChanged
    Forwards the given notification event to all TableModelListeners that registered themselves as listeners for this table model.
    fireTableDataChanged
    Notifies all listeners that all cell values in the table's rows may have changed. The number of rows may also have changed and the JTable should redraw the table from scratch. The structure of the table (as in the order of the columns) is assumed to be the same.
    But when to call these methods??
    -- When OK button is pressed, do this as the first thing!!
    OR
    -- Call this on every key event!!
    regds,
    CA

  • Mail AND entourage showing contacts in the order last name, first name?

    hi, I want to use mail and entourage parallel. mail can display the name in the "correct" order last name, first name. using entourage I cannot find this option. it´s always a mess, sorted by last name, but in the order: first name last name.
    Does somebody know the solution how to tell entourage to behave like mail in this matter ?

    Templeton's suggestion is best if needing help with Microsoft Entourage. Since I know the answer is "not possible" I can at least steer you toward an AppleScript that will give you a workaround. Have a look here <http://www.barryw.net/weblog/files/category-5.html>.
    Further questions about this script should be directed either to its author or to Microsoft's Entourage newsgroup <http://groups.google.com/group/microsoft.public.mac.office.entourage>.
    Hope this helps! bill
    1 GHz Powerbook G4   Mac OS X (10.4.9)  

  • How to determine the "Last Value" in exception aggregation

    Hi gurus,
    I have a KeyFigure with an exception aggregation -Last value- by time.
    I report on a multiprovider ("containing" a infocube and a realtime infocube with BPS-InputLayout). I can correct separate Items with this BPS-Layout. So, at the end I have 2 values for one item.
    So, by these facts, my report shows the the last value for the specific KeyFigure, but I expected that both values (the value in the infocube and the correction via BPS)are sumed up.
    As this is due to the exception aggregation not the case, I could "overwrite" the normal value in the infocube with the BPS.
    But SAP determines the normal value in the Infocube as "Last Value", not the one in the correction cube, which is entered via BPS.
    How does SAP determine the "last value" as I can´t see any date...
    Thanks in advance!

    Thank you for your answer...
    I got the soltion by myself.
    I thought, Last Value means the last Value, depending on the time, but in my opinion the function last value should be called "Greatest Value".
    All figures with the same value for the reference characteristc are aggregated anyway.

  • Audit of attribute value change: is the old value available?

    When changing the value of an user attribute in the FIM Portal, the new attribute value is properly logged. This can be read in the request and in the standard report FIMUserHistory.
    The question is, what about the old value that was replaced? Is the old value available in the Data Warehouse somewhere, so one can make a report or is it gone forever (of course one can find the old value by looking at the previous attribute change or creation
    event, but this could be too long time ago)?
    Thanks for helping,
    Didier.

    As far I remember (I don't have access to test FIM Reporting now) in reports stored on Data Warehouse, there is no such thing as "old value". But as far I remember it, also very old data is stored there, so there can be something like:
    User: JJK003 -> New attribute (mail) value: [email protected] (12.12.2013)
    User: JJK003 -> New attribute (mail) value: [email protected] (12.02.2014)
    so, if you look closely to a history and sort it by user - you can determine what was the old value.
    http://technet.microsoft.com/en-us/library/jj133843(v=ws.10).aspx
    In report, you have always most recent display name of this user and of attribute's display name, but history should show what value was inserted long time ago and what value was set a week ago - than you know what value was there previously.
    But please be aware that users report, according to TechNet, does not include all properties:
    This report provides information about changes to key attributes on user resources in FIM, including account name, email, job title, and
    employee start/end date.
    Keep trying

  • Last Value Exception Aggregation

    Hi.
    I have a KF with excpetion aggregation with Last Value based on CALWEEK. I have to calculate the 'for the month' and the YTD value for this in a query. When I execute the query, the system fetches the last value for the month for 'for the month'. However, it gets the same last value for the YTD as well. How do I change this to get the sum of last value of all the months for the YTD Value. For example, if I am looking in sep 2008, the for the month value should be the last week of Sep 2008 and the YTD should be the sum of all the last values for months Jan -08 to Sep-08.
    Cheers
    Anand

    Hello Vikram
    One possible solution I can think of is to use an extra ODS in order to hold your data in an aggregated form that suits you. Unfortunately the exceptional aggregation behaviour does not work outside reporting thus in the transfer rules from your data provider to this new ODS you should add a formula checking whether the new record to be transfered to the ODS has a date newer than the ones already transfered in the ODS. Else it should skip the current record and proceed to the next one.
    Another possible solution would be to use the APD and transfer the results of the query you are already playing in an ODS (this way you take advantage of the exceptional aggregation behavior) and by transfering your records to a second ODS you can achieve the aggregation you need.
    Assign points if any of the above helped

  • Selecting last value for a given date

    I've read some of the other threads on the this tope, but can't find a resolution.
    My query is supposed to get the last values for the given two days (start date and end date) and I return the difference between the two values. The query as it is only works for days where there is an entry for 12:00 pm. On some days, it will therefore return nothing. But I'm not sure how to get it to choose the last value for the given day and still remain a fast query.
    Here is a sample of the query with dates that return a result.
    SELECT max_query.sgnl_id as sgnl, max_query.max_val - min_query.min_val result_val
       FROM
      (SELECT t1.sgnl_id, t2.smpl_dte, t1.pv_id,
        MAX(t2.integ_since_val) AS max_val
         FROM diag.blm_acct t2, diag.pv_sgnl_id_assc t1
        WHERE t2.smpl_dte = TO_DATE ('11/15/2008 12:00:00 PM', 'MM-DD-YYYY HH:MI:SS AM')
        AND t1.pv_id = t2.pv_id
      AND t2.pv_id        IN
        (SELECT pv_id
           FROM diag.pv_sgnl_id_assc
          WHERE sgnl_id IN
          (SELECT sgnl_id
             FROM diag.series_sgnl_rec_asgn
            WHERE series_id = 'Series5'
    GROUP BY t1.sgnl_id, t2.smpl_dte, t1.pv_id
      ) max_query  ,
      (SELECT pv_id,
        MAX(integ_since_val) AS min_val
         FROM diag.blm_acct
        WHERE smpl_dte = TO_DATE ('11/10/2008 12:00:00 PM', 'MM-DD-YYYY HH:MI:SS AM')
      AND pv_id        IN
        (SELECT pv_id
           FROM diag.pv_sgnl_id_assc
          WHERE sgnl_id IN
          (SELECT sgnl_id
             FROM diag.series_sgnl_rec_asgn
            WHERE series_id = 'Series5'
    GROUP BY pv_id
      ) min_query WHERE max_query.pv_id  = min_query.pv_id
       ORDER BY max_query.sgnl_idThe data set in the table is quite large, but the above query returns only 49 results (one for each signal in 'Series5').
    I tried the following statement by itself to get the last value, but it takes quite a long time to execute (increased the overall query time from 1 sec to 400+ sec when used in the query above):
    SELECT DISTINCT trunc(smpl_dte) as the_day,
             first_value(integ_since_val) over (partition by trunc(smpl_dte) order by smpl_dte desc) as last_val_per_day
      FROM diag.blm_acct WHERE pv_id = 3 and trunc(smpl_dte) = to_date('05/18/2008', 'MM-DD-YYYY ')Any thoughts?

    Well here is an example of the output I'm trying to generate:
    SGNL                              RESULT_VAL
    CCL_Diag:BLM00:Slow60PulsesTotalLoss        52.843439255
    CCL_Diag:BLM101:Slow60PulsesTotalLoss        55.7883452511etc...
    Here is the table structure:
    describe diag.blm_acct;
    Name                           Null     Type                                                                                                                                                                                         
    BLM_ACCT_ID                    NOT NULL NUMBER(12)                                                                                                                                                                                   
    PV_ID                          NOT NULL NUMBER(38)                                                                                                                                                                                   
    SMPL_DTE                       NOT NULL DATE                                                                                                                                                                                         
    INTEG_OVER_VAL                          BINARY_DOUBLE()                                                                                                                                                                              
    INTEG_SINCE_VAL                         BINARY_DOUBLE()                                                                                                                                                                              
    INTEG_TYPE_ID                           NUMBER(3)     
    describe diag.PV_SGNL_ID_ASSC
    Name                           Null     Type                                                                                                                                                                                         
    PV_ID                          NOT NULL NUMBER(38)                                                                                                                                                                                   
    SGNL_ID                        NOT NULL VARCHAR2(75)   
    describe diag.SERIES_SGNL_REC_ASGN
    Name                           Null     Type                                                                                                                                                                                         
    SERIES_ID                      NOT NULL VARCHAR2(50)                                                                                                                                                                                 
    SGNL_ID                        NOT NULL VARCHAR2(75)                                                                                                                                                                                 
    DISP_ORD_NBR                            NUMBER                                                                                                                                                                              The main problem I'm having is how to replace this line of code:
    WHERE t2.smpl_dte = TO_DATE ('11/15/2008 12:00:00 PM', 'MM-DD-YYYY HH:MI:SS AM')with something that will get the last value (integ_since_val) in the diag.blm_acct table for the 11/15 date.
    Edited by: Solerous on Feb 18, 2009 11:32 AM - I figured out how to output the table data

  • Sales order availability check considering the ROH stock/procurement time

    Hi Gurus,
    Our client's Production process requires  the availability check at order level to consider the procurement time required for the Rawmaterial (BOM component of the FERT, whose sales order is taken) in cases when this RM is not available in the plant, and Availability check should not consider this procurement time when this RM is available in the plant.
    ie in first case, it should consider the total time for in-house production as well as the time required to procure the rawmaterials, along with all other times that we use like Gr processing time, packing picking etc.
    In second case it should not consider the RM procurement time, but only the inhouse production time and other times as applicable.
    To my understanding, Availability check at order level will only check the time given in the MRP view of the FERT, and it does not check anything about RM stock or RM procurement time.
    Can you please give me some suggestions to meet this requirement of the client (client is into Food Product Manufacturing).
    Your quick response will be very helpful
    Thanks
    Jobi

    Jobi,
    Our client is not following Assemble to order or even make to order. The typical production process followed is neither make to order nor make to stock.
    Understood, although I am not sure why you are telling me what he has today; since your client has already told you his existing solution is unsatisfactory.  I have described a solution that seems to meet the short list of business requirements that you described in your first post.  I suggest you offer this solution to your client, unless he has already told you that ATO is not acceptable for some other reason not mentioned in your post.
    As already mentioned by the other experts Saurabh and Kiran and Mariano,  the requested functionality in general is not supported for MTS in standard ECC.  As always, anything is possible through enhancement or 'workaround', as long as the client has enough time and money, and you have sufficient skills to implement.
    If the client is willing to implement APO, which is the standard SAP advanced planning system, such a solution (multi-level availability checking with MTS) is possible as standard.  Within the Global Available To Promise Module of APO there are a couple of ways to get at this type of ATP solution.
    Best Regards,
    DB49

  • How change the sort order of searched items so last search item shows first. I DO NOT mean the order of search engines, but existing searches by down arrow key

    I want to be able to change the sort order of items I have already searched for in the search box. I want to be able to hit the down arrow key and see my previous searches in the order of last search showing first. At the moment I have no idea how it is sorting and it's very annoying to have to re-type a query I typed 5 minutes earlier but because I typed in another 10 since it is lost somewhere in the list. Can this be done, I have googled but did not find the topic anywhere. Just to clarify, I DO NOT MEAN the order of search engines (which is all that comes up in google), I mean the actual text typed in which has been saved in the drop down list.
    Thanks

    The "form fill" feature uses a "frecency" algorithm, frequency + recency, similar to the address bar autocomplete list.
    I found an extension that seems relevant, but the reviews are old so I'm not sure it's still working: [https://addons.mozilla.org/en-us/firefox/addon/searchbar-autocomplete-order/ Searchbar Autocomplete Order].
    But... is the autocomplete not working? I would expect that typing a couple characters of the earlier query would filter the list so you can easily select it? Or is the problem that the list doesn't remember enough searches for that?

  • How to change the order of filter in reverse order?

    This is my demo list, and I want to apply filter to it. However, notice that the order of the filter is alphabetic, but I want it in reverse. How can I make the order of the filter in reverse order?
    ie.
    havefun
    have fun
    haha
    I have no idea how to describe this problem.

    there is no out-of-the-box method to change the sort order of the FILTER VALUES
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Availablity check in sales order considering the Raw material stock/procurement

    Hi Gurus,
    Our client Production process requires  the availability check at order level to consider the procurement time required for the Rawmaterial (BOM component of the FERT, whose sales order is taken) in cases when this RM is not available in the plant, and Availability check should not consider this procurement time when this RM is available in the plant.
    ie in first case, it should consider the total time for in-house production as well as the time required to procure the rawmaterials, along with all other times that we use like Gr processing time, packing picking etc.
    In second case it should not consider the RM procurement time, but only the inhouse production time and other times as applicable.
    To my understanding, Availability check at order level will only check the time given in the MRP view of the FERT, and it does not check anything about RM stock or RM procurement time.
    Can you please give me some suggestions to meet this requirement of the client (client is into Food Product Manufacturing).
    Your quick response will be very helpful

    You can try with user exits intended for ATP as recommended in the following note based on material type:-
    Note 1644443 - Documentation on User-Exits in the area of the availability
    That is as and when ATP runs for a sale order, with any of the exits listed out in the above note, you can validate for the material type which would be different for components and accordingly, write a coding in such a way not to consider such of those components.  But ensure that the user-exits are critical and should be tested carefully as cautioned in the note.
    G. Lakshmipathi

  • Question on maintaining the ordering of facet values - On facet selection

    We have a scenario in our Project where in the facet values could be ordered via workbench
    Below example considers the sorting of size facet through workbench
    Scenario
    Let’s say the facet values displayed for Size facet as below on page load (Ordered through workbench)
    Small
    Medium
    Large
    Now user selects say Medium . This will now be available in descriptor list . On merging both the descriptor list and refinement list. The order would be something as below
    Medium (Selected)
    Small
    Large
    Is it possible through some endeca api to get the facet values as per the initial order defined (Depicted below)
    Small
    Medium (Selected)
    Large

    Well, getting a complete list of organizations is not my problem. I have been able to do that easily enough. Then by using the IN condition, a user can input mutliple values. Ahh, but here is the problem. Many of the people who will use this report will NOT have an understanding of the organization structure. If they are picking at a high level (say at a region level), they will not know all of the names of the child organizations below that level (and could be taking tens of orgs to maybe a hundred organizations). That is why the user requirement is that if a user enters a parameter value of 'B', that means the program is smart enough to figure out that what they really want are values 'B', 'E', 'F', 'M', 'Q', and 'Z' as their selection list. What you have suggested is what I have offered as a potential solution, and is how I have currently set up the workbook. Which may be as close as we can get. But the ideal solution would be to give the users what they have stated in their requirements document - that way the report users don't have to know/understand the hierarchy and where all the organizations fit in the hierarchy. Make sense what I have said here? Would be nice to have the cascading parameters to handle this, but right now the database is not set up to be able to do cascading parameters. And the structure is potentially changeable at any time (so might add a new level), which no doubt is why Oracle set up the structure hierarchy as it did.
    John Dickey

  • PS3 The Last Of US cant pre order

    Went in to store today, but was dissapointed The Last of Us is not available to pre-order pre-order slip UPC code did not come up on the register

    Thats odd its been available to preorder for quite some time. Might have been a glitch in the system or something since the release date was released.
    You can order it online and select store pickup or probably go and a later date to preorder instore.
    =(。◕‿‿◕。)=

  • The Last of Us Remastered Pre-Order/Price Drop

    Has it been announced how the price drop affects preorders on The Last Of Us? I ordered before the price drop, and the price drop is still not reflected in my order. It still shows at the original price (less my GCU discount).
    Will I need to return it and buy again to get it at the right price?

    Hi fossen,
    Thanks for reserving your copy of The Last of Us Remastered with us!
    Whenever you pre-order on BestBuy.com, you're automatically guaranteed the lowest pre-release sale price available. This means that if you pre-order a game at $59.99 and it later drops to $39.99 prior to launch, you should only pay the $39.99 plus applicable sales taxes and shipping. For more information, you may want to check out the following FAQ:
    BestBuy.com > Pre-Orders
    http://bbyurl.us/Preorders
    I hope this helps.
    Aaron|Social Media Specialist | Best Buy® Corporate
     Private Message

Maybe you are looking for

  • SSRS Execution Service Render Method stopped working

    Hello SSRS Profis! I'm having the following Problem: I was trying to integrate SSRS in my Company-Software, and until today it went quite good: Its an ASPMVC 5 project with WCF-Services, and in these i had methods to render reports with the help of t

  • Apple tv does not work or reset

    All the unit does is alternate between the apple logo and a blank screen.  I have tried to reset the unit but it does no good.  Any ideas?

  • Garageband Update 4.1.2

    Since this update, my GB is just weird. Menu items flash open and closed, project settings in GB window are very sluggish. New projects are mostly impossible, opening and working with previous version (4.1.1) same behavior. Opened GB in another user

  • Can I open RW2 files on Photoshop or Bridge CS4?

    I have a Mac running OX 10.9.1. I have CS4 installed on my computer and would like to figure out how to open RW2 files in Photoshop/Bridge. The camera I used is a Panasonic Lumiz FZ40. I have Camera Raw version 5.7.0.213 installed.

  • Chart color palette , where can I change it?

    Hi I would like to change the colors on the charts, in other tools there are usually color palette for this kind of issues. Where can I find OBIEEs chart color palette ? Kind Regards