Web ADI Integrators Load Data with Excel Brian
Web ADI Integrators Load Data with Excel
Brian Pellot u Independent consultant u 9 years Oracle Applications experience u Upgrades and implementations u Numerous modules u Functional with technical background
Topics u Web ADI u Traditional Custom Import Process u Web ADI Components u Creating a Custom Integrator u Examples u Other Options and Features
Web ADI History u Application Data Interchange – GLDI – GL specific – ADI – u Multiple versions u PC based application u Assets and GL u Concurrent request and reporting functionality – Web ADI u Completely web based u Only data export and load – no reporting u Many applications – ICM, HR (replaced ADE), GL, others u Extendable – New integrators – Custom Layouts
Web ADI – Basic User Process u Create a spreadsheet – From a form – From a menu option u Populate or change the spreadsheet u Upload to Oracle u Fix errors if needed
Create a Spreadsheet from a Form Some forms have an export data function. u This exports to a spreadsheet using Web ADI. u Some additional pages ask for Excel version and format. u
Create a spreadsheet Select a layout A spreadsheet is created and populated from the screen. u Enter the new, desired information to upload. u
Upload from a spreadsheet u After new information is entered, select upload from the Oracle menu.
Upload from a spreadsheet u After upload you see the success or failure of your data.
Extendibility Oracle seeds specific exports and loads. u The spreadsheet formats, called layouts, can be changed or additional ones can be added via setups. u Each data export or load (i. e. proposed salaries, GL journals) uses an integrator. u A programmer can create a new integrator with some simple setups and possibly a simple program. u
Traditional Custom Import Process Create a flat file u Transfer flat file to DB server u Load into temp table u Custom program u – Read temp table and loop through records – Call Oracle API – Mark temp table as to what is done/not done – Report on errors u Method to correct/clear errors
Traditional Custom Import Build Units u Transfer process u Unix script u Custom temporary table u Load control file u Custom program u Registered concurrent program
Web ADI Import Process Create a flat file u Transfer flat file to DB server u Load into temp table u Custom program (may not be needed) u – Read temp table and loop through records – Call Oracle API – Mark temp table as to what is done/not done – Report on errors u Method to correct/clear errors
Web ADI Custom Import Build Units u Transfer process u Unix script u Custom temporary table u Load control file u Custom program (maybe) u Registered concurrent program u Web ADI integrator setup u Web ADI layout setup
Web ADI Components Spreadsheet Integrator (setups point to API) Oracle API Data Tables Or, If the Oracle API input is too complicated…. Custom API Spreadsheet Integrator (setups point to custom API) Oracle API Data Tables
Creating a Custom Integrator u u Perform one-time Web ADI setup and some security setups. Identify the Oracle provided API you will be using. This will be a procedure within a package. – hr_job_api. create_job – hr_position_api. create_position u Determine if you need a custom wrapper. You may need a custom wrapper if: – The API uses internal ids that would mean nothing to the user. i. e. organization_id or job_id. – The integrator needs logic like; if the record does not exist create it, otherwise update it. – The integrator needs to call multiple APIs like first create the entry and then create the entry values. u u u Write wrapper if you need it. Set up the Integrator – – Create the integrator Create a function for the integrator Add the function to your menu Associate the function to the integrator Define the layout(s)
Example 1: Create Jobs Integrator Purpose: Load Jobs for a one-time conversion to Oracle u Use API hr_job_api. create_job (p_validate , p_business_group_id , p_date_from , p_job_group_id , p_segment 1 , p_segment 2 , p_segment 3 , p_attribute 1 , p_job_definition_id , p_name ) u u in boolean default false in number in date in number in varchar 2 default null in out nocopy number out nocopy varchar 2 Looking at the procedure definition, only a few parameters are required and most are meaningful to an analyst doing the conversion. Not creating a wrapper.
Example 1: Create the Integrator u Web ADI uses Web ADI spreadsheets to load integrator definitions. u Responsibility: Desktop Integration u Menu Option: Create Document u Select Integrator: HR Integrator Setup
HR Integrator Setup Spreadsheet Use the spreadsheet to define an integrator. u Associates the integrator and the API u
HR Integrator Function Setup u u Create a form function in Application Developer responsibility. (copy one of Oracle’s) Add it to your menu. Use the spreadsheet created with HR Maintain Integrator Form Function Integration. Associates the integrator and the function.
HR Integrator What we’ve done so far u Create integrator name u Associate integrator with an API u Create a function, put on menu u Associate integrator with a function Next u Create a layout u Create a spreadsheet u Use it
HR Integrator Layout Responsibility: Desktop Integration u Menu Option: Define Layout u Select your integrator u
HR Integrator Layout - cont Name your layout u Can have more than one layout for each integrator. u
NOW, THIS IS COOL!
HR Integrator Layout - cont u The parameters from the API (magically) appear.
HR Integrator Layout – cont Add constants and defaults Specify what should appear as columns u Select which should appear in your spreadsheet and where (header or line).
Create a Spreadsheet Responsibility: Desktop Integration u Menu Option: Create Document u Select Integrator: Your Integrator u Complete the information. u Upload the data. u
Example 2: Element Entries Integrator Purpose: Load Element Entries through a spreadsheet u Use multiple APIs – pay_element_entry_api. create_element_entry – pay_element_entry_api. update_element_entry u To call these we need to: – Decode element and input value names – Determine if the element already exsits u Need to create a wrapper.
Create a Wrapper PROCEDURE dpl_create_element( p_effective_date in date , p_employee_number in varchar 2 , p_employee_number , p_element_name in varchar 2 , p_element_name , p_entry_type in varchar 2 , p_entry_type , p_input_value_1 in varchar 2 default null , p_input_value_2 in varchar 2 default null , p_input_value_3 in varchar 2 default null , p_input_value_4 in varchar 2 default null , p_input_value_5 in varchar 2 default null , p_entry_value 1 in varchar 2 default null , p_entry_value 2 in varchar 2 default null , p_entry_value 3 in varchar 2 default null , p_entry_value 4 in varchar 2 default null , p_entry_value 5 in varchar 2 default null u u u Wrapper Calls Oracle API pay_element_entry_api. create_element_entry ( p_effective_date => l_effective_date , p_business_group_id => l_business_group_id , p_assignment_id => l_assignment_id , p_element_link_id => l_element_link_id , p_entry_type => l_entry_type , p_input_value_id 1 => l_input_value_id 1 , p_input_value_id 2 => l_input_value_id 2 , p_input_value_id 3 => l_input_value_id 3 , p_input_value_id 4 => l_input_value_id 4 , p_input_value_id 5 => l_input_value_id 5 , p_entry_value 1 => p_entry_value 1 , p_entry_value 2 => p_entry_value 2 , p_entry_value 3 => p_entry_value 3 , p_entry_value 4 => p_entry_value 4 , p_entry_value 5 => p_entry_value 5 , p_entry_value 6 => p_entry_value 6 Wrapper – Performs logic – Converts user data entered on the spreadsheet to the ids and formats needed by Oracle API u Employee number is converted to assignment id. u Element Name is converted to element link id. – Calls Oracle API The wrapper becomes a new API Create an integrator to use the wrapper
Integrator for the Wrapper Define the integrator to call your procedure (wrapper). u Perform other setups for function and menu. u Create layout. u
End Result The spreadsheet columns are the wrapper parameters. u Complete the spreadsheet and perform the upload. u Integrator -> Wrapper -> Oracle APIs u
Other Options Load Open Interface Tables Spreadsheet Integrator Custom Procedure Oracle Open Interface Table Oracle Open Interface Custom Procedure Custom Interface Table Custom Interface Load Custom Interface Tables Spreadsheet Integrator
Additional Features Integrators can be equipped to: u Export data from Oracle u Use lists of values u Associate with Oracle forms – Tools/Export
Gotchas’ u Pop-up blocker can block Web ADI u Excel can not be open when you are creating a spreadsheet. u Macro security in Excel must be medium and VB must be allowed. u Error handling with Web ADI – look at seeded integrators for examples. u Protection on the Web ADI sheets is difficult.
Notes of Interest 360105. 1 – Understanding and Using Web ADI in Oracle HRMS - Includes ‘A Step by Step Guide to Creating HRMS Integrators’ u 228527. 1 - "Web ADI for Oracle HRMSImplementation and Configuration Information" u Web ADI Implementation Guide bne 115 ig. pdf u Web ADI User Guide - bne 115 ug. pdf u
Questions u My contact information Brian Pellot bpellot@earthlink. net Special thanks to James Sanders and Dayton Power and Light
- Slides: 36