create or replace PACKAGE ABSN_PA_RPT_33_PKG AS /******************************************************************************* ******************************************************************************** ***** This Procedure calls the procedure to

insert data into temporary table and displ ays the data in excel friendly format ******************************************************************************** ******************************************************************************** ******/ PROCEDURE FETCH_DATA(err_buff OUT VARCHAR2, ret_code OUT NUMBER ,P_ORG_ID NUMBER ,p_period VARCHAR2 ,p_class_category VARCHAR2 ,p_class_code VARCHAR2 ,p_unit1 varchar2 ,p_unit2 varchar2 ,p_unit3 varchar2 ,p_unit4 varchar2 ,p_unit5 varchar2 ,p_car varchar2 --------------RFC#60254 ,p_project varchar2 ,p_percent_spend number); --Added extra parameter P_ORG_ID for Multi Org Project --- PROCEDURE GET_UNITS(P_REQUEST_ID NUMBER,P_DIVISION VARCHAR2); /******************************************************************************* *********************************************************************** This Procedure inserts data into the temporary table according to the four param eters Quarter,classification and classcode ******************************************************************************** **************************************************************************/ PROCEDURE ABSN_PA_RPT_33_PROC(P_Period VARCHAR2 ,P_Class_category VARCHAR2 ,P_Class_code VARCHAR2 ,P_REQUEST_ID NUMBER ,p_unit1 varchar2 ,p_unit2 varchar2 ,p_unit3 varchar2 ,p_unit4 varchar2 ,p_unit5 varchar2 -,P_PROJECT VARCHAR2); /******************************************************************************* ************************ The procedure PURGE_DATA is used to delete the Records pertaining to P_REQUEST_I D ******************************************************************************** ************************/ ---PROCEDURE PURGE_DATA(P_REQUEST_ID NUMBER); /******************************************************************************* ************************ The procedure INSERT_DATA is used to INSERT the Records pertaining to P_REQUEST_ ID ******************************************************************************** ************************/ PROCEDURE INSERT_DATA(P_REQUEST_ID NUMBER, P_UNIT_DESCRIPTION VARCHAR2, P_UNIT VARCHAR2, P_PERIOD VARCHAR2, P_DIVISION VARCHAR2, P_PROJECT_ID NUMBER,

P_PROJECT_NUMBER VARCHAR2, P_TOP_TASK VARCHAR2, -P_LOWEST_TASK VARCHAR2, P_TASK_DESCRIPTION VARCHAR2, P_ASSET_DESCRIPTION VARCHAR2, P_PRJ_CLASSF VARCHAR2, P_PRJ_CLS_CODE VARCHAR2, P_PROJECT_NAME VARCHAR2, P_CAP_AMOUNT_ITD NUMBER, P_EXP_AMOUNT_ITD NUMBER, P_CAP_AMOUNT_PTD NUMBER, P_EXP_AMOUNT_PTD NUMBER, P_CAP_AMOUNT_YTD NUMBER, P_EXP_AMOUNT_YTD NUMBER, P_APPR_BGT_AMOUNT NUMBER, P_PROJECT_MANAGER VARCHAR2, P_PROJECT_STATUS VARCHAR2, P_BUDGET_ENTRY_METHOD VARCHAR2, P_BUDGET_TYPE VARCHAR2, P_INTERFACED_CIP_COST NUMBER); /******************************************************************************* ************************************* The procedure GET_COST is used to get the cost for all the Projects Periodwise ******************************************************************************** *************************************/ PROCEDURE GET_COST(P_REQUEST_ID NUMBER,P_PROJECT VARCHAR2); /******************************************************************************* ********************** PROCEDURE FOR FETCHING THE ITD(INCEPTION TO DATE) AMOUNTS ******************************************************************************** **********************/ PROCEDURE GET_COST_ITD(P_PERIOD VARCHAR2,P_PROJECT_ID IN NUMBER,P_TASK VARCHAR2, P_CLASSCODE VARCHAR2,P_CLASS_CATEGORY VARCHAR2, P_REQUEST_ID NUMBER,P_COST OUT NUMBER,P_TYPE VARCHAR2); /******************************************************************************* ********************** PROCEDURE FOR FETCHING THE PTD(PERIOD TO DATE) AMOUNTS ******************************************************************************** **********************/ PROCEDURE GET_COST_PTD(P_PERIOD VARCHAR2,P_PROJECT_ID1 NUMBER,P_TASK VARCHAR2,P_ CLASS_CODE VARCHAR2,P_CLASSIFICATION VARCHAR2 ,P_REQUEST_ID NUMBER,P_AMOUNT_PTD OUT NUMBER,P_TYPE VARCHAR2); /******************************************************************************* ********************** PROCEDURE FOR FETCHING THE YTD(YEAR TO DATE) AMOUNTS ******************************************************************************** **********************/ PROCEDURE GET_COST_YTD(P_PERIOD VARCHAR2,P_PROJECT_ID2 NUMBER,P_TASK VARCHAR2,P_ CLASS_CODE VARCHAR2,P_CLASSIFICATION VARCHAR2 ,P_REQUEST_ID NUMBER,P_AMOUNT_YTD OUT NUMBER,P_TYPE VARCHAR2) ; V_GLOBAL_ORG_ID NUMBER; g_sob_id number; g_COA_ID NUMBER; END ABSN_PA_RPT_33_PKG; / create or replace PACKAGE BODY absn_pa_rpt_33_pkg AS PROCEDURE absn_pa_rpt_33_proc (p_period VARCHAR2 ,p_class_category VARCHAR2, p_class_code VARCHAR2, p_request_id NUMBER

,p_unit1 VARCHAR2, p_unit2 VARCHAR2, p_unit3 VARCHAR2, p_unit4 VARCHAR2 ,p_unit5 VARCHAR2 ,p_project VARCHAR2 ) AS ---TYPE PERIOD_TABLE IS TABLE OF VARCHAR2(15) INDEX BY BINARY_INTEGER; ---V_PERIOD PERIOD_TABLE; /******************************************************************************* *************************** THIS CURSOR WILL FETCH CLASS-CODES AND CLASSIFICATIONS ******************************************************************************** **************************/ CURSOR c_class_code IS SELECT pcc.class_category classification ,pcc.class_code class_code FROM pa_class_categories pac ,pa_class_codes pcc WHERE pac.class_category = pcc.class_category AND pcc.class_category = p_class_category AND pcc.class_code = p_class_code AND (UPPER (pac.class_category) LIKE '%CAPEX%' OR UPPER (pac.class_category) LIKE '%CAPIT%EXP%ND%' ) AND p_class_category IS NOT NULL AND p_class_code IS NOT NULL UNION SELECT pcc.class_category classification ,pcc.class_code class_code FROM pa_class_categories pac ,pa_class_codes pcc WHERE pac.class_category = pcc.class_category AND pcc.class_category = p_class_category AND (UPPER (pac.class_category) LIKE '%CAPEX%' OR UPPER (pac.class_category) LIKE '%CAPIT%EXP%ND%' ) AND p_class_category IS NOT NULL AND p_class_code IS NULL UNION SELECT pcc.class_category classification ,pcc.class_code class_code FROM pa_class_categories pac ,pa_class_codes pcc WHERE pac.class_category = pcc.class_category AND pcc.class_code = p_class_code AND (UPPER (pac.class_category) LIKE '%CAPEX%' OR UPPER (pac.class_category) LIKE '%CAPIT%EXP%ND%' ) AND p_class_category = 'ALL' AND p_class_code IS NOT NULL; CURSOR c_project (p_request_id NUMBER, p_class_category VARCHAR2 ,p_class_code1 VARCHAR2 ) IS SELECT DISTINCT absn.project_id project_id ,absn.task_name task_name, ---- ABSN.PERIOD PERIOD, absn.project_name project ,pt.top_task_id top_task_id ,absn.class_code class_code FROM absn_pa_rpt_33_proj absn ,pa_periods_all ppa ,pa_tasks pt WHERE absn.request_id = p_request_id AND absn.project_id = pt.project_id

