Relationship Between PO / GR / Services Tables

Hello experts
I am trying to find out the relationship between ESSR ESLH ESLL EKPO and EKBE tables.
Below is some sample data and my requirement. Could you please tell me how I should consider linking the tables. Am I missing any table in between. Out of the 2 sevices , only one is accepted , 300000003. I need information like PO#, SES#, Sevice#, Accepted Qty, Mat. Document#
EKPO                              
EBELN     EBELP     PACKNO                    
4300000000     10     289271                    
ESLH                              
PACKNO     FPACKNO     HPACKNO     EBELN     EBELP          
289271     289271     289271     4300000000     10          
289272     289271     289271     4300000000     10          
ESLL                              
PACKNO     INTROW     EXTROW     SRVPO        PACKAGE        SUB-PACKNO     ACT_WERT
289271     1     0                    X        289272            0
289272     2     10     3000000003                0            10
289272     3     20     3000000002                0             0
ESSR                              
LBLNI        PACKNO     EBELN     EBELP               
1000052342     289279     4300000000     10               
EKBE                              
EBELN         EBELP     VGABE     BELNR          BEWTP     LFBNR     
4300000000     10     9     1000052342     D     1000052342     
4300000000     10     1     50000451255     E     1000052342     
WHAT I NEED                               
EBELN          EBELP     LBLNI          SRVPO     ACT_WERT     BELNR     
4300000000     10     1000052342     3000000003     10     50000451255     
Many thanks & regards!
Sanjyot

Hi Experts
I'm haveing a similar problem, and I need your help.
I'm trying to connect PO number with Service entry sheet and service numbers, but the link between tables don't work.
EXEMPLE:
EKPO
EBELN    PACKNO
1010          212
ESSR
EBELN   LBLNI       PACKNO
1010        2000         215
Link between PO and Service entry sheet - DONE (NOT using ESSR-PACKNO)
ESLH
EBELN    KNUMV     HPACKNO     FPACKNO     PACKNO
1010          10               212               209               212
1010          11               212               212               213
ESLL
PLN_PACKNO SRVPOS
213                        1
213                        2
So, going to ESLH and getting the PACKNO, will allow me to go do ESLL and get the SRVPOS.
The problem is that for a certain PO I have, in ESLH 2 entries.
Can anyone confirm that EKPO-PACKNO=ESLH-FPACKNO and not HPACKNO? I think that would solve my problem.
If someonehas other ideas, please let me know.
Many thanks,
Joana Faria

