Reduction of records in WD view

Hi,
Question 1:
I have a View that shows data like this:
Cust.No          Valid From    Valid To
P000333          30.11.09       10.12.09
do.                   11.12.09       21.12.09
do.                   22.12.09       27.02.10
do.                   28.02.10       14.04.10
This is 4 records for the same customer and I only want the view to show ONE record like this:
Cust.No            Valid From    Valid To
P000333           30.11.09       14.04.10  (just one record for the whole time interval)    
How can I do that in a WD View ?
Question 2:
I also have more records shown where I have a break in the date interval like this:
P000333          30.11.09       10.12.09
do.                   11.12.09       17.12.09  Here is a break of 5 days to the next one on the 22.
do.                   22.12.09       27.02.10
This shoul be only 2 records:
P000333          30.11.09       17.12.09
do.                   22.12.09       27.02.10
Any suggestions to how to Modify the Web Dynpro View is appreciated.
Thanks.

Hallo Peter,
if i were you , i wouldnt attempt to do that in WebDynpro (view). i rather use the model (Class/Function module) to supply the necessary data to the webdynpro.
In your case, you probably receive the data from function module or class to populate the data.
You can write a new abap class which would implement your logic after retrieval of the data and supply the data to webdynpro for presentation.
For example:
Cust.No Valid From Valid To
P000333 30.11.09 10.12.09
do. 11.12.09 21.12.09
do. 22.12.09 27.02.10
do. 28.02.10 14.04.10
Your newly implemented method should loop through the original table  and create a local table with your logic applied.
new table contains a row
P000333 30.11.09 14.04.10
go on like this appending the table rows for all customers and later bind this newly created table to your context node on which Table UI has binding.

