Sei sulla pagina 1di 11

Sukanya Boonsuk 7/23/2012

Page i

AIM

MD.070 APPLICATION EXTENSION TECHNICAL DESIGN Hyperion Budgeting Planning Data Extraction

Author: Creation Date: Last Updated: Version:

Sukanya Boonsuk July 23, 2012 July 23, 2012 Draft 1B

Control Number: IT/ERP/Hyperion/MD7/B

Approvals: Hyperion System Owner IT Project Owner Sukanya Boonsuk

MD.070 Application Extension Technical Design

Document Control
Change Record
3

Date 23-Jul-12 23-Jul-12 7

Author Sukanya Boonsuk Sukanya Boonsuk

Versio n 1.0.1 2.0.1

Change Reference No Previous Document Add system linkage function OT based on Mahary requested. Add department 8228 and 8120

Reviewers

Name xx

Position Project Manager

Distribution

Copy No. 1 2 3 4

Name Library Master xx xx xx

Location Project Library Hyperion Project Manager Hyperion Key user Project Manager

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.

iii

MD.070 Application Extension Technical Design

Contents

Document Control.......................................................................................ii Technical Overview....................................................................................iv Module List...........................................................................................iv Basic Business Needs...........................................................................iv Program Logic (pseudo code) of xmhr_emp_dept.sql extraction Script.....................................................................................................v Calling Arguments.................................................................................v Program Logic (pseudo code) of xmpa_project_status.sql extraction Script....................................................................................................vi Calling Arguments................................................................................vi Program Logic (pseudo code) of xmpa_project_expense.sql extraction Script...................................................................................................vii Calling Arguments...............................................................................vii Program Logic (pseudo code) of xmpa_project_time.sql extraction Script..................................................................................................viii Calling Arguments..............................................................................viii Program Logic (pseudo code) of xmfa_depreciation.sql extraction Script....................................................................................................ix Calling Arguments................................................................................ix Program Logic (pseudo code) of xmgl_actuals.sql extraction Script.. .x Calling Arguments.................................................................................x Installation.............................................................................................x Open and Closed Issues for this Deliverable..............................................xi Open Issues..........................................................................................xi Closed Issues........................................................................................xi

iii

MD.070 Application Extension Technical Design

Technical Overview
The implement Hyperiod System 9 Planning requires extracting data from Oracle ERP (GL, AP, PA) system to the XOMA Budgetting and Planning system.

Module List
SQL scripts Xoma budgeting and planning data includes the following sql script: Xmhr_emp_dept.sql This script for extract Employee and Department data from HRMS system

Xmpa_project_status.sql This script for extract project from Oracle Project module. Xmpa_project_expense.sql This script for extract project expenses from Oracle Project module. Xmpa_project_time.sql Xmfa_depreciation.sql Xmgl_actuals.sql This script for extract project time from Oracle Project module. This script for extract Asset depreciation from Oracle Assets module. This script for extract General Ledger actual data currently for year 2005 and 2006. In the future the user can run by enter the date parameters.

Basic Business Needs


Extract Oracle data to text file provides you with the features you need to satisfy the following basic business needs. You will be able to address the following Program sql statements:

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmhr_emp_dept.sql extraction Script.


set verify off set heading off set feedback off set echo off --set define on --set term off set pagesize 0 --set linesize 120 SPOOL C:\Hypolap\Drop\Data\xmemp_dept.txt select pap.employee_number||' '|| pap.full_name||' '|| hou.name from apps.per_all_people_f pap ,apps.per_all_assignments_f paa ,apps.HR_ALL_ORGANIZATION_UNITS hou where pap.effective_end_date >= sysdate and paa.effective_end_date >= sysdate and paa.assignment_status_type_id = 1 --active assignment and pap.person_id = paa.person_id and paa.organization_id = hou.organization_id; spool off exit;

Calling Arguments
Xmhr_emp_dept is either called from sqlplus xm/xm@prod @xmhr_emp_dept.sql in the or bat file.

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmpa_project_status.sql extraction Script.


exec dbms_application_info.set_client_info(82); set heading off --set term off set feedback off set echo off set pagesize 0 --set linesize 200 SPOOL C:\Hypolap\Drop\Data\xmproject_status.txt select segment1||' '|| ,name||' '|| ,project_type||' '|| ,start_date||' '|| ,closed_date||' '|| ,decode(closed_date,null,'A','I') from apps.PA_PROJECTS_ALL; spool off exit;

Calling Arguments
Xmhr_emp_dept is either called from sqlplus xm/xm@prod @xmpa_project_status.sql in the or bat file.

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmpa_project_expense.sql extraction Script.


exec dbms_application_info.set_client_info(82); set verify off set heading off set feedback off set echo off --set define on --set term off set pagesize 0 --set linesize 120 SPOOL C:\Hypolap\Drop\Data\xmproject_expenses2.txt select to_char(peia.expenditure_item_date,'MON')||' '|| peia.project_number||' '|| peia.expenditure_organization_name||' '|| gcc.segment1||' '|| gcc.segment3||' '|| sum(nvl(peia.quantity,0)) from apps.PA_EXPEND_ITEMS_ADJUST2_V peia ,pa.PA_COST_DISTRIBUTION_LINES_ALL pcdl ,gl.gl_code_combinations gcc where peia.expenditure_item_date >= to_date('&1','DD-MON-YYYY') and peia.expenditure_item_date <= to_date('&2','DD-MON-YYYY') and peia.system_linkage_function in ('VI','ER','PJ','USG') and peia.expenditure_item_id = pcdl.expenditure_item_id and pcdl.dr_code_combination_id = gcc.code_combination_id group by peia.expenditure_item_date ,peia.project_number ,peia.expenditure_organization_name ,gcc.segment1 ,gcc.segment3; spool off exit;

