In which table invoices related to a purchase order are stored ?

Hi all,
We need to make an ABAP program and I need to know in which table the invoices made by MIRO related to a purchase order are stored.
I can see them in the purchase order history tab in the transaccion ME23N but giving F1 and getting the table names gives me a structure table but not the actual table in SAP database. I tried the BSEG table but it doesn't store the purchase order number. Any information will be highly appreciated.  
Thanks !!

Hi
You can get the Link of PUrchase order & the Invoice from Table EKBE.
You can also get the data by joining the table RBKP & RSEG, as the Purcahse order details are stored in RSEG & posting date details are stored in RBKP
Thanks & Regards
Kishore

Similar Messages

  • Create an AP Invoice based on a Purchase Order using SDK

    Hi,
    What are the steps to create an AP Invoice based on a Purchase Order using DI API?
    Which methods of which objects to use and what parameters to pass?
    Thanks.

    Hi Rajesh,
    Here is a sample to create an Invoice based on a Sales Order. The same way you can change as per your requirement:
    SAPbobsCOM.Documents oInvoice = default(SAPbobsCOM.Documents);
                oInvoice = (SAPbobsCOM.Documents)SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
                oInvoice.CardCode = "C000003";
                oInvoice.DocDueDate = DateAndTime.Now;
                oInvoice.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oOrders);
               oInvoice.Lines.BaseEntry = Convert.ToInt32(3616);
               oInvoice.Lines.BaseLine = 1;
                oInvoice.Lines.Quantity = 3;
                oInvoice.Lines.Add();
                oInvoice.Lines.BaseType = Convert.ToInt32(SAPbobsCOM.BoObjectTypes.oOrders);
                oInvoice.Lines.BaseEntry = Convert.ToInt32(3616);
                oInvoice.Lines.BaseLine = 2;
                int kth = 0;
                kth = oInvoice.Add();
                if (kth != 0)
                    int irrcode;
                    string errmsg;
                    SBO_Company.GetLastError(out irrcode, out errmsg);
                    Program.oMainSAPDI.ShowMessage(errmsg, BoStatusBarMessageType.smt_Error);
    The main thing to remember is Base Type, Based Entry and Base Line.
    Hope it helps.
    Thanks & Regards
    Ankit Chauhan

  • How to Configure Invoice Address tab on Purchase Order - Header Level

    Hi Gurus
    Please assist
    My client want to add the Invoice address on the Purchase Order level Tab, it must be automatically pull through to all the Purchase Orders as they have one Invoicing address.
    Currently the suppliers send invoices to plants instead of HEAD OFFICE for payment
    Regards
    Susan

    Hi,
    Tax condtions shd be given by functional consultants.ABAPers cant decide the tax condtions.
    you can have these condtions in KONV table.
    In item level vbrp-posnr = konv-kposn.
                      ekpo-ebelp = konv-kposn
    at header level as said in the below thread
    Just see this and get back if any concerns
    Regards
    Edited by: Rasheed salman on Dec 2, 2008 6:20 AM
    Edited by: Rasheed salman on Dec 2, 2008 6:22 AM

  • Invoice Recipt document for Purchase order

    Dear Gurus,
    I have a requirement to extract Invoice Recipt Document number & Invoice date for every purchase order into BW.
    I know that For purchase order details we used 2 datasources 1. ) 2LIS_02_SCL & 2.) 2LIS_02_ITM. Both the datasource do not have Material document number (BELNR) field. But these datasource read data from EKKO, EKPO & EKBE table and material document number field is availble in EKBE.
    I also know that this field along with PO purchase order category (BEWTP)= 'Q' we can get the invoice document no. But I am not sure if we can enhance this 'Material document number' field to datsources 2LIS_02_SCL & 2LIS_02_ITM.
    If we can, should the field be apended to both the datasource or can this requirement be facilitated by appending to any one of the datasource. Not sure about this. Can somebody help me or guide with how to proceed with this requirement.
    Thanks in advance,
    Sandeep.

    Hi Sandeep,
    I have not worked on this datasource but yes technically you can do it.
    As I understand, 2LIS_02_SCL is for header details of PO and PO has one to one relationship with Material Doc number.
    Therefore, if you requirement is to only bring in the header details for this Material doc, only enhance this datasource.
    Append this field to the datasource, then write the customer exit for this datasource.
    In this customer exit, you can write your code for deriving the Material doc number from EKBE based on the details available in e_t_data (for this datasource).
    But, if your requirement is to fetch line item details as well, you need to append the other datasource as well. And by writing the exit you can again derive the details from the table.
    Please note that the appended fields cannot be used to trigger any deltas, so if your requirement includes to trigger the delta if your material document changes, it cannot be done.
    Hope this helps.

  • IN which table stores the Value of sales orders Net Value

    IN which table stores the Value of sales orders Net Value

    Hi Lakshmi,
    Check Following Tables:
    CRMD_PRICING_I
    CRMM_PR_SALESA
    CNCCRMPRSAP00090
    Reward Points if Helpful.
    Srini.

  • "Material  Invoice Cycle- field" in the Invoice tab of the Purchase Order?

    Hi,
    Does somebody has a clue on the field "Material  Invoice Cycle- field" in the Invoice tab of the Purchase Order?
    What are the functions, dependencies and the scenarion one can use this field.
    Regards

    Hi
    Here in Is-oil we have invoice cyles. Provisional invoice, Final invoice, interested invoice, settlement invoice etc..
    So in sales at first provisional invoice has been created than the final invoice based on the Provisional invoice.. and further invoices like  interest invoice & settlement invoice ..
    So here we are using 4 invoice cycle.. hence you have to define in the Spro-->industry solution -->oil & gas  > cross component application>maintain the invoice cycle numbers... 4
    And this data has to be used in Condition type
    Spro--> industry solution -->oil & gas  > cross component application> MM split invoice -->Enter the data in additional invoice .
    These is the function of Material invoice cycle field...
    Thanks and regards
    Raja

  • Set the final invoice flag for a purchase order

    I want to know how to set the final invoice flag for a purchase order.
    I tried BAPI_PO_CHANGE but it is giving me error.
    Help me.

    Hi,
    I think ur BW report shows the cleared Invoice no. The second invoice no. might not have been extracted to BW system. Check your order no. in Cube whether it has two invoice nos.
    Regards,
    Suman

  • Uncheck Invoice receipt indicator in Purchase Order Local

    We want to uncheck invoice receipt indicator in Purchase Order Local ( field BBP_PDSET-IR_IND) when a Shopping Cart is complete and PO Local is created automatically by system.
    We are using BADI BBP_DOC_CHANGE_BADI with Method BBP_PO_CHANGE but no changes are made. BADI is not accessed when PO Local is created automatically but only when we modify PO Local with transaction BBP_POC.
    What we can do?
    Regards.

    Hi David,
    the BBP_DOC_CHANGE_BADI is actually accessed during automatic creation. You can see this by putting an external breakpoint in the badi for user WF-BATCH.
    The IR_IND is based on the vendor data, if you clear the invoice receipt indicator there it will not be set in the po. The vendor data is checked later on, so that's why you don't see any change. As it will clear the ir indicator in the badi, but then sets it again later on.
    Regards,
    Robin

  • Cannot query AR invoices based on the purchase order number in R 12 1.3

    Hi,
    We need to query invoices based on the purchase order number, However when we try to Ct+F11 get the message *"Please fill in selective criteria in at least one of the following fields for performance reasons: GL Date, NUmber,Bill to etc."*
    Is this a new feature or a bug?
    Thanks and Regards,
    MPH

    Hi All,
    I found the solution in the following note.
    *How to prevent Blind Query or Query on Non Indexed Column in Transaction, Receipts, Collections forms? [ID 753222.1]*
    Thanks and Regards,
    MPH

  • Can u tell me the tables for field Cross company Purchase Order.

    Can u tell me the tables for field Cross company Purchase Order.

    check below link...
    http://help.sap.com/bp_bblibrary/500/Documentation/J53_BPP_EN_DE.doc

  • Which table holds the link between Purchase requisition and Reservations ?

    Hi Guys,
    We are using MRP and as a result of the MRP run the reservations are converted to purchase requisition. When i look at transaction MD04 it shows me the Purchase requisition against a reservations.
    I would like to know which table holds this information? I mean which table will give me the reservations tied to a purchase requisition or vice a versa.
    I have looked into RESB and RSBD but could not find what i am looking at. RESB table has BANFN field for purchase requisition but this field is not populated. RSBD table hold the Purchase requisition and reservations but it only holds the relation for Direct procurement and not for all.
    Any idea where i can find the Preq and Reservations created through MRP run?
    Thanks
    VJ

    Try RKPF..
    thanks
    jz

  • Tables or FM's for Purchase order  ,Invoice, Taxes details

    Hi,
    I want to know from which tables or function modules we can get the condition type, amount and condition value.
    Purchase order Line Item > Invoice (tab)> Taxes (tab)-->  condition type, amount and condition value?
    Regards,
    Prem.

    Hi
    LOGIC :
    1 you will get po number fron EKPO
    2, for same po you will get invoice in table RSEG
    3.Pass the BELNR( Invoice number) in to BKPF into refernce field( where you will get invoice number+fiscal year) and same table you will get Fi doc in BELNR
    4Then pass the BELNR  in to BSET
    5.Where all tax details available
    Regards
    Kailas ugale

  • Which table states relation between these?

    HI,
    I would like to know,which tables describes the best of the following case?
    The table which contains relation between Sales document number and purchase document number?
    Please let me know ASAP.
    Regards,
    Vishwakarma.

    HI
    GOOD
    I DONT THINK THERE IS ANY TAHLE WHICH CONTAIN THE RELATION BETWEEN SALES DOCUMENT NUMBER AND PURCHASE DOCUMENT NUMBER,I YOU WANT TO ACCESS DATA FROM THESE TWO TABLES AND YOU CAN USE THE INNER JOIN STATEMENT.
    THANKS
    MRUTYUN

  • Table which gives the billing status for purchase orders

    Is there any table for purchase orders which gives us the "billing status"  as we have table "VBUK" in sales order.

    I don't think there is a status table per se, but try EKBE.
    P.S. It's an SD forum, there is a separate MM/PTP forum.

  • Tables(Invoice Related)

    Hi,
    From which table can i get the following fields:
    Vendor name
    Vendor No
    Invoice No
    Invoice date
    Description
    Discount amount.

    Hi Monika,
    Plz use the following tables.
    RBKP,RSEG.
    Regards'
    Karthik

Maybe you are looking for