Reconciliation between two R/3 tables

Hi,
this might be the wrong board for this, sorry!
Does anyone know a report with which you can compare the GL totals table (GLT0) with the line item tables (BSEG BKPF)?
We have loaded line items and totals into two different cubes and the data doesn't reconcile.
Thanks!

You should be using DEBMAS & depending upon what data you wanna pass use hte below...
ADRMAS, ADR2MAS, ADR3MAS
In your case for additinal address, you should use ADRMAS - main address of a customer or vendor has address type 1
http://help.sap.com/saphelp_45B/helpdata/en/35/b0a23285ee23cde10000009b38f983/content.htm
-SM

Similar Messages

  • Find gap between two dates from table

    Hello All,
    I want to find gap between two dates ,if there is no gap between two dates then it should return min(eff_dt) and max(end_dt) value
    suppose below data in my item table
    item_id    eff_dt           end_dt
    10         20-jun-2012     25-jun-2012
    10         26-jun-2012     28-jun-2012 There is no gap between two rows for item 10 then it should return rows like
    item_id eff_dt end_dt
    10 20-jun-2012 28-jun-2012
    item_id    eff_dt           end_dt
    12         20-jun-2012     25-jun-2012
    12         27-jun-2012     28-jun-2012 There is gap between two rows for item 12 then it should return like
    item_id eff_dt end_dt
    12 20-jun-2012 25-jun-2012
    12 27-jun-2012 28-jun-2012
    I hv tried using below query but it giv null value for last row
    SELECT   item_id, eff_dt, end_dt, end_dt + 1 AS newd,
             LEAD (eff_dt) OVER (PARTITION BY ctry_code, co_code, item_id ORDER BY ctry_code,
              co_code, item_id) AS LEAD,
             (CASE
                 WHEN (end_dt + 1) =
                        LEAD (eff_dt) OVER (PARTITION BY ctry_code, co_code, item_id ORDER BY ctry_code,
                         co_code, item_id, eff_dt)
                    THEN '1'
                 ELSE '2'
              END
             ) AS new_num
      FROM item
       WHERE TRIM (item_id) = '802'
    ORDER BY ctry_code, co_code, item_id, eff_dtI m using oracle 10g.
    please any help is appreciate.
    Thanks.

    Use start of group method:
    with sample_table as (
                          select 10 item_id,date '2012-6-20' start_dt,date '2012-6-25' end_dt from dual union all
                          select 10,date '2012-6-26',date '2012-6-26' from dual
    select  item_id,
            min(start_dt) start_dt,
            max(end_dt) end_dt
      from  (
             select  item_id,
                     start_dt,
                     end_dt,
                     sum(start_of_group) over(partition by item_id order by start_dt) grp
               from  (
                      select  item_id,
                              start_dt,
                              end_dt,
                              case lag(end_dt) over(partition by item_id order by start_dt)
                                when start_dt - 1 then 0
                                else 1
                              end start_of_group
                        from  sample_table
      group by item_id,
               grp
      order by item_id,
               grp
       ITEM_ID START_DT  END_DT
            10 20-JUN-12 26-JUN-12
    SQL> SY.

  • Reconciliation between two sources

    I have two tables A and B. There are around 5 crore records in table A. In table B i have a column called id. In all there are 25 ids and there are 6000 records for each id. So in total there are 150000. I want to join all the 5 crore records of table A with all the records for each id in table B one by one. i.e. 5 crore join with 6000 of id 1; then 5 crore join with 6000 records of id 2 and so on... can u please suggest a solution with optimized performance as it is a performance critical case?

    Unless your join is on columns that represent a unique key in atleast one of the tables, you will find that your result contains duplicates*.
    This is because SQL is multiset based and not set based.
    SQL is supposed to be declarative. In that if you want to join tables A, B on columns x,y,z then you just do so, and leave the optimiser to worry about the "optimal implementation".
    We all know in practise that this isn't the case, and this is why there are always clowns writing bad code and well paid jobs to fix the circus SQL.
    However in a join between two tables, especially one not involving unique keys, there is no logical optimisation, although you will additionally to DISTINCT your result which will degrade performance further.
    I suggest you revisit your table design and try to get some unique constraints on there, so that the optimiser may be enabled to do it's job for you and you may leverage the innate power of the set.
    *unless of course either of the tables is empty, or contains only one row. Or the join columns happen to represent an unenforced unique key, in which case you'd better get an actual constraint on there before someone breaks it.
    Message was edited by:
    The Flying Spontinalli

  • Constraints between two or more tables

    Dear all,
    I have a general question, i searched in Google but i couldn’t find any result.
    if i want to add constraints to a table it is easy , but what if in this "Check " part, i also want to consider records from another table? how it is possible?
    like this , but it doesn't work actually in oracle 11g :
    {code}
    ALTER TABLE Country ADD CONSTRAINT "Country_CkHK1"
    CHECK (population > ( select sum(ci.population) from city ci where ci.country=code group by code) ) ENABLE;
    {code}
    thank you in advance.
    best,david

    Hi,
    The only kind of constraint that references 2 tables is a foreign key constraint.  All other constraints only refer to 1 table.  As Solomon said, you can't do what you want using only constraints.
    You can DML create triggers on each table that read the relevant information from the other table, and raise an error if the DML would break your business rules.  This would be easiest if you created a view that joined the 2 tables, and created an INSTEAD OF trigger on the view.  Do all of the DML through the view, not the actual tables.
    For this particular problem (if I understand it correctly), you might consider adding an excess_population column to the country table, that tells how much country.population exceeds the SUM of the related city.populations.  This number must always be greater than 0, which you can enforce with a CHECK constraint.  The triggers on each table can change excess_population so that it is always up-to-date.

  • How to implement one to many relationship between two Document Line Table

    Hi,
    I want to implement the following relationship into user defined tables:
    Example Situation:
    There are tables A, B and C.
    For one record of Table A, there could be multiple records in table B.
    For one record of Table B, there could be multiple records in table C.
    i.e. A(1) -> B(n) [One to many relationship]
         B(1) -> C(n) [One to many relationship]
    finally: A(1) -> B(n) -> C(n)
    How can I achieve this? If I make Table A as Document and table B & C as Document Line and then make them UDO, will it work? Kindly suggest me a solution.
    Regards,
    Sudeshna.

    Hi,
    I think that the database representation is exactly what you ask for. 3 tables, A, B, C. A should have a UDF that is linked to B table, and B should have a UDF that is linked to C table.
    You should manage the database transactions, and the UI to support all this stuff.
    Regards,
    IBai Peñ

  • Automated Reconciliation report between two cubes

    Hi All,
    I need to create a query to do reconciliation between two cubes. Please help me to know the steps how I can go ahead.
    I have built a multiprovider on top of those cubes. Please let me know what need to be done in query to do reconciliation.
    Regards,
    Anjali

    Hi Anjali,
    I am assuming that by reconiliation you mean to check if the data in the two cubes is matching or not. If this is your requirement, then you can create a report in BEX Query designer, in the columns put dataprovider and below that put the keyfigures, and in the row you can put the characteristics for which you would like to reconcile the data for.
    Run the report and compare both the columns.
    Hope this helps.
    Regards
    Snehith.

  • Reconciliation of two accounts

    Hi dear all,
    I have some query about reconciliation of accounts,my client has defined different chart of accounts for invoice posting and invoice payment i.e.A/P invoice account for vendor is different and payment for the particular vendor code is different,
    now can we reconcile the these two accounts(vendor control accts) in SAP B1.
    Advance thanks
    Regards
    Komanduri.ks

    Hi,
    What are trying to perform? From the description of the issue, it seems that you are trying to do a Multi Business Partner Reconciliation between two Business Partner Codes having different Control Accounts.
    If yes, and if you are on version 2007 or higher, you can perform the Reconciliation under the following path:
    Business Partner Module > Internal Reconciliation > Reconciliation.
    In the Reconciliation window, click on the checkbox Multi Business Partner and then you would be able to select different Business Partner and perform the reconciliation for the different control accounts (payments and Invoice)
    Check if it helps.
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • Show name field for two columns Fact Table joing by one Dimension

    Hi all,
    My question is about physical joins in Oracle BI EE.
    Task is:
    In a relational fact table "star" there is two columns Entity 1, Entity 2 and a table dimension Entity witch have two filds: ID and NAME. By loadind data fact table is filled with id for Entity 1 and Entity 2.
    In a report made in Answers i need to show ID_Entity_1 NAME_Entity_1 ID_Entity_2 NAME_Entity_2
    Question is: how to do physical join between two columns fact table and one dimension table entity so, that i can show name field in a report for both columns Entity 1, Entity 2.

    You must Create an alias in the physical layer of your table dimEnsion and use it as a second dimension table.

  • Error while running code template mapping between two oracle tables

    Hello All
    Iam getting the following error while running code template mapping between two oracle tables. Using OWB 11gR2 and oracle 11gR2 DB.
    java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    c: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4                                        
    Job 51 error: java.sql.SQLException: ORA-20001: The active workspace is not valid as a target for this mapping
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1065
    ORA-06512: at "OWBSYS.WB_RT_MAPAUDIT_UTIL", line 1087
    ORA-06512: at "SOURCE.FILENET_EX_UNIT_3", line 555
    ORA-06512: at line 4
    Quick help is highly appreciated.

    Dera Dallan
    its only a target user for the workspace where you are deploying the mapping from.
    I have two repositories for two different projects. each repositary has its own workspace.
    ex:-
    Project 1
    Work space bpms_rep_owner
    Repositary owner bpms_rep_owner
    Repositary user bpms_rep_user
    Project 2
    Work space dem_rep_owner
    Repositary owner dem_rep_owner
    Repositary user dem_rep_user
    Reg
    S.Gyazuddin

  • Add new row in table between two rows - OATableBean

    Hi,
    I have a requirement where I need to add a new row between two rows. Lets say I have a table with 5 rows. I am envisioning having an icon (table switcher) on the row #1, which when clicked will insert/create a new row between rows #1 and #2 like #1.5, something that can be achieved in core forms. In core forms, when we click the add button, it immediately creates a new row before the current row ( and pushes other rows down). Is that possible with OATableBean. Please let me know if you have any ideas.
    Thanks,
    Ravi.

    Hi,
    I used following code to insert the row in the end
    public void createNewRow()
    XXEGASRLinesVOImpl vo =getXXEGASRLinesVO1();
    Row row1 ;
    int i;
    Row row[] = vo.getAllRowsInRange();
    row1 = vo.createRow(); //vo.createRowSet("10");
    vo.insertRowAtRangeIndex(row.length,row1);//.insertRow();
    row1.setNewRowState(Row.STATUS_INITIALIZED);
    Check if it works for you, you have to modify it to meet your requirement.
    Regards,
    Reetesh Sharma

  • I need to retrieve the a set of rows in between two rows from a table.

    consider employees table and primary key employee_id.
    With out using EMPLOYEE_ID column in the where clause or between clause, I need to get the records between 104 and 116 or a set of records between two rows.
    Can any one help me in this... i know this is simple but am just a fresher to oracle development... help me grow....
    Thanks,
    Arun

    ya at last i got the out put... thank guys for thinking with me....
    SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id)
    WHERE ROWNUM <=8
    MINUS
    SELECT rownum, employee_id FROM (SELECT rownum, employee_id FROM employees ORDER BY employee_id) WHERE ROWNUM <= 4

  • Bridge Table between two fact tables

    Hello everybody,
    From what I have read on the BI Administration tool help and on this forum, bridge tables are used to define many-to-many relations between dimension sand fact tables. Is it possible to have a bridge table defining a many-to-many relation between two fact tables?
    Here is my senario:
    1. We have a fact table called fact_Orders describing orders for some products.
    2. We have a fact table called fact_Sales describing sales og these products.
    3. We have a table describing the transformation from order lines to sales lines which is a many-to-many relation, because it is possible to transform an order in more than two steps.
    I was thinking of connecting the two fact tables with a bridge table.
    If bridge tables are inappropriate for this case, what could be a better model for my senario?
    Thanks for your time.

    Hi,
    Well a conformed dimension is a bridge table between two facts, so not sure why you need anything else. If there is a one to many from D1 to F1 and a one to many from D1 to F2 then effectively there is a many to many join from F1 to F2 through the D1 dimension.
    Sounds to me like all you need is an order dimension table, rows in the orders fact table will join to this dimension and so will rows in the sales fact table. You can then do calculations like number of sales per order, total sales revenue per order, # of order items per order etc etc.
    Regards,
    Matt

  • Need to find the Difference between two table

    Hello ,
    I have stucked in program as below scenario:-
    I have two tables of huge data of same structure in a same schema.I need to find the difference exact values in tables.
    By using MINUS we can find the difference between two table ,i need to find the what exact difference in the there values with colunm and value at that column.
    Example TableA
    Col1 col2 col3 col4 col5.... col50
    10 ABC 2001 EE 444 TT
    40 XYZ 3002 RR 445 TT3
    80 DEF 6005 YY 446 YY8
    TableB
    Col1 col2 col3 col4 col5.... col50
    10 ABC 2001 EE 444 TT
    40 XYZ 3002 RR 445 TT3
    81 DEF 6005 Yu 447 YY8
    I need to the out put like this :-
    The Diffence between two table is
    TableA.COL1=80 TableB.Col1=81, Different
    TableA.Col4=YY TableB.col4=Yu,Different
    TableA.Col5=446TableB.col5=447,Different
    Please suggest me to write the pl/sql program for the same
    thanx in advance
    KK

    Thanx friends for all your efforts
    I have a sample code for the same,this will compare the two tables for single row in each table .
    what r the modification needed for the multiple rows of values in the two tables??
    Please suggest!!
    CREATE OR REPLACE PROCEDURE test_compare
    IS
    TYPE t_col
    IS
    TABLE OF VARCHAR2 (30)
    INDEX BY PLS_INTEGER;
    l_col t_col;
    j NUMBER := 0;
    l_sql VARCHAR2 (2000);
    col1 VARCHAR2 (30);
    col2 VARCHAR2 (30);
    val1 NUMBER;
    val2 NUMBER;
    status VARCHAR2 (30);
    CURSOR c1
    IS
    SELECT column_id, column_name
    FROM all_tab_columns
    WHERE table_name = 'TEST1';
    BEGIN
    FOR i IN c1
    LOOP
    j := j + 1;
    l_col (j) := i.column_name;
    END LOOP;
    FOR k IN 1 .. j
    LOOP
    l_sql :=
    'SELECT '
    || ''''
    || l_col (k)
    || ''''
    || ', '
    || 'TEST2.'
    || l_col (k)
    || ', '
    || ''''
    || l_col (k)
    || ''''
    || ', '
    || 'TEST1.'
    || l_col (k )
    || ', '
    || 'DECODE(TEST2.'
    || l_col (k)
    || ' -TEST1.'
    || l_col (k)
    || ', 0, ''NO CHANGE'', ''CHANGED'') FROM TEST2, TEST1';
    EXECUTE IMMEDIATE l_sql INTO col1, val1,col2, val2, status;
    IF status = 'CHANGED'
    THEN
    DBMS_OUTPUT.put_line( 'TEST2.'
    || col1
    || '='
    || val1
    || ', TEST1.'
    || col2
    || '='
    || val2
    || ', '
    || status);
    END IF;
    END LOOP;
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ('Error:- ' || SQLERRM);
    END;
    /

  • How to compare data between two tables?

    Hi,
    My team is trying to develop a SAP data migration tool (DMT) using ABAP.
    One of the functionalities in the DMT is to validate the data in the staging area against the loaded SAP data.
    The tables in the stagin area are customer tables (i.e. user-defined tables starting with Y, Z).
    How do I compare the data in the staging area against data that are loaded into SAP tables? Are there some built-in SAP functions to do this? Or, are there some better ways of doing this (e.g. instead of comparing against data in the SAP tables, we compare with some INTERNAL tables)?
    Any help would be greatly appreciated, thanks!

    Hi Kian,
    Use <b>SCMP</b> transaction to compare data between two tables and you can not use this for comparing internal tables.
    Thanks,
    Vinay

  • How to get space between two values in a single cell of a table.

    hello,
            how to get space between two values in a single cell of a table.
    thanks a lot.
    kailash.

    sorry i got the answer.

Maybe you are looking for

  • Set up a WDS with Express an DLink

    Is it possible to set up a WDS with AP Express and Dlink 614+ or you need to use only apple products for that? I would like to use DLink as an extra antenna for my AP Express. KR

  • Production-Time Report

    Hi All, Can anybody help me in getting a report containing info abt time taken at each stage of production?

  • Include and selection screen

    Hi Experts ,      i have a problem regarding include and selection screen. i have an include program , in which i have  defined my selection screen. and this include has been called in many program .   but problem is that i have to maintain selection

  • 32 bit mode option missing for CS5.1

    I have both CS5.1 and CS6 PS istalled on my iMAC. I want to use CS5.1 with filters that only work in 32 bit mode. I can no longer change my CS5.1 PS to open in 32- bit mode. The option is mysteriously missing from the "get info" panel. I have accesed

  • JDBC Explorer & Database

    I need to create a database (static_data). I don't solve my problem with MySql. I try with JDBC Explorer. I have read it was possible for a little DB like mine. BUT I don't know how implement the lines Driver and URL. I have JBuilder4. The system req