Master Data: 2 records with different FROM-TO dates

Hi,
I am extracting the master data from R/3. In R/3 the master data record is created with valid FROM: 01/01/1900 and valid TO: 12/31/9999. But when I extract the data into BW it is coming as 2 records one with 01/01/1000-12/31/1899 range and the other with 01/01/1900-12/31/9999.
What settings/steps I need to change to get only one record for now and of course in future any change to the records will comes as different valid date range.
When I schedule the info package, the update tab consist of Fixed time interval start date: 10/20/2005; end date: 12/31/9999.
Time being to avoid this in the transfer rule of FROM date info object selected constant option with date 01/01/1900 as in R/3????
Appreciate your help on this.
Thanks.
Sudha.

Hi Nagesh,
Thanks for reply.
I have assigned one-to-one from R/3 to BW.
In R/3 I have FROM and TO date and assigned these two fields to Transfer structure FROM and TO info objects.
I have maintained Transfer rule only after getting two records into BW for every one entry in R/3. In the rule I just assigned constant date to avoid 2 records for every entry from r/3. So nothing to do with the routine.
I want to see one record in BW for every entry coming from R/3. At present in the BW master data sitting as 2 records.
Example:
one record in R/3 with:
FROM date: 01/01/1900; TO date: 12/31/9999.
Inserted 2 records into BW with:
FROM date: 01/01/1000; TO date: 12/31/1899.
FROM date: 01/01/1900; TO date: 12/31/9999.
Thanks.
Sudha.

