AP: Invoice Imports/ Miscellaneous Invoice Line types
Hi All,
I had two issues while I was importing my invoices in AP through AP Invoices Open interface:
1. Freight Charges
2. Some Unit Royality Charges.
Both of these things are not included in my PO, so I needed to create additonal invoice distribution lines with in the same invoice and also had to assign a GL account while creating the invoices. The other Item type lines get the GL account code from PO while matching is done during AP Open Import process.
The Freight charges problem is resolved. The solution for that is as follows for your reference.
Functional Steps:
1. With Accounts Payables Manager responsibility , go to
Setup->Options->Payables.
2. Select Invoice from drop down list box.
3. In invoice region Ceck the Automatically Create Freight Distribution Option.
4. Supply default Freight Account for Freight Distributions.
Technical Steps:
1. Create an additional Invoice distributions line for freight in AP_INVOICE_LINES_INTERFACE table which should not have the PO level information.
2. Set AP_INVOICE_LINES_INTERFACE.Prorate_across_flag = 'Y'
3. AP_INVOICE_LINES_INTERFACE.line_type_lookup_code = 'FREIGHT'
4. Set AP_INVOICE_LINES_INTERFACE.LINE_GROUP_Number as same in both the ITEM and Freight Invoice distribtuion line which are interrelated.
The above resolves the Freight issue and you can reproduce it in your environment.
However, I have another amount from my supplier which is called "Royality Charge" on every item which are also not present in my PO. My supplier sends these charges with Invoice lines the same way Freight charges are sent. I am thinking of creating additional Invoice lines marked as "Miscellaneous" Invoice Lines type for this charge. The problem I am facing with Miscellaneous Lines is that I cannot find a place where I can setup the Account code for such Invoice distribution lines, like I got for Freight Type Distribution lines as described above in Functional steps. Can anyone guide me in this regard or can give me an alternative workaround to handle my Unit Royality Charges?
Thanks
Faisal .
[email protected]
null
Apologies for the late response, have only just spotted the question.
You will need to register "line-item job-level chains of approval" under payables transaction type before you can select it from the picklist:
Setup\Action Types\"Use Existing Action Type" button, then select action type and continue.
Hope this helps (if you haven't already resolved yourself)
James
Similar Messages
-
AP Invoice import and tax line
Hello
I would like to import ap invoice tax lines in v11i
For suppliers set up with calculation level at line, I managed to create the invoice with tax line and miscelleneous line but when I validate the invoice, a new tax line is created .
How can I avoid this without modifying the supplier set up ?
Thanks in advance for your help.
Aurelie
Edited by: user12010732 on 11 janv. 2013 06:08Populate tables
ap_invoices_interface;
ap_invoice_lines_interface;
You can take a look the logic in AP_IMPORT_INVOICES_PKG.
Like as;
INSERT INTO ap_invoices_interface
(invoice_id,
invoice_num,
invoice_type_lookup_code,
invoice_date,
exchange_date,
exchange_rate_type,
vendor_id,
vendor_site_id,
invoice_amount,
invoice_currency_code,
terms_name,
doc_category_code,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
SOURCE,
accts_pay_code_combination_id,
org_id,
attribute15)
VALUES
(x_invoice_id,
x_invoice_num,
x_invoice_type_lookup_code,
x_invoice_date,
x_exchange_date,
x_exchange_rate_type,
x_vendor_id,
x_vendor_site_id,
x_invoice_amount,
x_invoice_currency_code,
x_terms_name,
x_doc_category_code,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_creation_date,
x_created_by,
x_source,
x_accts_pay_code_com_id,
x_org_id,
x_vendor_site_code);
INSERT INTO ap_invoice_lines_interface
(invoice_id,
invoice_line_id,
line_number,
line_type_lookup_code,
amount,
accounting_date,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
tax_code,
po_header_id,
po_line_id,
po_line_location_id,
po_distribution_id,
quantity_invoiced,
tax_code_override_flag,
dist_code_combination_id,
tax_recoverable_flag,----1.4
tax_recovery_rate,----1.4
org_id,
attribute15)
VALUES
(x_invoice_id,
x_invoice_line_id,
x_line_number,
x_line_type_lookup_code,
x_amount,
x_accounting_date,
x_description,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_creation_date,
x_created_by,
x_tax_code,
x_po_header_id,
x_po_line_id,
x_po_line_location_id,
x_po_distribution_id,
x_quantity_invoiced,
x_tax_code_override_flag,
x_dist_code_combination_id,
x_tax_recoverable_flag,----1.4
x_tax_recovery_rate,----1.4
x_org_id,
x_concatenated_expense);
Run import program.
Regards,
Bilal SARIOZ -
Importing Service Invoices with description in document line
Hello,
I am importing service invoice but also want the put in the description.
I don't know which field i need to use for the description. Below you see 1 line, it import oke but without the description field.
document_lines
RecordKey AccountCode Description VatGroup Linetotal
RecordKey AccountCode Description VatGroup Linetotal
1 2910 factuur 1 A0 1500.00
i use oinvoices with DTW i can't find / use the description field in document_lines????
Can somebody advice??
MarkHello Mark,
The column is named ItemDescription. You have to include DocType field on the title file too.
Thanks,
Gordon -
INVOICE의 TAX LINE TYPE이 'IPI' 로 생성
제품 : FIN_AP
작성날짜 : 2003-05-12
INVOICE의 TAX LINE TYPE이 'IPI' 로 생성
==================================
PURPOSE
AP Period Closing 시 발생하는 data 문제를 아래 방법으로 해결한다.
Problem Description
Oracle Applications 11i
Ap Period closing 을 할 수 없고 다음과 같은 Error가 발생한다.
"Total debits are not equal to total credits in base currency for
the invoice"
원인을 살펴보면 Invoice의 tax line type이 'ipi'로 저장되었음을 알 수 있다.
Workaround
Solution Description
1. Unaccounting script를 수행한다.
2. 다음 문장을 수행한다.
- 1. select LINE_TYPE_LOOKUP_CODE
from AP_INVOICE_DISTRIBUTIONS_ALL
where INVOICE_ID = (enter the invoice id whose type is ipi)
- 2. UPDATE AP_INVOICE_DISTRIBUTIONS_ALL
SET LINE_TYPE_LOOKUP_CODE = TAX
WHERE INVOICE_ID = <from above>
3. 다시 Accounting 처리하고 Period Close 한다.
Reference Documents
Note 178291.1 -
Auto Invoice Import Program is not grouping by Transaction Type
Hi All,
The Auto Invoice Master program which inturn spwans Auto invoice Import program is not grouping by Transaction type. It is printing for each transaction individually.
What could be the reason for this to happen?
Please let me know.
Thanks,
PrathimaDear,
You must define "Auto-Invoice Grouping Rules". Define Group by column of the interface table where u are moving transaction type.
Hope it will helps u
Regards -
How to not select an invoice if a certain line item type is present?
Hi,
I've created a report that lists all invoices that have a particular line item type on it. For example, I wanted to produce a revenue report by item type, "P-Tank". So, the invoice table links to the invoice line items table. Each line item record has a "resource id" on it. The resource id links to the resource type table. So, if invoice #8 has, say, three line items and one of them has a resource type of "P-Tank" then I report on it. Basically, I'm making a report grouped by Resource ID and the Resource ID must by of Resource Type 1, 2 or 3. So, this report I've solved.
Now, I want to report on those invoices that do not have either a resource type 1, 2 or 3 item on it. If I use a formula:
"Not ({resource_type.resource_type_id} in [1, 2, 3]) that doesn't work because it just omits the line item that is of resource type 1, 2 or 3....but still leaves the invoice on the report with the other line item types. * I want to identify any and all invoices that do not have either a line item resource type 1, 2, or 3 on it.*
Any help is much appreciated!
thx,
MarkHi Abhilash,
That didn't seem towork. I'll simplify the example to see if we can find the answer easier this way.
I'm using two tables: invoice; and invoice_items
An invoice can have many items on it.
I don't want my query to select any invoices that have a Tank item on it (Tank has a resource id = 8).
So, I'll join the invoice table to the invoice_items table:
invoice.invoice_id = invoice_items.invoice_id.
The result set looks like the following:
Invoice # Invoice Item # Invoice Resource ID
22 1 8
22 2 9
23 1 5
So, because Invoice #22 has a line item with resource id = 8 on it I do not want Invoice #22 to appear on the report at all, regardless of what other items and resource id's are on it.
I have tried joining the two tables in every manner (e.g. inner, outer, not enforced, enforced, etc) and even when I put the condition, invoice_items.resource_id <> 8, it still brings up Invoice #22 but just omits the one line item and leaves the record with resource id 9 (in the example above). I don't want Invoice #22 to appear at all in the report.
Does that help clarify the problem?
thx,
Mark -
PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
제품 : FIN_AP
작성날짜 : 2005-05-10
PAYABLES OPEN INTERFACE INVOICE IMPORT 시 REQUIRED FIELD 정보
==========================================================
PURPOSE
AP Open Interface Invoice Import 를 통해 Invoice 를 생성 코자 할 경우 반드시 필요한 Field 에 대한 정보이다.
Explanation
1. PO 나 Project 과 Match 하지 않는 Invoice Case
Table : AP_INVOICE_INTERFACE
==============================
Required Columns
================
-INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
-INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
-VENDOR_ID/VENDOR_NUM/VENDOR_NAME : Active 하여야 하며 PO_VENDORS과 Mapping
-VENDOR_SITE_ID/VENDOR_SITE_CODE : Active 한 Site 여야 하며 PO_VENDOR_SITES table과 mapping
-INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
-ORG_ID : AP_SYSTEM_PARAMETERS.ORG_ID
-SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE' 중 하나
Table : AP_INVOICE_LINES_INTERFACE
==================================
Required Columns for LINE_TYPE_LOOKUP_CODE = 'ITEM'
===================================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE :'ITEM'
-AMOUNT
-ACCOUNTING_DATE: Optional. Defaulted from INVOICE_DATE or SYSDATE
- DIST_CODE_CONCATENATED / DIST_CODE_COMBINATION_ID
: select code_combination_id from gl_code_combinations
where account_type = 'E' and enabled_flag = 'Y'
and summary_flag = 'N'
and sysdate between nvl(start_date_active, sysdate-1)
and nvl(end_date_active, sysdate+1))
Required Columns for LINE_TYPE_LOOKUP_CODE = 'TAX'
===================================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE : 'TAX'
-TAX_CODE / TAX_CODE_ID : AP_TAX_CODES_ALL table에서 mapping
-AMOUNT
-ACCOUNTING_DATE : Optional. Defaulted from INVOICE_DATE or SYSDATE
-DIST_CODE_CONCATENATED or DIST_CODE_COMBINATION_ID
: select code_combination_id from gl_code_combinations
where account_type = 'E' and enabled_flag = 'Y'
and summary_flag = 'N'
and sysdate between nvl(start_date_active, sysdate-1)
and nvl(end_date_active, sysdate+1))
2. PO Matched Invoice 의 경우 Table: AP_INVOICE_INTERFACE
============================
Required Columns
================
-INVOICE_ID : AP_INVOICES_INTERFACE_S.NEXTVAL를 이용하여 생성됨
-INVOICE_NUM : 특정 Supplier 내에서는 unique 해야함
-PO_NUMBER : approved 된 PO 여야 하며 cancelled, closed 혹은 final closed 된 PO NUMBER 는 안됨. PO_HEADERS Table 과 mapping
-INVOICE_AMOUNT : 'STANDARD' type인 경우에는 양수, 'CREDIT' type인 경우는 음수를 입력
-SOURCE : select lookup_code from ap_lookup_codes where lookup_type='SOURCE'
-ORG_ID : AP_SYSTEM_PARAMETERS_ALL.ORG_ID
Table: AP_INVOICE_LINES_INTERFACE
=================================
Required Columns for PO Matched Lines
=====================================
-INVOICE_ID : AP_INVOICES_INTERFACE.INVOICE_ID
-INVOICE_LINE_ID : AP_INVOICE_LINES_INTERFACE_S.NEXTVAL
-LINE_NUMBER : 해당 invoice 내에서 unique 해야함.
-LINE_TYPE_LOOKUP_CODE : 'ITEM'
-AMOUNT : QUANTITY_INVOICED * UNIT_PRICE
If MATCH_OPTION is 'P', then populate:
-RELEASE_NUM or PO_RELEASE_ID : Blanket Release only, validated against PO_RELEASES_ALL
-PO_NUMBER or PO_HEADER_ID : Validated against PO_HEADER_ALL
-PO_LINE_NUMBER or PO_LINE_ID : Validated against PO_LINES_ALL
-PO_SHIPMENT_NUM or PO_LINE_LOCATION_ID : Validated against PO_LINE_LOCATIONS_ALL
If MATCH_OPTION is 'R', then populate:
-RECEIPT_NUMBER : RCV_SHIPMENT_HEADERS.RECEIPT_NUM
-RCV_TRANSACTION_ID or PO_LINE_LOCATION_ID : RCV_TRANSACTIONS과 Mapping
Example
Reference Documents
Note 205331.1Chandrasekar,
as i know, the main thing you should consider is, that starting from R12 you will
be able to import invoices only through the Payables Open Interface.
basically, Invoice Import is used by OA to create invoice (from expense reports or from Oracle Projects). for standard invoice import, i've ever used Payables Open Interface.
Milan
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Chandrasekara Kayamboo ([email protected]):
I would like to know which is the best way to import invoice and what are the advantages and disadvange in each.
Regards
Chandrasekar<HR></BLOCKQUOTE>
null -
TAX code error in ar Auto Invoice Import
Hi All,
I am getting error in Auto Invoice Import program
Unable to find a default tax code for this transaction.
==========================================
BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
Page: 1 of 4
Request Id: 936978
Batch Source: HANSENS
Transaction Flexfield:
Transaction Type:
Bill To Customer Number: to
Bill To Customer Name: to
GL Date: to
Ship Date: to
Transaction Number: to
Sales Order Number: to
Transaction Date: to
Ship To Cust Number: to
Ship To Cust Name: to
Interface Lines:
Selected: 2
Successfully Processed: 0
Rejected: 2
Interface Salesreps:
Selected: 0
Successfully Processed: 0
Rejected: 0
Interface Distributions:
Selected: 0
Successfully Processed: 0
Rejected: 0
Transactions Created:
BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
Page: 2 of 4
Request Id: 936978
Grand Totals:
Number of Number of Number of Number of
Class Transactions Lines Sales Credits Distributions Invoice Amount
0.00
BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
Page: 3 of 4
Request Id: 936978
BT Taiwan AutoInvoice Execution Report Date: 22-JUL-2009 12:33
Page: 4 of 4
Request Id: 936978
Summary of Receipts Processed :
Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
Page: 1 of 3
Auto Invoice Request Id 936978
Batch Source: HANSENS
Transaction Flexfield: HANSENS: BT5830000575.1
Type Bill to Customer Name Item Description Currency Amount
Invoice Merrill xx Pierce, xxr & Smith Inc Audio TWD 167.00
Errors: 1) Unable to find a default tax code for this transaction.
Transaction Flexfield: HANSENS: BT5830000575.2
Type Bill to Customer Name Item Description Currency Amount
Invoice Merrill xx Pierce, xx & Smith Inc VAT TWD 8.00
Errors: 1) Unable to find a default tax code for this transaction.
Summary of Transactions Rejected:
Currency Number of Number of Number of
Code Lines Sales Credits Distributions Invoice Currency Amount
TWD 2 0 0 175.00
Summary of Transactions with Errors:
Currency Number of Number of Number of
Code Lines Sales Credits Distributions Invoice Currency Amount
TWD 2 0 0 175.00
BT Taiwan AutoInvoice Validation Report Date: 22-JUL-2009 12:33
Page: 2 of 3
Auto Invoice Request Id 936978
Batch Source: HANSENS
BT Taiwan AutoInvoice Exception Report Date: 22-JUL-2009 12:33
Page: 3 of 3
Auto Invoice Request Id 936978
Batch Source: HANSENS
==========================================
I have checked in Memo Lines all exists.
Please suggest.
Thanks in advance,
Ajit
Edited by: Ajit Raut on Jul 21, 2009 7:39 PMHi Ajit
Please Check if TAX is enabled in Transaction Type.
regards
raghu -
Import AP/Invoices with DTW
Hello,
We tried to import AP invoices with purchase items only (no stock/sales item) and have a problem with importing an AP invoices with the same purchase item on different rows in the invoice. Import is succesfull but if i have item 5020 on row 1 and 4 , row 1 will be overwritten by row 4 in the import.
Is there an option to define this in DTW.
Could it be a problem with the summary type OPCH.SummryType ?
Thanks
Mark
Edited by: M. Hageman on Mar 13, 2009 9:03 AMYou may try to DTW a different ItemCode for line 4 first. Then DTW again by updating this line only. It should allow system to bypass ItemCode checking.
Thanks,
Gordon -
In R12 standard Auto Invoice Import program is erroring out
Hi All,
The standard Auto Invoice Import concurrent porgram is erroring out when i run for the source as 'SUM_DIF', in the log messages its showing the following error:
UPDATE RA_INTERFACE_LINES L1
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2,
LAST_UPDATE_LOGIN = :b3,
CUSTOMER_TRX_ID = NULL,
INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
LINK_TO_LINE_ID =
SELECT INTERFACE_LINE_ID
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b5
AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
WHERE NVL(INTERFACE_STATUS, '~') != 'P'
AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
AND EXISTS
SELECT 'x'
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b7
AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
len = 1289
Current system time is 18-SEP-2008 21:35:19
APP-AR-11526: ORA-01427: single-row subquery returns more than one row
UPDATE RA_INTERFACE_LINES L1
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = !
APP-AR-11526: 5069629/ar/src/autoinv/raamil.lpc 1342
UPDATE RA_INTERFACE_LINES L1
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2,
LAST_UPDATE_LOGIN = :b3,
CUSTOMER_TRX_ID = NULL,
INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID,
RA_CUSTOMER_TRX_LINES_S.NEXTVAL),
SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
LINK_TO_LINE_ID =
SELECT INTERFACE_LINE_ID
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b5
AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
WHERE NVL(INTERFACE_STATUS, '~') != 'P'
AND (REQUEST_ID IS NULL OR REQUEST_ID IN (:b6)
AND EXISTS
SELECT 'x'
FROM RA_INTERFACE_LINES L2
WHERE L2.REQUEST_ID = :b7
AND L2.INTERFACE_LINE_CONTEXT = 'SUM_DIF'
AND L1.LINK_TO_LINE_CONTEXT = L2.INTERFACE_LINE_CONTEXT
AND L1.LINK_TO_LINE_ATTRIBUTE13 = L2.INTERFACE_LINE_ATTRIBUTE13
AND L1.LINK_TO_LINE_ATTRIBUTE14 = L2.INTERFACE_LINE_ATTRIBUTE14
AND L1.LINK_TO_LINE_ATTRIBUTE15 = L2.INTERFACE_LINE_ATTRIBUTE15
AND L1.LINK_TO_LINE_ATTRIBUTE1 = L2.INTERFACE_LINE_ATTRIBUTE1
Error calling raamil()
Error calling raapft()
Thanks,
Ramakrishna.
Edited by: user605279 on Sep 18, 2008 11:59 PMRamakrishna
Looks like this is for the tax line (based on the fact that it is trying to update the link_to_line_id). The issue seems to be from the duplicate interface_line_attributes for the two different lines.This leads to this query returning more than one row for the tax line when it is trying to update.
For two different lines, make one of your interface_line_attributes (in this query I see 1, 13, 14, 15) unique.
Thanks
Nagamohan -
Hi Guys, I hope so you are Well.
I am facing a little problem in AP Invoice import when i am entring projectid and task id.without project and task id it is ok.
ERROR: "INSUFFICIENT PA INFO: in ap_invoice _lines table
Kindly guide me .
Regards,
SKHave you seen this as per the manual =>
Insufficient PA Info. You must provide values for all of the following Projects
columns: PROJECT_ID, TASK_ID, EXPENDITURE TYPE,
EXPENDITURE_ITEM_DATE, AND EXPENDITURE_ORGANIZATION_ID.
If this helps then points are appreciated.
regards,
Robert. -
AP invoice import and PO matching
Hi All,
I need to import AP invoices through payables open interface and it should automatically match the corresponding purchase order.
Please tell me the steps that I need to follow in order to achieve that.
If there are any documents please share with me.
And also tel me what should be the link in the AP invoice transfer file to the purchase order.( Is it the po line number)
Thanks ,
MPopulate tables
ap_invoices_interface;
ap_invoice_lines_interface;
You can take a look the logic in AP_IMPORT_INVOICES_PKG.
Like as;
INSERT INTO ap_invoices_interface
(invoice_id,
invoice_num,
invoice_type_lookup_code,
invoice_date,
exchange_date,
exchange_rate_type,
vendor_id,
vendor_site_id,
invoice_amount,
invoice_currency_code,
terms_name,
doc_category_code,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
SOURCE,
accts_pay_code_combination_id,
org_id,
attribute15)
VALUES
(x_invoice_id,
x_invoice_num,
x_invoice_type_lookup_code,
x_invoice_date,
x_exchange_date,
x_exchange_rate_type,
x_vendor_id,
x_vendor_site_id,
x_invoice_amount,
x_invoice_currency_code,
x_terms_name,
x_doc_category_code,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_creation_date,
x_created_by,
x_source,
x_accts_pay_code_com_id,
x_org_id,
x_vendor_site_code);
INSERT INTO ap_invoice_lines_interface
(invoice_id,
invoice_line_id,
line_number,
line_type_lookup_code,
amount,
accounting_date,
description,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
tax_code,
po_header_id,
po_line_id,
po_line_location_id,
po_distribution_id,
quantity_invoiced,
tax_code_override_flag,
dist_code_combination_id,
tax_recoverable_flag,----1.4
tax_recovery_rate,----1.4
org_id,
attribute15)
VALUES
(x_invoice_id,
x_invoice_line_id,
x_line_number,
x_line_type_lookup_code,
x_amount,
x_accounting_date,
x_description,
x_last_update_date,
x_last_updated_by,
x_last_update_login,
x_creation_date,
x_created_by,
x_tax_code,
x_po_header_id,
x_po_line_id,
x_po_line_location_id,
x_po_distribution_id,
x_quantity_invoiced,
x_tax_code_override_flag,
x_dist_code_combination_id,
x_tax_recoverable_flag,----1.4
x_tax_recovery_rate,----1.4
x_org_id,
x_concatenated_expense);
Run import program.
Regards,
Bilal SARIOZ -
Error in AR - Auto Invoice Import Program
Hi,
Please help me out for AR - Auto Invoice Import Program.
When i am running Auto Invoice Import Program in UAT instance then its getting completed but with error and error is not reflecting in RA_INTERFACE_ERRORS_ALL table.
Initially when i ran Interface Program in CRP instance then the program was successfull, but in UAT instance it is giving error,
The Log is as follows, Its a big log but to get an idea please find the few starting lines of the same.
Regards,
Sitesh
org parameter (raamai) = ~91~
raassc()+ Current system time is 02-APR-2012 01:42:57
org parameter (raassc) character = ~91~
org parameter (raassc) numeric = ~91~
raassc()- Current system time is 02-APR-2012 01:42:57
raagsp()+ Current system time is 02-APR-2012 01:42:57
raagsp()- Current system time is 02-APR-2012 01:42:57
raaini()+ Current system time is 02-APR-2012 01:42:57
raaapx()+ Current system time is 02-APR-2012 01:42:57
raaapx()- Current system time is 02-APR-2012 01:42:57
raagbo()+ Current system time is 02-APR-2012 01:42:57
Dumping data fetched from RA_BATCH_SOURCES
batch_source_id = 1141
batch_source_name = Export Entry
auto_trx_numbering_flag = N
copy_doc_number_flag = N
cust_trx_type_rule = I
sold_customer_rule = R
bill_customer_rule = R
bill_address_rule = R
bill_contact_rule = N
ship_customer_rule = R
ship_address_rule = R
ship_contact_rule = N
memo_reason_rule = R
term_rule = I
invoicing_rule_rule = R
accounting_rule_rule = R
unit_of_measure_rule = R
agreement_rule = R
inventory_item_rule = R
fob_point_rule = S
ship_via_rule = S
invalid_lines_rule = R
salesperson_rule = I
sales_credit_type_rule = I
accounting_flexfield_rule = R
invalid_tax_rate_rule = R
rev_acc_allocation_rule = P
gl_date_period_rule = R
create_clearing_flag = N
derive_date_flag = Y
sales_credit_rule = P
sales_territory_rule = R
receipt_method_rule = R
customer_bank_account_rule = R
related_document_rule = R
memo_line_rule = R
allow_sales_credit_flag = Y
receipt_handling_option = N
allow_duplicate_trx_num_flag = N
raagbo()- Current system time is 02-APR-2012 01:42:57
raaggi()+ Current system time is 02-APR-2012 01:42:57
raagixpfx = 0
raagixtpf = 0
raagixddf = 1
raagixacf = 0
raagixagd = 0
raagixatn = 0
raagixadn = 0
raagixcte = 0
raagixdfd =
raagixctc = 1683960112
raagixrmx = T
raagixfdx = 02-APR-12
raagixbix =
raagixbsi = 1141
raagixbnx = Export Entry
raagixoix = 91
raagixrix = 3584119
raagixpix = 20428
raagixpai = 222
raagixuix = 1458
raagixunx = EMS
raagixanx = AR
raagixlul = 2968171
raagixasc = 1
raagixrho = N
raagixrsf = 0
raagixcbf = 0
raagixuax = 1
raagixsnf = 0
raagixtao = 1
raagixptf = 1
raagixstf = 0
raagixrfi = 0
raagixtac = 0
raagixcai = 50388
raagixsbi = 2022
raagixcpr = 2
raagixmau =
raagixmlx = 3
raagixmbx = 99999999
raagixafp = Account
raagixifp = Item
raagixtfp = Sub-branch
Argbdf = 1
Argddo = -9999
raaggi()- Current system time is 02-APR-2012 01:42:57
raaseb()+ Current system time is 02-APR-2012 01:42:57
raaseb()- Current system time is 02-APR-2012 01:42:57
arcdsu()+ Current system time is 02-APR-2012 01:42:57
arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
arcdsu() Use Invoice Accounting For Credit Memo: Y
arcdsu()- Current system time is 02-APR-2012 01:42:57
raaini()- Current system time is 02-APR-2012 01:42:57
raapft()+ Current system time is 02-APR-2012 01:42:57
raagtr()+ Current system time is 02-APR-2012 01:42:57
crb->raaucrpn = RAXTRX
crb->raaucrcr = 3584119
crb->raaucrnt = 0
crb->raaucrml = 3
raagtr()- Current system time is 02-APR-2012 01:42:57
raamil()+ Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raacrf()+ Current system time is 02-APR-2012 01:42:57
raacrf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
raaasf()+ Current system time is 02-APR-2012 01:42:57
raaasf()- Current system time is 02-APR-2012 01:42:57
UPDATE RA_INTERFACE_LINES
SET REQUEST_ID = :b1,
LAST_UPDATE_DATE = sysdate,
LAST_UPDATED_BY = :b2,
LAST_UPDATE_LOGIN = :b3,
SET_OF_BOOKS_ID = NVL(SET_OF_BOOKS_ID, :b4),
ORG_ID = NVL(ORG_ID, :b5),
TRX_DATE = TRUNC(TRX_DATE),
GL_DATE = TRUNC(GL_DATE),
ORIGINAL_GL_DATE = TRUNC(GL_DATE),
CONVERSION_DATE = TRUNC(CONVERSION_DATE),
PURCHASE_ORDER_DATE = TRUNC(PURCHASE_ORDER_DATE),
RULE_START_DATE = TRUNC(RULE_START_DATE),
RULE_END_DATE = TRUNC(RULE_END_DATE),
SALES_ORDER_DATE = TRUNC(SALES_ORDER_DATE),
SHIP_DATE_ACTUAL = TRUNC(SHIP_DATE_ACTUAL),
CUSTOMER_TRX_ID = NULL,
INTERFACE_LINE_ID = NVL(INTERFACE_LINE_ID, RA_CUSTOMER_TRX_LINES_S.NEXTVAL)
WHERE NVL(INTERFACE_STATUS, '~') != 'P'
AND (REQUEST_ID IS NULL OR REQUEST_ID IN (3584119))
AND BATCH_SOURCE_NAME = 'Export Entry'
AND TRX_NUMBER = 'E512000002' AND LINK_TO_LINE_ATTRIBUTE1 IS NULL
AND LINK_TO_LINE_ATTRIBUTE2 IS NULL
AND LINK_TO_LINE_ATTRIBUTE3 IS NULL
AND LINK_TO_LINE_ATTRIBUTE4 IS NULL
AND LINK_TO_LINE_ATTRIBUTE5 IS NULL
AND LINK_TO_LINE_ATTRIBUTE6 IS NULL
AND LINK_TO_LINE_ATTRIBUTE7 IS NULL
AND LINK_TO_LINE_ATTRIBUTE8 IS NULL
AND LINK_TO_LINE_ATTRIBUTE9 IS NULL
AND LINK_TO_LINE_ATTRIBUTE10 IS NULL
AND LINK_TO_LINE_ATTRIBUTE11 IS NULL
AND LINK_TO_LINE_ATTRIBUTE12 IS NULL
AND LINK_TO_LINE_ATTRIBUTE13 IS NULL
AND LINK_TO_LINE_ATTRIBUTE14 IS NULL
AND LINK_TO_LINE_ATTRIBUTE15 IS NULLHi Pk,
in log file i found the below:
arcdsu() error level: 3 array size: 99999999 insert array size: 99999999
and
raaafs()+ Current system time is 02-APR-2012 01-42-57
Failed to allocate memory for memptr
Error calling raaafs()
Error calling raaffc()
Error calling raaaui()
is it related to memory size????????
let me know
Regards,
SItesh -
Invoice document against PO condition type
Hello,
I am developing a landed cost sheet of a Import PO in which i have to display the exchange rate and total value against condition types(in PO). This exchange rate and value is to be taken from the invoice document against the relevant condition type. [Purchase Order History tab is displaying the associated Invoice(RE) against the condition types. How r the invoice kept against condition types in SAP ? and how can i retrieve these values against a cond type thru abap code... ?
Hope i am comprehendable and sumone can provide me a reasonable solution ?
Thanks,
Shehryar DaharHi
You need to fetch the data from EKBE and KONV tables
Table EKBE has the invoice Number and PO number etc
Take KNUMV field of this table and pass to KONV-KNUMV table
and take the related Rate(KBETR) and Amount(KWERT) fields for the related Condition type and use
<b>Reward points for useful Answers</b>
Regards
Anji -
Invoice document against PO condition types
Hello,
I am developing a landed cost sheet of a Import PO in which i have to display the exchange rate and total value against condition types(in PO). This exchange rate and value is to be taken from the invoice document against the relevant condition type. [Purchase Order History tab is displaying the associated Invoice(RE) against the condition type. How r the invoice kept against condition types in SAP ? ... Hope i am comprehendable and sumone can provide me a reasonable solution ?
Thanks,
Shehryar DaharHi,
When you post an invoice you can indicate if this relates to the items, the delivery costs (conditions) or both. You do this by selecting the correct option from the "pull down list" in the centre of the MIRO screen.
So if you select delivery costs only, then the invoice relates directly to the condittion types on the PO for the delivery costs.
Steve B
Maybe you are looking for
-
P1102w no longer working on wireless, lights don't blink
I just moved and have not been able to get the wireless working on my printer. We have an apple time capsule (airport) router that moved with us, so it should be the same wireless network we connect through. Tried reinstalling, but when I go through
-
Photo albums not appearing in site on own server
Hi, I have a small personal site, www.baskie.com it's built (badly!) using iWeb and it's hosted on my own server. When I used iWeb 08, published to a folder, then uploaded to my server using an FTP client as was well, now with iWeb09 I have set thing
-
Query Drill Down without affecting the structure layout
Hi All, We have a query which has structure both in Rows & Columns . When we drilldown ( WAD ) the drilldown characteristics goes within the structure . What i want is even we drilldown the sturcture layout shoud not chnage . For example the struct
-
My new ipod touch say it has been disabled for 21,728,990 minutes.How do i fix that!
-
WLC Applying cached RADIUS Override values for mobile
Hello! We have a WiSM2 (version 7.4.110.0) with approx 200 APs. We are doing RADIUS authentication via a PacketFence backend. Everything usually works fine, but we are having an intermittent issue... The WiSM2 gets its VLAN assignment for a client fr