How to find relationship between database tables

Hi Mate,s.
Iam new to SAPBW , PLZ tell me , How to find releationship between database table(Transperent tables).
Regards.
harry

hi harry,
from your previous postings, i guess you are asking relationship between tables in r/3, following links may help :
http://www.sapgenie.com/abap/tables.htm
http://www.sapgenie.com/abap/tables_sd.htm
http://www.sapgenie.com/abap/tables_mm.htm
http://www.sapgenie.com/abap/tables_fi.htm
http://www.sapgenie.com/abap/tables_ps.htm

Similar Messages

  • How to give relationship between two tables with comon column with between oprator

    Hi Folks,
    I am using Sql Server 2008R2. I am getting a problem to establish relationship between two tables. 
    I have two Tables, 1.Inventory Details Table another one is Inventory Header Table.
    Inventory Details Table having a column Card No and inventory Header Table having columns  From card No and To Card No.
    I want to give relationship between these two tables with Card no. Could you please provide me the Sql Query.
    Your help would be greatly appreciated .
    Regards
    hasthi.
    email:[email protected]

    Hi Raju,
     We have two way that we can relate to the table either join or quality condition use following syntax/Query  for relating two tables 
    select * from Inventory_Details ID inner join  Inventory_Header IH on ID.CardNo between IH.FrmCardno and IH.ToCardNo
    or 
    Select * from  Inventory_Details ID ,Inventory_Header IH where ID.CardNo=IH.CardNo OrSelect * from  Inventory_Details ID ,Inventory_Header IH where ID.CardNo between IH.FrmCardno and IH.ToCardNo
    Hope this will help you 
    Niraj Sevalkar

  • ERMS - how to find relationships between e-mails?

    Dear all,
    I'm working with e-mail management and I'd like to know if there is a way to find relationship between e-mails.
    Let's assume an e-mail is sent: the workflow for the same is created and an entry appears in the Inbox.
    Now, let's assume the customer writes a new e-mail in the same e-mail chain, to add some details (or answer to our reply): a new workflow is initiated and a new e-mail is available now in the agent inbox.
    Is the system able somehow to recognize that the two e-mails belong to the same chain? For operators, it would be important to know that, to avoid double processing of customer requests.
    When I use role IC_MANAGER an use the e-mail workbench, I see that in the second e-mail the linkage to the first is identified, but when the same reaches the inbox I was not able to find any useful field to identify this information.
    Anybody with experience on this?
    I'll reward points if you can help!
    Thanks and Regards,
    AR

    Hi Andrea
    Have you checkout out the Mail Form Tracking capabilities?
    Particularly for Service Tickets.
    This may provide some of the functionality you require
    Regards
    Arden

  • How To Find joins between siebel tables

    Hi Experts,
    I am new in siebel and i am working on BI reports.
    I need to write queries to fetch data from sibel database.
    Any idea how do we find joins between table in siebel. Is there any user guide??
    Cheers,
    Andy

    Hi Andy,
    We can find Joins in Object Explorer. Expand the Business Component Object in Object Explorer and you can find Join. In Siebel generally we use only Equi Joins. ROW_ID of parent table will be stored in PAR_ROW_ID of child table. ROW_ID and PAR_ROW_ID are the columns of the table. Most of the tables have these two columns.
    For Example: Take two tables S_CONTACT AND S_CONTACT_X, the ROW_ID of S_CONTACT will be stored in PAR_ROW_ID of S_CONTACT_X table.
    If you want to join these two tables the query will be like
    "SELECT * FROM S_CONTACT CON, S_CONTACT_X CONX WHERE CON.ROW_ID = CONX.PAR_ROW_ID"
    This query will return all the records from S_CONTACT_X which matches S_CONTACT table.
    Thanks & Regards,
    Vinodhkumar

  • How to find Tcode for database table

    Hi Gurus,
    I need to find out tcode for Standard SAP table in SCM APO '/SAPAPO/PBMVWT' for maintaining Plannning book text in different languages.
    The problem is that Table maintainance is not maintained so SM30 wont work. I tried Where used list option for table but no tcode or report found using this table..
    Kindly help
    Swapnil

    Hi,
    there is no maintenance txn. If you need to have text in different languages, you need to do it as follows:
    - logon for example once in english
    - goto txn /SAPAPO/SDP8B
    - maintain the text in English and activate the planning book.
    - Logon in the other Language
    - enter /SAPAPO/SDP8B again
    - Type in the text in the other language and activate the Planning book again.
    This will give the planning book language specific texts.
    Best regards
    Rico Frenzel

  • How to check relation between two tables in same database

    How to check relation between two tables in same database using Oracle SQL developer. Version 2.1.1.64

    Hi,
    Try this,
    SELECT   cons.owner AS child_owner, cons.table_name AS child_table,
             cons.constraint_name constaint_name,
             cons.constraint_type constraint_type, col.owner parent_owner,
             col.table_name parent_table, col.column_name column_name
        FROM dba_cons_columns col, dba_constraints cons
       WHERE cons.r_owner = col.owner
         AND cons.r_constraint_name = col.constraint_name
         AND col.owner = 'MY_USER'
    ORDER BY child_table;Thanks,
    Shankar

  • Where to find the information regarding relationships between the tables?

    I am developing a Windows based app which among other things let’s users view SAP table schema and relationships.
    If I use SAP GUI and dig up a bit on say the MARA table I can see that
    Material Master (MARA) is related with
    1) MaterialDescription (MAKT) on columns MANDT and MATNR
    2) MaterialPlantData (MARC) on columns MANDT and MATNR
    and so on…
    My question is - in which table the information regarding relationships between the tables is stored? There must be a data dictionary table which would be storing the relationships data. Which is it? Note: I will programatically access the table, NOT from the UI.

    Thanks a lot...
    I am still working on it, but here are the current findings. DD05S, DD08L and DD08T: The schemas for these tables were very promising for the thing I was looking for. Unfortunately the data within dose not seem to serve my exact purpose.
    I found another one DD26S, which has almost 90% of the relationships I wish to explore. Do you know what is it supposed to contain?
    Thanks a lot for your help.
    Message was edited by: Salil Khedkar

  • How to build "Greater/less or Equal" relationships between two tables?

    Hi,
    Is there any straightforward approachs to realize the following kind of relationships between two tables?
    Table1.process_end_date >= Table2.work_start_date and
    Table1.process_end_date <= Table2.work_end_date
    BTW, there's no common columns for these two tables to do simple joins (inner, outter...).
    Thanks.
    Regards,
    Qilong 

    Sure.
    Table.SelectRows filters a given table (in this case Table2) based on a function provided as the second argument.
    (table2Row) => is the start of our filter function. It defines a function that takes one argument, called table2Row. Each row of Table2 will be passed to this function. If the function returns true, the row will be kept. If the function returns false,
    the row will be filtered out.
    The right hand side of the => is the filter expression. Because we're adding the custom column to Table1, we can reference a field in the current row of Table1 using square brackets (e.g. [process_end_date]). To reference the fields in the current row
    of Table2, we have to index into the table2Row variable passed to our function (e.g. table2Row[work_start_date]).
    Hope that helps.
    Ehren

  • Relationship between two tables

    Hi,
    Can some one tell me how can i find the relationship between two tables in CRM. is there any transaction for the same. Is it possible to see the data model.
    Thanks
    Akila.R

    Hi Nishant ,
    Could you please explain brief about the Data relationship ......??
    I can see the Foreign Key & Check Table relation in se11 .
    Since I am in the Analysing phase ,
    what are all the details can i get from Foreign Key & Check table kind relations ...??
    Thanks
    Rgds
    Ganesh

  • Technical Reference question: Relationship between WIP Tables & INV Tables

    Hi Community,
    Due to my profile is more closer to the Financials Area than the Manufacturing and Work In Process Area, I want to leave the following question in the community, in order to see if anybody can give me an answer.
    We want to modify a view created for its use in Discoverer. This view, retrieves the total number of units or kilograms that we have of all our items in all of our subinventory organizations, till submitted date. For all this itms, we want to know how many of them, and in which quantity should we depreciate them (is that to say, we categorized those items based on its antiquity in stock, to 6 months, 12 months, 18 months and more then 18 months). How we know the time range?, making a comparison between its last purchase date and its last sales date; and the result of that, with the submitted date.
    This logic, works fine for all items added to our stock as a result of a Purchase Order and a Sales Order, cause in both operations, we can get the purchase date and the sales date; but for all of our items that we manufacture in our manufacturing process, all those items appears in the Discoverer Report, totally depreciated; is that to say, with an antiquity grater than 18 months. And in some cases that is correct, cause there are materials and items in stock since beginning implementation and migration from the old system, but for a huge number of them that is not correct, cause its stock is "constantly" up and down based on the manufacturing process or because its components are all of them purchased by a Purchase Order, but the final item get as a result of the manufacturing process, does not have this purchase date (does not inherit the first or last purchase date from any of its components), cause the only date that we can retrieve is the production date (transaction date) when the item was created.
    So we want to include this production date in the logic of the query used to creation of the view which feed the discoverer report or to know the relationship between the WIP tables and INV tables (those where the items are reflected), in order to match the item, created in the manufacturing process, and the stock of that item in our subinventory organization.
    Thanks in advance for your help and assistance.
    Luis

    Hello Experts, One of the Interview I faced a scenario,I have two tables T1,T2 and i have access to oracle and informatica .How can i know the relationship between two tables?  Thankssirii

  • [HTML DB] How to use the existing database table?

    [HTML DB] How to use the existing database table?
    I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
    In Computer B(Windows 2000), I installed HTML DB 1.6.
    How can I use /get the existing database table (in computer A) for HTML DB?
    Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
    Thanks

    Well I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.

  • How to provide joins between oracle tables and sql server tables

    Hi,
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server.
    how to provide joins between oracle tables and sql server tables ? Any help on this
    Regards,
    Malli

    user10675696 wrote:
    I have a requirement that i need to generate a report form two different data base. i.e Oracle and Sql Server. Bad idea most times. Heterogeneous joins do not exactly scale and performance can be severely degraded by network speed and b/w availability. And there is nothing you can do in the application and database layers to address performance issue at the network level in this case - your code's performance is simply at the mercy of network performance. With a single glaring fact - network performance is continually degrading. All the time. Always. Until it is upgraded. When the performance degradation starts all over again.
    If the tables are not small (few 1000 rows each) and row volumes static, I would not consider doing a heterogeneous join. Instead I would rather go for a materialised view on the Oracle side, use a proper table and index structure, and do a local database join.

  • Find Differences between two tables at column level

    Hi,
    I have 2 tables one live table and the other History table..
    If i have to find differences between live table and the latest version in the History table and also find which column got chaanged
    How would i do that for a table which has many columns and i need each column for which the value has changed for a id
    for ex:
      Table 1   (LIve)                           Table 2 (History)
    ID col1     col2    Version               ID       col1     col2    Version
     1   ABC     123     V1                     1       ABCD   123     v2
     2   NBS     1234   V1                     2        NBS     123     V2
    Result set should be 
    Result Set:
    ID col which changed
    1    col1
    2    col2   
    Because the values for that column had been changed
    Except gives me all the differences not just the column level ..

    The dynamic version using schema views... :D
    --Build a coulple OF testing tables to play with
    CREATE TABLE dbo.Table1 (
    ID INT IDENTITY(1,1) PRIMARY KEY,
    Col1 INT,
    Col2 INT,
    Col3 INT
    CREATE TABLE dbo.Table2 (
    ID INT IDENTITY(1,1) PRIMARY KEY,
    Col1 INT,
    Col2 INT,
    Col3 INT
    INSERT dbo.Table1 (Col1,Col2,Col3) VALUES
    (123,456,789),
    (111,222,333),
    (444,555,666),
    (777,888,999),
    (321,345,769),
    (179,753,758),
    (362,362,236),
    (856,874,896),
    (821,729,324)
    INSERT dbo.Table2 (Col1,Col2,Col3) VALUES
    (123,456,789),
    (111,999,333), --col2 diff
    (444,555,666),
    (777,888,999),
    (321,345,123), --col3 diff
    (179,753,758),
    (362,362,236),
    (234,874,896), --col1 diff
    (821,729,324)
    And then the actual solution...
    DECLARE
    @t1 VARCHAR(10) = 'Table1',
    @t2 VARCHAR(10) = 'Table2'
    IF OBJECT_ID('tempdb..#temp') IS NOT NULL DROP TABLE #temp
    SELECT
    c.TABLE_SCHEMA,
    c.TABLE_NAME,
    c.COLUMN_NAME,
    c.ORDINAL_POSITION,
    CASE WHEN u.COLUMN_NAME IS NOT NULL THEN 1 ELSE 0 END AS PK
    INTO #temp
    FROM
    INFORMATION_SCHEMA.COLUMNS c
    JOIN INFORMATION_SCHEMA.TABLES t
    ON c.TABLE_NAME = t.TABLE_NAME
    AND c.TABLE_SCHEMA = t.TABLE_SCHEMA
    LEFT JOIN INFORMATION_SCHEMA.KEY_COLUMN_USAGE u
    ON c.COLUMN_NAME = u.COLUMN_NAME
    AND c.TABLE_NAME = u.TABLE_NAME
    AND c.TABLE_SCHEMA = u.TABLE_SCHEMA
    AND OBJECTPROPERTY(OBJECT_ID(constraint_name), 'IsPrimaryKey') = 1
    WHERE 1 = 1
    AND t.TABLE_TYPE = 'BASE TABLE'
    AND c.TABLE_NAME IN (@t1,@t2)
    ORDER BY
    c.TABLE_SCHEMA, c.TABLE_NAME, c.ORDINAL_POSITION
    DECLARE @select VARCHAR(MAX)
    SELECT @select = COALESCE(@select + ', ', '') + t.TABLE_SCHEMA + '.' + t.TABLE_NAME + '.' + t.COLUMN_NAME
    FROM #temp AS t
    ORDER BY t.TABLE_NAME, t.ORDINAL_POSITION
    DECLARE @from VARCHAR(MAX)
    SELECT @from = COALESCE(@from + ' FULL JOIN ', '') + t.TABLE_SCHEMA + '.' + t.TABLE_NAME
    FROM #temp AS t
    WHERE t.PK = 1
    ORDER BY t.TABLE_NAME
    DECLARE @on VARCHAR(MAX)
    SELECT @on = COALESCE(@on + ' = ', '') + t.TABLE_SCHEMA + '.' + t.TABLE_NAME + '.' + t.COLUMN_NAME
    FROM #temp AS t
    WHERE t.PK = 1
    ORDER BY t.TABLE_NAME, t.ORDINAL_POSITION
    DECLARE @where VARCHAR(MAX)
    SELECT @where = COALESCE(@where + CASE WHEN t.TABLE_NAME = @t1 THEN ' OR ' ELSE ' <> ' END, '') + t.TABLE_SCHEMA + '.' + t.TABLE_NAME + '.' + t.COLUMN_NAME
    FROM #temp AS t
    WHERE t.PK = 0
    ORDER BY t.ORDINAL_POSITION, t.TABLE_NAME
    DECLARE @sql VARCHAR(MAX) = '
    SELECT ' + @select + '
    FROM ' + @from + '
    ON ' + @on + '
    WHERE ' + @where
    EXEC (@sql)
    HTH,
    Jason

  • How to find whether remote database is up or not (connected via dblink)

    Hi,
    I am using dblink to connect Biz database from Dev database.(Biz, Dev - database names)
    Running dbms job using the dblink from the Dev database to update data on Biz database...
    Problem is dbms job should run if and only if the Biz database is up for which i created the dblink...
    1) How to make sure or implement the check to find whether the Biz is database is up or not in Pl/sql or sql...
    2) How to reschedule the dbms jobs once the database is up
    pls suggest me how to find whether the database is up or not b4 running the dbms job?
    Using- Oracle 10g

    The only way to know whether the remote database is up (and whether the network between the two databases is up and whether the remote database's listener is up and whether the password configured in the database link is correct and whether the local TNS alias is correct, etc) would be to actually run a query against the remote database over the database link. In other words, the way to figure out whether the link is up is to let the job run and catch & handle exceptions when there are problems.
    By default, a job scheduled via DBMS_JOB will automatically reschedule itself if there is an unhandled exception by geometrically backing off (it waits 1 minute after the first failure, 2 minutes after the second, 4, 8, 16, 32 minutes, etc until it's marked as broken after 16 failures). You could, of course, catch appropriate exceptions and handle them in a reasonable fashion and manually reschedule jobs at intervals that make more sense for your particular job.
    Justin

  • How to create tree by database table

    hello sir ,
    my table is as follows,
    NAME LINK ID PID ROLLID
    User mgt. f?p=131:1: 1 - 10 ////root node///
    district 10 1 1 child
    Roles 16 14 4 child
    Users 11 10 1 child
    ROLLID is given from another table whis is (ROLES). i making tree by the combinations of id , pid, & roll id. by the roll id i can manage the tree to do not display specific nodes to specific users.
    ROLE table as :
    ROLE_ID NAME DESCRIPTION
    1 Administrator This is administrator
    2 Assistant Director -
    3 Assistant Statistical Officer -
    4 Data Entry Operator -
    but i think it is very complicated process . give me solution about it
    also i have to give my images to each node. how can i do that?

    You already have a thread going about this: Re: how to create tree by database table .
    Scott

Maybe you are looking for

  • Which table if for BADI and its implementation

    Which table if for BADI and its implementation I want to know which implementations have already been created and actived for one BADI.

  • Adobe Reader could not open "file"

    Adobe Reader could not open "file" because it is either not a supported file or it has been damaged. All files and programs on the desktop are shown as Adobe Reader ikons. When I remove the Adobe Reader program, the desktop is ok but when I reinstall

  • Hardware configuration for 5.5

    Hello Everyone! I am a total newbie...... Anyway, I just purchased a new computer.  Although many of you would laugh at what I bought, it was all I could afford.  There are some good things about it and some probably not.  My question is, I bought a

  • Presentation variable - Help

    Can I reference presentation variable on some column. That column is some calculation.... please need urgent help

  • Powerbook Ti to Mac Pro dual

    Hi all its been a while since i have been in here, switcher 4 years ago when i bought my Ti 1Ghz now its time to upgrade as i am improving my art skills. I am thinking about Mac Pro Dual Core 2G ram etc, and a nice new 23" display. But i am concerend