Link between AP and GL main tables in 11i

Hello,
Can anyone please provide the link between AP and GL main tables.
I need a join between the AP_Invoices_All, AP_INVOICE_DISTRIBUTIONS_ALL, GL_JE_LINES, GL_JE_HEADERS.
Actually, I found a query that is as below. I want to confirm if that is correct. I need to confirm if the right joins are necessary and are placed correctly.
Thank you
select *
from gl_je_headers gjh,
gl_je_lines gjl,
ap_invoices_all aia,
po_vendors pv,
ap_invoice_distributions_all aida
where gjh.je_header_id = gjl.je_header_id
and aida.invoice_id(+) = gjl.reference_2
and aida.distribution_line_number(+) = gjl.reference_3
and aida.invoice_id = aia.invoice_id(+)
and gjh.je_source = 'Payables'
--and gjh.je_category = 'Purchase Invoices'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Hello,
Any help.
I have also found out that, in 11i, the Reference_2 column in the GL_JE_Lines table has the invoice_ID in it.
So, does that mean that we can join the GL tables and the AP Invoice tables using this condition. I dont know if that is right. Please help
select * from
ap_invoices_all aia, gl_je_lines gjl
where aia.invoice_id = gjl.reference_2

Similar Messages

  • Link Between PSA and Data Targets

    Hi Experts,
    Could you please help me is there any table which will have PSA & data target (Cube or ODS) details.
    I know the table which will have data target manage screen details and other table wil give the details like data loaded into till PSA.
    But i want to know any SAP table will have link between PSA & data target.
    I want to know if the request is loaded till PSA or it is loaded into data target.
    Any table will give details like PSA request no, if target is there then some kind of flag like....
    Please let me know if any one know the table which will have PSA as well as Data target details.
    Thaks in Advance
    Shaik

    Hi,
    I clearly mentioned im aware of Manage screen details table, i want link between PSA and Data target table which will return if requst loaded till PSA or PSA & target.
    Im using BI 7.0 .
    Regards
    Shaik

  • Table Link between Equipment and Sub-equipment

    Hi all
    My requirement is this
    I have one mobile set with a serial number. for that mobile set i have one battery with a serial number, now i want to link both the serial numbers, one as main and another as sub item
    I tried by maintaining the battery serial number as sub-equipment in the main mobile set equipment number master,
    Let me know the table link between equipment and sub-equipment
    I want a report based on the input mobile set equipment number what are all the sub-equipment associated with the main equipment
    Also suggest is there any other approach,
    Regards
    Amuthan M

    Hi
    EQUZ is the table,if u give the sub equipment in equipment field and execute.you can find the main equipment in superior equipment field

  • Linking between PP and SD tables

    Hai friends,
    I want one link between PP and SD tables. My requirement is i have planned order PLAF table. i want to link Sales table. Please guide me.
    Thanks and Regards
    visvanath

    Hi
    You can simply link the Sales order No and ITEM
    VBAP-VBELN and VBAP-POSNR with the PP order item table
    AFPO-KDAUF and AFPO-KDPOS and get the Pp related info
    or in Sales tables there is a field called AUFNR in VBAP
    use that for PP order number
    SD tables
    http://www.erpgenie.com/abap/tables_sd.htm
    PP tables
    http://www.erpgenie.com/abap/tables_pp.htm
    Regards
    Kiran Sure

  • The relationships and links between the various SAP database tables

    Hi Gurus,
    I am trying to learn the relationships and links between the various SAP database tables (SAP FI-AA, SAP SD, SAP MM, SAP HR and so on) for correctly extracting data from them. Especially I am expressing an interest in the SAP database tables on SAP FI-AA, SAP SD, SAP MM, SAP HR. Could somebody provide me with documentations about the relationships and links between them. I will be very grateful if somebody can provide me with links.
    Thanks and regards
    Sergey

    hi Sergey,
    try
    http://www.erpgenie.com/abap/tables.htm
    http://www.erpgenie.com/abap/tables_fi.htm
    http://abap4.tripod.com/SAP_Tables.html
    http://abap4.tripod.com/Finance_Tables.html
    http://www.auditware.co.uk/SAP/Extras/SAPTables.pdf
    hope this helps.

  • Link between vbpa and vbak tables

    Hi,
    I would like to know the link between VBAK and VBPA tables.
    VBELN field in both these fields are the same?
    If I give the VBELN field got from the VBAK table into the VBPA table will I get the  customer number(KUNNR) of that particular SAles document?
    Thanks & Regards,
    Soumya.

    You can get Kunnr directly from the VBAK table, if you wanna do the Join still you can go forward and do it there is no harm but remeber to give the Partner Function(PARVW) as well as VBELN.
    Hope That Helps
    Anirban M.

  • Link between AUFK and BKPF table

    Hi all,
    Can anyone tell me the link between AUFK and BKPF table.
    Thanks in advance
    Regards
    Neha Kapoor

    hi neha ,
    1.first u have to get MBLNR from AUFM for that order
    2.Next u have to call FM
    <b>AC_DOCUMENT_RECORD</b>
    I_AWTYP                         MKPF--->Constant
    I_AWREF                         4900003215--->MBLNR
    I_AWORG                         2004--->Year
    I_AWSYS
    I_AWTYP_INCL
    I_AWTYP_EXCL
    I_BUKRS
    I_VALUTYP                       0
    X_DIALOG                           X
    then u will get the Accounting Documents.
    regards
    prabhu

  • Link between AFVC and EBAN tables (material report)

    Friends, wanted to check if anyone can provide assistance on table links between AFVC and EBAN.  The requirement is to track material/service quantity, price, etc in comparison with plan version versus PR, PO, GR, etc.  tried retrieving object numbers of WBS and activities using 'get proj info'  bapi and tried passing them in tables COSP/EBAN/COKEY but the essential link between material assigned to network activity and the PR is missing..
    Thanks in anticipation,

    Hi,
    Did you try the link including EBKN. Basically you can pass the network / WBS number in EBKN and get teh PR number and use this detail in to the item table of PR.
    Regards
    Sreekanth

  • Table link between IBASE and its associated products

    Hi,
    If we go to the transaction IB53 and enter an IBase number, all the products asssociated with the IBase will be listed out.
    Similarly, if we have the IBASE number how can we track the associated products via tables.(i.e) the table link between IBIBIBASE and COMM_PRODUCTProduct_id
    Thanks in advance.
    -Aaru

    In two steps..
    1. Convert Product GUID using FM 'GUID_CONVERT'
      CALL FUNCTION 'GUID_CONVERT'
        EXPORTING
          iv_guid_x16 = product_guid
        IMPORTING
          ev_guid_c22 = sysuuid-c22.
    2. Get the IBASE from view v_ibinr where objnr = sysuuid-c22

  • Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    you can link
    OOH.invoice_to_org_id=CUST.cust_account_id   -- invoice customer
    OOH.sold_to_org_id=CUST.cust_account_id   -- sold to customer
    OOH.ship_to_org_id=CUST.cust_account_id   -- ship to customer

  • Link  between knvp and the data belonging to a pernr

    Hello
    In table knvp there are link between customer and partners. These partners can be companies but also persons.
    Thje personnujmber is filled in case.of a person.
    Does anyone knows the links or the tables belonging to that pernr ( like the adddres, email etc.).
    i do not want the functions.
    thanx in advance

    Hi,
    Master data of personnel number are stored under infotype tables (table PAxxxx).
    e.g. the address is stored in infotype 0006 (PA0006), while email is usually stored in infotype 0105 (PA0105)...
    The key fields of those infotypes tables are mainly the personnel number, along with the validity dates and a subtype field if needed (e.g. the standard subtype for email in PA0105 is '0010')...
    fyi, You can display/maintain all PA infotypes through transaction PA20/30...
    Kr,
    Manu.

  • Link between Invoice and Payments

    As I understand the link between the A/R Invoice table and the Incoming Payment table is OINV.ReceiptNum = ORCT.DocEntry. My question is when does the ReceiptNum field get filled in? We have many closed Invoices that have a payment linked (viewed by going to Applied Transactions when on the Invoice) but the ReceiptNum field is still NULL in the database. Shouldn't these invoices all have a linked payment if they are closed?
    Regards,
    Jeremy

    Hi Steven,
    The reciptnum field is populated when the payment is created and the Invoice is a part of that payment. If you do a manual reconciliation this field is not populated.
    Open the payments that you see in Applied transactions to see if the Invoices are in the rows.
    Hope it helps,
    Jesper

  • Link between sd and pp

    hi all,
      i have a problem regarding relation or link between sales and production order. i have to fetch production order number related to sales order number. i have checked in the table AFPO that is production order item table , there is field AFPO-KDAUF and AFPO-KDPOS ie, sales order and sales item. but when i see these two fields there is no data into the field so how can i get data into the table related to production order.can anyone help me on this issue.

    Please refer to the below links -
    https://forums.sdn.sap.com/post!reply.jspa?threadID=309885
    Integration points with MM/IM and PP are some of the following -
    When a Production order is created and released a reservation gets created for the materials in BOM
    When the reservation is created and materials are posted against the reservation with mvt type 311 these are transferred to the respective location.
    When a GR is posted with mvt type 101, the Finished or Semifinished goods are posted to the respective storage location and inventorized.
    When a consumption is posted with mvt type 261 then stock will get reduced in resepective storage location.
    When a batch determination is done in a production order basing on the batch search strategy and sort rule material, quantity and batch are selected.
    If WM is configured an associated internal movement for all the above movement types will be posted.
    During MRP, BOM which is a master data for PP is used to calculate the dependent requirements of materials.
    During availabilty check of a production order basing on the availability check configured materials will be selected and checked.
    Hope the above may help you.

  • 'Is there a link between OLM and iProcurement'

    I have been asked 'Is there a link between OLM and iProcurement'? The person posing the question is wanting to create trainers as suppliers and I know that the supplier information is shared between OLM and the A/P, A/R and G/L modules and I presume that the link to iProcurement will be via one of these modules however is there a more direct vanilla link between OLM and iprocurement?
    Any help would be great
    Thanks
    DM

    I am afraid there is no link between the iProc and OLM.
    The closest that apps can offer you is that your learner/delegates can be of type external i.e. being an Organization or a Customer. Hence there exists a link for your delegate to be a customer(hz_parties).
    However this might be a future integration i.e. Trainers being suppliers. I am saying so because in 11.5.10 there is a table named OTA_VENDOR_SUPPLIES that has reference to vendor_id. Currently this table is not being used by OLM.
    You may look into the code of packages OTA_VSP_API, OTA_TEA_BUS & OTA_PLE_BUS and see if Oracle's future functionality will converge towards your business requirement.
    Thanks,
    Anil Passi
    http://oracle.anilpassi.com

  • Link between Item and delivery

    Hi ,
    I want to know the link between item and deliveyr. Like for example, an sales order item ( no. 10) containing 10 quantities can be delviered 5 times( each containing 2 quantities) and line item ( no. 20) can contain one single delivery. I am working on a report where i have to link all the line item to its delivery number. I am trying to achieve this through GENIl but i am not able to indetify as to how to differentiate the different deliveyr numbers. In other words, can some one help me as to how to link the delivery number to its corresponding items?

    Document flow is stored in the table VBFA in ECC.
    VBELV fied is the sales order number and in POSNV specify the line item number and speicfy VBTYP_N = J (Delivery).
    Regards,
    Bhanu

Maybe you are looking for

  • ARD will not connect to one of my Remote through Public IP

    Hi All, I have several offsite computers that I manage. I have been able to connect to all except one. Here is the setup/situation. My client works in an office that is PC based and he has one of the only macs. In his office he has connected a Time C

  • How to connect to  Oracle database from webdynprojava application

    Hi How to connect to  Oracle database from webdynprojava application. where can we provide the code to connect to database.? Thank You.

  • Airplay sound not mirroring after first time until restart

    Anyone else seeing this issue? When we connect either the iMac or the MacBook Pro to our 2nd generation apple tv via airplay the first time, the sound goes to the tv as expected. If we try to use airplay a second time, the sound stays on the computer

  • Cold Fusion Language

    I need to acquire cold fusion language to access online teaching opportunities. I am assuming adobe will allow me some app for CFML. Please advise. I am new to this so all information needs to be very basic. Thanks. D. Rhodes

  • IDVD burn plays poorly in home DVD player

    Help! I have several iDVD burns that play poorly in my home DVD player, a Sony SLV-D300P. So we went out and bought another DVD player, the Samsung DVD-V5500 and the same is true! The audio cuts out, the picture pixalizes and then it all together fre