Case Study of PO Purchase Order Using Open Interface Table
Case Study of PO Purchase Order Using Open Interface Table
Outbound
Approvals:
Document Control
Change Record
3
Reviewers
Name Position
Distribution
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.
Contents
Document Control..............................................................................................ii
Introduction........................................................................................................1
Purpose.........................................................................................................1
Background..................................................................................................1
Scope and Application..................................................................................1
Audience.......................................................................................................2
Source system..............................................................................................2
Assumptions.................................................................................................2
Pre-Requisites..............................................................................................3
Business Rules...........................................................................................3
Approach......................................................................................................4
Module List........................................................................................................5
Deployment......................................................................................................15
Use the Purchase Order window to enter the standard purchase order, blanket
purchase order, planed purchase order, purchase requisitions etc. You can also
query and update purchase order in this window.
Purpose
Background
Introduction
File Ref: 402348185.doc
2. The ‘XX<EMPID>: Purchase Orders Extract Program’
have two parameters.
Data File Path: Enter the path of Oracle
Applications Server, where this custom
concurrent program will create the file for
outbound.
Data File Name: Enter the file name, which will
be used for naming the file while extracting the
data from Oracle Applications.
Audience
Source system
The implementation team studies the source system and understands the data
required to be migrated from Oracle Applications to legacy system. This data is
then extracted and cleansed from the Oracle Applications (this is done by IT
team of source system) in the format as agreed by the client, source system IT
team and the implementation team.
Assumptions
System Administrator
All the functional setups and master data (as listed in pre-requisites) are
already completed in Oracle Applications.
Introduction
File Ref: 402348185.doc
Pre-Requisites
Business Rules
Following business rules are applicable for the Purchase Order extract process.
Extract all the purchase order records which are approved and
received
Please refer Extract file layout for the columns to be extract for
the purchase order.
Approach
Call custom
Legacy DataFileIntroduction
File Ref: 402348185.doc System
FTPUtility concurrentp rogram
The Approach for extracting Purchase Order data from Oracle Applications to
a data file is
1. Login to the Oracle Applications
2. Using PL/SQL write a package
3. Use UTL_FILE utility in PL/SQL package to create the data file
4. Data file would be created by custom concurrent program
5. Use any FTP utility to transfer the extract data file into legacy system.
Introduction
File Ref: 402348185.doc
Module List
Concurrent Programs
‘XX<EMPID>: Purchase Order Extract Program’
The above program calls stored procedures to create the data file
(Data file name and path passed as parameter values)
NOTE:
Stored Procedures
XXPO_PURCHASE_OUTBOUND_PKG package consist the following
stored procedures:
XXPO_PURCHASE_OUTBOUND_PKG.main
This is the main procedure that calls the create_headers and create_lines
procedures.
XXPO_PURCHASE_OUTBOUND_PKG.create_headers
This procedure is used to create the header for the extract file.
XXPO_PURCHASE_OUTBOUND_PKG.create_lines
This procedure is used to create the lines for the extract file.
NOTE: Please refer the attached documents for Package Specifications and
Package body. Kindly open the attached script in notepad.
XXPO_PURCHASE_O
UTBOUND_PKG.pks
1. Package Specification:
Introduction
File Ref: 402348185.doc
XXPO_PURCHASE_O
UTBOUND_PKG.pkb
2. Package Body:
Grant Script
If package is created in custom schema then grant the package to APPS
schema
NOTE: Please refer the attached script for table and package granting. Kindly
open the attached script in notepad.
XXPO_PURCHASE_O
UTBOUND_PKG.grt
1. Package Grant Script:
Synonym Script
If table and package are created in custom schema then grant the package and
create synonym for table and package in APPS schema
NOTE: Please refer the attached script for table and package synonym. Kindly
open the attached script in notepad.
XXPO_PURCHASE_O
UTBOUND_PKG.syn
1. Package synonym script:
Install Script
Install script contains UNIX Shell Script and will be used to deploy the objects
attached to this document on Oracle Applications Server.
XXPO_PURCHASE_O
UTBOUND.install
1. Install Script:
Introduction
File Ref: 402348185.doc
Note: Please prefix your employee ID for each object you create and deploy in
Application Server and Database.
A.) Package Name
B.) Table Name
C.) Synonym Name
D.) Concurrent Program Executable.
E.) Concurrent Program Name.
Introduction
File Ref: 402348185.doc
Registering Concurrent Program
Registering Extract Concurrent Program
To register a concurrent program for ‘XX<EMPID>: Purchase Order Extract
Program’ in Oracle Applications Navigate to System Administrator
Responsibility
Introduction
File Ref: 402348185.doc
2 Enter The Following in the Concurrent Program Executable Form
a. Executable Name: Enter unique name for executable.
b. Short Name: Enter unique short name and this short name later
will be use for defining Concurrent Program.
c. Application: Enter the Application Name from List of Values
(LOV), as we are developing an interface program for Purchase
Order so the Application Name should be Custom Application.
d. Description: Enter the description of Executable
e. Execution Method: Execution method should be PL/SQL Stored
Procedure.
f. Execution File Name: Here we would be passing the package
name with one public procedure. As discussed in Module List the
package name would be XXPO_PURCHASE_OUTBOUND_PKG
and the public procedure define in this package is main.
Introduction
File Ref: 402348185.doc
2. Select Concurrent -> Program -> Define
Introduction
File Ref: 402348185.doc
Concurrent Program Form
Introduction
File Ref: 402348185.doc
Registering Interface Concurrent Program in Request Group
To register a concurrent program ‘XX<EMPID>: Purchase Order Extract
Program’ in Request Group, Navigate to System Administrator
Responsibility
Introduction
File Ref: 402348185.doc
2. Query the Request Group – All Reports and Applications – Purchasing
3. Add an entry for Concurrent Program in the Request Group and save the
work.
Introduction
File Ref: 402348185.doc
Downloading Concurrent Program Script
After completion of Registering Concurrent program in System Administrator
responsibility, we can download the script for concurrent program and further
it can be used to install in another Application Server.
For Example:
Introduction
File Ref: 402348185.doc
Deployment
To deploy the attached zip file which contains package, table scripts, grant
script, synonym script, concurrent program script and install script, please
follow the below steps
XXPOOUTBOUND.tar
.gz
4. mkdir -p XXPOOUTBOUND
9. cd XXPOOUTBOUND
17. sh XXPO_PURCHASE_OUTBOUND.install
Introduction
File Ref: 402348185.doc
Extract File Layout
Data File Columns Datatype Size Table Name
PO_NUMBER VARCHAR2 30 PO_HEADERS_ALL
PO_TYPE VARCHAR2 25 PO_HEADERS_ALL
AGENT_NAME VARCHAR2 240 PER_ALL_PEOPLE_F
VENDOR_NAME VARCHAR2 240 AP_SUPPLIERS
VENDOR_SITE VARCHAR2 15 AP_SUPPLIER_SITES_ALL
PAYMENT_TERM VARCHAR2 30 AP_TERMS_TL
CURR_CODE VARCHAR2 30 PO_HEADERS_ALL
AUTH_STATUS VARCHAR2 25 PO_HEADERS_ALL
LINE_NUM NUMBER 1 PO_LINES_ALL
INVENTORY_ITEM VARCHAR2 30 MTL_SYSTEM_ITEMS
ITEM_DESCRIPTION VARCHAR2 250 MTL_SYSTEM_ITEMS
UOM VARCHAR2 25 MTL_SYSTEM_ITEMS
UNIT_PRICE NUMBER PO_LINES_ALL
LINE_QUANTITY NUMBER PO_LINES_ALL
RECEIPT_NUM VARCHAR2 30 RCV_SHIPMENT_HEADERS
QUANTITY_RECEIVED NUMBER RCV_SHIPMENT_LINES
Please find the attached extract file for Purchase Order, which has been
extracted, from Oracle Applications.
PO_EXTRACT_FILE.x
ls
Introduction
File Ref: 402348185.doc
Calling Extract Custom Concurrent Program
After installation of all the script attached with this document run the
concurrent program “XX<EMPID>: Purchase Order Extract Program”. To run
the concurrent program navigate to Purchasing Responsibility.
Use the below query to find out the path to create the extract file and use one
of the path from value to pass as parameter value for Data File path.
SELECT VALUE
FROM V$PARAMETER
WHERE NAME LIKE '%utl_file_dir%';
Select View Menu -> Request, Submit a new request, and click on single
request and than click OK Button.
SRS Form
Introduction
File Ref: 402348185.doc
Open and Closed Issues for this Deliverable
Open Issues
Closed Issues
Introduction
File Ref: 402348185.doc