You are on page 1of 48

Design Document vl.

3 AP Invoice Conversion

CONVERSION DATA MAPPING

Merichem
AP Invoices Conversion

Author: Wipro
Creation
Jan 25, 2006
Date: Last
Mar 06, 2006
Updated:
Document Ref: AP Invoices
Conversion Version: DRAFT l.3

Approvals:

<Approver 1>

<Approver 2>

MER ICH E Page 1of 42


M
Document Control

Change Record

Date Author Version Change Reference

25-Jan-06 Wir_ro 0.1 Initial Version


30-Jan- Wipro 0.2 Changes made after first review a
2006
31-Jan-06 Wipro 0.3 Added File Layout and open issu
22-Feb-06 Matthew Loschiavo 1.1 Updated with Merichem Feedback
03-Mar-06 VNSarda 1.2 Updated with Merichem Feedbac
06-Mar-06 VNSarda 1.3 lIdated with Merichem Feedback

Reviewers

Name Position

CJ'!l.die M Fredrick Merichem Functional Manager


Michael E 5ain Merichem Process Lead
Vishal Shrivastava Wipro Project Manger
Dhirendra Tandon Wipro Technical Consultant
K Mathur Wipro Technical Consultant

Distribution

Copy No. Name Location

1 Library Master Project Library


2 Project Manager
3
4

Note To Holders:

If you receive an electronic copy of this document and print it out, please write your
name on the equivalent of the cover page, for document control purposes.
If you receive a hard copy of this document, please write your name on the front
cover, for document control purposes.
Design Document vl.3 AP Invoice Conversion

Contents

Document Control.......................................................................................................2

Introduction.................................................................................................................4
Purpose................................................................................................................. 4
Background....................................................................................................................4
Scope and Application..........................................................................................4
Audience........................................................................................................................5
Application Business Object Reference Information.........................................................6

Pre-requisites and Key Setups - AP Invoice Headers, Lines..................................7

Technical Overview..............................................................................................................8
Design Decisions...........................................................................................................8
Component List.....................................................................................................8
Assumptions...................................................................................................................8
Conversion Mapping - AP Invoice Headers.........................................................10
Mapped Navision Tables.....................................................................................10
AP Invoice Conversion Process Flow Diagram.........................................................11

Conversion Mapping - AP Invoice Lines...............................................................20

Extract File Layout....................................................................................................31

Staging Table Structure..............................................................................................32

Data Clean-up, Validations & Setups.........................................................................33


Validation Logic...........................................................................................................33
Data Normalization............................................................................................................34

Exception & Error Handling......................................................................................35

Open and Closed Issues for this Deliverable...................................................................36


Open Issues..................................................................................................................36
Closed Issues...............................................................................................................36
References..........................................................................................................................36

WIPRO
MERICHE Page 3 of ll.pp/y11ttThc>u;fh1

M 42
Design Document vl.3 AP Invoice Conversion

Introduction

Purpose

This data mapping document defines the migration procedure, Table analysis, extraction,
transformation and loading procedures for AP Invoices Conversion using AP Invoices Open Interface.
This data mapping document is used as follows:

The Primary use of this document is as the basis for Data the migration and data cleansing
team for data migration requirements.

The data migration team uses this document to identify the data mapping, transformation, and
data loading.

Background

The information in this document has been defined as the result of discussions
between Merichem Finance Lead and Wipro Data Migration Team which consists of
Functional consultant and Technical Consultant.

Scope and Application

The Conversion Data Mapping identifies for use in designing migration programs to
convert AP Invoice details:

Data sources: Source system for the migration is Navision. AP Invoice details
are part of this conversion component.

Migration Method: Below table suggests migration method for various


business objects. Data migration team will build manual data load scripts to
load Navision data from flat files into the below interface tables.

Bussiness Objects Migration Meth


Invoice_headers AP_invoices_inte
Invoice_lines AP_invoice_lines

Target tables and columns: 11i (11.5.10) Target base Tables are ap_invoices_all
and ap_invoice_distributions_all. Refer to conversion mapping for detail
column details.

Manual verification by Data Migration Team and Integration Testing team will
decide the completion of this migration.

MERICHEM Page 4 of 42
Design Document vl.3 AP Invoice Conversion

Processing: Merichem team will provide cleansed data from Navision System.
The cleansed Data will be extracted to Staging area. The data on Staging area
will be enriched (as mentioned in Data Clean-up if any), transformed and
loaded into lli System. In Navision, if the Remaning Balance on an Invoice is
equal to the Invoice Amount and no Payment has been applied on the Invoice,
all such Invoices will be considered as open Invoices.

Filter: Refer Conversion Mapping on.FRs.


Foreign key rules: Refer Conversion Mapping on Foreign Key Rules.

Audience

This document is intended for the following individuals:

Project Manager of the Data Migration team


Merichem project executives, who should sign-off on the document
Data Cleansing and Data Migration team members.

MERICHE
M Page 5 of 42
Application Business Object Reference Information

In the following Sections,

Section 1refers the Business Object's pre-requisites.

Section 2 refers the business objects to be migrated as pre-requisite to AP Invoice


migration.

MER ICH E Page 6 of 42


M
Design Document vl.3 AP Invoice Conversion

Pre-requisites and Key Setups - AP Invoice Headers, Lines


Below is the list of pre-requistes and key setups required for converting AP Invoices.

Payables Options
Purchasing Options
Items
Currency Setup
Any Merichem Specific lookup Codes
Tolerances
Holds

M E Fl I C H E Page 7 of
M 42
Design Document vl.3 AP Invoice Conversion

Technical Overview
The intent of this document is to summarize the technical configuration and
architecture of the Open AP Invoice Conversion from Navision to Oracle.

Design Decisions

Only Navision system open AP Invoices shall be converted. Open Invoice