Similar Messages

  • How to create a Foreign key relationship between 2 user defined tables...

    Hi Folks,
    I have created two user defined tables... Where in i want to create foriegn key relationship between the 2 tables.... Can anyone guide the step by step procedure to do this scenario...
    Any help would be highly appreciated...
    Thanks

    Hi
    1.  In the 2nd table call the field of the 1st table which is a primary key.
    2.  Give the same field and dataelement name.
    3.  Select that field and then click on the foreign key field icon which is beside Search Help button.
    4. Then give short text, and the 1st table name.
    5. Then in the below box give the 2nd table name and 2nd table field name which you have called from 1st table.
    6. Then click on copy, then u will be able to see Check table name and check table field name beside foreign key table name.
    7. Then again click on copy.
    Regards
    Haritha.

  • To Identify Relationship between records in a table

    Hi
    I need to write a query to identify what relationship exists between records in a table.
    For example,In our system a manager can have more than 1 subordinate as well as an employee can also have more than 1 manager.
    I need to provide the relationship for a given set of employee-ids whether it is
    1 is to 1,
    1 is to many,
    many is to 1,
    many to many.
    Employee     Relationship     Relationship Description
    John     1 is to M     Implies John is reporting to multiple managers who have only one subordinate
    Stuart     1 is to 1     Implies Stuart is reporting to only one manager who has only one subordinate
    Robert     M is to 1     Implies Robert is reporting to only one manager who has multiple subordinates
    Martha     M is to M     Implies Martha is reporting to multiple managers who have multiple subordinates
    Can you please help me with this query?
    Regards
    Kapil

    To make things simple lets assume the following table structure and data
    CREATE TABLE EMP
    ENAME VARCHAR2(10),
    MNAME VARCHAR2(10)
    Data for M:1 Relationship
    INSERT INTO EMP VALUES ('John','Linda');
    INSERT INTO EMP VALUES ('Robert','Linda');
    Data for 1:M Relationship
    INSERT INTO EMP VALUES ('Peter','Stuart');
    INSERT INTO EMP VALUES ('Peter','Linda');
    Data for 1:1 Relationship
    INSERT INTO EMP VALUES ('Mary','Tim');
    Data for M:M Relationship
    INSERT INTO EMP VALUES ('Chris','Roger');
    INSERT INTO EMP VALUES ('Tom','Roger');
    INSERT INTO EMP VALUES ('Stephen','Roger');
    INSERT INTO EMP VALUES ('Stephen','Zoe');
    Now if I search for Chris and Mary I should get the result as:-
    Chris M:M
    Mary 1:1
    Hope this clarifies ;-)

  • One to One relationship between Dimensions and Fact Tables

    Hi,
    Not a real Discoverer question, but seeing as there is such a huge pool of talent here, I thought I'd ask anyway...
    Is the concept of having a one to one join between a Dimension and a Fact Table an Acceptable Thing (tm). I'm not talking about a degenerate dimension, as the Dimension would hold additional attributes.
    It's something I'm trying to get my head around and would appreciate any viewpoints.
    Thanks,
    Andy

    Hi Andy,
    There is of course no distinction in SQL between 1-1 and 1-n joins, but in your database design you would avoid denormalizing data into a dimension table if it was only ever used once.
    From a Discoverer perspective setting the join to 1-1 controls how aggregate queries are constructed. Normally, if you have a master-detail 1-n relationship and you aggregate items in both tables then you will get an incorrect result for the master table because the number of rows are multipled by the n detail records. Similarily if you have 2 detail tables in the query and you aggregate items in a detail table you will get incorrect results. Discoverer recognises these situations and raises an error.
    Setting the join as 1-1 tells Discoverer that it will get the correct results in these situations and therefore no error is raised. So it is perfectly acceptable to set the joins as 1-1 as long as you know the implications.
    Hope that helps,
    Rod West

  • SCSM 2012 Relationship between Incident and Service Level Instance Time Information

    Hi,
    I am using a runbook similar to
    this one, but am getting many different Incident relationships.
    For testing, I want to initiate the runbook not with a Monitor Object looking at the Service Level Instance Time Information class, but manually with an Initialize Data action.
    Can someone advise how to do this? What 'GUID' does the Monitor Object look at and pass on to the runbook?
    Or perhaps a powershell snippet that shows how the relationship works...
    Thanks,
    Joe.

    Try this:
    SELECT dbo.MTV_System$SLA$Instance$TimeInformation.BaseManagedEntityId, dbo.MTV_System$SLA$Instance$TimeInformation.DisplayName,
    dbo.MTV_System$SLA$Instance$TimeInformation.StartDate_6F33A83B_41D9_A782_379E_A75CA15145F3,
    dbo.MTV_System$SLA$Instance$TimeInformation.Id_1C7A525A_E7EC_59B9_6FF3_CFCECA1A64A0,
    dbo.MTV_System$SLA$Instance$TimeInformation.IsCancelled_16DDBB6C_0E00_ACAD_4F04_D134E61AF82B,
    dbo.MTV_System$SLA$Instance$TimeInformation.TargetWarningDate_B98D2C5F_CBA2_8DB9_CA33_E0F808A9801E,
    dbo.DisplayStringView.DisplayName AS SLAstatus, dbo.MTV_System$WorkItem$Incident.Id_9A505725_E2F2_447F_271B_9B9F4F0D190C,
    dbo.MTV_System$WorkItem$Incident.Title_9691DD10_7211_C835_E3E7_6B38AF8B8104 AS IncidentTile
    FROM dbo.MTV_System$SLA$Instance$TimeInformation INNER JOIN
    dbo.RelationshipView ON dbo.MTV_System$SLA$Instance$TimeInformation.BaseManagedEntityId = dbo.RelationshipView.TargetEntityId INNER JOIN
    dbo.MTV_System$WorkItem$Incident ON dbo.RelationshipView.SourceEntityId = dbo.MTV_System$WorkItem$Incident.BaseManagedEntityId INNER JOIN
    dbo.DisplayStringView ON
    dbo.MTV_System$SLA$Instance$TimeInformation.Status_F632EA19_0367_CC81_BCB5_5E0387B1B5E3 = dbo.DisplayStringView.MPElementId
    WHERE (dbo.RelationshipView.IsDeleted = 0) AND (dbo.RelationshipView.RelationshipTypeId = 'ba08f9bb-85c7-20d8-05e3-0035938cddd5') AND
    (dbo.DisplayStringView.LanguageCode = 'ENU')
    Cheers,
    Marat
    Site: www.scutils.com 
    Twitter: LinkedIn:
    Graveyard:

  • 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ñ

  • Relationship between PRPS and FPLT table

    How to arrive to a billing plan in FPLT table with project ID or WBS ID in PRPS table.
    Thanks,
    Vaishnavi

    Hi
    I hope there is no common element in both tables..extract the mile stone data from FPLT and MLST tables and then WBS element data from PRPS and MLST tables (first two gives the mile stone and next two tables gives the WBS element to which mile stone is attached)..
    thanks

  • Relationship between mara and mast table

    Hi gurus i have to get the components of one material for example
    if the material is paper i need to know the components of this paper (cellulose)
    any idea?
    i know all materials are in mara table but i find the transaction  cs03 i put a trace and i can see that this transaction uses de mast table but i dont know how to relate the mast table with mara table

    Pass the material and plant to function module CSAP_MAT_BOM_READ, this fm is used in CS03.
    Note: This will will only give you the immediate level, so again pass the material obtained from fm to the same fm to get the next level.
    Is you requirement to only get the child components of a FERT part ?

  • RELATIONSHIP BETWEEN VBAK/VBAP AND V46R_HEAD TABLE

    Hi,
    can you please tell me that is there any relationship between VBAK and  V46R_HEAD TABLE or VBAP and V46R_HEAD TABLE table.
    where V46R_HEAD TABLE is a structure and i want to display sme fields of vbak and some of V46R_HEAD  and some of VBAP.
    I got the relation between VBAK and VBAP ie. the field VBELN. But i am not getting the relation with V46R_HEAD sturcture.
    Please help me to solve this problem.

    Hi,
    the field vbeln is present in V46R_HEAD also.
    Please check it!!  Please do a CTR+F and look for VBELN.
    Regards.

  • Multiple relationships between 2 tables in report model

    if i have 2 relationships between the same two tables. how do i use one over the other?
    for example, i have 2 tables order and ordeDate table , with the definition of:
    order table:
    orderid int,
    qty int,
    orderdate date)
    and orderDate table:
    (id int,
    endOfDay date,
    endOfMonth date)
    i created one relation ship as orderDate = endOfDay and anothe relationship as orderDate = endOfMonth. some of my reports would need to use the relationship between orderDate = endOfDay and the month end reports would need to use yhe relationship between
    orderDate = endOfMonth. How do I select one relationship over the other when building the report?
    Ideally the database should have been redesigned, which cannot be done at the moment as this will be done on the next project

    Your table design is completly wrong. I am now sure how you are maintaining OrderDate table. SQL Server is RDBMS. Without relation how will you pick those rows from Order table whose order date is equal exactly equal to datefield in OrderDate table. The
    only way is to derived endofDay and endofMonth in the select query directly. I understand endofMonth. But what is EndofDay ? And that too a date datatype ??
    You can run the below query but it will not return specific order date from order table,
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfDay,101) FROM ORDERDATE)
    SELECT * FROM [ORDER] WHERE
    CONVERT(CHAR(10),ORDERDATE,101) IN (SELECT CONVERT(CHAR(10),endOfMonth,101) FROM ORDERDATE)
    Even if i JOIN the two table by orderdate and endofDay/endofMonth, we will not received specific orderDate. And this is becouse if your Order table contains multiple orderDate that are matching to either endofDay or endofMonth, the final output will contain
    multiple orderDate details. I don't think this is what you need. Therefore you need to modify the OrderDate table or provide us the definition for endofDay and endofMonth, and how are you maintaining.
    Regards, RSingh

  • How to find the table relationship between BSEG-BELNR with CE11000 table.

    Hi,
    Please help me to find out the table relationship between BSEG with CE11000 table.
    I have BSEG-BELNR value.
    Thanks in Advance
    Shankar

    Hello,
    BAsically the relationship can be foundon the basis of cost centre it will be good if you paste the structure ce11000.
    I have worked on it and as far i as i can recall it contain value fields right...like vv205,vv305 etc?
    Provide me more details.
    Are you preparing some reconcillation report for costing based COPA or Account based COPA..?
    Hopefully will help you out..
    Regards,
    Nabheet

  • Relationship btwn Virtual Host Services for Groups AND WorkGroup manager??

    Can someone please explain the relationship between Virtual Host Services (as specified in the Sites section of Server Admin) AND "Enable the following services for this group on ... and the options"?
    And where does one go to "create wikis on this site" when one is give the authority to do it in Server Admin > Sites > Services for Groups (Allow the following to create wikis on this site)?*
    Finally, why do all my groups seem to show up on all my virtual hosts, even though they are only enabled on a particular site?
    Thanks in advance for any assistance. Hopefully any answers will help others with their efforts to understand this set-up.
    Cheers,
    Ashley.
    * I'm assuming they mean actually create new wikis rather than just add pages to the current one.

    Thanks Angus, I see that error too.
    I understand that Virtual Sites are web-related Apache settings. So, I guess the "Services for Groups" functionality there-in (Sites > Web Services) is just to indicate that this virtual site can have wikis, calendars, blogs etc.
    I also understand what a Group is but I am confused as to how they relate to wikis (especially when the config item (Sites > Web Services again) says "allow the following to create wikis (plural) on this site" - my emphasis).
    Is it saying that from all the users/groups only the following users/groups can turn on a wiki which will run on this virtual site? For me it sounded like a user/grous could create multiple wikis. So I would like to know if wikis are one-to-one with users/groups?
    Cheers,
    Ashley.

  • Relationship between two facts

    I have 2 fact tables (Encounter and Visit) which have an optional 1 to many relationship.  For a query the users are trying to run, they are using DepartmentDim, which is related to both facts, and AppointmentStatusDim, which is related ONLY to VisitFact.
     They want to see a count of encounters by department and appointment status.  The problem is when they pull in the count from the Encounter measure group, it is showing the same count for all of the values in each row.  
    How do I need to create the relationship between the two fact tables so that I can use dimensions that are related to only one fact table but pull in a measure from the other fact?
    Any help is appreciated.
    Thanks,
    Andy

    Sounds like you need a bridge table to complete the M2M relationship...
    FactVisit
      DepartmentKey
      AppointmentStatusKey
      EncounterGroupKey
    FactEncounter
      DepartmentKey
      EncounterGroupKey
    BridgeVisitEncounter
      EncounterGroupKey
    DimAppointmentStatus <-- FactVisit --> BridgeVisitEncounter <-- FactEncounter 
    This will allow you to slice measures in the FactEncounter measure group by attributes in the DimAppointmentStatus dimension...
    BI Developer and lover of data (Blog |
    Twitter)

  • How to create tables and relationship between ?

    Hello everybody,<o:p></o:p>
    I have three table with structures as follow:<o:p></o:p>
    <o:p> </o:p>
    Table1
    contains information on ledger accounts,and
    Table2 contains Groups of the detailed
    accounts.
    When defining ledger
    accounts , we must associated them with
    groups of detailed accountsthat
    are
    set
    by the
    Check
    boxes. groups of detailed accounts are three
    levels, At each level, there are fifteen
    groups as follow:
    1_others ,2_People ,3_companies ,4_
    Cost centers ,5_projects ,6_
    Letter of Credits ,7_ Current
    Accounts ,8_
    Banking facilities ,9_
    Commodity ,10_ Branches
    aggregation ,11_ Purchase
    Contract
    Services ,12_
    Sales Contract
    Services ,13_
    Export Products ,14_
    Control account ,15_
    Months.Table3 contains detailed accounts information that should associated with groups of detailed accounts(fifiteen groups).
    In addition, we
    have in our program four combobox,
    detailed accounts must be
    linked to the detailed groups
    so that, by selecting one ledger account in combobox1 it should display detailed accounts of level1 in combobox2 ,detailed accounts of level2
    in combobox3 and detailed accounts of level3 in combobox4.<o:p></o:p>
    <o:p> </o:p>
    How
    to design tables and the relationships between them, so
    with select the ledger account I can see the detailed
    accounts of per level in other comboboxes?<o:p></o:p>
    <o:p> </o:p>
    I've
    spent
    a lot of time
    on this
    subject
    but
    I have
    not been able
    to
    solve this problem.<o:p></o:p>
    Please help me,<o:p></o:p>
    Best regards.<o:p></o:p>

    I am guessing....I hope it is helpful...
    >1_others ,2_People ,3_companies ,4_
    Cost centers ,5_projects ,6_
    Letter of Credits ,7_ Current
    Accounts ,8_
    Banking facilities ,9_
    Commodity ,10_ Branches
    aggregation ,11_ Purchase
    Contract
    Services ,12_
    Sales Contract
    Services ,13_
    Export Products ,14_
    Control account ,15_
    Months.
    Setup a table for each.
    >Table3 contains detailed accounts information that should associated with groups of detailed accounts(fifiteen groups).
    Setup the AccountDetail(1,2,3 level) tables with 15 NULLABLE FOREIGN KEYs. If some group is not applicable for an FK, keep the value NULL, otherwise enter a valid PK value.
    >Table1
    contains information on ledger
    accounts,and Table2 contains
    Groupsof the detailed
    accounts
    Setup LedgerAccount tables.
    Setup LedgerDetailXref table with FOREIGN KEYS to LedgerAccount & AccountDetail(1,2,3) tables.
    FOREIGN KEY examples: http://www.sqlusa.com/bestpractices2005/bankdatabase/
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Relationship between unknown SAP-TABLES

    Hi Folks,
    Lets take a scenario of populating an ouput internal table with fields from 4 unknown sap tables(relation between the tables is unknown). How can we check the relationship between those tables to populate the internal table..? What are the possible ways to check the relationship between tables..?
    Can u please help me on this.
    Thanks n regards,
    ram.

    Hi <b>Ram</b>,
        I tried the following method to find relation between tables and i think it is quite useful. I hope this will be of some use to you.
    ->   Goto SE11 and display one of the tables.
    ->   Click on the <b>Graphic</b> icon on the toolbar or use shortcut ctrlshiftF11
    ->   It displays all the related tables by foreign key and even gives you all check tables involved. If the list is a long one, you can even use <u>Find</u> option to check if the other tables you are trying to find relation with, exist in the screen.
        Hope this Helps!! Do get back!!
    Regards,
    <b>Naveenan</b>.

Maybe you are looking for

  • Problem in using URL to FTP

    The result received was in http format. How can I instruct the FTP server to give me the directory list? My code is : int readCount = 0; URL url = new URL("ftp://hostname.com"); URLConnection uc = url.openConnection(); InputStream content = uc.getInp

  • XML Unbounded values into one field - Message Mapping

    Dear All, I am trying to convert an unbounded multifield XML structure to a 0.1 field so that the maltiple values are mapped into a single fields in semi-colon seperated fasion. The source: <MT_dates>    <date>05-10-2011</date>    <date>10-11-2011</d

  • Compressor 3.0.4 Needed

    I am a frustrated Wraptor user, trying to get Wraptor to work with Compressor 3.0.1. No luck. I have discovered it will work 3.0.3 and 3.0.4. Might any have failed to run software updates in the last year? If so, you have the version of compressor I

  • Can a form have more than 100 items

    Hi, Can we have more that 100 items in a form? I have to create around 200 items in a form. Is that possible? if s please guide me how, as I am not able to create more than 110. Regards, Pallavi

  • PROBLUM IN UPDATE WITH CURSOR

    Hi All I have a table a SQL> select * from a; A                   B          C          D vikas               6        100          0 vikas               6        101          0 manoj             500        102          0 manoj               6