Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
JUNE 2009
Contributors:
Versions:
1 June, 2009
Contents
Introduction..................................................................................................................................3 Objective...............................................................................................................................3 Scope.....................................................................................................................................3 Background...........................................................................................................................3 Importing Tax Lines Using the Payables Open Interface.............................................................4 Overview...............................................................................................................................4 Interface tables......................................................................................................................4 Important Considerations while Importing Invoices with Tax Lines....................................4 Important Tax Driver Columns.............................................................................................5 Use Case Scenarios .......................................................................................................................6 Use Case 1: System Calculated Taxes..................................................................................6 Use Case 2: Exclusive Manual Tax ......................................................................................6 Use Case 3: Exclusive Manual Tax Applicable to All Item Lines........................................6 Use Case 4: Exclusive Manual Tax Line Not Applicable to All Item Lines........................7 Use Case 5: Multiple Exclusive and Manual Tax Lines.......................................................7 Use Case 6: Multiple Exclusive and Manual Tax Lines, Not All Lines have Tax...............8 Use Case 7: Multiple Exclusive and Manual Tax Lines, One Tax Line Prorated Across Many Lines............................................................................................................................9 Use Case 8: Multiple Exclusive and Manual Tax Lines, Same Regime to Rate Information............................................................................................................................9 Use Case 9: Inclusive Manual Tax......................................................................................10 Use Case 10: Inclusive Manual Tax Line Applicable to All Lines.....................................10 Use Case 11: Multiple Inclusive and Manual Tax Lines....................................................11 Information Sources...................................................................................................................12
Introduction
Objective
The objective of this document is to provide various business use cases for how to populate tax line information in the ap_invoice_lines_interface that need to be imported through the Payables Invoice Import process. This document focuses on importing tax lines in R12.
Scope
This document defines use cases for importing invoices using Payables Open Interface Import with Tax lines. This document covers following scenarios: Importing invoices which allow the system to calculate taxes after import Importing exclusive manual tax lines Importing inclusive manual tax lines
Background
The Payables Import Process provides the ability to import invoices from other sources, either for upgrade to R12 or as a part of their regular business processes if invoices are provided as part of a feeder system.
Overview
The Payables Invoice Import is a concurrent request that should be submitted from an Accounts Payable (AP) responsibility. The purpose of the program is to interface invoice lines either from another module in Oracle Applications or for a system. The import
Interface tables
There are two tables that hold the data to be imported AP_INVOICES_INTERFACE AP_INVOICE_LINES_INTERFACE
Additionally, the following table holds the rejection reasons if an invoice is not successfully imported. AP_INTERFACE_REJECTIONS
This setup is valid only for system calculated tax lines and not relevant for manually imported tax lines 3. For non-recoverable tax, the distribution will get the account from its corresponding ITEM line or EXPENSE account. For recoverable tax, the distribution will get the account from the account set up done at either Recover Rate or Tax rate and if neither are setup, then the interim tax account is used. The Validation process will get these distribution accounts. 4. In R12 you cannot have multiple tax lines with the same regime to rate information being allocated to a single item line. Single regime to rate can be allocated to multiple item lines for an invoice, however multiple tax lines with the same regime to rate information are not supported 5. If CALC_TAX_DURING_IMPORT_FLAG is set to Y during import, EB Tax will calculate taxes automatically as per the tax setup. Following columns in AP_INVOICE_LINES_INTERFACE are tax driver columns, which may be used to determine the tax applicability during import:
Oracle/Client Confidential - For internal use only 4
99-999-9999
99-999-9999
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 1 1 Number of TAX rows inserted 1 2
Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 100 1 ITEM Line2 2 ITEM 50 1 TAX Line 3 TAX 15 1 Y A B C D
99-999-9999
88-888-8888
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 2 2 Number of TAX rows inserted 1 4
Use Case 4: Exclusive Manual Tax Line Not Applicable to All Item Lines
Example: An invoice with three ITEM lines of 200 USD, 100 USD and 50 USD and one TAX line (manual and exclusive) of 30 USD. The TAX is applicable to only two ITEM lines of 200 USD and 100 USD. Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 200 1 ITEM Line2 2 ITEM 100 1 ITEM Line3 3 ITEM 50 TAX Line 4 TAX 30 1 Y A B C D
99-999-9999
88-888-8888
77-777-7777
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 3 3 Number of TAX rows inserted 1 4
Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 100 1 ITEM Line2 2 ITEM 50 2 TAX Line1 3 TAX 10 1 Y P Q R S TAX Line2 4 TAX 5 2 Y A B C D
99-999-9999
88-888-8888
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 2 2 Number of TAX rows inserted 2 4
Use Case 6: Multiple Exclusive and Manual Tax Lines, Not All Lines have Tax
Example: An invoice with four ITEM lines of 200USD, 150USD, 100 USD and 50 USD and two TAX lines (manual and exclusive). ITEM line of 200USD AND 150USD are associated with TAX line having TAX RATE CODE D and ITEM line of 100 USD is associated with TAX RATE CODE OF S. ITEM line of 50 USD does not have any tax associated with it Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 200 1 ITEM Line2 2 ITEM 150 1 ITEM Line3 3 ITEM 100 2 ITEM Line4 4 ITEM 50 TAX Line1 5 TAX 10 2 Y P Q R S TAX Line2 6 TAX 35 1 Y A B C D
99-9999999
88-8888888
77-7777777
66-6666666
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 4 4 Number of TAX rows inserted 2 6
Use Case 7: Multiple Exclusive and Manual Tax Lines, One Tax Line Prorated Across Many Lines
Example: An invoice with four ITEM lines of 200 USD, 150 USD, 100 USD and 50 USD and two TAX lines (manual and exclusive). The ITEM line of 100 USD is associated with TAX line having TAX RATE CODE S and TAX line with TAX RATE CODE with D will be prorated across all the four ITEM lines Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 200 ITEM Line2 2 ITEM 150 ITEM Line3 3 ITEM 100 1 ITEM Line4 4 ITEM 50 TAX Line1 5 TAX 10 1 Y P Q R S TAX Line2 6 TAX 50 Y A B C D
99-9999999
88-8888888
77-7777777
66-6666666
After the Payables Import Process completes, the following number of rows should be inserted in the main tables. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 4 4 Number of TAX rows inserted 2 10
Use Case 8: Multiple Exclusive and Manual Tax Lines, Same Regime to Rate Information
Example: An invoice with two ITEM lines of 100 USD and 50 USD and two TAX lines (manual and exclusive) but with same Regime to Rate information. Populate data in AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED ITEM Line1 1 ITEM 100 1 ITEM Line2 2 ITEM 50 2 TAX Line1 3 TAX 10 1 Y A B C D TAX Line2 4 TAX 5 2 Y A B C D
99-999-9999
88-888-8888
After the Payables Import Process completes, when tax is calculated either by clicking on Calculate Tax button or during invoice validation two TAX lines imported will be merged to single tax line and only one row will be inserted into AP_INVOICE_LINES_ALL. Table Name AP_INVOICE_LINES_ALL Number of ITEM rows inserted 2 Number of TAX rows inserted 1
9
AP_INVOICE_DISTRIBUTIONS_ALL
99-999-9999
After the Payables Import Process completes, there will be no TAX line inserted for inclusive tax in AP_INVOICE_LINES_ALL and this tax is not visible in Invoice lines region of Invoice workbench. Inclusive tax details can be viewed in Tax Summary and Tax Detail window. Distributions corresponding to the Inclusive tax can be viewed in Invoice Distributions window. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 1 1 Number of TAX rows inserted 0 2
Use Case 10: Inclusive Manual Tax Line Applicable to All Lines
Example: An invoice with two ITEM lines of 100 USD and 50 USD and one TAX line (manual and inclusive) of 15 USD Set the INCL_IN_TAXABLE_LINE_FLAG to Y for the tax line and populate the data in the AP_INVOICE_LINES_INTERFACE as below: Interface Column Name LINE_NUMBER LINE_TYPE_LOOKUP_CODE AMOUNT LINE_GROUP_NUMBER PRORATE_ACROSS_FLAG TAX_REGIME_CODE TAX TAX_STATUS_CODE TAX_RATE_CODE DIST_CODE_CONCATENATED INCL_IN_TAXABLE_LINE_FLAG ITEM Line1 1 ITEM 100 1 ITEM Line2 2 ITEM 50 1 TAX Line 3 TAX 15 1 Y A B C D Y
99-999-9999
88-888-8888
10
After the Payables Import Process completes, there will be no TAX line inserted for inclusive tax in AP_INVOICE_LINES_ALL and this tax is not visible in Invoice lines region of Invoice workbench. Inclusive tax details can be viewed in Tax Summary and Tax Detail window. Proration of tax amount for each ITEM line details can be viewed from Tax Detail window. Distributions corresponding to the Inclusive tax can be viewed in Invoice Distributions window. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 2 2 Number of TAX rows inserted 0 4
99-999-9999
88-888-8888
After the Payables Import Process completes, there will be no TAX line inserted for inclusive tax (TAX Line1) in AP_INVOICE_LINES_ALL and this tax is not visible in Invoice lines region of Invoice workbench. Inclusive tax details can be viewed in Tax Summary and Tax Details window. Distributions corresponding to the Inclusive tax can be viewed in Invoice Distributions window. Table Name AP_INVOICE_LINES_ALL AP_INVOICE_DISTRIBUTIONS_ALL Number of ITEM rows inserted 2 2 Number of TAX rows inserted 1 4
11
Information Sources
12