are those Invoices for which payment has not been made yet. All invoices
for which payment is already done will not be converted.

Navision data extracts shall be loaded into staging tables. All validations
shall take place in staging table and data will be loaded into Oracle open
interface tables.

Invoice Open Interface Import program will be used to load data from the
interface tables to the base tables in Oracle.

Component List

Shell SQI/PLSQL Scripts/Sql*loader files

AP Invoice Conversion includes the following file and scripts:

xxmer_in_apinv_conv_sh: Shell script to call sql*loader to load data in to


staging tables.

xxmer_in_apinv_conv_headers_ctl: Control file to load headers data in to


staging table.

xxmer_in_apinv_conv_lines_ctl: Control file to load lines data in to staging


table.

xxmer_in_apinv_conv_validate.sql: Program to validate staging tables data


and load into open interface tables.

Corresponding Load files shall be used to load data into their respective tables.

Assumptions

Invoices that show open but are not truly open need to be closed by
Merichem. (for example, Invoice No 15652 is open since 1999)

MERICHE Page 1 of 42
M
Only Open Navision Invoices will be converted; however any references to
Projects that exist in Navision, regardless of the project status, will not be
carried into Oracle as the Invoice will not be able to validate against a
Project (dependency) in Oracle. The invoice will show as open, but it
cannot reference the project.

Invoices converted from Navision to Oracle will be transferred to GL in one


batch and will be reversed after posting.

Any open Projects in Navision will be manually created as new open


projects in Oracle.

Data related to closed projects will not be brought from Navision to Oracle.
For closed projects with open invoices the data will be converted from
Navision to Oracle without the reference number of the closed project.

No tax information in the invoice will be converted.


Invoices on Hold needs to be clarified by Merichem, no logic would be built
around the On Hold invoices. Invoices on Hold will not reflect any Hold's
in Oracle. All such invoices which are on hold need to be clear by
Merichem.

For Open Projects, Open/ Closed Invoices with Projects Information would
be brought into Oracle and the Project information will be captured in the
Description of the Invoice along with old Invoice number and we also
would be bringing open invoices (for closed projects) but without the
project information.

The vendor information will be migrated based on the data provided by


Merichem in xls template. These details will capture old vendore code and
old vendor site code also. Vendor information in the AP Invoice extract
should match with cleansed vendor data provided by Merichem.
Design Document vl.3 AP Invoice Conversion

Conversion Mapping - AP Invoice Headers

Below is a table mapping the legacy data elements to the Oracle tables and columns.
The AP Invoice Open Interface receives derives and validates the data in the AP
interface tables and if no errors are found data is loaded in AP_INVOICES_ALL and
AP_INVOICE_DISTRIBUTIONS_ALL tables in AP.

Records in the AP_INVOICE_LINES_INTERF ACE table create one or more


invoice distributions. Note that one row may create more than one distribution. For
example, if you enter a Tax line in this table and prorate it across three Item lines,
during Open Interface Import the system will create three Tax invoice distributions
based on the single Tax line in this table.

Invoice Open Interface Import program in Oracle Payables (AP) is used to import
data from interface tables to base AP tables.

Mapped Navision Tables

Only the below Navision tables are in scope for this conversion. This document
covers data mapping of columns from the following Accounts Payable Navision
tables.

AP. Inv. Header

AP. Inv. Line

MERICHE Page 10 of 42
M
AP Invoice Conversion Process Flow Dia am
Navision
System

Extract data file


from Navision

Load data file into Oracle Staging Tables


xxap_headers_iface_stg
xxap_lines_iface_stg

Correct
Staging Run Pre-Interface
Data Validation
Program(s)

NO

Load data to Oracle Open Interface Tables


ap_invoices_iface
ap_invoice_lines_iface

Run Open Interface


Concurrent Program(s)
Invoice Open Interface
Correct Imnort
Interface
data

NO

Insert into
Oracle Base
Tables

ME RIC HE Page 11 of
M 42
NOTE:

1. The correctness of data before loading into Oracle interface table is validated by Merichem Process Leads
& SMEs alongwith the Functional & Technical consultants from Wipro.

2. The errors records found during conversion will be resolved by the Wipro Functional & Technical
consultants alongwith the Merichem Process Leads & SMEs

MERICHEM Page 12 of 42
Design Document vl.3 AP Invoice Conversion

Target Application: 11i

Business Object: AP Invoice Headers

Required --Interface generated by

Invoice_num I Null header uni ue identifier


Required if there is
Oracle
1Varchar2( No
50) I I I I more than one invoice
for the supplier during
Furch.Inv.Header.No import
Navision Code Null None
I
Invoice_type_lookup_code 1Varchar2( No Standard Type of Invoice Take default
unless stated
25) I otherwise
Invoice_ date IDate No Furch.Inv.Header.Do Null
Navision cument Date Date None
Po_number 1Varchar2( No Null Validated against:
20) PO_HEADERS.
Furch.Inv.Header.Or SEGMENTl
Navision der No. Code
Vendor_id !Number J No I Null Internal ID validated Sequential
against: PO_ Number
VENDORS.VENDOR_ generated by
ID One of the following Oracle for
is required unless Vendor
you match to a
PO: VENDOR_ID,
VENDOR_NUM,
VENDOR_NAME

Vendor_num Varchar2( No Furch.Inv.Header.Pa Null


30) Navision v-to Vendor No. Code I INone

