Re: AP_CHECKS_ALL

Hi All,
Can any one please help me out how to differentiate between payments made and yet to be made from AP_CHECKS_ALL. We are using 11.5.10.2 and Database version is 10g.
Thanks,
jaya

Try this:
SELECT NVL(pvsa.attribute10, 'NONE_NEEDED') supplier_paymode_id
,aca.check_number
,TRIM (TO_CHAR (aca.amount, '99999999999.99')) amount
,pv.vendor_name
,pv.segment1
,pvsa.vendor_site_code
,pvsa.address_line1
,pvsa.address_line2
,pvsa.address_line3
,pvsa.city
,pvsa.state
,pvsa.zip
,pvsa.country
,NVL(pvsa.ATTRIBUTE12,'N') divert_code
FROM po_vendors pv
,po_vendor_sites_all pvsa
,ap_checks_all aca
,ap_invoices_all ai
,ap_invoice_payments_all aip
WHERE 1 = 1
AND aca.request_id is null
AND pv.vendor_id = pvsa.vendor_id
AND aca.vendor_id = pv.vendor_id
AND aca.vendor_site_id = pvsa.vendor_site_id
AND aca.org_id = p_organization_id
AND aca.check_id =aip.check_id
and aca.void_date is null
and aip.invoice_id=ai.invoice_id;
Can you clarify as to what you mean by:
"Payment Made" and "Payment yet to be made"?
My understanding is, a record in AP_CHECKS_ALL with void_date of null as good as a payment made.

