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

Similar Messages

  • 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

  • Accounts Payables Trial balance report error!!

    Can anybody help me to set right the following problem? it will be greatful if you sort it out.
    Completion Text:
    your concurrent request exited abnormally??
    Cause: The concurrent program for your request exited without calling standerd application object library exit routines or the process could have terminated by the operating system??
    The above error ocurred when i tried to run an accounts payables trial balance report.....
    thanks for ur suggestion.
    My Email ID : [email protected]

    Accounts Payable Trial Balance Report using APXRTB program to run the Accounts Payable Trail Balance report by Date and Sort by vendor.
    Hemant Shah
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sean Collard ([email protected]):
    Can anyone tell me what report (.rdf) the spawn program APXRTB (Accounts Payables Trial Balance Report)uses.
    Thanks <HR></BLOCKQUOTE>
    null

  • 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

  • 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 Payables- Trial Balance

    Hi
    Oracle R12
    The Accounts Payables Trial Balance report is working fine when the liability accounts are defined as a same value in 2 places
    1 Supplier --> Entry --> Accounting
    2 Setup --> Options--> Financial Options
    Upon modifying the liability account for a supplier at
    Supplier --> Entry --> Accounting
    the account Payables Trial Balance report is not dispalying the invoice number which is not paid.
    Note:
    The same entry is posted into GL.
    Setps followed
    1. created a invoice
    2. Validaed the invoice
    3. created accounting
    4. Submitted the Accounts Payables Trial Balance report
    Any suggestions on this will be helpful
    Regards
    Yram

    Looks like similar issues as Re: Where I setup the parameters of the Accounts Payable Negative Supplier???
    By
    Vamsi

  • Accounts Payables Trial Balance Report

    Can anyone tell me what report (.rdf) the spawn program APXRTB (Accounts Payables Trial Balance Report)uses.
    Thanks

    Accounts Payable Trial Balance Report using APXRTB program to run the Accounts Payable Trail Balance report by Date and Sort by vendor.
    Hemant Shah
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sean Collard ([email protected]):
    Can anyone tell me what report (.rdf) the spawn program APXRTB (Accounts Payables Trial Balance Report)uses.
    Thanks <HR></BLOCKQUOTE>
    null

  • R12(Payments)--Accounts Payable Trial Balance Report, Need Info.

    Hi All,
    We are trying to use the report Accounts Payable Trial Balance Report.
    This is an XML Report in R12 now and has 4 different RTF Templates.
    Can you please explain me how this report can be used in R12 and how does it selects the RTF template( from 4 different templates present) at run time.?
    Thanks,

    Hi,
    In 11i we use to have a parameter to give the report in Summary or Detail
    In R12 we have 4 options in templates to have Summary by Account, Summary by Supplier, Detail by Account and Detail by Supplier.
    Report will not select the template automatically. The user needs to select the template before submitting the report.
    Hope it helps
    Regards,
    Sridhar

  • Accounts Payable Trial Balance (including Cash Discount)  - printer

    Hello All,
    User is saying that when trying to run the Accounts Payable Trial Balance (including Cash Discount), they do not get the list of printers to choose from.
    How to add a printer so that it shows up while trying to run a report?
    Please help.
    Cheers,
    Chiru

    hi
    using system administrator module you can setup the printers.
    Regards,
    Srikanth

  • What is the Tcode for Account Statement

    Hi Gurus,
    What is Tcode for Accounts STatement. Please help, i have some work.
    regs
    rams

    sorry , F.27
    Message was edited by: Chandrasekhar Jagarlamudi

  • What is " The Request for account "iCloud" failed. The server responded with "400" to operation CalDAVUpdateShareesQueuableOperation

    My wife and I have synced calendars that have stopped working.  She gets my updates but I dont get hers, when we try to sync on her laptop we get this message.

    Hello Kirkdasilva,
    It sounds like one of your computers is not syncing correctly to a shared iCloud calendar. I recommend the troublehsooting from the article named:
    iCloud: Troubleshooting iCloud Calendar
    http://support.apple.com/kb/ts3999
    Try each of these steps, testing after each to see if the issue is resolved:
    Make sure that you are using OS X Lion v10.7.5 or later. Learn how to verify the version of OS X you are using.
    Make sure your computer is online. Attempt to view www.apple.com. If you can't connect to the Internet, your iCloud calendars and events will not update in Calendar or iCal. Learn how to troubleshoot your Internet connection.
    Open a secure website to test if ports 80 and 443 are accessible. Calendar requires port 443 access to iCloud in order to push and fetch updates to and from the iCloud Calendar servers.
    Choose Apple () menu > System Preferences, then click the icon for iCloud. Make sure that you're signed in to the same iCloud account that you're using on your other supported devices.
    Make sure that you enter and update calendar information in the iCloud section of Calendar or iCal. Only calendars and events in the iCloud section of the Calendar or iCal Calendar list are updated in iCloud. Both Calendar and iCal for Mac support the display of and interaction with multiple accounts and datastores, such as iCloud, On My Mac, Exchange, and Google. This makes it easy to create or modify events or calendars in a section of Calendar or iCal that may not be updating iCloud. Learn more about moving local calendars to iCloud.
    In some cases, you may find that you have data duplicated in both the local On My Mac and the iCloud sections of Calendar or iCal. Learn more about resolving this issue.
    You can make the iCloud calendar your default calendar for all new events. In Calendar, choose Calendar > Preferences, then click General. In iCal, choose iCal > Preferences, then click General. Locate the Default Calendar setting and choose one of the Calendars under the iCloud heading. Close the Preferences window to save the change.
    Turn iCloud Calendars off and back on:
    Quit Calendar (or iCal).
    Choose Apple () menu > System Preferences, then select iCloud.
    Deselect the checkbox next to Calendars (or Calendars & Reminders in Mountain Lion and Lion).
    Close System Preferences and wait about a minute.
    Open System Preferences and select iCloud.
    Replace the checkmark next to Calendars (or Calendars & Reminders in Mountain Lion and Lion).
    Close System Preferences.
    Open Calendar (or iCal) and test to see if the issue is resolved.
    Restart your computer. This may sound simple, but it reinitializes your network and application settings and can frequently resolve issues.
    Thank you for using Apple Support Communities.
    Take care,
    Sterling

  • AP Error (Accounts Payable Trial Balance)

    The payment's status is negotiable,but it still show in AP-Trial balance reporter,and when run the Payables Accounting Process,it show Accounting Entries Exceptions
    the context as follows,how to deal wirh it ? thank you in advance
    Payables accounting process report Log as follows:
    Oracle Payables: Version : 11.5.0 - Development
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APACCENG module: Payables Accounting Process
    Current system time is 12-DEC-2008 15:59:35
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_JOURNAL_CATEGORY='Payments'
    P_SUB_TRANSF_TO_GL='N'
    P_SUB_JOURNAL_IMP='N'
    P_VALIDATE_ACCTS='Y'
    P_SUMMARIZE_FLAG='N'
    P_COMMIT_CYCLE='50'
    P_ORG_ID='83'
    P_DEBUG_SWITCH='N'
    P_TRACE_SWITCH='N'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG Environment Variable is :
    American_America.UTF8
    MSG-00002: Check that AX is not installed before calling the accounting engine
    MSG-00003: AX is not installed, Calling the accounting engine
    MSG-00004: After the call to AP_Accounting_Engine_Pkg.Do_Accounting
    Report Builder: Release 6.0.8.20.2 - Production on Fri Dec 12 15:59:35 2008
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Enter Username:
    Start of log messages from FND_FILE
    Starting to account all the events created ...
    Cannot Account for void ofUOB SGD bank account's check number 568911 because som
    e prior event is NOT accounted.
    Finished accounting all the events created. Submitting Accounting Entry Report..
    End of log messages from FND_FILE
    and the check event type is PAYMENT CANCELLATION, the field cannot_account_flag='Y' in ap_accounting_events_all , don't know how to do that?
    Accounting Entries Exceptions Report
    Journal Category: Payments
    Accounting
    Date Event Type Supplier Name Document Number Voucher Number Exception
    Line <------- Entered Curr -------> <------- Accounted Curr ------>
    Num Line Type Account Curr DR CR DR CR
    23-JAN-06 Payment Adjustment Compart Asia Pte Ltd 568911 Fatal Error.
    1 Rounding 02.00000.809100.0000 SGD 0.00 433.48
    Edited by: user638343 on Dec 10, 2008 12:18 AM
    Edited by: user638343 on Dec 12, 2008 12:38 AM

    1. Take List of all applied Invoices of the Payment
    2. Check the status of those invoices. Each one of them should be in status 'Accounted'
    3. If not,Identify the problem with the Invoice and Clear that. The problem may be Invoice adjustment(adj to Paid invoices allowed).
    4. Try running Create Accounting again.
    5. If the problem persists still, it conveys us that the Transactions were struck in loop and can be resolved only by using UPDATE command.
    6. Contact Oracle for Data fix
    Regards,
    Sridhar

  • R12 Accounts Payable Trial balance is reporting incorrectly (urgent)

    the trial balance is reporting penny amounts on invoices that are fully paid how do I correct this issue

    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 Trial Balance in R-12 report rows don't balance

    Hi,
    Background: I am in a municipal government using encumbrance accounting in R-12.
    In 11i the AP Trial Balance (APTB) always balanced line for line when comparing the ORIGINAL AMOUNT to the AMOUNT REMAINING. This is not always the case in R-12.
    In R-12, if the invoice involves multiple accounting distributions that cross funds, then the ORIGINAL AMOUNT column shows invoice totals (e.g. three rows of $30 each). The AMOUNT REMAINING column shows line amounts (e.g. three rows of $10 each). This results in these three lines being out of balance.
    Is this by design in R-12, or is it a glitch, or is this something that is only happening to my instance?
    Thanks for your assistance!

    Hi,
    We also faced the same problem and approached Oracle support.
    They provided us with a patch and datafix. Better raise an SR and get specific support.
    Regards,
    Sridhar

  • Accounts Payable Trial Balance Report does not include a Credit Memo amount

    Hello Experts,
                        We are having an issue with Ap Trial Balance report not displaying a credit memo amount whereas Gl Balance shows that amount. The Credit Memo has a August invoice date and September pay date but it’s not showing up in the trial balance for August. The acconting date on the Creditmemo is in august.
    Thanks in advance for any help.

    Hi,
    We also faced the same problem and approached Oracle support.
    They provided us with a patch and datafix. Better raise an SR and get specific support.
    Regards,
    Sridhar

Maybe you are looking for

  • Lightroom using only one core?

    I am new to Lightroom, and a very ametuer photographer. I'm running 3.4.1 on a Win7 machine. I'm discovering that it is a very resource intensive program, and realizing that I may need to upgrade my computer to even utilize it. Before I do that thoug

  • No FB status updates in contacts

    I upgraded to ICS few days back and I'm liking it. But there is this problem that even after syncing my facebook account, I dont get the option of showing status updates in contacts. That option is grayed out. Any solution? Also, some of my contacts

  • When I import .mov file to Idvd I lose audio in certain clips

    The .mov file I can paly everything fine thru quicktime but on import to Idvd I lose audio on some of the clips. Why? all the boxes are checked on the I movie.

  • Mouse freezes in login window (reproducible)

    Hi, There are numerous "mouse freezes" topics but I didn't see this exact one. I'm using a ms usb/wireless mouse. It worked fine pre-leopard/tiger. If I continuously move my mouse after I select the "Login Window ..." (from user name of menu bar), th

  • Forgot administrative password, how to regain administrative rights

    Administrate rights have been set up on computer and password was lost, need to get password changed so i can get into computer