Similar Messages

  • Keep the record in the view object if deletion failed.

    I have a view object which is based on the entity object, when I am trying to delete a row it failed because it has a child record associate with. I know the row is not delete from the database, but the record is deleted fromt the view.
    How to keep the record in the View object if delete failed?

    Hi,
    the row is not delete from the database,refresh the view . re-execute query and the view show the row

  • Compare two records within a view

    Hi,
    I wonder if it is possible to compare two or more records within a view, and how to do it.
    Thanks in advance.

    M. Comi wrote:
    I wanted to compare two records of the view and see if they are the same or not...
    My data are as follows:
    Soglia Ingresso_CL_PF     10     10
    Downgrade MDP 3     2102     2101
    I want to check if the "downgrade" records have the same values for the second and the third column, and in this case replace the values on the second record.
    But I did it with a select on the same fields of the original tables, plus two fields obtained with lag function...
    I don't know if it is clear or not, the important is that I got what I wanted.Sorry, it's not clear.
    Are you still having a problem? If so:
    (1) Please describe the problem.
    (2) What results do you want to see from the sample data you posted?
    (3) Is the second column of
    Downgrade MDP 3 2102 2101'Downgrade', 'MDP', 3, 2102, 2101, some combination, or NULL? When posting data, the most helpful thing is to post INSERT (or CREATE TABLE AS ...) statements. The second-best thing is to post formatted data. Type {code} before and after sections where spacing is important, and post column headers.

  • ADF BC merge records of 2 view objects into third

    jdev 11.1.1.4
    Hi,
    1) how to merge records of 2 view objects into third view object?
    2) how to search inside view object whether the record already exists?
    I want to do this in AMImpl programmatically.

    hi I find that I can use something as below but it will check for each row at a time.
    String exp = "student_id=" + "'" + studentId.getValue() + "'" + " and " +
    "pass_word=" + "'" + password.getValue() + "'";
    vo.setWhereClause(exp);
    so if there are 10 records(to compare) i have to loop it 10 times(with company id and order id in exp) which i will be getting from some view.
    and have to execute query 10 times so i don't think this is a efficient approach.

  • Use case for showing records in report view BAM based on version number

    Hi,
    I have a use case to update records based on version no. Let say I have a table or data object in BAM called 'Notes'. The Notes dataobject has three fields Id, Version, Description. The Notes data is displayed in a BAM report. I need to just display the latest version of the Notes. Say two records with one with Id as '124' and Version '4' and another with Id as '124' and version as '5'. The record related to version 5 should be dispalyed to user. How will I introduce this check in BAM reports for the latest version?
    Thanks
    Edited by: user5108636 on 28/06/2010 16:47

    That you see you're prints only means that your method outta called. The code creates a new row, but never inserts the row into the rowset. Then you call execute query which loses any connection to the new route which is not part of the rowset.
    First action would never to call insertRow(r1) on the view object.
    If you change data this way, only the model layer knows about it, the ui can't know about this (one of the disadvantages of using plsql or this construct you try). You have to tell the view controller to update it's data to. For this you can execute the iterator in the binding layer and/or ppr the container showing your data.
    Then I don't see any complicated plsql called do I question if a programmatic co is necessary.
    Timo

  • How to delete a record in Database View?

    HI All,
    I have created a Database  View using tables LIKP,LIPS,VBUK,VBUP.
    In that view I am getting a extra record which is not exit in any tables
    but its getting in database view.
    I tried buffer memory refresh and even tried SE16n , SE11(thro CODE(DELE))..But record has not been
    deleted.
    Plz suggest wat shud i have to do to delete the record.
    Thanks in advance and help realy appriciate.
    Regards
    Steve

    >
    Steve Johnson wrote:
    > In that view I am getting a extra record which is not exit in any tables
    > but its getting in database view.
    Your intention should be in search of the root of that extra record. Not the deleting it without knowing anything.
    Sure, You have put join conditions correctly?
    Cheers

  • Insert order by records into a view with a instead of trigger

    Hi all,
    I have this DML query:
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
          SELECT   a,
                   b,
                   c,
                   d,
                   e
            FROM   table_name
        ORDER BY   dtable_view is a view with an INSTEAD OF trigger and table_name is a table with my records to be inserted.
    I need the ORDER BY clause because in my trigger i call a procedure who treat each record and insert into a table, used in the view. I need to garantee these order.
    If i put an other SELECT statement outside, like this:
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
          SELECT   a,
                   b,
                   c,
                   d,
                   e
            FROM   table_name
        ORDER BY   dIt works. But I can put these new SELECT because these query is created automatic by Oracle Data Integrator.
    What I'm asking you is if there any solution to this problem without changing anything in the Oracle Data Integrator. Or, in other words, if there is any simple solution other than to add a new SELECT statement.
    Thanks in advance,
    Regards.

    Sorry... copy+paste error :)
    INSERT INTO table_view t (a,
                              b,
                              c,
                              d,
                              e)
        SELECT   *
          FROM   (  SELECT   a,
                             b,
                             c,
                             d,
                             e
                      FROM   table_name
                  ORDER BY   d)I need to insert him by a D column order, because my trigger needs to validate each record and insert him. I have some restrictions. For example, my records are:
    2     1     2006     M
    1     2     2007 M
    1     3     2007     S 2007
    1     2     2007     S 2007
    2     1     2009     S
    2     1     2009     S
    I want to insert the 'M' records first and then the 'S' records because the 'S' records only makes sense in target table is exists 'M' records
    Regards,
    Filipe Almeida

  • How do i filter the records in analytic view by using variable/parameter for a time range

    i have a analytic view which has a output column as date type. i want the user who use this view have the control to decided the output records based on a time range (from x to y).
    i tried to create 2 variables, 1 for start_time, 1 for end_time. Ideally, i should have a expression for filtering data like this:
    $$start_time <= date_column <= $$end_time
    However, the variable windows doesn't seem to be feasible for the expression as above.
    Does anyone has the same problem and get it solved?
    Thanks!

    just figured out by my own. So the answer is using "variable" with "range" option.
    Making a variable, then set the "selection type" to "range".
    When preview the data, the variable input window pops up with operator on default "equal", use dropdown list to swtich it to "between", then you can enter the start_time and end_time as a range filter.

  • ApEx 4.1.1: update record in a view with 'instead of update' trigger

    I created a form against a view. The view is complex enough which prevents direct updates. To incorporate the update logic I created an 'instead of update' trigger on the view. When I open up the form, do changes, and click 'Apply Changes' button I am getting the following exception
    ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc.
    I understand that the standard 'Automatic Row Processing' process is trying to lock the record before updating using a cursor like
    select *
    from my_view
    for update
    and fails. Is it possible to bypass this locking while using the standard APEX processes?
    I think I can create a custom PL/SQL process which would execute the UPDATE statement (at least, it works in SQL*Plus), but I would like to know if I can use a standard ApEx functionality for this.

    Hello,
    Sorry for delay.
    I had found a feedback about trigger issue when restore SQL Database from a BACPAC file. Microsoft said the fixed  will be available in the next major release of DacFx.
    Feedback:
    SQL Azure fires a trigger when restoring from bacpac
    You can refer to the workarounds in the feedback. For example, if there is small amount of triggers on the database, you can try to remove the triggers and then recreate when restore from bacpac file.
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • Needs Advice on Record Type and Views!!!

    Hello all,
    I have a package that returns a record type based on some arguments. I have a view that wants use a column from that record type. Obviously, I cannot call the package from the view.
    I started looking into objects type, maybe use it instead of record type so that I can create a table on the object type and then use my object type table in my view. The problem is, I still have to call my package and passed the arguments to get the right data.
    Could any of you help me direct me on how to deal with this kind of issues? I have also looked into member funtion but not sure. I am aware that I can write a function by itself and use the function in my view. But I was thinking in more of lines of completeness of my code that can serve all my needs, if possible.
    A reply will be appreciated. Thank you.

    I read about Panasonic AG-DVX 100 Cam that shoot in 24f and before its print in FCP, the pull down takes it to 29f.
    And the Sony i believe shoot near enough the same as the Panasonic.
    So if that's the case would the conversion of FCP for the pull down come out alright, there is no point really in jumping to another Forum when the integration is with FCP!
    Just need to get a cam that integrates well with FCP for a budget of under $4,000.00 and in the range of 29.97f,
    Fr.BlayZay.

  • View offending records in audit viewer for set-based mappings

    i have mappings which is configured to load data from Oracle9i external tables into Fact tables.
    i am using set-based loading with reject limit set to 0. Whenever there's an offending record from the external table, the whole mapping will fail with message 'Fatal error or maximum error exceeded'. This is exactly how i want it.
    now, when i check the mapping process in audit viewer, i expect to see which record caused this process to abort. instead, i only see the same message stated above (which is not very helpful in identify source of the problem, right ?)
    i believe this is due to the mapping being set-based. unfortunately i can't use row-based as i do not want ANY record loaded into the fact table even if there is 1 offending record. In row-based mode, it seems to auto-commit after a certain number of records (bfor any errorneous records are encountered). i have attempted to set the 'commit block size' to something big value (eg. 50,000) but it still seems to commit after say every 2000 records ...
    any suggestions ?
    thanks

    Since you need set based code in order to avoid commits, it is difficult to trap record level errors - the set based procedure will run to the end or encounter an error and all you will get is a generic SQL error code and message. The commit frequency should work - I am not aware of any problems in this area. Can you give more details about this?
    It might also be possible to filter correct records by using a splitter and set it in such a way that correct records get loaded into the production table, while incorrect are 'parked' into a temporary table for review. Another possibility, if you need complex data cleansing prior to loading, would be to use an intermediate staging table and then use the row based mode on it, before transferring the correct records from this staging table to the appropriate production table. This last solution will slow down your process because it introduces an additional step, but might give you the loading flexibility you need.
    Regards:
    Igor

  • Restrict records in Pivot View

    Hello
    Is it possible to restrict # of records to be displayed in Pivot view.
    Thanks in Advance

    Hi,
    Not without applying filters directly to the underlying report.
    Alternatively use your pivot to summarise the data at a higher level and create a drill down into a seperate report. If you setup the more detailed report in a table view you can limit the number of rows shown to the user (the setting that defines how many rows are displayed before having to hit the button to show all report rows)
    Thanks
    Oli @ Innoveer

  • Oracle Materialized View | Deletion of Records, Oracle Materialized View

    One question reg Materialized views.
    If as part of housekeeping of the Source database we delete some records (older records), will the materialized view also be updated with the deletion?
    I believe the answer is yes. In that case can we ensure that this delete does not happen?
    Is there anyway we can prevent MView refresh from deleting the records that is once inserted even if we delete the same records in source DB?

    This is a common scenario, particularly with materialised views that summarise detail data where you want to keep the summary but not the detail, and it is addressed in the documentation.
    The technique is to make the MV refresh on demand, delete the data from the detail tables, and use the CONSIDER_FRESH procedure to prevent the changes propagating to the MV. You'll probably find it in the docs by searching on DBMS_MView.Consider_Fresh. There are a few warnings to note I think.

  • BDC Recording of Forecasting View of MM01

    Hi Everyone,
                  I've been working on a BDC to upload consumption values in the Forecasting View of MM01.When there are more than 11 line items then we have to scroll the "TABLE CONTROL". But Page Down does not work in this BDC. The Code that's being used for Page Down in this TABLE CONTROL is "PB09". I've also tried using various codes like P++ etc. I've recorded many MM01 times but could not get a concrete answer.How to get this Page Down work?
    Any Inputs will be very helpful.
    Regards
    Ramky.G

    Hi,
    Better to use following function module
    BAPI_MATERIAL_SAVEDATA
    if you find it is usefule , just reward me points
    Thanks
    Ramesh

  • Duplicate records in database view for ANLA and ANLC tables

    HI all,
    Can any one please suggest me how to remove duplicate records from ANLA and ANLC tables when creating a database view.
    thanks in advance,
    ben.

    Hi,
    Suppose we have two tables one with one field and another with two fields:
    TAB1 - Key field KEY1
    TAB2 - Key fields KEY1 & Key 2.
    No if we create a Database view of these two tables we can do by joining these two tables on Key field KEY1.
    Now if in View tab we have inculded TAB1- Key1.
    Now lets suppose following four entries are in table TAB1: (AAA), (BBB), (CCC).
    and following entries are in table TAB2: (AAA, 1), (AAA, 2),  (BBB, 3), (BBB, 5), (DDD, 3).
    The data base view will show following entries:
    AAA,
    AAA,
    BBB,
    BBB,
    Now these entris are duplicate in the output.
    This is because TAB2 has multilple entries for same key value of TAB1.
    Now if we want to remove multiple entries from ouput - we need to include an entry in selection conditions like TAB2-KEY2 = '1'.
    Regards,
    Pranav.

Maybe you are looking for