Similar Messages

  • Bank_account_id in ap_checks_all table in R12

    All,
    I have a requirement to fetch details from 'ap_bank_accounts_all' and 'ap_checks_all' tables. Till 11i, the field 'bank_account_id' acts as a relation key between these two tables. In R12, the Etrm says the same field is 'No longer used' in 'ap_checks_all' table. If it is the case, how do we relate these two tables? Any input is highly appreciated.
    Regards,
    Sen

    All,
    I found the table ap_checks_all has a foreign key 'ap_checks_all.CE_BANK_ACCT_USE_ID' to relate to the 'CE_BANK_ACCT_USES_ALL' table. When I refer the etrm for the 'CE_BANK_ACCT_USES_ALL' table, there is no key field defined for ap_checks_all table. So I assume to use the field 'CE_BANK_ACCT_USES_ALL.ce_bank_acct_use_id' . Since its not defined in etrm, I just want to confirm whether this is the field to relate these two tables?
    Please let me know.
    my where condition goes like this:
    "where CE_BANK_ACCT_USES_ALL.ce_bank_acct_use_id = ap_checks_all.CE_BANK_ACCT_USE_ID"
    Regards,
    Sen

  • What is the difference between payment_method_code,payment_method_lookup_code  in ap_checks_all table ?

    Hi All,
    Could you explain me what is the difference between payment_method_code & payment_method_lookup_code  in ap_checks_all table.
    Is both the column store same values ?
    Regards,
    Uva

    Hi Prathima,
    In tech lingo:
    Payment_num is the same as AP_INVOICE_PAYMENTS_ALL.payment num.
    Check_number is same as check_number in AP_CHECKS_ALL -> which also has checkrun_name used in payment batch You can get to AP_CHECKS_ALL by using check_id in AP_INVOICE_PAYMENTS_ALL
    Raman.

  • AP_CHECKS_ALL API

    We are going to update VENDOR_ID and VENDOR_SITE_ID in AP_CHECKS_ALL table. (EBS 11.5.10.2)
    To be cautious, i want to check if there is a standard API to use? or is it ok just to update the columns?
    Thanks in advance!

    Thanks Hussein,
    I've updated the SR and they mentioned there is no API for AP_CHECKS_ALL table.
    I've also raised a question regarding if it's possible to direct update on VENDOR_ID and VENDOR_SITE_ID from NULL to a valid number.
    As the result, they can't endorse any customization and it's outside of the scope of support. ;)
    If anyone has experience to share on updating VENDOR_ID and VENDOR_SITE_ID columns in AP_CHECKS_ALL table that would be grateful.

  • AP_CHECKS vs AP_CHECKS_ALL

    Hi,
    I am a newbie, I do not get any data when I query the AP_CHECKS table from user APPS, but get results when I query the AP_CHECKS_ALL table (from the same user). I understand there is a security profile attached to the AP_CHECKS table. Can anyone please explain in detail how this works or point me in the direction of a document that might help.
    Thanks in advance

    Hi,
    What is the application release?
    Please see these docs.
    Note: 437119.1 - How to set the Organization Context in R12?
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 209185.1 - Setting the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    For details about Oracle Apps objects, please refer to eTRM website.
    eTRM
    http://etrm.oracle.com
    Thanks,
    Hussein

  • R12 - how does iExpenses join to ap_checks_all

    Hello,
    I have a piece of SQL that returns iExpenses details - mileage etc.
    This is fine until I add the check date and then I am returning multiples.
    The join I have currently is -
    AP.AP_EXPENSE_REPORT_HEADERS_ALL.invoice_num = ap.ap_invoices_all.invoice_num
    ap_invoices_all.invoice_id = ap.invoice_payments_all.invoice_id
    ap.invoice_payments_all.check_id = ap_checks_all.check_id
    Is there something missing/wrong...?
    Essentially what the user needs is a report by check date for the expenses.
    Thanks
    Rachael

    R12 does have the ap_expense_report_headers_all.vouchno column. You can join the ap_expense_report_headers_all.vouchno with ap_invoices_all.invoice_id.
    Alternatively, you can also use the following join, ap_invoices_all.PRODUCT_TABLE = 'AP_EXPENSE_REPORT_HEADERS_ALL' AND ap_invoices_all.REFERENCE_KEY1 = ap_expense_report_headers_all.report_header_id.
    However, I would suggest use the invoice_id and vouchno join.
    Thanks,
    Sai.

  • API to insert in payment (AP_CHECKS_ALL)

    Hi ,
    Will you guide me how to get the API specialized to insert in payment tables R12
    thanks

    Please see iREP website -- http://irep.oracle.com/index.html
    If this does not help, I would suggest you log a SR.
    Thanks,
    Hussein

  • Payments and vendor invoices

    Kindly help on the following situation..
    1> Payments made to the vendor invoices
    Which back end tables do I need to hit to find out the payment details made to vendor invoices were in time or not( over dues). I need to do an analyses report in various buckets of time on when the vendor invoices were paid
    Thanks in advance,
    Regards
    Harsh

    The tables will be AP_CHECKS_ALL and AP_INVOICE_PAYMENTS_ALL. For the date when the payment was made you need to see which date column is relevant for your case.
    Thanks

  • URGENT -- Linking GL to AR & AP for custom report

    Hello All,
    I am having trouble linking GL tables to AR and AP tables for a customized Account Analysis report.
    I have an initial query but the values for Accounted_DR/CR and Entered_DR/CR do no seem to be correct, so it is possible that the links I have are possibly wrong.
    Any help would be greatly appreciated.
    Here is my initial query:
    SELECT DISTINCT NVL(src.user_je_source_name, '**********') SOURCE,
    NVL(cat.user_je_category_name, '**********') CATEGORY,
    jeh.NAME JOURNAL_NAME,
    jeb.NAME BATCH_NAME,
    jeh.period_name PERIOD_NAME,
    gcc.segment1 CO,
    gcc.segment2 COST_CENTER,
    gcc.segment3 ACCOUNT,
    gcc.segment4 SECTOR,
    gcc.segment5 AC_TYPE,
    gcc.segment6 PROJ,
    gcc.segment7 FUTURE,
    (gcc.segment1 || '-' || gcc.segment2 || '-' || gcc.segment3 || '-' || gcc.segment4 || '-' || gcc.segment5 || '-' || gcc.segment6 || '-' || gcc.segment7) ACCOUNT1,
    jel.accounted_dr ACCOUNTED_DR,
    jel.accounted_cr ACCOUNTED_CR,
    jel.entered_dr ENTERED_DR,
    jel.entered_cr ENTERED_CR,
    jel.description LINE_DESCRIPTION,
    (SELECT ffv.description
    FROM FND_FLEX_VALUES_VL ffv
    WHERE ffv.flex_value = gcc.segment3) ACCOUNT_DESCRIPTION,
    (SELECT ffv.description
    FROM FND_FLEX_VALUES_VL ffv
    WHERE ffv.flex_value = gcc.segment4) SECTOR_DESCRIPTION,
    ap.vendor_name VENDOR_NAME,
    ca.check_number CHECK_NUMBER,
    ca.check_date CHECK_DATE,
    aia.invoice_num INVOICE_NUM,
    aia.invoice_date INVOICE_DATE,
    jeh.posted_date POSTED_DATE,
    /*(SELECT DISTINCT awt.NAME
    FROM
    ap_invoice_lines_all ail,
    ap_awt_groups awt
    WHERE aia.invoice_id = ail.invoice_id
    AND ail.awt_group_id = awt.group_id
    AND rownum=1) TAX_NAME*/
    FROM gl_je_headers jeh,
    gl_je_lines jel,
    gl_je_batches jeb,
    gl_je_sources src,
    gl_je_categories cat,
    gl_code_combinations gcc,
    fnd_flex_values_vl ffv,
    gl_import_references gli,
    xla.xla_ae_lines xal,
    xla.xla_ae_headers xah,
    xla.xla_events xe,
    xla.xla_transaction_entities xte,
    apps.ap_invoices_all aia,
    ap.ap_suppliers ap,
    ap_invoice_payments_all aipa,
    ap_checks_all ca
    WHERE
    jeh.je_header_id = jel.je_header_id
    AND jeh.je_batch_id = jeb.je_batch_id
    AND jeh.je_source = src.je_source_name
    AND jeh.je_category = cat.je_category_name
    AND jel.code_combination_id = gcc.code_combination_id
    AND gcc.segment4 = ffv.flex_value
    AND jeh.je_batch_id = gli.je_batch_id
    AND jeh.je_header_id = gli.je_header_id
    AND jel.je_line_num = gli.je_line_num
    AND (NVL(gli.reference_9, 1) = 1 OR gli.reference_9 >0)
    AND gcc.code_combination_id = xal.code_combination_id
    AND gli.gl_sl_link_id = xal.gl_sl_link_id
    AND gli.gl_sl_link_table = xal.gl_sl_link_table
    AND xal.application_id = xah.application_id
    AND xal.ae_header_id = xah.ae_header_id
    AND xah.application_id = xe.application_id
    AND xah.event_id = xe.event_id
    AND xe.application_id = xte.application_id
    AND xe.entity_id = xte.entity_id
    AND xte.source_id_int_1 =aia.invoice_id
    AND aia.vendor_id = ap.vendor_id
    AND aia.invoice_id = aipa.invoice_id(+)
    AND aipa.check_id = ca.check_id(+)
    AND jel.status || '' = 'P'
    AND jeb.average_journal_flag = 'N'
    AND jeh.period_name = :P_PERIOD_NAME
    --AND gcc.CODE_COMBINATION_ID=NVL(aia.ACCTS_PAY_CODE_COMBINATION_ID,gcc.CODE_COMBINATION_ID) /*link for GL and AP*/
    --AND gcc.CODE_COMBINATION_ID=NVL(aia.ACCTS_PAY_CODE_COMBINATION_ID,gcc.CODE_COMBINATION_ID) /*link for GL and AP*/
    ORDER BY ACCOUNT1,
    SOURCE ,
    CATEGORY,
    jeb.NAME
    Regards,
    Jovee
    Edited by: JoveeL on May 23, 2012 5:19 PM

    Hello again,
    I am still having trouble linking the data from GL. Specifically GL_JE_LINES and AP/AR values.
    Currently trying to link invoice details to GL details and Accounted CR/DR do not match up with the invoices and are sometimes repeating for different invoices.
    Upon checking, the values for GJ_JE_LINES repeat when I include the invoice details, but if I comment them out, they are okay.
    I suspect that there is something wrong with my link between the XLA and GL tables, but I could not narrow it down.
    I have tried looking it up in Google but there is nothing I found that is remotely helpful.
    Any helpful advice would be greatly appreciated.
    Regards,
    Jovelyn
    Edited by: JoveeL on May 23, 2012 5:15 PM

  • AP Payment Batch & DFF data Questions

    Hi,
    I have few issues faced by one of our clients.
    1- After a payment batch is selected and build, In ‘Actions’ the ‘Print Preliminary Register’ and ‘Confirm Payment Batch’ is enabled and processed by clicking ‘OK’.
    But due to some error the program was terminated . But output file with ‘0’ bytes is still created.
    How to avoid creating a '0' bytes output file whenever error occurs..?
    2- . DFF customized to capture ‘Message to Beneficiary ‘ in the payment batch window DFF. This DFF can capture 140 alpha numeric characters. But in output this seems to be truncated and not showing full values.
    Would it be because of the font size..? How to extend the data format of this field and what is the maximum we can set..?
    3- If the Remittance amount havng more decimal point like 555.555 gets truncated to 555.55 in the out file send to bank.
    Why truncated , can we set the rounding option to up/down..?where is it set..?
    Can anybody throw some light..?
    Thanks,
    Jayasree

    Use the reference columns i.e REFERENCE_1 to REFERENCE_10 of gl_je_lines table to join the AP, AR tables with the GL tables like the below query.
    SELECT gjl.reference_1,
    gjl.reference_2,
    gjl.reference_4,
    gjl.reference_5,
                        gjl.reference_10,
    aia.doc_sequence_value,
    aia.invoice_type_lookup_code,
    aia.description invoice_description,
    ada.prepay_distribution_id,
    gjl.description,
    aca.doc_sequence_value payment_doc_seq_number,
                        ada.invoice_id,
    aia.doc_sequence_value
    FROM gl.gl_je_headers gjh,
              gl.gl_je_lines gjl,
    ap.ap_checks_all aca,
    ap.ap_invoices_all aia,
    ap.ap_invoice_distributions_all ada
    WHERE gjl.je_header_id = gjh.je_header_id
    AND aia.invoice_id(+) = gjl.reference_2
    AND ada.invoice_id(+) = gjl.reference_2
    AND ada.invoice_id(+) = gjl.reference_3
    AND aca.check_id(+) = gjl.reference_3;
    Thanks,
    Lokesh.

  • AP Payment to Generl Ledger (11i)

    Dear All,
    if I know the payment number and the payment has been transfered to general ledger, How can I get the journal batch name and journal name of the payment journal? Could someone comment?
    Thanks & Best Regards,
    Jerome

    ap_checks_all.check_id -> ap_invoice_payments_all.check_id -- is for payment creation and cancellation
    ap_invoice_payments_all.accounting_event_id -> ap_ae_headers_all.accounting_event_id -- is for payment creation and cancellation
    ap_checks_all.check_id -> ap_payment_history_all.check_id -- is for payment clearing and unclearing
    ap_payment_history_all.accounting_event_id -> ap_ae_headers_all.accounting_event_id -- is for payment clearing and unclearing
    ap_ae_headers_all.ae_header_id -> ap_ae_lines_all.ae_header_id
    ap_ae_lines_all.gl_sl_link_id,'APECL' -> gl_import_references.gl_sl_link_id,gl_sl_link_table
    gl_import_references.je_batch_id -> gl_je_batches.je_batch_id
    gl_import_references.je_header_id,je_line_num -> gl_je_lines.je_header_id,je_line_num
    Let me know, if you are using AX instead of Stand AP accounting for Payables.
    By
    Vamsi
    Edited by: Vamsi Kasina on Jun 20, 2009 8:45 PM

  • Count on a header table including the line data also in the query

    Hi,
    I have a requirement to develop a report which shows the metrics on supplier. I need to find the total PO's for this supplier that are matched to invoice
    report has to have toatl#ofpo's, #invoice, total_inv_amt and total_po_amt, total_tax_amt with item numbers also with in a time period. So my question is how can we achieve this I have this below query whih gives all the data but not sure how to get the counts with this. Any ideas
    SELECT hou.name,
    pov.vendor_name,
    api.invoice_num,
    api.invoice_id,
    invoice_date,
    gl_date,
    api.invoice_currency_code,
    apid.line_type_lookup_code inv_line_type,
    apid.description inv_description,
    apid.amount,
    apid.unit_price inv_price,
    amount_paid,
    apt.name payment_terms,
    payment_status_flag,
    apc.check_number,
    apc.check_date,
    poh.segment1 po_num,
    poh.creation_date po_creation_date,
    por.creation_date po_rel_creation_date,
    por.release_num,
    pol.line_num,
    mc.segment1 category_name,
    (select msi.segment1 item_num
    from inv.mtl_system_items_b msi
    where msi.inventory_item_id = pol.item_id
    and msi.organization_id = 1) item_num,
    pol.item_description po_item_description,
    poll.need_by_date,
    pol.unit_price po_price,
    poll.quantity,
    poll.quantity_cancelled,
    poll.quantity_received,
    poll.quantity_billed
    FROM ap.ap_invoices_all api,
    hr_operating_units hou,
    ap_terms_tl apt,
    ap.ap_invoice_distributions_all apid,
    po.po_distributions_all pod,
    po.po_vendors pov,
    po.po_headers_all poh,
    po.po_lines_all pol,
    po.po_line_locations_all poll,
    po.po_releases_all por,
    ap.ap_checks_all apc,
    ap.ap_invoice_payments_all apip,
    -- inv.mtl_system_items_b msi,
    apps.mtl_categories_b mc
    WHERE apt.term_id = api.terms_id
    AND hou.organization_id = api.org_id
    AND TRUNC (poh.creation_date) BETWEEN :p_start_date AND :p_end_date
    AND api.invoice_id = apid.invoice_id
    AND apid.po_distribution_id = pod.po_distribution_id(+)
    AND pov.vendor_id = api.vendor_id
    AND poh.po_header_id(+) = pod.po_header_id
    AND poll.line_location_id (+) = pod.line_location_id
    AND pol.po_line_id (+) = pod.po_line_id
    AND apip.check_id = apc.check_id(+)
    AND apip.invoice_id(+) = api.invoice_id
    AND mc.category_id(+) = pol.category_id
    AND por.po_release_id (+) = pod.po_release_id
    AND pov.vendor_id = 1

    Hi,
    The sounds like a job for the COUNT function. That's all I can say with any confidence based on the information you gave.
    If you want to see, on each row of output, how many of the rows with the same value of api.invoice_num have a value for poh.po_header_id, the you can use
    COUNT (poh.po_header_id) OVER (PARTITION BY api.invoice_num)   AS po_cntI could give much better directions if you could post a little sample data (CREATE TABLE and INSERT statements), and the results you want from that data. I realize that's hard with so many tables. Even seeing some of your current output, and the desired output, might help.

  • 11i to R12 Upgrade- Doubt in XLA tables

    Hi All,
         I am migrating the 11i AP reports to R12..
         In the below query I have commented the obselete and changed 11i columns & tables , but I wasnt able to find the alternate column in WHERE clause for 2 columns in xla_ae_lines and 1 in xla_ae_headers.
         I have marked the ones for which I didn't find the alternate column in red
    SELECT  c.check_id,
            to_char(c.check_number) check_num ,
            i.invoice_id,
            i.invoice_num,
            c.amount,
            ael.accounted_dr accounted_dr,
            ael.entered_dr entered_dr,
            &p_flexdata4 c_flexdata4,
            aeh.accounting_date check_date,
            c.doc_sequence_value voucher_number,
            --ael.ae_line_type_code acct_line_type,
            ael.accounting_class_code acct_line_type,
            l3.displayed_field acct_line_type_name,
            ael.code_combination_id code_combination_id,
            ael.description comments ,
            v.segment1 vendor_num,
            v.vendor_name vendor_name,
            vs.vendor_site_code third_party_sub_name,
            c.check_date trx_date ,
            c.check_number trx_number_n,
            c.bank_account_name bank_account_name,
            abb.bank_name,
            aba.bank_account_num
    FROM 
          --ap_bank_accounts_all aba,
          --ap_bank_branches abb,
          ce_bank_accounts aba,
          ce_bank_branches_v abb,
          ap_invoice_distributions_all d,
          ap_invoices_all i,
          ap_invoice_payments_all p,
          ap_checks_all c,
          --ap_accounting_events_all ae,
          --ap_ae_headers_all aeh,
          --ap_ae_lines_all ael,
          xla_events ae,
          xla_ae_headers aeh,
          xla_ae_lines ael,
          xla_transaction_entities xte,
          ce_statement_lines sl,
          --ce_statement_headers_all sh,
          ce_statement_headers sh,
          ce_statement_reconcils_all csr,
          --po_vendor_sites_all vs,
          --po_vendors v,
          --ap_tax_codes AT,
          ap_supplier_sites_all vs,
          ap_suppliers v,
          zx_lines zl,
          rcv_shipment_headers rsh,
          po_releases_all pr,
          po_headers_all ph,
          po_distributions_all pd,
          rcv_transactions rct,
          gl_je_categories jc,
          gl_daily_conversion_types glct,
          fnd_document_sequences fd,
          fnd_document_sequences fd2,
          ap_lookup_codes l1,
          ap_lookup_codes l2 ,
          ap_lookup_codes l3 ,
          ap_lookup_codes l4 ,
          ap_lookup_codes l5 ,
          ap_lookup_codes l6,
          ap_lookup_codes l7,
          ap_lookup_codes l8 ,
          ap_lookup_codes l9 ,
          ap_lookup_codes l10 ,
          ap_lookup_codes l11 ,
          ap_lookup_codes l12,
          ap_lookup_codes l13,
          gl_code_combinations gcc1
    WHERE c.bank_account_id =aba.bank_account_id
          --AND aba.bank_branch_id =abb.bank_branch_id
          AND aba.bank_branch_id =abb.branch_party_id
          AND ael.code_combination_id =gcc1.code_combination_id(+)
          AND l1.lookup_code = c.payment_method_lookup_code
          AND l1.lookup_type = 'PAYMENT METHOD'
          AND l2.lookup_code(+) = d.line_type_lookup_code
          AND l2.lookup_type(+) = 'INVOICE DISTRIBUTION TYPE'
          --AND l3.lookup_code = ael.ae_line_type_code
          AND l3.lookup_code = ael.accounting_class_code
          AND l3.lookup_type = 'AE LINE TYPE'
          --AND l4.lookup_code = aeh.gl_transfer_flag
          AND l4.lookup_code = aeh.gl_transfer_status_code
          AND l4.lookup_type = 'POSTING STATUS'
          AND l5.lookup_code = ae.event_type_code
          AND l5.lookup_type = 'EVENT TYPE'
    --AND l6.lookup_code(+) = aeh.accounting_error_code
          AND l6.lookup_type(+) = 'ACCOUNTING ERROR TYPE'
    --AND l7.lookup_code(+) = ael.accounting_error_code
          AND l7.lookup_type(+) = 'ACCOUNTING ERROR TYPE'
          AND l8.lookup_code = 'Payments'
          AND l8.lookup_type = 'POSTING CATEGORY'
    --AND l9.lookup_code(+) = ael.gl_transfer_error_code
          AND l9.lookup_type(+) = 'POSTING EXCEPTIONS'
          AND l10.lookup_code = 'EVENT'
          AND l10.lookup_type = 'VIEW_ACCOUNTING'
          AND l11.lookup_code = 'LINE'
          AND l11.lookup_type = 'VIEW_ACCOUNTING'
          AND l12.lookup_code = 'APPLIED_TO'
          AND l12.lookup_type = 'VIEW_ACCOUNTING'
          AND l13.lookup_code = 'BANK_STATEMENT'
          AND l13.lookup_type = 'VIEW_ACCOUNTING'
          --AND AT.tax_id(+) = ael.tax_code_id
          AND i.invoice_id = zl.trx_id(+)
          AND zl.entity_code = 'AP_INVOICES'
          --AND jc.je_category_name = aeh.ae_category
          AND jc.je_category_name = aeh.je_category_name
          AND rsh.shipment_header_id = rct.shipment_header_id
          AND d.rcv_transaction_id = rct.transaction_id
          AND pr.po_release_id(+) = pd.po_release_id
          AND ph.po_header_id(+) = pd.po_header_id
          AND pd.po_distribution_id(+) = d.po_distribution_id
          AND ael.currency_conversion_type = glct.conversion_type(+)
          AND c.doc_sequence_id = fd.doc_sequence_id
          AND sh.doc_sequence_id = fd2.doc_sequence_id
          --AND ael.third_party_sub_id = vs.vendor_site_id
          --AND ael.third_party_id = v.vendor_id
          AND ael.party_site_id = vs.vendor_site_id
          AND ael.party_id = v.vendor_id
          AND i.invoice_id(+) = p.invoice_id
          --AND c.check_id = ae.source_id
          --AND ae.source_table = 'AP_CHECKS'
          --AND ae.accounting_event_id = aeh.accounting_event_id
          --AND aeh.ae_header_id = ael.ae_header_id
          AND i.invoice_id = xte.source_id_int_1
          AND xte.entity_code = 'AP_CHECKS'
          AND aeh.ae_header_id = ael.ae_header_id
          AND aeh.application_id = ael.application_id
          AND aeh.event_id=ae.event_id
          AND aeh.application_id = ae.application_id
          AND ae.entity_id=xte.entity_id
          AND ae.application_id = xte.application_id
          AND sl.statement_header_id = sh.statement_header_id(+)
          AND csr.statement_line_id = sl.statement_line_id(+)
          AND c.check_id = csr.reference_id(+)
          AND csr.reference_type = 'PAYMENT'
          AND csr.current_record_flag(+) = 'Y'
          AND decode(ael.source_table,'AP_INVOICE_PAYMENTS', ael.source_id,NULL) = p.invoice_payment_id(+)
          AND decode(ael.source_table,'AP_INVOICE_DISTRIBUTIONS', ael.source_id,NULL) = d.invoice_distribution_id(+)
          AND ael.accounted_dr IS NOT NULL
          AND (v.segment1 = :p_vendor_code
          OR :p_vendor_code IS NULL)
          AND (v.vendor_name = :p_vendor_name
          OR :p_vendor_name IS NULL)
          AND (abb.bank_name = :p_bank_name
          OR :p_bank_name IS NULL)
          AND (c.currency_code = :p_currency
          OR :p_currency IS NULL)
          AND (c.doc_sequence_value = :p_doc_sequence_value
          OR :p_doc_sequence_value IS NULL)
          AND (i.pay_group_lookup_code = :p_paygroup
          OR :p_paygroup IS NULL)
          AND ( c.check_date IS NULL
          OR trunc(c.check_date) = nvl(:p_payment_date, trunc(c.check_date)))
    Thanks and Regards,
    Madonna

    Hi Cheryl,
         Thank you for the reply..
         It would be nice if you could illustrate with a sample code..
    Thanks and Regards,
    Madonna

  • Cash Management - AutoRecon without errors, but still unreconciled?

    Hi guys,
    Pretty interesting question:
    I have multy period's bank file (transactions for 3 accounting periods), all settings are according the manual on AP and CM sides done.
    Statement's Import finished without errors, AutoReconciliation finished without errors, but Statement still have status UNRECONCILED and on AP side transactionsin ap_checks_all table still have STATUS_LOOKUP_CODE as NEGOTIABLE, and CLEARED_AMOUNT, CLEARED_DATE, REQUEST_ID, CLEARED_ERROR_AMOUNT and ACTUAL_VALUE_DATE fields are still empty.
    The periods were OPEN at the time of a run.
    Only when I go to the Statement in CM and open the lines and reconcile them one by one it works.
    Please advise, any help will be appreciated!
    Bok

    Hi,
    Step: 1
    Check the System parameters Auto Reconciliation Setups
    Step: 2
    Check the Bank Statment line has Bank Transaction Code attached
    Step: 3
    Check the Document number given in Bank Statement line is matching exactly with the Payment/Receipt
    Step: 4
    Check the Bank Code attached to line is same as the available line you are trying to match i.e. RCT to Receipt, PMT to Payment etc
    Step: 5
    Assign MO: Security Profile Option to your user id
    Run Autoreconciliation Program now. The issue should be resolved.
    Regards,
    Sridhar

  • Bank Statement Interface update program for R12

    Hi
    Working on a custom pgm which runs like below
    1.seeded bank statement loader pgm
    2. custom pgm updates the CE_STATEMENT_HEADERS_INT and
    CE_STATEMENT_LINES_INTERFACE tables
    3.seeded Bank Statement Import Program
    Anyone wrote a custom pgm(like in step 2) please let me know how to join
    ap checks all and CE_BANK_ACCOUNTS tables.
    In 11i there is ap bank accounts table and it has attribute2 column..Does 'atribute2' serve the same in R12 CE BANK ACCOUNTS TABLE also?
    Also would like to know how to join between
    --ar_batches_all and ce_bank_accuonts_all tables
    --ap_inv_selection_criteria_all isc and ap_checks_all c and CE_BANK_ACCOUNTS
    please advise
    kp
    Edited by: user12220718 on Feb 25, 2011 9:26 AM

    Hi Tan,
    Based on the external transaction type, you will link to the posting rules. Yes there are so many subfields, available if you see 61 fields, it tells you about the payment you have received/made, it gives the line item details of a particular transaction.
    My sincere request is dont look at the bank statement and do the configuration. Do the configuration first and then SAP provides one program RFEBKATX. Using this program you can create a bank statement file and customer line items. Once after bank statement file is created you can import it using FF_5 and if your configuration is not properly made, it will let you know where you are missing. But this program will generate bank statement file in multi cash. How ever if your configuration is correct and if you are able to import bank statement, then there will not be any difficulty in importing MT 940.
    Hope you understood.
    Regards
    Srikanth

Maybe you are looking for

  • Loss of color

    Capturing with AuroraIgniterX lossed color - gray scale only. Swapped Aurora card, cables - tried both composite and S-video - dropped preferences, re-installed Final Cut Pro - no help. Will capture color in DV format, but not analog.

  • In the USOBT table Field 'Low' is fetching wrong data

    Hi All,              I am generating a report for the basis, in that am fetching data from USOBT table there is a field 'Low' . Its not fetchng correct data for the field values like WERKS, VTWEG etc. actaully the values r populating like $WERKS,$VKO

  • Change script function, can you?

    Hi everyone I got this script, function: change font size in selection but I want to change the function to selection text frames I mean: change the font size in all the selected text frames. thanks var the_document = app.documents.item(0); var the_s

  • Aperture 3 Faces recognition problem

    Have a really funky problem that is consuming hours to days of time in Faces.  Need serious help, or for Apple to recognize this as a bug. When I select Faces, Confirm Faces for a person, it shows loads of faces completely not that persons face.  So

  • Error code 150:30 using Mavericks

    Error code 150:30 using Mavericks