Sei sulla pagina 1di 11

EDI Invoice Inbound 810 • Provide general code conversion

Release 10.7 and 11.0 between trading partner codes or


Qin Wu standard codes
Cheryl Ludwig • Define interface data files so that
Oracle Support application data can interface with
EDI translators
• Extract application data, format, and
Abstract write to data files (outbound
This paper provides an overview of the transactions)
steps to setup and use Oracle EDI • Import data or converted codes into
Invoice Inbound. application open interface tables so
that application program interfaces
(API) can validate and update Oracle
Scope application tables (inbound
I. Overview of Oracle EDI Gateway transactions).
II. How to Setup and Use EDI Invoice
Inbound A common EDI implementation is via
III. Troubleshooting ASCII data files in a batch environment.
Data from the sending application is
extracted into an application data file.
I. Overview of Oracle EDI The application data file is received by
Gateway the translation software which translates
Oracle Applications provides users with it into the EDI standard both trading
the ability to conduct business partners agree upon. Then the EDI data
electronically between trading partners file is placed on a network for
based on the Electronic Commerce transmission to the receiving application.
standards and methodology. One form of The receiving application's EDI
Electronic Commerce is Electronic Data translator receives the EDI data file from
Interchange (EDI). the network and begins the file
EDI is an electronic exchange of processing in reverse sequence. The
information between trading partners. translator translates the EDI data file and
Data files are exchanged in a standard creates an application data file
format to minimize manual effort, speed meaningful to the receiving application.
data processing, and ensure accuracy. The receiving application receives the
The EDI Gateway performs the application data file for processing and
following functions: imports the data into the application.
• Define trading partner groups and
trading partner locations
• Enable transactions for trading Oracle EDI Gateway Product
partners Architecture
• Provide location code conversion
between trading partner location With an open architecture, Oracle
codes and codes used in Oracle Applications allows you to choose the
Applications best translation and electronic
transmission service for your business
requirements. You can use a • Latest PO Patchset (If PO is
commercially available EDI translator installed)
and transmission provider or use a • Latest version of ECEPYO.sql
proprietary solution. The Oracle • Latest version of ecepyo.odf
Applications and the Oracle EDI
Gateway places no restriction on your 1. init.ora Setup
choices. ============================
Add an environment variable
Oracle EDI Gateway is used for both "utl_file_dir" in
inbound and outbound transactions to $ORACLE_HOME/dbs/init.ora
define trading partner locations within a For Example, you are using directory
trading partner group. By defining a "/sqlcom/inbound" as your EDI inbound
trading partner, you do the following: directory, you will need to set
• Enable EDI translations utl_file_dir = /sqlcom/inbound in init.ora
• Establish a link to the location or for your database.
business entity defined in the
Oracle Applications cd $ORACLE_HOME/dbs/
• Establish a link to the trading partner vi init.ora
definition in the EDI translator. add or set: utl_file_dir =
/sqlcom/inbound

II. How To Setup and Use 2. Setup "ECE:Inbound Directory" in


Oracle EDI Invoice Inbound Profile Options
To use the Oracle EDI Payment =============================
Inbound, perform the following tasks: In System Administrator Responsibility,
Navigate to Profile -> System -> Set:
Step 1. Define Data File Directories
To use EDI Gateway, you must first Site = Yes,
create directories where data files, Profile Option "ECE:Inbound Directory"
for both inbound and outbound = /sqlcom/inbound
transactions, are stored. You must then Save it.
specify these in the INIT.ORA file and
in the EDI Gateway profile Note: Setup step 1 and step 2 have to be
options. set to the same directory.

** Make sure that everyone has read,


