AIM
MD.070 APPLICATION
EXTENSION TECHNICAL DESIGN
Genworth Unified Oracle
Voucher Sequence Numbering
Author: Sharanappa.L.K
Creation Date: Jun-12-2006
Last Updated:
Document Ref: MD-050 Voucher Sequence Numbering.
Version: 1.0
Approvals:
<Approver 1>
<Approver 2>
MD.070 Application Extension Technical Design
Document Control
Change Record
1
Date Author Version Change Reference
May-17-2006 L.K.Sharanappa 1.0 No Previous Document
Reviewers
Name Position
Distribution
Copy No. Name Location
1
2
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.
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Contents
Document Control...................................................................................................................ii
Technical Overview.................................................................................................................1
Approach............................................................................................................................1
Module List........................................................................................................................2
GNW Voucher Number Report- Concurrent Program Logic..........................................3
Calling Arguments...........................................................................................................3
Log Output........................................................................................................................3
Table and View Usage.....................................................................................................3
Program Logic (pseudo code)........................................................................................3
SQL Statements.................................................................................................................6
Default Data Sources........................................................................................................6
Validation Logic................................................................................................................6
Incompatibility..................................................................................................................6
Performance Considerations...........................................................................................6
Other Considerations.......................................................................................................6
Integration Issues.....................................................................................................................8
Changes Required.............................................................................................................8
Shared Components.........................................................................................................8
Alert conditions................................................................................................................8
Incompatibilities................................................................................................................8
Performance Issues...........................................................................................................9
Database Design.....................................................................................................................10
Desired Table Changes..................................................................................................10
New/Updated Seed Data.............................................................................................10
Descriptive Flexfields.....................................................................................................10
Value Sets.........................................................................................................................10
Grants/Synonyms..........................................................................................................10
Archiving.........................................................................................................................10
Database Diagram..........................................................................................................11
Tables, Indexes, Sequences...........................................................................................11
Implementation Notes...........................................................................................................12
Design Summary............................................................................................................12
Coding Summary............................................................................................................12
Testing Summary............................................................................................................12
Installation.......................................................................................................................13
Open and Closed Issues for this Deliverable....................................................................14
Open Issues......................................................................................................................14
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Closed Issues...................................................................................................................14
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Technical Overview
This document defines the technical components required to Implement Custom
Voucher Sequence Numbering. Oracle Payables allows users the ability to create
custom Voucher Sequence Numbering.
The Voucher Sequence Numbering is Genarating the combination of “ Company
Code ,Country code ,Document Type ,Country type ,Sequence Number and year”.
The Process of Creating Custom Voucher Sequence Number is pick up all the
approved and validated Invoices and ,The Supplier country ,Invoice
Country,Company code should be the Match with custom Lookups Means the
Validating Country code and Invoice type With the Custom lookups .The First
Programe : GNW AP Voucher Sequence Loading Pick up all the Countries and
Invoice types Which were defiend in the Custom lookups And with combiantion
Country Type(“ D ”, ” I ” , ” F ”, ” X ”) and with Sequence Number and storing in
to t custom table.Then GNW AP Voucher Number Generation Custom
Concurrent Program Geanarates the custom Voucher numbers With The
Combination of “ Company Code ,Country code ,Document Type ,Country type
,Sequence Number and year.And it will Custom Voucher Number for the GAP Less
Voucher Numbers .The Report Show Invoice Number, Oracle Voucher Number
And Costom Number Based Parameter s..
This Application Extension Technical Design document complements the
Application Extension Functional Design document for Voucher Sequence
Numbering.
Approach
This custom program will be running in Three phases. In First Phase Pick all the
Necessary Information from The Ap_invoices and Po_ Vendor_sites_all and
GL_code_combination .Which is The useful for the Genarating the Custom
Voucher Number and Then store that data into Custom table
GEOR_AP_VOUCHER_SEQUENCE_TBL. In Second Phase The Voucher is
Genarating from the Custom table GEOR_AP_VOUCHER_SEQUENCE_TBL And By
the Custom Concurrent Programe all The Custom Voucher numbers are
stored in the Custom table GEOR_AP_VOUCHER_NUMBER_TBL
The Third Phase is refer to Voucher Numbering Report . This report Shows
the Invoice Number , Oracle Voucher Number and Custom Voucher Number.
And This Report will not show GAP Less Voucher Numeber. “ Invoice Date
from” and” Invoice Date to” are Parameter of the Report
All processing and validation results are presented in log file of concurrent request.
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Module List
Forms
There is no Customization to the forms, which have been identified as part of this
program other than configuring of Descriptive Flexfield linked to the Operating
Unit Definition, which is a standard functionality of Oracle Applications.
Reports
GNW Voucher Number Report would be produced as part of the Custom GNW
AP Voucher Number Generation. The Details of the records processed and state of
each invoice which are validateed Invoice and show the corresponding oracle
voucher number and custom voucher number .This Report should be run after
the GNW AP Voucher Number Generation concurrent program..
Voucher Sequence Numbering includes the following concurrent programs:
1.) GNW AP Voucher Sequence Loading
Note:This programe should run whenever any changes will accure in
the two lookups( GNW_AP_EUR_COUNTRIES, GNW_AP_DOC_TYPES ).
2.) GNW AP Voucher Number Generation.
Note:This programe needs to be run Invoice Created
3.) GNW AP Voucher Numbering Report
GNW AP Voucher Number Generation
Database Triggers
Voucher Sequence Numbering includes the following database triggers:
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
GNW AP Voucher Number Generation - Concurrent Program Logic
The Program is needed to inserting some ain data elements in the Custom tables
GEOR_AP_VOUCHER_NUMBER_TBL .
Calling Arguments
GNW AP Voucher Number Generation would not have any explicit parameters
GNW Payables Pre Process Program
Log Output
The log output would be limited to the records which were processed as part of the current run of the program
and would consists of following column Headings
1. C ompany Code.
2. Country Code.
3. Document Type.
4. Country Type.
5. Voucher Number
________________________________________________________________________________
Table and View Usage
Table Name Select Insert Update Delete Base Table
X
AP_INVOICES_ALL X
AP_INVOICE_DISTRIBUTIONS_ALL X
PO_VENDOR_SITES_ALL X
GL_CODE_COMBINATIONS X
HR_LOCATIONS X
HR_ALL_ORGANIZATION_UNITS X
GEOR_AP_VOUCHER_SEQUENCE_ X X
TBL
GEOR_AP_VOUCHER_NUMBER_TB X X
L
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Program Logic (pseudo code)
Phase1: GNW AP Voucher Sequence Loading
Step1: Load the Company Code (segment2 from Gl_code_combination)
Step2: Pick the Country Name and Document types from the Custom look ups
Step3. Geanarating Country type(Demostic,,Internationl…etc) and Sequence Number Then data
Load in to the custom table GEOR_AP_VOUCHER_SEQUENCE_TBL.
Phase2: GNW AP Voucher Number Generation
Step1. Get the required data elements from the cursor and looping them
Step2: (a) Get company code from the cursor varibale
(b) Check the company code in lookup and po_vedor_sites_all thable
if it exists return ‘T” else return company code as “XX”
(c) Check the document type(invoice type) in the lookup and with cursor element.
(d) If invoice_country and Supplier country is ITALI then country type is “D”
If invoice_country is ITALI and country exits in lookups then country type code”F”
If invoice_country is ITALI and country not exits in lookups then country type
code”I”
If invoice_country is not ITALI and country not exits in lookups then country type
Code “x ”
(d) Sequence Number genarates sequentionaly and update the in the table .
Sequence number s are populates with based on the year (sysdate)..
(e). Pick the Year from the sysdate.
(e) Voucher number genarate combination Company code ,Country code,Document
type,Country,Type, sequence,Year
Phase3: GNW AP Voucher Numbering Report
Step1: The Report shoes Invoice Number,Oracle Voucher number and Custom Voucher number
The Report will not show Gapless Voucher Number .
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
The parameter of the report are Invoice_date_from and Invoice_date _to.
SQL Statements
1 - Data Selection
SELECT <data>
FROM <tables>
WHERE <select criteria>
AND <join conditions>
Default Data Sources
Table Column Source Value
Validation Logic
Error Conditions:
No
Warning Conditions:
Incompatibility
Performance Considerations
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Other Considerations
Restart Strategy
Restart procedures for the Voucher Sequence Number would follow standard
procedures.
Crash Recovery
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Integration Issues
Changes Required
Within Product
Look ups Should be create before the run the programe.
Other Products
No changes required
Shared Components
INV
None
BOM
None
ENG
None
MPS/MRP
None
WIP
None
Alert conditions
No
Incompatibilities
None.
Performance Issues
None.
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Database Design
This section summarized new and changed database objects and data required to
support Voucher Sequence Numbering . However, the complete database design is
documented in the Database Extensions Design document.
Desired Table Changes
None
New/Updated Seed Data
Rows added to <App Prefix>_LOOKUPS:
Code Meaning
Lookup Type
GNW_AP_EUR_COUNTRIES Countries All Europeian countries
GNW_AP_DOC_TYPES Invoice Types
Descriptive Flexfields
NO
Value Sets
Value Set Size Type Rqd Validation/Values
Grants/Synonyms
Yes
Archiving
No need to archive.
Database Diagram
No new tables
Tables, Indexes, Sequences
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Implementation Notes
This document describes exactly how Voucher Sequence Numbering Programe was
developed and implemented at Genworth Unified Oracle.
Design Summary
Functional Design
Functional Design Approval
Technical Design
Design Review
Final Acceptance
Coding Summary
Development was done on <description of hardware>, to work with Release11.5.10
of Oracle Applications. All coding follows the standards defined in the Build
Standards document for Genworth Unified Oracle.
Program Files
The files required for this customization are as follows:
File Description Coded By
GNW_AP_Vouc This PL/SQL script contains necessary code for L.K.Sharanappa
her_Number.sql.s validating and updating the appropriate columns
ql
Testing Summary
The customizations were tested in <Company Short Name>'s test environment
before being moved to production. See the Link Test scripts for more information.
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Installation
All modules are installed as if part of a separate product. A UNIX directory
structure is created under $APPL_TOP as shown in the following example:
$APPL_TOP
|
XBOL
|
11.5.10
___________________________|___________________________________
| | | | | | | | |
forms bin src sql log out srw install sql
The directories contain the components of the enhancement as shown below
(directories not listed are empty). All future customizations will also be stored in
these directories.
forms/
<Formname>
bin/
src/
sql/
srw/
install/sql/
The forms and concurrent programs are registered in Application Object Library
under the XBOL application.
A new set of menus (owned by XBOL) is created to call the new forms as follows:
Navigate
Sub-menu
Sub-menu
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only
MD.070 Application Extension Technical Design
Open and Closed Issues for this Deliverable
Open Issues
ID Issue Resolution Responsibility Target Date Impact
Date
1 Invoice Number Repeating
2 Country code
3 Invoice type
Closed Issues
ID Issue Resolution Responsibility Target Date Impact
Date
1 Invoice Number Repeating
2 Country code
3 Invoice type
Error: Reference source not found Technical Overview
File Ref: 473359831.doc (v. )
Company Confidential - For internal use only