Missing records

Hello all,
I have a problem regarding delta load.
<i><b>(  0FI_AR_4 datasource )</b></i>
I have deleted deltas in ODS , by mistake.
then, I made them forced red in reconstruction and then did repeat delta..
I checked in RSA7...and found that all records in Repeat delta update mode are loaded in ODS.
But still some of the records are missing in ODS....
I have done repair full request ....and everything what i could do..
Still problem is not solved....
Please help me.....
Thanks in advance.....

Hi,
As u have now deleted....Well forget all now and do this process
1.Initialize infopackage again(No need of R/3 downtime as it FI area).
2.Set the Infopackage to delta.
3.Schedule the Job in R/3 for delta's(suggestable time period will be 2hrs).
4.Schedule the infopackage for delta.
Definetly ur data will match.
Rgds
Ace BW

Similar Messages

  • How to get missing records from one table

    I have one table with many records in the table. Each time a record is entered the date the record was entered is also saved in the table.
    I need a query that will find all the missing records in the table.
    so if I have in my table:
    ID          Date          Location
    1           4/1/2015        bld1
    2           4/2/2015        bld1
    3           4/4/2015        bld1
    I want to run a query like
    Select Date, Location FROM [table] WHERE (Date Between '4/1/2015' and '4/4/2015') and (Location = bld1)
    WHERE Date not in
    (Select Date, Location FROM [table])
    and the results would be:
    4/3/2015   bld1
    Thank you

    Do you have a table with all possible dates in it?  You can do a left join from that to your above mentioned table where the right side of the join is null.  If you don't have a table with all possible dates you could user a numbers table.
    Below is one way to achieve what you want with a numbers table...
    DECLARE @Table table (ID Int, DateField Date, Location VarChar(4))
    DECLARE @RunDate datetime
    SET @RunDate=GETDATE()
    IF OBJECT_ID('dbo.Numbers') IS NOT NULL 
    DROP TABLE NUMBERS
    SELECT TOP 10000 IDENTITY(int,1,1) AS Number
       into Numbers
        FROM sys.objects s1
        CROSS JOIN sys.objects s2
    ALTER TABLE Numbers ADD CONSTRAINT PK_Numbers PRIMARY KEY CLUSTERED (Number)
    INSERT INTO @Table (ID, DateField, Location)
    VALUES ('1','20150401','bld1')
    ,('1','20150402','bld1')
    ,('1','20150404','bld1');
    WITH AllDates
    as
    SELECT DATEADD(dd,N.Number,D.StartDate) as Dates
    FROM Numbers N
    cross apply (SELECT CAST('20150101' as Date) as StartDate) as D
    select * 
    from AllDates AD
    left join @Table T on AD.Dates = T.DateField
    where ad.Dates between '20150401' and '20150404'
    AND T.ID IS NULL
    LucasF

  • How to identify missing records in a single-column table?

    How to identify missing records in a single-column table ?
    Column consists of numbers in a ordered manner but the some numbers are deleted from the table in random manner and need to identify those rows.

    Something like:
    WITH t AS (
               SELECT 1 ID FROM DUAL UNION ALL
               SELECT 2 ID FROM DUAL UNION ALL
               SELECT 3 ID FROM DUAL UNION ALL
               SELECT 5 ID FROM DUAL UNION ALL
               SELECT 8 ID FROM DUAL UNION ALL
               SELECT 10 ID FROM DUAL UNION ALL
               SELECT 11 ID FROM DUAL
    -- end of on-the-fly data sample
    SELECT  '[' || (id + 1) || ' - ' || (next_id - 1) || ']' gap
      FROM  (
             SELECT  id,
                     lead(id,1,id + 1) over(order by id) next_id
               FROM  t
      where id != next_id - 1
    GAP
    [4 - 4]
    [6 - 7]
    [9 - 9]
    SQL> SY.
    P.S. I assume sequence lower and upper limits are always present, otherwise query needs a little adjustment.

  • How to find out the missing records

    Dear all,
    I feel that there is some Inconsistent records between R/3 and the extracted records BI for the data source 2LIS_03_BF. some of the records may not be updated through delta.. Is this possible? as we have created  Zkey figures to capture the diffrent unit of measure's quantity from the table MSEGO2 and updated to IC_c03 cube.
    Can any one tell me how to go about the missed records..where to find them.. and how to extract them.
    Poits will be assigned
    Regards
    venu

    hi,
    inventory scenario is difficult to handle as this have non cumulative key figures which can be viewed at the repors.
    extreme care is required while compression and intila loads and their compression.
    run the report or ask the user to run the report and sort out the missing records.
    chk out the document and chk if the procedure done by you is correct.
    inventory management
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Ramesh

  • Insert missing records dynamically in SQL Server 2008 R2

    Hi, I am working on a requirement where I will have to work on some % calculations for 2 different states where we do business. The task that I am trying to accomplish is technically we need to have any Product sales in both the states if not for instance
    in the following example ProductC does not have sales in OR so I need to insert a record for ProductC - OR with 0. This is an intermediary resultset of all the calculations that I am working with.
    Example Dataset:
    CREATE TABLE [dbo].[Product](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    How to accomplish this in SQL Server 2008 R2.
    Insert missing record:
    INSERT INTO [Product] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','OR',0,0,0,0,0,0,0,0,0,0,0)
    Thanks in advance......
    Ione

    CREATE TABLE [dbo].[Products](
    [Product] [varchar](18) NOT NULL,
    [State] [varchar](5) NOT NULL,
    [Area1] [int] NOT NULL,
    [Area2] [int] NOT NULL,
    [Area3] [int] NOT NULL,
    [Area4] [int] NOT NULL,
    [Area5] [int] NOT NULL,
    [Area6] [int] NOT NULL,
    [Area7] [int] NOT NULL,
    [Area8] [int] NOT NULL,
    [Area9] [int] NOT NULL,
    [Area10] [int] NOT NULL,
    [Total] [int] NULL
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','OR',0,0,2,0,2,0,0,0,0,0,4)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','WA',0,0,1,0,0,0,0,0,0,0,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductA','Total',0,0,3,0,2,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','OR',0,0,5,0,0,0,0,0,0,0,5)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','WA',0,0,2,0,0,1,0,0,0,0,3)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductB','Total',0,0,7,0,0,1,0,0,0,0,8)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','WA',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductC','Total',0,0,0,0,0,0,0,0,0,1,1)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','OR',5,2,451,154,43,1,0,0,0,0,656)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','WA',0,20,102,182,58,36,0,1,0,0,399)
    INSERT INTO [Products] ([Product],[State],[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])VALUES('ProductD','Total',5,22,553,336,101,37,0,1,0,0,1055)
    ;WIth mycte as (
    Select Product,State From (Select distinct Product from Products) p, (
    Select distinct State from Products) s
    Insert into [Products](Product,State,[Area1],[Area2],[Area3],[Area4],[Area5],[Area6],[Area7],[Area8],[Area9],[Area10],[Total])
    Select m.Product,m.State
    ,0,0,0,0,0,0,0,0,0,0,0
    from mycte m Left Join Products p on m.[Product]=p.Product and m.State=p.State
    WHERE p.Product is null and p.State is null
    select * from Products
    Order by Product
    ,Case when State='Total' Then 2 else 1 End
    Drop table Products

  • Missing records while fetching data from Data mart

    Hi,
    I have some missing records in the ODS.The data is fetched from the other BW system.
    It is a delta load & all the loads are succesfull as of now.But still some records are missing.
    If i see in reconstruction tab, some requests are showing the Transfer structure status as clock(transfer stucture has changed sine the last request). Is it because of this time stamp status got changed ?
    I have done reinitialization & the missing Datas are fetched .But i would like to know the cause of missing records.
    Regrads,
    ANita

    Hi kedar,
    If there was a time stamp difference ,the data load should have got failed.All the delta loads were succesfull.
    But now they realised there are some missing records.Just for analysis purpose , i was looking into reconstruction tab & the transfer structure status was displayed as clock.
    But actually there was no change in the transfer stucture.
    Sometimes we used to get timestamp error &
    we used to replicate the data source & activate the transfer structure.
    To avoid these things in future what needs to be done.As this load gets triggered through process chain & each time the data load status was succesful.
    Every time we cant do replication of datasource while loading through Process chain unless the transfer structure gets changed.
    But my concern was is this the cause for missing records or something else.
    Regards,
    ANita

  • Missing records in BW

    Hi friends,
    We load sales order daily in our Quality system using a process chain, but lately we are facing a strange issue. The records in BW rae not matching in R/3.
    EX: on 17.10.2007 in VBAK table there are around 6500 Orders created (Created on), the same will be loaded to our BW ODS without any transformation or restrictions, so we should get the same number of records. Instead we got 100 records only.
    This missing records is not happening every day. It happened in the 1st week of OCt and also on 17th of Oct rest other days its OK.
    I wanted to know if anyone of u have faced similar issue? if yes  how did u solve ( Filling up of setup tables for the missing records is not the solution), what i am looking at is is there any programs which deletes records either from the LBWQ or RSA7?.
    Your help is very much needed.
    Thanks in advance.
    BN

    Hi Manoj,
    Thanks a lot for ur quick reply. We are loading data for Header, Item and conditions in BW, we are not doing any transformations anywhere from R/3 BW, its all 1-2-1 mappings.
    We have been loading this for last 2 yrs, it suddenly started misbehaving. I suspect there must be some job which might be deleteing the records from RSA7, but im not sure if there is any prog or job which does this.
    Thanks
    BN

  • Missing record in archive log

    hello all,
    to the point, i am trying to mirroring 2 database using archive log.
    so, i do some test by inserting large data (1200 record / s) into 4 table for some interval (like 10 menit).
    Each time database create archive log, my daemon in Master will copy the archive log to the Slave, and daemon in the Slave will extract them using dbms_logmnr.
    the problem is number of rows in all Slave table is not equal (less than) number of all rows in Master.
    even if i try to alter the system log file manuallly, still there is missing rows in slave.
    i have try some alternative like,
    - increasing db_writer_processes (from 1 to 2 to 4)
    - increasing redo log size (from 50 MB to 100 MB)
    - increasing redo log group (from 3 to 6)
    but still there is a missing record.
    where is those missing record go ?
    master db: 10.2.0.1.0 + ASM
    master os: SunOS z8 5.10 Generic_137138-09 i86pc
    slave db: 10.2.0.1.0
    slave os: GNU/Linux 2.6.18-8.el5 x86_64 (RHEL)

    Thank you for your reply sir.
    The problem with CDC (and/or Streams implementation) is they use a cpu resource within Oracle it self. So, if in peak time Oracle in Master has already reaching 80-90%, with addition using Streams they will make it to > 90%. Don't imagine 1000000 / day transaction here, but imagine with 1000/s transaction. And That's what the-one-who-already-use-stream says.
    i am not reinvent the wheel here, i am seeking for best alternative. in fact i am looking for answer from "where is those missing record go ?"

  • Missing record in customizing tabele after client copy

    Hi,
    A box with Solaris 10 X64, SAP ECC 6.03, SAP AFS 6.03 and MaxDB 7.6.
    In a just installed system we have crate two client as copy from 000 .... in this two client some customizing tables has missing records. In 000 client all is OK.
    Have you have any idea ?
    Regards.
    Ganimede Dignan.

    Hi,
    You have said customizing tables, are those the default one or build by you. If they are given default from SAP, please note that ceratin data  content is not copied even by Client copy (SAP_ALL profile) you have to do a manual entry.
    Since CCopy have ended with no error and you ahve selected SAP_ALL profile but you dont see the data in the table, which means they cannot be moved by C.Copy and you have enter them manually.
    Regards,
    Raju.

  • Loading issue..missing records .. randomly

    HI ALL,
    Thanks for ur replies.
    We found on 11/09 some records are missing from last 6 months ( 3 to 4 records for each group with diff dates) in daily delta loads 1pm.
    It is very difficult to load each group as full loads on that dates.
    We did repeat delta with no selections on 12.09.2005 at 9 am (loads 8 million rec) and on the same day daily delta also run at 1pm( it also loads 8 million rec) . Finally we seen on 13/09 we get duplicate records. We forcibly removed these request which we had run on 12th (i.e Repeat Delta & Delta).  Those were now in reconstruct tab.
    How to get my missed records from 6 months? How to handle this with out effecting cube data?
    Can we do selections in repeat delta / delta cases?
    Initialization was done on 04/04/2004.
    What is the reason for missing these recors?/
    pls tell the step wise.
    Please guide me.
    Regards,
    Srilakshmi

    Hi Roberteo:
    It is 2.X , I think so, its not possible Full repir request here.
    You Mean 1)re-init with transfer/without transfer ? selection?( before this we should remove previous init load) 2) then daily delta.
    I am thinking :to do like this , please guide me:
    “My suggestion would be since we have the option of transfered date in the selection conditions of infopackage , what we have do is we can do selective deletion of the contents of last and current month based on the closing date of the HR system and load only that data .
    For ex: if you want to delete the contents of MAY 2005 and June 2005 , and the delta failed lies in the month of May 2005. so delete the two months and load only May 2005 in a separate infopackage. After that you can continue your normal loads with the month June 2005. By this way we won’t miss any data as you are loading to cube no problem of duplication.”
    Is it advisable??
    cheers,
    sri

  • The row was not found at the Subscriber error keeps popup and stopped synchronization even after inserting missing record at subscriber - transcational replication.

    The row was not found at the Subscriber error keeps popup and stopped synchronization even after inserting missing record at subscriber - transcational replication.
    first error throws: Grab exact sequence number, find row and inserted at subscriber...
    Start synchronizing, ran fine for a while, stopped again with error with different exact sequence number, repeat again same as step 1.......
    how can we stop this and make it run without this error?
    Please advise!!!

    Hi,
    This means that your database is out of sync. You can use the continue on data consistency error profile to skip errors. However, Microsoft recommends that you use -SkipErrors parameter cautiously and only when you have a good understanding of the following:
    What the error indicates.
    Why the error occurs.
    Why it is better to skip the error instead of solving it.
    If you do not know the answers to these items, inappropriate use of the
    -SkipErrors parameter may cause data inconsistency between the Publisher and Subscriber. This article describes some problems that can occur when you incorrectly use the
    -SkipErrors parameter.
    Use the "-SkipErrors" parameter in Distribution Agent cautiously
    http://support.microsoft.com/kb/327817/en-us
    Here are two similar threads you may refer to:
    http://social.technet.microsoft.com/Forums/en-US/af531f69-6caf-4dd7-af74-fd6ebe7418da/sqlserver-replication-error-the-row-was-not-found-at-the-subscriber-when-applying-the-replicated
    http://social.technet.microsoft.com/Forums/en-US/f48c2592-bad7-44ea-bc6d-7eb99b2348a1/the-row-was-not-found-at-the-subscriber-when-applying-the-replicated-command
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Export ALV to Excel and results in missing records/rows

    Hi experts,
    I'm a very beginner in ABAP programming. I've got a problem as below:
    My ALV report is able to export to .MHTML file, but few rows/records missing when export to .XLS file (using the 'Local File...' button or Ctrl + Shift + F9). And I found that missing rows actually appended to a cell of a displayed row.
    I've been searching solution for this issue quite sometimes and could not find any.
    Please kindly advise how to solve this issue.
    Thanks and regards,
    AN

    For more detail, the "Material Description" field contains some special characters as double-quote (") and comma (,)
    Please kindly advise if you experience.
    Thanks,
    AN

  • Missing recording clip - PLEASE HELP!

    Recording some speech clips in GB and went back to them this am to find them missing... I did discover that if I move the clips back and forth through the track, they shorten (cutting off) other clips that take up the same space... So if I slid a recorded clip over too far, and it covered over my previous clip is it gone forever?
    I'm working on a senior project and it's due tomorrow and now I'm missing audio
    PLEASE HELP ME!

    I was afraid of that.
    I wish that didn't happen. I would think that if you slide a clip over, it might push the other clips along with it, or hide it underneath or something to prevent loss of data...
    I think ACID worked like that.
    bummer.
    thanks.

  • 2LIS_02_SCL and 2LIS_02_ITM missing records

    Hi,
    We have a problem with DS: 2LIS_02_SCL and 2LIS_02_ITM. We load data in 0PUR_C01 throu Bi content standard objects (0PUR_C01 2LIS_02_ITM / ...SCL). ... there seem to be problem with DS because In infocube 0PUR_C01 we don't get consigment records (consigment records - possition on PO). I have already checked DSs in RSA3 and those records are missing?
    Any ideas?
    JN.

    Hi,
    are you sure you have PO's for your consignments? I would recommend to check the source tables EKKO, EKPO and EKET first. Once you are sure to have PO's there for consignments you can run  RSA3 for the DS with the EBELN (PO Number) and confirm that the extractor does not extract them. One thing to watch out for the RSA3 does not pull from the delta queue but from the setup tables. So you need to make sure that the Consignment Document you are missing are the setup tables.
    Hope that helps,
    Michael
    PS the extractor also pulls BSTYP Document Category K (Contracts) and L (Scheduling agreements)
    Edited by: Michael S on Jul 14, 2009 12:20 PM

  • Outer join not returning missing records.

    Hi All,
    Can you please look at the query and see why I don't get any record. There is no item '0141884' for cust_id '1259' in the nfpc_gpm_expense table.
    Thank you in advance.
    A/A
       SELECT DISTINCT rctla.customer_trx_id, msi.segment1 item_number,
                       rcta.trx_date trx_date, rcta.bill_to_customer_id cust_id,
                         (rctla.quantity_invoiced)
                       * NVL (msi.attribute13, 1) quantity,
                         rctla.unit_selling_price
                       * rctla.quantity_invoiced net_sales,
                       cic.material_cost * rctla.quantity_invoiced product_cost,
                         (rctla.unit_selling_price * rctla.quantity_invoiced
                       --  - (rctla.unit_selling_price * rctla.quantity_credited)
                       - (cic.material_cost * rctla.quantity_invoiced) gp_dollars,
                       nge.expense_amt
                  FROM ra_customer_trx_all rcta,
                       ra_customer_trx_lines_all rctla,
                       cst_cost_types cct,
                       cst_item_costs cic,
                       mtl_system_items_b msi,
                       nfpc_gpm_expense nge
              WHERE rcta.complete_flag = 'Y'
                   AND rcta.interface_header_attribute1 NOT LIKE '%B'
                   AND rcta.interface_header_context = 'ORDER ENTRY'
                   AND rcta.batch_source_id IN (1068, 1069)
                   AND rcta.customer_trx_id = rctla.customer_trx_id
                   AND rctla.inventory_item_id = msi.inventory_item_id
                   AND UPPER (cct.cost_type) = 'FROZEN'
                   AND cic.cost_type_id = cct.cost_type_id
                   AND cic.inventory_item_id = msi.inventory_item_id
                   and rcta.trx_date = '01-DEC-2009'
                  and msi.segment1 = '0141884'
                   and rcta.bill_to_customer_id = '1259'
                   and msi.segment1= nge.item_number(+)
                   and rctla.ATTRIBUTE1 = nge.DIVISION
                   and rcta.bill_to_customer_id = nge.CUST_ID
                  

    Table nfpc_gpm_expense is
      CUSTOMER_NO        VARCHAR2(20),
      ITEM_NUMBER        VARCHAR2(10),
      EXPENSE_AMT        VARCHAR2(20),
      DIVISION           VARCHAR2(20),
      INVENTORY_ITEM_ID  VARCHAR2(20),
      CUST_ID            VARCHAR2(20)Sample data in this table is
    CUSTOMER_NO     ITEM_NUMBER     EXPENSE_AMT     DIVISION     INVENTORY_ITEM_ID     CUST_ID
    02250000     0261884          1.76          B          8716               1259And this is the result of the query. Note that item 0141884 is missing from the result while as this item was sold on that day for this customer but since it is not in the nfpc_gpm_expense table, it doesn't show up.
    CUSTOMER_TRX_ID     ITEM_NUMBER     DIVISION     TRX_DATE     CUST_ID     QUANTITY     ORDER_NO     EXPENSE_AMT     NET_SALES     PRODUCT_COST     GP_DOLLARS     EXPENSE
    887617     0261884     B     12/1/2009     1259     60     1047572     1.76     662.4     338.4     324     105.6Edited by: asgar_amin on Mar 5, 2010 12:46 PM

Maybe you are looking for