Prerequisite: You have to be on Rel write, and execute privilege on the
10.7.0.16.1G and 7.3.3.5 or Rel 11. directory /sqlcom/inbound. This path
Apply: needs to be exactly the same as the path
• Latest EDI patchset you have defined in Profile Option.
• Latest AP patchset
3. View your flat file (ECEINI.dat) in WordPad or Notepad.
The following is an example of one invoice:
The first line is called Control record, ftp ECEINI.dat from your PC into your
which contains: EDI Inbound Directory in UNIX:
Type of EDI Transaction Code, ftp ECEINI.dat /sqlcom/inbound
Translator Code, EDI Location Code.
5. Verify the Flatfile:
The second line is for Invoice Header, ======================
which contains: For Example: Your Flatfile =
Invoice Type, Invoice Number, Invoice ECEINI.dat
Date, Invoice Amount.
It should return: PL/SQL procedure
The Third line is for Invoice successfully completed.
Distribution, which contains:
Line Type, Line Number, Amount, and sqlplus apps/password
Expense CCID. ECE_UTILITIES.verify_flatfile(810,'IN
I','/sqlcom/inbound','ECEINI.dat');
4. Copy the Flatfile
================ If it runs successfully, it means that so
For Example: Flatfile Name = far your setup is correct. If not, please go
ECEINI.dat through the above setup again.
6. Define Trading Partners: Group = EDI Invoice Inbound Group,
=========================== Partner = GE_Capital
In EDI Manager Responsibility, Document = Invoice Inbound,
Navigate to: Trading Partners -> Set: Document Type = Standard Invoice,
For Example: Supplier = GE_Capital Translator Code = TR_CODE
7. In AP Manager Responsibility, Navigate to:
Suppliers -> Entry
=================================
Query on Supplier = GE Capital, go to Site

a. Click on alternate region: Electronic Data Interchange,


Set: EDI Location = DANBURY

b. Click on alternate region: Site Uses and Telephone,


Set: Pay Site = Yes

At this point, you have set:

TRANSLATOR CODE = TR_CODE


EDI LOCATION CODE = DANBURY
8. Verify the control line in the flatfile:
===========================

select text from ECE_OUTPUT where text like '%0010%' order by text;

For Example:

Rec: 0010 Pos: 10 Width: 2 Col: COMMUNICATION_METHOD Val= ED


Rec: 0010 Pos: 20 Width: 1 Col: TP_TEST_FLAG Val= P
Rec: 0010 Pos: 30 Width: 6 Col: TP_DOCUMENT_ID Val= INI
Rec: 0010 Pos: 40 Width: 5 Col: DOCUMENT_TYPE Val= INVOI
Rec: 0010 Pos: 50 Width: 2 Col: TP_PURPOSE_CODE Val=
Rec: 0010 Pos: 60 Width: 35 Col: TP_DOCUMENT_CODE Val= EDI_INV01
Rec: 0010 Pos: 70 Width: 30 Col: TRANSLATOR_CODE Val= TR_CODE
Rec: 0010 Pos: 80 Width: 35 Col: TP_LOCATION_CODE_EXT Val= DANBURY
Rec: 0010 Pos: 90 Width: 74 Col: TP_DESCRIPTION Val=
Rec: 0010 Pos: 100 Width: 80 Col: TP_REFERENCE_EXT1 Val=
Rec: 0010 Pos: 110 Width: 80 Col: TP_REFERENCE_EXT2 Val=
Rec: 0010 Pos: 120 Width: 15 Col: TRANSACTION_DATE Val=
Rec: 0010 Pos: 130 Width: 15 Col: RUN_ID Val=
Rec: 0010 Pos: 140 Width: 10 Col: TRANSACTION_CONTROL1 Val=
Rec: 0010 Pos: 150 Width: 10 Col: TRANSACTION_CONTROL2 Val=
Rec: 0010 Pos: 160 Width: 10 Col: TRANSACTION_CONTROL3 Val=

Please make sure:

• All the records are left adjusted.


• The value of TRANSLATOR_CODE = TR_CODE
• The value of TP_LOCATION_CODE_TEXT = DANBURY

9. Verify the invoice header in the flatfile:


==============================

a) Edit ECEINI.dat in WordPad or NotePad.

b) EDI Manager Responsibility, Output Definition,


find Transaction = INI, Level = Invoice Header,

c) select text from ECE_OUTPUT where text like '%1000%' order by text;

Rec: 1000 Pos: 10 Width: 10 Col: INVOICE_TYPE_LOOKUP_CODE val=


STANDARD
Rec: 1000 Pos: 20 Width: 10 Col: INVOICE_NUM Val= EDI_INVO1
Rec: 1000 Pos: 30 Width: 20 Col: INVOICE_DATE Val= 20000815
Rec: 1000 Pos: 40 Width: 20 Col: INVOICE_AMOUNT Val= 123.45
Compare (a),(b),(c), make sure that positions are defined correctly.

10. Verify the invoice distribution in the flatfile:


==================================

a) Edit ECEINI.dat in WordPad or NotePad.

b) EDI Manager Responsibility, Output Definition,


find Transaction = INI, Level = Invoice Line,

c) select text from ECT_OUTPUT where text like '%3000%' order by text;

For Example:

Rec: 3000 Pos: 10 Width: 25 Col: ITEM_LINE_TYPE_CODE+L270 Val=ITEM


Rec: 3000 Pos: 20 Width: 15 Col: INVOICE_LINE_NUMBER_EXT Val=1
Rec: 3000 Pos: 30 Width: 20 Col: AMOUNT Val=123.45
Rec: 3000 Pos: 40 Width: 15 Col: DIST_CODE_COMBINATION_ID Val= 1032775

Compare (a),(b),(c), make sure that positions are defined correctly.


11. Run ECEINI EDI Invoice Inbound
===========================

In EDI Manager Responsibility, Navigate to: Import Programs.


Set Name = EDI Invoice Inbound, Submit the request.

III. Troubleshooting

entity defined in Oracle Applications


