Ap_invoice_distributions_all vs ap_invoice_distributions
Hi experts,
Can any one clarify me on the tables ap_invoice_distributions_all and ap_invoice_distributions.
I am confused which table stores which info?
in R12 ap_invoice_distributions_all is a changed table, den what does the ap_invoice_distributions will do?
Please clarify me on this?
Thanks in advance,
Giri
Edited by: 873954 on Aug 12, 2011 1:58 AM
Can any one clarify me on the tables ap_invoice_distributions_all and ap_invoice_distributions.
I am confused which table stores which info?http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=AP_INVOICE_DISTRIBUTIONS_ALL&c_owner=AP&c_type=TABLE
http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=AP_INVOICE_DISTRIBUTIONS&c_owner=APPS&c_type=VIEW
in R12 ap_invoice_distributions_all is a changed table, den what does the ap_invoice_distributions will do?http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=AP_INVOICE_DISTRIBUTIONS&c_owner=APPS&c_type=SYNONYM
http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=AP_INVOICE_DISTRIBUTIONS_ALL&c_owner=AP&c_type=TABLE
Changes Related to AP_INVOICE_DISTRIBUTIONS_ALL table in r12 [ID 1108538.1]
R12. What Is The Primary Key For The AP_INVOICE_DISTRIBUTIONS_ALL Table in R12? [ID 1122080.1]
Thanks,
Hussein
Similar Messages
-
I have used AP_INVOICES_INTERFACE and AP_INVOICE_LINES_INTERFACE and use the concurrent program 'Payables Open Interface Import' to import INVOICE,LINES,SHIPMENT and DISTRIBUTION.
It can generate records in AP_INVOICE_DISTRIBUTION_ALL, only if PO_NUMBER (in AP_INVOICE_LINES_INTERFACE) is provided.
However if PO_NUMBER value is NULL, AP_INVOICE_DISTRIBUTION_ALL will have no record generated after the concurrent program run.
My native solution is just go to Payable --> Invoice --> Entry (go to the Lines --> Distributions), Open the form and click save.
Then the Distribution Class value will change from Preview to Saved and the record will generate in AP_INVOICE_DISTRIBUTION_ALL TABLE
I wonder if I can change the status from 'Preview to Saved' by using program
or
is there any way to use AP_INVOICE_LINES_INTERFACE and use the concurrent program to generate records in AP_INVOICE_DISTRIBUTION_ALL, even if PO_NUMBER is null?
Thanks~!!What is your database version?
I am wring a query using ap and po and gl tables:
SELECT
ph.segment1 "PO Number",
aia.description "Invoice Description",
gcc.segment6 "Product Code",
gjl.period_name,
gjl.accounted_cr, gjl.description, gjl.reference_1 "Vendor Name", gjl.reference_5
FROM
apps.po_distributions_all pd,
apps.po_headers_all ph,
apps.ap_invoices_all aia,
apps.ap_invoice_distributions_all aida,
gl.gl_je_lines gjl,
gl.gl_je_headers gjh,
gl.gl_code_combinations gcc
WHERE
aida.invoice_id(+) = to_number(gjl.reference_2)
and aida.distribution_line_number = to_number(gjl.reference_3)
and aida.po_distribution_id = pd.po_distribution_id(+)
and pd.po_header_id = ph.po_header_id(+)
AND gcc.code_combination_id = gjl.code_combination_id
and aida.invoice_id = aia.invoice_id(+)
AND gjh.je_header_id = gjl.je_header_id
But its taking longer time.Full Table scan is going on.Please see this link -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Query+AND+Tuning&objID=c84&dateRange=all&userID=&numResults=15
Also, please see eTRM website and make sure you are using the right/correct joins -- http://etrm.oracle.com
Thanks,
Hussein -
AP_INVOICE_DISTRIBUTIONS table is blank
Hi
I have uploaded "STANDARD" and "PREPAYMENT" invoices using ap_invoices_interface and ap_invoice_lines_interface tables and run the concurrent. Everything is imported successfully but the ap_invoice_distributions table is blank while data is appearing on invoice line level distribution window.
Please guide me what is exactly happening?
Thanks & Best Regards
Waqas HassanHi
We have the same issue after import ap invoice. Now, we need to validate the invoice after import and ap_invoice_distributions data will be created.
I think it is because the invoice with the tax line, please try to remove tax line and use tax_code to replace tax_line. -
Payable Invoice Interface / ap_invoice_distributions_all
Hi,
We have come across an issue in R12 with the payables open invoice interface; when you interface invoices into payables no corresponding records are created on the ap_invoice_distributions_all table, as a result when you run Invoice Validation it errors. Having run the validation process, when you query the distributions table again records now exist, and this time when the validation process is run it completes with no error.
I have an open SR for this, but am interested if anyone has come across this problem before?
Regards
CarlHi Phi,
As yet we have not received a fix from Oracle, however I have found what I think is the cause of the issue and we do have a work around.
The invoices we were importing did not have manual tax lines, and the calc_tax_during_import_flag on ap_invoices_interface was NOT set to ‘Y’, this meant that the validation program was calculating the tax (we are using eTax) when it was run – and for some reason was falling over.
By setting the calc_tax_during_import_flag to ‘Y’ the tax lines are generated as the invoice is imported into AP and then we do not get any errors when running the validation.
Hope this helps!
I will update this thread if any progress is made with the SR.
Regards
Carl -
Hi,
I would like to raise one question on AP_INVOICE_DISTRIBUTIONS_ALL.LAST_UPDATE_DATE of EBS 11.5.10 which is related to OBI Application 7.9.6.1
One customer mentioned that AP_INVOICE_DISTRIBUTIONS_ALL.LAST_UPDATE_DATE was not updated whenever AP_INVOICE_DISTRIBUTIONS_ALL.PREPAY_AMOUNT_REMAINING filed is updated.
In reverse, I asked customer if it is expected in EBS 11.5.10 because I understand that LAST_UPDATE_DATE field is mandatory updated whenever any column is changed.
"1/ Basically, AP_INVOICE_DISTRIBUTIONS_ALL.LAST_UPDATE_DATE field is mandatory updated whenever any column is changed. If not, it must be a Source Application problem. Why do your Source Application person think that it is expected?
Ans: Because Source Application person think that Oracle apps basic application functionality for AP Invoice."
Could you let me know if it is really expected in EBS 11.5.10 or any other suggestions?
Regards,
ChongHakIf the last_update_date is not updated when another column in the table is updated, it is most likely a bug in EBS.
You should search metalink for a patch or raise an SR to obtain one.
Hope this helps,
Sandeep Gandhi -
Hi,
Right now we are in the process of upgrading our application from 11i to R12.1.3.
During the procure to pay upgrade, We are facing a challenge in interfacing R12 Oracle Payables invoices with Vertex Q Series Tax.
The existing vertex interface process is working in R12 till tax calculation. That is, the TAX is getting calculated by the Vertex engine.
But after tax calculation, the existing vertex interface process is not working because of the new tables in R12.
Seeking help to identify the required API’s to populate the ap_invoice_lines, ap_invoice_distributions and required ZX tables.
Please help us if you came across similar challenge or any idea on R12 AP invoices interface with Vertex Q Series.
Thanks
TamilselvanHi,
I have calculated tax amounts using vertex Q. trying to find out ZX API's to populated the required ZX tables.
Please help us if you have any idea on this matter.
Thanks
Tamil -
Linking po_distributions_all and ap_invoice_distributions_all
Hello All,
How would I link the two tables po_distributions_all and ap_invoice_distributions_all to get freight or misc charges that are allocated in payables or manually entered?
I need to write a report that shows item#, po#, inventory_type, received Qty, billed quantity, invoice number, invoice date, invoice amount etc ..
Thanks in advance.
A/AHere is my query:
select msi.SEGMENT1 "Item Number", pol.ITEM_DESCRIPTION "Description",pod.DESTINATION_SUBINVENTORY "Inv. Type",poh.SEGMENT1 "Po Num.",
apa.invoice_num "Invoice Num.", apa.INVOICE_DATE "Invoice Date", apid.QUANTITY_INVOICED "Qty. Invoiced", apid.amount "Amount"
FROM po_headers_all poh,
po_lines_all pol,
po_line_locations pll,
ap_invoices_all apa,
ap_invoice_distributions_all apid,
po_distributions_all pod,
mtl_system_items_b msi
WHERE poh.PO_HEADER_ID = pol.PO_HEADER_ID
AND pol.PO_HEADER_ID = pll.PO_HEADER_ID
AND pll.PO_LINE_ID = pol.PO_LINE_ID
AND pll.LINE_LOCATION_ID = pod.LINE_LOCATION_ID
AND apa.INVOICE_ID = apid.INVOICE_ID
and pod.PO_DISTRIBUTION_ID(+) = apid.PO_DISTRIBUTION_ID
and msi.INVENTORY_ITEM_ID = pol.ITEM_ID
and msi.organization_id = '221' -
Link GL_JE_LINES to ap_invoice_distributions_all
Hello All,
I have a report where I need to link a line in GL_JE_LINES to ap_invoice_distributions_all so I can get Project_id and Task_id. Has anyone linked GL_JE_LINES to ap_invoice_distributions_all? If so please let me know how you did it?
Thanks,
Bradleytry this:
SELECT *
FROM apps.gl_je_lines gje,
apps.gl_je_headers gjh,
apps.ap_invoice_distributions_all apid,
ap_invoices_all apa,
ap_ae_lines_all apae
WHERE
apae.GL_SL_LINK_ID = gje.GL_SL_LINK_ID -- this provides drill back to AP
and gje.je_header_id = gjh.je_header_id
---and gjh.NAME = <your jounal name>--- -- <--Journal name
AND apae.REFERENCE5 = 'XX 100506' -- invoice number
and apae.REFERENCE2 = apid.INVOICE_ID
AND apid.invoice_id = apa.invoice_id
and apae.SOURCE_ID = apid.INVOICE_DISTRIBUTION_ID -- ties distrib table to GL
AND gjh.actual_flag = 'A'
ORDER BY gje.je_line_num
this will bring you everything -
hello!
i am confused between too many fields linking these 2 tables. we have:
AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_LINE_NUMBER
AP_INVOICE_DISTRIBUTIONS_ALL.INVOICE_ID
AP_INVOICE_LINES_ALL.AIL_INVOICE_ID2
AP_INVOICE_LINES_ALL.AIL_DISTRIBUTION_LINE_NUMBER
AP_INVOICE_LINES_ALL.AIL_INVOICE_ID3
AP_INVOICE_LINES_ALL.AIL_DISTRIBUTION_LINE_NUMBER2
AP_INVOICE_LINES_ALL.AIL_INVOICE_ID4
AP_INVOICE_LINES_ALL.AIL_DISTRIBUTION_LINE_NUMBER3
which field to use?Welcome to the forums !
Pl post EBS related questions in the EBS forums at http://forums.oracle.com/forums/category.jspa?categoryID=3
Pl access the EBS ERD diagrams at http://etrm.oracle.com to understand the relationships between these tables. You will need a valid Metalink login
HTH
Srini -
Where to get Liability-Account for AP_INVOICE_DISTRIBUTIONS in R12
I am working on a "AP Report" and I have to display the Expense and Liaiblity accounts for each Invoice_Distribution.
In R11i, this was available from ACCTS_PAY_CODE_COMBINATION_ID from ap_invoice_distributions_all table. However, in R12.1.3 this column is Null and oracle TRM states that this column is "not in use".
Where can i get the Liability-Account in R12 ... If someone has a Query to extract the Liability-account for each Distribution, it would make my life much easier.Please see:
Identifying Data Model Changes Between EBS 12.1.3 and Prior EBS Releases
https://blogs.oracle.com/stevenChan/entry/ebs_data_model_1213
EBS Data Model Comparison Report Overview [ID 1290886.1]
EBS Seed Data Comparison Reports Now Available
https://blogs.oracle.com/stevenChan/entry/ebs_seed_data_comparison_reports
Thanks,
Hussein -
I am importing PCard transactions, but need to be able to relate the source data to the final transactions coming out in AP programmatically. I had thought that the distribution line ID would work, but it is different between the tables, and Attribute values are not passing through. Any help would be tremendously appreciated. The project is already overdue.
This looks like directly going to support. This is what happening. Before inserting the record into the interface table, they generage invoice_id and update ap_expense_feed_dists_all table. And when they are importing they will generate the invoice_id again. So we lost the invoice_Id right there.
I think the only way for now is this:
SELECT *
FROM ap_expense_feed_lines efl
, ap_expense_feed_dists_all efd
, ap_card_programs_all cp
, ap_invoices_all ai
, ap_invoice_distributions_all aid
WHERE efl.feed_line_id = efd.feed_line_id
AND efl.card_program_id = cp.card_program_id
AND cp.vendor_id = ai.vendor_id --Has to be employee ID we can add the check too.
AND cp.vendor_site_id = ai.vendor_site_id
AND ai.SOURCE = 'PCARD'
AND ai.invoice_id = aid.invoice_id
AND efd.dist_code_combination_id = aid.dist_code_combination_id;
Thanks
Nagamohan -
Please advice me how to join gl_import_references and ap_invoices_distribution_all in R12. I have understanding of join between gl_import_references and ap_invoices_all, but I am not clear how to join ap_invoice_distriutions_all to gl_import_references.
ThanksHi,
we don't have direct link for GL_JE_LINES and AP_INVOICE_DISTRIBUTIONS_ALL.
First join AP_INVOICE_DISTRIBUTIONS_ALL and GL_CODE_COMBINATIONS then link to GL_JE_LINES.
Please see below eg:
SELECT *
FROM gl_code_combinations gcc,
ap_invoice_distributions_all apd,
gl_je_lines gjl
WHERE gcc.code_combination_id = apd.dist_code_combination_id
AND gcc.code_combination_id = gjl.code_combination_id;
your case use apd.dist_code_combination_id instead of apd.po_distribution_id (>
and apd.po_distribution_id = GJL.CODE_COMBINATION_ID Add -----------Problem here-----------)
I hope this will help to you.
Thanks,
Prasad Raju -
Link ap_invoice_distributions_all to a GL Header
Hi,
I am trying to link the invoice_distribution_id to an invoice_id linked to a GL Header. The problem I face is that the invoice_distribution_id is returning multiple lines when joined on invoice_id. My query is below:
select *
from apps.xla_distribution_links l, apps.ap_invoice_distributions_all ad
where l.source_distribution_id_num_1 = ad.invoice_distribution_id
and ad.invoice_id = l.applied_to_source_id_num_1
and l.applied_to_source_id_num_1 = 37109
and l.ae_header_id = 381812
and ad.dist_code_combination_id = 6429 and ad.line_type_lookup_code = 'ITEM';
There should be only 2 records returned that relate to two GL lines in a GL Header ID, but 4 records are returned because the invoice_line number is the same and the ae_line_number is the same too. How can I eliminate these to return the correct match in GL. There is a distribution line number and temp_line_number that is unique in the above query. Do these link elsewhere?
ThanksHi,
I have started by linking gl_je_lines with gl_import_references to link with xla_ae_lines via gl_sl_link_id . I have then linked the invoice_id in ap_invoices_all to xla_distribution_links. Everything is fine until this point forward as I need to obtain the accounting_date from ap_invoice_distributions_all to base the date parameters of the GL data on accounting_date.
My query is below:
SELECT c.code_combination_id, h.je_header_id, l.ae_header_id, l.ae_line_num, te.source_id_int_1, te.application_id, te.entity_id,
h.je_source,
h.je_category,
i.gl_date,
s.vendor_name,
s.segment1 as supplier_no,
l.event_class_code as event_class, i.invoice_id, ad.invoice_distribution_id,
i.invoice_num AS transaction_number,
i.invoice_date,
initcap(jl.description) description,
jl.accounted_dr as debit,
jl.accounted_cr as credit,
Nvl(Jl.Accounted_Dr, 0) - Nvl(Jl.Accounted_Cr, 0) Net_Amount
From Apps.Gl_Je_Headers H,
apps.gl_je_lines jl,
Apps.Gl_Code_Combinations C,
apps.gl_import_references r,
apps.xla_ae_lines al,
Apps.Xla_Ae_headers Ah,
apps.xla_distribution_links l,
apps.ap_invoices_all i,
apps.ap_invoice_distributions_all ad,
apps.ap_suppliers s,
apps.xla_events e,
apps.xla_transaction_entities te
where ad.accounting_date between :startdate and :enddate
and c.code_combination_id = 6429
and jl.description != 'GB VAT - STANDARD TAX'
and ad.line_type_lookup_code = 'ITEM'
AND jl.je_header_id = h.je_header_id
AND jl.code_combination_id = c.code_combination_id
and al.gl_sl_link_id = r.gl_sl_link_id
and al.ae_header_id = ah.ae_header_id
and al.application_id = ah.application_id
and ah.application_id = e.application_id
and ah.event_id = e.event_id
and e.application_id = te.application_id(+)
and e.entity_id = te.entity_id(+)
AND r.je_header_id = jl.je_header_id
AND r.je_line_num = jl.je_line_num
AND l.ae_header_id = al.ae_header_id
and l.ae_line_num = al.ae_line_num
and l.applied_to_source_id_num_1 = i.invoice_id
and l.source_distribution_id_num_1 = ad.invoice_distribution_id
and ad.invoice_id = i.invoice_id
and i.vendor_id = s.vendor_id
order by i.gl_date desc
This query results with 4 records, when there should be two. The reason being that ap_invoice_distributions_all contains 3 records where the amounts are split into 3 but total up to the correct amount in the GL header. Also the invoice_line_number is the same, please advise. -
API to insert into AP_INVOICE_DISTRIBUTIONS_ALL table
Hi all,
I am developing an AP chargeback creation program with AP Invoices in 11i.
User wants the chargeback line to be added to the Invoice distribution lines i.e if An invoice has an initial distribtution of 100 equal to its total invoice amount, if we run our chargeback creation program it should add another distribution line say with chargeback amount of 50.
Please help me if there is any API to do the same and if possible any examples on the same.
Thanks a lot,
Vicky SureI'm not aware of any API that can be used to insert data to this table (APIs exist to delete data from the same table).
https://blogs.oracle.com/prajkumar/entry/oracle_ap_invoice_apis
http://oracle.ittoolbox.com/groups/technical-functional/oracle-apps-l/api-to-insert-records-on-the-table-ap_invoice_distributions_v-4467667
http://etrm.oracle.com/
I'd suggest you log a SR and confirm the same with Oracle support.
Thanks,
Hussein -
AP withholding tax line in Ap_invoice_distribution
In AP , When we are making payment for a vendor with withholding tax site, the distributiuon line created with no account coding for tax line. Because the DIST_CODE_COMBINATION_ID is coming our as -1 when saving the payment from payment form.
We set the JG: Extended AWT Calculation profile option to "Yes" at the responsibility level. Now there is no distrubution line created for withholding TAX at all.
can Someone help
GeorgeMy recommendation is that you contact Oracle support for help. To try and assist on something like this, we folks in this forum can only speculate on possible causes. You can waste a good amount of time trying to deal with speculation that turns out to not apply to your issue. To give you a good answer, we really need to see your site's data and setups. We on the forum cannot do this, but Oracle support can start a web session and be able to look at your data and setups and figure out where you are going wrong.
John Dickey
Maybe you are looking for
-
In our newsroom environment, staff prefers to have MP3s from various download sources open directly in an outside program's window (in this case Goldwave is the preferred program). That being said, with the newer version (36 specifically) the behavio
-
New to Java Web Start technology - unable to start JWS
I am new to JWS, and started with sample programs given at JWS product page. I compiled the files and created the .war file and copied that file into the DOCUMENTROOT of my Web server. Also I copied the .jnlp file into the same location. After that I
-
Team, How do I connect from OSB to LDAP? Is there any LDAP adapter? If not, may be I have to use java code to connect to LDAP and use proxy service java call out. Are there any samples for doing that? Thanks in advance.
-
Oracle OLAP ExpressDataProvider Exceptions
Hi I'm using Oracle 9i OLAP API. There's something strange going on here. I written a test program that accesses the metadata and displays all it's contents. It runs fine on my home PC. At college the same program running on the same settings as that
-
How do I download a movie on iTunes on my ipad, because when it gets to the end of the download it says download error tap to retry but when you retry it still doesn't work.