Similar Messages

  • Query with 'different from' clause in Sqlite

    My question is very simple:
    How can I submit a query with a 'different from' clause into a table.
    In AIR, I would like to query :
    "select * from myTable where myField <> 'value' ";
    but it does'nt work !
    Nor
    "select * from myTable where myField != 'value' ";
    nor
    "select * from myTable where myField is not 'value' ";
    is it impossible to query with a 'different from' clause in Sqlite wih Adobe Air

    Hello,
    SQLite in AIR does support 'different from' and '<>' is the correct operator. Take the following emp table for example:
    id
    name
    age
    1
    A
    26
    2
    B
    30
    3
    C
    28
    If you want to query the records whose name isn't A. The following SQL is correct:
    select * from emp where name <> 'A'
    Thanks,
    Yang

  • How to get minimum of 3 identical records with different dates

    Hi All,
    Below is my query which gives me the data i want but it gives me a same claim number 3 times because those 3 records have HVAC in them but the comments date is different, So i would like to have one row returned with the min(commentdate).
    SELECT C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote as Comment,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated AS CommentDate
    FROM hs_comments AS COMMENTS
    INNER JOIN
    hs_claim AS C ON COMMENTS.hsobjectid = C.hsclaimid
    inner join
    qx_states s on s.pkey = c.hslosslocationstate
    inner join
    [dbo].[hs_loss_type] l on C.hslosstypeid = l.hslosstypeid
    WHERE (COMMENTS.hsnote LIKE '%hvac%') and
    year(c.hsdatecreated) in (2014) AND (l.hslosstype = 'All other physical damage' or l.hslosstype ='Lightning (no fire)' or l.hslosstype ='Water')
    group by C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote ,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated
    order by C.hsclaimnumber
    Can someone please help me with this?
    Thanks.

    Select * from (SELECT C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote as Comment,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated AS CommentDate
    ,row_number() Over(partition by C.hsclaimnumber Order by Comments.hsDateCreated) rn
    FROM hs_comments AS COMMENTS
    INNER JOIN
    hs_claim AS C ON COMMENTS.hsobjectid = C.hsclaimid
    inner join
    qx_states s on s.pkey = c.hslosslocationstate
    inner join
    [dbo].[hs_loss_type] l on C.hslosstypeid = l.hslosstypeid
    WHERE (COMMENTS.hsnote LIKE '%hvac%') and
    year(c.hsdatecreated) in (2014) AND (l.hslosstype = 'All other physical damage' or l.hslosstype ='Lightning (no fire)' or l.hslosstype ='Water')
    group by C.hsclaimnumber,
    COMMENTS.hsobjectid ,
    COMMENTS.hsnote ,
    C.hsdatecreated,s.state_id,
    l.hslosstype,
    Comments.hsDateCreated
    ) T
    WHERE rn=1
    order by C.hsclaimnumber

  • How to extract data for condition records with different valid periods

    Dear Gurus,
      There was an error in the recent condition records price upload. Now, i want to extract the data into excel file depending on different valid dates. Please let me know how can i do this... in the extracted file i would like to have fields like, valid on and valid to dates, condition type, price list type, material, condition record no. , last changed date, last changed user id etc., please suggest...thanks in advance..
    rgds
    suri

    hi suresh
    create a quick query (SQVI) and extract to excel table KONP
    only thing you need to take care is table join for fields datab ( valid from) and tatbi (valid to) you need to take from right table which are present A-table,
    Anil

  • Purchasing info records with different prices for different packaging

    Hi,
    hope, someone can help me.
    We have different prices for different kind of packaging, but all the material is bought in the same unit, i.e. kg.
    Let's say, usually you buy x kg in a drum, but sometimes you buy y (or x) kg in a bottle or in a bag.
    We won't allow variable order units. Even if we would, it's not helpful, because we always order kg.
    So the price depends on a criterion - I don't know, which to take. And we want to maintain the different prices in the info records.
    Is there a solution?

    Hi.
    I went through the history of the problem.It seems that your base unit of measure is KG.Also you have mentined that same material is used in various plants.
    You need to activate the variable ordering unit  2  in material master. This is present in the materila master Purchasing tab.Also note that this data is maintained at plant level. This will not have any impact on the materials which are presnt in the other plants.
    After activating variable order unit in materal master. You need maintains the conversion factors from Order units to Base UOM.(Eg 1 KG = 1 KG, 1BOX = 10 KG etc)
    Create inforecord for the material and maintain price in Base unit of measure.
    In PO enter the order unit as BOX system will automatically calculate the price of BOX based on the conversion factors which are maintained in the material master.
    I belive this is the simple and best solution for your requirement..
    If you have any suggestions please let me know
    Cheers
    Umakanth

  • BDC steps differ when inputing same record with different other field value

    CODEDATE--
    ETC...(there is of course other field)
    11----01.10.2007   (do process A C D)
    12----01.10.2007   (do process A C D)
    12----01.11.2007   (Having same code field so do process A B C D)
    13----01.11.2007   (do process A C D)
    14----01.10.2007   (do process A C D)
    15----01.11.2007   (do process A C D)
    15----01.12.2007   (Having same code field so do process A B C D)
    16----01.10.2007   (do process A C D)
    hi i am doing a BDC batch my input table a bit like above.
    first record will do process A C D
    second record will do process A C D
    thirt record will do process A B C D
    second record will do process A C D
    Any hint of how i can do that plzzzz .  Urgent helppp needed

    as per understanding,
    if code = 11 and date = 01.10.2007 then u need process A C and D  right.
    define 4 subrountine with A B C D logics.
    define one more subroutine with SR1 and SR2.
    inside SR1 call 3 subroutines A C D
    and SR2 call A B C D.
    if code = 11 and date = 01.10.2007 then
    call subroutine SR1,
    if if code = 12 and date = 01.11.2007 then call Subroutine SR2.
    if u have any issue, let me know the detailed requirement.

  • How to record with "guvcview" from the AUR.

    http://wiki.archlinux.org/index.php/Web … uvcview.29
    In the Archwiki on the webcam page, it suggests GTK UVC Viewer from the AUR. I don't quite like cheese for video recording. I was excited after I played with the resolution and framerate and such in guvcview for the first time. I then was ready to start recording a test video. However, I can't find how to start/stop recording once I've started guvcview. I would appreciate knowing how to record video in it.

    Hi! I just saw this image: http://screenshots.debian.net/screensho … _large.png
    I seem to be missing the bottom row of buttons.
    As I was typing this, I thought to stretch the window down... There they are! Sorry for bothering the forum with such a silly mistake. >.<

  • Load page in popup window with different (from parent page) browser

    Hi,
    Environment: Windows XP or Windows 7, Visual Studio 2010, Internet Explorer 8 (IE)
    I have an application which opens page containing HTML editor.  Here you can edit a document (pooled from db). Next, btnPreview opens a new popup window and shows changes you made via Internet Explorer (IE - default browser).
    Here is original code - works OK when you run from both - VS 2010 (http://localhost:50827/NCSite/MenuEditor.aspx) or via browser IE (http://localhost/NCSite/MenuEditor.aspx).
    Please pay attention - with VS2010 was used a dynamic address (localhost:50827) created by VS2010
    Here is a code I used for that:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    ClientScriptManager cs = Page.ClientScript;
    cs.RegisterStartupScript(this.GetType(),
    "NewWindow",
    "<script>window.open('" + URL +
    "', 'New')</script>");
    Now I have a request to add two more buttons to preview in Google Chrome (GC) and Mozilla Firefox (FF).
    I used next code:
    using System.Diagnostics;
    //for btnIE:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL;
    Process.Start("iexplore",
    URL);
    //for btnGC:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("chrome",
    URL);
    //for btnFF:
    URL = Request.Url.Scheme +
    "://" + Request.Url.Host + appPath + URL; 
    Process.Start("firefox",
    URL);
    It works OK when you run from VS2010 (http://localhost:50827/NCSite/MenuEditor.aspx)
    but when you open application via default browser (IE) and after editing document press btnIE, btnGC, or btnFF it is not creating a new popup window and simply replacing existing window
    and shows updated document via IE.  Processes for GC and FF not even started (looked through Task Manager).
    Is it any way to solve that issue?
    Thanks,
    Dm
    dmirkin

    Hi dmirkin,
    If Andy's suggestion still cann't resovle your issue.
    You are more likely to get more efficient responses to
    ASP.NET issues at http://forums.asp.net where you can contact ASP.NET
    JavaScript experts. This forum is for web application.
    Thanks,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • QuickTime: Screen Recording with audio from Flash video?

    I saw a short flash video on a website that I wanted to save. SO I tried using the new QuickTime's Screen Recording feature, but no matter what options I use (Line input or Internal microphone), I get no audio.
    Is this because Flash won't allow it, or am I doing something wrong?

    just figured this out myself today. you're on right track.
    open system pref and go to SOUND - got to OUTPUT tab and choose soundflower (2ch) as your OUTPUT
    open safari and open a new window - drag SWF file into that. it should play in the browser window. hit pause on the video.
    open quicktime. go to NEW SCREEN RECORDING, and use the arrow to the right to open options. Choose sound INPUT as soundflower (2ch). do not raise the volume in the record window - keep it at lowest possible else you'll get an echo.
    you are ready to roll.
    so the browser will be outputting sound to soundflower, whilst the quicktime screenrecord gets input from soundflower. works like a charm. sounds great.
    good luck.
    keywords: convert SWF to MOV files convert flash to quicktime
    Message was edited by: California Matt

  • Send email with different "from" address

    I now use iCloud (was MobileMe.) When I send an email or reply to someone's email, I don't want them to see the me.com address. I want them to see my domain email name. Through the place I bought the domain, I have it set up to send all mail to my me.com address, so there's no server info, etc. It just forwards everything to my me.com address. So using the panel in system preferences to set up a new mail account doesn't help becuase it wants the outgoing mail server, etc.
    In Outlook or other mail programs, I used to look for a setting that said "reply to" and put in whatever I wanted. Is there something simple like this in iCloud?
    Thanks.

    Thanks - that sems to have worked.
    I set up my business account in my BB, made it the default in my phone so that email always say they are coming from my business account, then went to the Web through T-mobile to set up the filter so that this account does not receive email. I haven't seen any dups yet on my phone.
    I will let the tmobil folks know.
    Cheers

  • Voice recording with Podcastudio from Behringer

    Hi everybody, I've bought the Podcastudio to make voice-over. I've installed Live lite 4 which is provided with the equipement.It doesn't work. I've tried with Audacity, but same result. My computer is set to FCA202 (audio interface) but doesn't work.
    Can you tell me which soft is the best to use, and how to set the one I got, because i'm hopeless at sound technic.
    Thanx
    Steve

    I just bought this as well and plugged it in and had no problems getting it to work at all.
    Plugged the FCA202 into the firewire port on my Mac Pro and instantly the system recognized it and in the sound preferences for Input I selected it as source and when I plugged in the mixer and mic it saw the sound coming in immediately.
    I didn't install any of the software that came with it yet but the sound panel and other programs that can read sound input all can see them without it.
    I note your sig says you are still on 10.4, I am using 10.5.2. Don't know if that makes any difference.

  • Pricing master data

    I have a requirement where in I am interfacing the pricing condition records master data from the legacy system. We developed a program which is using BAPI BAPI “BAPI_PRICES_CONDITIONS” . This worked initially OK. however as we are testing more scenarios we are getting issues where in this BAPI does not create records correctly in the system for the same records with different validity dates.
    Have anybody of you used /know any other technical solution to load the pricing master data in the system or can tell us more abt this BAPI . I read in one of the OSS notes wherein SAP says not to use this even though this is available which sounds weird to me
    Any inputs would be appreciated

    Hi venkat,
    if I am not tatally wrong the LSMW can use an SAP standard program to upload the data into SAP (xk15). I've uploaded 2 Mio Records for the last customer in less than 12 hrs, so it is reasonably fast (although not lightspeed).
    I can look up the program name on Monday, so theoretically a programmer should be able to upload using that program rather than the BAPI.
    And yes, it is a shame to have some BAPI and to get the recommendation not to use it.
    Cheers
    Markus
    Edited by: Markus Müller on Mar 14, 2008 8:23 PM

  • Complex data model question regarding master data

    Hi Experts,
    I have a requirement to add master data retail price and master data cost into BW.
    Both amounts are based on plant and material.  How do I model this?
    Here is how the records are coming in via the datasource:
    Plant   Material      UofM Cost    CostFrom CostTo Retail   RetailFrom RetailTo
    0001   1000321      EA    $1.00   5/1/07   5/9/07     $2.99    6/6/07        6/9/07
    0001   1000321      CS    $8.00   5/5/07   5/7/07     $9.99    8/6/07        9/9/07
    Here's what I am thinking....
    1.  Add UofM, Cost, and Retail prices as attributes of 0MAT_PLANT infoObject
        Also make those attributes time dependent.
    2.  Use ABAP slit up the cost info and the retail info and use the valid dates above for the time dependent from/to dates in 0MAT_PLANT
    Example:
    0MAT_PLANT attributes:
    Plant   Material      UofM Cost    ValidityFrom ValidityTo    Retail
    0001   1000321      EA    $1.00   5/1/07          5/9/07
    0001   1000321      CS    $8.00   5/5/07          5/7/07
    0001   1000321      EA               6/6/07          6/9/07         $2.99
    0001   1000321      CS               8/6/07          9/9/07         $9.99
    After looking at the above, I need to compound UofM with 0MAT_PLANT somehow.  How would I do that?
    Is this the best way to model this?
    Thanks,
    Chris

    Chris,
    I wouldn't include those amounts as attributes for 0MAT_PLANT. In general it doesn't make too much sense, except in some very specific cases, to make a Key Figure an Attribute of a Characteristic.
    I wouldn't either modify the 0MAT_PLANT key to compound it with UOM... Not a good idea, in my opinion.
    In your case, those values can change over time, depending on the validity period. So you could have several records with different validity periods for the same Material and Plant combination.
    I'd rather create an ODS with these values. The key fields would be 0MAT_PLANT and the validity dates and the data fields would be the amounts.
    You could use and include this ODS in any Multicube or get the values based on the validity periods by using ABAP routines if you need to.
    Another thing, as SAP recommends, an InfoObject with more than 500,000 records shouldn't be modeled as Master Data. And 0MAT_PLANT is a perfect candidate for this situation.
    So I'd advise to go with the ODS solution.
    Hope this helps.
    Regards,
    Luis

  • Utilities - open items/cleared items enhancement with HKONT from DFKKOPK

    Hi friends,
    My client needs item level GL Acccount ( HKONT ) from DFKKOPK table for both Opne & Cleared Items. So i enhanced both Datasource( 0FC_OP_01 and 0FC_CI_01) with this new field HKONT which gets data from different table i.e., DFKKOPK. Now i have encountered one problem. The link between these talbes is only OPBEL(FICA doc no).By doing so we are getting item level records but we are not able to figure out the distribution of 'Contract(VTREF)' values across these records.
    For examle for doc no : 900000031212 there are 3 records at DFKKOP base table. But in DFKKOPK table it has 19 records with different sub G/L Accounts. After the execution of CMOD code, in RSA 3 , 3 records are replaced by these 19 records successfully with new sub G/L values but some fields like Contract , Division , cleareding reason etc..are showing only the first records values for all these 19 records. But this gives reports wiith wrong contract and dividion values.
    So my question is " how to bring these SUb G/L account(HKONT) values from DFKOPK table .
    Waiting for good replies,
    Murthy

    We had a requirement to retrieve "aging of receiveables" by customer. Basically, it goes thru each record and depending on the due date places the amounts in the following buckets (example). 0-30 day Overdue, 31-60 days Overdue, 61-90 days overdue, 30+ days overdue, 60+ days overdue) etc all the way to 6+ years overdue.
    There are also cooresponding buckets for coming due analysis. For example, what is: 0-30 days coming due, 31-60 days coming due, 30+ days coming due, etc...
    To do this, first I needed to be able be able to produce an open items statement at any given time in the past. Now, this seems impossible because of how the items go from open to cleared all the time. And an item that was open one month ago, may not be open anymore.
    What I did was first remove any selections on item status. Then compare the posting date with teh key date in the past, if the posting date is less than or equal to the key date, keep the record.
    Then compare the clearing date with the key date. First, keep all that are #. (This keeps all records still open from that posting date/key date)
    Then, add another check for all items that were cleared after the key date (GT Key Date). This gives you the open items on that date.
    Hope that makes sense. Let me know if you want clarification.
    /smw

  • One-to-many selfjoin removing records with the same ranking or with a substitute

    Sorry for my bad choice of discussion title, feel free to suggest me a more pertinent one
    I've rewritten post for clarity and following the FAQ.
    DB Version
    I'm using Oracle Enterprise 10g 10.2.0.1.0 64bit
    Tables involved
    CREATE TABLE wrhwr (
    wr_id INTEGER PRIMARY KEY,
    eq_id VARCHAR2(50) NULL,
    date_completed DATE NULL,
    status VARCHAR2(20) NOT NULL,
    pmp_id VARCHAR2(20) NOT NULL,
    description VARCHAR2(20) NULL);
    Sample data
    INSERT into wrhwr  VALUES (1,'MI-EXT-0001',date'2013-07-16','Com','VER-EXC','Revisione')
    INSERT into wrhwr VALUES  (2,'MI-EXT-0001',date'2013-07-01','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (3,'MI-EXT-0001',date'2013-06-15','Com','VER-EXC','Revisione')
    INSERT into wrhwr  VALUES (4,'MI-EXT-0001',date'2013-06-25','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (5,'MI-EXT-0001',date'2013-04-14','Com','VER-EXC','Revisione')
    INSERT into wrhwr  VALUES (6,'MI-EXT-0001',date'2013-04-30','Com','VER-EXC','Verifica')
    INSERT into wrhwr  VALUES (7,'MI-EXT-0001',date'2013-03-14','Com','VER-EXC','Collaudo')
    Query used
    SELECT *
      FROM (SELECT eq_id,
                   date_completed,
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Verifica%') table1,
           (SELECT eq_id,
                   date_completed,      
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Revisione%') table2,
           (SELECT eq_id,
                   date_completed,           
                   RANK ()
                   OVER (PARTITION BY eq_id
                         ORDER BY date_completed DESC NULLS LAST)
                      rn
              FROM wrhwr
             WHERE     status != 'S'
                   AND pmp_id LIKE 'VER-EX%'
                   AND description LIKE '%Collaudo%') table3
    WHERE     table1.eq_id = table3.eq_id
           AND table2.eq_id = table3.eq_id
           AND table1.eq_id = table2.eq_id
    Purpose of the above query is to selfjoin wrhwr table 3 times in order to have for every row:
    eq_id;
    completition date of a work request of type Verifica for this eq_id (table1 alias);
    completition date of a wr of type Revisione (table2 alias) for this eq_id;
    completition date of a wr of type Collaudo (table3 alias) for this eq_id;
    A distinct eq_id:
    can have many work requests (wrhwr records) with different completition dates or without completition date (date_completed column NULL);
    in a date range can have all the types of wrhwr ('Verifica', 'Revisione', 'Collaudo') or some of them (ex. Verifica, Revisione but not Collaudo, Collaudo but not Verifica and Revisione, etc.);
    substrings in description shouldn't repeat;
    (eq_id,date_completed) aren't unique but (eq_id,date_completed,description,pmp_id) should be unique;
    Expected output
    Using sample data above I expect this output:
    eq_id,table1.date_completed,table2.date_completed,table3.date_completed
    MI-EXT-001,2013-07-01,2013-07-16,2013-03-14 <--- for this eq_id table3 doesn't have 3 rows but only 1. I want to repeat the most ranked value of table3 for every result row
    MI-EXT-001,2013-07-01,2013-06-15,2013-03-14 <-- I don't wanna this row because table1 and table2 have both 3 rows so the match must be in rank terms (1st,1st) (2nd,2nd) (3rd,3rd)
    MI-EXT-001,2013-06-25,2013-06-15,2013-03-14 <-- 2nd rank of table1 joins 2nd rank of table2
    MI-EXT-001,2013-04-30,2013-04-14,2013-03-14 <-- 1st rank table1, 1st rank table2, 1st rank table3
    In vector style syntax, expected tuple output must be:
    ix = i-th ranking of tableX
    (i1, i2, i3) IF EXISTS an i-th ranking row in every table
    ELSE
    (i1, b, b)
    where b is the first available lower ranking of table2 OR NULL if there isn't any row  of lower ranking.
    Any clues?
    With the query I'm unable to remove "spurius" rows.
    I'm thinking at a solution based on analytic functions like LAG() and LEAD(), using ROLLUP() or CUBE(), using nested query but I would find a solution elegant, easy, fast and easy to maintain.
    Thanks

    FrankKulash ha scritto:
    About duplicate dates: I was most interested in what you wanted when 2 (or more) rows with the same eq_id and row type (e.g. 'Collaudo') had exactly the same completed_date.
    In the new results, did you get the columns mixed up?  It looks like the row with eq_id='MI-EXT-0002' has 'Collaudo' in the desciption, but the date appears in the verifica column of the output, not the collaudo  column.
    Why don't you want 'MI-EXT-0001' in the results?  Is it realted to the non-unique date?
    For all optimization questions, see the forum FAQ:https://forums.oracle.com/message/9362003
    If you can explain what you need to do in the view (and post some sample data and output as examples) then someone might help you find a better way to do it.
    It looks like there's a lot of repetition in the code.  Whatever you're trying to do, I suspect there's a simpler, more efficient way to do it.
    About Duplicate dates: query must show ONLY one date_completed and ignore duplicated. Those records are "bad data". You can't have 2 collaudos with the same date completed.
    Collaudo stands for equipment check. A craftperson does an equipment check once a day and, with a mobile app, update the work request related to equipment and procedure of preventive maintenance, so is impossibile that complete more than one check (Collaudo) in a day, by design.
    In the new results, it's my fault: during digitation I've swapped columns
    With "I don't want 'MI-EXT-0001'" I mean: "I don't want to show AGAIN MI-EXT-0001. In the previous post was correct the output including MI-EXT-0001.
    Regarding optimisation...
    repetition of
    LAST_VALUE ( 
                            MIN (CASE WHEN r_type = THEN column_name END) IGNORE NULLS) 
                         OVER (PARTITION BY eq_id ORDER BY r_num)  AS alias_column_name
    is because I don't know another feasible way to have all columns needed of table wrhwr in main query, maintaining the correct order. So i get them in got_r_type and propagate them in all the subquery.
    In main query I join eq table (which contains all the information about a specific equipment) with "correct" dates and columns of wrhwr table.
    I filter eq table for the specific equipment standard (eq_std column).
    efm_eq_tablet table and where clause
    AND e.eq_id = e2.eq_id 
              AND e2.is_active = 'S'; 
    means: show only rows in eq table that have an equal row in efm_eq_tablet table AND are active (represented by 'S' value in is_active column).
    About the tables v2, r2 and c2
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE edr.csi_id = '1011503' AND edr.doc_validita_temp = 'LIM') v2, 
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE     eq_id = edr.eq_id 
                      AND edr.csi_id = '1011504' 
                      AND edr.doc_validita_temp = 'LIM') r2, 
              (SELECT doc_data, doc_data_rinnovo, eq_id 
                 FROM efm_doc_rep edr 
                WHERE     edr.csi_id IN ('1011505', '1011507') 
                      AND edr.doc_validita_temp = 'LIM' 
                      AND adempimento_ok = 'SI') c2, 
    Those tables contains "alternate" dates of completition to be used when there isn't any wrhwr row for an eq_id OR when all date_completed are NULL.
    NVL() and NVL2() functions are used in main query in order to impletement this.
    The CASE/WHEN blocks inside main query implements the behavior of selecting the correct date based of the above conditions.

Maybe you are looking for

  • I`m getting a saffire pro 40,and want to know what and how to turn anything I dont`t need to have running on my 2011 Macbook Pro

    I plan to do some simple live recording ( 6 or 7 simultaneous tracks,and possibly add a few more later ) I want to keep my machine running smooth with the least amount of competition for resources while recording. Any tips and info on what and how to

  • Can I just transfer iPhoto pictures from an old mac to a new one without transferring anything else?

    I bought a new iMac back in September and finally got around to setting it up.  Unfortunately, I am having loads of trouble transferring stuff from my older iMac to the new one.  It probably has something to do with the reason why we've replaced it..

  • Oracle BPEL is not starting up for Weblogic 8.1.5

    I have installed Weblogic 8.1.5 and Oracle BPEL for Weblogic in D:. When I tried to start the Oracle WL BPEL, I get the following exception. <Dec 21, 2005 11:48:05 AM IST> <Notice> <Management> <BEA-140005> <Loading domain configuration from configur

  • Error handling on XI

    Hi,   I am beginner for XI. I am require to do a task for the FILE TO RFC between external system and sap r3 using XI. My question is lets said the file was converted to rfc and suddenly the connection between r3 to XI hit error when the rfc try to s

  • Caching in PI

    Hi, I am very new to PI. As I know so far that caching is always used for performance reasons. This means that system will still run but performance will be slow. Does that caching means the same in PI/XI or it has some different concept because some