1. Note: 2081701.6 (TP Assignment Region).

Problem: INBOUND FLAT FILE NOT 810, 832, 843, 856, 857 TP
IMPORTED INTO INTERFACE associated to Supplier and Supplier Site
TABLES 850 TP associated to Customer
and Customer Site
Solution: Check the following:
3. Make sure the Trading Partner is
1. Make sure the utl_file_dir for enabled for the inbound EDI Document
inbound file directory is defined in the (TP Details Region). Document Type
INIT.ORA file. does not apply to inbound transactions as
2. Make sure a Trading Partner is the assumption is that EDI Gateway will
defined and associated to an address import the entire file.
4. Make sure the EDI Gateway program 3. Note: 106429.1
parameter for file name contains the
correct file name. EDI Gateway will EDI Invoice Inbound Gets Exception
provide a default file name. Do not "No Supplier Found"
include the directory path as part of the
file name. Problem: You are running EDI Invoice
Inbound (ECEINI 810), and are getting
5. Make sure the Translator Code field the exception No Supplier Found.
contains a valid value defined for the The supplier and the site exists in the
Trading Partner (TP Details Region = tables po_vendors and
Record 10, Element 70 in the flat file). po_vendor_sites_all.

6. Make sure the Location Code field Solution: This can be a setup issue.
contains a valid value defined for the Please look into the following:
Trading Partner (TP Header Region =
Record 10, Element 80 in the flat file). 1) Using the EDI Manager
Responsibility, navigate to Trading
Partners.
2. Note: 120365.1 Make sure the following has been set for
the supplier:
ECEINI Doesn't Copy INVOICE_NUM,
INVOICE_DATE From Flatfile Group = <your group>
Partner = <your partner>
Problem: You are using Release Document = Invoice Inbound
10.7.0.16.1. You have EDI Patchset Document Type = Standard Invoice
(898125, 898134) and Translator Code = <your translator
EDI Control Production Patch (898127) code>
applied. You log into your EDI
Responsibility, and run EDI Invoice 2) Using the Payables Manager
Inbound program 810 (ECEINI). Responsibility, navigate to Suppliers ->
INVOICE_NUM, Entry.
INVOICE_AMOUNT, Query on Supplier, go to Site, then the
INVOICE_DATE, and some other Electronic Data Interchange region.
columns are not populated in the table Make sure the following has been set
ap_invoices_interface from the flatfile. for the supplier site:

Solution: This is bug 1381826. Pay Site = Yes,


Please go to Metalink to get patch EDI Location = <your EDI location>*
1381826 applied to have the fix.
Prerequisite patches are: 898125, *The value of EDI Location needs to
898134, 898127. be exactly the same as
the value of
TP_LOCATION_CODE_EXT you have
put in the flat file.
4. Note: 1049417.6 Solution: This feature was not available
at the base version of Payables on Rel
How to Record Tax and Freight in the 10.7 and Rel 11.
EDI Open Interface Import Process
Please apply the latest AP patchset
Problem: When importing Inbound 810 for Rel 10.7 or Mini-Pack for Rel 11.
Invoices through the EDI Gateway, how The org_id will then be available.
do you specify tax and freight? You
have reviewed the
AP_INVOICE_LINES_INTERFACE 6. Where do I find out what the latest
table and the patches are for EDI Gateway?
AP_INVOICES_INTERFACE table and
you do not see a column containing Log on to Metalink.
freight or tax. 1. Navigate to Patches -> Patch
Download.
Solution: There is a column in 2. Click on ==> NEW! Click here for
AP_INOICE_LINES_INTERFACE ALL Applications Product Patches.
called LINE_TYPE_LOOKUP_CODE. 3. Choose your release version: 11 or
The four valid values for this column 10.7
are: ITEM, TAX, MISCELLANEOUS, 4. Choose your product: E-Commerce
or FREIGHT. Gateway
5. Choose your platform
If you want to record tax or freight, use a 6. Choose limit search to: Latest
LINE_TYPE_LOOKUP_CODE of TAX Product Minipaks
or FREIGHT and then record the amount 7. Click on Submit.
of the tax or freight in the AMOUNT
column.
If you would like to specify a certain About the Authors
type of tax, you may use the
TAX_CODE column. Qin Wu is a Technical Specialist with
the Oracle Financials team. Qin has over
4 years of Oracle Payables experience.
5. Note: 1075470.6
Cheryl Ludwig is an Technical Analyst
MISSING ORG_ID IN PAYABLES with the Oracle Financials team. She has
OPEN INTERFACE TABLES been with Oracle Payables for 2 years.
Problem: You are trying to import
invoices using the Payables Open
Interface Import.
The field org_id does not exist in the
tables ap_invoices_interface and
ap_invoice_lines_interface. It is not
consistent with ap_invoices_all and
ap_invoice_distributions_all.

Potrebbero piacerti anche