Relation bt requisation n PO----tables

hi,
when you delete po only we can create ne po on the requisation.
when u delete po, which tables will be updated with the relation with requisation.
it's a question from functional guy.
any suggetions...is it clear?

Don't recall if this is correct, but you may need the condition number from the header (EKKO) combined with EKPO-EBELP or other field as you key to access KONV (KNUMH and KPOSN).  My site doesn't run PP, so can't verify if the data is actually stored that, so just a possibility.

Similar Messages

  • Count Records in Table Except If Related Record Exists in Child Table

    Dear All
    I have the following query that counts all of the records in the table SENAlert based upon the teacher's username in a related table.
    SELECT COUNT(SENAlert.SENAlertID) AS Expr1
    FROM Class INNER JOIN ClassMember ON Class.ClassClassCode = ClassMember.ClassMemberClassCode
    INNER JOIN Student ON ClassMember.ClassMemberStudentID = Student.StudentID
    INNER JOIN SENAlert ON Student.StudentID = SENAlert.SENAlertStudentID
    INNER JOIN Teacher ON Class.ClassTeacherCode = Teacher.TeacherCode
    WHERE (Teacher.TeacherUsername = 'dsmith')
    I need to extend this query by adding another table called SENAlertHistory. I would like to count the number of alerts (SENAlertID) for the specified teacher
    but where there is no related record in the SENAlertHistory table. Here's what the relationship diagram looks like:
    What's going to happen is when a teacher clicks a button to say they have read an alert, I will record this in the SENAlertHistory table. Therefore when performing a count of how many unread alerts the teacher has, I need to ignore the alerts they have
    already read (i.e. the records in the SENAlertHistory table).
    This is a bit too advanced for me -- I have tried! I was hoping someone would be able to help me please?
    Many thanks
    Daniel

    Try below code
    -- If you dont need the read alert count
    SELECT COUNT(SENAlert.SENAlertID) AS Expr1
    FROM Class INNER JOIN ClassMember ON Class.ClassClassCode = ClassMember.ClassMemberClassCode
    INNER JOIN Student ON ClassMember.ClassMemberStudentID = Student.StudentID
    INNER JOIN SENAlert ON Student.StudentID = SENAlert.SENAlertStudentID
    INNER JOIN Teacher ON Class.ClassTeacherCode = Teacher.TeacherCode
    WHERE (Teacher.TeacherUsername = 'dsmith')
    AND NOT EXISTS
    (SELECT * FROM SenAlertHistory SAH WHERE Teacher.TeacherCode = SAH.SenAlertHistoryTeacherCode and SENAlert.SENAlertID = SAH.SEMAlertHistorySENAlertID )
    -- If you need the read alert count
    SELECT COUNT(SENAlert.SENAlertID) - COUNT(SAH.SEMAlertHistorySENAlertID) AS Expr1,COUNT(SAH.SEMAlertHistorySENAlertID)readalert
    FROM Class INNER JOIN ClassMember ON Class.ClassClassCode = ClassMember.ClassMemberClassCode
    INNER JOIN Student ON ClassMember.ClassMemberStudentID = Student.StudentID
    INNER JOIN SENAlert ON Student.StudentID = SENAlert.SENAlertStudentID
    INNER JOIN Teacher ON Class.ClassTeacherCode = Teacher.TeacherCode
    LEFT OUTER JOIN SenAlertHistory SAH ON Teacher.TeacherCode = SAH.SenAlertHistoryTeacherCode and SENAlert.SENAlertID = SAH.SEMAlertHistorySENAlertID
    WHERE (Teacher.TeacherUsername = 'dsmith')
    Thanks
    Saravana Kumar C

  • Relation between different GUID and tables in RPM

    Hi All,
    can you tell me the relation between different GUID and tables in RPM. Many thanks.
    Regards,
    J B

    Hi Deepesh,
    Try the foll. join :
        SELECT  fragment_guid  INTO  (some internal Table)
             FROM  comm_pr_frg_rod
             WHERE  product_guid  = (your product guid list)
    This should give u a complete match of the products.
    Hope this helps.
    Regards,
    Raviraj

  • Delivey related info rqrd from one table

    Hi,
    Can I got the following SCM related information from one standard table. plz reply ASAP.
    1. Outbound Delivery Number.
    2. Invoice Number of O/D.
    3. Invoice Value
    4. Invoice Qty. (Base Unit)
    T & R
    Sanjay

    Hi
    I think that you have had your question answered so if you are happy with this can you please award points if you want to but mainly can you please mark your question as answered so that it is easier to navigate around the open questions in the forum as the number of pages are growing and growing and it takes too long to go through everything especially if a satisfactory answer has already been given and people like me who want to help will give up and so some people may not get any help.
    Thanks for this
    Frenchy.

  • Relation between BSEG with Asset Tables

    HI Guru's,
    how to find relation between BSEG with Asset Tables like ANLA and ANEP..
    regards
    JK

    Foreign keys
    - ANEP items are linked to ANLA via fields in common ANLN1 and ANLN2
    - ANEK header is linked to ANEP items via fields in common ANLN1, ANLN2, GJAHR and LNRAN
    - BKPF and BSEG are linked to ANEL ANEP via BUKRS, BELNR and GJAHR
    Optimization (as BSEG is behind a cluster table RFBLG)
    - Append BSIS (ZABSIS) and BSAS with ANLN1 and ANLN2, then create an index with these fields. As BSIS is filled via MOVE-CORRESPONDING statement, only a one-shot report to initially fill the new fields is to be developed. (look at old OSS [Note 62435 - F-03: Selection by purchasing documents|https://service.sap.com/sap/support/notes/62435] for optimization via purchase order)
    Regards

  • Relation between Eban and Erev tables

    Hi,
       What is the Relation between Eban and Erev tables?
    Thanks and Regards,
    Parvatha Reddy

    Hi,
    if you have activated version management for purchase requisitions (spro - mm - purchasing - version mgmt - set up ver mgmt for PR), then if any changes are made to the fields as specified in the customizing, then an entry is made in EREV table. EBAN is the pur. reqn table.
    Hope it answers your query.
    Regards,
    Vivek

  • Relation between BKPF and EKBE table for reversing document?

    Is there any relation between BKPF and EKBE table for reversing document when STBLG is blank in BKPF.
    AND
    How to differentiate Old Accounting document / Reverse document / New document when in BKPF-STBLG is blank for all three document and BKPF-XBLNR are same for all.

    Hi Varun,
    Table Document no (BKPF-BELNR) is link between Material document no (EKBE-BELNR). If you are looking for validating Material reversal document then please use following logic for your requirement.
    Material Document (MBLNR) & Material Document Year (MJAHR). Pass material document (MBLNR) to MSEG-SMBLN to read MSEG-MBLNR with MSEG-MJAHR to MSEG-SJAHR, if record found delete both the documents i.e. MSEG-SMBLN & MSEG-MBLNR (donu2019t consider these documents in the logic) and display Material Document No. (MSEG-MBLNR)
    Regards,
    Santosh

  • Relation between vbuk and vbup tables?

    relation between vbuk and vbup tables?
    regards phani

    Dear Phani,
    http://help.sap.com/saphelp_erp2005/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    VBUK .... Sales Document: Header Status and Administrative Data
    VBUP ....Sales Document: Item Status
    VBUK contains header status where as VBUP contains individual item status of the header. Similar to VBAK and ABAP where VBAK contains Sales Document header data and VBAP contains Sales document item data.
    Hope this will help.
    Regards,
    Naveen.

  • Relation between RESB and AUFM tables

    can any one tell me how to build the relation between the above two tables
    first i am getting the data from resb
    now i need to get the data from  aufm
    but there are no common key fields
    while selecting the data from aufm i want to put the where conditon on key fields only

    hi
    good
    use this process to know the details.
    Go to SQVI transaction... Create a qucik view.. ztest.. give desc..etc
    Select data source as table join.... enter
    now one screen will come with blank data (blue scrren)
    in that application toolbar second button .. click that.. enter VBAK..
    click that again.. enter VBAP.. now an image will come with links b/w vbak and vbap.. you can use any no. of tables there....
    thanks
    mrutyun^

  • Related column of a fact table - SSAS Tabular

    Hi,
    I'm developing a SSAS Tabular model using a SQL Server 2012 SP 1 installation.
    For a fact table I've created some calculated columns using the DAX RELATED function. These columns not are hidden to client tools. When I deploy the project and I open an Excel workbook in order to connect the SSAS Tabular cube, in the field list I cannot
    see the calculated columns by RELATED function.
    For me, this in an issue and not a normal behaviour.
    Any suggests to me, please? Many thanks

    Hi Pscorca,
    Generally, if we create a calculated column on SQL Server tabular model database on SSMS, and then go to Model-> Process -> Process All and finish the data processing. Then when we connect the database in EXCEL, the calculated column will appear on
    the Excel. In your scenario, you cannot see the calculated columns. It’s strange behavior. However we cannot give you the detail reason for this issue base on the limited information.  Please refer to the link below which describe the detail steps about
    create a calculated column, then check whether if you missing any step when creating calculated column.
    Add Calculated Column and Measures to Tabular Model
    If the issue persists, please elaborate your production environment and the steps to create the calculated column, so that we can make further analysis.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to fetch data in report related to fb03 , bkpf, bset table ?

    how to fetch data in report related to  fbo3, table bkpf, bset etc.
    if any body is having any report related to these tables then please share.

    Moderator message - Welcome to SCN.
    But please ask a specific questio - thread locked.
    Also, Please read Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!! and How to post code in SCN, and some things NOT to do... and [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting again.
    Rob

  • How to create one to many relation database based on existing Tables?

    Let say I have got 10 tables. Out of these 10 tables one table is used to navigate to other tables and at the some time providing some useful information. Therefore other 9 Tables have the identical structure.
    The question is, how can I convert these 10 tables into 2 tables, ie each row of first table correspond to the different data of the other table (one to many relation)?

    Hello,
    >>The question is, how can I convert these 10 tables into 2 tables, ie each row of first table correspond to the different data of the other table (one to many relation)?
    I do not quite understand what you ask and I doubt if Entity Framework supports this scenario, since you mentions these tables already exist, after importing them to the designed windows, we cannot modify them or it would throw an error shows the database
    and model is mismatched.
    Regards.
    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.

  • Getting relation between infotype IT0007 and table T550A

    Hi experts,
    My requirement is as follows. For an employee work schedule rule(field SCHKZ) is maintained in the table IT0007. For every work schedule rule there is start of planned work time( SOBEG ) and end of planned work time(SOEND) in the table T550A.
    Can anybody please help me in getting a relation between these two tables.
    Thanks,
    Manasa.

    Hi ,
        Use the below FM to get SOBEG , SOEND ...
        RP_CATT_DAYPROGRAM
    Regards,
    Srini.

  • 3 Tier Relational DB's and Dynamic Tables

    I have three tables which I shall, for ease, call A, B and C.
    B is relational to A
    C is relational to B
    A1 - B1 - C1
    C2
    B2 - C3
    C4
    A2
    A3 - B3 - C5
    B4
    B5 - C6
    C7
    C8
    I have no trouble creating recordset links for one or the
    other
    SELECT A.*, B.*
    FROM A INNER JOIN B ON A.AID = B.BAID
    WHERE etc... etc......
    Similarly, I can create a recordset for the secondary link..
    SELECT B.*, C.*
    FROM B INNER JOIN C ON B.BID = C.CBID
    WHERE etc... etc......
    What I am trying to acheive however is a recordset with a 3
    tier relationship and I can't figure the syntax.
    Somthing like...
    SELECT A.*, B.*, C.*
    FROM A INNER JOIN B ON A.AID = B.BAID, B INNER JOIN C ON
    B.AID = C.BAID
    WHERE etc... etc...... (This doesn't work!)
    This would then result in a dynamic table with (B and C) in
    the same row as it propogates.
    Eventually, what I want to achieve is a simple attachment
    symbol on each row of B, based on something like....
    <?php if (C,TotalRecords <> NULL) { ?>
    <a href="/linkedattachments.php?BID=<?php echo
    $row_recordsetB['BID']; ?>" target="_blank">
    <img src="fileicon.gif" alt="Click to see
    attachments"></a>
    <?php } ?>
    Am I going about this the right way? Is this even clear?
    lol

    "RichardODreamweaver" <[email protected]>
    wrote in message
    news:[email protected]...
    > I have three tables which I shall, for ease, call A, B
    and C.
    >
    > B is relational to A
    >
    > C is relational to B
    >
    > A1 - B1 - C1
    > C2
    > B2 - C3
    > C4
    > A2
    > A3 - B3 - C5
    > B4
    > B5 - C6
    > C7
    > C8
    >
    >
    > I have no trouble creating recordset links for one or
    the other
    >
    > SELECT A.*, B.*
    > FROM A INNER JOIN B ON A.AID = B.BAID
    > WHERE etc... etc......
    >
    > Similarly, I can create a recordset for the secondary
    link..
    >
    > SELECT B.*, C.*
    > FROM B INNER JOIN C ON B.BID = C.CBID
    > WHERE etc... etc......
    >
    > What I am trying to acheive however is a recordset with
    a 3 tier
    > relationship
    > and I can't figure the syntax.
    >
    > Somthing like...
    >
    > SELECT A.*, B.*, C.*
    > FROM A INNER JOIN B ON A.AID = B.BAID, B INNER JOIN C ON
    B.AID = C.BAID
    > WHERE etc... etc...... (This doesn't work!)
    that's almost right
    SELECT A.*, B.*, C.*
    FROM ((A INNER JOIN B ON A.AID = B.BAID) INNER JOIN C ON
    B.AID = C.BAID)
    WHERE etc... etc......
    I've added parentheses to show how the next join will operate
    on the first,
    the first join results in a relation of table a and b,
    you then join this "virtual table" to the third.
    > This would then result in a dynamic table with (B and C)
    in the same row
    > as it
    > propogates.
    >
    > Eventually, what I want to achieve is a simple
    attachment symbol on each
    > row
    > of B, based on something like....
    For the count to work with records that have no children you
    have to employ
    a LEFT join to return records from the RIGHT table even if no
    record on the
    LEFT side matches.
    SELECT A.*, B.*, COUNT(c.CAID) AS CAID_COUNT
    FROM ((A INNER JOIN B ON A.AID = B.BAID) LEFT JOIN C ON B.AID
    = C.BAID)
    WHERE etc... etc......
    > <?php if (C,TotalRecords <> NULL) { ?>
    > <a href="/linkedattachments.php?BID=<?php echo
    $row_recordsetB['BID']; ?>"
    > target="_blank">
    > <img src="fileicon.gif" alt="Click to see
    attachments"></a>
    > <?php } ?>
    >
    > Am I going about this the right way? Is this even clear?
    lol
    >

  • Doc listing all OBIA RPD Projects and related Subject areas and Presentation tables.

    Hi All,
    Can anyone help with the Oracle document ID which gives the RPD Projects and related Subject areas only and Presentation tables.
    I tried using the documentation utlity but it is unable to give me result according to the RPD Projects.
    Thanks,
    Dev

    It is combination of different activities:
    Product guide, check here cool-bi.com
    RPD documentation based on prod guide.
    There might be a project called Project and try to import rpd contents into another then generate rpd doc.
    if helps mark

Maybe you are looking for

  • ITunes match wont let me play my songs

    I have iTunes match, so i am able to listen to all my music, where ever i am, on any device, without it taking up disk space. That´s all fine and dandy...BUT every time i launch iTunes on my work computer (macbook pro retina, with mavericks, logged i

  • Family sharing if you don't want to constantly update your devices and make your apple products redundant

    Hi everyone, My kids have taken over our older Apple devices - i.e. iPhone and iPad - and have currently got our old stuff, apps, emails etc on their devices. I want to start these devices on a fresh start - although they've got a selected few apps t

  • How to use Serial/Parallel Port/DAQ card of a PC to run a SPI communication?

    Hi, dear all, I am looking for a method to send 10-bit word data to AD8403 Digital Potentiometer from PC's Serial/Parallel Port or DAQ card. Is it possible to implement such a communication with LabVIEW? Are thee ready VIs for this application? Thank

  • SWF Audio not playing in Captivate

    Hi everyone, I have created a button panel in Flash. The panel is a recreation of an A/V control system panel used in classrooms on campus. I am using a Captivate presentation to teach university professors how to use the panel, so they can use techn

  • Resize datafile in standby when its in mount stage

    Hi All, Oracle 10.2.0.1 Linux EL5 I have configured standby database for testing. Now i have a problem that my users tablespace in standby got filled and its giving error message like ORA-01237: cannot extend datafile 4 ORA-01110: data file 4: '/u01/