Beruflich Dokumente
Kultur Dokumente
White Paper
Maya Jonipelliwar
Oracle applications E-business Suite
Receivables.
Autoinvoice Interface
Confidentiality Statement
Confidential
Autoinvoice Interface
Abstract
The white Paper intends to explain the concept of AR interface in oracle applications 11i
used to load the AR Invoices into oracle applications receivables module from the legacy
system. The document Covers the detailed step by step process used to load the invoices
in AR from a legacy system that may include any third party application or flat files.
The White Paper covers the detailed technical aspects including the table
names,validations and the standard concurrent program names to load the invoices using
the standard oracle AR interface also called as AUTOINVOICE INTERFACE.It also
covers the basic required functional setup for the AUTOINVOICE functioning that
mainly involves the grouping rule.
Confidential
Autoinvoice Interface
Confidential
Autoinvoice Interface
CONTENTS
INTRODUCTION ........................................................................................................................................6
STEPS TO IMPORT AR INVOICES ........................................................................................................ 7
CREATING CUSTOM TABLES IN ORACLE APPS ................................................................................... 7
LOAD THE DATA IN CUSTOM TABLES .............................................................................................. 7-9
VALIDATE THE INVOICE DATA & LOAD THE DATA INTO STANDARD INTERFACE TABLES 9-11
RUN THE STANDARD AUTOINVOICEPROGRAM...11
CONCLUSION........................................................................................................................................... 12
ACKNOWLEDGEMENTS ....................................................................................................................... 13
REFERENCES ........................................................................................................................................... 14
Confidential
Autoinvoice Interface
Introduction
AutoInvoice is an interface that can be used to import and validate transaction data from
other financial systems from which one can create invoices, debit memos, credit memos
in oracle application receivables.
Confidential
Autoinvoice Interface
Confidential
Autoinvoice Interface
Example:
load data
infile 'c:\data\mydata.csv'
--- .csv file containing actual data
into table emp ; --- emp is the table name
fields terminated by "," optionally enclosed by '"'
( empno,
Another Sample control file with in-line data formatted as fix length records. The trick is
to specify "*" as the name of the data file, and use BEGINDATA to start the data section
in the control file:
load data
infile *
replace
into table departments
( dept
position (02:05) char(4),
deptname position (08:27) char(20)
)
begindata
COSC COMPUTER SCIENCE
ENGL ENGLISH LITERATURE
MATH MATHEMATICS
POLY POLITICAL SCIENCE
Importing data using materialized views:Data could be imported into oracle apps from the third party applications using the
materialized views.A materialized view is a database object that contains the results of a
query. They are the local copies of data located remotely. Thus a materialized view is
created in oracle which acts as a local copy of the invoice data in the tables located on the
third party application servers.The materialized view can be connected to the remote
server using database links. A database link is a schema object in one database that
enables you to access objects on another database.
Confidential
Autoinvoice Interface
Syntax to create Database Link:
CREATE [SHARED] [PUBLIC] DATABASE LINK <link_name>
CONNECT TO CURRENT_USER
USING '<service_name>'
Materialized view creation :
Syntax:
CREATE MATERIALIZED VIEW [schema.]mview
Mview_Options
[USING INDEX storage_options]
[{REFRESH [refresh_options] | NEVER REFRESH]
[FOR UPDATE] [{ENABLE|DISABLE} QUERY REWRITE]
AS subbquery;
Ex: create materialized view mv_test as select * from v_test@dblink_name
Validate the invoice data & loaded the data into standard interface tables
Validate the invoice data coming from legacy system using pl/sql code.Write a
package that covers all the required validations for the column data in the table
and create and register the concurrent program in oracle apps of type pl/sql
package to submit this validation program from the oracle apps front end. Verify
the output of this validation program for any error in the invoice data. In case of
errors, correct the data and reload the invoices.
Here are the example of most commonly performed validations for the AR invoice
data.
Transaction Batch Source Validation: Check if the source provided in data file is
defined in AR transaction Batch source (
RA_BATCH_SOURCES_ALL)
Invoice Currency Validation: Check if the currency provided in data file is defined in
AR Currency (FND_CURRENCIES).
Customer Validation: Check if the Bill to Customer Number, Ship to Customer
Number, Bill to Customer Location, Ship to Customer
Location provided in the data file is defined in AR
Customer(ra_customers,HZ_locations,Ra_addresses_all
etc.).
Confidential
Autoinvoice Interface
Primary Sales Representative Validation: Sales representative number to be
hardcode to -3 for No Sales Credit.
Term Name : Check if the Term name provided in the data file is defined in
Payment terms (RA_TERMS).
Inventory Item Validation: Check if the Item provided in data file is defined in
Inventory Items (MTL_SYSTEM_ITEMS).
Confidential
10
Autoinvoice Interface
The above screen shows the grouping rule for a credit memo and has
interface_line_attribute1, interface_line_attribute2, interface_line_attribute3 and
interface_line_attribute4 columns that are used to group an invoice . Hence when a
line is entered in ra_interface_lines_all table with invoice line and header
information,it must contain data in these four line attributes.When the related account
information for this line from the lines interface table , is entered in the distribution
table with the required account information ,It must contain the data in these four line
attributes that has same values as entered in the lines table .This is how the data in the
ra_interface_lines_all is linked to the data in the ra_interface_distributions_all.
Similarly, the same rule is also followed in case there is a data to be entered in
ra_interface_sales_credits table which is the optional table in Autoinvoice import.
RA_CUSTOMERS_TRX_ALL
RA_BATCHES_ALL
RA_CUSTOMER_TRX_LINES_ALL
RA_CUST_TRX_LINE_GL_DIST_ALL
Confidential
11
Autoinvoice Interface
Conclusion
This Document explains the standard way to load the AR invoices and also
touches the mandatory setup of Grouping Rule needed for the proper functioning of this
interface.There is also an option available to load the invoices using are APIs.The
invoice once loaded can be then Validated and completed to affect the balances.
Confidential
12
Autoinvoice Interface
Acknowledgements
Confidential
13
Autoinvoice Interface
References
http://www.orafaq.com/wiki/SQL*Loader_FAQ
http://www.geekinterview.com/question_details/19355
https://metalink.oracle.com/
Confidential
14