MERICHE Page 1 of 42
M
Vendor_name 1Varchar2( 'No
240) Jurch.Inv.Header.Na _I. 'Null
I Navision me, Name 2 Text None
Vendor_site_id !Number I No I I I I Internal ID Sequential
Validated against: Number
PO_VENDOR_SITES. generated by
VENDOR_ SITE_ID Oracle for
Null Vendor site
Vendor_site_code 1Varchar2( No Furch.Inv .Header.Pa Null
1 Navision IYto_vendor No Text I
INone Invoice_amount Number Yes Furch.Inv.Header.A
Null
Navision mount Includin_g_Tax Decimal
Invoice_currency_code Varchar2( No Null Optional
15) Validated against:
FND_CURRENCIES.
Furch.Inv.Header.Cu CURRENCY_CODE
Navision rrensr_code Code jNone
Exchange_rate !Number No Furch.Inv.Header. Cu Null

Exchange_rate_type 1Varchar2( No
Navision rrensr_Factor Decimal
Null
l jNone

3Q2_ Navision lNone


Exchange_ date Date No Navision Null None
Terms_id I Number No Null required if no terms
are available through
matching or at the Sequential
supplier site. Validated number
against: AP_TERMS. generated by
TERMS_ID Oracle for

Terms_name 1Varchar2( rNo


50) I Navision
'Furch.Inv.Header.Pa
vment Terms Code Code
l 'Null
I
Pment terms

INone
Description Varchar2( No Purch.Inv .Header. Null
240) Your Reference,
Posting Description,
Navision Vendor Invoice No None
Awt_group_id Number No Null None
Awt_group_name Varchar2( No Null None
2
Last_update_date Date No Null Standard Who Column None
Last_updated_by Number No Null Standard Who Column None
Last_update_login Number No Null Standard Who Column None
Creation_date Date No Null Standard Who Column None
Created_by Number No Null Standard Who Column None
Attribute_category Varchar2( No Null Descriptive Flexfiel d None
150}_
Athibutel Varchar2( No Null Descriptive Flexfield
150) None
Attribute2 Varchar2( No Null Descriptive Flexfield None
150}_
Attribute3 Varchar2( No Null Descriptive Flexfield None
150}_
Attribute4 Varchar2( No Null Descriptive Flexfield None
150)
Attributes Varchar2( No Null Descriptive Flexfield None
15Ql
Attribute6 Varchar2( No Null Descriptive Flexfield None
15()}_
Attribute7 Varchar2( No Null Descriptive Flexfield None
150}_
Attributes Varchar2( No Null Descriptive Flexfield
150}_ None
Attribute9 Varchar2( No Null Descriptive Flexfield
15()}_ None
AttributelO Varchar2( No Null Descriptive Flexfield
15()}_ None
Attributell Varchar2( No Null Descriptive Flexfield
15()}_ None
Attribute12 Varchar2( No Null Descriptive Flexfield
15()}_ None
Attribute13 Varchar2( No Null Descriptive Flexfield
15()}_ None
Attribute14 Varchar2( No Null Descriptive Flexfield
15C!}_ None
Attribute15 Varchar2( No Null Descriptive Flexfield
150) None
Global_attribute_category Varchar2( No Null Descriptive Flexfield
150) None
Global_ath"ibutel Varchar2( No Null Descriptive Flexfield
150) None
Global_attribute2 Varchar2( No Null Descriptive Flexfield
15C!}_ None
Global_attribute3 Varchar2( No Null Localization
15C!}_ None
Global_attribute4 Varchar2( No Null Localization
15C!}_ None
Global_attribute5 Varchar2( No Null Localization
15C!}_ None
Global_attribute6 Varchar2( No Null Localization
150) None
Global_attribute7 Varchar2( No Null Localization
15C!}_ None
Global_attribute8 Varchar2( No Null Localization
150) None
Global_attribute9 Varchar2( No Null Localization
15C!}_ None
Global_attributelO Varchar2( No Null Localization
150) None
Global_attributel 1 Varchar2( No Null Localization
15Ql_ None
Global_athibute12 Varchar2( No Null Localization
150) None
Global_attribute13 Varchar2( No Null Localization
15Ql_ None
Global_athibutel4 Varchar2( No Null Localization
15Ql_ None
Global_attribute15 Varchar2( No Null Localization
150) None
Global_attribute16 Varchar2( No Null Localization
15Ql_ None
Global_attribute17 Varchar2( No Null Localization
15Ql_ None
Global_attribute18 Varchar2( No Null Localization
150) None
Global_attributel 9 Varchar2( No Null Localization None
150)
Global_attribute20 Varchar2( No Null Localization
15Ql_ None
Status Varchar2( No default Status of the data in or
25) after the Payables Open
Interface Im_..E.ort None
Source Varchar2( Yes Null Source of the invoices
80) Text 'Navision' None
Group_id Varchar2( No Null
8Ql_ None
Request_id Number No Null None
Payment_cross_rate_type Varchar2( No Null
30) None
Payment_cross_rate_date Date No Null None
Payment_cross_rate Number No Null None
Payment_ currency_code Varchar2( No
1 0_..E.tional None
Workflow_flag Varchar2( No Flag that indicates if the
1) Payables Open Interface
Workflow should process
0_..E.tional the record_(Y or N) None
Doc_category_code Varchar2( No Optional Sequential numbering
30) (voucher number)
document category.
Validated against
FND_DOC_SEQUENCE_
CATEGORIES.CODE None
Voucher_num Varchar2( No Optional Voucher number;
50) validated (Sequential
Numbering enabled), or
Purch.Inv.Header.Ve non-validated (Sequential
Navision ndor Invoice No. Numberin_g_ not enable None
Payment_method_lookup_ Varchar2( No Optional Name of payment
code 25) method Validated against
AP_
Purch.Inv.Header.Pa LOOKUP_CODES
Navision nent Method Code None
Pay_group_lookup_code Varchar2( No Optional Name of pay group,
25) Validated against: PO_
Purch.Inv.Header.Ve LOOKUP_CODES
Navision ndor Posting_ Groll Code None
Goods_received_date Date No Optional Date invoice items
received None
Invoice_received_date Date No Optional Date invoice received None
GL_date Date No Purch.Inv.Header.Pos Optional
Navision tinji_Date Date None
Accts_pay_code_combinati Number No Optional Accounting Flexfield
on_id identifier for accounts
payable liability account.
Furch.Inv.Header .Loe Validated against
ation Code, GL_CODE_COMBINATI
Department Code, ONS.CODE_COMBINAT
Navision Profit Center Code Code ION_ID None
USSGL_Transaction_code Varchar2( No Optional Default transaction code
30) for creating US Standard
General Ledger journal
entries (Oracle Public
Sector Payables).
Validated against
GL_USSGL_TRANSACTI
ON_cODES.USSGL_TR
ANSACTION_ CODE None
Exclusive_payment_flag Varchar2( No Optional Flag that indicates
1) whether to pay invoice
on a separate payment
document None
Org_id Number No Optional/Derive To be derived
d from Operating
Unit_E!ofile
Amom1t_applicable_to_dis Number No Furch.Inv.Header.Pa Optional Amount of invoice
count yment applicable to a discount
Discount% ,Invoice
Navision Disc. Code Decimal None
Prepay_num Varchar2( No Optional The invoice number of an
50) existing, fully paid
prepayment to be applied
to the im_I>_orted invoice None
Prepay_dist_num Nmnber No Optional None
Prepay_apply_amount Number No Optional The amount of
prepayment that the user
wants to apply to the
invoice. This amount
has
to be_I>_Ositive. None
Prepay_GL_date Date No Optional None
Invoice_includes_prepay _f Varchar2( No Optional
l !l. None

MERICHE Page 18 of
M 42
MER ICH E Page 19 of
M 42
Design Document vl.3 AP Invoice Conversion

Conversion Mapping - AP Invoice Lines

Below is a table mapping the legacy data elements to the Oracle tables and columns.
Target Application: 11i

Business Object: Invoice Lines

MERICHE Page 20 of 42
M
Design Document vl.3 AP Invoice Conversion

Sequential
ace I I I I I I I 1Validated
against Number
AP_INVOICES_INTERFA generated by
Invoice_id Null CE.INVOICE_ID Oracle
Number No Sequential
Number
generated by
Invoice_line_id Null I IOracle
Number No Furch.Inv.Line.Line Null
Line_number Navision No. Inte er None
Varchar2( No Null Type of invoice line (Item, Query in
25) Freight, Tax, Navision Based
_code I Navision 0 tion Miscellaneous) on GL
accts Number No Null Value to
identify each
item line to which you
Line_ l!_number l want to prorate INone
Number Yes Purch.Inv.Line.Amou Null
Amount Navision nt Includin_g_ Tax Decimal l lNone
Date No Navision Purch.Inv.Header.Pos Null I !None
Accounting_ date tin_g_ Date Date
Varchar2( No Navision Purch.Inv.Line.Descri lNull I INone
Description 24())_ lr_tion, Descr_i:!>_tion 2 Text
Varchar2( No !Null I INone

I I
Amount_includes_tax_flc:g_ 'U.
Varchar21No
1) I 1 Null
Prorate indicator for this
line to be prorated across
all lines with the same
INone

Prorate_across_flc:g_ LINE_GROUP_NUMBER
Varchar2( No Navision Furch.Inv.Line.Tax Option, Null Tax code. Validated INone
15) Calculation Type, Tax Decimal against
% AP_TAX_CODES_ALL.N
Tax_code AME
Varchar2( No Navision Null Final match indicator for INone
1) distribution line matched
Final_match_flai< I to purchase order

MERICHE Page 1of 42


M
Design Document vl.3 AP Invoice Conversion

MERICHE Page 2of 42


M
Number I No I I I I Null I Purchase order header PO_header_id
identifier used for PO corresponding to
matching. Validated the PO_number
against mentioned in the
PO_HEADERS_ALL.PO next row
Po_header_id l Varchar2( No Navision Furch.Inv.Line.PO Null
HEADER_ID
Purchase order line I None
20) No. identifier used for PO
matching. Validated
against
PO_LINES_ALL.PO_LIN
Po_number Code E_ID
Number No Null Validated against Corresponds to
PO_LINES_ALL.PO_LIN the line_number
E_ID mentioned in the
Po_line_id next row
Number No Null Validated against None
PO_LINES_ALL.PO_LIN
Po_line_number I Navision N/A E_NUM
Number No Null Validated against I
None PO_LINE_LOCATIONS_
ALL.LINE LOCATION I
Po_line_location_id I Navision IN /A
!Number !No I !Null lalid ated gainst - I None
PO_LINE_LOCATIONS_
Po_shipment_num I Navision N/ A ALL.SHIPMENT_NUM
Number No Null Validated against Corresponds to
PO_DISTRIBUTIONS_AL the
L.PO_DISTRIBUTION_ID distribution_nu
m mentioned in
Po_dishibution_id the next row
Number No Null Validated against None
PO_DISTRIBUTIONS_AL
L.PO_DISTRIBUTION_N
Po_distribution_num Navision N/ A UM
Po_unit_of_measure Varchar2( No Navision Furch.Inv.Line.Unit Text Null Unit of measure on INone
j_25)
l lI lo Measure lI l!Null purchase order line
MTL_SYSTEM_ITEMS.IN INone
!Number I No I Validated against

Inventorv_item_id I 1
Varchar2ffNo
jNavision lN/ A
tl 1Null
VENTORY_ITEM_ID

INone
1 1
Item_description 2401
Number No Furch.Inv.Line.Quant I I Null I INone
Quaninvoiced Navision gr_
Varchar2( No 1Null I INone
Ship_to_location_code 6C2}_ Text
Number No Navision Furch.Inv.Line.Unit Null Unit price for purchase INone
Price ($) order matched invoice
Unitprice J l J items
!Number I No I Null Validated against INone
AP_DISTRIBUTION_SET
S_ALL.DISTRIBUTION_S
Distribution_set_id ET_ID
Varchar2( No Null Validated against INone
50) AP_INVOICE_DISTRIBU
TION_SETS_ALL.DISTRI
Distribution_set_name BUTION_SET_NAME
Varchar2( No Null Accounting flexfield for INone
250) account associated with a
Dist_code_concatenated distribution line
Number Yes Null Accounting flexfield INone
identifier for account
associated with a
distribution line.
Validated against
GL_CODE_COMBINATI
ONS.CODE_COMBINATI
l j??
f
Dist_code_combination_id J lNavision ON_ID
l
Number I No I T l Null Withholding tax group
identifier. Validated
INone

against
Awt_group_id I I I I I I I AP_AWT_GROUPS.GRO
UP_ID
Varchar2( No I I I I !Null I INone
251
Number No Null Standard who column None
Date No Null Standard who column None
Number No Null Standard who column None
Number No Null Standard who column None
Creation date lDate No Null Standard who column None
Varchar2( No Optional Descriptive flexfield None
150) structure definition
Attribute cat lVarchar2( No Optional
column
Descriptive flexfield INone
Attributel 15Cl}_ sment
Varchar2( No Optional INone
Attribute2 15CJ}_
Varchar2( No Optional I INone
Attribute3 150)
Varchar2( No Optional I INone
Attribute4 l1sCJ}_
Varchar2( No Optional I INone
Attributes 1150)
Varchar2( No I INone
Attribute6 1150) 0_tional
Varchar2( No I INone
Attribute7 11sCJ}_ 0_tional
Varchar2( No 1099 type for the purchase INone
Attributes 15Cl}_ 0_tional order line
Varchar2( No INone
Attribute9 15Cl}_ 0...E_tional
Varchar2( No Optional I INone
AttributelO 150)
Attributel 1 No Optional
I JNone

Attribute12
Varchar2( No
150)
Optional I !None
Varchar2( No I INone
Attribute13 1150) O_r_tional
Varchar2( No I INone
Attribute14 15Q)_ O_r_tional
Varchar2( No I INone
Attribute15 15Q)_ O_r_tional
Varchar2( No Reserved for counhy- INone
Global_attribute_category 15Q)_ O_r_tional ecific localizations
Varchar2( No Reserved for counhy INone
Global_attributel 15Q)_ O_r_tional
Varchar2( No Reserved for counhy INone
Global_attribute2 15Q)_ 0_.r_tional
Varchar2( No Optional Reserved for counhy INone
Global_attribute3 15Q)_
Varchar2( No Optional Reserved for counhy INone
Global attribute4 15Q)_
Varchar2( No Optional Reserved for counhy INone
Global_attribute5 15Q)_
Varchar2( No Optional Reserved for counhy INone
Global_attribute6 1150)
Varchar2( No Optional Reserved for counhy INone
Global_attribute7 15Q)_
Varchar2( No Optional Reserved for counhy INone
Global attributes 15Q)_
Varchar2( No Optional Reserved for counhy INone
Global_attribute9 15Ql
Varchar2( No Optional Reserved for counhy INone
Global_athibutelO 15Ql
Varchar2( No Optional !Reserved for counhy INone
Global_attributell 1150)
1Varchar2( No Optional Reserved for counhy INone
Global_attribute12 1150)
Varchar2( No Optional Reserved for counhy INone
Global_attribute13 15Ql
Varchar2( No Optional Reserved for counhy INone
1Global_attribute14 150
Varchar2( No IReserved for country INone
Global_attribute15 1150) O_p_tional
Varchar2( No IReserved for country INone
Global_attribute16 l15Ql O_r..tional
Varchar2( No Optional IReserved for country INone
Global_attribute17 1150}
Varchar2(1 No I I I jOptional IReserved for country INone
Global_attribute18 I
Varchar2( No IReserved for country INone
Global_attributel 9 ]15Q) O_r..tional
Varchar2( No Reserved for country INone
Global_attribute20 l15Ql_ 0...r_tional
Number No Optional Blanket purchase order INone
release identifier used for
PO matching. Validated
against
PO_RELEASES_ALL.PO_
Po_release_id I !RELEASE ID
Number I No I I I I optional Blanket pi:;-rchase order INone
release number used for
PO matching. Validated
against
PO_RELEASES_ALL.REL
Release_num I EASE_NUM
Varchar2( No Value for account segmentl None
25) of accounting flexfield.
Payables will overlay this
value on the accounting
Account_se ent flexfield durin im ort
Varchar2( No Value for balancing INone
25) segment of accounting
flexfield. Payables will
overlay this value on the
accounting flexfield
Balancin se ient durin im ort
Cost_center_se=ent Varchar2( No Optional Value for cost center INone
25) I I I I I Isegment of accounting
flexfield. Payables will
overlay this value on the
accounting flexfield
durin_g_ im_Eort
Number INo I I I IOptional Validated against INone
PA_PROJECTS_ALL.PRO
Proiect_id I Navision N/A JECT_ID
Number No Optional Validated against INone
Task_id I Navision N/A PA_TASKS.TASK_ID
Varchar2( No N/A Optional Validated against INone
30) PA_EXPENDITURE_TYP
Exr_enditure__!yr_e Navision ES.EXPENDITURE_ TYPE
Exr_enditure_item_date Date No Navision N/A Optional JNone
Number No Optional Validated against TNone
Expenditure_ organization_ I PA_EXP_ORGS_IT.ORGA
id NIZATION_ID
Varchar2( No N/ A Optional INone
Proiect_accounting_contextl 30) Navision
Varchar2( No N/A IOptional IFlag that indicates if INone
1)
I project related invoice
distributions have been
transferred into Oracle
Pa_addition_fla Navision Pro"ects or N
Number No N/ A Optional Project item quantity used
INone to build accounting
flexfield for project-
Navision related distribution line
Varchar2( No Optional USSGL hansaction code INone
30) for creating US Standard
General Ledger journal
entries (Oracle Public
USSGL_Transaction_code Sector Pa ables .
Number No Optional Amount associated with a INone
dishibution line for
Stat_amount I I I I I I measurin2: statistical
Varchar2( No Furch.Inv .Line.1099 jOptional I I None
IQ}_ Navision Liable Boolean
Varchar2( No I I None
Income_tax_region 110) 0..E_tional
Varchar2( No Optional Flag that indicates if I None
1) distribution line is tracked
Assets_tracking_flag I Navision N/A in Oracle Assets (Y or
Varchar2( No Optional Flag that indicates if line I None
Price_correction_fl lD. [r!oduces_E!ice correction
Number No Optional !Derive from
kperating Unit
Org, id I rofile
Varchar2( No Optional The receipt number to TNone
30) which an invoice will be
matched. Validated

Receipt_number
lVarchar2( No Navision
Furch.Inv.Line.Recei
jr_t No. Code
l against
RCV_SHIPMENT_HEAD
ERS.RECEIPT_NUM
Furch.Inv .Line.Recei Optional I I None
Receipt_line_number J2 Navision l.0 Line No. Intr
Varchar2( No Optional The value of the Invoice I None
25) Match option on the PO
Match_tion lVarchar2( No Optional
shnent
I
None Packin..zd'l!r_ _b
Rev_transaction_id lNumber
Number
No
No
O_JJ_tional
Optional
l!Identifier of the INone
TNone
corresponding receivable
intercompnay invoice in
Pa_cc_ar_invoice_id lOracle Receivables
Pa_cc_ar_invoice_line_nu
ill
Number No Optional T I None

Varchar2( No Optional I A reference to a record in I


None Reference_l 1 30) another application
Reference_2
Varchar2( No Optional I INone
Pa_cc_ rocessed_code 1
Number No Optional !Tax recovery rate to be INone
used in the tax calculation
whenever partially
Tax_recov_rate recoverable tax is enabled
Varchar2( No Optional Flag indicating whether INone
1) user has overwritten the
Tax_recove1y_override_fla I tax recovery rate over the
suggested default
Varchar2( No Optional Flag indicating whether a INone
1) tax line is recoverable or
nonrecoverable. Used
whenever partially
Tax_recoverable_fl recoverable tax is enabled
Varchar2( No Optional Flag indicating whether INone
1) the user has overwritten
Tax_code_override_fl the defaulted tax code
Number No Optional Tax code identifier for the
INone tax code to be used.
Validated against
AP_TAX_CODES_ALL.T
Tax_code_id I l l l I l AX_ID
!Number I No I I I -I Optional Credit card transaction ID INone
if the line is a credit card
Credit_card_trx_id cha
Number No Optional Grants requirement to INone
Award_id store award
Varchar2( No Optional Validated against INone
25) PO_LINES_ALL.VENDO
Vendor_item_num I R PRODUCT NUM
Varchar2( No Furch.Inv.Line.Tax Optional A value of Y indicates that l None
Taxable_fl :u_ Navision Liable Boolean the line is taxable
Price_correct_inv_num Varchar2( No Optional Number of the invoice !None
50) that this price correction
invoice is correcting.
Validated against
AP_INVOICES_ALL.INV
OICE_NUM.
Varchar2(1 No Optional Internal document None
240) reference number from
Accounts Receivables
system. Used for XML
Extemal_doc_line_ref invoices

MERICHE Page 30 of 42
M
Design Document vl.3 AP Invoice Conversion

Extract File Layout

' '
Datafile Field Name Data:ge Rosit io : n , Rosition: racle [' able racle olumn
' , , From , mo
)' / "" ;;

Extract files for AP Invoice Headers and Lines will be pipe ( I ) delimited. Navision will provide 2 separate files for
Headers and Lines.

Header File Format:

Invoice_Num I Invoice_Date I PO_Number IVendor_Num I Vendor_Name I Vendor_Site_Code I Invoice_Amount I I


nvoice_Currency_Code I Exchange_Rate I Terms_Name I Description I Source I Voucher_Num I Payment_Method_L
ookup_Code I Pay_Group_Lookup_Code I Accts_pay_Code_Combination_Id I Amount_Applicable_To_Discount I
Terms_Date

Line File Format:

Line_Number I Line_Type_Lookup_Code I Amount I Accounting_Date IDescription I Tax_Code I Po_Number I PO_


Unit_Of_Measure I Quantity_Invoiced I Unit_Price I Dist_Code_Combination_Id I Project_Id I Task_Id I Expenditure
_Type I Expenditure_Item_Date I Expenditure_Organization_Id I Pa_Addition_Flag I Pa_Quantity I Receipt_Numbe
r I Receipt_Line_Number I Taxable_Flag

MERICHE Page 31of 42


M
Staging Table Structure
XXAP_HEADERS_IFACE_STG

XXAP_LINES_IF ACE_STG

WIPRO
M ER IC H E M Page 32 of 42
Applyms:Tla".tM
Data Clean-up, Validations & Setups
AP Invoice conversion data will be cleansed by Merichem before creation of extract
files for loading into oracle staging tables. There are no further clean-up processes
identified as of now. The further clean-up process can be identified (if required) once
the cleansed Static data is finalized. We may need to update this document
accordingly.

Validation Logic

Error Conditions:

These are some of the error conditions for Open Order import. These error conditions
would be included in the standard log file generated by validation program.

The following conditions will cause the program to complete with an Error status:

Organization Code is Invalid.

Supplier does not exist.

Site is invalid.

Item does not exist.

Account code combination not valid.

Date not in open period.

Mismatch in amount between header and line.

Project/Task does not exist.

MER ICHE Page 1 of 42


M
Data Normalization
Data normalization is not required prior to loading data into staging tables from
Navision extract files.
Exception & Error Handling
Exceptions like the following will be captured in the code.

NO_DATA_FOUND: ORA-01403

TOO_MANY_ROWS: ORA-01422

VALUE_ERROR: ORA-06502

For Conversions

A detailed log will be created for all the records that failed / errored. The log file will
show the number of records processed and errored.

Data Audit from Navision to Oracle will be a joint responsibility between Merichem
Process Leads/SMEs and Wipro Functional & Technical Team
Open and Closed Issues f or this Deliverable

Open Issues

Closed Issues

Ref erences

Column References from Navision after meeting with Merichem.

Purch. Inv.
Header 2 Bu -from Vendor No. Code 20 1 No N/A

3 No. Code 20 1 Yes Invoice No


4 Pto Vendor No. Code 20 1 Yes Vendor No
Vendor
5 Name Text 30 1 Yes Name
Vendor
6 Name 2 Text 30 1 Yes Name
Vendor
7 Address Text 30 1 Yes address
Vendor
8 Address 2 Text 30 1 Yes address

9 City_ Text 30 1 Yes Vendor city_


Vendor
10 Contact Text 30 1 Yes contact

11 Your Reference Text 30 1 Yes DescrlQ):ion


12 Shi2_:-to Code Code 10 1 No N/A
13 Shi2_:-to Name Text 50 1 No N/A
14 Shi2_:-to Name 2 Text 30 1 No N/A
15 Shi2_:-to Address Text 30 1 No N/A
16 Shl2_-to Address 2 Text 30 1 No N/A
17 Sh]Q-to City_ Text 30 1 No N/A
18 Shl2_-to Contact Text 30 1 No N/A
19 Order Date Date 4 1 No N/A

20 Posting Date Date 4 1 No Invoice Date


21 Ex_12_ected Recel2_t Date 4 1 No N/A

22 Date Postig_ Text 50 1 Yes Descrl2_tion

Description Payment
23 Code 10 1 Yes Terms Code
24 Due Date Date 4 1 No N/A
25 Pa y_ment Discount % Decimal 12 1 No N/A
26 Pmt. Discount Date Date 4 1 No N/A
Shipment Method
27 Code Code 10 1 No N/A
28 Location Code Code 10 1 No N/A
29 De_12_artment Code Code 10 1 No N/A
30 Profit Center Code Code 10 1 No N/A
31 Vendor Posting_ Group_ Code 10 1 No N/A
32 Curren9"._ Code Code 10 1 No N/A
33 Curren9"._ Factor Decimal 12 1 No N/A
37 Invoice Disc. Code Code 20 1 No N/A
41 Lang_ua_g_e Code Code 10 1 No N/A
43 Purchaser Code Code 10 1 No N/A
Design Document vl.3 AP Invoice Conversion

Bal. Account T..1'.2_e 0tion 4 1 No N/A


Order Address Code Code Code Boolean 10 1 No N/A N/A
En!!Y_ Point 10 1 No N/A
Correction 1 No
4

99
101

102
104

107
108
1 10
111
112
113
114
115

116
119
10005
10020
50020
50021
50022
50023
50024
50025
50050
50051
50052
50055
50056
50057
50071
50072
50073
50074
50090
50091
50092
50093
50100
50107

50109

MERICHE Page 1 of 42
M
Design Document vl.3 AP Invoice Conversion

Net Weight Formula


50110 Code NIA Code 10 1 No
Related Sales Doc.
NIA NIA NIA NIA NIA NIA NIA
50111 No. Code 20 1 No
50200 Raw Matl Contract
NIA NIA Boolean 4 1 No
50201 Pricin_g_ Amount Decimal 12 1 No
Line Number T_yQ_e
50250 PO No. Code 20 1 No
50255 Reserved Code 20 1 No
GL Acct No -
50256 Led_g_er EntrY_ T_yQ_e
NIA O_Q_tion 4 1 No
50260 Price T_yQ_e O_Q_tion 4 1 No
NIA NIA
Purch. Inv.
Line 2 Buy-from Vendor No. Code 20 1 No
Description
3 Document No. Code 20 1 No
_{_Free Tex!}_

4 Line No. Descriptionlnter


Free Tex!}_ 4 1 Yes
5 T_yQ_e NIA NIA O_Qj:ion
NIA NIA NIA NIA4 NIA NIA1Yes
Amount wlo
6 No. tax Code 20 1 Yes
7 Location Code
NIA NIA NIA
Code
NIA NIA NIA
10
NIA NIA1 No
8 Postin_g_ Grou_Q_ Code 10 1 No
10 Eected Receipt Date Date 4 1 No

11 Descrtion Text 50 1 Yes

12 DescriQtion 2 Text 50 1 Yes


13 Unit of Measure Text 10 1 No
15 Quanti!Y_ Decimal 12 1 No
22 Direct Unit Cost Decimal 12 1 No
23 Unit Costl$l Decimal 12 1 No
25 Tax % Decimal 12 1 No
26 Quanti!Y_ Disc. % Decimal 12 1 No
27 Line Discount % Decimal 12 1 No
28 Line Discount Amount Decimal 12 1 No

29 Amount Decimal 12 1 Yes


30 Amount lncludin_g_ Tax Decimal 12 1 No
31 Unit Price_(_$1 Decimal 12 1 No
32 Allow Invoice Disc. Boolean 4 1 No
34 Gross Weight Decimal 12 1 No
35 Net Weig_ht Decimal 12 1 No
36 Units_Q_er Parcel Decimal 12 1 No
37 Unit Volume Decimal 12 1 No
38 Appl.-to Item EntrY_ lnte_g_er 4 1 No

40 De_Q_artment Code Code 10 1 Yes

41 Profit Center Code Code 10 1 Yes

MERICHE Page 1 of 42
M
Design Document vl.3 AP Invoice Conversion

45 Job No. Code 20 1 No N/A


47 Phase Code Code 10 1 No N/A
48 Task Code Code 20 1 No N/A
49 Ste_e_ Code Code 10 1 No N/A
53 Serial No. Code 20 1 No N/A
54 Indirect Cost % Decimal 12 1 No N/A
69 Inv. Discount Amount Decimal 12 1 No N/A
70 Vendor Item No. Text 20 1 No N/A
Gen. Bus. Posting
74 Grou_Q_ Code 10 1 No N/A
Gen. Prod. Posting
75 Grou_Q_ Code 10 1 No N/A
Tax Calculation T y_p_e77 O_Q_tion 4 1 No N/A
Transaction "1Jt'..2_e 78 Code Code
Transport Method Attached to Linelnter
No. En!!Y_
Code Point
10 1 No N/A N/A N/A N/A
Area Transaction S_e_ecification
79 Code
Tax Area Code Tax Liable 10 1 No N/A
Tax Group Code Use 80 Tax 4 1 No
Tax Bus. Posting 81
Grop_ 10 1 No
82 10 1 No
Tax Prod. Posting Grou_e_
Blanket Order No. Blanket Order Line No. Tax Base Amount
Unit Cost Lot No. 83 Code 10 No 1 N/A
Prod. Order No. Variant85 Code Tank Code Boolean Code Boolean
20 No 1 No No N/A N/A N/A N/A
No
Qty. per Unit of 86
Measure
4 1
87
Unit of Measure Code Quanti!Y (Basaj_ 10 1
88
FA Posting_ Date FA Posting_ T y_p_e Depreciation Book Code 4 1
Salv<!9_e Value
Depr. until FA Posting 89 Date Code 10 1 No N/A
De2_r. Auisition Cost Maintenance Code Insurance No.
Bud_g_eted FA No. 90 Code 10No 1N/A
Duplicate in Code lnteg_er Decimal Decimal Code20 Code
No No
Code
No
97 1N/A
NoN/A
No N/A
No No
N/ANo
N/A N/A N/A N/A
98 Code 4 1
99 12 1
100 12 1
5400 20 1
5401 20 1
5402 10 1
5403 10 1

5404 Decimal 12 1
No N/A
5407 Code Decimal Date 10 1 No No NoN/A N/A N/A
No
5415 0_0ion 12 1 N/A
5600 4 1
5601 4 1

5602 Code 10 1 No N/A


5603 Decimal 12 1 No N/A

5605 Boolean 4 No 1 N/A


5606 Boolean Code Code Code
4 No 1No NoN/A
No No
N/A N/A N/A N/A
5609 Code 10 1
5610 20 1
561 1 20 1
5612 10 1

WIPRO
MERICHE Page 41 of ApplymzTna</%1:

M 42
Design Document vl.3 AP Invoice Conversion

Depreciation Book
5613 Use Du_r:>lication List Boolean 4 1 No NIA
10022 1099 Liable Boolean 4 1 No NIA
50021 VehiclelD Code 20 1 No NIA
50022 Mode of Trans_Q_ortation Code 10 1 No NIA
50023 Route Code 10 1 No NIA
50024 VehicleStatus Code 10 1 No NIA
50025 VehicleStatusT_yQ_e O_Q_tion 4 1 No NIA
50040 Price T_yQ_e O_Q_tion 4 1 No NIA
50050 Re-9: Revision No. lnte_g_er 4 1 No NIA
50051 PO Revision No. lnte_g_er 4 1 No NIA
50052 Link-to Re_g_ No. Code 20 1 No NIA
50053 Link-to Re_g_ Line No. lnte_g_er 4 1 No NIA
50054 Current A22_roval Level lnter 4 1 No NIA
50055 Approval Route Code 10 1 No NIA
50056 Current A22_roval Code Code 10 1 No NIA
50057 Approval Code Amount Decimal 12 1 No NIA
50060 UMl}t_Q_e O_Q_tion 4 1 No NIA
50061 Pricin_g_ UM Code 10 1 No NIA
50062 Pricin_g_ Um T_yQ_e O_Q_tion 4 1 No NIA
50063 Pricin_g_ Q!Y._ Decimal 12 1 No NIA
50064 Pricin_g_ Q!Y. Q_er UM Decimal 12 1 No NIA
50065 Pricing Amount Decimal 12 1 No NIA
50070 Welg_ht Source Code 10 1 No NIA
50071 Est. Frelg_ht Decimal 12 1 No NIA
50072 Actual Frelg_ht Decimal 12 1 No NIA
50073 Est. Ind. Svcs Decimal 12 1 No NIA
50074 Actual Ind. Svcs Decimal 12 1 No NIA
50075 Shl2_ment No. Code 30 1 No NIA
50076 Frelg_ht Chae Decimal 12 1 No NIA
50090 Closed Boolean 4 1 No NIA
50091 Invoiced Boolean 4 1 No NIA
50110 Reason Code Code 10 1 No NIA
50200 Recel2_t No. Code 20 1 No NIA
50201 Recel2_t Line No. lnter 4 1 No NIA
50202 Item Line No. Decimal 12 1 No NIA
50208 Your Reference No. Text 30 1 No NIA
50209 PO No. Code 20 1 No NIA
50911 Actual Quanti!Y_ Decimal 12 1 No NIA
50912 Actual Q!Y._ UM Code 10 1 No NIA
Pricing Qty Formula
50913 Code Code 10 1 No NIA
50915 Shl2_ment Svc. Code Code 10 1 No NIA
50916 Pricin_g_ Location T_yQ_e O_Q_tion 4 1 No NIA
50917 Pricin_g_ Location Code Code 20 1 No NIA
Shipment Svc. Entry
51000 No. Integer 4 1 No NIA

MERICHE Page 42 of 42
M

You might also like