Calling Arguments
Xmhr_emp_dept is either called from sqlplus xm/xm@prod @xmpa_project_expense.sql in the or bat file.

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmpa_project_time.sql extraction Script.


exec dbms_application_info.set_client_info(82); set verify off set heading off set feedback off set echo off --set define on --set term off set pagesize 0 --set linesize 120 SPOOL C:\Hypolap\Drop\Data\xmproject_time.txt select peia.project_number||' '|| peia.expenditure_organization_name||' '|| gcc.segment3||' '|| sum(peia.quantity)||' '|| to_char(peia.expenditure_item_date,'MON-YYYY') from apps.PA_EXPEND_ITEMS_ADJUST2_V peia ,pa.PA_COST_DISTRIBUTION_LINES_ALL pcdl ,gl.gl_code_combinations gcc where peia.expenditure_item_date >= to_date('&1','DD-MON-YYYY') and peia.expenditure_item_date <= to_date('&2','DD-MON-YYYY') and peia.system_linkage_function in ('ST','PT','OT') and peia.expenditure_organization_id not in (98,99,100,120,122,123,124,125,126,127,129,130,131,153,156,157,163, 165,170,171,173,179,189,269,270,271,374,354) and gcc.segment3 not in ('5140','5150','5160','6210','6222','6223','6224','6225','6226','6227','6228','6500','6510','6520','66 00','7910','7945','8010','8015','8030','8035','8070','8040','8060','8110','8120','8295') and peia.expenditure_item_id = pcdl.expenditure_item_id and pcdl.line_num = 1 and pcdl.dr_code_combination_id = gcc.code_combination_id group by peia.project_number ,peia.expenditure_organization_name ,gcc.segment3 ,peia.expenditure_item_date; spool off exit;

Calling Arguments
Xmpa_project_time is either called from sqlplus xm/xm@prod @xmpa_project_time.sql in the or bat file.

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmfa_depreciation.sql extraction Script.


set verify off set heading off set feedback off set echo off --set define on --set term off set pagesize 0 --set linesize 120 SPOOL C:\Hypolap\Drop\Data\xmfa_depreciation.txt select fds.book_type_code||' '|| fdp.period_name||' '|| gcc.segment1||' '|| gcc.segment2||' '|| gcc.segment3||' '|| sum(nvl(fds.deprn_amount,0))||' '|| sum(nvl(fds.ytd_deprn,0))||' '|| sum(nvl(fds.deprn_reserve,0)) from apps.fa_deprn_summary fds ,apps.fa_deprn_periods fdp ,apps.gl_code_combinations gcc ,apps.fa_adjustments fa where fds.BOOK_TYPE_CODE = fdp.book_type_code and fds.period_counter = fdp.period_counter and fds.deprn_run_date >= to_date('&1','DD_MON-RRRR') and <= to_date('&2','DD_MON-RRRR') and fds.book_type_code = fa.book_type_code and fds.asset_id = fa.asset_id and fa.CODE_COMBINATION_ID = gcc.code_combination_id group by fds.book_type_code ,fdp.period_name ,gcc.segment1,gcc.segment2,gcc.segment3; spool off exit;

Calling Arguments
Xmfa_depreciation is either called from sqlplus xm/xm@prod @xmfa_depreciation.sql in the or bat file.

iii

MD.070 Application Extension Technical Design

Program Logic (pseudo code) of xmgl_actuals.sql extraction Script.


set verify off set heading off set feedback off set echo off set pagesize 0 --set linesize 120 SPOOL C:\Hypolap\Drop\Data \xmgl_actuals.txt select (c.segment1 || '-' || c.segment2)||' '|| c.segment3||' '|| c.segment4||' '|| p.period_year||' '|| p.period_num||' '|| nvl(sum(l.accounted_dr), 0)||' '|| nvl(sum(l.accounted_cr), 0)||' '|| (nvl(sum(l.accounted_dr), 0) - nvl(sum(l.accounted_cr), 0)) from gl.gl_code_combinations c, gl.gl_je_lines l, gl.gl_je_headers h, gl.gl_periods p where p.period_year in (2005, 2006) and h.status = 'P' and h.actual_flag = 'A' and h.period_name = p.PERIOD_NAME and l.JE_HEADER_ID = h.JE_HEADER_ID and l.code_combination_id = c.CODE_COMBINATION_ID group by c.segment1, c.segment2, c.segment3, c.segment4, p.period_year, p.period_num order by 1, 2, 3, 4, 5; spool off

Calling Arguments
Xmgl_actuals is either called from sqlplus xm/xm@prod @xmgl_actuals.sql in the or bat file.

Installation
All scripts are installed at the following directory in HYPLOAP production OLAP Server-HP DL360G4. C:TOP | HYPOLAP | DROP _____________| | | SQL Data

iii

MD.070 Application Extension Technical Design

Open and Closed Issues for this Deliverable


Open Issues

ID

Issue

Resolution

Responsibility

Target Date

Impact Date

Closed Issues

ID

Issue

Resolution

Responsibility

Target Date

Impact Date

iii

Potrebbero piacerti anche