AP_INVOICES_ALL
hi all
could any one help me out in getting back my original "AP_INVOICES_ALL" table, as it was dropped unfortunately.
I imported the table using 'imp' tool but i couldn't got the "triggers" associated with the table. So, how could I get my original AP_INVOICES_ALL table along with all triggers back....
Thanks in advance.
Regards,
Naren
under $AP_TOP/patch/115/odf look for the ODF file which actually creates the table, this contains the Trigger Definition and all its dependancies, you can then use adodfcmp tool to load the odf file into the database with option change=no, this would give all the changes the file would have done, it contains all the SQL Trigger Definitions it would have executed.
look for adodfcmp in metalink.
or etrm.oracle.com for Information on Data Model
Similar Messages
-
HELP with mapping between event_class SLA R12 and ap_invoices_all
Hi Gurus!!
I have to do a query that obtain the event class (XLA_ACCOUNTING_CLASS lookup code) of an invoice that this invoice is pending to be posted. The question is how do i do a mapping between AP_INVOICES_ALL table and the EVENT_CLASS ???
For example... i have a class named "DEBIT MEMOS" but in the AP_INVOICES_ALL the INVOICE_TYPE_LOOKUP_CODE is DEBIT...
hope someone could help me,
PS: Application is R12
Thanks!!
Pablo.-Hi Tarun,
Yes I am aware of that, but I just thought someone would which fields to join between the AP and the XLA tables as I can't find anything on the eTRM. So I do know that those are the tables to link, but I'm just not sure of the fields to join. -
Link between xla_distribution_links and ap_invoices_all
SELECT SUP.VENDOR_NAME,
API.INVOICE_NUM,
SUM (NVL (AEL.ACCOUNTED_DR, 0) - NVL (AEL.ACCOUNTED_CR, 0)) "BALANCE"
FROM xla.xla_ae_lines AEL,
xla.xla_ae_headers AEH,
(SELECT XDL.AE_HEADER_ID,
XDL.AE_LINE_NUM,
XDL.APPLIED_TO_SOURCE_ID_NUM_1,
XDL.ALLOC_TO_SOURCE_ID_NUM_1,
APSI.INVOICE_NUM "ALLOC_TO_INVOICE_NUM",
XDL.EVENT_CLASS_CODE
FROM APPS.XLA_DISTRIBUTION_LINKS XDL, AP.AP_INVOICES_ALL APSI
WHERE XDL.APPLICATION_ID = 200
AND XDL.EVENT_CLASS_CODE IN
('PREPAYMENTS', 'PREPAYMENT APPLICATIONS')
AND XDL.ROUNDING_CLASS_CODE = 'PREPAID_EXPENSE'
AND XDL.ALLOC_TO_SOURCE_ID_NUM_1 = APSI.INVOICE_ID
GROUP BY XDL.AE_HEADER_ID,
XDL.AE_LINE_NUM,
XDL.APPLIED_TO_SOURCE_ID_NUM_1,
XDL.ALLOC_TO_SOURCE_ID_NUM_1,
APSI.INVOICE_NUM,
XDL.EVENT_CLASS_CODE
) dl, --------------VERY IMPORTANT---------------
GL.GL_CODE_COMBINATIONS CC,
AP.AP_SUPPLIERS SUP,
AP.AP_INVOICES_ALL API
WHERE aeh.balance_type_code = 'A'
AND aeh.ae_header_id = ael.ae_header_id
---hh
AND aeh.ae_header_id = DL.ae_header_id
AND ael.ae_line_num = DL.ae_line_num
AND ael.ledger_id = 2022
AND ael.code_combination_id = CC.CODE_COMBINATION_ID
AND DL.APPLIED_TO_SOURCE_ID_NUM_1 = API.INVOICE_ID --------------VERY IMPORTANT-----------------
AND CC.SEGMENT1 = '131061'
AND AEL.PARTY_ID = SUP.VENDOR_ID
AND SUP.VENDOR_NAME = 'COMPANY_NAME'
AND TRUNC (AEH.ACCOUNTING_DATE) <= TO_DATE ('31-DEC-2012', 'DD-MON-YYYY')
GROUP BY API.INVOICE_NUM, SUP.VENDOR_NAME
HAVING SUM (NVL (AEL.ACCOUNTED_DR, 0) - NVL (AEL.ACCOUNTED_CR, 0)) <> 0
Pleaes explain the above query. The result is the prepayment balance grouped by Vendor_name and Invoice_num. What I don't understand is the use of the inline view DL. Why would you need it? I tried to rewrite the above task as following.
select inv.vendor_id, INV.INVOICE_NUM, sum(AEL.ACCOUNTED_DR) - sum(AEL.ACCOUNTED_CR) balance
from xla.xla_ae_lines ael,
xla.xla_ae_headers aeh,
XLA.XLA_DISTRIBUTION_LINKS xld,
AP.AP_INVOICES_ALL inv,
ap.ap_invoice_distributions_all dist,
AP.AP_SUPPLIERS sup
where ael.ae_header_id = aeh.ae_header_id AND
XLD.AE_HEADER_ID = aeh.ae_header_id AND
inv.invoice_id = dist.invoice_id AND
INV.vendor_id = SUP.VENDOR_ID AND
INV.VENDOR_ID = 407012 AND
AEL.APPLICATION_ID = 200 AND
INV.INVOICE_NUM = '30'
Group by inv.vendor_id, INV.INVOICE_NUM
I linked AP_INVOICES_ALL to XLA_DISTRIBUTION_LINKS with APPLIED_TO_SOURCE_ID_NUM_1. But in the first query I posted, XLA_DISTRIBUTION_LINKS and AP_INVOICES_ALL were joined twice - first in the inline view DL using ALLOC_TO_SOURCE_ID_NUM_1, then in the main query using APPLIED_TO_SOURCE_ID_NUM_1. Oracle ETRM says nothing about the usage of ALLOC_TO_SOURCE_ID_NUM_1. So I am totally confused. Any hints would be appreciatedIn the top query the detail level of information has been gathered from the sub query DL to make the query easy to understand but when one uses a sub query the performance takes a hit.
Thanks&Regards
[email protected] -
Link between XLA_AE_LINES and AP_INVOICES_ALL in R12
Good day,
Table AP_AE_LINES_ALL was replaced with XLA_AE_LINES in R12. There used to be a direct link in R11 between AP_AE_LINES_ALL and AP_INVOICES_ALL. Does anybody know what the link is between XLA_AE_LINES and AP_INVOICES_ALL in R12?
Thanks for your help.Post it in Oracle Application related forum.
-
Hi,
We need to have some values in AP_INVOICES_ALL in some DFF ( For example Attribute10 ) for invoices we import via expense express. When we update attribute10 of ap_expense_report_headers_all after import i dont see it in the ap_invoices_all table.
What is the mapping of the ap_invoices_all attributes to the ap_expense_report_headers_all attributes.
Please help.
thanks
RamakrishnaHi,
The Attribute Mapping must be exactly matching between AP & Iexp.
For example, if you are having a DFF in iExpense called DFF1 (Attribute12-Expense Headers), then you need to create a Attribute in AP Invoice Headers with the same Attribute Number 12.
If you are creating in Expenses Report Lines, the create in AP Invoice Lines category. Pls remember that Attribute No. must be same. If it is done, then data will move exactly from iExpense to AP when Expense Report Export program is run.
The DFF Names need not be same.
Regards,
guru -
API to update ap_invoices_all table
Hello all,
is there any API to update ap_invoices_all table? Please let me know.
thanks,Oracle uses AP_INVOICES_PKG API (Update_Row procedure) internally, but I believe you cannot use this API directly -- http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=AP_INVOICES_PKG&c_owner=APPS&c_type=PACKAGE
Please log a SR to confirm this with Oracle Support.
Thanks,
Hussein -
I am facing problem in loading data in ap_invoices_all in R12 through API
Hi,
When I am trying to load data in R12 through API (ap_invoices_pkg. Insert_Row), I can see my record in base table ap_invoices_all but I can't find my record from frontend application.
MAGSA AP Supervisor -> Invoices -> Entry -> Invoices.
I will be very greatful if anyone can tell me the reason why I am not able to find my record.
Thanks
RanjanaI believe the issue is related to Multi Org Access Control (MOAC) - pl see MOS Doc 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code - for a discussion.
HTH
Srini -
Question About Oracel AP / Ap_invoices_all
Hi There is there any flag(Coulmn) in AP_invoices_all table which shows the invoice_amount has paid or not.
Please see my below code.
UPDATE cint.cin_eclaim_invoice C
SET c.invoice_status= 'PAID'
WHERE
(Exists (SELECT ap.invoice_num
FROM ap_invoices_all ap,wc_clm@iwar wc
where c.clm_id=wc.clm_id
--And wc.clm_status_cd ='APPROVED'
--And wc.nf_upload_status='UPLOADED'
and ap.vendor_id=c.vendor_id
and ap.invoice_num = c.invoice_number
AND ap.source='IWARRANTY UPLOAD'
AND nvl(ap.amount_paid,0) >0 --I want to use flag here like invoice_paid='Y"
or
(RTRIM(LTRIM(c.reference#)) Is Not Null And
Exists (SELECT ap2.invoice_num
FROM ap_invoices_all ap2,wc_clm@iwar wc
where c.clm_id=wc.clm_id
--And wc.clm_status_cd ='APPROVED'
--And wc.nf_upload_status='UPLOADED'
and ap2.vendor_id=c.vendor_id
and ap2.invoice_num = RTRIM(LTRIM(c.reference#))
AND ap2.source='IWARRANTY UPLOAD'
AND nvl(ap2.amount_paid,0)>0 --I want to use flag here like invoice_paid='Y"
And c.invoice_status ='APPROVED'
And c.upload_status='UPLOADED';
I apprechiate you in advance!
Thanks,
ZeeshanHi There is there any flag(Coulmn) in AP_invoices_all table which shows the invoice_amount has paid or not.
Please see my below code.
UPDATE cint.cin_eclaim_invoice C
SET c.invoice_status= 'PAID'
WHERE
(Exists (SELECT ap.invoice_num
FROM ap_invoices_all ap,wc_clm@iwar wc
where c.clm_id=wc.clm_id
--And wc.clm_status_cd ='APPROVED'
--And wc.nf_upload_status='UPLOADED'
and ap.vendor_id=c.vendor_id
and ap.invoice_num = c.invoice_number
AND ap.source='IWARRANTY UPLOAD'
AND nvl(ap.amount_paid,0) >0 --I want to use flag here like invoice_paid='Y"
or
(RTRIM(LTRIM(c.reference#)) Is Not Null And
Exists (SELECT ap2.invoice_num
FROM ap_invoices_all ap2,wc_clm@iwar wc
where c.clm_id=wc.clm_id
--And wc.clm_status_cd ='APPROVED'
--And wc.nf_upload_status='UPLOADED'
and ap2.vendor_id=c.vendor_id
and ap2.invoice_num = RTRIM(LTRIM(c.reference#))
AND ap2.source='IWARRANTY UPLOAD'
AND nvl(ap2.amount_paid,0)>0 --I want to use flag here like invoice_paid='Y"
And c.invoice_status ='APPROVED'
And c.upload_status='UPLOADED';
I apprechiate you in advance!
Thanks,
Zeeshan -
Query Performance AP_INVOICES_ALL vs AP_INVOICES in R12
Hi,
I came across a strange (for me so far) that the query based on the synonym AP_INVOICES is faster than AP_INVOICES_ALL in R12. Please read through.
-- First view
create or replace view XX_AP_TEMP_V4
as
select
AI.INVOICE_AMOUNT INVOICE_AMOUNT,
AI.INVOICE_CURRENCY_CODE INVOICE_CURRENCY_CODE,
AI.INVOICE_DATE INVOICE_DATE,
AI.INVOICE_ID INVOICE_ID,
AI.INVOICE_NUM INVOICE_NUM,
AI.org_id,
AP_INVOICES_PKG.GET_APPROVAL_STATUS (AI.INVOICE_ID,
AI.INVOICE_AMOUNT,
AI.PAYMENT_STATUS_FLAG,
AI.INVOICE_TYPE_LOOKUP_CODE) approval_status
from ap_invoices_all ai
, apps.mo_glob_org_access_tmp mg
where
ai.org_id = mg.organization_id
-- Second view
create or replace view XX_AP_TEMP_V5
as
select
AI.INVOICE_AMOUNT INVOICE_AMOUNT,
AI.INVOICE_CURRENCY_CODE INVOICE_CURRENCY_CODE,
AI.INVOICE_DATE INVOICE_DATE,
AI.INVOICE_ID INVOICE_ID,
AI.INVOICE_NUM INVOICE_NUM,
AI.org_id,
AP_INVOICES_PKG.GET_APPROVAL_STATUS (AI.INVOICE_ID,
AI.INVOICE_AMOUNT,
AI.PAYMENT_STATUS_FLAG,
AI.INVOICE_TYPE_LOOKUP_CODE) approval_status
from ap_invoices ai
, apps.mo_glob_org_access_tmp mg
where
ai.org_id = mg.organization_id
select * from XX_AP_TEMP_V4 where approval_status like '%APPROVE%'; -- takes about 6mins to give first 50 rows
select * from XX_AP_TEMP_V5 where approval_status like '%APPROVE%' -- takes about 10sec to give first 50 rows
Why there is such a difference when we can't create any indexes on Synonym or View??
Thanks,
Pavan.I've read the docs thanks they are very good at helping me understand MOAC but they do not really answer the question.
I am thinking that now that a responsibility can access more than one org that org it is very likely to be a parameter on the report to give users the choice of what org data to report on. If there is a parameter is there a point of using the secure views? Because the report can look at the all table and then be restricted by org_id = &org_id. If this holds then it would be best to report from the all tables rather than the secure views.
So if I was asked to develop a report to show self billing invoices for example - what should I use ap_invoices_all with org_id as a parameter or ap_invoices without the parameter?
Thanks for the help in advance - I'm new in r12 and think this is a bit of fundamental point and it appears to me that both ways can be used but there is probably reasons to adopt one approach over another. -
GL_JE_LINES connect to AP_INVOICES_ALL
Hi,
How do I connect the table GL_JE_LINES to AP_INVOICES_ALL?
I just want to get the Supplier Name in my customized Report.
Thanks a lot,
Ms KHi;
Please check below
R12 Mapping Between Subledger Tables, SLA and GL Tables [ID 871622.1]
How to Diagnose Discrepancies Between AP and General Ledger [ID 105929.1]
Regard
Helios -
AP_INVOICES_ALL Standard WHO Columns - Urgent help
I created some Invoices(Debit memos), later i approved them in the front end and expected the last_update_date to change, but it didnt.
Is there anything else that could be controlling the update on the standard WHO columns. My program depends on the last_update_date as a driving criteria, i am stuck at this point, wondering if something is preventing the update on the WHO columns.
Can someone help me in this regard.I see this statement at the end of approval. May you can use this:
UPDATE ap_invoice_distributions D
SET match_status_flag = 'T',
last_update_date = SYSDATE,
last_updated_by = p_user_id,
program_application_id = decode(fnd_global.prog_appl_id,
-1,null,
fnd_global.prog_appl_id),
request_id = decode(fnd_global.conc_request_id,
-1,null, fnd_global.conc_request_id),
program_id = decode(fnd_global.conc_program_id,
-1,null, fnd_global.conc_program_id),
program_update_date = decode(fnd_global.conc_program_id,
-1,null, SYSDATE)
WHERE match_status_flag = 'S'
AND D.invoice_id = p_invoice_id;
Thanks
Nagamohan -
Help with AP_Invoice Tables in SQL
Hi Gurus,
I am working on a report where i created a view. This query pulls data from SO,PO,ITEMS,AP and AR tables. The problem I am having is when I add a AP tables or a field from that table some of the Order Numbers are disappearing. Could someone please shed some light this. Here is the query
SELECT DISTINCT trxl.CUSTOMER_TRX_LINE_ID,
pv.vendor_name,
api.invoice_num AP_Invoice_Num,
trx.trx_date AR_Invoice_Date,
trx.trx_number AR_Invoice_Number,
pll.quantity_received,
pll.quantity_billed,
ool.shipped_quantity,
mtlb.segment1 NSN,
poh.closed_date po_close_date,
gl.gl_date
FROM apps.oe_order_headers_all ooh,
apps.oe_order_lines_all ool,
apps.oe_drop_ship_sources odss,
apps.po_headers_all poh,
apps.po_lines_all pol,
apps.po_line_locations_all pll,
apps.po_vendors pv,
inv.mtl_system_items_b mtlb,
ar.Ra_customer_trx_all trx,
ar.ra_customer_trx_lines_all trxl,
ar.hz_parties hzp,
ar.hz_cust_accounts hzc,
ap.ap_invoices_all api,
ap.ap_invoice_lines_all apl,
apps.RA_CUST_TRX_LINE_GL_DIST_ALL gl
WHERE odss.header_id = ooh.header_id
AND odss.line_id = ool.line_id
AND odss.po_header_id = poh.po_header_id
AND odss.po_line_id = pol.po_line_id
AND odss.line_location_id = pll.line_location_id
AND pv.vendor_id = poh.vendor_id
AND mtlb.inventory_item_id = ool.inventory_item_id
AND trxl.customer_trx_id = trx.customer_trx_id
AND trxl.inventory_item_id = mtlb.inventory_item_id
AND hzc.cust_account_id = ooh.sold_to_org_id
AND hzc.party_id = hzp.party_id
AND apl.invoice_id = api.invoice_id
AND apl.po_header_id = poh.po_header_id
AND apl.inventory_item_id = mtlb.inventory_item_id
AND api.vendor_id = poh.vendor_id
AND ool.line_id = trxl.interface_line_attribute6
AND to_char(ooh.order_number)= trx.interface_header_attribute1
AND trxl.CUSTOMER_TRX_LINE_ID = gl.CUSTOMER_TRX_LINE_ID
AND gl.gl_date IS NOT NULL
ORDER BY trxl.CUSTOMER_TRX_LINE_ID DESC;
Really appreciate your help
Thank You,Hi ,
Need to place outer join for AP Tables .
Regards
Muthu -
AP Invoice with PO information
Hi All,
My query is getting duplicate values i have kept all the join conditions correctly.please let me know its urgent.Advance thanks i am pasting the query.
select HL.LOCATION_CODE "LOCATION CODE",
HL.DESCRIPTION "DESCRIPTION",
aid.period_name "PERIOD NAME",
pll.line_location_id "HEADING",
glcc.CONCATENATED_SEGMENTS "DIST ACCOUNT NBR",
to_char(aia.invoice_date,'DD-MM-YYYY') "INVOICE DATE",
aia.voucher_num "VOUCHER NUMBER",
pv.segment1 "VENDOR NUMBER",
pv.vendor_name "VENDOR NAME",
msi.segment1 "PART NUMBER",
msi.description "PART DESCRIPTION",
pl.unit_meas_lookup_code "UNIT OF MEASURE",
pl.quantity "QUANTITY",
ph.segment1 "PO",
rsh.receipt_num "RECEIPT NUMBER",
pr.release_num"RELEASE NUMBER",
aia.INVOICE_AMOUNT "AMOUNT",
aid.amount "LINE AMOUNT"
from
po_headers_all ph,
po_lines_all pl,
po_line_locations_all pll,
po_distributions_all pd,
po_releases_all pr,
rcv_shipment_headers rsh,
rcv_shipment_lines rsl,
po_vendors pv,
ap_invoices_all aia,
ap_invoice_distributions_all aid,
mtl_system_items_b msi,
gl_code_combinations_kfv glcc,
hr_locations_all hl
where ph.po_header_id = pl.po_header_id
AND pl.po_line_id = pll.po_line_id
AND pl.po_line_id = pd.po_line_id
AND rsh.shipment_header_id = rsl.shipment_header_id
AND rsl.po_header_id = ph.po_header_id
AND pr.po_header_id = ph.po_header_id
AND pd.po_distribution_id =aid.po_distribution_id
and aia.invoice_id = aid.invoice_id
AND pv.vendor_id = aia.vendor_id
AND glcc.CODE_COMBINATION_ID = aid.DIST_CODE_COMBINATION_ID
AND msi.inventory_item_id = pl.item_id
AND HL.LOCATION_ID =pll.line_location_id
--- and porg_id = 7404
AND rownum<50Hi
When you match a supplier invoice to a PO, the system copies the distributions from the PO to the AP lines.
There is no way to override the PO distributions on the AP invoice.
Therefore, if the PO has no project distribution the AP lines generated from that PO will not be project related neither.
Dina -
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 PMHello 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,
JayasreeUse 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.
Maybe you are looking for
-
Safari 3.0.4 and OSX 10.4.11 mess
Hi all, Last night, I must have had too much of the painkiller that I click the software updates. My mac was updates to ver 10.4.11 and voila my Safari is a new version ver 3.0.4. My nightmare is Safari is not working. It was working fine without a h
-
Hello, I am using LabVIEW 8.0 and I am attempting to create a sub-panel that displays the front panel of a sub-vi depending on the selection made by the user via the Enum dropdown menu. I have wired the Enum to a case structure and applied identical
-
List of tax code in "invoice " tab in PO
hi frends...i wanna see the list of the tax code defined for the Service PO in its "invoice" tab.like for service tax we have three tax : s1: service tax:10.3% s2: service tax:10.3% s3:service tax:10.3% now in the configuration paart i wanna see out
-
Trying to import RAW files (from Canon 5D Mark III) but I'm receiving the following error message "some import operations were not performed". I am trying to copy to my Seagate backup drive, however the only destination it will let me copy to is my L
-
[CS3][JS] Selecting Layers by Name
I'm trying to design a script to select layers by a given name. And then PDF layer1 (base) and certain items that are on each layer 1 at a time so I have multiple different pages. But the PDF thing doesn't seem to be much of an issue. I just can't se