Accounts Payable Query

Dear All,
         I am analysing data which goes through 0fi_ap_4 data source. I seek info on how accounts payable data is distinguished from General Ledger data.Since accounts payable is a subset of general ledger data, from which table does 0fi_ap_4 take info from and what is the field used to decide that a certain records is related to accounts payable?
Regards,
Ratish
[email protected]
Edited by: Ratish Premachandran on Jan 18, 2008 12:22 PM

Hi,
Check the ppt file.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a7f2f294-0501-0010-11bb-80e0d67c3e4a
Regards.

Similar Messages

  • What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10?

    Hi Guys,
    What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10?
    I have to write an AP Invoice Aging Report in Discoverer to show all unpaid invoices that have been transferred into GL... Business wants it to match one-to-one with the AP Trial Balance standard report...
    Business wants to run the report for any date in a past...
    The report has two parameters:
    As Of Date - the same as As of Date for the AP Trial Report
    Trial Balance Run Date - the date when Trial Balance was run...
    Conditions are:
    TRUNC(Invoice Date) <=TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    TRUNC(NVL(Payment Date,'01-JAN-5000')) > TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    TRUNC(Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
    Distr Accounting Date <= TRUNC(NVL(TO_DATE(:As Of Date),SYSDATE))
    NVL(Distr Creation Date,Invoice Creation Date) <= TRUNC(NVL(TO_DATE(:Trial Balance Run Date),SYSDATE))
    Show_Flag = 'YES', where:
    Show_Flag = CASE WHEN ( NVL(Cancelled Date,'01-JAN-1901') > NVL(:As Of Date,SYSDATE) AND NVL(Inv Amount Aud,0) = 0 ) THEN 'YES' ELSE ( CASE WHEN NVL(Inv Amount Aud,0) = 0 THEN 'NO' ELSE 'YES' END ) END
    There is a difference between the logic of my report, and the logic of AP Trial Balance...
    Could you please advise what I'm missing?
    Thanks,
    Iana

    What is the query for Accounts Payable Trial Balance (APXTRBAL) in 11.5.10? You can get the code by opening the report in Reports Builder and get the query.
    Or, enable trace/debug as per (FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]).
    Thanks,
    Hussein

  • Account Payables with Procurement data query

    Hi Gurus,
             Anyone who developed reports on a query of Account Payables with Procurement data.. the sources of fields are from R/3....
             Can you provide me with the business content or the datasources you use?
    Thanks..
    Irish

    Hi Irish,
    The Datasources used are :
    1. Purchasing  2LIS_02_S012
    2. Purchasing Groups  2LIS_02_S011
    3. Purchasing Data (Schedule Line Level)  2LIS_02_SCL
    4. Purchasing Data (Header Level)  2LIS_02_HDR
    5. Purchasing Data (Item Level)  2LIS_02_ITM
    6. External Services  2LIS_02_S174
    7. Vendor Evaluation  2LIS_02_S013
    8. Vendor Evaluation Data  0MM_PUR_VE_01
    9. Vendor Evaluation Data (Semi-Automatic)  0MM_PUR_VE_02
    10. Subsequent Settlement - Evaluation  2LIS_02_S015
    11. Allocation - Confirmation with Schedule Line  2LIS_02_SCN
    12. Allocation - Confirmation with Goods Receipt  2LIS_02_CGR
    13. Allocation - Schedule Line with Goods Receipt  2LIS_02_SGR
    Hope this helps.
    Regards
    Hemant Khemani

  • AP Invoice Aging Report by GL Date (using: Accounts Payable Trial Balance)

    Hi
    Need some suggestions:
    I need to develop a custom report in (R12).
    Account Payable Trial Balance Report, does have the capability to run as of a particular date but it does not show aging buckets. This custom report is to be developed to meet the requirements from a Payables detail perspective as well as to reconcile.
    The report should show the balance due as of the report date selected. If As of Date = 5/31/11, then when the report is run on 6/15/11, it gives the results as it existed on 5/31/11. If we run it again on 8/31/11 for As of Date = 5/31/11, and again on 1/13/12, we get the EXACT SAME results each and every time except for the following fields: Current Status, Date Paid and Payment Reference Number.
    The end result should be this report ties to the penny to Oracle GL as of the date selected EXCEPT for any JEs posted to the account.
    Thanks
    Pravin

    Hi Pravin,
    For all transactions in Oracle, you will have GL dates (Accounting Dates) associated to it. If you use this date in your query to filter data, then you will get correct aging data as on a given date.
    To tally with GL, you also must check if the selected transaction has been accounted?
    Raajkumar G

  • List of invoices paid in accounts payable with corresponding expense GL

    Hi,
    Need to know whether there ia any standard report in SAP ECC 6.0 version where we can get the list of all invoices paid  in a period  in A/Pwith corresponding expense GL Account. IF we need to build report painter report or query  any idea which tables will contain all these information. If any one is having functional specification document it will be of great help.
    Regards,
    Vipin

    Hi,
    - check in Easy Access->Accounting-> Fin Acctng->Accounts Payable-> Vendors:Items or Payment Transactions (like S_P99_41000099 or S_ALR_87012085 etc.,)
    - relevant tables would be BSAK or BSEG
    Rgds.

  • SRKIM: R12: Accounts Payable Trial Balance issue troubleshoot

    Purpose
    R12 에서 AP Trial Balance Report 확인 시 데이터가 비정상적일 경우 check 해야 하는 내용에 대해 확인 해 보도록 한다.
    Question
    R12 에서 invoice 생성 후 gl 로 transfer 하였으나 ap trial balance report 의 데이터가 비정상적인 것으로 확인 된다.
    어떤 내용을 확인 해야 하는가.
    Answer
    1. APList Diagnostics Script 을 해당 invoice 에 대해 수행 하여 아래의 내용을 확인한다.
    - Accounting 이 생성되어 gl로 모두 transfer 되었는지 여부.
    - Accounting Date 가 Trial Balance Report 의 start date 와 as of date 안에 포함 되는지 여부
    2.위의 내용에 문제가 없다면 아래 sql 로 데이터를 확인 해 보도록 한다.
    select *
    from xla_trial_balances
    where source_entity_id in (
    select entity_id
    from xla.xla_transaction_entities xte
    where application_id = 200
    and (
    (entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
    OR
    applied_to_entity_id in (
    select entity_id
    from xla.xla_transaction_entities xte
    where application_id = 200
    and (
    (entity_code = 'AP_INVOICES' and source_id_int_1 in (&invoice_id))
    3.GL 에 실제 해당 데이터가 존재 하는지 아래 sql 로 확인 해 보도록 한다.
    SELECT distinct aeh.*
    FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
    ael,
    XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
    WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
    and gjh.je_batch_id= gjb.je_batch_id
    and gjl.je_header_id = gjh.je_header_id
    and gjl.je_header_id = gir.je_header_id
    and gjl.je_line_num = gir.je_line_num
    AND gir.gl_sl_link_table in ('XLAJEL')
    and ael.gl_sl_link_table in ('XLAJEL')
    AND aea.application_id = 200
    AND aea.event_id = aeh.event_id
    AND aeh.ae_header_id = ael.ae_header_id
    AND gjb.je_batch_id = gir.je_batch_id
    and xte.application_id = 200
    and xte.entity_id = aea.entity_id
    and gjh.je_header_id = gir.je_header_id
    and gjh.je_source = 'Payables'
    and (
    (xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
    OR
    (xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
    SELECT distinct gjl.*
    FROM gl_je_lines gjl, GL_IMPORT_REFERENCES gir, gl_je_headers gjh, GL_JE_BATCHES gjb, XLA_AE_LINES
    ael,
    XLA_AE_HEADERS aeh, XLA_EVENTS aea, xla.xla_transaction_entities xte
    WHERE ael.gl_sl_link_id = gir.gl_sl_link_id
    and gjh.je_batch_id= gjb.je_batch_id
    and gjl.je_header_id = gjh.je_header_id
    and gjl.je_header_id = gir.je_header_id
    and gjl.je_line_num = gir.je_line_num
    AND gir.gl_sl_link_table in ('XLAJEL')
    and ael.gl_sl_link_table in ('XLAJEL')
    AND aea.application_id = 200
    AND aea.event_id = aeh.event_id
    AND aeh.ae_header_id = ael.ae_header_id
    AND gjb.je_batch_id = gir.je_batch_id
    and xte.application_id = 200
    and xte.entity_id = aea.entity_id
    and gjh.je_header_id = gir.je_header_id
    and gjh.je_source = 'Payables'
    and (
    (xte.entity_code = 'AP_PAYMENTS' and xte.source_id_int_1 = &check_id)
    OR
    (xte.entity_code = 'AP_INVOICES' and xte.source_id_int_1 = &invoice_id)
    4.위의 sql 을 통해 Trial Balance Table 의 데이타가 잘 못 생성 되었음이 확인 되면 해당 Trial balance table 의 데이타를 recreate 하는 작업을 수행 해야 한다.
    Reference
    Note. 553484.1 - THE R12 ACCOUNTS PAYABLE TRIAL BALANCE DATA IS
    INCORRECT/WRONG

    Follow the below steps and Run the Trial Blance and let me know if it helps.
    Thanks
    Girish
    How to Rebuild Trial Balance Data (repopulate XLA_TRIAL_BALANCES)
    1. Navigate: Payables Responsibility > Setup > Accounting Setups > Subledger Accounting Setups > Open Account Balances Listing Definitions
    2. Query up your Report Definition: select Defined By = Accounting Flexfield or Segment (whichever applies in your case), click “Go”
    3. Click on Update icon in the "Actions" column – the definition's update page opens.
    4. "Touch" the definition by simply clicking "Apply" button (without making any change).
    This should start the “Open Account Balances Data Manager” concurrent processes

  • Accounts Payable Check Register

    Hello,
    Does anyone have any advice they can share with regard to creating an InfoProvider that would contain check register information for Accounts Payable?  I have looked through Business Content for Financials but have not been able to find anything even close to this type of design.  Our Financial functional analysts cannot believe that a check register InfoProvider is not included as part of BC. 
    Thanks in advance,
    Sonya

    As an accountant for 35 years, I could not believe that there is no check register in SAP.  The document journal report hardly suffices.  The company I am with now did create a query that is below.  See how this works for you.
    SELECT T0.CreateDate AS 'Creation Date', T0.CheckNum AS 'Check No.', T0.VendorCode AS 'Vendor Code', T0.VendorName AS 'Vendor Name', T0.CheckSum AS 'Check Amount', T1.JrnlMemo AS 'Journal Remarks', T1.TransId AS 'Transaction Number', T0.Canceled AS 'Cancelled' FROM  [dbo].[OVPM] T1 INNER JOIN [dbo].[OCHO] T0 ON T1.DocEntry = T0.PmntNum INNER JOIN [dbo].[VPM1] T2 ON T2.DocNum = T1.DocNum WHERE T1.DocDate >= CONVERT(DATETIME, '[%0]', 112)  AND  T1.DocDate <= CONVERT(DATETIME, '[%1]', 112)

  • Accounts Payable Trail Balance Report Supplier Sitewise

    Hi,
    I want to customized Accounts Payable Trial Balance report in AP.
    This concurrent program source is JAVA. How to customized this report to get the Trial Balance based on the Supplier Site.
    If customization is not possible, can anyone let me know which data i needs to pull to get the trial balance report.
    Regards/Prasanth

    do u want the query or do u want to know how to calculate i used case statement in the seeded query so i got the o/p in days-weeks-months-years format

  • Display Intercompany Account Payable Posting document

    Hi Friends,
    We have a query related to Intercompany account payable posting document.  In Intercompany process, we are posting the intercompany account posting in receiving company by using standard SAP EDI functionality.  It mean once the AR is realized, we post the AP using Outbound & Inbound IDOC.  Now when we like to display the account payable document, there are two ways -
    1. Go to Account Receivable document, Environment->Document Environment->Relationship Browser-> IDOC->AP Document
    2. Change view of billing document, Services for Objests->Display Relationshis->IDOC Number->AP document
    Here we have a requirement to display the AP document directly without going to all the above ways, could you please whether any transaction/approach to display the AP document from AR document.
    Thanks in advance
    Best Regards,
    Goutham

    Please take the Invoice Number put "0" in Prefix go to FB03>Document List> remove all the values given in the screen if there is any, enter the Invoice Number with ZERO Prefix in reference Number Field.
    This will give you two documents one will by IC-AR and Other will be IC-AP.
    Hope this helps.
    Regards,
    Vivek

  • Tracking Purchase orders to accounts payable

    What would be the best way for an auditor to use ERP to ensure the accounts payable are completely recorded. how can he/she efficiently match up purchase orders with accounts payable? is there a way one can ask the ERP a query and it can return any purchase orders that DO NOT have a corresponding accounts payable?

    Hi,
    When you use G/R or service entry sheets the open values are on your g/l account GR/IR. The completed ones are cleared out.

  • Sap report purchasing and accounts payable

    Dear gurus,
    I intend to create a vendor payment report that would create clarity on the operations in purchasing and accounts payable.
    Which tables would be idea to create such report?
    BR,
    Tolu

    (Only some of the most important tables)
    For MM purchasing, check
    - EKKO     Purchasing Document Header
    - EKPO     Purchasing Document Item
    - EKBE     History per Purchasing Document
    - EKKN     Account Assignment in Purchasing Document
    (Also look at logical database BRM, EBM, ECM, EKM, ELM, EMM, ENM, ERM, EWM,MEPOLDB, PSJ   definitions)
    For FI-AP financial account payable
    - BKPF     Accounting Document Header
    - BSEG     Accounting Document Segment
    - BSIK     Accounting: Secondary Index for Vendors
    - BSAK     Accounting: Secondary Index for Vendors (Cleared Items)
    - BSIS     Accounting: Secondary Index for G/L Accounts
    - BSAS     Accounting: Secondary Index for G/L Accounts (Cleared Items)
    - BSIM     Secondary Index, Documents for Material
    (Also look at logical database BMM, BRF, BRM, KDF definitions)
    Regards,
    Raymond

  • Accounts payable report with PO reference - FBL1N

    Hi
    I need to see a report on accounts payable with the display of PO, profit center. I see report FBL1N wherein PO reference, profit center is not displayed even though selection field is there in the layout. kindly help me out.

    Hello,
    Hope this article really helps you.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20f6b256-23be-2b10-8b93-cad83a617634
    Regards,
    Ravi

  • Manual journal entries created in Ap did not see in Accounts Payable Trial

    Hi Experts,
    Report Accounts Payables Trial Balance, with parameter Include SLA/Manuals/Other Sources Flag set to Yes, does not show manual journal entries.
    These Manual journals entries are created in AP
    Navigation: Payables -->Accounting --> Subledger accounting --> Journal Entries.
    Ofter creating the journal entries i ran Accounts Payable Trial Balance, when i go through the output i did not see the Manual journal entries which are created in AP.
    Please help me it is very urgent.
    Regards,
    Raju.

    Pl check your 'Report Defintion' once to ensure that liability accounts that you are using in manual entries are included in report definition.
    Regards,
    Tarun

  • Fully Paid invoice is  appearing in "Accounts payable  trial balance"

    Hi all,
    i have proble with AP trial balance report..
    there is one invoice which is fully paid and accounted.
    but still that invoice is appearing in trial balance report.
    invoice amount is 0000000
    rmaing amount is (9856568) note: negatinve amoun..
    any one pls suggest as soon as possible
    thanx

    hi Octopus Rex ,
    rite.
    But i have one doubt tht.i have invoice which is paid.but it is still in "AP_LIABILITY_BALNCE" as you mentined **"The Accounts Payable Trial Balance report uses this information to report on outstanding invoice liability"**.But i have only single line for that paid invoice.
    the table "AP_LIABILITY_BALANCE" sholud have the oustanding amount only rite.why i am getting this paid invoice.
    can u give some point to releated paid invoce that will appear in this table

  • R12 - Accounts Payable & PO Accrual Reconciliation Report - write offs

    Hi,
    As a relative novice to Oracle I need some help.................
    My question regards the above which is essentially a "goods received not invoiced" report.
    I have a number of items on the report which I would like to write off for two reasons:
    (1) I have a small balance left which is basically the difference between the PO and the accounts payable column - in the region of 1p to 5p (therfore a housekeeping exercise)
    (2) Items that we've never received an invoice for (we've received the stock for free!). ie there is only an entry in the PO column of the report.
    For the above I would like a method of writing off these balances from the report.* This should therefore create a credit in my P&L account.
    Your thoughts please.
    Thanks in advance.
    Jon

    This is the forum for the SQL Developer tool. You need to ask your question in an eBusiness suite forum.

Maybe you are looking for