AND absn.task_id = pt.task_id AND absn.period = ppa.period_name AND ppa.start_date <= (SELECT DISTINCT start_date FROM pa_periods_all WHERE period_name = p_period AND org_id = v_global_org_id) AND absn.class_code = p_class_code1 AND absn.class_category = p_class_category AND absn.project_name = NVL (p_project, absn.project_name); /******************************************************************************* *************************** THIS CURSOR WILL FETCH All THE TASKS FOR A PARTICULAR PROJECT ******************************************************************************** **************************/ CURSOR c_task (p_request_id NUMBER, p_project_id1 NUMBER ,p_top_task_id NUMBER, p_task2 VARCHAR2, p_class_code VARCHAR2 ) IS SELECT DISTINCT absn.task_name v_task_name ,pt.task_id, --- ABSN.PERIOD PERIOD, SUM (absn.COST) v_cost ,absn.project_id ,ppa.segment1 ,top.task_number top_task ,SUBSTR (hou.NAME, 1, 5) unit ,hou.NAME unit_desc ,absn.project_manager project_manager ,absn.project_status status ,pt.description v_description FROM absn_pa_rpt_33_proj absn ,hr_organization_units hou ,pa_tasks pt ,pa_projects_all ppa , (SELECT task_number ,task_id ,project_id FROM pa_tasks WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.request_id = p_request_id AND absn.project_id = ppa.project_id AND absn.task_name = pt.task_number AND ppa.org_id = v_global_org_id AND pt.project_id = ppa.project_id AND top.project_id = ppa.project_id AND top.project_id = pt.project_id AND absn.project_id = pt.project_id AND hou.organization_id = pt.carrying_out_organization_id AND SUBSTR (hou.NAME, 1, 5) = p_unit1 AND absn.project_id = p_project_id1 AND absn.task_name = p_task2 AND absn.class_code = p_class_code GROUP BY absn.task_name ,pt.task_id --

segment1 .task_name . 5) .PERIOD PERIOD.pt. 5) unit .task_number .ABSN.project_status status .absn.pt.description UNION SELECT DISTINCT absn.description UNION SELECT DISTINCT absn.pa_projects_all ppa .NAME.pt.NAME.pt.project_id = ppa. 1.ppa.class_code = p_class_code GROUP BY absn.project_manager .. 5) = p_unit2 AND absn.absn.COST) v_cost .request_id = p_request_id AND absn. 1.project_id . SUM (absn.ppa.carrying_out_organization_id AND SUBSTR (hou.project_id = ppa.segment1 .absn.project_id = ppa.SUBSTR (hou.project_id AND absn.pa_tasks pt .project_id FROM pa_tasks WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.task_number top_task .NAME.hr_organization_units hou .task_name = pt.task_id.task_name v_task_name .project_id = p_project_id1 AND absn.task_name v_task_name .organization_id = pt.absn.absn.project_status .hou.SUBSTR (hou.project_id = pt.project_id .hou.ppa.project_status .absn.NAME .task_name = p_task2 AND absn. 1.NAME .project_id AND hou.segment1 .project_id .top.hou.pt.task_id -.task_id . 5) .absn.project_manager project_manager .project_id AND top. --.task_number AND ppa.project_id AND absn.project_id = pt.project_manager .project_id AND top.top. 1.SUBSTR (hou.org_id = v_global_org_id AND pt. (SELECT task_number .description v_description FROM absn_pa_rpt_33_proj absn .NAME.NAME unit_desc .task_number .absn.top.absn.

SUBSTR (hou.ppa.SUBSTR (hou. 1. 5) = p_unit3 AND absn.ABSN.org_id = v_global_org_id AND pt.ABSN.project_id .NAME.project_id FROM pa_tasks WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.task_number top_task . 1.COST) v_cost .hou. SUM (absn.task_id -.description v_description FROM absn_pa_rpt_33_proj absn .project_id = p_project_id1 AND absn.top.absn.pt.NAME. --.project_id AND absn.segment1 .top.task_name v_task_name .task_id .hou.task_name = p_task2 AND absn.task_number .COST) v_cost .project_status ..project_manager project_manager .project_id .project_id AND top.organization_id = pt. 5) unit .description UNION SELECT DISTINCT absn.project_id AND top.absn. 1.pa_projects_all ppa . 5) .project_id .absn.task_name = pt.project_manager .absn.project_manager project_manager .project_id AND absn.pt.carrying_out_organization_id AND SUBSTR (hou.absn.NAME unit_desc .ppa.project_id AND hou. (SELECT task_number .NAME unit_desc .top.NAME.task_id.segment1 .task_id. --.project_status status . 1.segment1 .class_code = p_class_code GROUP BY absn.pt.NAME.absn.PERIOD PERIOD.hou.task_name .pt.hr_organization_units hou .pt. SUM (absn.pa_tasks pt .absn.request_id = p_request_id AND absn.project_id = ppa.SUBSTR (hou.ppa.absn.NAME .project_id = ppa. 5) unit .project_id = pt.task_number AND ppa.project_id = pt.project_id = ppa.PERIOD PERIOD.task_number top_task .

1.absn.project_status status .ppa.top.task_number AND ppa.task_name . (SELECT task_number .hr_organization_units hou .project_manager project_manager . --.SUBSTR (hou.task_id .absn.project_id FROM pa_tasks WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.absn.task_id -.project_id = ppa.top. 5) = p_unit4 AND absn.segment1 .ppa.project_id AND absn.pt.project_id AND hou.absn.description UNION SELECT DISTINCT absn.absn.NAME.pa_tasks pt .PERIOD PERIOD.NAME.request_id = p_request_id AND absn.pa_projects_all ppa .ABSN.carrying_out_organization_id AND SUBSTR (hou.task_number top_task .NAME.description v_description FROM absn_pa_rpt_33_proj absn .project_id .NAME unit_desc .project_id AND top.class_code = p_class_code GROUP BY absn.project_manager .org_id = v_global_org_id AND pt.pa_projects_all ppa .task_name v_task_name .task_id . 5) .hou.project_id = pt.SUBSTR (hou.pt. SUM (absn.hou.hr_organization_units hou .project_id = ppa.task_name = p_task2 AND absn. 1.task_number .absn. (SELECT task_number .pt.COST) v_cost .NAME .project_status . 5) unit .project_id = p_project_id1 AND absn.absn.task_name = pt.project_id AND top.task_id.project_id = ppa.project_id = pt.pt.project_id AND absn.project_id .pa_tasks pt . 1.project_status status .segment1 .organization_id = pt.project_id FROM pa_tasks .pt.description v_description FROM absn_pa_rpt_33_proj absn ..

NAME . 1.task_number top_task .project_id = ppa.top.absn.project_manager project_manager .absn.absn.SUBSTR (hou.organization_id = pt.absn.project_id = ppa.project_id AND absn.task_name . SUM (absn. 5) = p_unit5 -AND absn.absn. 5) .absn.project_id AND absn.hr_organization_units hou .description v_description FROM absn_pa_rpt_33_proj absn .task_number AND ppa.task_id .task_id -.ppa.project_id AND top.project_id .class_code = p_class_code GROUP BY absn.task_number AND ppa.project_id .WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.carrying_out_organization_id AND SUBSTR (hou.task_name = pt.COST) v_cost .NAME.ppa.description UNION SELECT DISTINCT absn.project_id = p_project_id1 AND absn.project_manager . --.top.project_id = ppa. (SELECT task_number .hou.project_id AND top.project_id .project_id AND hou.pa_projects_all ppa .request_id = p_request_id AND absn.pt.pt.project_id = pt.project_id AND top. 1.project_id AND absn.project_id = ppa. 1.PERIOD PERIOD.task_name = pt.project_status status .SUBSTR (hou.segment1 .task_number .task_id.org_id = v_global_org_id AND pt.org_id = v_global_org_id AND pt.pt.project_id = ppa. 5) unit .pa_tasks pt .ABSN.pt.project_id = pt.project_status .NAME.NAME unit_desc .project_id FROM pa_tasks WHERE task_id = top_task_id AND project_id = p_project_id1 AND task_id = p_top_task_id) top WHERE absn.task_name v_task_name .request_id = p_request_id AND absn.NAME.segment1 .project_id = ppa.hou.task_name = p_task2 AND absn.

task_name .project_id .absn. -v_task_id2 NUMBER. 1.pt.task_name = p_task2 AND absn.project_status .NAME.project_manager . v_coa_id NUMBER. p_project_manager1 VARCHAR2 (30). v_division VARCHAR2 (40). v_div_name VARCHAR2 (100). p_task_name1 VARCHAR2 (100). v_task_number2 VARCHAR2 (30). p_unit_desc VARCHAR2 (240). v_project_id NUMBER. 1.absn. 5) AND absn. p_bgt_amt1 NUMBER. v_exp_amount_ytd NUMBER. v_project_name VARCHAR2 (30). v_cap_amount_ytd NUMBER. v_exp_amount_itd NUMBER.hou. p_status1 VARCHAR2 (30). 1.top.pt. p_top_task1 VARCHAR2 (25). 5) = SUBSTR (hou. v_unit1 VARCHAR2 (30). v_cap_amount_itd NUMBER.NAME .project_id AND absn. v_lowest_task VARCHAR2 (100). v_cap_amount_ptd NUMBER.description. 5) . v_cost NUMBER.ppa. p_project_id1 NUMBER.task_number .class_code = p_class_code AND p_unit1 IS NULL AND p_unit2 IS NULL AND p_unit3 IS NULL AND p_unit4 IS NULL AND p_unit5 IS NULL -GROUP BY absn.SUBSTR (hou.project_id = p_project_id1 AND absn. -p_cost1 NUMBER. v_org_id NUMBER. v_top_task VARCHAR2 (100). p_budget_type1 VARCHAR2 (30).absn. v_exp_amount_ptd NUMBER. p_cip_cost NUMBER.NAME.NAME.project_id = pt. p_segment1 VARCHAR2 (100).segment1 . v_project_id2 NUMBER. v_task_organization NUMBER.organization_id = pt. . p_budget_entry_method1 VARCHAR2 (50). v_request_id NUMBER.AND top.task_id -.project_id AND hou. p_description1 VARCHAR2 (240).carrying_out_organization_id AND SUBSTR (hou.project_id = pt. v_project_number VARCHAR2 (200).

project_id AND absn.CLASS_CODE).LOG . mo_global.pa_budget_versions pbv . p_project).'APPROPRIATION'.set_policy_context ('S'.project cu rsor : ' V_PROJECT.burdened_cost .absn_pa_rpt_33_proj absn . FOR v_project IN c_project (p_request_id. 'Setting ORG ID Failed.v_class.v_project.project_id AND absn.project_id = pra. fnd_file.'GOT VALUE FOR TASK .log. /************************************************************ BEGIN OF THE PROCEDURE ABSN_PA_RPT_33_PROC *************************************************************/ BEGIN fnd_file. fnd_file.task_name = pt. FOR v_task IN c_task (p_request_id. 'after get_cost call').p_budget_type1 FROM pa_budget_lines pbl .classification .put_line(fnd_file.0 ) . EXCEPTION WHEN OTHERS THEN fnd_file.put_line (1.CLASSIFICATION V_CLASS. v_class.fnd_file.request_id = p_request_id AND ppa.budget_entry_method_code .put_line (fnd_file.pbv.').budget_type_code INTO p_bgt_amt1 . 'Inside main procedure. v_project.pa_resource_assignments pra . v_org_id)..'GOT class_code .v_project.task_number . SELECT chart_of_accounts_id INTO g_coa_id FROM gl_ledgers WHERE ledger_id = g_sob_id. ERROR: ' SQLERRM).fnd_file.p_budget_entry_method1 .conc_request_id.class_code) LOOP BEGIN SELECT DECODE (pbv.put_line (fnd_file.pa_tasks pt WHERE absn.pbv.top_task_id. 'CHART_OF_ACCOUNTS_ID: ' g_coa_id)..put_line (1.task_name . v_project.class cursor : ' V_CLASS. END.project_id = ppa.pa_projects_all ppa . fnd_file. 'Setting the ORG ID.class_code) LOOP --.TASK_NAME).project_id = pra. pbl. FOR v_class IN c_class_code LOOP --.: ' v_org_id).budget_type_code .project_id AND absn. get_cost (p_request_id.log. v_request_id := fnd_global.put_line (1.v_test NUMBER.project_id .pa_budget_types pbt . ---SETTING ORG_ID BEGIN v_org_id := v_global_org_id.LOG .put_line(fnd_file.

p_request_id . v_project.class_code .v_class.v_task_name AND absn. p_request_id .v_task_name.v_class.class_code .project_id .v_task_name.put_line (fnd_file. v_project. v_project. p_budget_entry_method1 := 'X'.project_id AND absn. 'EXPENSE').classification. fnd_file.Added by Sakthi fnd_file.put_line(fnd_file.Added by Sakthi fnd_file.LOG .v_exp_amount_itd.LOG.class_code GROUP BY pbv.v_cap_amount_ptd. v_project. v_project. -. 'EXPENSE').v_class.classification.LOG . 'S') AND absn.pbl.project_id .task_name = v_task.project_id = v_project.v_task.project_id .project.class_code .v_task. p_request_id .class_code = v_project. 'Error message : ' SUBSTR (SQLERRM.v_task_name.project_id AND pra.AND absn.classification. -. 'PROJECT : ' v_project_name). 200) ). get_cost_ptd (p_period.budget_entry_method_code.class_code . v_project.v_task_name. 'EXPENSE').budget_type_code .resource_assignment_id AND pbv. -.v_task.fnd_file.project_id .pbv.'GOT VALUE FOR TASK : ' V_TA SK.v_exp_amount_ytd.Added by Sakthi END.budget_version_id AND pbv.v_class.class_code . p_request_id .budget_version_id = pbl.put_line (fnd_file. 'Error code : ' SQLCODE).put_line (fnd_file. get_cost_itd (p_period. -.v_task_name).v_task. p_request_id . v_project. v_project_number := v_project. v_project.put_line (fnd_file. fnd_file. v_project.project_id = pt.v_task. 'CAPITAL'). v_project_name := v_project.v_task_name.project_id .v_cap_amount_itd. v_project.burdened_cost ORDER BY pbv.log.project_id . get_cost_itd (p_period.v_exp_amount_ptd. get_cost_ptd (p_period.project_id.put_line (fnd_file. 'other errors'). 'CAPITAL').class_code .budget_entry_method_code .v_class.resource_assignment_id = pbl. get_cost_ytd (p_period. v_project. p_request_id . get_cost_ytd (p_period. v_project.budget_status_code IN ('W'.project.classification.LOG .v_task. WHEN OTHERS THEN fnd_file. p_budget_type1 := NULL.LOG .v_task_name.v_cap_amount_ytd. v_project_id := v_project.classification.Added by Sakthi EXCEPTION WHEN NO_DATA_FOUND THEN p_bgt_amt1 := 0. 'CAPITAL'). 1.classification.v_class. --.

class_code .PROJECT_ASSET_LINE_DETAIL_ID=PALD. v_cap_amount_ptd .original_asset_c ost ) ) ) . 0). v_cap_amount_itd . pt.0.PROJECT_ID AND pt.v_description.PROJECT_ASSET_ LINE_DETAIL_ID AND PALA.REVERSED_FLAG='N' group by pt.*/ SELECT DISTINCT /*+ USE_NL(PAL.p_period.v_project_name. (pad.pt. v_project_number . v_project_id.v_exp_amount_ytd.project_manager.TASK_NAME AND PALD.SUM (ROUND (DECODE (pal. v_task.v_task_id2 .TASK_ID=PT.v_exp_amount_ptd. NULL. v_task.LOG .status . v_project. pt.put_line (fnd_file.task_number=V_PROJECT. E) INDEX( PAL PA_PROJECT_ASSET_LINES_N2) */ pal.unit_desc.pal..p_cip_cost .p_budget_entry_method1. 'INSERT TASK : ' v_task.0 ) .v_task_name).v_task_name . v_cap_amount_ytd .cip_cost * (pal.v_task.v_exp_amount_itd. NULL .e. pa_project_asset_line_details PALD.project_id=V_PROJECT. v_project_id2. 1 . v_task_number2 FROM PA_PROJECT_ASSET_LINES_ALL PALA.2) ) capitalized_cost INTO v_project_id2 .PROJECT_ID and pt. v_task.classification.TASK_ID AND PALA.task_number INTO P_CIP_COST. p_budget_type1.v_class. 'Budget entry method : ' p_budget_entry_method1). fnd_file.project_id.project_id.v_task.line_type . PAD.PROJECT_ID=PT.current_asset_cost / DECODE (pal.cip_cost).original_asset_c ost .v_task.'C'. ---need to write update stmt for getting interfaced cip amount BEGIN /* SELECT sum(PALD.unit .task_number. PA_TASKS PT WHERE PALA.top_task. p_bgt_amt1 .task_id .Added by Sakthi insert_data (p_request_id. -. v_task.project_id .

task_name).p_prj_cls_code VARCHAR2.pa_project_asset_lines_all pal .task_name. COMMIT. END absn_pa_rpt_33_proc. 'A') AND e.transfer_status_code IN ('T'. END LOOP.task_name AND project_id = v_project.project_id = v_project. /******************************************************************************* *************/ PROCEDURE insert_data (p_request_id NUMBER.PUT_LINE(1.p_appr_bgt_amount NUMBER. p_top_task VARCHAR2 . UPDATE absn_pa_rpt_33_temp SET interfaced_cip_cost = p_cip_cost WHERE request_id = p_request_id AND project_id = v_project. p_project_number VARCHAR2.p_budget_type VARCHAR2.e.unit . p_project_manager VARCHAR2 . p_exp_amount_ptd NUMBER . p_unit_description VARCHAR2 . p_interfaced_cip_cost NUMBER ) IS BEGIN ----FND_FILE.project_asset_line_detail_id = pal. p_prj_classf VARCHAR2 .period . END.task_id = (SELECT task_id FROM pa_tasks WHERE task_number = v_project.pa_expenditure_items_all e WHERE pad. p_project_name VARCHAR2 . p_task_description VARCHAR2 .division .project_id) GROUP BY pal. 'INTERFACED CIP AMOUNT IS ZERO FOR THE TASK . END LOOP.p_cap_amount_ytd NUMBER.FROM pa_project_asset_line_details pad .project_id AND e.project_id AND lowest_task = v_project.p_cap_amount_ptd NUMBER. COMMIT.p_project_status VARCHAR2.LOG .'inside the insert data procedure'). p_division VARCHAR2 . EXCEPTION WHEN NO_DATA_FOUND THEN fnd_file.expenditure_item_id AND pal. p_exp_amount_itd NUMBER .project_id .p_lowest_task VARCHAR2.unit_description .put_line (fnd_file.project_id .p_asset_description VARCHAR2.expenditure_item_id = pad.task_id. p_period VARCHAR2. END LOOP. p_budget_entry_method VARCHAR2 . p_exp_amount_ytd NUMBER .p_unit VARCHAR2.p_project_id NUMBER.p_cap_amount_itd NUMBER.' v_project. INSERT INTO absn_pa_rpt_33_temp (request_id .project_asset_line_detail_id AND pal.

p_exp_amount_ytd .interfaced_cip_cost ) VALUES (p_request_id . END insert_data.p_exp_amount_ptd .prj_classf .p_budget_entry_method . ******************************************************************************** **************/ PROCEDURE get_cost (p_request_id NUMBER.budget_type .exp_amount_ytd .p_unit .appr_bgt_amount .project_manager .p_lowest_task . /******************************************************************************* ************** This procedure for fetching the amounts for the Projects .cap_amount_itd .p_task_description .p_exp_amount_itd .p_interfaced_cip_cost ).p_project_manager .cap_amount_ytd .project_number .top_task -.p_unit_description .p_prj_classf .p_cap_amount_itd .p_period .p_budget_type .p_asset_description .budget_entry_method .p_division .p_cap_amount_ytd .p_project_status .p_cap_amount_ptd . p_project VARCHAR2) IS CURSOR c_cap_cost IS SELECT DISTINCT .prj_cls_code .exp_amount_itd ..p_top_task -.project_name .p_appr_bgt_amount . COMMIT.asset_description .lowest_task .cap_amount_ptd .p_project_number .p_project_name .project_status .task_description .exp_amount_ptd .p_project_id .p_prj_cls_code .

pa_projects_all ppa .class_category) LIKE '%CAPIT%EXP%ND%' ) ) AND gcc.project_id = ppa.project_id AND ppa.lookup_type = b.class_code .gl_code_combinations gcc .ppa. (SELECT project_id .project_id = pcdla.expenditure_item_id = pcdla.pcdla.task_id = pcdla.full_name) pkm WHERE ppc.pt.pa_project_statuses pps .task_number task_number . 0) COST FROM pa_expenditure_items_all peia .class_category .lookup_type = 'ABSN_PA_CIP_ACCOUNTS' AND a.pa_tasks pt .segment2 IN ( SELECT a.class_category) LIKE '%CAPEX%' OR UPPER (pac.burdened_cost).fnd_lookup_types b WHERE b./*+ PARALLEL ( peia 2) */ /*+ PARALLEL ( pcdla 2) */ pt.task_id = peia.NVL (SUM (pcdla.lookup_code FROM fnd_lookup_values a .pa_cost_distribution_lines_all pcdla .project_id AND pt.class_category = pcc.full_name full_name .project_status_code AND ppa.code_combination_id AND gcc.task_id task_id .burdened_cost != 0 AND class_code IN ( SELECT pcc.class_category AND (UPPER (pac.pafv_key_members -.ppa.pa_project_classes ppc .project_status_code .project_id project_id .pa_period_name period .project_id = ppc.task_id AND pt.pkm.full_name FROM apps.ppa. SYSDATE + 1) GROUP BY project_id .project_id AND pt.class_code FROM pa_class_categories pac .project_id = pt.lookup_type AND a.dr_code_combination_id = gcc.NULL commitments .expenditure_item_id AND pcdla.segment1 NAME .enabled_flag = 'Y' .project_status_code = pps.chart_of_accounts_id = g_coa_id AND ppa.pa_class_codes pcc WHERE pac.project_id AND peia.task_id AND pcdla.to get project manager for a project WHERE project_role = 'Project Manager' AND TRUNC (SYSDATE) BETWEEN start_effective_date AND NVL (end_effective_date .

tot_cmt_burdened_cost IS NOT NULL AND tot_burdened_cost = 0 AND ppa.pkm.class_category = pcc.SUM (pta.project_id AND pt.full_name .to get project manager for a project WHERE project_role = 'Project Manager' AND TRUNC (SYSDATE) BETWEEN start_effective_date AND NVL (end_effective_date .ppa.end_date_active .full_name FROM apps.pta.task_id .ppa.task_id .full_name full_name .pkm.class_code .segment1 .ppa.full_name) pkm WHERE ppa.project_id = ppa.ppa.NULL COST FROM pa_projects_all ppa .class_category) LIKE '%CAPIT%EXP%ND%' ) ) AND ppa.pa_project_classes ppc . SYSDATE ) >= SYSDATE) AND ppa.pa_class_codes pcc WHERE pac.project_status_code .org_id = v_global_org_id --Added for multiorg expansion AND ppa.project_status_code .pafv_key_members -.pa_tasks pt .gl_period period .ppa.tot_cmt_burdened_cost) commitments .project_id(+) GROUP BY pt.project_id .project_id project_id .NULL.class_category) LIKE '%CAPEX%' OR UPPER (pac.project_id = pt.ppa.project_id( AND ppc.pa_txn_accum pta .task_number .pt.class_category .project_id = pta.class_code .class_category .task_number .pta.project_id = pkm.org_id = v_global_org_id +) .pcdla. SYSDATE + 1) GROUP BY project_id . (SELECT project_id .project_id = pkm.task_id = pta.class_category AND (UPPER (pac.class_code FROM pa_class_categories pac .pa_period_name UNION SELECT pt.AND DECODE (a.project_id AND class_code IN ( SELECT pcc.project_id AND pt.task_id AND pta.segment1 NAME .

class_category = pcc.project_id project_id .pa_period_name period . 0) COST FROM pa_expenditure_items_all peia .NULL commitments .class_category AND (UPPER (pac.project_status_code AND ppa. SYSDATE + 1) GROUP BY project_id .ppa.class_code .project_id .to get project manager for a project WHERE project_role = 'Project Manager' AND TRUNC (SYSDATE) BETWEEN start_effective_date AND NVL (end_effective_date .full_name .project_id = ppc.pa_cost_distribution_lines_all pcdla .ppa.expenditure_item_id AND pcdla.pa_projects_all ppa . CURSOR c_exp_cost IS SELECT DISTINCT /*+ PARALLEL ( peia 2) */ /*+ PARALLEL ( pcdla 2) */ pt.chart_of_accounts_id = g_coa_id AND ppa.task_id AND pcdla.pkm.segment1 NAME .task_id .class_category) LIKE '%CAPEX%' .project_id AND pt.expenditure_item_id = pcdla.NVL (SUM (pcdla.project_id AND ppa.project_status_code .burdened_cost != 0 AND class_code IN ( SELECT pcc.class_code .pcdla.GROUP BY pt.project_status_code .project_id = ppa.full_name) pkm WHERE ppc.task_number task_number .project_id = pt.project_id = pcdla.dr_code_combination_id = gcc.full_name FROM apps.task_id AND pt.class_category .task_id task_id .ppa.pa_tasks pt .task_id = pcdla.pafv_key_members -.ppa.class_code FROM pa_class_categories pac .pa_project_classes ppc .pkm.pta.task_id = peia.ppa.full_name full_name .project_status_code = pps.pt.project_id AND pt.segment1 .project_id AND peia. (SELECT project_id .burdened_cost).task_number .code_combination_id AND gcc.pa_class_codes pcc WHERE pac.gl_code_combinations gcc .class_category .pta.ppa.gl_period.pa_project_statuses pps .

project_id +) .to get project manager for a project WHERE project_role = 'Project Manager' AND TRUNC (SYSDATE) BETWEEN start_effective_date AND NVL (end_effective_date .pa_project_classes ppc .pta.project_id( AND ppc.pcdla.project_id project_id .task_id AND pta.ppa.lookup_type AND a.NULL.full_name full_name . (SELECT project_id .pkm.full_name .pafv_key_members -. SYSDATE ) >= SYSDATE) AND ppa.tot_cmt_burdened_cost IS NOT NULL AND tot_burdened_cost = 0 AND ppa.project_status_code .task_id .project_id = pt.task_number .task_number .pa_txn_accum pta .project_id(+) GROUP BY pt.segment2 NOT IN ( SELECT a.tot_cmt_burdened_cost) commitments .project_id AND pt.project_id AND pt.pa_tasks pt .ppa.pkm.OR UPPER (pac.class_code .class_category .class_code .segment1 NAME .SUM (pta.lookup_type = b.class_category) LIKE '%CAPIT%EXP%ND%' ) ) AND gcc.fnd_lookup_types b WHERE b.project_id = pkm.project_id = pkm.ppa.org_id = v_global_org_id --Added for multiorg expansion AND ppa.gl_period period .project_id = ppa.project_id = pta.pta.class_category .enabled_flag = 'Y' AND DECODE (a.NULL COST FROM pa_projects_all ppa .project_status_code .ppa.lookup_type = 'ABSN_PA_CIP_ACCOUNTS' AND a.end_date_active .full_name FROM apps.segment1 .ppa.pa_period_name UNION SELECT pt.ppa.task_id = pta.pt.project_id .task_id .full_name) pkm WHERE ppa. SYSDATE + 1) GROUP BY project_id .lookup_code FROM fnd_lookup_values a .

v_exp_cost.task_id .class_category .NAME .v_cap_cost.p_task VARCHAR2.full_name .v_exp_cost.'CAPITAL' .v_exp_cost.v_exp_cost.class_code FROM pa_class_categories pac .pa_class_codes pcc WHERE pac.v_cap_cost.period . p_classcode VARCHAR2.class_code .v_exp_cost.v_exp_cost.class_category) LIKE '%CAPIT%EXP%ND%' ) ) AND ppa. COMMIT.v_exp_cost. PROCEDURE get_cost_itd (p_period VARCHAR2.project_status_code .v_cap_cost. 'inside get_cost procedure').project_status_code ). FOR v_exp_cost IN c_exp_cost LOOP INSERT INTO absn_pa_rpt_33_proj VALUES (p_request_id .full_name .task_id .'EXPENSE' .v_cap_cost.segment1 .v_cap_cost.pta.project_id .v_cap_cost. END LOOP.class_category .class_code . p_class_category VARCHAR2 .full_name .period . --T_COST1 := 0. END LOOP.task_number .class_code .COST .project_id .v_cap_cost.v_cap_cost.pkm.ppa. BEGIN fnd_file.v_exp_cost. END get_cost.class_category .AND class_code IN ( SELECT pcc.v_exp_cost.gl_period.v_cap_cost.project_id .project_status_code ).NAME .class_category AND (UPPER (pac.class_category = pcc.put_line (1.ppa.v_exp_cost.COST .task_number .task_id .class_category) LIKE '%CAPEX%' OR UPPER (pac. FOR v_cap_cost IN c_cap_cost LOOP INSERT INTO absn_pa_rpt_33_proj VALUES (p_request_id . p_project_id IN NUMBER .v_cap_cost.ppa.task_number .pta.org_id = v_global_org_id GROUP BY pt.

p_task VARCHAR2. p_classification VARCHAR2 . '-') + 1) < SUBSTR (p_period. 0) INTO p_cost FROM absn_pa_rpt_33_proj WHERE class_code = p_classcode AND class_category = p_class_category AND request_id = p_request_id AND cost_type = p_type AND task_name = p_task AND absn_pa_rpt_33_proj. 2) <= SUBSTR (p_period.p_task VARCHAR2. '-') + 1) = SUBSTR (p_period. p_project_id2 NUMBER . '-') + 1) ) ).. p_cost OUT NUMBER. p_classification VARCHAR2 . INSTR (p_period. END get_cost_ytd. INSTR (period. INSTR (period.p_class_code VARCHAR2. p_class_category VARCHAR2 .1) AND absn_pa_rpt_33_proj. INSTR (period. /******************************************************************************* ***********************/ PROCEDURE get_cost_ytd (p_period VARCHAR2. INSTR (period. /******************************************************************************* ***********************/ PROCEDURE get_cost_ptd (p_period VARCHAR2. END get_cost_ptd. p_project_id1 NUMBER . p_unit2 VARCHAR2 .p_request_id NUMBER. p_class_code VARCHAR2. 0) INTO p_amount_ytd FROM absn_pa_rpt_33_proj WHERE class_code = p_class_code AND class_category = p_classification AND request_id = p_request_id AND task_name = p_task AND cost_type = p_type AND SUBSTR (period. 2. '-') + 1) OR (SUBSTR (period. INSTR (p_period. p_amount_ptd OUT NUMBER.p_request_id NUMBER. p_unit1 VARCHAR2. p_class_code VARCHAR2.p_request_id NUMBER. '-') + 1) AND SUBSTR (period. 2) AND SUBSTR (period. 0) INTO p_amount_ptd FROM absn_pa_rpt_33_proj WHERE class_code = p_class_code AND class_category = p_classification AND request_id = p_request_id AND cost_type = p_type AND period = p_period AND task_name = p_task AND absn_pa_rpt_33_proj. '-') . 2. 2.project_id = p_project_id1. /******************************************************************************* ******************** FETCH_DATA PROCEDURE ******************************************************************************** *****/ PROCEDURE fetch_data (err_buff OUT VARCHAR2.p_org_id NUMBER. INSTR (p_period.1) <= SUBSTR (p_period. p_period VARCHAR2. p_type VARCHAR2 ) IS BEGIN SELECT NVL (SUM (COST). END get_cost_itd. 2.project_id = p_project_id2. p_type VARCHAR2 ) IS BEGIN SELECT NVL (SUM (COST). p_type VARCHAR2 ) IS BEGIN SELECT NVL (SUM (COST).project_id = p_project_id AND (SUBSTR (period. p_amount_ytd OUT NUMBER. '-') + 1) = SUBSTR (p_period. ret_code OUT NUMBER . INSTR (p_period. '-') .

p_ptd_grnd_tot NUMBER := 0. p_percent_spend NUMBER ) AS v_seg1 VARCHAR2 (30). x_cap_amount_grnd_tot_ptd NUMBER := 0. p_cap_amount_grnd_tot_itd NUMBER := 0. x_itd_grnd_tot NUMBER := 0. t_ytd_grnd_tot NUMBER := 0. x_ptd_grnd_tot NUMBER := 0. t_exp_amount_grnd_tot_ptd NUMBER := 0. t_commitments_grnd_tot NUMBER := 0. --RFC#60254 t_project VARCHAR2 (30). v_bgt_version_id NUMBER (15). t_top_task VARCHAR2 (30). p_unit5 VARCHAR2 . . p_exp_amount_grnd_tot_ytd NUMBER := 0. p_entry_method VARCHAR2 (240) := ''. p_interfaced_cip NUMBER := 0. t_ptd_grnd_tot NUMBER := 0. t_unit_desc VARCHAR2 (240). t_project_manager VARCHAR2 (25). t_car number. t_status VARCHAR2 (50). t_bgt_amount_grnd_tot NUMBER := 0. t_asset_category VARCHAR2 (200). v_resource_assmnt_id NUMBER (15). p_exp_amount_grnd_tot_itd NUMBER := 0. p_commitments_grnd_tot NUMBER := 0. v_asset_desc VARCHAR2 (240). x_exp_amount_grnd_tot_ptd NUMBER := 0. t_exp_amount_grnd_tot_ytd NUMBER := 0. p_cap_amount_grnd_tot_ptd NUMBER := 0. t_asset_desc VARCHAR2 (300). ------------v_seg2 VARCHAR2 (30). p_unit4 VARCHAR2. p_over_und_appr_grnd_tot NUMBER := 0..p_unit3 VARCHAR2. x_entry_method VARCHAR2 (240) := ''. t_cap_amount_grnd_tot_ytd NUMBER := 0. v_burdened_cost NUMBER := 0.p_project VARCHAR2. t_unit VARCHAR2 (50). t_exp_amount_grnd_tot_itd NUMBER := 0. t_interfaced_cip NUMBER := 0. x_exp_amount_grnd_tot_itd NUMBER := 0. t_task_desc VARCHAR2 (300). p_ytd_grnd_tot NUMBER := 0. p_exp_amount_grnd_tot_ptd NUMBER := 0. t_class_code VARCHAR2 (50). p_bgt_amount_grnd_tot1 NUMBER := 0. t_itd_grnd_tot NUMBER := 0. t_entry_method VARCHAR2 (240) := ''. t_cap_amount_grnd_tot_itd NUMBER := 0. t_cap_amount_grnd_tot_ptd NUMBER := 0. x_cap_amount_grnd_tot_itd NUMBER := 0. p_itd_grnd_tot NUMBER := 0. v_task_id NUMBER. t_over_und_appr_grnd_tot NUMBER := 0.p_car varchar2 ----------------------RFC#60254 . p_bgt_amount_grnd_tot NUMBER := 0. t_task VARCHAR2 (30). p_cap_amount_grnd_tot_ytd NUMBER := 0.

ppa. ppa.budget_type = 'APPROPRIATION' GROUP BY temp.project_name.x_cap_amount_grnd_tot_ytd NUMBER := 0.2) ) FROM absn_pa_rpt_33_temp temp .pa_project_statuses pps .temp. x_commitments_grnd_tot NUMBER := 0. ppa.closed_date . 0) . 2) .'CLOSED'. 0).project_id AND pps.project_name .'DROPPED'.appr_bgt_amount.project_name .project_name .'DROPPED'. x_exp_amount_grnd_tot_ytd NUMBER := 0.'CLOSED'. x_interfaced_cip NUMBER := 0.closed_date .closed_date .SYSDATE ) ) HAVING ( ( (DECODE (pps.project_name .project_status_code AND temp.'CLOSED'.temp.project_id . x_ytd_grnd_tot NUMBER := 0. 0) + NVL (exp_amount_itd.SYSDATE ) ) .project_id = temp. 0).project_status_code AND temp.project_status_code AND temp.project_status = pps. /*****************************************************/ CURSOR cur_project_y (p_request_id NUMBER) IS SELECT DISTINCT temp.pa_projects_all ppa WHERE temp. (DECODE (pps.closed_date .ROUND (NVL (temp.request_id = p_request_id AND ppa.project_id = temp. 2) .SUM (ROUND (NVL (cap_amount_itd.project_id AND pps.'DROPPED'.project_status = pps.365 ) ) ) ORDER BY temp.temp. x_bgt_amount_grnd_tot NUMBER := 0. /****************************************************************/ CURSOR cur_project_y1 (p_request_id NUMBER) IS SELECT DISTINCT temp. x_over_und_appr_grnd_tot NUMBER := 0.request_id = p_request_id AND ppa. ppa.project_id .ROUND (NVL (temp.closed_date .pa_projects_all ppa WHERE temp. ppa.project_id project_id FROM absn_pa_rpt_33_temp temp .temp.project_status_code GROUP BY temp.closed_date .project_status_code = ppa.pa_project_statuses pps . ppa.SYSDATE ) > SYSDATE . (DECODE (pps.project_status_code = ppa.project_status_name .project_status_name .appr_bgt_amount.project_id project_id .project_status_name .

0).exp_amount_ptd.SYSDATE ) > SYSDATE . 2) ) * 100 ) >= p_percent_spend ) AND ( ( (DECODE (pps.ROUND (NVL (temp. ppa. 2) cap_amount_itd .P_PROJECT_ID VARCHAR 2) IS SELECT distinct TEMP. 2) exp_amount_ytd .cap_amount_ytd.ROUND (NVL (temp.task_number AND TEMP. 0). 0). /**************************************************************************/ CURSOR cur_top_task (p_request_id NUMBER.project_id = p_project_id ORDER BY temp.ROUND (NVL (temp.temp. 0) .TASK_ID TASK_ID FROM ABSN_PA_RPT_33_TEMP TEMP.pt. 2) cap_amount_ptd .ROUND (NVL (temp.request_id = p_request_id AND temp. 0). 2) cap_amount_ytd .budget_entry_method bgt_entry_method FROM absn_pa_rpt_33_temp temp WHERE temp.PROJECT_ID=TEMP. 0).project_status_name .lowest_task task .cap_amount_itd.appr_bgt_amount. p_project_id VARCHAR2) IS SELECT DISTINCT temp.TOP_TASK = P_TOP_TASK and temp.'CLOSED'.2) ) / ROUND (NVL (temp.PROJECT_ID and temp. ppa.P_REQUEST_ID NUMBER.ROUND (NVL (temp.*/ /*********************************************************************/ CURSOR cur_task_y (p_top_task VARCHAR2.ROUND (NVL (temp. 2) exp_amount_itd . PT.cap_amount_ptd.exp_amount_itd. 0) + NVL (temp.attribute3 car ---RFC#60254 .exp_amount_ytd.project_name.top_task top_task .'DROPPED'.exp_amount_itd. 0). PA_TASKS PT WHERE PT.closed_date .project_id = P_PROJECT_ID.task_id task_id .LOWEST_TASK TASK. 0) ). 2) commitments . 2) bgt_amt . 2) exp_amount_ptd .lowest_task=pt. 0).REQUEST_ID = P_REQUEST_ID AND TEMP.tot_cmt_burdened_cost.p_project_id VARCHAR2 ) IS SELECT DISTINCT temp.ROUND (NVL (temp.ROUND (SUM (NVL (pta. /******************************************************************/ /*CURSOR CUR_TASK_Y(P_TOP_TASK VARCHAR2. p_request_id NUMBER .closed_date .HAVING ( ( ( (SUM (ROUND (NVL (temp.cap_amount_itd.365 ) ) ) ) ORDER BY temp.appr_bgt_amount.top_task.pt. 0).

0) .temp.ROUND (NVL (temp.exp_amount_ptd.pt.task_id = pt. 0) ) <> 0 OR SUM (NVL (temp.0 )) ----RFC#60254 AND temp.cap_amount_ptd . 0) ) <> 0 OR SUM (NVL (temp.temp. 0).lowest_task task . /******************************************************************************* ****/ CURSOR cur_asset_y1 (p_request_id NUMBER.ROUND (NVL (temp.temp.cap_amount_ytd.project_id = pta. p_task VARCHAR2 ) IS SELECT temp.exp_amount_ptd .exp_amount_ytd.task_number AND pta.cap_amount_ytd .cap_amount_ptd.p_task_id NUMBER.temp. 0) ) <> 0 OR SUM (NVL (temp. 0) ) <> 0 OR SUM (NVL (temp.project_id = pt.2) over_under_appropriation . 0) ) <> 0 OR SUM (NVL (temp. 0) ) <> 0 OR SUM (NVL (temp.request_id = p_request_id -AND nvl(pt.cap_amount_ptd.interfaced_cip_cost.appr_bgt_amount.unit v_unit .interfaced_cip_cost HAVING ( ( (SUM (NVL (pta. 0) + NVL (temp.appr_bgt_amount.exp_amount_itd.project_id AND pt.temp.lowest_task = pt.temp.cap_amount_itd .task_id AND pta.pt.exp_amount_itd.pa_txn_accum pta WHERE pt.exp_amount_ytd . 0) ) <> 0 OR SUM (NVL (temp.project_id = temp.project_id = p_project_id GROUP BY temp. p_project_id1 VARCHAR2 .top_task top_task .tot_cmt_burdened_cost.attribute3.pa_tasks pt . 0) ) <> 0 OR SUM (NVL (temp.cap_amount_ytd. 0) ) .exp_amount_ptd.temp.lowest_task . 0) ) <> 0 OR SUM (NVL (temp.project_manager v_project_manager .nvl(pt.pt.project_id AND temp.project_id AND temp.. 0) ) <> 0 ) ) OR ( (SUM (NVL (temp.attribute3 car ---RFC#60254 .attribute3.cap_amount_itd.temp.0) =nvl(p_car.task_id . 2) interfaced_cipcost FROM absn_pa_rpt_33_temp temp .appr_bgt_amount . 0) ) <> 0 ) ) ).temp.(NVL (temp.exp_amount_itd .temp.top_task = p_top_task AND temp.attribute3 --RFC#60254 .temp.cap_amount_itd.exp_amount_ytd.project_id = temp. 0) ) <> 0 OR SUM (NVL (temp.project_id AND pta.

cap_amount_ytd.pa_txn_accum pta WHERE temp.temp.2) over_under_appropriation .2) itd_total .ROUND (NVL (temp. 2) exp_amount_ptd .project_id pt.cap_amount_ptd. 0).project_id = ppa.2) ytd_total .project_status_name .project_id = temp.task_id AND pta.project_id AND ppa.ROUND (SUM (NVL (pta.temp. 2) bgt_amt . 0) + NVL (temp.exp_amount_itd.appr_bgt_amount.project_status_code AND pta.SYSDATE ) ) . 0).pps.appr_bgt_amount.project_id = pt.prj_cls_code class_code .cap_amount_ptd. 0) + NVL (temp.ROUND (NVL (temp. ppa.unit_description unit_desc .ROUND (NVL (temp.project_id AND pt.ROUND (NVL (temp. 0) . 0) .lowest_task ppa.exp_amount_ptd.project_status_code = pps.closed_date . 2) commitments .budget_entry_method v_entry_method .task_id = pt.project_id AND pta.ROUND (NVL (temp.prj_classf classification .ROUND (NVL (temp. 0) + NVL (temp.org_id = v_global_org_id temp.0))----R FC#60254 AND AND AND AND AND pt. 0).interfaced_cip_cost.'DROPPED'. 0).cap_amount_itd.ROUND (NVL (temp. 0) + NVL (temp..exp_amount_ptd.temp.project_id AND nvl(pt. 2) interfaced_cipcost FROM pa_tasks pt .temp.ROUND (NVL (temp.pa_projects_all ppa . ppa.exp_amount_ytd.2) ptd_total . 0) .project_id = temp. (DECODE (pps.pa_project_statuses pps .task_description v_description . 2) exp_amount_itd .project_id = pt.task_number = p_task AND pt.project_id AND temp.exp_amount_itd.task_number = temp.ROUND (NVL (temp.temp.ROUND (NVL (temp. 2) cap_amount_ptd .temp.ROUND (NVL (temp.project_id = ppa. 2) cap_amount_itd . 0) ).request_id = p_request_id AND ppa.cap_amount_itd. 0).exp_amount_ytd.ROUND (NVL (temp.absn_pa_rpt_33_temp temp .closed_date . 0). 2) exp_amount_ytd . 2) cap_amount_ytd .exp_amount_itd.cap_amount_itd. 0) .project_id AND pt.task_id = p_task_id .cap_amount_ytd.description status .0) =nvl(p_car. 0).tot_cmt_burdened_cost.project_id = p_project_id1 pt.attribute3.project_id = pta.nvl(pt.attribute3.'CLOSED'. 0).budget_type budget_type .(NVL (temp.project_id = ppa. 0) ) .project_id AND temp.

temp.temp.interfaced_cip_cost . ppa.temp.task_description .unit_description .unit .temp.temp. ppa.temp.closed_date .SYSDATE ) ) HAVING ( ( (DECODE (pps.cap_amount_itd .budget_type = 'APPROPRIATION' OR temp.'DROPPED'.closed_date .project_status_name . ppa.temp.temp.top_task .temp.closed_date . p_task2 VARCHAR2 ) IS SELECT temp.'CLOSED'.project_manager .'CLOSED'.AND (temp. ppa.pt.project_status_name .project_manager v_project_manager .p_task_id2 NUMBER.temp.'CLOSED'.temp.temp.unit v_unit .prj_classf .365 ) ) OR ( (DECODE (pps.temp.exp_amount_ytd .temp.temp.exp_amount_ptd .lowest_task task .project_status_name .top_task .description . /**********************************************************************/ CURSOR cur_asset_y2 (p_request_id NUMBER.top_task top_task .SYSDATE ) < SYSDATE .exp_amount_itd .week_ending_date -. ppa.pt. p_project_id2 VARCHAR2 .unit_description unit_desc .365 ) ) ) ORDER BY temp.SYSDATE ) > SYSDATE . ppa.budget_type IS NULL ) ---and sysdate > pta. (DECODE (pps.closed_date .lowest_task.appr_bgt_amount .temp.cap_amount_ytd .prj_cls_code .temp.budget_entry_method .'DROPPED'.cap_amount_ptd .are zero (0) or any of the budget amounts are greater than zero GROUP BY temp.attribute3---RFC#60254 .'DROPPED'.pps.temp.temp.Since user want to suppress projects showing up when capital and exp ense amounts -.temp.lowest_task .attribute3 car ---RFC#60254 .closed_date .temp.budget_type .closed_date .temp.

ppa. 0) .ROUND (NVL (temp.ROUND (NVL (temp.ROUND (NVL (temp.project_status_code = pps.exp_amount_itd.exp_amount_itd.'CLOSED'.pa_txn_accum pta WHERE temp.project_id AND pt.project_id AND pta.exp_amount_ytd.prj_cls_code class_code . 0).ROUND (NVL (temp.ROUND (NVL (temp. 2) bgt_amt .lowest_task AND nvl(pt.cap_amount_ptd.pps. 0) .task_id = p_task_id2 .temp.nvl(pt. ppa.task_description v_description . 2) exp_amount_ytd . 2) cap_amount_itd .exp_amount_ytd. 2) exp_amount_itd .appr_bgt_amount. 2) cap_amount_ytd .attribute3.ROUND (NVL (temp.project_id = temp.ROUND (NVL (temp. 2) commitments . 0).project_id AND ppa. 2) exp_amount_ptd .project_id = pt.cap_amount_itd.description status .project_id AND pt.closed_date .0) =nvl(p_car. 0). 0) ).org_id = v_global_org_id AND temp. 0) ) .project_id = pt.temp.budget_entry_method v_entry_method .project_id = p_project_id2 AND pt.tot_cmt_burdened_cost.(NVL (temp.temp.ROUND (NVL (temp.exp_amount_ptd.budget_type budget_type . 0).ROUND (NVL (temp.ROUND (NVL (temp.cap_amount_ytd. 0). 2) cap_amount_ptd .2) ptd_total . 0) + NVL (temp.0)) ---RFC#60254 -AND ppa.temp.task_number = p_task2 AND pt. 0).appr_bgt_amount.temp.exp_amount_ptd.project_status_code AND pta.project_id AND pt.. 0) + NVL (temp.pa_projects_all ppa .task_number = temp.SYSDATE ) ) .cap_amount_ytd.ROUND (SUM (NVL (pta.prj_classf classification .project_id = ppa.attribute3.absn_pa_rpt_33_temp temp .ROUND (NVL (temp. (DECODE (pps. 0) .cap_amount_itd.pa_project_statuses pps .ROUND (NVL (temp.request_id = p_request_id AND ppa.project_id = pta.cap_amount_ptd. 0).2) ytd_total . 0) + NVL (temp. 2) interfaced_cipcost FROM pa_tasks pt .task_id AND pta.2) itd_total .cap_amount_itd. 0) + NVL (temp.project_id AND temp.project_status_name .exp_amount_itd.project_id AND pt.project_id = ppa.'DROPPED'.closed_date .2) over_under_appropriation .interfaced_cip_cost.project_id = temp. 0). 0) .project_id AND temp.task_id = pt.project_id = ppa.

temp. 'Reporting Period : ' p_period).closed_date . fnd_file. BEGIN v_global_org_id := p_org_id.'DROPPED'.AND temp.SYSDATE ) < SYSDATE . (DECODE (pps. fnd_file.temp.lowest_task.cap_amount_itd . 'Classification Category : ' p_class_category).put_line (1.temp. fnd_file.top_task .temp. 'V_GLOBAL_ORG_ID: ' v_global_org_id). 'Classification Class Code: ' p_class_code).'DROPPED'.project_status_name . ppa. /******************************************************************************* */ v_request_id NUMBER.temp.put_line (2.pt.'CLOSED'.temp.temp.pps.365 ) ) OR ( (DECODE (pps.temp.appr_bgt_amount .temp. 'Unit1 : ' p_unit1). fnd_file.project_status_name .put_line (2.attribute3 ---RFC#60254 .'CLOSED'.budget_type = 'APPROPRIATION' -.budget_entry_method .closed_date .unit_description . .are zero (0) or any of the budget amounts are greater than zero GROUP BY temp.Since user want to suppress projects showing up when capital and exp ense amounts -.closed_date .SYSDATE ) > SYSDATE . ppa.exp_amount_ptd .temp.put_line (2.exp_amount_ytd .lowest_task .closed_date .prj_cls_code .temp. v_request_id := fnd_global. ppa.'CLOSED'.closed_date .put_line (2.unit .closed_date .'DROPPED'.temp.exp_amount_itd . ppa.put_line (2 . ppa.temp.365 ) ) ) ORDER BY temp.project_status_name . fnd_file.temp.project_manager .budget_type .cap_amount_ptd .interfaced_cip_cost .temp.temp.cap_amount_ytd . 'Unit2 : ' p_unit2).description .prj_classf .SYSDATE ) ) HAVING ( ( (DECODE (pps.top_task .task_description . ppa.temp.conc_request_id. fnd_file.temp.

put_line (2.'YTD ACTUALS .'TOP TASK'. fnd_file. EXCEPTION WHEN OTHERS THEN fnd_file. 'call to absn_pa_rpt_33_proc '). fnd_file.'PROJECT STATUS' .put_line fnd_file.EXP' .put_line (1. 'PROJECT' .absn_excel_format_proc ('CAR'. 'ACTUALS = Invoiced amounts that include Tax ').put_line (1 .'ITD ACTUALS . 'Unit3 'Unit4 'Unit5 'CAR fnd_file.put_line (2. p_class_category.'ASSET DESCRIPTION' . p_unit3 .EXP' . IF p_percent_spend = 0 THEN : ' p_unit3). fnd_file.VALUE ('GL_SET_OF_BKS_ID'). 'UNIT DESCRIPTION' .put_line (2. : ' p_unit4).put_line (2 .CAP' .'APPROPRIATION' . 'FND_GLOBAL.put_line (1. BEGIN absn_pa_rpt_33_proc (p_period. (2.'OPEN COMMITMENTS = Open Requisitions and Purchase Orders (NO TAX or F REIGHT included) thru Report Run Date').'PTD ACTUALS . 'LEDGER_ID: ' g_sob_id). 'Error in fetch data block: ' SQLERRM).CAP' . 'Project Name fnd_file.put_line (2.'YTD TOTAL' . --------------------RFC#60254 : ' p_project).'ITD TOTAL' .put_line (2.'PTD TOTAL' . : ' p_car). ' '). : ' p_percent_spend). fnd_file. --'(OVER)/UNDER APPROPRIATION'. --p_car. p_unit2.'ASSET CATEGORY' .'FIXED ASSET . absn_excel_format_pkg.EXP' . (2.put_line fnd_file.put_line (2.fnd_file. END.put_line (1. p_unit1. 'TASK' . .'PTD ACTUALS . fnd_file.v_request_id.'PROJECT MANAGER'). g_sob_id := fnd_profile.put_line fnd_file.p_unit4. --RFC#60254 'OPEN CMTS thru TODAY' . ---'UNIT'. : ' p_unit5).'YTD ACTUALS . --RFC#60254 'Total Spend' . fnd_file. p_unit5.CONC_REQUEST_ID' fnd_global. p_class_code .CAP' . (2.conc_request_id).DEPRECIATING' . ' '). 'By Percent Spend fnd_file.'TASK DESCRIPTION' .'CLASS CODE' . --------------------RFC#60254 p_project).'ITD ACTUALS .

put_line (fnd_file.put_line (fnd_file.task_id. 'GOT VALUE for task . v_task.LOG. 'NO AMOUNT FOR TOP TASK' v_top_task.pra.v_proj : ' v_proj.task_id = (SELECT task_id FROM pa_tasks WHERE project_id = v_proj.v_top_task : ' v_top_task.'TOP TASK. v_proj.burdened_cost .put_line (fnd_file. NO RESOURCE' .pa_budget_versions pbv WHERE pra.v_proj.top_task). FOR v_asset1 IN cur_asset_y1 (v_request_id .budget_version_id INTO v_burdened_cost .put_line (fnd_file. EXCEPTION WHEN NO_DATA_FOUND THEN fnd_file.budget_version_id AND pra.project_id).project_id .budget_version_id = pbl.v_task.LOG . NO RESOURCE' ) THEN BEGIN SELECT DISTINCT pbl. v_request_id .task) . 'GOT VALUE FOR top TASK .top_task).LOG .v_task_id .project_id AND task_number = v_top_task. IF v_top_task.put_line (fnd_file.project_id) LOOP fnd_file.LOG . FOR v_top_task IN cur_top_task (v_request_id.project_id AND pbv.top_task. FOR v_task IN cur_task_y (v_top_task.pbl.FOR v_proj IN cur_project_y (v_request_id) LOOP fnd_file.top_task).v_task : ' v_task.budget_status_code IN ('W'.budget_version_id = pbv. END IF. 'GOT VALUE for project_id . 'S') AND pra.resource_assignment_id .task_id .pa_resource_assignments pra .v_resource_assmnt_id .pra. 'other errors').task).v_proj.project_id) LOOP fnd_file.resource_assignment_id = pbl. WHEN OTHERS THEN fnd_file.resource_assignment_id AND pbv.project_id = v_proj. v_burdened_cost := 0. END.LOG .bgt_entry_method IN ('TOP' ' &' ' LOWEST TASK.v_bgt_version_id FROM pa_budget_lines pbl .budget_version_id AND pbv.

END.project_asset_id AND fac.project_id AND temp. v_seg2 := NULL.V_UNIT).project_id = ppa.project_id = ppa.project_name).project_id AND temp.segment1 seg1 .put_line (fnd_file.task_id = ppaas.pa_project_assets_all ppaa .request_id = v_request_id AND temp. 'GOT assets for task .LOOP fnd_file. --. t_car := --RF C#60254 TRIM (TRAILING ' ' FROM v_task.status).project_id AND pt.project_id AND ppaas.car).project_id AND pt.task).segment2 seg2 -INTO v_asset_desc .LOG . := .task_id = v_task.task AND pt.LOG.project_asset_id = ppaa.lowest_task = pt.project_id = ppaas.asset_description asset_desc .project_id AND temp.project_id = v_proj. BEGIN SELECT ppaa. t_entry_method := TRIM (TRAILING ' ' FROM v_asset1.v_task : ' v_task.pa_projects_all ppa WHERE pt.v_seg2 -FROM pa_project_asset_assignments ppaas .fac.project_id = ppaa.project_id = pt.task_id AND temp.project_id AND temp.fa_categories_b fac .task_number = v_task. -WHEN OTHERS THEN fnd_file. 'other errors').task_id. EXCEPTION WHEN NO_DATA_FOUND THEN v_asset_desc := NULL.T_UNIT := TRIM(TRAILING ' ' FR OM V_ASSET. t_unit_desc t_top_task := TRIM (TRAILING ' ' FROM v_asset1.project_id AND ppaa.category_id = ppaa.project_id = pt.project_id = ppa.v_entry_method).unit_desc).project_id AND ppaa.asset_category_id AND ppaas.put_line (fnd_file.absn_pa_rpt_33_temp temp .task_number AND ppaas. --RFC #60254 t_project := TRIM (TRAILING ' ' FROM v_proj.fac. v_seg1 := NULL. t_status := TRIM (TRAILING ' ' FROM v_asset1.pa_tasks pt .project_id = ppa.v_seg1 .

t_interfaced_cip := t_interfaced_cip + v_asset1. t_commitments_grnd_tot := t_commitments_grnd_tot + v_asset1. '"'). t_exp_amount_grnd_tot_ptd := t_exp_amount_grnd_tot_ptd + v_asset1. 'in asset loop' t_bgt_amount_grnd_tot). END LOOP.exp_amount_itd.ytd_total. t_ytd_grnd_tot := t_ytd_grnd_tot + v_asset1.'TOP TASK. IF t_entry_method IN ('PROJECT LEVEL.task). --RFC#60 t_task 254 t_project. -. t_unit_desc. fnd_file.exp_amount_ptd.TRIM (TRAILING ' ' FROM v_top_task.v_project_manager). t_asset_desc := LTRIM (TRIM (TRAILING ' ' FROM v_asset_desc). t_itd_grnd_tot := t_itd_grnd_tot + v_asset1. NO RESOURCE' .t_asset_category.class_code). t_cap_amount_grnd_tot_ytd := t_cap_amount_grnd_tot_ytd + v_asset1. t_status. t_project_manager := TRIM (TRAILING ' ' FROM v_asset1. t_top_task.interfaced_cipcost. t_class_code.t_task_desc. t_exp_amount_grnd_tot_ytd := t_exp_amount_grnd_tot_ytd + v_asset1. t_exp_amount_grnd_tot_itd := t_exp_amount_grnd_tot_itd + v_asset1.over_under_appropriation.T_UNIT.exp_amount_ytd.'"'). 'TOP' ' &' ' LOWEST TASK. t_class_code := TRIM (TRAILING ' ' FROM v_asset1. t_cap_amount_grnd_tot_itd := t_cap_amount_grnd_tot_itd + v_asset1. NO RESOURCE' . t_task_desc := LTRIM (TRIM (TRAILING ' ' FROM v_asset1.itd_total.top_task).absn_excel_format_proc (t_car.put_line (1 .ptd_total.cap_amount_ytd. 0 . t_task . t_cap_amount_grnd_tot_ptd := t_cap_amount_grnd_tot_ptd + v_asset1. t_asset_category := TRIM (TRAILING ' ' FROM v_seg1 '. NO RESOURCE' ) THEN absn_excel_format_pkg.bgt_amt. t_over_und_appr_grnd_tot := t_over_und_appr_grnd_tot + v_asset1.' v_seg2). t_bgt_amount_grnd_tot := t_bgt_amount_grnd_tot + v_asset1. t_ptd_grnd_tot := t_ptd_grnd_tot + v_asset1.v_description) .cap_amount_itd.cap_amount_ptd.commitments. := TRIM (TRAILING ' ' FROM v_asset1. t_asset_desc . '$ ' (t_commitments_grnd_tot .

'$ ' (0-T_ITD_GRND_TOT). t_project_manager). t_top_task. '$ ' t_exp_amount_grnd_tot_ptd . '$ ' t_interfaced_cip . '$ ' t_cap_amount_grnd_tot_ytd .t_asset_category. '$ ' t_ytd_grnd_tot . C#60254 '$ ' t_commitments_grnd_tot . '$ ' t_ytd_grnd_tot . t_unit_desc. --. t_task_desc . --RFC#60 254 t_project. '$ ' t_exp_amount_grnd_tot_itd . '$ ' t_ptd_grnd_tot . '$ ' t_commitments_grnd_tot . 0 . --. t_task . '$ ' t_over_und_appr_grnd_tot . '$ ' t_cap_amount_grnd_tot_ytd . '$ ' t_itd_grnd_tot . '$ ' t_exp_amount_grnd_tot_ytd .---------------RF .T_UNIT. ELSIF t_entry_method = 'lowest task-no resource' THEN absn_excel_format_pkg.t_asset_desc.t_task_desc. t_class_code . ELSIF t_entry_method = 'X' THEN absn_excel_format_pkg. '$ ' t_ptd_grnd_tot . t_task. '$ ' t_exp_amount_grnd_tot_ytd . ----------------RFC#60 254 --'$ ' T_CAP_AMOUNT_GRND_TOT_PTD. t_status. '$ ' t_cap_amount_grnd_tot_ptd . t_status. -------RFC#6 0254 -.--------------------RFC#60254 '$ ' t_exp_amount_grnd_tot_ptd . '$ ' t_bgt_amount_grnd_tot .absn_excel_format_proc (t_car. '$ ' t_itd_grnd_tot .+ t_itd_grnd_tot ) . '$ ' t_cap_amount_grnd_tot_itd . '$ ' (t_itd_grnd_tot + t_exp_amount_grnd_tot_ptd ) . t_top_task.absn_excel_format_proc (t_car. --RFC#60 254 t_project.T_UNIT. '$ ' (t_itd_grnd_tot + t_commitments_grnd_tot ) . t_asset_category. t_unit_desc. t_class_code.t_project_manager). '$ ' t_cap_amount_grnd_tot_itd . ----RFC#60254 --'$ ' (0-T_ITD_GRND_TOT). t_asset_desc . '$ ' t_exp_amount_grnd_tot_itd . '$ ' t_interfaced_cip.

x_exp_amount_grnd_tot_ytd := x_exp_amount_grnd_tot_ytd + t_exp_amount_grnd_tot_ytd. '$ ' t_exp_amount_grnd_tot_ptd . x_exp_amount_grnd_tot_itd := x_exp_amount_grnd_tot_itd + t_exp_amount_grnd_tot_itd. t_ptd_grnd_tot := 0. t_bgt_amount_grnd_tot := 0. x_ptd_grnd_tot := x_ptd_grnd_tot + t_ptd_grnd_tot. '$ ' t_exp_amount_grnd_tot_ytd . ---T_ENTRY_METHOD := ''. '$ ' t_cap_amount_grnd_tot_ptd . x_itd_grnd_tot := x_itd_grnd_tot + t_itd_grnd_tot. t_exp_amount_grnd_tot_itd := 0. x_cap_amount_grnd_tot_ytd := x_cap_amount_grnd_tot_ytd + t_cap_amount_grnd_tot_ytd. t_commitments_grnd_tot := 0. t_cap_amount_grnd_tot_ytd := 0. t_cap_amount_grnd_tot_ptd := 0. '$ ' t_cap_amount_grnd_tot_ytd .x_itd_grnd_tot. '$ ' t_ptd_grnd_tot . '$ ' t_ytd_grnd_tot . t_ytd_grnd_tot := 0. 'lowest task-no resource') T HEN absn_excel_format_pkg.'$ ' t_commitments_grnd_tot . x_entry_method := t_entry_method. END LOOP. '$ ' t_cap_amount_grnd_tot_itd . t_over_und_appr_grnd_tot := 0. t_itd_grnd_tot := 0. t_cap_amount_grnd_tot_itd := 0. t_interfaced_cip := 0. x_ytd_grnd_tot := x_ytd_grnd_tot + t_ytd_grnd_tot. NO RESOURCE'. IF x_entry_method IN ('PROJECT LEVEL. t_exp_amount_grnd_tot_ytd := 0. '$ ' t_exp_amount_grnd_tot_itd . x_over_und_appr_grnd_tot := x_bgt_amount_grnd_tot . '$ ' t_itd_grnd_tot . x_cap_amount_grnd_tot_ptd := x_cap_amount_grnd_tot_ptd + t_cap_amount_grnd_tot_ptd. x_interfaced_cip := x_interfaced_cip + t_interfaced_cip.absn_excel_format_proc (NULL. x_cap_amount_grnd_tot_itd := x_cap_amount_grnd_tot_itd + t_cap_amount_grnd_tot_itd.t_project_manager). END IF. x_exp_amount_grnd_tot_ptd := x_exp_amount_grnd_tot_ptd + t_exp_amount_grnd_tot_ptd. '$ ' t_interfaced_cip . 254 --RFC#60 . t_exp_amount_grnd_tot_ptd := 0. x_commitments_grnd_tot := x_commitments_grnd_tot + t_commitments_grnd_tot. x_bgt_amount_grnd_tot := t_bgt_amount_grnd_tot.

'$ ' x_itd_grnd_tot .'$ ' (0-X_ITD_GRND_TOT). NULL. NULL . 254 NULL. '$ ' x_ytd_grnd_tot . '$ ' x_cap_amount_grnd_tot_ptd . ------RFC#6 0254 --'$ ' X_OVER_UND_APPR_GRND_TOT. NULL). '$ ' x_ytd_grnd_tot . '$ ' x_ptd_grnd_tot . '$ ' x_exp_amount_grnd_tot_ptd . NO RESOURCE' ) THEN x_bgt_amount_grnd_tot := v_burdened_cost. NULL.'SUB TOTAL'. 'SUB TOTAL' --RFC#60 . NULL.absn_excel_format_proc (NULL. NULL. '$ ' x_exp_amount_grnd_tot_itd . NULL. '$ ' x_commitments_grnd_tot . '$ ' x_exp_amount_grnd_tot_ytd .NULL. NULL. NULL. 'TOP' ' &' ' LOWEST TASK.null.null.'SUB TOTAL' . '$ ' x_exp_amount_grnd_tot_ptd . NO RESOURCE' . '$ ' (x_commitments_grnd_tot + x_itd_grnd_tot ) . '$ ' x_cap_amount_grnd_tot_ptd . NULL. '$ ' x_interfaced_cip. NULL. '$ ' x_bgt_amount_grnd_tot . NULL. NULL.NULL.absn_excel_format_proc (NULL. --RFC#60 254 NULL. '$ ' x_cap_amount_grnd_tot_ytd . '$ ' x_cap_amount_grnd_tot_itd . ELSIF x_entry_method IN ('TOP TASK. --. NULL. NULL. '$ ' x_ptd_grnd_tot . '$ ' x_cap_amount_grnd_tot_itd . '$ ' x_exp_amount_grnd_tot_ytd . '$ ' x_exp_amount_grnd_tot_itd . --. '$ ' x_cap_amount_grnd_tot_ytd . NULL . '$ ' x_commitments_grnd_tot . '$ ' (x_itd_grnd_tot + x_commitments_grnd_tot ) . NULL. ELSIF x_entry_method = 'X' THEN absn_excel_format_pkg. 0 . --. NULL. absn_excel_format_pkg. '$ ' x_interfaced_cip. NULL. NULL. '$ ' x_itd_grnd_tot . NULL. NULL. NULL). ---------RFC#6 0254 -.

X_ENTRY_METHOD := ''. p_exp_amount_grnd_tot_itd := p_exp_amount_grnd_tot_itd + x_exp_amount_grnd_tot_itd. '$ ' x_exp_amount_grnd_tot_itd . '$ ' x_cap_amount_grnd_tot_ytd . x_interfaced_cip := 0. x_itd_grnd_tot := 0. p_interfaced_cip := p_interfaced_cip + x_interfaced_cip. '$ ' x_ptd_grnd_tot . x_exp_amount_grnd_tot_ytd := 0. x_commitments_grnd_tot := 0. p_exp_amount_grnd_tot_ytd := p_exp_amount_grnd_tot_ytd + x_exp_amount_grnd_tot_ytd. x_cap_amount_grnd_tot_ytd := 0. '$ ' x_exp_amount_grnd_tot_ytd . '$ ' x_cap_amount_grnd_tot_ptd . '$ ' x_interfaced_cip. -----------RFC#6 0254 --'$ ' (0-X_ITD_GRND_TOT). p_bgt_amount_grnd_tot := x_bgt_amount_grnd_tot. x_exp_amount_grnd_tot_ptd := 0. p_ytd_grnd_tot := p_ytd_grnd_tot + x_ytd_grnd_tot. .p_itd_grnd_tot. x_cap_amount_grnd_tot_itd := 0. NULL). p_entry_method := x_entry_method. --. '$ ' x_itd_grnd_tot . x_ytd_grnd_tot := 0. x_ptd_grnd_tot := 0. p_commitments_grnd_tot := p_commitments_grnd_tot + x_commitments_grnd_tot. p_exp_amount_grnd_tot_ptd := p_exp_amount_grnd_tot_ptd + x_exp_amount_grnd_tot_ptd. x_over_und_appr_grnd_tot := 0. p_cap_amount_grnd_tot_ytd := p_cap_amount_grnd_tot_ytd + x_cap_amount_grnd_tot_ytd. END LOOP. p_ptd_grnd_tot := p_ptd_grnd_tot + x_ptd_grnd_tot. p_cap_amount_grnd_tot_ptd := p_cap_amount_grnd_tot_ptd + x_cap_amount_grnd_tot_ptd. '$ ' x_commitments_grnd_tot . p_over_und_appr_grnd_tot := p_bgt_amount_grnd_tot . x_exp_amount_grnd_tot_itd := 0. '$ ' x_ytd_grnd_tot .0 .. '$ ' (x_itd_grnd_tot + x_commitments_grnd_tot ) . x_bgt_amount_grnd_tot := 0. x_cap_amount_grnd_tot_ptd := 0. END IF. p_cap_amount_grnd_tot_itd := p_cap_amount_grnd_tot_itd + x_cap_amount_grnd_tot_itd. '$ ' x_cap_amount_grnd_tot_itd . p_bgt_amount_grnd_tot1 := p_bgt_amount_grnd_tot1 + v_burdened_cost. '$ ' x_exp_amount_grnd_tot_ptd . p_itd_grnd_tot := p_itd_grnd_tot + x_itd_grnd_tot.

NULL. '$ ' p_exp_amount_grnd_tot_ytd .'$ ' (0-P_ITD_GRND_TOT).absn_excel_format_proc (NULL. NULL. NULL.'PROJECT TOTAL'. NULL . '$ ' p_cap_amount_grnd_tot_ptd . '$ ' p_itd_grnd_tot . --RFC#6 0254 --'$ ' (0-P_ITD_GRND_TOT). '$ ' p_cap_amount_grnd_tot_itd . '$ ' p_ytd_grnd_tot . --RFC -. NO RESOURCE' .null. '$ ' p_exp_amount_grnd_tot_ptd . '$ ' p_cap_amount_grnd_tot_ytd .'PROJECT TOTAL' .IF p_entry_method = 'lowest task-no resource' THEN absn_excel_format_pkg. NULL . '$ ' p_ptd_grnd_tot . 'TOP' ' &' ' LOWEST TASK. NULL. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . --. NULL. 254 --RFC#60 NULL.null. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . '$ ' p_ptd_grnd_tot . '$ ' p_cap_amount_grnd_tot_ytd --RFC#60 . 0 . ELSIF p_entry_method IN ('TOP TASK. '$ ' p_commitments_grnd_tot . 254 NULL. NULL. '$ ' p_interfaced_cip . '$ ' p_commitments_grnd_tot . NULL. NULL. NO RESOURCE' ) THEN absn_excel_format_pkg. NULL. --. NULL.NULL). NULL. '$ ' p_cap_amount_grnd_tot_ptd . NULL. '$ ' p_exp_amount_grnd_tot_itd . '$ ' p_exp_amount_grnd_tot_ptd . '$ ' p_bgt_amount_grnd_tot1 .absn_excel_format_proc (NULL.

NULL. NULL.NULL. NULL . '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . NULL. '$ ' p_ytd_grnd_tot . NULL . NO RESOURCE' THEN absn_excel_format_pkg. '$ ' p_bgt_amount_grnd_tot . '$ ' p_exp_amount_grnd_tot_itd .'PROJECT TOTAL'. 0 . NULL.absn_excel_format_proc (NULL. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . '$ ' p_commitments_grnd_tot . '$ ' p_cap_amount_grnd_tot_ytd . '$ ' p_ptd_grnd_tot . NULL.'$ ' P_OVER_UND_APPR_GRND_TO T.NULL). '$ ' p_cap_amount_grnd_tot_itd . '$ ' p_interfaced_cip . ELSIF p_entry_method = 'PROJECT LEVEL. --RFC#60 254 NULL.. '$ ' p_exp_amount_grnd_tot_ytd .'PROJECT TOTAL' . '$ ' p_cap_amount_grnd_tot_itd . '$ ' p_exp_amount_grnd_tot_itd . NULL. '$ ' p_exp_amount_grnd_tot_ptd .absn_excel_format_proc (NULL. 254 NULL. '$ ' p_exp_amount_grnd_tot_ytd . NULL. '$ ' p_ytd_grnd_tot .null. --. '$ ' p_itd_grnd_tot . NULL. ELSIF p_entry_method = 'X' THEN absn_excel_format_pkg. '$ ' p_interfaced_cip . NULL. --RFC#6 0254 --RFC#60 . '$ ' p_cap_amount_grnd_tot_ptd . NULL. NULL. --. --RFC#6 0254 -. '$ ' p_itd_grnd_tot . NULL.NULL).

resource_assignment_id AND pbv.pra.task_id .budget_version_id = .burdened_cost . p_ptd_grnd_tot := 0. v_proj1.pa_budget_versions pbv WHERE pra. '$ ' p_exp_amount_grnd_tot_ytd . p_cap_amount_grnd_tot_itd := 0.-. '$ ' p_interfaced_cip . p_ytd_grnd_tot := 0.pa_resource_assignments pra .NULL).project_id) LOOP IF v_top_task. p_exp_amount_grnd_tot_ptd := 0. NO RESOURCE' . '$ ' p_exp_amount_grnd_tot_itd . ELSIF p_percent_spend > 0 THEN FOR v_proj1 IN cur_project_y1 (v_request_id) LOOP FOR v_top_task IN cur_top_task (v_request_id. p_cap_amount_grnd_tot_ptd := 0.resource_assignment_id = pbl.bgt_entry_method IN ('TOP' ' &' ' LOWEST TASK. p_exp_amount_grnd_tot_ytd := 0.'$ ' (0-P_ITD_GRND_TOT). p_commitments_grnd_tot := 0.v_bgt_version_id FROM pa_budget_lines pbl . END IF.v_task_id . p_bgt_amount_grnd_tot1 := 0. p_itd_grnd_tot := 0. '$ ' p_cap_amount_grnd_tot_itd . '$ ' p_commitments_grnd_tot . NO RESOURCE' ) THEN BEGIN SELECT DISTINCT pbl.'TOP TASK. '$ ' p_cap_amount_grnd_tot_ptd . p_cap_amount_grnd_tot_ytd := 0.pra.resource_assignment_id . '$ ' p_cap_amount_grnd_tot_ytd . --. '$ ' p_ptd_grnd_tot .pbl. '$ ' p_itd_grnd_tot . '$ ' p_exp_amount_grnd_tot_ptd . '$ ' p_ytd_grnd_tot .v_resource_assmnt_id . END LOOP. p_over_und_appr_grnd_tot := 0.P_ENTRY_METHOD := ''. p_exp_amount_grnd_tot_itd := 0.budget_version_id INTO v_burdened_cost . p_interfaced_cip := 0. p_bgt_amount_grnd_tot := 0.

EXCEPTION WHEN NO_DATA_FOUND THEN fnd_file.task_number = v_task.project_id = ppa.project_id AND temp.project_id AND temp. v_request_id .project_id AND ppaa.pa_project_assets_all ppaa .task) LOOP BEGIN SELECT ppaa.lowest_task = pt.project_id AND pt. FOR v_task IN cur_task_y (v_top_task. 'S') AND pra.project_id AND pbv.task_id = (SELECT task_id FROM pa_tasks WHERE project_id = v_proj1.project_id = v_proj1. WHEN OTHERS THEN fnd_file.top_task).task_id.project_asset_id AND fac.project_id = pt.fac.put_line (fnd_file.v_proj1.project_asset_id = ppaa.task AND pt.pa_projects_all ppa WHERE pt.project_id AND temp.project_id = ppa.project_id . EXCEPTION WHEN NO_DATA_FOUND THEN .segment2 seg2 INTO v_asset_desc .project_id AND temp. END. v_task.project_id = v_proj1.put_line (fnd_file.project_id) LOOP FOR v_asset2 IN cur_asset_y2 (v_request_id .LOG.top_task.LOG .project_id AND pt.v_seg2 FROM pa_project_asset_assignments ppaas .pa_tasks pt .budget_version_id AND pbv.project_id = ppa.task_id = v_task.task_id.request_id = v_request_id AND temp.v_seg1 .absn_pa_rpt_33_temp temp .project_id = pt.v_task.task_number AND ppaas.project_id = ppaas.top_task).task_id = ppaas.fac.budget_version_id AND pra.project_id AND ppaa.project_id = ppaa.pbl.asset_category_id AND ppaas.segment1 seg1 . 'other errors').v_proj1.task_id AND temp.category_id = ppaa. END IF.project_id AND task_number = v_top_task.budget_status_code IN ('W'.project_id = ppa. 'NO AMOUNT FOR TOP TASK' v_top_task.project_id AND ppaas.budget_version_id = pbv.fa_categories_b fac .asset_description asset_desc .

ptd_total.cap_amount_itd.project_name). END.V_UNIT). t_status := TRIM (TRAILING ' ' FROM v_asset2. --.cap_amount_ptd. t_exp_amount_grnd_tot_ptd := t_exp_amount_grnd_tot_ptd + v_asset2. t_task_desc := LTRIM (TRIM (TRAILING ' ' FROM v_asset2. t_cap_amount_grnd_tot_itd := t_cap_amount_grnd_tot_itd + v_asset2. t_asset_desc := LTRIM (TRIM (TRAILING ' ' FROM v_asset_desc).exp_amount_ptd. t_exp_amount_grnd_tot_ytd := t_exp_amount_grnd_tot_ytd + v_asset2. t_ptd_grnd_tot := t_ptd_grnd_tot + v_asset2.put_line (fnd_file. t_bgt_amount_grnd_tot := t_bgt_amount_grnd_tot + v_asset2. t_class_code := TRIM (TRAILING ' ' FROM v_asset2. t_exp_amount_grnd_tot_itd := t_exp_amount_grnd_tot_itd + v_asset2. t_car := TRIM (TRAILING ' ' FRO M v_asset2.LOG.exp_amount_ytd.v_entry_method). -----. t_project := TRIM (TRAILING ' ' FROM v_proj1.over_under_appropriation.top_task).T_UNIT := TRIM(TRAILING ' ' FR OM V_ASSET.v_description) .status).' v_seg2).class_code).car).bgt_amt. t_ytd_grnd_tot := t_ytd_grnd_tot + v_asset2.ytd_total. t_interfaced_cip := .v_asset_desc := NULL. t_project_manager := TRIM (TRAILING ' ' FROM v_asset2. v_seg2 := NULL. t_itd_grnd_tot := t_itd_grnd_tot + v_asset2.commitments. t_cap_amount_grnd_tot_ptd := t_cap_amount_grnd_tot_ptd + v_asset2.exp_amount_itd. v_seg1 := NULL. t_commitments_grnd_tot := t_commitments_grnd_tot + v_asset2. 'other errors'). t_over_und_appr_grnd_tot := t_over_und_appr_grnd_tot + v_asset2. t_asset_category := TRIM (TRAILING ' ' FROM v_seg1 '.v_project_manager).itd_total.task). t_cap_amount_grnd_tot_ytd := t_cap_amount_grnd_tot_ytd + v_asset2. '"'). t_unit_desc := TRIM (TRAILING ' ' FROM v_asset2.cap_amount_ytd.'"').RFC#60254 t_entry_method := TRIM (TRAILING ' ' FROM v_asset2. WHEN OTHERS THEN fnd_file. t_top_task := TRIM (TRAILING ' ' FROM v_top_task.unit_desc). t_task := TRIM (TRAILING ' ' FROM v_asset2.

T_UNIT.t_task_desc. t_top_task. --RFC#60 254 t_project. '$ ' t_commitments_grnd_tot . t_unit_desc. t_status . '$ ' t_exp_amount_grnd_tot_itd .t_asset_category. '$ ' t_itd_grnd_tot . --RFC#60 254 t_project. t_class_code . t_task . t_class_code . t_status . -----RFC#6 0254 -.absn_excel_format_proc (t_car. t_unit_desc. IF t_entry_method IN ('PROJECT LEVEL.t_interfaced_cip + v_asset2.T_UNIT. NO RESOURCE' .'$ ' (0-T_ITD_GRND_TOT). END LOOP. '$ ' t_exp_amount_grnd_tot_ptd .0 .absn_excel_format_proc (t_car.t_project_manager). '$ ' t_cap_amount_grnd_tot_ytd . 'in asset loop' t_bgt_amount_grnd_tot). fnd_file.t_task_desc. t_task .t_asset_category. 'TOP' ' &' ' LOWEST TASK. NO RESOURCE' .put_line (1 .'TOP TASK. '$ ' (t_itd_grnd_tot + t_commitments_grnd_tot ) . '$ ' t_cap_amount_grnd_tot_itd . '$ ' t_ptd_grnd_tot . '$ ' (t_itd_grnd_tot + t_commitments_grnd_tot ) . t_top_task. '$ ' t_interfaced_cip . t_asset_desc . '$ ' t_bgt_amount_grnd_tot . ELSIF t_entry_method = 'lowest task-no resource' THEN absn_excel_format_pkg.interfaced_cipcost. t_asset_desc . '$ ' t_exp_amount_grnd_tot_ytd . '$ ' t_cap_amount_grnd_tot_ptd . -. --. '$ ' t_ytd_grnd_tot . NO RESOURCE' ) THEN absn_excel_format_pkg.

'$ ' t_ytd_grnd_tot . --RFC#60 254 -.t_class_code.T_UNIT.t_asset_category .RFC#60 --'$ ' T_OVER_UND_APPR_GRND_TOT. '$ ' t_ytd_grnd_tot . '$ ' t_commitments_grnd_tot . '$ ' t_exp_amount_grnd_tot_ptd . '$ ' t_cap_amount_grnd_tot_ptd . '$ ' t_exp_amount_grnd_tot_ptd . '$ ' t_interfaced_cip ..absn_excel_format_proc (t_car.t_project_manager).t_task. t_top_task .t_project_manager). 0 . --. '$ ' t_exp_amount_grnd_tot_itd . '$ ' t_itd_grnd_tot . . '$ ' t_exp_amount_grnd_tot_ytd . '$ ' (t_itd_grnd_tot + t_commitments_grnd_tot ) . END IF. '$ ' t_commitments_grnd_tot . '$ ' t_exp_amount_grnd_tot_itd . t_task_desc . '$ ' t_interfaced_cip . '$ ' t_itd_grnd_tot . '$ ' t_cap_amount_grnd_tot_itd . '$ ' t_cap_amount_grnd_tot_itd .t_asset_desc . ELSIF t_entry_method = 'X' THEN absn_excel_format_pkg. '$ ' t_exp_amount_grnd_tot_ytd . '$ ' t_cap_amount_grnd_tot_ytd . --RFC#60 254 t_project.'$ ' (0-T_ITD_GRND_TOT). '$ ' t_ptd_grnd_tot . t_status . '$ ' t_cap_amount_grnd_tot_ptd . '$ ' t_cap_amount_grnd_tot_ytd . t_unit_desc. x_entry_method := t_entry_method. '$ ' t_ptd_grnd_tot . 254 --.

x_exp_amount_grnd_tot_ytd := x_exp_amount_grnd_tot_ytd + t_exp_amount_grnd_tot_ytd. ---T_ENTRY_METHOD := ''. t_commitments_grnd_tot := 0. t_cap_amount_grnd_tot_itd := 0. x_ptd_grnd_tot := x_ptd_grnd_tot + t_ptd_grnd_tot. x_cap_amount_grnd_tot_ptd := x_cap_amount_grnd_tot_ptd + t_cap_amount_grnd_tot_ptd. '$ ' x_cap_amount_grnd_tot_ptd --RFC#60 . t_itd_grnd_tot := 0. t_exp_amount_grnd_tot_ytd := 0. x_exp_amount_grnd_tot_itd := x_exp_amount_grnd_tot_itd + t_exp_amount_grnd_tot_itd. --RFC#6 0254 -.'SUB TOTAL'. NO RESOURCE'. t_cap_amount_grnd_tot_ytd := 0.absn_excel_format_proc (NULL. NULL. t_ytd_grnd_tot := 0. '$ ' x_commitments_grnd_tot .null. 'lowest task-no resource') T HEN absn_excel_format_pkg. NULL. NULL . IF x_entry_method IN ('PROJECT LEVEL. 0 .x_cap_amount_grnd_tot_itd := x_cap_amount_grnd_tot_itd + t_cap_amount_grnd_tot_itd. t_cap_amount_grnd_tot_ptd := 0. x_exp_amount_grnd_tot_ptd := x_exp_amount_grnd_tot_ptd + t_exp_amount_grnd_tot_ptd. x_interfaced_cip := x_interfaced_cip + t_interfaced_cip. t_over_und_appr_grnd_tot := 0.x_itd_grnd_tot. 254 NULL. x_cap_amount_grnd_tot_ytd := x_cap_amount_grnd_tot_ytd + t_cap_amount_grnd_tot_ytd. x_ytd_grnd_tot := x_ytd_grnd_tot + t_ytd_grnd_tot. '$ ' (x_itd_grnd_tot + x_commitments_grnd_tot ) . x_bgt_amount_grnd_tot := t_bgt_amount_grnd_tot. x_itd_grnd_tot := x_itd_grnd_tot + t_itd_grnd_tot. t_ptd_grnd_tot := 0. NULL. t_exp_amount_grnd_tot_itd := 0. t_interfaced_cip := 0. --. x_commitments_grnd_tot := x_commitments_grnd_tot + t_commitments_grnd_tot. NULL. t_bgt_amount_grnd_tot := 0. NULL.'$ ' (0-X_ITD_GRND_TOT). x_over_und_appr_grnd_tot := x_bgt_amount_grnd_tot . NULL. END LOOP. t_exp_amount_grnd_tot_ptd := 0.

'$ ' x_ytd_grnd_tot . 254 NULL. '$ ' x_ytd_grnd_tot . ELSIF x_entry_method IN ('TOP TASK.null. '$ ' x_interfaced_cip . 254 NULL. '$ ' x_itd_grnd_tot .absn_excel_format_proc (NULL. '$ ' x_exp_amount_grnd_tot_itd . '$ ' x_exp_amount_grnd_tot_ptd . NULL. '$ ' x_exp_amount_grnd_tot_ytd .'$ ' X_OVER_UND_APPR_GRND_T OT. --RFC#60 --RFC#60 . '$ ' x_exp_amount_grnd_tot_ptd . absn_excel_format_pkg. NULL. '$ ' x_ptd_grnd_tot .NULL).NULL. '$ ' x_itd_grnd_tot .. '$ ' x_exp_amount_grnd_tot_itd . NULL. NULL. '$ ' x_bgt_amount_grnd_tot . '$ ' x_itd_grnd_tot + x_commitments_grnd_tot . NULL. '$ ' x_cap_amount_grnd_tot_ytd . NULL . --RFC -. '$ ' x_cap_amount_grnd_tot_itd .'SUB TOTAL' .NULL). '$ ' x_interfaced_cip . NULL .absn_excel_format_proc (NULL. --. NULL. '$ ' x_commitments_grnd_tot . '$ ' x_exp_amount_grnd_tot_ytd . NO RESOURCE' . 'TOP' ' &' ' LOWEST TASK. NO RESOURCE' ) THEN x_bgt_amount_grnd_tot := v_burdened_cost. '$ ' x_cap_amount_grnd_tot_ptd . ELSIF x_entry_method = 'X' THEN absn_excel_format_pkg. '$ ' x_cap_amount_grnd_tot_itd . NULL. --. NULL. '$ ' x_cap_amount_grnd_tot_ytd . '$ ' x_ptd_grnd_tot .

p_bgt_amount_grnd_tot1 := p_bgt_amount_grnd_tot1 + x_bgt_amount_grnd_tot. p_itd_grnd_tot := p_itd_grnd_tot + x_itd_grnd_tot. x_cap_amount_grnd_tot_ptd := 0. '$ ' x_exp_amount_grnd_tot_ptd .p_itd_grnd_tot. p_entry_method := x_entry_method. x_itd_grnd_tot := 0. '$ ' x_ytd_grnd_tot . 0 . x_cap_amount_grnd_tot_itd := 0. END IF.NULL). --RFC#6 0254 -. NULL. p_commitments_grnd_tot := p_commitments_grnd_tot + x_commitments_grnd_tot. p_exp_amount_grnd_tot_itd := p_exp_amount_grnd_tot_itd + x_exp_amount_grnd_tot_itd. p_cap_amount_grnd_tot_ytd := p_cap_amount_grnd_tot_ytd + x_cap_amount_grnd_tot_ytd. p_exp_amount_grnd_tot_ytd := p_exp_amount_grnd_tot_ytd + x_exp_amount_grnd_tot_ytd. p_over_und_appr_grnd_tot := p_bgt_amount_grnd_tot . '$ ' x_ptd_grnd_tot . . x_ptd_grnd_tot := 0.NULL. '$ ' x_cap_amount_grnd_tot_itd . x_exp_amount_grnd_tot_itd := 0. --. x_exp_amount_grnd_tot_ptd := 0.'$ ' (0-X_ITD_GRND_TOT). '$ ' x_itd_grnd_tot . '$ ' (x_itd_grnd_tot + x_commitments_grnd_tot ) . NULL . NULL. '$ ' x_commitments_grnd_tot .'SUB TOTAL'. p_cap_amount_grnd_tot_itd := p_cap_amount_grnd_tot_itd + x_cap_amount_grnd_tot_itd. p_ptd_grnd_tot := p_ptd_grnd_tot + x_ptd_grnd_tot. p_cap_amount_grnd_tot_ptd := p_cap_amount_grnd_tot_ptd + x_cap_amount_grnd_tot_ptd. '$ ' x_cap_amount_grnd_tot_ptd . p_exp_amount_grnd_tot_ptd := p_exp_amount_grnd_tot_ptd + x_exp_amount_grnd_tot_ptd. '$ ' x_interfaced_cip . p_interfaced_cip := p_interfaced_cip + x_interfaced_cip. '$ ' x_exp_amount_grnd_tot_ytd .X_ENTRY_METHOD := ''. '$ ' x_cap_amount_grnd_tot_ytd . p_ytd_grnd_tot := p_ytd_grnd_tot + x_ytd_grnd_tot. p_bgt_amount_grnd_tot := x_bgt_amount_grnd_tot. '$ ' x_exp_amount_grnd_tot_itd .

'$ ' p_commitments_grnd_tot . '$ ' p_itd_grnd_tot . --RFC#6 0254 -. NULL. x_commitments_grnd_tot := 0. NULL. '$ ' p_cap_amount_grnd_tot_itd . x_over_und_appr_grnd_tot := 0. '$ ' p_ytd_grnd_tot . NO RESOURCE' . NULL. NULL.'PROJECT TOTAL'. x_interfaced_cip := 0. NULL. --RFC#6 0254 --RFC#60 . END LOOP. --. NULL. NO RESOURCE' ) THEN absn_excel_format_pkg.'$ ' (0-P_ITD_GRND_TOT).null. '$ ' p_ptd_grnd_tot . '$ ' p_cap_amount_grnd_tot_ptd . x_ytd_grnd_tot := 0. NULL. x_exp_amount_grnd_tot_ytd := 0. x_bgt_amount_grnd_tot := 0. 254 NULL.x_cap_amount_grnd_tot_ytd := 0. '$ ' p_exp_amount_grnd_tot_itd . 254 --RFC#60 NULL. NULL. '$ ' p_cap_amount_grnd_tot_ytd . 'TOP' ' &' ' LOWEST TASK. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . IF p_entry_method = 'lowest task-no resource' THEN absn_excel_format_pkg. 0 . '$ ' p_exp_amount_grnd_tot_ytd . NULL. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . '$ ' p_bgt_amount_grnd_tot1 . --.'PROJECT TOTAL' . NULL.absn_excel_format_proc (NULL.absn_excel_format_proc (NULL. '$ ' p_interfaced_cip .NULL). ELSIF p_entry_method IN ('TOP TASK. '$ ' p_exp_amount_grnd_tot_ptd . NULL.null. NULL . NULL. NULL .

'$ ' p_ytd_grnd_tot . '$ ' p_bgt_amount_grnd_tot . '$ ' p_cap_amount_grnd_tot_itd . '$ ' p_exp_amount_grnd_tot_ytd . '$ ' p_exp_amount_grnd_tot_ptd .--'$ ' (0-P_ITD_GRND_TOT).absn_excel_format_proc (NULL. ELSIF p_entry_method = 'X' THEN absn_excel_format_pkg. '$ ' p_commitments_grnd_tot . '$ ' p_ptd_grnd_tot . '$ ' p_interfaced_cip . '$ ' p_itd_grnd_tot .'PROJECT TOTAL' . NO RESOURCE' THEN absn_excel_format_pkg. NULL . NULL. '$ ' p_exp_amount_grnd_tot_itd .absn_excel_format_proc (NULL. '$ ' p_cap_amount_grnd_tot_ytd . '$ ' p_ptd_grnd_tot . --RFC#6 0254 --'$ ' P_OVER_UND_APPR_GRND_TOT . NULL. '$ ' p_cap_amount_grnd_tot_ytd .NULL). --RFC#60 . NULL. '$ ' p_exp_amount_grnd_tot_itd . ELSIF p_entry_method = 'PROJECT LEVEL. 254 NULL.NULL). --.NULL. '$ ' p_ytd_grnd_tot . '$ ' p_cap_amount_grnd_tot_ptd . NULL. NULL. '$ ' p_itd_grnd_tot . '$ ' p_cap_amount_grnd_tot_ptd . NULL. '$ ' p_interfaced_cip . '$ ' p_cap_amount_grnd_tot_itd . '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . '$ ' p_exp_amount_grnd_tot_ptd . NULL. NULL. '$ ' p_commitments_grnd_tot . '$ ' p_exp_amount_grnd_tot_ytd . --RFC#60 254 NULL.

--------PROJECT WISE TOTALS DELETE FROM ABSN_PA_RPT_33_TEMP WHERE REQUEST_ID=V_REQUEST_ID. p_cap_amount_grnd_tot_itd := 0. '$ ' p_cap_amount_grnd_tot_ytd . '$ ' p_cap_amount_grnd_tot_ptd . p_cap_amount_grnd_tot_ptd := 0. NULL. p_commitments_grnd_tot := 0.null.NULL). p_cap_amount_grnd_tot_ytd := 0. p_interfaced_cip := 0. p_exp_amount_grnd_tot_ptd := 0. END IF. '$ ' p_exp_amount_grnd_tot_itd . 0 . NULL. END fetch_data. NULL . '$ ' p_ptd_grnd_tot . '$ ' p_cap_amount_grnd_tot_itd . DELETE FROM ABSN_PA_RPT_33_PROJ WHERE REQUEST_ID=V_REQUEST_ID.--. END LOOP. p_ytd_grnd_tot := 0.P_ENTRY_METHOD := ''. / . p_exp_amount_grnd_tot_itd := 0.'PROJECT TOTAL'. p_bgt_amount_grnd_tot1 := 0. --. NULL. '$ ' p_exp_amount_grnd_tot_ytd . p_ptd_grnd_tot := 0. p_exp_amount_grnd_tot_ytd := 0. '$ ' (p_itd_grnd_tot + p_commitments_grnd_tot ) . '$ ' p_exp_amount_grnd_tot_ptd .'$ ' (0-P_ITD_GRND_TOT). p_itd_grnd_tot := 0. END absn_pa_rpt_33_pkg. '$ ' p_itd_grnd_tot . '$ ' p_ytd_grnd_tot . NULL. '$ ' p_interfaced_cip . --RFC#6 0254 -. END IF. p_bgt_amount_grnd_tot := 0. p_over_und_appr_grnd_tot := 0. '$ ' p_commitments_grnd_tot .

Sign up to vote on this title
UsefulNot useful