DBA Data[Home] [Help]

APPS.PA_FP_VIEW_PLANS_PUB dependencies on PA_FP_VIEW_PLANS_PUB

Line 1: PACKAGE BODY pa_fp_view_plans_pub as

1: PACKAGE BODY pa_fp_view_plans_pub as
2: /* $Header: PAFPVPLB.pls 120.7.12020000.2 2012/07/19 09:39:03 admarath ship $
3: Start of Comments
4: Package name : PA_FP_VIEW_PLANS_PUB
5: Purpose : API's for Financial Planning: View Plans Page

Line 4: Package name : PA_FP_VIEW_PLANS_PUB

1: PACKAGE BODY pa_fp_view_plans_pub as
2: /* $Header: PAFPVPLB.pls 120.7.12020000.2 2012/07/19 09:39:03 admarath ship $
3: Start of Comments
4: Package name : PA_FP_VIEW_PLANS_PUB
5: Purpose : API's for Financial Planning: View Plans Page
6: History :
7: NOTE :
8: End of Comments

Line 153: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := p_orgfcst_version_id;

149: --hr_utility.trace_on(null, 'dlai');
150: --hr_utility.trace('STARTING');
151: x_return_status := FND_API.G_RET_STS_SUCCESS;
152: -- x_primary_pp_bv_id := p_orgfcst_version_id;
153: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := p_orgfcst_version_id;
154: pa_fp_view_plans_pub.G_AMT_OR_PD := p_amt_or_pd; -- this will be used by other procedures
155:
156: -- populate G_UNCAT_RLM_ID: the uncategorized resource list member id
157: pa_fin_plan_utils.Get_Uncat_Resource_List_Info

Line 154: pa_fp_view_plans_pub.G_AMT_OR_PD := p_amt_or_pd; -- this will be used by other procedures

150: --hr_utility.trace('STARTING');
151: x_return_status := FND_API.G_RET_STS_SUCCESS;
152: -- x_primary_pp_bv_id := p_orgfcst_version_id;
153: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := p_orgfcst_version_id;
154: pa_fp_view_plans_pub.G_AMT_OR_PD := p_amt_or_pd; -- this will be used by other procedures
155:
156: -- populate G_UNCAT_RLM_ID: the uncategorized resource list member id
157: pa_fin_plan_utils.Get_Uncat_Resource_List_Info
158: (x_resource_list_id => l_uncat_resource_list_id

Line 165: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;

161: ,x_unit_of_measure => l_unit_of_measure
162: ,x_return_status => l_return_status
163: ,x_msg_count => l_msg_count
164: ,x_msg_data => l_msg_data);
165: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;
166: x_uncat_rlmid := l_uncat_rlm_id;
167: --hr_utility.trace('Uncategorized Resource List Member Id is ' || to_char(l_uncat_rlm_id));
168: --hr_utility.trace('Amt/Period toggle is ' || pa_fp_view_plans_pub.G_AMT_OR_PD);
169: select bv.project_id,

Line 168: --hr_utility.trace('Amt/Period toggle is ' || pa_fp_view_plans_pub.G_AMT_OR_PD);

164: ,x_msg_data => l_msg_data);
165: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;
166: x_uncat_rlmid := l_uncat_rlm_id;
167: --hr_utility.trace('Uncategorized Resource List Member Id is ' || to_char(l_uncat_rlm_id));
168: --hr_utility.trace('Amt/Period toggle is ' || pa_fp_view_plans_pub.G_AMT_OR_PD);
169: select bv.project_id,
170: DECODE(p_view_currency_type,
171: 'PROJ', pa.project_currency_code,
172: 'PROJFUNC', pa.projfunc_currency_code,

Line 184: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;

180: select nvl(org_id,-99)
181: into l_org_id
182: from pa_projects_all
183: where project_id = l_project_id;
184: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;
185: x_view_currency_code := l_projfunc_currency_code; -- OUTPUT: x_view_currency_code
186:
187: -- bug 3146974 GET AUTO BASELINED FLAG
188: x_auto_baselined_flag :=

Line 223: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

219: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
220: x_msg_count := 1;
221: x_msg_data := SQLERRM;
222: FND_MSG_PUB.add_exc_msg
223: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
224: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
225: END;
226: --hr_utility.trace('stage 100 passed');
227: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id

Line 228: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;

224: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
225: END;
226: --hr_utility.trace('stage 100 passed');
227: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
228: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
229: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
230: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
231: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
232:

Line 230: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;

226: --hr_utility.trace('stage 100 passed');
227: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
228: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
229: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
230: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
231: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
232:
233: -- ===== ASSUMPTIONS ===== --
234: -- 1. p_orgfcst_version_id will ALWAYS be populated (if the user selected version(s),

Line 250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;

246: end if;
247:
248: -- set the display from flags
249: if l_user_bv_flag = 'Y' then
250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;
251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;

Line 251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;

247:
248: -- set the display from flags
249: if l_user_bv_flag = 'Y' then
250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;
251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;
255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;

Line 252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;

248: -- set the display from flags
249: if l_user_bv_flag = 'Y' then
250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;
251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;
255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;
256: -- x_factor_by_code := null;

Line 253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;

249: if l_user_bv_flag = 'Y' then
250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;
251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;
255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;
256: -- x_factor_by_code := null;
257: x_factor_by_code := 1; --doesn't matter: we should've gotten it in the URL

Line 254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;

250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;
251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;
255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;
256: -- x_factor_by_code := null;
257: x_factor_by_code := 1; --doesn't matter: we should've gotten it in the URL
258: else

Line 255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;

251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;
252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;
253: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;
254: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;
255: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;
256: -- x_factor_by_code := null;
257: x_factor_by_code := 1; --doesn't matter: we should've gotten it in the URL
258: else
259: -- retrieve default settings

Line 362: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;

358: where cost_as.fin_plan_amount_set_id = l_cost_amount_set_id and
359: rev_as.fin_plan_amount_set_id = l_rev_amount_set_id;
360: end if;
361:
362: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
363: px_display_quantity := l_display_quantity;
364: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
365: px_display_rawcost := l_display_rawcost;
366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;

Line 364: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;

360: end if;
361:
362: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
363: px_display_quantity := l_display_quantity;
364: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
365: px_display_rawcost := l_display_rawcost;
366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
367: px_display_burdcost := l_display_burdcost;
368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;

Line 366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;

362: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
363: px_display_quantity := l_display_quantity;
364: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
365: px_display_rawcost := l_display_rawcost;
366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
367: px_display_burdcost := l_display_burdcost;
368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
369: px_display_revenue := l_display_revenue;
370: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

Line 368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;

364: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
365: px_display_rawcost := l_display_rawcost;
366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
367: px_display_burdcost := l_display_burdcost;
368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
369: px_display_revenue := l_display_revenue;
370: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
371: px_display_margin := l_display_margin;
372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

Line 370: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

366: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
367: px_display_burdcost := l_display_burdcost;
368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
369: px_display_revenue := l_display_revenue;
370: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
371: px_display_margin := l_display_margin;
372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
373: px_display_marginpct := l_display_marginpct;
374: end if;

Line 372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

368: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
369: px_display_revenue := l_display_revenue;
370: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
371: px_display_margin := l_display_margin;
372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
373: px_display_marginpct := l_display_marginpct;
374: end if;
375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);

Line 375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);

371: px_display_margin := l_display_margin;
372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
373: px_display_marginpct := l_display_marginpct;
374: end if;
375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);

Line 376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);

372: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
373: px_display_marginpct := l_display_marginpct;
374: end if;
375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);

Line 377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);

373: px_display_marginpct := l_display_marginpct;
374: end if;
375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
381:

Line 378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);

374: end if;
375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
381:
382: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy

Line 379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);

375: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
381:
382: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
383: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

Line 380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);

376: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
377: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
378: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
381:
382: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
383: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
384: l_default_amount_type_code := 'QUANTITY';

Line 383: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

379: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
380: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
381:
382: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
383: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
384: l_default_amount_type_code := 'QUANTITY';
385: l_default_amount_subtype_code := 'QUANTITY';
386: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
387: l_default_amount_type_code := 'COST';

Line 386: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

382: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
383: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
384: l_default_amount_type_code := 'QUANTITY';
385: l_default_amount_subtype_code := 'QUANTITY';
386: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
387: l_default_amount_type_code := 'COST';
388: l_default_amount_subtype_code := 'RAW_COST';
389: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
390: l_default_amount_type_code := 'COST';

Line 389: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

385: l_default_amount_subtype_code := 'QUANTITY';
386: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
387: l_default_amount_type_code := 'COST';
388: l_default_amount_subtype_code := 'RAW_COST';
389: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
390: l_default_amount_type_code := 'COST';
391: l_default_amount_subtype_code := 'BURDENED_COST';
392: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
393: l_default_amount_type_code := 'REVENUE';

Line 392: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

388: l_default_amount_subtype_code := 'RAW_COST';
389: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
390: l_default_amount_type_code := 'COST';
391: l_default_amount_subtype_code := 'BURDENED_COST';
392: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
393: l_default_amount_type_code := 'REVENUE';
394: l_default_amount_subtype_code := 'REVENUE';
395: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
396: l_default_amount_type_code := 'MARGIN';

Line 395: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

391: l_default_amount_subtype_code := 'BURDENED_COST';
392: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
393: l_default_amount_type_code := 'REVENUE';
394: l_default_amount_subtype_code := 'REVENUE';
395: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
396: l_default_amount_type_code := 'MARGIN';
397: l_default_amount_subtype_code := 'MARGIN';
398: else
399: l_default_amount_type_code := 'MARGIN_PERCENT';

Line 406: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;

402:
403: -- set the user-defined budget versions source
404: if l_user_bv_flag = 'Y' then
405: if (p_user_cost_version_id = p_user_rev_version_id) then
406: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
409: else
410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

Line 407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

403: -- set the user-defined budget versions source
404: if l_user_bv_flag = 'Y' then
405: if (p_user_cost_version_id = p_user_rev_version_id) then
406: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
409: else
410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
411: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

Line 408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

404: if l_user_bv_flag = 'Y' then
405: if (p_user_cost_version_id = p_user_rev_version_id) then
406: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
409: else
410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
411: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
412: end if;

Line 410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

406: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
409: else
410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
411: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
412: end if;
413: select approved_rev_plan_type_flag
414: into x_ar_flag -- OUTPUT: x_ar_flag

Line 411: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
409: else
410: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
411: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
412: end if;
413: select approved_rev_plan_type_flag
414: into x_ar_flag -- OUTPUT: x_ar_flag
415: from pa_proj_fp_options

Line 435: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;

431: from pa_budget_versions
432: where budget_version_id = p_orgfcst_version_id;
433: end if;
434: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
435: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
436: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
437: x_def_amt_subt_code := l_default_amount_subtype_code; -- OUTPUT: x_def_amt_subt_code
438: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
439: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;

Line 436: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

432: where budget_version_id = p_orgfcst_version_id;
433: end if;
434: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
435: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
436: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
437: x_def_amt_subt_code := l_default_amount_subtype_code; -- OUTPUT: x_def_amt_subt_code
438: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
439: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
440: --hr_utility.trace('reached end of user customizations section: 200');

Line 438: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;

434: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
435: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
436: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
437: x_def_amt_subt_code := l_default_amount_subtype_code; -- OUTPUT: x_def_amt_subt_code
438: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
439: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
440: --hr_utility.trace('reached end of user customizations section: 200');
441:
442:

Line 439: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;

435: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
436: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
437: x_def_amt_subt_code := l_default_amount_subtype_code; -- OUTPUT: x_def_amt_subt_code
438: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
439: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
440: --hr_utility.trace('reached end of user customizations section: 200');
441:
442:
443: -- SETTING PERIOD INFORMATION --

Line 479: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

475: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
476: x_msg_count := 1;
477: x_msg_data := SQLERRM;
478: FND_MSG_PUB.add_exc_msg
479: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
480: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan period type: 300');
481: END;
482: --hr_utility.trace('after selecting from pa_proj_period_profiles: 300 succeeded');
483:

Line 551: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;

547: -- Bug 8463770
548:
549: /* Ends- Added for bug 7456425 */
550:
551: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
552: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
553: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
554: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
555: if ll_plan_period_type = 'GL' THEN

Line 552: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;

548:
549: /* Ends- Added for bug 7456425 */
550:
551: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
552: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
553: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
554: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
555: if ll_plan_period_type = 'GL' THEN
556: l_num_of_periods := 6;

Line 553: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;

549: /* Ends- Added for bug 7456425 */
550:
551: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
552: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
553: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
554: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
555: if ll_plan_period_type = 'GL' THEN
556: l_num_of_periods := 6;
557: else

Line 591: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

587: if l_start_date is null then
588: l_start_date := to_char(pp_plan_start_date);
589: end if;
590: elsif p_period_start_date = 'L' Then
591: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
592: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
593: p_direction => 'BACKWARD',
594: p_num_of_periods => l_num_of_periods,
595: p_period_type => ll_plan_period_type,

Line 592: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

588: l_start_date := to_char(pp_plan_start_date);
589: end if;
590: elsif p_period_start_date = 'L' Then
591: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
592: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
593: p_direction => 'BACKWARD',
594: p_num_of_periods => l_num_of_periods,
595: p_period_type => ll_plan_period_type,
596: x_start_date => l_start_date,

Line 609: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

605: l_start_date := to_char(pp_plan_start_date);
606: end if;
607: -- if sysdate falls after last period end date, display the ending periods
608: elsif l_cur_period_number = -1 then
609: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
610: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
611: p_direction => 'BACKWARD',
612: p_num_of_periods => l_num_of_periods,
613: p_period_type => ll_plan_period_type,

Line 610: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

606: end if;
607: -- if sysdate falls after last period end date, display the ending periods
608: elsif l_cur_period_number = -1 then
609: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
610: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
611: p_direction => 'BACKWARD',
612: p_num_of_periods => l_num_of_periods,
613: p_period_type => ll_plan_period_type,
614: x_start_date => l_start_date,

Line 655: pa_fp_view_plans_pub.pa_fp_set_periods

651: else
652: l_start_date := p_period_start_date;
653: end if;
654:
655: pa_fp_view_plans_pub.pa_fp_set_periods
656: ( p_period_start_date => l_start_date,
657: p_period_type => ll_plan_period_type,
658: x_return_status => l_return_status,
659: x_msg_count => l_msg_count,

Line 685: pa_fp_view_plans_pub.view_plan_temp_tables

681: --hr_utility.trace('calling view_plan_temp_tables');
682: -- delete residual data in the temp tables
683: DELETE from PA_FIN_VP_AMTS_VIEW_TMP;
684: DELETE from PA_FIN_VP_PDS_VIEW_TMP;
685: pa_fp_view_plans_pub.view_plan_temp_tables
686: (p_project_id => l_project_id,
687: p_budget_version_id => p_orgfcst_version_id,
688: p_cost_or_revenue => l_cost_or_revenue,
689: p_user_bv_flag => l_user_bv_flag,

Line 740: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from

736:
737: --hr_utility.trace('after calling view_plan_temp_tables: 500');
738: -- END OF POPULATING GLOBAL TEMPORARY TABLE --
739:
740: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
741: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
742: -- NEED THIS IN CASE NOT USER-SPECIFIED
743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

Line 743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

739:
740: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
741: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
742: -- NEED THIS IN CASE NOT USER-SPECIFIED
743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
746: end if;
747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

Line 744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

740: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
741: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
742: -- NEED THIS IN CASE NOT USER-SPECIFIED
743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
746: end if;
747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
748: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

741: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
742: -- NEED THIS IN CASE NOT USER-SPECIFIED
743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
746: end if;
747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
748: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
749: end if;

Line 747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

743: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
746: end if;
747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
748: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
749: end if;
750: end if;
751:

Line 748: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

744: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
745: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
746: end if;
747: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
748: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
749: end if;
750: end if;
751:
752: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle

Line 755: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then

751:
752: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle
753: -- also, set x_refresh_pd_flag and x_refresh_req_id
754: -- also set preceding/succeeding periods flags
755: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
756: select nvl(all_time_phased_code, 'N')
757: into x_time_phase_code -- OUTPUT: x_time_phase_code
758: from pa_proj_fp_options
759: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 759: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

755: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
756: select nvl(all_time_phased_code, 'N')
757: into x_time_phase_code -- OUTPUT: x_time_phase_code
758: from pa_proj_fp_options
759: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
760: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
761: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
762: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
763: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

Line 761: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

757: into x_time_phase_code -- OUTPUT: x_time_phase_code
758: from pa_proj_fp_options
759: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
760: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
761: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
762: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
763: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
764: select plan_processing_code,
765: request_id

Line 763: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

759: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
760: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
761: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
762: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
763: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
764: select plan_processing_code,
765: request_id
766: into l_plan_processing_code,
767: l_request_id

Line 769: where budget_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

765: request_id
766: into l_plan_processing_code,
767: l_request_id
768: from pa_budget_versions
769: where budget_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
770: if l_plan_processing_code = 'PPP' then
771: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
772: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
773: else

Line 777: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then

773: else
774: x_refresh_pd_flag := 'N'; -- OUTPUT: x_refresh_pd_flag
775: x_refresh_req_id := -1; -- OUTPUT: x_refresh_req_id
776: end if;
777: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
778: select nvl(cost_time_phased_code, 'N')
779: into x_time_phase_code -- OUTPUT: x_time_phase_code
780: from pa_proj_fp_options
781: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 781: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

777: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
778: select nvl(cost_time_phased_code, 'N')
779: into x_time_phase_code -- OUTPUT: x_time_phase_code
780: from pa_proj_fp_options
781: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
782: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
783: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
784: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
785: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

Line 783: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

779: into x_time_phase_code -- OUTPUT: x_time_phase_code
780: from pa_proj_fp_options
781: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
782: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
783: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
784: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
785: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
786: select plan_processing_code,
787: request_id

Line 785: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

781: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
782: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
783: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
784: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
785: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
786: select plan_processing_code,
787: request_id
788: into l_plan_processing_code,
789: l_request_id

Line 791: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

787: request_id
788: into l_plan_processing_code,
789: l_request_id
790: from pa_budget_versions
791: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
792: if l_plan_processing_code = 'PPP' then
793: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
794: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
795: else

Line 799: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then

795: else
796: x_refresh_pd_flag := 'N'; -- OUTPUT: x_refresh_pd_flag
797: x_refresh_req_id := -1; -- OUTPUT: x_refresh_req_id
798: end if;
799: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
800: select nvl(revenue_time_phased_code, 'N')
801: into x_time_phase_code -- OUTPUT: x_time_phase_code
802: from pa_proj_fp_options
803: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 803: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

799: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
800: select nvl(revenue_time_phased_code, 'N')
801: into x_time_phase_code -- OUTPUT: x_time_phase_code
802: from pa_proj_fp_options
803: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
804: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
805: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
806: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
807: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

Line 805: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

801: into x_time_phase_code -- OUTPUT: x_time_phase_code
802: from pa_proj_fp_options
803: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
804: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
805: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
806: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
807: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
808: select plan_processing_code,
809: request_id

Line 807: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

803: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
804: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
805: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
806: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
807: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
808: select plan_processing_code,
809: request_id
810: into l_plan_processing_code,
811: l_request_id

Line 813: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

809: request_id
810: into l_plan_processing_code,
811: l_request_id
812: from pa_budget_versions
813: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
814: if l_plan_processing_code = 'PPP' then
815: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
816: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
817: else

Line 825: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

821: else
822: select nvl(cost_time_phased_code, 'N')
823: into l_cost_time_phase_code
824: from pa_proj_fp_options
825: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
826: select nvl(revenue_time_phased_code, 'N')
827: into l_rev_time_phase_code
828: from pa_proj_fp_options
829: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 829: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

825: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
826: select nvl(revenue_time_phased_code, 'N')
827: into l_rev_time_phase_code
828: from pa_proj_fp_options
829: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
830: -- if cost and rev versions have different time phase codes, there is no way to
831: -- merge them in periodic view
832: if l_cost_time_phase_code <> l_rev_time_phase_code then
833: x_time_phase_code := 'N'; -- OUTPUT: x_time_phase_code

Line 843: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then

839: -- **** if have TWO versions, may need to set x_primary_pp_bv_id ****
840: -- if p_orgfcst_version_id does not have a period_profile_id
841: if (x_time_phase_code <> 'N') and
842: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
843: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
844: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
845: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
846: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
847: end if;

Line 844: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

840: -- if p_orgfcst_version_id does not have a period_profile_id
841: if (x_time_phase_code <> 'N') and
842: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
843: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
844: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
845: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
846: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
847: end if;
848: end if;

Line 845: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then

841: if (x_time_phase_code <> 'N') and
842: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
843: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
844: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
845: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
846: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
847: end if;
848: end if;
849: */

Line 846: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

842: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
843: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
844: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
845: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
846: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
847: end if;
848: end if;
849: */
850: if Pa_Prj_Period_Profile_Utils.has_preceding_periods

Line 851: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or

847: end if;
848: end if;
849: */
850: if Pa_Prj_Period_Profile_Utils.has_preceding_periods
851: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
852: Pa_Prj_Period_Profile_Utils.has_preceding_periods
853: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
854: x_prec_pds_flag := 'Y';
855: else

Line 853: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then

849: */
850: if Pa_Prj_Period_Profile_Utils.has_preceding_periods
851: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
852: Pa_Prj_Period_Profile_Utils.has_preceding_periods
853: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
854: x_prec_pds_flag := 'Y';
855: else
856: x_prec_pds_flag := 'N';
857: end if;

Line 859: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or

855: else
856: x_prec_pds_flag := 'N';
857: end if;
858: if Pa_Prj_Period_Profile_Utils.has_succeeding_periods
859: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
860: Pa_Prj_Period_Profile_Utils.has_succeeding_periods
861: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
862: x_succ_pds_flag := 'Y';
863: else

Line 861: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then

857: end if;
858: if Pa_Prj_Period_Profile_Utils.has_succeeding_periods
859: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
860: Pa_Prj_Period_Profile_Utils.has_succeeding_periods
861: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
862: x_succ_pds_flag := 'Y';
863: else
864: x_succ_pds_flag := 'N';
865: end if;

Line 872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

868: request_id
869: into l_plan_processing_code,
870: l_request_id
871: from pa_budget_versions
872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
873: if l_request_id is not null then
874: x_refresh_req_id := l_request_id;
875: end if;
876: select plan_processing_code,

Line 881: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

877: request_id
878: into l_plan_processing_code2,
879: l_request_id
880: from pa_budget_versions
881: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
882: if l_request_id is not null then
883: x_refresh_req_id := l_request_id;
884: end if;
885: if (l_plan_processing_code = 'PPP') or (l_plan_processing_code2 = 'PPP') then

Line 895: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then

891: -- PRECEDING/SUCCEEDING PERIODS:
892: -- if we are not displaying the first period in profile, hide preceding periods
893: -- if we are not displaying the last period in profile, hide succeeding periods
894: if p_amt_or_pd = 'P' then
895: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
896: x_prec_pds_flag := 'N';
897: end if;
898: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
899: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

Line 898: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then

894: if p_amt_or_pd = 'P' then
895: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
896: x_prec_pds_flag := 'N';
897: end if;
898: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
899: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
900: x_succ_pds_flag := 'N';
901: end if;
902: else

Line 899: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

895: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
896: x_prec_pds_flag := 'N';
897: end if;
898: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
899: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
900: x_succ_pds_flag := 'N';
901: end if;
902: else
903: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

Line 903: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

899: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
900: x_succ_pds_flag := 'N';
901: end if;
902: else
903: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
904: x_succ_pds_flag := 'N';
905: end if;
906: end if;
907: end if;

Line 909: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;

905: end if;
906: end if;
907: end if;
908: -- -----> BEGIN bug fix 2821568 <-----
909: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;
910: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
911: -- -----> END bug fix 2821568 <-----
912:
913: -- ----> BEGIN bug fix 2812381 <----

Line 910: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;

906: end if;
907: end if;
908: -- -----> BEGIN bug fix 2821568 <-----
909: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;
910: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
911: -- -----> END bug fix 2821568 <-----
912:
913: -- ----> BEGIN bug fix 2812381 <----
914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then

Line 914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then

910: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
911: -- -----> END bug fix 2821568 <-----
912:
913: -- ----> BEGIN bug fix 2812381 <----
914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

911: -- -----> END bug fix 2821568 <-----
912:
913: -- ----> BEGIN bug fix 2812381 <----
914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;

Line 916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

912:
913: -- ----> BEGIN bug fix 2812381 <----
914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;
920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then

Line 917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then

913: -- ----> BEGIN bug fix 2812381 <----
914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;
920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
921: x_cost_bv_id := -1;

Line 918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

914: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
915: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;
920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
921: x_cost_bv_id := -1;
922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then

916: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
917: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;
920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
921: x_cost_bv_id := -1;
922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
923: else
924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

918: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
919: x_revenue_bv_id := -1;
920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
921: x_cost_bv_id := -1;
922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
923: else
924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
925: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
926: end if;

Line 924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

920: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
921: x_cost_bv_id := -1;
922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
923: else
924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
925: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
926: end if;
927: /*
928: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 925: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

921: x_cost_bv_id := -1;
922: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
923: else
924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
925: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
926: end if;
927: /*
928: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
929: if x_cost_bv_id is null then

Line 928: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

924: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
925: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
926: end if;
927: /*
928: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
929: if x_cost_bv_id is null then
930: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
931: x_cost_bv_id := -1;
932: else

Line 930: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

926: end if;
927: /*
928: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
929: if x_cost_bv_id is null then
930: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
931: x_cost_bv_id := -1;
932: else
933: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
934: end if;

Line 933: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

929: if x_cost_bv_id is null then
930: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
931: x_cost_bv_id := -1;
932: else
933: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
934: end if;
935: end if;
936: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
937: if x_revenue_bv_id is null then

Line 936: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

932: else
933: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
934: end if;
935: end if;
936: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
937: if x_revenue_bv_id is null then
938: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
939: x_revenue_bv_id := -1;
940: else

Line 938: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

934: end if;
935: end if;
936: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
937: if x_revenue_bv_id is null then
938: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
939: x_revenue_bv_id := -1;
940: else
941: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
942: end if;

Line 941: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

937: if x_revenue_bv_id is null then
938: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
939: x_revenue_bv_id := -1;
940: else
941: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
942: end if;
943: end if;
944: */
945: -- ----> END bug fix 2812381 <----

Line 949: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and

945: -- ----> END bug fix 2812381 <----
946:
947: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
948: -- COST VERSION
949: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
950: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('COST', 'BOTH', 'ANY')) then
951: --hr_utility.trace('figuring out cost LOCKED BY');
952: select record_version_number, -- OUTPUT: x_cost_rv_number
953: budget_status_code -- OUTPUT: x_cost_budget_status_code

Line 950: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('COST', 'BOTH', 'ANY')) then

946:
947: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
948: -- COST VERSION
949: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
950: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('COST', 'BOTH', 'ANY')) then
951: --hr_utility.trace('figuring out cost LOCKED BY');
952: select record_version_number, -- OUTPUT: x_cost_rv_number
953: budget_status_code -- OUTPUT: x_cost_budget_status_code
954: into x_cost_rv_number,

Line 957: --4/16/03 where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

953: budget_status_code -- OUTPUT: x_cost_budget_status_code
954: into x_cost_rv_number,
955: x_cost_budget_status_code
956: from pa_budget_versions
957: --4/16/03 where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
958: where budget_version_id = x_cost_bv_id;
959: pa_fin_plan_utils.Check_Locked_By_User
960: (p_user_id => p_user_id,
961: --4/16/03 p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 961: --4/16/03 p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

957: --4/16/03 where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
958: where budget_version_id = x_cost_bv_id;
959: pa_fin_plan_utils.Check_Locked_By_User
960: (p_user_id => p_user_id,
961: --4/16/03 p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
962: p_budget_version_id => x_cost_bv_id,
963: x_is_locked_by_userid => l_is_cost_locked_by_user,
964: x_locked_by_person_id => l_cost_locked_by_person_id,
965: x_return_status => l_return_status,

Line 980: if (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) and

976: end if; -- is_cost_locked_by_user
977: end if; -- END:COST VERSION
978:
979: -- REVENUE VERSION
980: if (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) and
981: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('REVENUE', 'BOTH', 'ANY')) then
982: --hr_utility.trace('figuring out revenue LOCKED BY');
983: select record_version_number, -- OUTPUT: x_rev_rv_number
984: budget_status_code -- OUTPUT: x_rev_budget_status_code

Line 981: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('REVENUE', 'BOTH', 'ANY')) then

977: end if; -- END:COST VERSION
978:
979: -- REVENUE VERSION
980: if (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) and
981: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('REVENUE', 'BOTH', 'ANY')) then
982: --hr_utility.trace('figuring out revenue LOCKED BY');
983: select record_version_number, -- OUTPUT: x_rev_rv_number
984: budget_status_code -- OUTPUT: x_rev_budget_status_code
985: into x_rev_rv_number,

Line 988: -- where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

984: budget_status_code -- OUTPUT: x_rev_budget_status_code
985: into x_rev_rv_number,
986: x_rev_budget_status_code
987: from pa_budget_versions
988: -- where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
989: where budget_version_id = x_revenue_bv_id;
990: pa_fin_plan_utils.Check_Locked_By_User
991: (p_user_id => p_user_id,
992: -- p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 992: -- p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

988: -- where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
989: where budget_version_id = x_revenue_bv_id;
990: pa_fin_plan_utils.Check_Locked_By_User
991: (p_user_id => p_user_id,
992: -- p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
993: p_budget_version_id => x_revenue_bv_id,
994: x_is_locked_by_userid => l_is_rev_locked_by_user,
995: x_locked_by_person_id => l_rev_locked_by_person_id,
996: x_return_status => l_return_status,

Line 1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);

1008: end if; -- END:REVENUE VERSION
1009:
1010:
1011: --hr_utility.trace('after calling locked version stuff');
1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

Line 1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));

1009:
1010:
1011: --hr_utility.trace('after calling locked version stuff');
1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

Line 1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));

1010:
1011: --hr_utility.trace('after calling locked version stuff');
1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

Line 1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));

1011: --hr_utility.trace('after calling locked version stuff');
1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
1019: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));

Line 1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

1012: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
1019: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
1020: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));

Line 1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

1013: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
1019: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
1020: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
1021:

Line 1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

1014: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
1015: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
1016: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
1017: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
1018: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
1019: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
1020: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
1021:
1022: EXCEPTION

Line 1028: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

1024: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1025: x_msg_count := 1;
1026: x_msg_data := SQLERRM;
1027: FND_MSG_PUB.add_exc_msg
1028: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
1029: p_procedure_name => 'pa_fp_viewplan_hgrid_init');
1030:
1031: END pa_fp_viewplan_hgrid_init;
1032: /* ------------------------------------------------------------------------- */

Line 1199: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;

1195: ,x_unit_of_measure => l_unit_of_measure
1196: ,x_return_status => l_return_status
1197: ,x_msg_count => l_msg_count
1198: ,x_msg_data => l_msg_data);
1199: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;
1200:
1201: -- FIRST, deal with all the initialization that we did in the non-Hgrid page
1202: ---------- BEGIN non-Hgrid initialization ----------
1203:

Line 1219: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := l_ci_budget_version_id;

1215:
1216: --- >>>> PROCESSING FOR FIRST ROW <<<< ---
1217: if l_ci_row_index = 1 then
1218: l_ci_budget_version_id := ci_rec.budget_version_id;
1219: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := l_ci_budget_version_id;
1220: select fin_plan_type_id,
1221: proj_fp_options_id
1222: into l_fin_plan_type_id,
1223: l_proj_fp_options_id

Line 1268: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJFUNC';

1264: select projfunc_currency_code
1265: into x_view_currency_code
1266: from pa_projects_all
1267: where project_id = p_project_id;
1268: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJFUNC';
1269: else
1270: -- NOT APPROVED REVENUE: go with Project Currency
1271: x_ar_flag := 'N';
1272: -- get PROJECT CURRENCY

Line 1277: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJECT';

1273: select project_currency_code
1274: into x_view_currency_code
1275: from pa_projects_all
1276: where project_id = p_project_id;
1277: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJECT';
1278: end if; -- approved revenue flag
1279: /*
1280: if l_uncategorized_flag = 'Y' then
1281: x_planned_resources_flag := 'N';

Line 1302: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;

1298: from pa_proj_fp_options
1299: where project_id = p_project_id and
1300: fin_plan_type_id = l_fin_plan_type_id and
1301: fin_plan_option_level_code = 'PLAN_TYPE';
1302: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1303: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1304: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1305:
1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;

Line 1303: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;

1299: where project_id = p_project_id and
1300: fin_plan_type_id = l_fin_plan_type_id and
1301: fin_plan_option_level_code = 'PLAN_TYPE';
1302: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1303: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1304: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1305:
1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1307:

Line 1304: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;

1300: fin_plan_type_id = l_fin_plan_type_id and
1301: fin_plan_option_level_code = 'PLAN_TYPE';
1302: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1303: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1304: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1305:
1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1307:
1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then

Line 1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;

1302: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1303: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1304: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1305:
1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1307:
1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

Line 1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1305:
1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1307:
1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';

Line 1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1306: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1307:
1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1314: --x_grouping_type := l_grouping_type;

Line 1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;

1307:
1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1314: --x_grouping_type := l_grouping_type;
1315: -- set planning level code for page: P, T, L, or M

Line 1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;

1308: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1314: --x_grouping_type := l_grouping_type;
1315: -- set planning level code for page: P, T, L, or M
1316: /*

Line 1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';

1309: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1310: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1311: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1312: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1313: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1314: --x_grouping_type := l_grouping_type;
1315: -- set planning level code for page: P, T, L, or M
1316: /*
1317: select all_fin_plan_level_code

Line 1329: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1325: --x_cost_rl_id := l_resource_list_id;
1326: --x_rev_rl_id := l_resource_list_id;
1327:
1328: elsif l_fp_preference_code = 'COST_ONLY' then
1329: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1330: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1331: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1332: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1333: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

Line 1330: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;

1326: --x_rev_rl_id := l_resource_list_id;
1327:
1328: elsif l_fp_preference_code = 'COST_ONLY' then
1329: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1330: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1331: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1332: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1333: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
1334: --x_grouping_type := l_grouping_type;

Line 1333: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

1329: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1330: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1331: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1332: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1333: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
1334: --x_grouping_type := l_grouping_type;
1335: -- set planning level code for page: P, T, L, or M
1336: /*
1337: select cost_fin_plan_level_code

Line 1349: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;

1345: --x_cost_rl_id := l_resource_list_id;
1346: --x_rev_rl_id := -1;
1347:
1348: elsif l_fp_preference_code = 'REVENUE_ONLY' then
1349: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1350: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1351: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1352: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1353: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

Line 1350: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1346: --x_rev_rl_id := -1;
1347:
1348: elsif l_fp_preference_code = 'REVENUE_ONLY' then
1349: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1350: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1351: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1352: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1353: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
1354: --x_grouping_type := l_grouping_type;

Line 1353: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

1349: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1350: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1351: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1352: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1353: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
1354: --x_grouping_type := l_grouping_type;
1355: -- set planning level code for page: P, T, L, or M
1356: /*
1357: select revenue_fin_plan_level_code

Line 1390: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1386: from pa_budget_versions bv,
1387: pa_resource_lists_all_bg rl
1388: where bv.budget_version_id = ci_rec.budget_version_id and
1389: bv.resource_list_id = rl.resource_list_id;
1390: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1391: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1392: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1393: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1394: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1391: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;

1387: pa_resource_lists_all_bg rl
1388: where bv.budget_version_id = ci_rec.budget_version_id and
1389: bv.resource_list_id = rl.resource_list_id;
1390: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1391: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1392: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1393: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1394: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1395: /*

Line 1394: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

1390: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1391: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1392: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1393: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1394: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1395: /*
1396: if l_grouping_type = 'GROUPED' then
1397: if l_compl_grouping_type = 'GROUPED' then
1398: x_grouping_type := 'GROUPED';

Line 1452: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;

1448: from pa_budget_versions bv,
1449: pa_resource_lists_all_bg rl
1450: where bv.budget_version_id = ci_rec.budget_version_id and
1451: bv.resource_list_id = rl.resource_list_id;
1452: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1453: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1454: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1455: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1456: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1453: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1449: pa_resource_lists_all_bg rl
1450: where bv.budget_version_id = ci_rec.budget_version_id and
1451: bv.resource_list_id = rl.resource_list_id;
1452: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1453: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1454: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1455: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1456: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1457: /*

Line 1456: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

1452: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1453: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1454: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1455: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1456: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1457: /*
1458: if l_grouping_type = 'GROUPED' then
1459: if l_compl_grouping_type = 'GROUPED' then
1460: x_grouping_type := 'GROUPED';

Line 1515: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;

1511: from pa_budget_versions bv,
1512: pa_resource_lists_all_bg rl
1513: where bv.budget_version_id = ci_rec.budget_version_id and
1514: bv.resource_list_id = rl.resource_list_id;
1515: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1517: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1518: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1519: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1512: pa_resource_lists_all_bg rl
1513: where bv.budget_version_id = ci_rec.budget_version_id and
1514: bv.resource_list_id = rl.resource_list_id;
1515: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1517: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1518: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1519: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1520: /*

Line 1519: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

1515: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1517: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1518: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1519: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1520: /*
1521: if l_grouping_type = 'GROUPED' then
1522: if l_compl_grouping_type = 'GROUPED' then
1523: x_grouping_type := 'GROUPED';

Line 1577: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1573: from pa_budget_versions bv,
1574: pa_resource_lists_all_bg rl
1575: where bv.budget_version_id = ci_rec.budget_version_id and
1576: bv.resource_list_id = rl.resource_list_id;
1577: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1578: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1579: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1580: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1581: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1578: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;

1574: pa_resource_lists_all_bg rl
1575: where bv.budget_version_id = ci_rec.budget_version_id and
1576: bv.resource_list_id = rl.resource_list_id;
1577: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1578: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1579: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1580: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1581: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1582: /*

Line 1581: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

1577: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1578: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1579: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1580: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1581: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1582: /*
1583: if l_grouping_type = 'GROUPED' then
1584: if l_compl_grouping_type = 'GROUPED' then
1585: x_grouping_type := 'GROUPED';

Line 1640: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and

1636: into l_project_id,
1637: l_projfunc_currency_code
1638: from pa_budget_versions bv,
1639: pa_projects_all pa
1640: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and
1641: bv.project_id = pa.project_id;
1642: select nvl(org_id,-99)
1643: into l_org_id
1644: from pa_projects_all

Line 1646: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;

1642: select nvl(org_id,-99)
1643: into l_org_id
1644: from pa_projects_all
1645: where project_id = l_project_id;
1646: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;
1647: x_view_currency_code := l_projfunc_currency_code; -- OUTPUT: x_view_currency_code
1648:
1649: BEGIN
1650: select fin_plan_start_date, fin_plan_end_date, fin_plan_type_id

Line 1657: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

1653: into ll_plan_start_date,ll_plan_end_date, l_fin_plan_type_id
1654: -- l_default_amount_type_code,
1655: -- l_default_amount_subtype_code
1656: from pa_proj_fp_options
1657: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1658:
1659: -- DERIVE MARGIN FROM CODE: get from PLAN TYPE entry
1660: select proj_fp_options_id,
1661: margin_derived_from_code,

Line 1677: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

1673: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1674: x_msg_count := 1;
1675: x_msg_data := SQLERRM;
1676: FND_MSG_PUB.add_exc_msg
1677: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
1678: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
1679: END;
1680: --hr_utility.trace('stage 100 passed');
1681: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id

Line 1682: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;

1678: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
1679: END;
1680: --hr_utility.trace('stage 100 passed');
1681: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
1682: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
1683: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
1684: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
1685: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
1686:

Line 1684: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;

1680: --hr_utility.trace('stage 100 passed');
1681: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
1682: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
1683: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
1684: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
1685: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
1686:
1687:
1688: -- USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS PAGE)

Line 1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;

1694: end if;
1695:
1696: -- set the display from flags
1697: if l_user_bv_flag = 'Y' then
1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;

Line 1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;

1695:
1696: -- set the display from flags
1697: if l_user_bv_flag = 'Y' then
1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;

Line 1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;

1696: -- set the display from flags
1697: if l_user_bv_flag = 'Y' then
1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1704: x_factor_by_code := null;

Line 1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;

1697: if l_user_bv_flag = 'Y' then
1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1704: x_factor_by_code := null;
1705: else

Line 1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;

1698: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1704: x_factor_by_code := null;
1705: else
1706: -- retrieve default settings

Line 1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;

1699: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1700: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1701: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1702: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1703: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1704: x_factor_by_code := null;
1705: else
1706: -- retrieve default settings
1707: select DECODE(bv.version_type,

Line 1718: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and

1714: l_version_type,
1715: x_factor_by_code -- OUTPUT: x_factor_by_code
1716: from pa_budget_versions bv,
1717: pa_proj_fp_options po
1718: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and
1719: bv.fin_plan_type_id = po.fin_plan_type_id and
1720: po.project_id = l_project_id and
1721: po.fin_plan_option_level_code = 'PLAN_TYPE';
1722: select DECODE(l_version_type,

Line 1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;

1739: l_display_margin,
1740: l_display_marginpct
1741: from pa_fin_plan_amount_sets
1742: where fin_plan_amount_set_id = l_amount_set_id;
1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

Line 1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;

1740: l_display_marginpct
1741: from pa_fin_plan_amount_sets
1742: where fin_plan_amount_set_id = l_amount_set_id;
1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

Line 1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;

1741: from pa_fin_plan_amount_sets
1742: where fin_plan_amount_set_id = l_amount_set_id;
1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;

Line 1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;

1742: where fin_plan_amount_set_id = l_amount_set_id;
1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);

Line 1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

1743: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);

Line 1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

1744: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1745: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);

Line 1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);

1746: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);

Line 1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);

1747: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);

Line 1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);

1748: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1756:

Line 1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);

1749: end if;
1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1756:
1757: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy

Line 1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);

1750: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1756:
1757: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1758: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

Line 1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);

1751: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1752: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1753: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1756:
1757: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1758: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1759: l_default_amount_type_code := 'QUANTITY';

Line 1758: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

1754: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1755: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1756:
1757: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1758: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1759: l_default_amount_type_code := 'QUANTITY';
1760: l_default_amount_subtype_code := 'QUANTITY';
1761: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1762: l_default_amount_type_code := 'COST';

Line 1761: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

1757: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1758: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1759: l_default_amount_type_code := 'QUANTITY';
1760: l_default_amount_subtype_code := 'QUANTITY';
1761: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1762: l_default_amount_type_code := 'COST';
1763: l_default_amount_subtype_code := 'RAW_COST';
1764: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1765: l_default_amount_type_code := 'COST';

Line 1764: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

1760: l_default_amount_subtype_code := 'QUANTITY';
1761: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1762: l_default_amount_type_code := 'COST';
1763: l_default_amount_subtype_code := 'RAW_COST';
1764: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1765: l_default_amount_type_code := 'COST';
1766: l_default_amount_subtype_code := 'BURDENED_COST';
1767: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1768: l_default_amount_type_code := 'REVENUE';

Line 1767: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

1763: l_default_amount_subtype_code := 'RAW_COST';
1764: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1765: l_default_amount_type_code := 'COST';
1766: l_default_amount_subtype_code := 'BURDENED_COST';
1767: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1768: l_default_amount_type_code := 'REVENUE';
1769: l_default_amount_subtype_code := 'REVENUE';
1770: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
1771: l_default_amount_type_code := 'MARGIN';

Line 1770: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

1766: l_default_amount_subtype_code := 'BURDENED_COST';
1767: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1768: l_default_amount_type_code := 'REVENUE';
1769: l_default_amount_subtype_code := 'REVENUE';
1770: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
1771: l_default_amount_type_code := 'MARGIN';
1772: l_default_amount_subtype_code := 'MARGIN';
1773: else
1774: l_default_amount_type_code := 'MARGIN_PERCENT';

Line 1781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;

1777:
1778: -- set the user-defined budget versions source
1779: if l_user_bv_flag = 'Y' then
1780: if (p_user_cost_version_id = p_user_rev_version_id) then
1781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1784: else
1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

Line 1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

1778: -- set the user-defined budget versions source
1779: if l_user_bv_flag = 'Y' then
1780: if (p_user_cost_version_id = p_user_rev_version_id) then
1781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1784: else
1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1786: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

Line 1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

1779: if l_user_bv_flag = 'Y' then
1780: if (p_user_cost_version_id = p_user_rev_version_id) then
1781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1784: else
1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1786: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1787: end if;

Line 1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

1781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1784: else
1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1786: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1787: end if;
1788: select approved_rev_plan_type_flag
1789: into x_ar_flag -- OUTPUT: x_ar_flag

Line 1786: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

1782: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1783: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1784: else
1785: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1786: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1787: end if;
1788: select approved_rev_plan_type_flag
1789: into x_ar_flag -- OUTPUT: x_ar_flag
1790: from pa_proj_fp_options

Line 1809: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

1805: into l_cost_or_revenue,
1806: x_budget_status_code, -- OUTPUT: x_budget_status_code
1807: x_ar_flag -- OUTPUT: x_ar_flag
1808: from pa_budget_versions
1809: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1810: end if;
1811: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

Line 1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;

1808: from pa_budget_versions
1809: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1810: end if;
1811: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1814: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1815: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1816: --hr_utility.trace('reached end of user customizations section: 200');

Line 1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

1809: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1810: end if;
1811: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1814: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1815: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1816: --hr_utility.trace('reached end of user customizations section: 200');
1817:

Line 1814: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;

1810: end if;
1811: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1814: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1815: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1816: --hr_utility.trace('reached end of user customizations section: 200');
1817:
1818: BEGIN

Line 1815: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;

1811: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1812: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1813: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1814: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1815: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1816: --hr_utility.trace('reached end of user customizations section: 200');
1817:
1818: BEGIN
1819: /* Commented for bug 7514054

Line 1828: where pbv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID

1824: pp_plan_start_date,
1825: l_period_profile_id
1826: from pa_proj_period_profiles pp,
1827: pa_budget_versions pbv
1828: where pbv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID
1829: and pp.period_profile_id = pbv.period_profile_id;
1830: Ends commented for 7514054 and added below code
1831: */
1832: select min(start_date) into pp_plan_start_date from

Line 1834: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

1830: Ends commented for 7514054 and added below code
1831: */
1832: select min(start_date) into pp_plan_start_date from
1833: pa_budget_lines
1834: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1835:
1836: select decode(nvl(cost_time_phased_code,
1837: nvl(revenue_time_phased_code, all_time_phased_code)), 'G', 'GL', 'P', 'PA', 'N')
1838: into ll_plan_period_type -- OUTPUT: ll_plan_period_type

Line 1850: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

1846: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1847: x_msg_count := 1;
1848: x_msg_data := SQLERRM;
1849: FND_MSG_PUB.add_exc_msg
1850: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
1851: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan period type: 300');
1852: END;
1853: --hr_utility.trace('after selecting from pa_proj_period_profiles: 300 succeeded');
1854:

Line 1905: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;

1901: ll_plan_start_date := l_plan_start_date;
1902: ll_plan_end_date := l_plan_end_date;
1903: end if;
1904:
1905: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1906: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1907: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1908: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1909: if ll_plan_period_type = 'GL' THEN

Line 1906: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;

1902: ll_plan_end_date := l_plan_end_date;
1903: end if;
1904:
1905: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1906: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1907: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1908: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1909: if ll_plan_period_type = 'GL' THEN
1910: l_num_of_periods := 6;

Line 1907: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;

1903: end if;
1904:
1905: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1906: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1907: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1908: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1909: if ll_plan_period_type = 'GL' THEN
1910: l_num_of_periods := 6;
1911: else

Line 1923: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

1919: if l_start_date is null then
1920: l_start_date := to_char(pp_plan_start_date);
1921: end if;
1922: elsif p_period_start_date = 'L' Then
1923: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
1924: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
1925: p_direction => 'BACKWARD',
1926: p_num_of_periods => l_num_of_periods,
1927: p_period_type => ll_plan_period_type,

Line 1924: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

1920: l_start_date := to_char(pp_plan_start_date);
1921: end if;
1922: elsif p_period_start_date = 'L' Then
1923: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
1924: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
1925: p_direction => 'BACKWARD',
1926: p_num_of_periods => l_num_of_periods,
1927: p_period_type => ll_plan_period_type,
1928: x_start_date => l_start_date,

Line 1936: pa_fp_view_plans_pub.pa_fp_set_periods

1932: else
1933: l_start_date := p_period_start_date;
1934: end if;
1935:
1936: pa_fp_view_plans_pub.pa_fp_set_periods
1937: ( p_period_start_date => l_start_date,
1938: p_period_type => ll_plan_period_type,
1939: x_return_status => l_return_status,
1940: x_msg_count => l_msg_count,

Line 1968: pa_fp_view_plans_pub.view_plan_temp_tables

1964: DELETE from PA_FIN_VP_PDS_VIEW_TMP;
1965:
1966: /* -- since we've already found the complements, we call the appropriate
1967: * global temp table populating procedures ourselves
1968: pa_fp_view_plans_pub.view_plan_temp_tables
1969: (p_project_id => l_project_id,
1970: p_budget_version_id => p_orgfcst_version_id,
1971: p_cost_or_revenue => l_cost_or_revenue,
1972: p_user_bv_flag => l_user_bv_flag,

Line 1997: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from

1993: end if;
1994: */
1995: -- END OF POPULATING GLOBAL TEMPORARY TABLE --
1996: /*
1997: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1998: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1999: -- NEED THIS IN CASE NOT USER-SPECIFIED
2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

Line 2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

1996: /*
1997: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1998: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1999: -- NEED THIS IN CASE NOT USER-SPECIFIED
2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2003: end if;
2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

Line 2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

1997: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1998: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1999: -- NEED THIS IN CASE NOT USER-SPECIFIED
2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2003: end if;
2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
2005: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

1998: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1999: -- NEED THIS IN CASE NOT USER-SPECIFIED
2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2003: end if;
2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
2005: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2006: end if;

Line 2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

2000: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2003: end if;
2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
2005: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2006: end if;
2007: end if;
2008:

Line 2005: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2001: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
2002: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2003: end if;
2004: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
2005: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2006: end if;
2007: end if;
2008:
2009: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle

Line 2010: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then

2006: end if;
2007: end if;
2008:
2009: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle
2010: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
2011: select nvl(all_time_phased_code, 'N')
2012: into x_time_phase_code -- OUTPUT: x_time_phase_code
2013: from pa_proj_fp_options
2014: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 2014: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2010: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
2011: select nvl(all_time_phased_code, 'N')
2012: into x_time_phase_code -- OUTPUT: x_time_phase_code
2013: from pa_proj_fp_options
2014: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2015: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
2016: select nvl(cost_time_phased_code, 'N')
2017: into x_time_phase_code -- OUTPUT: x_time_phase_code
2018: from pa_proj_fp_options

Line 2015: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then

2011: select nvl(all_time_phased_code, 'N')
2012: into x_time_phase_code -- OUTPUT: x_time_phase_code
2013: from pa_proj_fp_options
2014: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2015: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
2016: select nvl(cost_time_phased_code, 'N')
2017: into x_time_phase_code -- OUTPUT: x_time_phase_code
2018: from pa_proj_fp_options
2019: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 2019: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2015: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
2016: select nvl(cost_time_phased_code, 'N')
2017: into x_time_phase_code -- OUTPUT: x_time_phase_code
2018: from pa_proj_fp_options
2019: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2020: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
2021: select nvl(revenue_time_phased_code, 'N')
2022: into x_time_phase_code -- OUTPUT: x_time_phase_code
2023: from pa_proj_fp_options

Line 2020: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then

2016: select nvl(cost_time_phased_code, 'N')
2017: into x_time_phase_code -- OUTPUT: x_time_phase_code
2018: from pa_proj_fp_options
2019: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2020: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
2021: select nvl(revenue_time_phased_code, 'N')
2022: into x_time_phase_code -- OUTPUT: x_time_phase_code
2023: from pa_proj_fp_options
2024: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2024: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2020: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
2021: select nvl(revenue_time_phased_code, 'N')
2022: into x_time_phase_code -- OUTPUT: x_time_phase_code
2023: from pa_proj_fp_options
2024: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2025: else
2026: select nvl(cost_time_phased_code, 'N')
2027: into l_cost_time_phase_code
2028: from pa_proj_fp_options

Line 2029: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2025: else
2026: select nvl(cost_time_phased_code, 'N')
2027: into l_cost_time_phase_code
2028: from pa_proj_fp_options
2029: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2030: select nvl(revenue_time_phased_code, 'N')
2031: into l_rev_time_phase_code
2032: from pa_proj_fp_options
2033: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2033: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2029: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2030: select nvl(revenue_time_phased_code, 'N')
2031: into l_rev_time_phase_code
2032: from pa_proj_fp_options
2033: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2034: if l_cost_time_phase_code <> 'Y' and l_rev_time_phase_code <> 'Y' then
2035: x_time_phase_code := 'N'; -- OUTPUT: x_time_phase_code
2036: else
2037: x_time_phase_code := l_cost_time_phase_code; -- OUTPUT: x_time_phase_code

Line 2041: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2037: x_time_phase_code := l_cost_time_phase_code; -- OUTPUT: x_time_phase_code
2038: end if;
2039: end if;
2040:
2041: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2042: if x_cost_bv_id is null then
2043: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2044: x_cost_bv_id := -1;
2045: else

Line 2043: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

2039: end if;
2040:
2041: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2042: if x_cost_bv_id is null then
2043: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2044: x_cost_bv_id := -1;
2045: else
2046: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2047: end if;

Line 2046: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2042: if x_cost_bv_id is null then
2043: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2044: x_cost_bv_id := -1;
2045: else
2046: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2047: end if;
2048: end if;
2049: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2050: if x_revenue_bv_id is null then

Line 2049: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2045: else
2046: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2047: end if;
2048: end if;
2049: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2050: if x_revenue_bv_id is null then
2051: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2052: x_revenue_bv_id := -1;
2053: else

Line 2051: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

2047: end if;
2048: end if;
2049: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2050: if x_revenue_bv_id is null then
2051: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2052: x_revenue_bv_id := -1;
2053: else
2054: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2055: end if;

Line 2054: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2050: if x_revenue_bv_id is null then
2051: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2052: x_revenue_bv_id := -1;
2053: else
2054: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2055: end if;
2056: end if;
2057:
2058: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS

Line 2060: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2056: end if;
2057:
2058: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
2059: -- COST VERSION
2060: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2061: --hr_utility.trace('figuring out cost LOCKED BY');
2062: select record_version_number, -- OUTPUT: x_cost_rv_number
2063: budget_status_code -- OUTPUT: x_budget_status_code
2064: into x_cost_rv_number,

Line 2067: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2063: budget_status_code -- OUTPUT: x_budget_status_code
2064: into x_cost_rv_number,
2065: x_budget_status_code
2066: from pa_budget_versions
2067: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2068: pa_fin_plan_utils.Check_Locked_By_User
2069: (p_user_id => p_user_id,
2070: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2071: x_is_locked_by_userid => l_is_cost_locked_by_user,

Line 2070: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

2066: from pa_budget_versions
2067: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2068: pa_fin_plan_utils.Check_Locked_By_User
2069: (p_user_id => p_user_id,
2070: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2071: x_is_locked_by_userid => l_is_cost_locked_by_user,
2072: x_locked_by_person_id => l_cost_locked_by_person_id,
2073: x_return_status => l_return_status,
2074: x_msg_count => l_msg_count,

Line 2088: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null then

2084: end if; -- is_cost_locked_by_user
2085: end if; -- END:COST VERSION
2086:
2087: -- REVENUE VERSION
2088: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null then
2089: --hr_utility.trace('figuring out revenue LOCKED BY');
2090: select record_version_number, -- OUTPUT: x_rev_rv_number
2091: budget_status_code -- OUTPUT: x_budget_status_code
2092: into x_rev_rv_number,

Line 2095: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2091: budget_status_code -- OUTPUT: x_budget_status_code
2092: into x_rev_rv_number,
2093: x_budget_status_code
2094: from pa_budget_versions
2095: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2096: pa_fin_plan_utils.Check_Locked_By_User
2097: (p_user_id => p_user_id,
2098: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2099: x_is_locked_by_userid => l_is_rev_locked_by_user,

Line 2098: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

2094: from pa_budget_versions
2095: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2096: pa_fin_plan_utils.Check_Locked_By_User
2097: (p_user_id => p_user_id,
2098: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2099: x_is_locked_by_userid => l_is_rev_locked_by_user,
2100: x_locked_by_person_id => l_rev_locked_by_person_id,
2101: x_return_status => l_return_status,
2102: x_msg_count => l_msg_count,

Line 2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);

2113: end if; -- END:REVENUE VERSION
2114:
2115:
2116: --hr_utility.trace('after calling locked version stuff');
2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

Line 2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));

2114:
2115:
2116: --hr_utility.trace('after calling locked version stuff');
2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

Line 2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));

2115:
2116: --hr_utility.trace('after calling locked version stuff');
2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

Line 2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));

2116: --hr_utility.trace('after calling locked version stuff');
2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2124: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));

Line 2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

2117: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2124: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2125: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));

Line 2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

2118: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2124: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2125: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
2126: --hr_utility.trace('x_budget_status_code= ' || x_budget_status_code);

Line 2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

2119: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2120: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2121: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2122: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2123: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2124: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2125: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
2126: --hr_utility.trace('x_budget_status_code= ' || x_budget_status_code);
2127: */

Line 2135: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

2131: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2132: x_msg_count := 1;
2133: x_msg_data := SQLERRM;
2134: FND_MSG_PUB.add_exc_msg
2135: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
2136: p_procedure_name => 'pa_fp_viewplan_hgrid_init');
2137: END pa_fp_viewplan_hgrid_init_ci;
2138:
2139:

Line 2161: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;

2157: BEGIN
2158:
2159: x_return_status := FND_API.G_RET_STS_SUCCESS;
2160:
2161: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;
2162: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;
2163: l_budget_version_id := p_budget_version_id;
2164:
2165: l_start_date := p_start_period;

Line 2162: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;

2158:
2159: x_return_status := FND_API.G_RET_STS_SUCCESS;
2160:
2161: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;
2162: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;
2163: l_budget_version_id := p_budget_version_id;
2164:
2165: l_start_date := p_start_period;
2166:

Line 2167: pa_fp_view_plans_pub.pa_fp_set_orgfcst_version_id

2163: l_budget_version_id := p_budget_version_id;
2164:
2165: l_start_date := p_start_period;
2166:
2167: pa_fp_view_plans_pub.pa_fp_set_orgfcst_version_id
2168: (p_orgfcst_version_id => l_budget_version_id,
2169: p_period_start_date => l_start_date,
2170: x_return_status => l_return_status,
2171: x_msg_count => l_msg_count,

Line 2179: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

2175: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2176: x_msg_count := 1;
2177: x_msg_data := SQLERRM;
2178: FND_MSG_PUB.add_exc_msg
2179: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
2180: p_procedure_name => 'pa_fp_viewby_set_globals');
2181: END pa_fp_viewby_set_globals;
2182: */
2183:

Line 2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;

2242: -- 1. initialized all global start date variables to null
2243: -- 2. populated global variables only if records exist for them in the
2244: -- PL/SQL table
2245:
2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;

Line 2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;

2243: -- 2. populated global variables only if records exist for them in the
2244: -- PL/SQL table
2245:
2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;

Line 2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;

2244: -- PL/SQL table
2245:
2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;

Line 2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;

2245:
2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;

Line 2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;

2246: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;

Line 2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;

2247: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;

Line 2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;

2248: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;

Line 2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;

2249: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;

Line 2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;

2250: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;

Line 2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;

2251: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;

Line 2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;

2252: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;

Line 2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;

2253: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;

Line 2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;

2254: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;

Line 2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;

2255: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;

Line 2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;

2256: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;

Line 2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;

2257: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;

Line 2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;

2258: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;

Line 2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;

2259: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;

Line 2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;

2260: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;

Line 2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;

2261: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;

Line 2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;

2262: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;

Line 2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;

2263: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;

Line 2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;

2264: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2272:

Line 2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;

2265: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2272:
2273:

Line 2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;

2266: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2272:
2273:
2274: if i > 1 then

Line 2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;

2267: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2268: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2269: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2270: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2272:
2273:
2274: if i > 1 then
2275: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);

Line 2275: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);

2271: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2272:
2273:
2274: if i > 1 then
2275: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2276: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2277: end if;
2278: if i > 2 then
2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);

Line 2276: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);

2272:
2273:
2274: if i > 1 then
2275: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2276: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2277: end if;
2278: if i > 2 then
2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);

Line 2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);

2275: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2276: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2277: end if;
2278: if i > 2 then
2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2281: end if;
2282: if i > 3 then
2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);

Line 2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);

2276: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2277: end if;
2278: if i > 2 then
2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2281: end if;
2282: if i > 3 then
2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);

Line 2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);

2279: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2281: end if;
2282: if i > 3 then
2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2285: end if;
2286: if i > 4 then
2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);

Line 2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);

2280: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2281: end if;
2282: if i > 3 then
2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2285: end if;
2286: if i > 4 then
2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);

Line 2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);

2283: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2285: end if;
2286: if i > 4 then
2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2289: end if;
2290: if i > 5 then
2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);

Line 2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);

2284: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2285: end if;
2286: if i > 4 then
2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2289: end if;
2290: if i > 5 then
2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);

Line 2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);

2287: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2289: end if;
2290: if i > 5 then
2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2293: end if;
2294: if i > 6 then
2295: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);

Line 2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);

2288: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2289: end if;
2290: if i > 5 then
2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2293: end if;
2294: if i > 6 then
2295: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2296: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);

Line 2295: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);

2291: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2293: end if;
2294: if i > 6 then
2295: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2296: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);
2297: end if;
2298:
2299: if p_period_type = 'PA' THEN

Line 2296: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);

2292: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2293: end if;
2294: if i > 6 then
2295: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2296: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);
2297: end if;
2298:
2299: if p_period_type = 'PA' THEN
2300: if i > 7 then

Line 2301: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);

2297: end if;
2298:
2299: if p_period_type = 'PA' THEN
2300: if i > 7 then
2301: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2302: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2303: end if;
2304: if i > 8 then
2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);

Line 2302: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);

2298:
2299: if p_period_type = 'PA' THEN
2300: if i > 7 then
2301: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2302: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2303: end if;
2304: if i > 8 then
2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);

Line 2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);

2301: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2302: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2303: end if;
2304: if i > 8 then
2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2307: end if;
2308: if i > 9 then
2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);

Line 2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);

2302: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2303: end if;
2304: if i > 8 then
2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2307: end if;
2308: if i > 9 then
2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);

Line 2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);

2305: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2307: end if;
2308: if i > 9 then
2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2311: end if;
2312: if i > 10 then
2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);

Line 2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);

2306: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2307: end if;
2308: if i > 9 then
2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2311: end if;
2312: if i > 10 then
2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);

Line 2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);

2309: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2311: end if;
2312: if i > 10 then
2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2315: end if;
2316: if i > 11 then
2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);

Line 2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);

2310: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2311: end if;
2312: if i > 10 then
2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2315: end if;
2316: if i > 11 then
2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);

Line 2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);

2313: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2315: end if;
2316: if i > 11 then
2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2319: end if;
2320: if i > 12 then
2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);

Line 2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);

2314: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2315: end if;
2316: if i > 11 then
2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2319: end if;
2320: if i > 12 then
2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);

Line 2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);

2317: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2319: end if;
2320: if i > 12 then
2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2323: end if;
2324: if i > 13 then
2325: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);

Line 2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);

2318: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2319: end if;
2320: if i > 12 then
2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2323: end if;
2324: if i > 13 then
2325: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2326: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);

Line 2325: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);

2321: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2323: end if;
2324: if i > 13 then
2325: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2326: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);
2327: end if;
2328: end if;
2329:

Line 2326: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);

2322: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2323: end if;
2324: if i > 13 then
2325: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2326: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);
2327: end if;
2328: end if;
2329:
2330: -- END BUG FIX 3142192

Line 2362: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and

2358:
2359: SELECT start_date, end_date
2360: FROM pa_fp_periods_tmp_v
2361: WHERE start_date > l_start_date and
2362: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2363: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2364: order by start_date;
2365:
2366:

Line 2363: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE

2359: SELECT start_date, end_date
2360: FROM pa_fp_periods_tmp_v
2361: WHERE start_date > l_start_date and
2362: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2363: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2364: order by start_date;
2365:
2366:
2367: CURSOR C_backward(l_start_date IN DATE) IS

Line 2372: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and

2368:
2369: SELECT start_date
2370: FROM pa_fp_periods_tmp_v
2371: WHERE start_date < l_start_date and
2372: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2373: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2374: order by start_date desc;
2375:
2376: BEGIN

Line 2373: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE

2369: SELECT start_date
2370: FROM pa_fp_periods_tmp_v
2371: WHERE start_date < l_start_date and
2372: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2373: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2374: order by start_date desc;
2375:
2376: BEGIN
2377: --hr_utility.trace_on(null, 'dlai');

Line 2380: l_start_date := pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;

2376: BEGIN
2377: --hr_utility.trace_on(null, 'dlai');
2378: l_rownum := p_num_of_periods;
2379: ll_start_date := null;
2380: l_start_date := pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;
2381:
2382: l_period_type := p_period_type;
2383:
2384: IF p_direction = 'FORWARD' THEN

Line 2398: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

2394:
2395: END LOOP;
2396: -- if we've reached the end of the period profile, we need go loop back
2397: -- 6 or 13 periods, depending on the period type
2398: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
2399: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'PA' then
2400: l_rownum := 12;
2401: OPEN C_backward(ll_start_date);
2402: LOOP

Line 2399: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'PA' then

2395: END LOOP;
2396: -- if we've reached the end of the period profile, we need go loop back
2397: -- 6 or 13 periods, depending on the period type
2398: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
2399: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'PA' then
2400: l_rownum := 12;
2401: OPEN C_backward(ll_start_date);
2402: LOOP
2403: FETCH C_backward INTO ll_start_date;

Line 2408: elsif pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then

2404: EXIT WHEN C_backward%NOTFOUND;
2405: EXIT WHEN C_backward%ROWCOUNT = l_rownum;
2406: END LOOP;
2407: CLOSE C_backward;
2408: elsif pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
2409: l_rownum := 5;
2410: OPEN C_backward(ll_start_date);
2411: LOOP
2412: FETCH C_backward INTO ll_start_date;

Line 2450: return pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

2446:
2447:
2448: FUNCTION Get_Version_ID return NUMBER is
2449: BEGIN
2450: return pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
2451: END Get_Version_ID;
2452:
2453: /* Added for bug 7514054 */
2454: FUNCTION Get_Fp_Period_Type return VARCHAR2 is

Line 2456: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;

2452:
2453: /* Added for bug 7514054 */
2454: FUNCTION Get_Fp_Period_Type return VARCHAR2 is
2455: BEGIN
2456: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;
2457: END Get_Fp_Period_Type;
2458: /* Ends added for 7514054 */
2459:
2460: FUNCTION Get_Cost_Version_Id return Number is

Line 2462: return pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2458: /* Ends added for 7514054 */
2459:
2460: FUNCTION Get_Cost_Version_Id return Number is
2461: BEGIN
2462: return pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2463: END Get_Cost_Version_id;
2464:
2465: FUNCTION Get_Rev_Version_Id return Number is
2466: BEGIN

Line 2467: return pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2463: END Get_Cost_Version_id;
2464:
2465: FUNCTION Get_Rev_Version_Id return Number is
2466: BEGIN
2467: return pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2468: END Get_Rev_Version_Id;
2469:
2470: FUNCTION Get_Org_ID return NUMBER is
2471: BEGIN

Line 2472: return pa_fp_view_plans_pub.G_FP_ORG_ID;

2468: END Get_Rev_Version_Id;
2469:
2470: FUNCTION Get_Org_ID return NUMBER is
2471: BEGIN
2472: return pa_fp_view_plans_pub.G_FP_ORG_ID;
2473: END Get_Org_ID;
2474:
2475: FUNCTION Get_Plan_Type_ID return NUMBER is
2476: BEGIN

Line 2477: return pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID;

2473: END Get_Org_ID;
2474:
2475: FUNCTION Get_Plan_Type_ID return NUMBER is
2476: BEGIN
2477: return pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID;
2478: END Get_Plan_Type_ID;
2479:
2480: FUNCTION Get_Derive_Margin_From_Code return VARCHAR2 is
2481: BEGIN

Line 2482: return pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM;

2478: END Get_Plan_Type_ID;
2479:
2480: FUNCTION Get_Derive_Margin_From_Code return VARCHAR2 is
2481: BEGIN
2482: return pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM;
2483: END Get_Derive_Margin_From_Code;
2484:
2485: FUNCTION Get_Report_Labor_Hrs_From_Code return VARCHAR2 is
2486: BEGIN

Line 2487: return pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM;

2483: END Get_Derive_Margin_From_Code;
2484:
2485: FUNCTION Get_Report_Labor_Hrs_From_Code return VARCHAR2 is
2486: BEGIN
2487: return pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM;
2488: END Get_Report_Labor_Hrs_From_Code;
2489:
2490: FUNCTION Get_Resource_assignment_ID return NUMBER is
2491: BEGIN

Line 2492: return pa_fp_view_plans_pub.G_FP_RA_ID;

2488: END Get_Report_Labor_Hrs_From_Code;
2489:
2490: FUNCTION Get_Resource_assignment_ID return NUMBER is
2491: BEGIN
2492: return pa_fp_view_plans_pub.G_FP_RA_ID;
2493: END Get_Resource_assignment_ID;
2494:
2495: FUNCTION Get_Amount_Type_code return VARCHAR2 is
2496: BEGIN

Line 2497: return pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE;

2493: END Get_Resource_assignment_ID;
2494:
2495: FUNCTION Get_Amount_Type_code return VARCHAR2 is
2496: BEGIN
2497: return pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE;
2498: END Get_Amount_Type_code;
2499:
2500: FUNCTION Get_Adj_Reason_Code return VARCHAR2 is
2501: BEGIN

Line 2502: return pa_fp_view_plans_pub.G_FP_ADJ_REASON_CODE;

2498: END Get_Amount_Type_code;
2499:
2500: FUNCTION Get_Adj_Reason_Code return VARCHAR2 is
2501: BEGIN
2502: return pa_fp_view_plans_pub.G_FP_ADJ_REASON_CODE;
2503: END Get_Adj_Reason_Code;
2504:
2505: FUNCTION Get_Uncat_Res_List_Member_Id return NUMBER is
2506: BEGIN

Line 2507: return pa_fp_view_plans_pub.G_UNCAT_RLM_ID;

2503: END Get_Adj_Reason_Code;
2504:
2505: FUNCTION Get_Uncat_Res_List_Member_Id return NUMBER is
2506: BEGIN
2507: return pa_fp_view_plans_pub.G_UNCAT_RLM_ID;
2508: END Get_Uncat_Res_List_Member_Id;
2509:
2510: FUNCTION Get_Period_Start_Date1 return Date is
2511: BEGIN

Line 2512: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;

2508: END Get_Uncat_Res_List_Member_Id;
2509:
2510: FUNCTION Get_Period_Start_Date1 return Date is
2511: BEGIN
2512: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;
2513: END Get_Period_Start_Date1;
2514:
2515: FUNCTION Get_Period_Start_Date2 return Date is
2516: BEGIN

Line 2517: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2;

2513: END Get_Period_Start_Date1;
2514:
2515: FUNCTION Get_Period_Start_Date2 return Date is
2516: BEGIN
2517: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2;
2518: END Get_Period_Start_Date2;
2519:
2520: FUNCTION Get_Period_Start_Date3 return Date is
2521: BEGIN

Line 2522: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3;

2518: END Get_Period_Start_Date2;
2519:
2520: FUNCTION Get_Period_Start_Date3 return Date is
2521: BEGIN
2522: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3;
2523: END Get_Period_Start_Date3;
2524:
2525: FUNCTION Get_Period_Start_Date4 return Date is
2526: BEGIN

Line 2527: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4;

2523: END Get_Period_Start_Date3;
2524:
2525: FUNCTION Get_Period_Start_Date4 return Date is
2526: BEGIN
2527: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4;
2528: END Get_Period_Start_Date4;
2529:
2530: FUNCTION Get_Period_Start_Date5 return Date is
2531: BEGIN

Line 2532: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5;

2528: END Get_Period_Start_Date4;
2529:
2530: FUNCTION Get_Period_Start_Date5 return Date is
2531: BEGIN
2532: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5;
2533: END Get_Period_Start_Date5;
2534:
2535: FUNCTION Get_Period_Start_Date6 return Date is
2536: BEGIN

Line 2537: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6;

2533: END Get_Period_Start_Date5;
2534:
2535: FUNCTION Get_Period_Start_Date6 return Date is
2536: BEGIN
2537: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6;
2538: END Get_Period_Start_Date6;
2539:
2540: FUNCTION Get_Period_Start_Date7 return Date is
2541: BEGIN

Line 2542: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7;

2538: END Get_Period_Start_Date6;
2539:
2540: FUNCTION Get_Period_Start_Date7 return Date is
2541: BEGIN
2542: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7;
2543: END Get_Period_Start_Date7;
2544:
2545: FUNCTION Get_Period_Start_Date8 return Date is
2546: BEGIN

Line 2547: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8;

2543: END Get_Period_Start_Date7;
2544:
2545: FUNCTION Get_Period_Start_Date8 return Date is
2546: BEGIN
2547: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8;
2548: END Get_Period_Start_Date8;
2549:
2550: FUNCTION Get_Period_Start_Date9 return Date is
2551: BEGIN

Line 2552: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9;

2548: END Get_Period_Start_Date8;
2549:
2550: FUNCTION Get_Period_Start_Date9 return Date is
2551: BEGIN
2552: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9;
2553: END Get_Period_Start_Date9;
2554:
2555: FUNCTION Get_Period_Start_Date10 return Date is
2556: BEGIN

Line 2557: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10;

2553: END Get_Period_Start_Date9;
2554:
2555: FUNCTION Get_Period_Start_Date10 return Date is
2556: BEGIN
2557: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10;
2558: END Get_Period_Start_Date10;
2559:
2560: FUNCTION Get_Period_Start_Date11 return Date is
2561: BEGIN

Line 2562: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11;

2558: END Get_Period_Start_Date10;
2559:
2560: FUNCTION Get_Period_Start_Date11 return Date is
2561: BEGIN
2562: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11;
2563: END Get_Period_Start_Date11;
2564:
2565: FUNCTION Get_Period_Start_Date12 return Date is
2566: BEGIN

Line 2567: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12;

2563: END Get_Period_Start_Date11;
2564:
2565: FUNCTION Get_Period_Start_Date12 return Date is
2566: BEGIN
2567: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12;
2568: END Get_Period_Start_Date12;
2569:
2570:
2571: FUNCTION Get_Period_Start_Date13 return Date is

Line 2573: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13;

2569:
2570:
2571: FUNCTION Get_Period_Start_Date13 return Date is
2572: BEGIN
2573: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13;
2574: END Get_Period_Start_Date13;
2575:
2576: FUNCTION Get_Plan_Start_Date return Date is
2577: BEGIN

Line 2578: return pa_fp_view_plans_pub.G_FP_PLAN_START_DATE;

2574: END Get_Period_Start_Date13;
2575:
2576: FUNCTION Get_Plan_Start_Date return Date is
2577: BEGIN
2578: return pa_fp_view_plans_pub.G_FP_PLAN_START_DATE;
2579: END Get_Plan_Start_Date;
2580:
2581: FUNCTION Get_Plan_End_Date return Date is
2582: BEGIN

Line 2583: return pa_fp_view_plans_pub.G_FP_PLAN_END_DATE;

2579: END Get_Plan_Start_Date;
2580:
2581: FUNCTION Get_Plan_End_Date return Date is
2582: BEGIN
2583: return pa_fp_view_plans_pub.G_FP_PLAN_END_DATE;
2584: END Get_Plan_End_Date;
2585:
2586: FUNCTION Get_Prec_Pds_Flag return VARCHAR2 is
2587: BEGIN

Line 2588: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC;

2584: END Get_Plan_End_Date;
2585:
2586: FUNCTION Get_Prec_Pds_Flag return VARCHAR2 is
2587: BEGIN
2588: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC;
2589: END Get_Prec_Pds_Flag;
2590:
2591: FUNCTION Get_Succ_Pds_Flag return VARCHAR2 is
2592: BEGIN

Line 2593: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC;

2589: END Get_Prec_Pds_Flag;
2590:
2591: FUNCTION Get_Succ_Pds_Flag return VARCHAR2 is
2592: BEGIN
2593: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC;
2594: END Get_Succ_Pds_Flag;
2595:
2596: FUNCTION Get_Currency_Code return VARCHAR2 is
2597: BEGIN

Line 2598: return pa_fp_view_plans_pub.G_FP_CURRENCY_CODE;

2594: END Get_Succ_Pds_Flag;
2595:
2596: FUNCTION Get_Currency_Code return VARCHAR2 is
2597: BEGIN
2598: return pa_fp_view_plans_pub.G_FP_CURRENCY_CODE;
2599: END Get_Currency_Code;
2600:
2601: FUNCTION Get_Currency_Type return VARCHAR2 is
2602: BEGIN

Line 2603: return pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE;

2599: END Get_Currency_Code;
2600:
2601: FUNCTION Get_Currency_Type return VARCHAR2 is
2602: BEGIN
2603: return pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE;
2604: END Get_Currency_Type;
2605:
2606: FUNCTION Get_Default_Amount_Type_Code return VARCHAR2 is
2607: BEGIN

Line 2608: return pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE;

2604: END Get_Currency_Type;
2605:
2606: FUNCTION Get_Default_Amount_Type_Code return VARCHAR2 is
2607: BEGIN
2608: return pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE;
2609: END Get_Default_Amount_Type_Code;
2610:
2611: FUNCTION Get_Default_Amt_Subtype_Code return VARCHAR2 is
2612: BEGIN

Line 2613: return pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE;

2609: END Get_Default_Amount_Type_Code;
2610:
2611: FUNCTION Get_Default_Amt_Subtype_Code return VARCHAR2 is
2612: BEGIN
2613: return pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE;
2614: END Get_Default_Amt_Subtype_Code;
2615:
2616: FUNCTION Get_Cost_Version_Number return NUMBER is
2617: BEGIN

Line 2618: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER;

2614: END Get_Default_Amt_Subtype_Code;
2615:
2616: FUNCTION Get_Cost_Version_Number return NUMBER is
2617: BEGIN
2618: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER;
2619: END Get_Cost_Version_Number;
2620:
2621: FUNCTION Get_Rev_Version_Number return NUMBER is
2622: BEGIN

Line 2623: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER;

2619: END Get_Cost_Version_Number;
2620:
2621: FUNCTION Get_Rev_Version_Number return NUMBER is
2622: BEGIN
2623: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER;
2624: END Get_Rev_Version_Number;
2625:
2626: FUNCTION Get_All_Version_Number return NUMBER is
2627: BEGIN

Line 2628: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER;

2624: END Get_Rev_Version_Number;
2625:
2626: FUNCTION Get_All_Version_Number return NUMBER is
2627: BEGIN
2628: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER;
2629: END Get_All_Version_Number;
2630:
2631: FUNCTION Get_Cost_Version_Name return VARCHAR2 is
2632: BEGIN

Line 2633: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME;

2629: END Get_All_Version_Number;
2630:
2631: FUNCTION Get_Cost_Version_Name return VARCHAR2 is
2632: BEGIN
2633: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME;
2634: END Get_Cost_Version_Name;
2635:
2636: FUNCTION Get_Rev_Version_Name return VARCHAR2 is
2637: BEGIN

Line 2638: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME;

2634: END Get_Cost_Version_Name;
2635:
2636: FUNCTION Get_Rev_Version_Name return VARCHAR2 is
2637: BEGIN
2638: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME;
2639: END Get_Rev_Version_Name;
2640:
2641: FUNCTION Get_All_Version_Name return VARCHAR2 is
2642: BEGIN

Line 2643: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME;

2639: END Get_Rev_Version_Name;
2640:
2641: FUNCTION Get_All_Version_Name return VARCHAR2 is
2642: BEGIN
2643: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME;
2644: END Get_All_Version_Name;
2645:
2646: FUNCTION Get_Period_Type return VARCHAR2 is
2647: BEGIN

Line 2648: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;

2644: END Get_All_Version_Name;
2645:
2646: FUNCTION Get_Period_Type return VARCHAR2 is
2647: BEGIN
2648: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;
2649: END Get_Period_Type;
2650:
2651: PROCEDURE Set_Cost_Version_Number (p_version_number IN NUMBER) is
2652: BEGIN

Line 2653: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := p_version_number;

2649: END Get_Period_Type;
2650:
2651: PROCEDURE Set_Cost_Version_Number (p_version_number IN NUMBER) is
2652: BEGIN
2653: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := p_version_number;
2654: END Set_Cost_Version_Number;
2655:
2656: PROCEDURE Set_Rev_Version_Number (p_version_number IN NUMBER) is
2657: BEGIN

Line 2658: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := p_version_number;

2654: END Set_Cost_Version_Number;
2655:
2656: PROCEDURE Set_Rev_Version_Number (p_version_number IN NUMBER) is
2657: BEGIN
2658: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := p_version_number;
2659: END Set_Rev_Version_Number;
2660:
2661: PROCEDURE Set_Cost_Version_Name (p_version_name IN VARCHAR2) is
2662: BEGIN

Line 2663: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := p_version_name;

2659: END Set_Rev_Version_Number;
2660:
2661: PROCEDURE Set_Cost_Version_Name (p_version_name IN VARCHAR2) is
2662: BEGIN
2663: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := p_version_name;
2664: END Set_Cost_Version_Name;
2665:
2666: PROCEDURE Set_Rev_Version_Name (p_version_name IN VARCHAR2) is
2667: BEGIN

Line 2668: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := p_version_name;

2664: END Set_Cost_Version_Name;
2665:
2666: PROCEDURE Set_Rev_Version_Name (p_version_name IN VARCHAR2) is
2667: BEGIN
2668: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := p_version_name;
2669: END Set_Rev_Version_Name;
2670:
2671:
2672: /* ------------------------------------------------------------------ */

Line 2851: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '100: entered procedure', 2);

2847: l_msg_count NUMBER;
2848: l_msg_data VARCHAR2(80);
2849:
2850: begin
2851: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '100: entered procedure', 2);
2852: --hr_utility.trace_on(null, 'dlai');
2853: --hr_utility.trace('entered view_plan_temp_tables');
2854: --hr_utility.trace('p_budget_version_id= ' || TO_CHAR(p_budget_version_id));
2855: x_msg_count := 0;

Line 2865: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

2861: -- order of checking: ALL, COST, REVENUE
2862: if p_user_bv_flag = 'Y' then
2863: --hr_utility.trace('p_user_bv_flag = Y');
2864: -- assume that the BV_ID variables have already been set
2865: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else

Line 2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2862: if p_user_bv_flag = 'Y' then
2863: --hr_utility.trace('p_user_bv_flag = Y');
2864: -- assume that the BV_ID variables have already been set
2865: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2863: --hr_utility.trace('p_user_bv_flag = Y');
2864: -- assume that the BV_ID variables have already been set
2865: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;

Line 2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2864: -- assume that the BV_ID variables have already been set
2865: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;
2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));

Line 2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2866: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2867: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;
2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2873: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2874: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));

Line 2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));

2868: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;
2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2873: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2874: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2875:
2876: --hr_utility.trace('selecting from pa_budget_versions');

Line 2873: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));

2869: else
2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;
2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2873: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2874: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2875:
2876: --hr_utility.trace('selecting from pa_budget_versions');
2877: select DECODE(budget_status_code,

Line 2874: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));

2870: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2871: end if;
2872: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2873: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2874: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2875:
2876: --hr_utility.trace('selecting from pa_budget_versions');
2877: select DECODE(budget_status_code,
2878: 'B', 'B',

Line 2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';

2892:
2893: -- figure out display_from:
2894: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2895: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2900: else

Line 2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

2893: -- figure out display_from:
2894: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2895: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2900: else
2901: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2894: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2895: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2900: else
2901: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2902: end if;

Line 2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2895: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2900: else
2901: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2902: end if;
2903: end if;

Line 2901: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2897: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2898: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2899: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2900: else
2901: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2902: end if;
2903: end if;
2904: select version_name,
2905: version_number

Line 2912: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;

2908: from pa_budget_versions
2909: where budget_version_id = p_budget_version_id;
2910: l_rev_version_name := l_cost_version_name;
2911: l_rev_version_number := l_cost_version_number;
2912: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2913: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2914: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2915: (p_project_id => p_project_id,
2916: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,

Line 2913: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;

2909: where budget_version_id = p_budget_version_id;
2910: l_rev_version_name := l_cost_version_name;
2911: l_rev_version_number := l_cost_version_number;
2912: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2913: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2914: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2915: (p_project_id => p_project_id,
2916: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2917: x_return_status => l_return_status,

Line 2914: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together

2910: l_rev_version_name := l_cost_version_name;
2911: l_rev_version_number := l_cost_version_number;
2912: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2913: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2914: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2915: (p_project_id => p_project_id,
2916: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2917: x_return_status => l_return_status,
2918: x_msg_count => l_msg_count,

Line 2916: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,

2912: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2913: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2914: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2915: (p_project_id => p_project_id,
2916: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2917: x_return_status => l_return_status,
2918: x_msg_count => l_msg_count,
2919: x_msg_data => l_msg_data);
2920:

Line 2923: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

2919: x_msg_data => l_msg_data);
2920:
2921: elsif l_fp_preference_code = 'COST_ONLY' then
2922: --hr_utility.trace('user_specified: COST_ONLY');
2923: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
2924: select version_number,
2925: version_name
2926: into l_cost_version_number,
2927: l_cost_version_name

Line 2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

2928: from pa_budget_versions
2929: where budget_version_id = p_budget_version_id;
2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2934: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2935: (p_project_id => p_project_id,
2936: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2929: where budget_version_id = p_budget_version_id;
2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2934: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2935: (p_project_id => p_project_id,
2936: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2937: p_cost_or_rev => 'C',

Line 2934: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2934: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2935: (p_project_id => p_project_id,
2936: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2937: p_cost_or_rev => 'C',
2938: x_return_status => l_return_status,

Line 2936: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2934: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2935: (p_project_id => p_project_id,
2936: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2937: p_cost_or_rev => 'C',
2938: x_return_status => l_return_status,
2939: x_msg_count => l_msg_count,
2940: x_msg_data => l_msg_data);

Line 2944: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

2940: x_msg_data => l_msg_data);
2941:
2942: elsif l_fp_preference_code = 'REVENUE_ONLY' then
2943: --hr_utility.trace('user_specified: REVENUE_ONLY');
2944: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
2945: select version_number,
2946: version_name
2947: into l_rev_version_number,
2948: l_rev_version_name

Line 2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

2949: from pa_budget_versions
2950: where budget_version_id = p_budget_version_id;
2951: l_cost_version_number := null;
2952: l_cost_version_name := ' ';
2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2954: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2955: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2956: (p_project_id => p_project_id,
2957: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 2954: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

2950: where budget_version_id = p_budget_version_id;
2951: l_cost_version_number := null;
2952: l_cost_version_name := ' ';
2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2954: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2955: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2956: (p_project_id => p_project_id,
2957: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2958: p_cost_or_rev => 'R',

Line 2955: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

2951: l_cost_version_number := null;
2952: l_cost_version_name := ' ';
2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2954: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2955: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2956: (p_project_id => p_project_id,
2957: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2958: p_cost_or_rev => 'R',
2959: x_return_status => l_return_status,

Line 2957: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2954: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2955: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2956: (p_project_id => p_project_id,
2957: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2958: p_cost_or_rev => 'R',
2959: x_return_status => l_return_status,
2960: x_msg_count => l_msg_count,
2961: x_msg_data => l_msg_data);

Line 2965: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and

2961: x_msg_data => l_msg_data);
2962:
2963: else
2964: --hr_utility.trace('user_specified: COST_AND_REV_SEP');
2965: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
2966: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) then
2967:
2968: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2969: select period_profile_id

Line 2966: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) then

2962:
2963: else
2964: --hr_utility.trace('user_specified: COST_AND_REV_SEP');
2965: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
2966: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) then
2967:
2968: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2969: select period_profile_id
2970: into l_period_profile_id1

Line 2972: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2968: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2969: select period_profile_id
2970: into l_period_profile_id1
2971: from pa_budget_versions
2972: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2973: select period_profile_id
2974: into l_period_profile_id2
2975: from pa_budget_versions
2976: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2976: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2972: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2973: select period_profile_id
2974: into l_period_profile_id2
2975: from pa_budget_versions
2976: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2977: --hr_utility.trace('retrieved the period profile ids');
2978: if (pa_fp_view_plans_util.check_compatible_pd_profiles
2979: (p_period_profile_id1 => l_period_profile_id1,
2980: p_period_profile_id2 => l_period_profile_id2) = 'Y') or

Line 2981: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then

2977: --hr_utility.trace('retrieved the period profile ids');
2978: if (pa_fp_view_plans_util.check_compatible_pd_profiles
2979: (p_period_profile_id1 => l_period_profile_id1,
2980: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
2981: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
2982: --hr_utility.trace('user_specified: period_profile matches');
2983: -- PERIOD PROFILES MATCH: GO AHEAD WITH MERGING
2984: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
2985: select version_number,

Line 2984: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

2980: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
2981: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
2982: --hr_utility.trace('user_specified: period_profile matches');
2983: -- PERIOD PROFILES MATCH: GO AHEAD WITH MERGING
2984: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
2985: select version_number,
2986: version_name
2987: into l_cost_version_number,
2988: l_cost_version_name

Line 2990: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2986: version_name
2987: into l_cost_version_number,
2988: l_cost_version_name
2989: from pa_budget_versions
2990: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2991: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2992: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2993: select version_number,
2994: version_name

Line 2991: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

2987: into l_cost_version_number,
2988: l_cost_version_name
2989: from pa_budget_versions
2990: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2991: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2992: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2993: select version_number,
2994: version_name
2995: into l_rev_version_number,

Line 2992: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2988: l_cost_version_name
2989: from pa_budget_versions
2990: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2991: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2992: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2993: select version_number,
2994: version_name
2995: into l_rev_version_number,
2996: l_rev_version_name

Line 2998: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2994: version_name
2995: into l_rev_version_number,
2996: l_rev_version_name
2997: from pa_budget_versions
2998: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2999: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 2999: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

2995: into l_rev_version_number,
2996: l_rev_version_name
2997: from pa_budget_versions
2998: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2999: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3003: (p_project_id => p_project_id,

Line 3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

2996: l_rev_version_name
2997: from pa_budget_versions
2998: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2999: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3003: (p_project_id => p_project_id,
3004: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

2998: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2999: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3003: (p_project_id => p_project_id,
3004: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3005: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3006: x_return_status => l_return_status,

Line 3004: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

3000: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3003: (p_project_id => p_project_id,
3004: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3005: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3006: x_return_status => l_return_status,
3007: x_msg_count => l_msg_count,
3008: x_msg_data => l_msg_data);

Line 3005: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

3001: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3003: (p_project_id => p_project_id,
3004: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3005: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3006: x_return_status => l_return_status,
3007: x_msg_count => l_msg_count,
3008: x_msg_data => l_msg_data);
3009: --hr_utility.trace('exiting pa_fp_vp_pop_tables_separate');

Line 3014: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3010: else
3011: -- PERIOD PROFILES DO NOT MATCH: ERROR MESSAGE
3012: --hr_utility.trace('user-defined bvs: merge failed because mismatch pd profiles');
3013: l_diff_pd_profile_flag := 'Y';
3014: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3015: select version_number,
3016: version_name
3017: into l_cost_version_number,
3018: l_cost_version_name

Line 3020: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

3016: version_name
3017: into l_cost_version_number,
3018: l_cost_version_name
3019: from pa_budget_versions
3020: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3021: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3022: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3023: select version_number,
3024: version_name

Line 3021: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3017: into l_cost_version_number,
3018: l_cost_version_name
3019: from pa_budget_versions
3020: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3021: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3022: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3023: select version_number,
3024: version_name
3025: into l_rev_version_number,

Line 3022: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3018: l_cost_version_name
3019: from pa_budget_versions
3020: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3021: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3022: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3023: select version_number,
3024: version_name
3025: into l_rev_version_number,
3026: l_rev_version_name

Line 3028: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

3024: version_name
3025: into l_rev_version_number,
3026: l_rev_version_name
3027: from pa_budget_versions
3028: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,

Line 3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3025: into l_rev_version_number,
3026: l_rev_version_name
3027: from pa_budget_versions
3028: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,
3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3026: l_rev_version_name
3027: from pa_budget_versions
3028: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,
3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3034: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3027: from pa_budget_versions
3028: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,
3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3034: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3035: x_return_status => l_return_status,

Line 3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

3029: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,
3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3034: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3035: x_return_status => l_return_status,
3036: x_msg_count => l_msg_count,
3037: x_msg_data => l_msg_data);

Line 3034: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

3030: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3031: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3032: (p_project_id => p_project_id,
3033: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3034: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3035: x_return_status => l_return_status,
3036: x_msg_count => l_msg_count,
3037: x_msg_data => l_msg_data);
3038: end if;

Line 3040: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

3036: x_msg_count => l_msg_count,
3037: x_msg_data => l_msg_data);
3038: end if;
3039: else
3040: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
3041: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3042: select version_number,
3043: version_name
3044: into l_cost_version_number,

Line 3041: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3037: x_msg_data => l_msg_data);
3038: end if;
3039: else
3040: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
3041: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3042: select version_number,
3043: version_name
3044: into l_cost_version_number,
3045: l_cost_version_name

Line 3047: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

3043: version_name
3044: into l_cost_version_number,
3045: l_cost_version_name
3046: from pa_budget_versions
3047: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3048: l_rev_version_number := null;
3049: l_rev_version_name := ' ';
3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

Line 3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3046: from pa_budget_versions
3047: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3048: l_rev_version_number := null;
3049: l_rev_version_name := ' ';
3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3052: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3053: (p_project_id => p_project_id,
3054: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3047: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
3048: l_rev_version_number := null;
3049: l_rev_version_name := ' ';
3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3052: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3053: (p_project_id => p_project_id,
3054: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3055: p_cost_or_rev => 'C',

Line 3052: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3048: l_rev_version_number := null;
3049: l_rev_version_name := ' ';
3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3052: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3053: (p_project_id => p_project_id,
3054: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3055: p_cost_or_rev => 'C',
3056: x_return_status => l_return_status,

Line 3054: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

3050: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3051: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3052: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3053: (p_project_id => p_project_id,
3054: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
3055: p_cost_or_rev => 'C',
3056: x_return_status => l_return_status,
3057: x_msg_count => l_msg_count,
3058: x_msg_data => l_msg_data);

Line 3061: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3057: x_msg_count => l_msg_count,
3058: x_msg_data => l_msg_data);
3059:
3060: else
3061: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3062: select version_number,
3063: version_name
3064: into l_rev_version_number,
3065: l_rev_version_name

Line 3067: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

3063: version_name
3064: into l_rev_version_number,
3065: l_rev_version_name
3066: from pa_budget_versions
3067: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3068: l_cost_version_number := null;
3069: l_cost_version_name := ' ';
3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3066: from pa_budget_versions
3067: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3068: l_cost_version_number := null;
3069: l_cost_version_name := ' ';
3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3072: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3073: (p_project_id => p_project_id,
3074: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3067: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
3068: l_cost_version_number := null;
3069: l_cost_version_name := ' ';
3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3072: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3073: (p_project_id => p_project_id,
3074: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3075: p_cost_or_rev => 'R',

Line 3072: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3068: l_cost_version_number := null;
3069: l_cost_version_name := ' ';
3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3072: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3073: (p_project_id => p_project_id,
3074: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3075: p_cost_or_rev => 'R',
3076: x_return_status => l_return_status,

Line 3074: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

3070: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3071: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3072: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3073: (p_project_id => p_project_id,
3074: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
3075: p_cost_or_rev => 'R',
3076: x_return_status => l_return_status,
3077: x_msg_count => l_msg_count,
3078: x_msg_data => l_msg_data);

Line 3106: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '200: pref = COST_AND_REV_SAME', 1);

3102:
3103: -- if the preference code is 'COST_AND_REV_SAME', then we only need this one version
3104: -- we blindly insert all rows for the budget version into the temp table
3105: if l_fp_preference_code = 'COST_AND_REV_SAME' then
3106: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '200: pref = COST_AND_REV_SAME', 1);
3107: --hr_utility.trace('COST_AND_REV_SAME');
3108: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
3109: select version_name,
3110: version_number

Line 3108: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';

3104: -- we blindly insert all rows for the budget version into the temp table
3105: if l_fp_preference_code = 'COST_AND_REV_SAME' then
3106: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '200: pref = COST_AND_REV_SAME', 1);
3107: --hr_utility.trace('COST_AND_REV_SAME');
3108: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
3109: select version_name,
3110: version_number
3111: into l_cost_version_name,
3112: l_cost_version_number

Line 3117: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;

3113: from pa_budget_versions
3114: where budget_version_id = p_budget_version_id;
3115: l_rev_version_name := l_cost_version_name;
3116: l_rev_version_number := l_cost_version_number;
3117: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3118: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3119: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3120: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3121: (p_project_id => p_project_id,

Line 3118: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;

3114: where budget_version_id = p_budget_version_id;
3115: l_rev_version_name := l_cost_version_name;
3116: l_rev_version_number := l_cost_version_number;
3117: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3118: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3119: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3120: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3121: (p_project_id => p_project_id,
3122: p_budget_version_id => p_budget_version_id,

Line 3119: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;

3115: l_rev_version_name := l_cost_version_name;
3116: l_rev_version_number := l_cost_version_number;
3117: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3118: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3119: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3120: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3121: (p_project_id => p_project_id,
3122: p_budget_version_id => p_budget_version_id,
3123: x_return_status => l_return_status,

Line 3120: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together

3116: l_rev_version_number := l_cost_version_number;
3117: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3118: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3119: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3120: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3121: (p_project_id => p_project_id,
3122: p_budget_version_id => p_budget_version_id,
3123: x_return_status => l_return_status,
3124: x_msg_count => l_msg_count,

Line 3130: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '300: pref=COST_ONLY', 1);

3126:
3127: -- if the preference code is 'COST_ONLY', then we have the bvID of the COST version
3128: -- and we don't have to do anything else
3129: elsif l_fp_preference_code = 'COST_ONLY' then
3130: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '300: pref=COST_ONLY', 1);
3131: --hr_utility.trace('COST_ONLY');
3132: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3133: select version_number,
3134: version_name

Line 3132: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3128: -- and we don't have to do anything else
3129: elsif l_fp_preference_code = 'COST_ONLY' then
3130: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '300: pref=COST_ONLY', 1);
3131: --hr_utility.trace('COST_ONLY');
3132: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3133: select version_number,
3134: version_name
3135: into l_cost_version_number,
3136: l_cost_version_name

Line 3141: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3137: from pa_budget_versions
3138: where budget_version_id = p_budget_version_id;
3139: l_rev_version_number := null;
3140: l_rev_version_name := ' ';
3141: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3142: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3143: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3144: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3145: (p_project_id => p_project_id,

Line 3142: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3138: where budget_version_id = p_budget_version_id;
3139: l_rev_version_number := null;
3140: l_rev_version_name := ' ';
3141: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3142: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3143: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3144: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3145: (p_project_id => p_project_id,
3146: p_budget_version_id => p_budget_version_id,

Line 3143: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3139: l_rev_version_number := null;
3140: l_rev_version_name := ' ';
3141: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3142: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3143: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3144: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3145: (p_project_id => p_project_id,
3146: p_budget_version_id => p_budget_version_id,
3147: p_cost_or_rev => 'C',

Line 3144: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3140: l_rev_version_name := ' ';
3141: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3142: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3143: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3144: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3145: (p_project_id => p_project_id,
3146: p_budget_version_id => p_budget_version_id,
3147: p_cost_or_rev => 'C',
3148: x_return_status => l_return_status,

Line 3153: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=REVENUE_ONLY', 1);

3149: x_msg_count => l_msg_count,
3150: x_msg_data => l_msg_data);
3151:
3152: elsif l_fp_preference_code = 'REVENUE_ONLY' then
3153: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=REVENUE_ONLY', 1);
3154: --hr_utility.trace('REVENUE_ONLY');
3155: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3156: select version_number,
3157: version_name

Line 3155: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3151:
3152: elsif l_fp_preference_code = 'REVENUE_ONLY' then
3153: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=REVENUE_ONLY', 1);
3154: --hr_utility.trace('REVENUE_ONLY');
3155: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3156: select version_number,
3157: version_name
3158: into l_rev_version_number,
3159: l_rev_version_name

Line 3164: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3160: from pa_budget_versions
3161: where budget_version_id = p_budget_version_id;
3162: l_cost_version_number := null;
3163: l_cost_version_name := ' ';
3164: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3165: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3166: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3167: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3168: (p_project_id => p_project_id,

Line 3165: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3161: where budget_version_id = p_budget_version_id;
3162: l_cost_version_number := null;
3163: l_cost_version_name := ' ';
3164: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3165: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3166: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3167: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3168: (p_project_id => p_project_id,
3169: p_budget_version_id => p_budget_version_id,

Line 3166: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3162: l_cost_version_number := null;
3163: l_cost_version_name := ' ';
3164: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3165: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3166: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3167: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3168: (p_project_id => p_project_id,
3169: p_budget_version_id => p_budget_version_id,
3170: p_cost_or_rev => 'R',

Line 3167: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3163: l_cost_version_name := ' ';
3164: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3165: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3166: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3167: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3168: (p_project_id => p_project_id,
3169: p_budget_version_id => p_budget_version_id,
3170: p_cost_or_rev => 'R',
3171: x_return_status => l_return_status,

Line 3181: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=COST_AND_REV_SEP', 1);

3177: -- the other one will also have preference_code = 'COST_AND_REV_SEP', and we will
3178: -- have to inspect bv.version_type (which can be 'COST', 'REVENUE', etc)
3179: else
3180: -- find the appropriate current working version
3181: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=COST_AND_REV_SEP', 1);
3182: --hr_utility.trace('COST_AND_REV_SEP');
3183: if l_working_or_baselined = 'W' then
3184: -- determine whether we have the COST or REVENUE version, and look for the other one
3185: if p_cost_or_revenue = 'C' then

Line 3186: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '500: pref=COST_AND_REV_SEP, WORKING, COST', 2);

3182: --hr_utility.trace('COST_AND_REV_SEP');
3183: if l_working_or_baselined = 'W' then
3184: -- determine whether we have the COST or REVENUE version, and look for the other one
3185: if p_cost_or_revenue = 'C' then
3186: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '500: pref=COST_AND_REV_SEP, WORKING, COST', 2);
3187: --hr_utility.trace('we have a working cost version');
3188: -- we have the COST version, so look for REVENUE version with 'COST_AND_REV_SEP'
3189: open l_compl_crsep_c_w_csr;
3190: fetch l_compl_crsep_c_w_csr into l_compl_crsep_c_w_rec;

Line 3201: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '600: pref=COST_AND_REV_SEP, WORKING, COST - did not find complement', 1);

3197: end if; -- l_compl_crsep_c_w_csr: no data found
3198: close l_compl_crsep_c_w_csr;
3199: if l_compl_budget_version_id = -99 then
3200: -- did not find a compl for the COST version; just process COST version
3201: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '600: pref=COST_AND_REV_SEP, WORKING, COST - did not find complement', 1);
3202: --hr_utility.trace('could NOT find complement for working cost version');
3203: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3204: select version_number,
3205: version_name

Line 3203: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3199: if l_compl_budget_version_id = -99 then
3200: -- did not find a compl for the COST version; just process COST version
3201: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '600: pref=COST_AND_REV_SEP, WORKING, COST - did not find complement', 1);
3202: --hr_utility.trace('could NOT find complement for working cost version');
3203: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3204: select version_number,
3205: version_name
3206: into l_cost_version_number,
3207: l_cost_version_name

Line 3212: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3208: from pa_budget_versions
3209: where budget_version_id = p_budget_version_id;
3210: l_rev_version_number := null;
3211: l_rev_version_name := ' ';
3212: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3213: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3214: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3215: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3216: (p_project_id => p_project_id,

Line 3213: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3209: where budget_version_id = p_budget_version_id;
3210: l_rev_version_number := null;
3211: l_rev_version_name := ' ';
3212: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3213: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3214: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3215: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3216: (p_project_id => p_project_id,
3217: p_budget_version_id => p_budget_version_id,

Line 3214: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3210: l_rev_version_number := null;
3211: l_rev_version_name := ' ';
3212: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3213: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3214: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3215: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3216: (p_project_id => p_project_id,
3217: p_budget_version_id => p_budget_version_id,
3218: p_cost_or_rev => 'C',

Line 3215: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3211: l_rev_version_name := ' ';
3212: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3213: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3214: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3215: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3216: (p_project_id => p_project_id,
3217: p_budget_version_id => p_budget_version_id,
3218: p_cost_or_rev => 'C',
3219: x_return_status => l_return_status,

Line 3235: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then

3231: where budget_version_id = l_compl_budget_version_id;
3232: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3233: (p_period_profile_id1 => l_period_profile_id1,
3234: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3235: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3236: --merge the COST and REVENUE versions
3237: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '700: pref=COST_AND_REV_SEP, WORKING, COST - found complement,and passed period profile check', 1);
3238: --hr_utility.trace('found complement for working cost version AND period profile match');
3239: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3237: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '700: pref=COST_AND_REV_SEP, WORKING, COST - found complement,and passed period profile check', 1);

3233: (p_period_profile_id1 => l_period_profile_id1,
3234: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3235: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3236: --merge the COST and REVENUE versions
3237: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '700: pref=COST_AND_REV_SEP, WORKING, COST - found complement,and passed period profile check', 1);
3238: --hr_utility.trace('found complement for working cost version AND period profile match');
3239: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3240: select version_number,
3241: version_name

Line 3239: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3235: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3236: --merge the COST and REVENUE versions
3237: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '700: pref=COST_AND_REV_SEP, WORKING, COST - found complement,and passed period profile check', 1);
3238: --hr_utility.trace('found complement for working cost version AND period profile match');
3239: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3240: select version_number,
3241: version_name
3242: into l_cost_version_number,
3243: l_cost_version_name

Line 3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3248: into l_rev_version_number,
3249: l_rev_version_name
3250: from pa_budget_versions
3251: where budget_version_id = l_compl_budget_version_id;
3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3249: l_rev_version_name
3250: from pa_budget_versions
3251: where budget_version_id = l_compl_budget_version_id;
3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3250: from pa_budget_versions
3251: where budget_version_id = l_compl_budget_version_id;
3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;

3251: where budget_version_id = l_compl_budget_version_id;
3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3259: (p_project_id => p_project_id,

Line 3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3252: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3259: (p_project_id => p_project_id,
3260: p_cost_budget_version_id => p_budget_version_id,

Line 3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3253: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3259: (p_project_id => p_project_id,
3260: p_cost_budget_version_id => p_budget_version_id,
3261: p_rev_budget_version_id => l_compl_budget_version_id,

Line 3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3254: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3255: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3256: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3257: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3258: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3259: (p_project_id => p_project_id,
3260: p_cost_budget_version_id => p_budget_version_id,
3261: p_rev_budget_version_id => l_compl_budget_version_id,
3262: x_return_status => l_return_status,

Line 3267: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '800: pref=COST_AND_REV_SEP, WORKING, COST - found complement,BUT did not pass period profile check', 1);

3263: x_msg_count => l_msg_count,
3264: x_msg_data => l_msg_data);
3265: else
3266: -- the period profiles didn't match: only process one of the versions
3267: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '800: pref=COST_AND_REV_SEP, WORKING, COST - found complement,BUT did not pass period profile check', 1);
3268: --hr_utility.trace('found complement for working cost version BUT no per profile match');
3269: l_diff_pd_profile_flag := 'Y';
3270:
3271: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

Line 3271: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3267: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '800: pref=COST_AND_REV_SEP, WORKING, COST - found complement,BUT did not pass period profile check', 1);
3268: --hr_utility.trace('found complement for working cost version BUT no per profile match');
3269: l_diff_pd_profile_flag := 'Y';
3270:
3271: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3272: select version_number,
3273: version_name
3274: into l_cost_version_number,
3275: l_cost_version_name

Line 3280: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3276: from pa_budget_versions
3277: where budget_version_id = p_budget_version_id;
3278: l_rev_version_number := null;
3279: l_rev_version_name := ' ';
3280: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3281: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3282: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3283: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3284: (p_project_id => p_project_id,

Line 3281: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3277: where budget_version_id = p_budget_version_id;
3278: l_rev_version_number := null;
3279: l_rev_version_name := ' ';
3280: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3281: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3282: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3283: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3284: (p_project_id => p_project_id,
3285: p_budget_version_id => p_budget_version_id,

Line 3282: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3278: l_rev_version_number := null;
3279: l_rev_version_name := ' ';
3280: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3281: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3282: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3283: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3284: (p_project_id => p_project_id,
3285: p_budget_version_id => p_budget_version_id,
3286: p_cost_or_rev => 'C',

Line 3283: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3279: l_rev_version_name := ' ';
3280: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3281: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3282: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3283: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3284: (p_project_id => p_project_id,
3285: p_budget_version_id => p_budget_version_id,
3286: p_cost_or_rev => 'C',
3287: x_return_status => l_return_status,

Line 3293: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3289: x_msg_data => l_msg_data);
3290:
3291: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3292: * ERROR MESSAGE HANDLING HERE
3293: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3294: select version_number,
3295: version_name
3296: into l_cost_version_number,
3297: l_cost_version_name

Line 3302: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3298: from pa_budget_versions
3299: where budget_version_id = p_budget_version_id;
3300: l_rev_version_number := null;
3301: l_rev_version_name := ' ';
3302: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3303: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3304: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3305: (p_project_id => p_project_id,
3306: p_budget_version_id => p_budget_version_id,

Line 3303: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3299: where budget_version_id = p_budget_version_id;
3300: l_rev_version_number := null;
3301: l_rev_version_name := ' ';
3302: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3303: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3304: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3305: (p_project_id => p_project_id,
3306: p_budget_version_id => p_budget_version_id,
3307: p_cost_or_rev => 'C',

Line 3304: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3300: l_rev_version_number := null;
3301: l_rev_version_name := ' ';
3302: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3303: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3304: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3305: (p_project_id => p_project_id,
3306: p_budget_version_id => p_budget_version_id,
3307: p_cost_or_rev => 'C',
3308: x_return_status => l_return_status,

Line 3316: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '900: pref=COST_AND_REV_SEP, WORKING, REVENUE', 1);

3312: end if;
3313: end if; -- l_compl_budget_version_id is null
3314: else
3315: -- we have the REVENUE version, so look for COST version with 'COST_AND_REV_SEP'
3316: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '900: pref=COST_AND_REV_SEP, WORKING, REVENUE', 1);
3317: --hr_utility.trace('we have a working revenue version');
3318: open l_compl_crsep_r_w_csr;
3319: fetch l_compl_crsep_r_w_csr into l_compl_crsep_r_w_rec;
3320: if l_compl_crsep_r_w_csr%NOTFOUND then

Line 3330: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1000: pref=COST_AND_REV_SEP, WORKING, REVENUE - did not find complement', 1);

3326: end if; --l_compl_crsep_r_w_csr: no data found
3327: close l_compl_crsep_r_w_csr;
3328: if l_compl_budget_version_id = -99 then
3329: -- did not find a compl for the REVENUE version; just process REVENUE version
3330: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1000: pref=COST_AND_REV_SEP, WORKING, REVENUE - did not find complement', 1);
3331: --hr_utility.trace('could not find complement for working revenue version');
3332: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3333: select version_number,
3334: version_name

Line 3332: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3328: if l_compl_budget_version_id = -99 then
3329: -- did not find a compl for the REVENUE version; just process REVENUE version
3330: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1000: pref=COST_AND_REV_SEP, WORKING, REVENUE - did not find complement', 1);
3331: --hr_utility.trace('could not find complement for working revenue version');
3332: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3333: select version_number,
3334: version_name
3335: into l_rev_version_number,
3336: l_rev_version_name

Line 3341: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3337: from pa_budget_versions
3338: where budget_version_id = p_budget_version_id;
3339: l_cost_version_number := null;
3340: l_cost_version_name := ' ';
3341: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3342: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3343: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3344: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3345: (p_project_id => p_project_id,

Line 3342: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3338: where budget_version_id = p_budget_version_id;
3339: l_cost_version_number := null;
3340: l_cost_version_name := ' ';
3341: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3342: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3343: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3344: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3345: (p_project_id => p_project_id,
3346: p_budget_version_id => p_budget_version_id,

Line 3343: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3339: l_cost_version_number := null;
3340: l_cost_version_name := ' ';
3341: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3342: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3343: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3344: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3345: (p_project_id => p_project_id,
3346: p_budget_version_id => p_budget_version_id,
3347: p_cost_or_rev => 'R',

Line 3344: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3340: l_cost_version_name := ' ';
3341: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3342: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3343: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3344: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3345: (p_project_id => p_project_id,
3346: p_budget_version_id => p_budget_version_id,
3347: p_cost_or_rev => 'R',
3348: x_return_status => l_return_status,

Line 3364: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then

3360: where budget_version_id = l_compl_budget_version_id;
3361: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3362: (p_period_profile_id1 => l_period_profile_id1,
3363: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3364: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3365: --merge the COST and REVENUE versions
3366: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1100: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, and passed period profiles test', 1);
3367: --hr_utility.trace('found compl for working revenue version AND period profile match');
3368: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3366: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1100: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, and passed period profiles test', 1);

3362: (p_period_profile_id1 => l_period_profile_id1,
3363: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3364: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3365: --merge the COST and REVENUE versions
3366: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1100: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, and passed period profiles test', 1);
3367: --hr_utility.trace('found compl for working revenue version AND period profile match');
3368: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3369: select version_number,
3370: version_name

Line 3368: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3364: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3365: --merge the COST and REVENUE versions
3366: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1100: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, and passed period profiles test', 1);
3367: --hr_utility.trace('found compl for working revenue version AND period profile match');
3368: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3369: select version_number,
3370: version_name
3371: into l_rev_version_number,
3372: l_rev_version_name

Line 3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;

3377: into l_cost_version_number,
3378: l_cost_version_name
3379: from pa_budget_versions
3380: where budget_version_id = l_compl_budget_version_id;
3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3378: l_cost_version_name
3379: from pa_budget_versions
3380: where budget_version_id = l_compl_budget_version_id;
3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3379: from pa_budget_versions
3380: where budget_version_id = l_compl_budget_version_id;
3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3380: where budget_version_id = l_compl_budget_version_id;
3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3388: (p_project_id => p_project_id,

Line 3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3381: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3388: (p_project_id => p_project_id,
3389: p_cost_budget_version_id => l_compl_budget_version_id,

Line 3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3382: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3388: (p_project_id => p_project_id,
3389: p_cost_budget_version_id => l_compl_budget_version_id,
3390: p_rev_budget_version_id => p_budget_version_id,

Line 3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3383: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3384: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3385: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3386: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3387: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3388: (p_project_id => p_project_id,
3389: p_cost_budget_version_id => l_compl_budget_version_id,
3390: p_rev_budget_version_id => p_budget_version_id,
3391: x_return_status => l_return_status,

Line 3396: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1200: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, BUT did not pass period profiles test', 1);

3392: x_msg_count => l_msg_count,
3393: x_msg_data => l_msg_data);
3394: else
3395: -- the period profiles didn't match: only process one of the versions
3396: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1200: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, BUT did not pass period profiles test', 1);
3397: --hr_utility.trace('found compl for working revenue version BUT no per profile match');
3398: l_diff_pd_profile_flag := 'Y';
3399: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3400: select version_number,

Line 3399: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3395: -- the period profiles didn't match: only process one of the versions
3396: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1200: pref=COST_AND_REV_SEP, WORKING, REVENUE - found complement, BUT did not pass period profiles test', 1);
3397: --hr_utility.trace('found compl for working revenue version BUT no per profile match');
3398: l_diff_pd_profile_flag := 'Y';
3399: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3400: select version_number,
3401: version_name
3402: into l_rev_version_number,
3403: l_rev_version_name

Line 3408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3404: from pa_budget_versions
3405: where budget_version_id = p_budget_version_id;
3406: l_cost_version_number := null;
3407: l_cost_version_name := ' ';
3408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3409: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3410: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3411: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3412: (p_project_id => p_project_id,

Line 3409: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3405: where budget_version_id = p_budget_version_id;
3406: l_cost_version_number := null;
3407: l_cost_version_name := ' ';
3408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3409: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3410: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3411: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3412: (p_project_id => p_project_id,
3413: p_budget_version_id => p_budget_version_id,

Line 3410: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3406: l_cost_version_number := null;
3407: l_cost_version_name := ' ';
3408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3409: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3410: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3411: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3412: (p_project_id => p_project_id,
3413: p_budget_version_id => p_budget_version_id,
3414: p_cost_or_rev => 'R',

Line 3411: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3407: l_cost_version_name := ' ';
3408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3409: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3410: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3411: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3412: (p_project_id => p_project_id,
3413: p_budget_version_id => p_budget_version_id,
3414: p_cost_or_rev => 'R',
3415: x_return_status => l_return_status,

Line 3420: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3416: x_msg_count => l_msg_count,
3417: x_msg_data => l_msg_data);
3418: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3419: * ERROR MESSAGE HANDLING HERE
3420: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3421: select version_number,
3422: version_name
3423: into l_rev_version_number,
3424: l_rev_version_name

Line 3429: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3425: from pa_budget_versions
3426: where budget_version_id = p_budget_version_id;
3427: l_cost_version_number := null;
3428: l_cost_version_name := ' ';
3429: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3430: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3431: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3432: (p_project_id => p_project_id,
3433: p_budget_version_id => p_budget_version_id,

Line 3430: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3426: where budget_version_id = p_budget_version_id;
3427: l_cost_version_number := null;
3428: l_cost_version_name := ' ';
3429: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3430: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3431: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3432: (p_project_id => p_project_id,
3433: p_budget_version_id => p_budget_version_id,
3434: p_cost_or_rev => 'R',

Line 3431: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3427: l_cost_version_number := null;
3428: l_cost_version_name := ' ';
3429: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3430: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3431: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3432: (p_project_id => p_project_id,
3433: p_budget_version_id => p_budget_version_id,
3434: p_cost_or_rev => 'R',
3435: x_return_status => l_return_status,

Line 3448: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1300: pref=COST_AND_REV_SEP, BASELINED, COST', 1);

3444: else
3445: -- determine whether we have the COST or REVENUE version, and look for the other one
3446: if p_cost_or_revenue = 'C' then
3447: -- we have the COST version, so look for REVENUE version with 'COST_AND_REV_SEP'
3448: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1300: pref=COST_AND_REV_SEP, BASELINED, COST', 1);
3449: --hr_utility.trace('we have a baselined cost version');
3450: open l_compl_crsep_c_b_csr;
3451: fetch l_compl_crsep_c_b_csr into l_compl_crsep_c_b_rec;
3452: if l_compl_crsep_c_b_csr%NOTFOUND then

Line 3462: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1400: pref=COST_AND_REV_SEP, BASELINED, COST - did not find complement', 1);

3458: end if; -- l_compl_crsep_c_b_csr: no data found
3459: close l_compl_crsep_c_b_csr;
3460: if l_compl_budget_version_id = -99 then
3461: -- did not find a compl for the COST version; just process COST version
3462: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1400: pref=COST_AND_REV_SEP, BASELINED, COST - did not find complement', 1);
3463: --hr_utility.trace('could not find complement for baselined cost version');
3464: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3465: select version_number,
3466: version_name

Line 3464: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3460: if l_compl_budget_version_id = -99 then
3461: -- did not find a compl for the COST version; just process COST version
3462: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1400: pref=COST_AND_REV_SEP, BASELINED, COST - did not find complement', 1);
3463: --hr_utility.trace('could not find complement for baselined cost version');
3464: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3465: select version_number,
3466: version_name
3467: into l_cost_version_number,
3468: l_cost_version_name

Line 3473: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3469: from pa_budget_versions
3470: where budget_version_id = p_budget_version_id;
3471: l_rev_version_number := null;
3472: l_rev_version_name := ' ';
3473: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3474: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3475: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3476: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3477: (p_project_id => p_project_id,

Line 3474: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3470: where budget_version_id = p_budget_version_id;
3471: l_rev_version_number := null;
3472: l_rev_version_name := ' ';
3473: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3474: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3475: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3476: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3477: (p_project_id => p_project_id,
3478: p_budget_version_id => p_budget_version_id,

Line 3475: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3471: l_rev_version_number := null;
3472: l_rev_version_name := ' ';
3473: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3474: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3475: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3476: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3477: (p_project_id => p_project_id,
3478: p_budget_version_id => p_budget_version_id,
3479: p_cost_or_rev => 'C',

Line 3476: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3472: l_rev_version_name := ' ';
3473: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3474: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3475: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3476: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3477: (p_project_id => p_project_id,
3478: p_budget_version_id => p_budget_version_id,
3479: p_cost_or_rev => 'C',
3480: x_return_status => l_return_status,

Line 3496: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then

3492: where budget_version_id = l_compl_budget_version_id;
3493: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3494: (p_period_profile_id1 => l_period_profile_id1,
3495: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3496: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3497: --merge the COST and REVENUE versions
3498: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1500: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, and passed period profiles test', 1);
3499: --hr_utility.trace('found compl for baselined cost AND period profile match');
3500: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3498: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1500: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, and passed period profiles test', 1);

3494: (p_period_profile_id1 => l_period_profile_id1,
3495: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3496: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3497: --merge the COST and REVENUE versions
3498: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1500: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, and passed period profiles test', 1);
3499: --hr_utility.trace('found compl for baselined cost AND period profile match');
3500: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3501: select version_number,
3502: version_name

Line 3500: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3496: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3497: --merge the COST and REVENUE versions
3498: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1500: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, and passed period profiles test', 1);
3499: --hr_utility.trace('found compl for baselined cost AND period profile match');
3500: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3501: select version_number,
3502: version_name
3503: into l_cost_version_number,
3504: l_cost_version_name

Line 3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3509: into l_rev_version_number,
3510: l_rev_version_name
3511: from pa_budget_versions
3512: where budget_version_id = l_compl_budget_version_id;
3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3510: l_rev_version_name
3511: from pa_budget_versions
3512: where budget_version_id = l_compl_budget_version_id;
3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3511: from pa_budget_versions
3512: where budget_version_id = l_compl_budget_version_id;
3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;

3512: where budget_version_id = l_compl_budget_version_id;
3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3520: (p_project_id => p_project_id,

Line 3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3513: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3520: (p_project_id => p_project_id,
3521: p_cost_budget_version_id => p_budget_version_id,

Line 3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3514: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3520: (p_project_id => p_project_id,
3521: p_cost_budget_version_id => p_budget_version_id,
3522: p_rev_budget_version_id => l_compl_budget_version_id,

Line 3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3515: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3516: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3517: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3518: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3519: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3520: (p_project_id => p_project_id,
3521: p_cost_budget_version_id => p_budget_version_id,
3522: p_rev_budget_version_id => l_compl_budget_version_id,
3523: x_return_status => l_return_status,

Line 3528: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1600: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, BUT did not pass period profiles test', 1);

3524: x_msg_count => l_msg_count,
3525: x_msg_data => l_msg_data);
3526: else
3527: -- period_profiles don't match; process only the COST version
3528: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1600: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, BUT did not pass period profiles test', 1);
3529: --hr_utility.trace('found compl for baselined cost BUT no period profile match');
3530: l_diff_pd_profile_flag := 'Y';
3531: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3532: select version_number,

Line 3531: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3527: -- period_profiles don't match; process only the COST version
3528: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1600: pref=COST_AND_REV_SEP, BASELINED, COST - found complement, BUT did not pass period profiles test', 1);
3529: --hr_utility.trace('found compl for baselined cost BUT no period profile match');
3530: l_diff_pd_profile_flag := 'Y';
3531: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3532: select version_number,
3533: version_name
3534: into l_cost_version_number,
3535: l_cost_version_name

Line 3540: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3536: from pa_budget_versions
3537: where budget_version_id = p_budget_version_id;
3538: l_rev_version_number := null;
3539: l_rev_version_name := ' ';
3540: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3541: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3542: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3543: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3544: (p_project_id => p_project_id,

Line 3541: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3537: where budget_version_id = p_budget_version_id;
3538: l_rev_version_number := null;
3539: l_rev_version_name := ' ';
3540: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3541: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3542: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3543: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3544: (p_project_id => p_project_id,
3545: p_budget_version_id => p_budget_version_id,

Line 3542: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3538: l_rev_version_number := null;
3539: l_rev_version_name := ' ';
3540: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3541: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3542: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3543: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3544: (p_project_id => p_project_id,
3545: p_budget_version_id => p_budget_version_id,
3546: p_cost_or_rev => 'C',

Line 3543: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3539: l_rev_version_name := ' ';
3540: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3541: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3542: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3543: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3544: (p_project_id => p_project_id,
3545: p_budget_version_id => p_budget_version_id,
3546: p_cost_or_rev => 'C',
3547: x_return_status => l_return_status,

Line 3552: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

3548: x_msg_count => l_msg_count,
3549: x_msg_data => l_msg_data);
3550: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3551: * ERROR MESSAGE HANDLING HERE
3552: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3553: select version_number,
3554: version_name
3555: into l_cost_version_number,
3556: l_cost_version_name

Line 3561: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3557: from pa_budget_versions
3558: where budget_version_id = p_budget_version_id;
3559: l_rev_version_number := null;
3560: l_rev_version_name := ' ';
3561: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3562: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3563: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3564: (p_project_id => p_project_id,
3565: p_budget_version_id => p_budget_version_id,

Line 3562: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3558: where budget_version_id = p_budget_version_id;
3559: l_rev_version_number := null;
3560: l_rev_version_name := ' ';
3561: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3562: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3563: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3564: (p_project_id => p_project_id,
3565: p_budget_version_id => p_budget_version_id,
3566: p_cost_or_rev => 'C',

Line 3563: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3559: l_rev_version_number := null;
3560: l_rev_version_name := ' ';
3561: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3562: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3563: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3564: (p_project_id => p_project_id,
3565: p_budget_version_id => p_budget_version_id,
3566: p_cost_or_rev => 'C',
3567: x_return_status => l_return_status,

Line 3576: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1700: pref=COST_AND_REV_SEP, BASELINED, REVENUE', 1);

3572: end if; -- l_compl_budget_version_id is null
3573:
3574: else
3575: -- we have the REVENUE version, so look for COST version with 'COST_AND_REV_SEP'
3576: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1700: pref=COST_AND_REV_SEP, BASELINED, REVENUE', 1);
3577: --hr_utility.trace('we have a baselined revenue version');
3578: open l_compl_crsep_r_b_csr;
3579: fetch l_compl_crsep_r_b_csr into l_compl_crsep_r_b_rec;
3580: if l_compl_crsep_r_b_csr%NOTFOUND then

Line 3590: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1800: pref=COST_AND_REV_SEP, BASELINED, REVENUE - did not find complement', 1);

3586: end if; -- l_compl_crsep_r_b_csr: no data found
3587: close l_compl_crsep_r_b_csr;
3588: if l_compl_budget_version_id = -99 then
3589: -- did not find a compl for the REVENUE version; just process REVENUE version
3590: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1800: pref=COST_AND_REV_SEP, BASELINED, REVENUE - did not find complement', 1);
3591: --hr_utility.trace('we have a baselined revenue version');
3592: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3593: select version_number,
3594: version_name

Line 3592: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3588: if l_compl_budget_version_id = -99 then
3589: -- did not find a compl for the REVENUE version; just process REVENUE version
3590: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1800: pref=COST_AND_REV_SEP, BASELINED, REVENUE - did not find complement', 1);
3591: --hr_utility.trace('we have a baselined revenue version');
3592: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3593: select version_number,
3594: version_name
3595: into l_rev_version_number,
3596: l_rev_version_name

Line 3601: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3597: from pa_budget_versions
3598: where budget_version_id = p_budget_version_id;
3599: l_cost_version_number := null;
3600: l_cost_version_name := ' ';
3601: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3602: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3603: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3604: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3605: (p_project_id => p_project_id,

Line 3602: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3598: where budget_version_id = p_budget_version_id;
3599: l_cost_version_number := null;
3600: l_cost_version_name := ' ';
3601: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3602: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3603: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3604: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3605: (p_project_id => p_project_id,
3606: p_budget_version_id => p_budget_version_id,

Line 3603: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3599: l_cost_version_number := null;
3600: l_cost_version_name := ' ';
3601: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3602: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3603: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3604: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3605: (p_project_id => p_project_id,
3606: p_budget_version_id => p_budget_version_id,
3607: p_cost_or_rev => 'R',

Line 3604: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3600: l_cost_version_name := ' ';
3601: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3602: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3603: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3604: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3605: (p_project_id => p_project_id,
3606: p_budget_version_id => p_budget_version_id,
3607: p_cost_or_rev => 'R',
3608: x_return_status => l_return_status,

Line 3624: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then

3620: where budget_version_id = l_compl_budget_version_id;
3621: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3622: (p_period_profile_id1 => l_period_profile_id1,
3623: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3624: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3625: --merge the COST and REVENUE versions
3626: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1900: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, and passed period profiles test', 1);
3627: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3628: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3626: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1900: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, and passed period profiles test', 1);

3622: (p_period_profile_id1 => l_period_profile_id1,
3623: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3624: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3625: --merge the COST and REVENUE versions
3626: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1900: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, and passed period profiles test', 1);
3627: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3628: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3629: select version_number,
3630: version_name

Line 3628: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3624: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3625: --merge the COST and REVENUE versions
3626: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1900: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, and passed period profiles test', 1);
3627: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3628: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3629: select version_number,
3630: version_name
3631: into l_rev_version_number,
3632: l_rev_version_name

Line 3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;

3637: into l_cost_version_number,
3638: l_cost_version_name
3639: from pa_budget_versions
3640: where budget_version_id = l_compl_budget_version_id;
3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3638: l_cost_version_name
3639: from pa_budget_versions
3640: where budget_version_id = l_compl_budget_version_id;
3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3639: from pa_budget_versions
3640: where budget_version_id = l_compl_budget_version_id;
3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3640: where budget_version_id = l_compl_budget_version_id;
3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3648: (p_project_id => p_project_id,

Line 3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3641: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3648: (p_project_id => p_project_id,
3649: p_cost_budget_version_id => l_compl_budget_version_id,

Line 3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3642: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3648: (p_project_id => p_project_id,
3649: p_cost_budget_version_id => l_compl_budget_version_id,
3650: p_rev_budget_version_id => p_budget_version_id,

Line 3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3643: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3644: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3645: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3646: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3647: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3648: (p_project_id => p_project_id,
3649: p_cost_budget_version_id => l_compl_budget_version_id,
3650: p_rev_budget_version_id => p_budget_version_id,
3651: x_return_status => l_return_status,

Line 3656: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '2000: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, BUT did not pass period profiles test', 1);

3652: x_msg_count => l_msg_count,
3653: x_msg_data => l_msg_data);
3654: else
3655: -- period profiles not compatible; just process REVENUE version
3656: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '2000: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, BUT did not pass period profiles test', 1);
3657: --hr_utility.trace('found compl for baselined revenue version BUT no per profile match');
3658: l_diff_pd_profile_flag := 'Y';
3659: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3660: select version_number,

Line 3659: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3655: -- period profiles not compatible; just process REVENUE version
3656: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '2000: pref=COST_AND_REV_SEP, BASELINED, REVENUE - found complement, BUT did not pass period profiles test', 1);
3657: --hr_utility.trace('found compl for baselined revenue version BUT no per profile match');
3658: l_diff_pd_profile_flag := 'Y';
3659: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3660: select version_number,
3661: version_name
3662: into l_rev_version_number,
3663: l_rev_version_name

Line 3668: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3664: from pa_budget_versions
3665: where budget_version_id = p_budget_version_id;
3666: l_cost_version_number := null;
3667: l_cost_version_name := ' ';
3668: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3669: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3670: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3671: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3672: (p_project_id => p_project_id,

Line 3669: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3665: where budget_version_id = p_budget_version_id;
3666: l_cost_version_number := null;
3667: l_cost_version_name := ' ';
3668: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3669: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3670: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3671: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3672: (p_project_id => p_project_id,
3673: p_budget_version_id => p_budget_version_id,

Line 3670: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3666: l_cost_version_number := null;
3667: l_cost_version_name := ' ';
3668: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3669: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3670: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3671: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3672: (p_project_id => p_project_id,
3673: p_budget_version_id => p_budget_version_id,
3674: p_cost_or_rev => 'R',

Line 3671: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3667: l_cost_version_name := ' ';
3668: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3669: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3670: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3671: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3672: (p_project_id => p_project_id,
3673: p_budget_version_id => p_budget_version_id,
3674: p_cost_or_rev => 'R',
3675: x_return_status => l_return_status,

Line 3680: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

3676: x_msg_count => l_msg_count,
3677: x_msg_data => l_msg_data);
3678: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3679: * ERROR MESSAGE HANDLING HERE
3680: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3681: select version_number,
3682: version_name
3683: into l_rev_version_number,
3684: l_rev_version_name

Line 3689: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3685: from pa_budget_versions
3686: where budget_version_id = p_budget_version_id;
3687: l_cost_version_number := -1;
3688: l_cost_version_name := ' ';
3689: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3690: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3691: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3692: (p_project_id => p_project_id,
3693: p_budget_version_id => p_budget_version_id,

Line 3690: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3686: where budget_version_id = p_budget_version_id;
3687: l_cost_version_number := -1;
3688: l_cost_version_name := ' ';
3689: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3690: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3691: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3692: (p_project_id => p_project_id,
3693: p_budget_version_id => p_budget_version_id,
3694: p_cost_or_rev => 'R',

Line 3691: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3687: l_cost_version_number := -1;
3688: l_cost_version_name := ' ';
3689: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3690: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3691: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3692: (p_project_id => p_project_id,
3693: p_budget_version_id => p_budget_version_id,
3694: p_cost_or_rev => 'R',
3695: x_return_status => l_return_status,

Line 3720: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

3716: rollback to VIEW_PLAN_TEMP_TABLES;
3717: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3718: x_msg_count := 1;
3719: x_msg_data := SQLERRM;
3720: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
3721: p_procedure_name => 'view_plan_temp_tables');
3722: pa_debug.reset_err_stack;
3723: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3724:

Line 3791: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,

3787: (ra.project_id,
3788: ra.budget_version_id,
3789: ra.task_id,
3790: ra.resource_list_member_id) as element_level, -- element_level
3791: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3792: 'REVENUE', 0,
3793: -- ra.total_utilization_hours) as labor_hours,
3794: ra.total_plan_quantity) as labor_hours,
3795: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

Line 3795: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3791: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3792: 'REVENUE', 0,
3793: -- ra.total_utilization_hours) as labor_hours,
3794: ra.total_plan_quantity) as labor_hours,
3795: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3796: 'PROJ', ra.total_project_burdened_cost,
3797: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
3798: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3799: 'PROJ', ra.total_project_raw_cost,

Line 3798: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3794: ra.total_plan_quantity) as labor_hours,
3795: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3796: 'PROJ', ra.total_project_burdened_cost,
3797: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
3798: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3799: 'PROJ', ra.total_project_raw_cost,
3800: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
3801: 0 as revenue, -- revenue
3802: 0 as margin, -- margin

Line 3842: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,

3838: (ra.project_id,
3839: ra.budget_version_id,
3840: ra.task_id,
3841: ra.resource_list_member_id) as element_level, -- element_level
3842: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3843: -- 'REVENUE', ra.total_utilization_hours,
3844: 'REVENUE', ra.total_plan_quantity,
3845: 0) as labor_hours, -- labor_hrs: 0 if not reported from this COST/REVENUE version
3846: 0 as burdened_cost, -- burdened_cost

Line 3848: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3844: 'REVENUE', ra.total_plan_quantity,
3845: 0) as labor_hours, -- labor_hrs: 0 if not reported from this COST/REVENUE version
3846: 0 as burdened_cost, -- burdened_cost
3847: 0 as raw_cost, -- raw_cost
3848: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3849: 'PROJ', ra.total_project_revenue,
3850: ra.total_plan_revenue) as revenue, -- revenue
3851: 0 as margin, -- margin: leave this null until we visit the row again
3852: 0 as margin_percent, -- margin_percent: leave this null until we visit the row again

Line 3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;

3871: bl.resource_assignment_id = ra.resource_assignment_id)) or
3872: ra.resource_assignment_type = 'ROLLED_UP');
3873:
3874: /* COST budget version: PL/SQL tables */
3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;

3872: ra.resource_assignment_type = 'ROLLED_UP');
3873:
3874: /* COST budget version: PL/SQL tables */
3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3873:
3874: /* COST budget version: PL/SQL tables */
3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3874: /* COST budget version: PL/SQL tables */
3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3875: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3876: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3877: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;

3878: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;

3879: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

3880: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;

Line 3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

3881: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

3882: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;

3883: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;

3884: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

3885: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3886: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;

3887: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:

Line 3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3888: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:
3896: /* REVENUE budget version: PL/SQL tables */

Line 3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3889: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:
3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3890: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3891: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3892: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:
3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;

3893: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:
3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;

3894: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3895:
3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3895:
3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3896: /* REVENUE budget version: PL/SQL tables */
3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3897: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3898: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3899: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;

3900: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;

3901: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

3902: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;

Line 3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

3903: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

3904: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;

3905: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;

3906: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

3907: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3908: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;

3909: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:

Line 3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3910: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:
3918: /* PL/SQL table for PERIODS VIEW */

Line 3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3911: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:
3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3912: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3913: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3914: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:
3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

3915: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:
3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

3916: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3917:
3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3917:
3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3918: /* PL/SQL table for PERIODS VIEW */
3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3919: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3920: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3921: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3922: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

3923: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

3924: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3925: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

3926: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3927: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

3928: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

3929: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

3930: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

3931: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

3932: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

3933: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

3934: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

3935: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

3936: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

3937: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

3938: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

3939: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

3940: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

3941: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

3942: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

3943: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

3944: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

3945: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3953: -- local debugging variables

Line 3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

3946: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3953: -- local debugging variables
3954: l_err_stage NUMBER(15);

Line 3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3947: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3953: -- local debugging variables
3954: l_err_stage NUMBER(15);
3955:

Line 3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;

3948: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3949: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3950: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3951: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3952: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3953: -- local debugging variables
3954: l_err_stage NUMBER(15);
3955:
3956: -- Bug 13907149

Line 3978: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '100: entering procedure', 2);

3974: -- Bug 13907149
3975:
3976:
3977: begin
3978: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '100: entering procedure', 2);
3979: l_err_stage := 100;
3980: --hr_utility.trace('entered pa_fp_vp_pop_tables_separate');
3981: x_return_status := FND_API.G_RET_STS_SUCCESS;
3982: x_msg_count := 0;

Line 3986: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3982: x_msg_count := 0;
3983: SAVEPOINT VIEW_PLANS_POP_TABLES_SEP;
3984:
3985: -- used to query pa_proj_periods_denorm table
3986: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3987: 'PROJFUNC', 'PROJ_FUNCTIONAL',
3988: 'PROJ', 'PROJECT',
3989: 'TRANSACTION')
3990: into l_currency_type

Line 3993: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;

3989: 'TRANSACTION')
3990: into l_currency_type
3991: from dual;
3992:
3993: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3994: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3995: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3996: l_err_stage := 200;
3997: -- this is for populating PERIODS PL/SQL table

Line 3994: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;

3990: into l_currency_type
3991: from dual;
3992:
3993: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3994: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3995: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3996: l_err_stage := 200;
3997: -- this is for populating PERIODS PL/SQL table
3998: l_row_number := 0;

Line 3995: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

3991: from dual;
3992:
3993: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3994: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3995: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3996: l_err_stage := 200;
3997: -- this is for populating PERIODS PL/SQL table
3998: l_row_number := 0;
3999: select NVL(po.report_labor_hrs_from_code, 'COST'),

Line 4000: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

3996: l_err_stage := 200;
3997: -- this is for populating PERIODS PL/SQL table
3998: l_row_number := 0;
3999: select NVL(po.report_labor_hrs_from_code, 'COST'),
4000: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
4001: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
4002: -- po.default_amount_type_code,
4003: -- po.default_amount_subtype_code
4004: bv.period_profile_id

Line 4001: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

3997: -- this is for populating PERIODS PL/SQL table
3998: l_row_number := 0;
3999: select NVL(po.report_labor_hrs_from_code, 'COST'),
4000: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
4001: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
4002: -- po.default_amount_type_code,
4003: -- po.default_amount_subtype_code
4004: bv.period_profile_id
4005: into l_report_labor_hrs_from_code,

Line 4016: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '200: periodprofileid= ' || l_period_profile_id, 1);

4012: bv.fin_plan_type_id = po.fin_plan_type_id and
4013: po.project_id = p_project_id and
4014: po.fin_plan_option_level_code = 'PLAN_TYPE';
4015: l_err_stage := 300;
4016: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '200: periodprofileid= ' || l_period_profile_id, 1);
4017: -- insert all cost rows into the COST PL/SQL table
4018: open av_cost_csr;
4019: fetch av_cost_csr bulk collect into
4020: l_c_project_id,

Line 4065: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '300: bulk collected into pl/sql tables', 1);

4061: l_r_parent_element_name,
4062: l_r_unit_of_measure;
4063: close av_revenue_csr;
4064: l_err_stage := 500;
4065: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '300: bulk collected into pl/sql tables', 1);
4066:
4067: -- Bug Fix for Bug#13907149
4068:
4069: l_loop_count := nvl(l_c_project_id.last,-1);

Line 4107: pa_fp_view_plans_pub.has_child_rows

4103: (l_c_project_id(1),
4104: 0,
4105: 0) ,
4106: l_c_unit_of_measure(1),
4107: pa_fp_view_plans_pub.has_child_rows
4108: (l_c_project_id(1),
4109: l_c_cost_budget_version_id(1),
4110: -1,
4111: 0,

Line 4200: pa_fp_view_plans_pub.has_child_rows

4196: (l_c_project_id(i),
4197: task_rec.task_id,
4198: 0) ,
4199: l_c_unit_of_measure(i),
4200: pa_fp_view_plans_pub.has_child_rows
4201: (l_c_project_id(i),
4202: l_c_cost_budget_version_id(i),
4203: -1,
4204: task_rec.task_id,

Line 4275: pa_fp_view_plans_pub.has_child_rows

4271: (l_r_project_id(1),
4272: 0,
4273: 0) ,
4274: l_r_unit_of_measure(1),
4275: pa_fp_view_plans_pub.has_child_rows
4276: (l_r_project_id(1),
4277: l_r_cost_budget_version_id(1),
4278: -1,
4279: 0,

Line 4370: pa_fp_view_plans_pub.has_child_rows

4366: (l_r_project_id(i),
4367: task_rec.task_id,
4368: 0) ,
4369: l_r_unit_of_measure(i),
4370: pa_fp_view_plans_pub.has_child_rows
4371: (l_r_project_id(i),
4372: l_r_cost_budget_version_id(i),
4373: -1,
4374: task_rec.task_id,

Line 4421: (l_r_resource_list_member_id(j) = 0 and l_c_resource_list_member_id(i) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id) or

4417: if (l_r_project_id(j) = l_c_project_id(i)) and
4418: (l_r_task_id(j) = l_c_task_id(i)) and
4419: -- (l_r_revenue_res_assignment_id(j) = l_c_cost_res_assignment_id(i)) and
4420: ((l_r_resource_list_member_id(j) = l_c_resource_list_member_id(i)) or
4421: (l_r_resource_list_member_id(j) = 0 and l_c_resource_list_member_id(i) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id) or
4422: (l_r_resource_list_member_id(j) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and l_c_resource_list_member_id(i) = 0)) then
4423: -- a match has been found: add data from REVENUE PL/SQL to the COST PL/SQL table
4424: --hr_utility.trace('FOUND MATCH');
4425: --hr_utility.trace('cost res assid= ' || to_char(l_c_cost_res_assignment_id(i)));

Line 4422: (l_r_resource_list_member_id(j) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and l_c_resource_list_member_id(i) = 0)) then

4418: (l_r_task_id(j) = l_c_task_id(i)) and
4419: -- (l_r_revenue_res_assignment_id(j) = l_c_cost_res_assignment_id(i)) and
4420: ((l_r_resource_list_member_id(j) = l_c_resource_list_member_id(i)) or
4421: (l_r_resource_list_member_id(j) = 0 and l_c_resource_list_member_id(i) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id) or
4422: (l_r_resource_list_member_id(j) = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and l_c_resource_list_member_id(i) = 0)) then
4423: -- a match has been found: add data from REVENUE PL/SQL to the COST PL/SQL table
4424: --hr_utility.trace('FOUND MATCH');
4425: --hr_utility.trace('cost res assid= ' || to_char(l_c_cost_res_assignment_id(i)));
4426: --hr_utility.trace('rev res assid= ' || to_char(l_r_revenue_res_assignment_id(j)));

Line 4431: if (pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'R') or (l_c_burdened_cost(i) is null) then

4427: l_found_complement := true;
4428: l_c_revenue_budget_version_id(i) := l_r_revenue_budget_version_id(j);
4429: l_c_revenue_res_assignment_id(i) := l_r_revenue_res_assignment_id(j);
4430: l_c_revenue(i) := l_r_revenue(j);
4431: if (pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'R') or (l_c_burdened_cost(i) is null) then
4432: l_c_margin(i) := l_c_revenue(i) - l_c_raw_cost(i);
4433: else
4434: l_c_margin(i) := l_c_revenue(i) - l_c_burdened_cost(i);
4435: end if; -- burdened_cost is null

Line 4443: if pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM = 'REVENUE' then

4439: else
4440: l_c_margin_percent(i) := l_c_margin(i) / l_c_revenue(i);
4441: end if;
4442:
4443: if pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM = 'REVENUE' then
4444: l_c_labor_hours(i) := l_r_labor_hours(j);
4445: else
4446: l_c_labor_hours(i) := l_c_labor_hours(i);
4447: end if;

Line 4449: pa_fp_view_plans_pub.has_child_rows

4445: else
4446: l_c_labor_hours(i) := l_c_labor_hours(i);
4447: end if;
4448: l_c_has_child_element(i) :=
4449: pa_fp_view_plans_pub.has_child_rows
4450: (l_c_project_id(i),
4451: l_c_cost_budget_version_id(i),
4452: l_c_revenue_budget_version_id(i),
4453: l_c_task_id(i),

Line 4461: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

4457:
4458: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
4459: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
4460: /* 11/12/2002 --> check to see if flag = 'Y' before creating row */
4461: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
4462: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
4463: -- start with the COST version as the source
4464: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4465:

Line 4462: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

4458: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
4459: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
4460: /* 11/12/2002 --> check to see if flag = 'Y' before creating row */
4461: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
4462: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
4463: -- start with the COST version as the source
4464: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4465:
4466: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code

Line 4468: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

4464: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4465:
4466: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
4467: if l_report_labor_hrs_from_code = 'COST' then
4468: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
4469: --hr_utility.trace('adding QUANTITY row');
4470: l_row_number := l_row_number + 1; -- increment row counter
4471: l_pd_project_id(l_row_number) := l_c_project_id(i);
4472: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 4608: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

4604: l_pd_project_total(l_row_number) := l_c_labor_hours(i); -- bug 2699651
4605: end if; -- display_flag: QUANTITY
4606: end if; -- QUANTITY
4607:
4608: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
4609: --hr_utility.trace('adding BURDENED COST row');
4610: -- process the BURDENED_COST row from the COST version
4611: l_row_number := l_row_number + 1; -- increment row counter
4612: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM

Line 4613: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then

4609: --hr_utility.trace('adding BURDENED COST row');
4610: -- process the BURDENED_COST row from the COST version
4611: l_row_number := l_row_number + 1; -- increment row counter
4612: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
4613: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then
4614: l_cost_row_number := l_row_number;
4615: end if;
4616: /*
4617: if l_c_burdened_cost(i) is not null then

Line 4771: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

4767: p_period_number => 14);
4768: l_pd_project_total(l_row_number) := l_c_burdened_cost(i); -- bug 2699651
4769: end if; -- display_flag: BURDENED_COST
4770:
4771: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
4772: --hr_utility.trace('adding RAW COST row');
4773: -- process the RAW_COST row from the COST version
4774: l_row_number := l_row_number + 1; -- increment row counter
4775: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM

Line 4776: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then

4772: --hr_utility.trace('adding RAW COST row');
4773: -- process the RAW_COST row from the COST version
4774: l_row_number := l_row_number + 1; -- increment row counter
4775: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
4776: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then
4777: l_cost_row_number := l_row_number;
4778: end if;
4779: /*
4780: if l_c_burdened_cost(i) is null then

Line 4938: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

4934: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(j);
4935: -- process the UTILIZATION row based on the value of l_report_labor_hrs_from_code
4936: if l_report_labor_hrs_from_code = 'REVENUE' then
4937:
4938: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
4939: l_row_number := l_row_number + 1; -- increment row counter
4940: l_pd_project_id(l_row_number) := l_r_project_id(j);
4941: l_pd_task_id(l_row_number) := l_r_task_id(j);
4942: l_pd_resource_list_member_id(l_row_number) := l_r_resource_list_member_id(j);

Line 5082: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

5078: l_pd_project_total(l_row_number) := l_r_labor_hours(j); -- bug 2699651
5079: end if; --display_flag: QUANTITY
5080: end if; -- QUANTITY
5081:
5082: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
5083: --hr_utility.trace('adding REVENUE row');
5084: -- process the REVENUE row for this REVENUE version
5085: l_row_number := l_row_number + 1; -- increment row counter
5086: l_revenue_row_number := l_row_number; -- used when calculating margin, margin_percent

Line 5221: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

5217: p_period_number => 14);
5218: l_pd_project_total(l_row_number) := l_r_revenue(j); -- bug 2699651
5219: end if; -- display_flag: REVENUE
5220:
5221: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
5222: --hr_utility.trace('adding MARGIN row');
5223: -- finally, insert the MARGIN and MARGIN_PERCENT rows
5224: -- MARGIN row
5225: l_row_number := l_row_number + 1; -- increment row counter

Line 5271: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

5267: l_pd_succeeding(l_row_number) := l_pd_succeeding(l_revenue_row_number)-l_pd_succeeding(l_cost_row_number);
5268: l_pd_project_total(l_row_number) := l_pd_project_total(l_revenue_row_number)-l_pd_project_total(l_cost_row_number); -- bug 2699651
5269: end if; -- display_flag: MARGIN
5270:
5271: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
5272: --hr_utility.trace('adding MARGIN PERCENT row');
5273: -- MARGIN_PERCENT
5274: l_row_number := l_row_number + 1; -- increment row counter
5275: l_pd_project_id(l_row_number) := l_c_project_id(i);

Line 5319: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

5315: l_pd_preceding(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_preceding(l_cost_row_number),l_pd_preceding(l_revenue_row_number));
5316: l_pd_succeeding(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_succeeding(l_cost_row_number),l_pd_succeeding(l_revenue_row_number));
5317: l_pd_project_total(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_project_total(l_cost_row_number),l_pd_project_total(l_revenue_row_number)); -- bug 2699651
5318: end if; -- display_flag: MARGIN PERCENT
5319: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
5320: /*
5321: l_r_project_id.delete(j);
5322: l_r_task_id.delete(j);
5323: l_r_resource_list_member_id.delete(j);

Line 5394: pa_fp_view_plans_pub.has_child_rows

5390: l_c_revenue(i) := 0;
5391: l_c_margin(i) := 0;
5392: l_c_margin_percent(i) := 0;
5393: l_c_has_child_element(i) :=
5394: pa_fp_view_plans_pub.has_child_rows
5395: (l_c_project_id(i),
5396: l_c_cost_budget_version_id(i),
5397: -1,
5398: l_c_task_id(i),

Line 5405: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

5401: 'A');
5402: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
5403: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
5404: /* 11/12/2002: populate the rows only if flag = 'Y' */
5405: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
5406: -- use the COST version as the source for COST row
5407: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
5408: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
5409: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

Line 5408: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

5404: /* 11/12/2002: populate the rows only if flag = 'Y' */
5405: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
5406: -- use the COST version as the source for COST row
5407: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
5408: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
5409: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
5410: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
5411: if l_report_labor_hrs_from_code = 'COST' then
5412: l_row_number := l_row_number + 1; -- increment row counter

Line 5409: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

5405: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
5406: -- use the COST version as the source for COST row
5407: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
5408: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
5409: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
5410: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
5411: if l_report_labor_hrs_from_code = 'COST' then
5412: l_row_number := l_row_number + 1; -- increment row counter
5413: l_pd_project_id(l_row_number) := l_c_project_id(i);

Line 5594: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

5590: l_pd_project_total(l_row_number) := null; -- bug 2699651
5591: end if; -- QUANTITY
5592: end if; -- display_flag: QUANTITY
5593:
5594: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
5595: -- process the BURDENED_COST row for this COST version
5596: l_row_number := l_row_number + 1; -- increment row counter
5597: l_pd_project_id(l_row_number) := l_c_project_id(i);
5598: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5732: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

5728: p_period_number => 14);
5729: l_pd_project_total(l_row_number) := l_c_burdened_cost(i); -- bug 2699651
5730: end if; -- display_flag: BURDENED_COST
5731:
5732: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
5733: -- process the RAW_COST row for this COST version
5734: l_row_number := l_row_number + 1; -- increment row counter
5735: l_pd_project_id(l_row_number) := l_c_project_id(i);
5736: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5869: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

5865: p_period_number => 14);
5866: l_pd_project_total(l_row_number) := l_c_raw_cost(i); -- bug 2699651
5867: end if; -- display_flag: RAW COST
5868:
5869: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
5870: -- insert (0'S) for REVENUE row
5871: l_row_number := l_row_number + 1; -- increment row counter
5872: l_pd_project_id(l_row_number) := l_c_project_id(i);
5873: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5917: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

5913: l_pd_succeeding(l_row_number) := null;
5914: l_pd_project_total(l_row_number) := null; -- bug 2699651
5915: end if; -- display_flag: REVENUE
5916:
5917: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
5918: -- insert (0's) for MARGIN row
5919: l_row_number := l_row_number + 1; -- increment row counter
5920: l_pd_project_id(l_row_number) := l_c_project_id(i);
5921: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5965: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

5961: l_pd_succeeding(l_row_number) := null;
5962: l_pd_project_total(l_row_number) := null; -- bug 2699651
5963: end if; -- display_flag: MARGIN
5964:
5965: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
5966: -- insert (0'S) for MARGIN_PERCENT row
5967: l_row_number := l_row_number + 1; -- increment row counter
5968: l_pd_project_id(l_row_number) := l_c_project_id(i);
5969: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 6012: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6008: l_pd_preceding(l_row_number) := null;
6009: l_pd_succeeding(l_row_number) := null;
6010: l_pd_project_total(l_row_number) := null; -- bug 2699651
6011: end if; -- display_flag: MARGIN PERCENT
6012: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6013: end if; -- not found_complement
6014: end loop; -- COST PL/SQL loop
6015: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);
6016: l_err_stage := 600;

Line 6015: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);

6011: end if; -- display_flag: MARGIN PERCENT
6012: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6013: end if; -- not found_complement
6014: end loop; -- COST PL/SQL loop
6015: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);
6016: l_err_stage := 600;
6017: -- after looping through the COST PL/SQL table, iterate through the REVENUE PL/SQL
6018: -- table, and copy over the untouched rows for PERIOD PL/SQL table
6019: for k in nvl(l_r_project_id.first,0)..nvl(l_r_project_id.last,-1) loop

Line 6024: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

6020:
6021: -- copy over the REVENUE PL/SQL rows into PERIODS PL/SQL table, padding cost #'s with 0's
6022: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(k);
6023:
6024: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6025: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
6026: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
6027: if l_report_labor_hrs_from_code = 'REVENUE' then
6028: l_row_number := l_row_number + 1; -- increment row counter

Line 6025: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

6021: -- copy over the REVENUE PL/SQL rows into PERIODS PL/SQL table, padding cost #'s with 0's
6022: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(k);
6023:
6024: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6025: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
6026: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
6027: if l_report_labor_hrs_from_code = 'REVENUE' then
6028: l_row_number := l_row_number + 1; -- increment row counter
6029: l_pd_project_id(l_row_number) := l_r_project_id(k);

Line 6210: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

6206: l_pd_project_total(l_row_number) := null; -- bug 2699651
6207: end if; -- QUANTITY
6208: end if; -- display_flag: QUANTITY
6209:
6210: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
6211: -- process the REVENUE row for this REVENUE version
6212: l_row_number := l_row_number + 1; -- increment row counter
6213: l_pd_project_id(l_row_number) := l_r_project_id(k);
6214: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6347: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

6343: p_period_number => 14);
6344: l_pd_project_total(l_row_number) := l_r_revenue(k); -- bug 2699651
6345: end if; -- display_flag: REVENUE
6346:
6347: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
6348: -- insert (0'S) for BURDENED_COST row
6349: l_row_number := l_row_number + 1; -- increment row counter
6350: l_pd_project_id(l_row_number) := l_r_project_id(k);
6351: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6395: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

6391: l_pd_succeeding(l_row_number) := null;
6392: l_pd_project_total(l_row_number) := null; -- bug 2699651
6393: end if; -- display_flag: BURDENED COST
6394:
6395: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
6396: -- insert (0'S) for RAW_COST row
6397: l_row_number := l_row_number + 1; -- increment row counter
6398: l_pd_project_id(l_row_number) := l_r_project_id(k);
6399: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6443: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

6439: l_pd_succeeding(l_row_number) := null;
6440: l_pd_project_total(l_row_number) := null; -- bug 2699651
6441: end if; -- display_flag: RAW COST
6442:
6443: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
6444: -- insert (0'S) for MARGIN row
6445: l_row_number := l_row_number + 1; -- increment row counter
6446: l_pd_project_id(l_row_number) := l_r_project_id(k);
6447: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6491: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

6487: l_pd_succeeding(l_row_number) := null;
6488: l_pd_project_total(l_row_number) := null; -- bug 2699651
6489: end if; -- display_flag: MARGIN
6490:
6491: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
6492: -- insert (0'S) for MARGIN_PERCENT row
6493: l_row_number := l_row_number + 1; -- increment row counter
6494: l_pd_project_id(l_row_number) := l_r_project_id(k);
6495: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6538: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6534: l_pd_preceding(l_row_number) := null;
6535: l_pd_succeeding(l_row_number) := null;
6536: l_pd_project_total(l_row_number) := null; -- bug 2699651
6537: end if; -- display_flag: MARGIN PERCENT
6538: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6539: end loop; -- REVENUE PL/SQL loop: the untouched rows
6540: l_err_stage := 700;
6541: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);
6542:

Line 6541: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);

6537: end if; -- display_flag: MARGIN PERCENT
6538: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6539: end loop; -- REVENUE PL/SQL loop: the untouched rows
6540: l_err_stage := 700;
6541: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);
6542:
6543: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
6544:
6545: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP from the

Line 6549: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

6545: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP from the
6546: -- COST PL/SQL table
6547: -- rows in the COST PL/SQL table
6548:
6549: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
6550: forall x in nvl(l_c_project_id.first,0)..nvl(l_c_project_id.last,-1)
6551: insert into pa_fin_vp_amts_view_tmp
6552: (project_id,
6553: task_id,

Line 6591: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '600: transfer from cost pl/sql table to amts_tmp table', 1);

6587: -1,
6588: l_c_unit_of_measure(x),
6589: l_c_has_child_element(x));
6590: l_err_stage := 800;
6591: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '600: transfer from cost pl/sql table to amts_tmp table', 1);
6592: -- rows in the REVENUE PL/SQL table
6593: forall y in nvl(l_r_project_id.first,0)..nvl(l_r_project_id.last,-1)
6594: insert into pa_fin_vp_amts_view_tmp
6595: (project_id,

Line 6633: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

6629: l_r_revenue_res_assignment_id(y),
6630: -1,
6631: l_r_unit_of_measure(y),
6632: 'Y'); -- PERFORMANCE LIABILITY: FOR UNMARRIED REVENUE ROWS, WE SAY ALWAYS HAVE CHILD
6633: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
6634: l_err_stage := 900;
6635: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from rev pl/sql table to amts_tmp table', 1);
6636: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6637: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the

Line 6635: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from rev pl/sql table to amts_tmp table', 1);

6631: l_r_unit_of_measure(y),
6632: 'Y'); -- PERFORMANCE LIABILITY: FOR UNMARRIED REVENUE ROWS, WE SAY ALWAYS HAVE CHILD
6633: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
6634: l_err_stage := 900;
6635: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from rev pl/sql table to amts_tmp table', 1);
6636: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6637: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
6638: -- PERIODS PL/SQL table
6639: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 6639: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

6635: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from rev pl/sql table to amts_tmp table', 1);
6636: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6637: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
6638: -- PERIODS PL/SQL table
6639: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6640: --hr_utility.trace('inserting into pa_fin_vp_pds_view_tmp for POP_TEM_TABLES_SEP');
6641: --hr_utility.trace('l_pd_project_id.last= ' || to_char(l_pd_project_id.last));
6642: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
6643: insert into pa_fin_vp_pds_view_tmp

Line 6814: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6810: end if;
6811: end loop;
6812:
6813: -- Bug Fix for bug#13907149 Ends
6814: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6815: l_err_stage:= 1000;
6816: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from pds pl/sql table to pds_tmp table', 1);
6817: commit;
6818: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);

Line 6816: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from pds pl/sql table to pds_tmp table', 1);

6812:
6813: -- Bug Fix for bug#13907149 Ends
6814: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6815: l_err_stage:= 1000;
6816: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from pds pl/sql table to pds_tmp table', 1);
6817: commit;
6818: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);
6819: EXCEPTION
6820: when others then

Line 6818: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);

6814: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6815: l_err_stage:= 1000;
6816: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '700: transfer from pds pl/sql table to pds_tmp table', 1);
6817: commit;
6818: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);
6819: EXCEPTION
6820: when others then
6821: rollback to VIEW_PLANS_POP_TABLES_SEP;
6822: --hr_utility.trace('error stage= ' || to_char(l_err_stage));

Line 6826: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

6822: --hr_utility.trace('error stage= ' || to_char(l_err_stage));
6823: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6824: x_msg_count := 1;
6825: x_msg_data := SQLERRM;
6826: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
6827: p_procedure_name => 'pa_fp_vp_pop_tables_separate');
6828: pa_debug.reset_err_stack;
6829: return;
6830: end pa_fp_vp_pop_tables_separate;

Line 6893: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6889: ra.task_id,
6890: ra.resource_list_member_id) as element_level, -- element_level
6891: -- ra.total_utilization_hours as labor_hours,
6892: ra.total_plan_quantity as labor_hours,
6893: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6894: 'PROJ', ra.total_project_burdened_cost,
6895: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6896: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6897: 'PROJ', ra.total_project_raw_cost,

Line 6896: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6892: ra.total_plan_quantity as labor_hours,
6893: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6894: 'PROJ', ra.total_project_burdened_cost,
6895: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6896: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6897: 'PROJ', ra.total_project_raw_cost,
6898: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6899: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6900: 'PROJ', ra.total_project_revenue,

Line 6899: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6895: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6896: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6897: 'PROJ', ra.total_project_raw_cost,
6898: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6899: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6900: 'PROJ', ra.total_project_revenue,
6901: ra.total_plan_revenue) as revenue, -- revenue
6902: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6903: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

Line 6902: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6898: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6899: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6900: 'PROJ', ra.total_project_revenue,
6901: ra.total_plan_revenue) as revenue, -- revenue
6902: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6903: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6904: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6905: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6906: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

Line 6903: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6899: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6900: 'PROJ', ra.total_project_revenue,
6901: ra.total_plan_revenue) as revenue, -- revenue
6902: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6903: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6904: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6905: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6906: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6907: 'R', (ra.total_plan_revenue - total_plan_raw_cost),

Line 6906: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6902: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6903: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6904: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6905: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6906: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6907: 'R', (ra.total_plan_revenue - total_plan_raw_cost),
6908: (ra.total_plan_revenue - ra.total_plan_burdened_cost))) as margin, -- margin
6909: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6910: 'PROJ',

Line 6909: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6905: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6906: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6907: 'R', (ra.total_plan_revenue - total_plan_raw_cost),
6908: (ra.total_plan_revenue - ra.total_plan_burdened_cost))) as margin, -- margin
6909: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6910: 'PROJ',
6911: DECODE(ra.total_project_revenue,
6912: 0, 0,
6913: null, null,

Line 6914: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6910: 'PROJ',
6911: DECODE(ra.total_project_revenue,
6912: 0, 0,
6913: null, null,
6914: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6915: 'R', (ra.total_project_revenue - ra.total_project_raw_cost)/
6916: ra.total_project_revenue,
6917: (ra.total_project_revenue - ra.total_project_burdened_cost)/
6918: ra.total_project_revenue)),

Line 6922: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6918: ra.total_project_revenue)),
6919: DECODE(ra.total_plan_revenue,
6920: 0, 0,
6921: null, null,
6922: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6923: 'R', (ra.total_plan_revenue - ra.total_plan_raw_cost)/
6924: ra.total_plan_revenue,
6925: (ra.total_plan_revenue - ra.total_plan_burdened_cost)/
6926: ra.total_plan_revenue))) as margin_percent, -- margin_percent

Line 6940: pa_fp_view_plans_pub.has_child_rows

6936: (ra.project_id,
6937: ra.task_id,
6938: ra.resource_list_member_id) as parent_element_name,
6939: ra.unit_of_measure,
6940: pa_fp_view_plans_pub.has_child_rows
6941: (p_project_id,
6942: p_budget_version_id,
6943: -1,
6944: ra.task_id,

Line 6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;

6956: bl.resource_assignment_id = ra.resource_assignment_id)) or
6957: ra.resource_assignment_type = 'ROLLED_UP');
6958:
6959: /* PL/SQL tables */
6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;

6957: ra.resource_assignment_type = 'ROLLED_UP');
6958:
6959: /* PL/SQL tables */
6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

6958:
6959: /* PL/SQL tables */
6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

6959: /* PL/SQL tables */
6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

6960: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

6961: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

6962: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

6963: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;

Line 6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

6964: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

6965: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

6966: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 6971: l_margin pa_fp_view_plans_pub.av_tab_margin;

6967: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

6968: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

6969: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

6970: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:

Line 6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

6971: l_margin pa_fp_view_plans_pub.av_tab_margin;
6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:
6979: /* Added for bug 7514054 */

Line 6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

6972: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:
6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

6973: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6974: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6975: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:
6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;

6976: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:
6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;

6977: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6978:
6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

6978:
6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

6979: /* Added for bug 7514054 */
6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

6980: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;

6981: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;

6982: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

6983: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;

Line 6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

6984: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

6985: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;

6986: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 6991: t_margin pa_fp_view_plans_pub.av_tab_margin;

6987: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

6988: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

6989: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;

6990: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:

Line 6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

6991: t_margin pa_fp_view_plans_pub.av_tab_margin;
6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:
6999: /* PL/SQL table for PERIODS VIEW */

Line 6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

6992: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:
6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

6993: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6994: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
6995: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:
6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

6996: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:
6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

6997: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6998:
6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

6998:
6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

6999: /* PL/SQL table for PERIODS VIEW */
7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

7000: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

7001: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

7002: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

7003: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

7004: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

7005: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

7006: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

7007: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

7008: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

7009: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

7010: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

7011: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

7012: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

7013: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

7014: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

7015: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

7016: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

7017: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

7018: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

7019: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

7020: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

7021: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

7022: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

7023: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651

Line 7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

7024: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
7032: -- local debugging variables

Line 7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

7025: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
7032: -- local debugging variables
7033: l_err_stage NUMBER(15);

Line 7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

7026: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
7032: -- local debugging variables
7033: l_err_stage NUMBER(15);
7034: /* Added for 7514054 */

Line 7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651

7027: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7028: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7029: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7030: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7031: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
7032: -- local debugging variables
7033: l_err_stage NUMBER(15);
7034: /* Added for 7514054 */
7035: l_loop_count NUMBER(15);

Line 7057: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '100: entering pa_fp_vp_pop_tables_together', 2);

7053:
7054: begin
7055: --hr_utility.trace_on(null, 'dlai');
7056: l_err_stage := 100;
7057: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '100: entering pa_fp_vp_pop_tables_together', 2);
7058: --hr_utility.trace('entered pa_fp_vp_pop_tables_together: 100');
7059: x_return_status := FND_API.G_RET_STS_SUCCESS;
7060: x_msg_count := 0;
7061: SAVEPOINT VIEW_PLANS_POP_TABLES_SAME;

Line 7064: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

7060: x_msg_count := 0;
7061: SAVEPOINT VIEW_PLANS_POP_TABLES_SAME;
7062:
7063: -- used to query pa_proj_periods_denorm table
7064: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7065: 'PROJFUNC', 'PROJ_FUNCTIONAL',
7066: 'PROJ', 'PROJECT',
7067: 'TRANSACTION')
7068: into l_currency_type

Line 7074: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

7070:
7071: -- this is for populating PERIODS PL/SQL table
7072: l_row_number := 0;
7073: select NVL(po.report_labor_hrs_from_code, 'COST'),
7074: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
7075: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
7076: -- po.default_amount_type_code,
7077: -- po.default_amount_subtype_code
7078: bv.period_profile_id

Line 7075: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

7071: -- this is for populating PERIODS PL/SQL table
7072: l_row_number := 0;
7073: select NVL(po.report_labor_hrs_from_code, 'COST'),
7074: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
7075: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
7076: -- po.default_amount_type_code,
7077: -- po.default_amount_subtype_code
7078: bv.period_profile_id
7079: into l_report_labor_hrs_from_code,

Line 7090: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);

7086: bv.fin_plan_type_id = po.fin_plan_type_id and
7087: po.project_id = p_project_id and
7088: po.fin_plan_option_level_code = 'PLAN_TYPE';
7089: l_err_stage := 200;
7090: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
7091: --hr_utility.trace('retrieved period profile id: 200');
7092: -- populate the AMOUNTS PL/SQL table
7093:
7094: /* Modified below code for bug 7514054 */

Line 7177: pa_fp_view_plans_pub.has_child_rows

7173: (l_project_id(1),
7174: 0,
7175: 0) ,
7176: l_unit_of_measure(1),
7177: pa_fp_view_plans_pub.has_child_rows
7178: (l_project_id(1),
7179: l_budget_version_id(1),
7180: -1,
7181: 0,

Line 7268: pa_fp_view_plans_pub.has_child_rows

7264: (l_project_id(i),
7265: task_rec.task_id,
7266: 0) ,
7267: l_unit_of_measure(i),
7268: pa_fp_view_plans_pub.has_child_rows
7269: (l_project_id(i),
7270: l_budget_version_id(i),
7271: -1,
7272: task_rec.task_id,

Line 7305: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '300: bulk collected into amts pl/sql table', 1);

7301:
7302: end if;
7303: /* Ends added for bug 7514054 */
7304: l_err_stage := 300;
7305: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '300: bulk collected into amts pl/sql table', 1);
7306: --hr_utility.trace('bulk collected into amts pl/sql table: 300');
7307: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
7308:
7309: -- populate the PERIODS PL/SQL table

Line 7310: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

7306: --hr_utility.trace('bulk collected into amts pl/sql table: 300');
7307: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
7308:
7309: -- populate the PERIODS PL/SQL table
7310: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7311: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7312: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
7313: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7314: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop

Line 7311: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

7307: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
7308:
7309: -- populate the PERIODS PL/SQL table
7310: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7311: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7312: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
7313: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7314: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
7315: --hr_utility.trace('i= ' || to_char(i));

Line 7317: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

7313: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7314: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
7315: --hr_utility.trace('i= ' || to_char(i));
7316: --hr_utility.trace('loop: ' || to_char(i));
7317: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
7318: l_row_number := l_row_number + 1;
7319: -- process the QUANTITY numbers
7320: l_pd_project_id(l_row_number) := l_project_id(i);
7321: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7456: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

7452: p_period_number => 14);
7453: l_pd_project_total(l_row_number) := l_labor_hours(i); -- bug 2699651
7454: end if; -- display_flag: QUANTITY
7455:
7456: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
7457: -- process the BURDENED_COST numbers
7458: l_row_number := l_row_number + 1;
7459: l_pd_project_id(l_row_number) := l_project_id(i);
7460: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7484: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then

7480: else
7481: l_pd_has_child_element(l_row_number) := 'Y';
7482: end if;
7483: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
7484: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then
7485: l_cost_row_number := l_row_number;
7486: end if;
7487: /*
7488: if l_burdened_cost(i) is not null then

Line 7616: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

7612: p_period_number => 14);
7613: l_pd_project_total(l_row_number) := l_burdened_cost(i); -- bug 2699651
7614: end if; -- display_flag: BURDENED COST
7615:
7616: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
7617: -- process the RAW_COST numbers
7618: l_row_number := l_row_number + 1;
7619: l_pd_project_id(l_row_number) := l_project_id(i);
7620: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7644: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then

7640: else
7641: l_pd_has_child_element(l_row_number) := 'Y';
7642: end if;
7643: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
7644: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then
7645: l_cost_row_number := l_row_number;
7646: end if;
7647: /*
7648: if l_burdened_cost(i) is null then

Line 7776: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

7772: p_period_number => 14);
7773: l_pd_project_total(l_row_number) := l_raw_cost(i); -- bug 2699651
7774: end if; -- display_flag: RAW COST
7775:
7776: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
7777: -- process REVENUE information
7778: l_row_number := l_row_number + 1;
7779: l_pd_project_id(l_row_number) := l_project_id(i);
7780: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7913: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

7909: p_period_number => 14);
7910: l_pd_project_total(l_row_number) := l_revenue(i); -- bug 2699651
7911: end if; -- display_flag: REVENUE
7912:
7913: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
7914: -- calculate and insert the MARGIN row
7915: l_row_number := l_row_number + 1;
7916: l_pd_project_id(l_row_number) := l_project_id(i);
7917: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7958: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

7954: l_pd_succeeding(l_row_number) := l_pd_succeeding(l_revenue_row_number)-l_pd_succeeding(l_cost_row_number);
7955: l_pd_project_total(l_row_number) := l_pd_project_total(l_revenue_row_number)-l_pd_project_total(l_cost_row_number); -- bug 2699651
7956: end if; -- display_flag: MARGIN
7957:
7958: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
7959: -- calculate and insert the MARGIN_PERCENT row
7960: l_row_number := l_row_number + 1;
7961: l_pd_project_id(l_row_number) := l_project_id(i);
7962: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8003: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

7999: l_pd_succeeding(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_succeeding(l_cost_row_number),l_pd_succeeding(l_revenue_row_number));
8000: end if; -- display_from: MARGIN PERCENT
8001: l_pd_project_total(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_project_total(l_cost_row_number),l_pd_project_total(l_revenue_row_number)); -- bug 2699651
8002: end loop;
8003: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8004: l_err_stage := 400;
8005: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);
8006: --hr_utility.trace('populated the pds pl/sql tables: 400');
8007:

Line 8005: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);

8001: l_pd_project_total(l_row_number) := pa_fp_view_plans_util.calc_margin_percent(l_pd_project_total(l_cost_row_number),l_pd_project_total(l_revenue_row_number)); -- bug 2699651
8002: end loop;
8003: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8004: l_err_stage := 400;
8005: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);
8006: --hr_utility.trace('populated the pds pl/sql tables: 400');
8007:
8008: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
8009: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP

Line 8010: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

8006: --hr_utility.trace('populated the pds pl/sql tables: 400');
8007:
8008: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
8009: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8010: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8011: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8012: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8013: insert into pa_fin_vp_amts_view_tmp
8014: (project_id,

Line 8011: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

8007:
8008: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
8009: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8010: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8011: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8012: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8013: insert into pa_fin_vp_amts_view_tmp
8014: (project_id,
8015: task_id,

Line 8053: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '500: populated the amts_tmp tables', 1);

8049: l_res_assignment_id(i),
8050: l_unit_of_measure(i),
8051: l_has_child_element(i));
8052: l_err_stage := 500;
8053: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '500: populated the amts_tmp tables', 1);
8054: --hr_utility.trace('populated the amts_tmp table: 500');
8055:
8056: -- Bug 8868407:10394217 : Rollup margin and margin_percent to tasks and project levels.
8057: update pa_fin_vp_amts_view_tmp

Line 8058: set margin_percent = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

8054: --hr_utility.trace('populated the amts_tmp table: 500');
8055:
8056: -- Bug 8868407:10394217 : Rollup margin and margin_percent to tasks and project levels.
8057: update pa_fin_vp_amts_view_tmp
8058: set margin_percent = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
8059: 'R', DECODE(NVL(revenue,0),0,0,(revenue - raw_cost)/revenue),
8060: DECODE(NVL(revenue,0),0,0,(revenue - burdened_cost)/revenue)),
8061: margin = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
8062: 'R', (revenue - raw_cost), (revenue - burdened_cost))

Line 8061: margin = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

8057: update pa_fin_vp_amts_view_tmp
8058: set margin_percent = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
8059: 'R', DECODE(NVL(revenue,0),0,0,(revenue - raw_cost)/revenue),
8060: DECODE(NVL(revenue,0),0,0,(revenue - burdened_cost)/revenue)),
8061: margin = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
8062: 'R', (revenue - raw_cost), (revenue - burdened_cost))
8063: where resource_list_member_id = 0;
8064: commit;
8065: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

Line 8065: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

8061: margin = DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
8062: 'R', (revenue - raw_cost), (revenue - burdened_cost))
8063: where resource_list_member_id = 0;
8064: commit;
8065: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8066:
8067: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
8068: -- PERIODS PL/SQL table
8069: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

Line 8069: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8065: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8066:
8067: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
8068: -- PERIODS PL/SQL table
8069: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8070: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8071: --hr_utility.trace('l_pd_project_id.first= ' || TO_CHAR(l_pd_project_id.first));
8072: --hr_utility.trace('l_pd_project_id.last= ' || TO_CHAR(l_pd_project_id.last));
8073: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)

Line 8070: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

8066:
8067: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
8068: -- PERIODS PL/SQL table
8069: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8070: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8071: --hr_utility.trace('l_pd_project_id.first= ' || TO_CHAR(l_pd_project_id.first));
8072: --hr_utility.trace('l_pd_project_id.last= ' || TO_CHAR(l_pd_project_id.last));
8073: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
8074: insert into pa_fin_vp_pds_view_tmp

Line 8248: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);

8244:
8245: /* Ends logic to rollup the period aounts to the parent levels */
8246:
8247: l_err_stage := 600;
8248: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
8249: --hr_utility.trace('populated the pds_temp table: 600');
8250: commit;
8251: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8252: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);

Line 8251: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8247: l_err_stage := 600;
8248: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
8249: --hr_utility.trace('populated the pds_temp table: 600');
8250: commit;
8251: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8252: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);
8253:
8254: EXCEPTION
8255: when others then

Line 8252: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);

8248: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
8249: --hr_utility.trace('populated the pds_temp table: 600');
8250: commit;
8251: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8252: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);
8253:
8254: EXCEPTION
8255: when others then
8256: rollback to VIEW_PLANS_POP_TABLES_SAME;

Line 8261: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

8257: --hr_utility.trace('l_err_stage= ' || to_char(l_err_stage));
8258: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8259: x_msg_count := 1;
8260: x_msg_data := SQLERRM;
8261: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
8262: p_procedure_name => 'View_Plans_Pop_Tables_Tog');
8263: pa_debug.reset_err_stack;
8264: return;
8265: end pa_fp_vp_pop_tables_together;

Line 8334: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

8330: DECODE(po.report_labor_hrs_from_code,
8331: 'REVENUE', 0,
8332: -- ra.total_utilization_hours) as labor_hours,
8333: ra.total_plan_quantity) as labor_hours,
8334: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8335: 'PROJ', ra.total_project_burdened_cost,
8336: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
8337: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8338: 'PROJ', ra.total_project_raw_cost,

Line 8337: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

8333: ra.total_plan_quantity) as labor_hours,
8334: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8335: 'PROJ', ra.total_project_burdened_cost,
8336: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
8337: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8338: 'PROJ', ra.total_project_raw_cost,
8339: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
8340: 0 as revenue, -- revenue
8341: 0 as margin, -- margin

Line 8356: pa_fp_view_plans_pub.has_child_rows

8352: (ra.project_id,
8353: ra.task_id,
8354: ra.resource_list_member_id) as parent_element_name,
8355: ra.unit_of_measure,
8356: pa_fp_view_plans_pub.has_child_rows
8357: (p_project_id,
8358: p_budget_version_id,
8359: -1,
8360: ra.task_id,

Line 8396: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

8392: -- ra.total_utilization_hours) as labor_hours,
8393: ra.total_plan_quantity) as labor_hours,
8394: 0 as burdened_cost, -- burdened_cost
8395: 0 as raw_cost, -- raw_cost
8396: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8397: 'PROJ', ra.total_project_revenue,
8398: ra.total_plan_revenue) as revenue, -- revenue
8399: 0 as margin, -- margin
8400: 0 as margin_percent, -- margin_percent

Line 8414: pa_fp_view_plans_pub.has_child_rows

8410: (ra.project_id,
8411: ra.task_id,
8412: ra.resource_list_member_id) as parent_element_name,
8413: ra.unit_of_measure,
8414: pa_fp_view_plans_pub.has_child_rows
8415: (p_project_id,
8416: p_budget_version_id,
8417: -1,
8418: ra.task_id,

Line 8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;

8430: bl.resource_assignment_id = ra.resource_assignment_id)) or
8431: ra.resource_assignment_type = 'ROLLED_UP');
8432:
8433: /* AMOUNTS VIEW PL/SQL tables */
8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;

8431: ra.resource_assignment_type = 'ROLLED_UP');
8432:
8433: /* AMOUNTS VIEW PL/SQL tables */
8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

8432:
8433: /* AMOUNTS VIEW PL/SQL tables */
8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

8433: /* AMOUNTS VIEW PL/SQL tables */
8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

8434: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

8435: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

8436: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

8437: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;

Line 8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

8438: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

8439: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

8440: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 8445: l_margin pa_fp_view_plans_pub.av_tab_margin;

8441: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

8442: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

8443: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

8444: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:

Line 8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

8445: l_margin pa_fp_view_plans_pub.av_tab_margin;
8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:
8453: /* Added for bug 7514054 */

Line 8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

8446: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:
8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

8447: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8448: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
8449: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:
8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;

8450: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:
8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;

8451: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8452:
8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

8452:
8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

8453: /* Added for bug 7514054 */
8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

8454: t_project_id pa_fp_view_plans_pub.av_tab_project_id;
8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;

8455: t_task_id pa_fp_view_plans_pub.av_tab_task_id;
8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;

8456: t_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

8457: t_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;

Line 8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

8458: t_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

8459: t_element_name pa_fp_view_plans_pub.av_tab_element_name;
8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;

8460: t_element_level pa_fp_view_plans_pub.av_tab_element_level;
8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 8465: t_margin pa_fp_view_plans_pub.av_tab_margin;

8461: t_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

8462: t_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

8463: t_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;

8464: t_revenue pa_fp_view_plans_pub.av_tab_revenue;
8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:

Line 8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

8465: t_margin pa_fp_view_plans_pub.av_tab_margin;
8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:
8473: /* PL/SQL table for PERIODS VIEW */

Line 8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

8466: t_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:
8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

8467: t_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8468: t_row_level pa_fp_view_plans_pub.av_tab_row_level;
8469: t_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:
8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

8470: t_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:
8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

8471: t_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8472:
8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

8472:
8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

8473: /* PL/SQL table for PERIODS VIEW */
8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

8474: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

8475: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

8476: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

8477: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

8478: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

8479: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

8480: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

8481: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

8482: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

8483: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

8484: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

8485: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

8486: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

8487: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

8488: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

8489: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

8490: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

8491: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

8492: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

8493: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

8494: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

8495: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

8496: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

8497: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651

Line 8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

8498: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
8506: -- local debugging variables

Line 8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

8499: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
8506: -- local debugging variables
8507: l_err_stage NUMBER(15);

Line 8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

8500: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
8506: -- local debugging variables
8507: l_err_stage NUMBER(15);
8508: /* Added for bug 7514054 */

Line 8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651

8501: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
8502: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
8503: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
8504: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
8505: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
8506: -- local debugging variables
8507: l_err_stage NUMBER(15);
8508: /* Added for bug 7514054 */
8509: l_loop_count NUMBER(15);

Line 8531: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '100: entering procedure', 2);

8527:
8528: begin
8529: --hr_utility.trace_on(null, 'dlai');
8530: l_err_stage := 100;
8531: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '100: entering procedure', 2);
8532: --hr_utility.trace('entered pa_fp_vp_pop_tables_single:100');
8533: x_return_status := FND_API.G_RET_STS_SUCCESS;
8534: x_msg_count := 0;
8535: SAVEPOINT VIEW_PLANS_POP_TABLES_SINGLE;

Line 8537: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

8533: x_return_status := FND_API.G_RET_STS_SUCCESS;
8534: x_msg_count := 0;
8535: SAVEPOINT VIEW_PLANS_POP_TABLES_SINGLE;
8536: -- used to query pa_proj_periods_denorm table
8537: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
8538: 'PROJFUNC', 'PROJ_FUNCTIONAL',
8539: 'PROJ', 'PROJECT',
8540: 'TRANSACTION')
8541: into l_currency_type

Line 8549: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

8545: l_row_number := 0;
8546: select NVL(po.report_labor_hrs_from_code, 'COST'),
8547: -- po.default_amount_type_code,
8548: -- po.default_amount_subtype_code
8549: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
8550: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
8551: bv.period_profile_id
8552: into l_report_labor_hrs_from_code,
8553: l_default_amount_type_code,

Line 8550: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

8546: select NVL(po.report_labor_hrs_from_code, 'COST'),
8547: -- po.default_amount_type_code,
8548: -- po.default_amount_subtype_code
8549: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
8550: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
8551: bv.period_profile_id
8552: into l_report_labor_hrs_from_code,
8553: l_default_amount_type_code,
8554: l_default_amount_subtype_code,

Line 8563: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);

8559: bv.fin_plan_type_id = po.fin_plan_type_id and
8560: po.project_id = p_project_id and
8561: po.fin_plan_option_level_code = 'PLAN_TYPE';
8562: l_err_stage := 200;
8563: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
8564: --hr_utility.trace('retrieved periodprofileid: 200');
8565: -- populate AMOUNTS PL/SQL TABLES
8566: if p_cost_or_rev = 'C' then
8567: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '300: this is a COST version - populating amts pl/sql tables', 1);

Line 8567: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '300: this is a COST version - populating amts pl/sql tables', 1);

8563: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
8564: --hr_utility.trace('retrieved periodprofileid: 200');
8565: -- populate AMOUNTS PL/SQL TABLES
8566: if p_cost_or_rev = 'C' then
8567: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '300: this is a COST version - populating amts pl/sql tables', 1);
8568: /* Modified below code for bug 7514054 */
8569:
8570: open av_cost_csr;
8571: fetch av_cost_csr bulk collect into

Line 8653: pa_fp_view_plans_pub.has_child_rows

8649: (l_project_id(1),
8650: 0,
8651: 0) ,
8652: l_unit_of_measure(1),
8653: pa_fp_view_plans_pub.has_child_rows
8654: (l_project_id(1),
8655: l_budget_version_id(1),
8656: -1,
8657: 0,

Line 8744: pa_fp_view_plans_pub.has_child_rows

8740: (l_project_id(i),
8741: task_rec.task_id,
8742: 0) ,
8743: l_unit_of_measure(i),
8744: pa_fp_view_plans_pub.has_child_rows
8745: (l_project_id(i),
8746: l_budget_version_id(i),
8747: -1,
8748: task_rec.task_id,

Line 8786: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

8782: /* Ends added code for 7514054 */
8783: l_err_stage := 300;
8784: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
8785: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
8786: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
8787: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8788: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
8789: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
8790: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop

Line 8787: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

8783: l_err_stage := 300;
8784: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
8785: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
8786: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
8787: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8788: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
8789: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
8790: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
8791: --hr_utility.trace('i= ' || to_char(i));

Line 8792: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

8788: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
8789: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
8790: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
8791: --hr_utility.trace('i= ' || to_char(i));
8792: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
8793: -- process QUANTITY numbers based on report_labor_hrs_from_code
8794: l_row_number := l_row_number + 1; -- increment row counter
8795: l_pd_project_id(l_row_number) := l_project_id(i);
8796: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8952: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

8948: l_pd_project_total(l_row_number) := null; -- bug 2699651
8949: end if; -- report_labour_hrs_from_code = 'COST'
8950: end if; -- display_from: QUANTITY
8951:
8952: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
8953: -- process BURDENED_COST numbers from COST BUDGET VERSION
8954: l_row_number := l_row_number + 1; -- increment row counter
8955: l_pd_project_id(l_row_number) := l_project_id(i);
8956: l_pd_task_id(l_row_number) := l_task_id(i);

Line 9102: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

9098: p_period_number => 14);
9099: l_pd_project_total(l_row_number) := l_burdened_cost(i); -- bug 2699651
9100: end if; -- display_flag: BURDENED COST
9101:
9102: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
9103: -- process RAW_COST numbers from COST BUDGET VERSION
9104: l_row_number := l_row_number + 1; -- increment row counter
9105: l_pd_project_id(l_row_number) := l_project_id(i);
9106: l_pd_task_id(l_row_number) := l_task_id(i);

Line 9252: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

9248: p_period_number => 14);
9249: l_pd_project_total(l_row_number) := l_raw_cost(i); -- bug 2699651
9250: end if; -- display_flag: RAW COST
9251:
9252: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
9253: -- POPULATE null'S for REVENUE row in PERIODS PL/SQL TABLE
9254: l_row_number := l_row_number + 1; -- increment row counter
9255: l_pd_project_id(l_row_number) := l_project_id(i);
9256: l_pd_task_id(l_row_number) := l_task_id(i);

Line 9298: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

9294: l_pd_succeeding(l_row_number) := null;
9295: l_pd_project_total(l_row_number) := null; -- bug 2699651
9296: end if; -- display_from: REVENUE
9297:
9298: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
9299: -- POPULATE 0'S for MARGIN row in PERIODS PL/SQL TABLE
9300: l_row_number := l_row_number + 1; -- increment row counter
9301: l_pd_project_id(l_row_number) := l_project_id(i);
9302: l_pd_task_id(l_row_number) := l_task_id(i);

Line 9344: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

9340: l_pd_succeeding(l_row_number) := null;
9341: l_pd_project_total(l_row_number) := null; -- bug 3179756
9342: end if; -- display_from: MARGIN
9343:
9344: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
9345: -- POPULATE 0'S for MARGIN_PERCENT row in PERIODS PL/SQL TABLE
9346: l_row_number := l_row_number + 1; -- increment row counter
9347: l_pd_project_id(l_row_number) := l_project_id(i);
9348: l_pd_task_id(l_row_number) := l_task_id(i);

Line 9390: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

9386: l_pd_succeeding(l_row_number) := null;
9387: l_pd_project_total(l_row_number) := null; -- bug 2699651
9388: end if; --display_from: MARGIN PERCENT
9389: end loop;
9390: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9391: l_err_stage := 400;
9392: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
9393:
9394: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP

Line 9392: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);

9388: end if; --display_from: MARGIN PERCENT
9389: end loop;
9390: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9391: l_err_stage := 400;
9392: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
9393:
9394: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
9395: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
9396: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

Line 9395: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

9391: l_err_stage := 400;
9392: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
9393:
9394: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
9395: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
9396: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
9397: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
9398: insert into pa_fin_vp_amts_view_tmp
9399: (project_id,

Line 9396: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

9392: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
9393:
9394: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
9395: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
9396: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
9397: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
9398: insert into pa_fin_vp_amts_view_tmp
9399: (project_id,
9400: task_id,

Line 9437: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

9433: -1,
9434: -1,
9435: l_unit_of_measure(i),
9436: l_has_child_element(i));
9437: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
9438: l_err_stage := 500;
9439: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
9440:
9441: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP

Line 9439: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);

9435: l_unit_of_measure(i),
9436: l_has_child_element(i));
9437: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
9438: l_err_stage := 500;
9439: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
9440:
9441: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
9442: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9443: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 9442: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

9438: l_err_stage := 500;
9439: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
9440:
9441: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
9442: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9443: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
9444: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
9445: insert into pa_fin_vp_pds_view_tmp
9446: (project_id,

Line 9443: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

9439: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
9440:
9441: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
9442: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9443: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
9444: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
9445: insert into pa_fin_vp_pds_view_tmp
9446: (project_id,
9447: task_id,

Line 9617: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

9613: );
9614: end if;
9615: end loop;
9616: /* Ends added for 7514054 */
9617: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9618: l_err_stage := 600;
9619: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
9620:
9621:

Line 9619: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);

9615: end loop;
9616: /* Ends added for 7514054 */
9617: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
9618: l_err_stage := 600;
9619: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
9620:
9621:
9622: elsif p_cost_or_rev = 'R' then
9623: l_err_stage := 700;

Line 9624: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '500: this is a REVENUE version - populating amts pl/sql tables', 1);

9620:
9621:
9622: elsif p_cost_or_rev = 'R' then
9623: l_err_stage := 700;
9624: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '500: this is a REVENUE version - populating amts pl/sql tables', 1);
9625: --hr_utility.trace('this is a REVENUE version: 500');
9626: /* Modified below code for 7514054 */
9627:
9628: open av_rev_csr;

Line 9712: pa_fp_view_plans_pub.has_child_rows

9708: (l_project_id(1),
9709: 0,
9710: 0) ,
9711: l_unit_of_measure(1),
9712: pa_fp_view_plans_pub.has_child_rows
9713: (l_project_id(1),
9714: l_budget_version_id(1),
9715: -1,
9716: 0,

Line 9799: pa_fp_view_plans_pub.has_child_rows

9795: (l_project_id(i),
9796: task_rec.task_id,
9797: 0) ,
9798: l_unit_of_measure(i),
9799: pa_fp_view_plans_pub.has_child_rows
9800: (l_project_id(i),
9801: l_budget_version_id(i),
9802: -1,
9803: task_rec.task_id,

Line 9842: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

9838:
9839: l_err_stage := 800;
9840: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
9841: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
9842: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
9843: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
9844: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
9845: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
9846:

Line 9844: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

9840: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
9841: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
9842: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
9843: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
9844: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
9845: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
9846:
9847: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
9848: --hr_utility.trace('inserting row for Quantity: ' || TO_CHAR(i));

Line 9847: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

9843: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
9844: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
9845: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
9846:
9847: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
9848: --hr_utility.trace('inserting row for Quantity: ' || TO_CHAR(i));
9849: -- process the QUANTITY numbers based on report_labor_hrs_from_code
9850: l_row_number := l_row_number + 1; -- increment row counter
9851: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10004: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

10000: l_pd_project_total(l_row_number) := null; -- bug 2699651
10001: end if; -- QUANTITY
10002: end if; -- display_flag: QUANTITY
10003:
10004: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
10005: --hr_utility.trace('inserting row for Revenue: ' || TO_CHAR(i));
10006: -- process REVENUE numbers from REVENUE BUDGET VERSION
10007: l_row_number := l_row_number + 1; -- increment row counter
10008: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10140: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

10136: p_period_number => 14);
10137: l_pd_project_total(l_row_number) := l_revenue(i); -- bug 2699651
10138: end if; -- display_from: REVENUE
10139:
10140: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
10141: --hr_utility.trace('creating row for burdened cost: ' || TO_CHAR(i));
10142: -- POPULATE null'S for BURDENED_COST row in PERIODS PL/SQL TABLE
10143: l_row_number := l_row_number + 1; -- increment row counter
10144: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10187: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

10183: l_pd_succeeding(l_row_number) := null;
10184: l_pd_project_total(l_row_number) := null; -- bug 2699651
10185: end if; -- display_from: BURDENED COST
10186:
10187: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
10188: --hr_utility.trace('inserting row for RawCost: ' || TO_CHAR(i));
10189: -- POPULATE null'S for RAW_COST row in PERIODS PL/SQL TABLE
10190: l_row_number := l_row_number + 1; -- increment row counter
10191: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10234: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

10230: l_pd_succeeding(l_row_number) := null;
10231: l_pd_project_total(l_row_number) := null; -- bug 2699651
10232: end if; -- display_from: RAW COST
10233:
10234: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
10235: --hr_utility.trace('inserting row for Margin: ' || TO_CHAR(i));
10236: -- POPULATE null'S for MARGIN row in PERIODS PL/SQL TABLE
10237: l_row_number := l_row_number + 1; -- increment row counter
10238: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10281: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

10277: l_pd_succeeding(l_row_number) := null;
10278: l_pd_project_total(l_row_number) := null; -- bug 2699651
10279: end if; -- display_from: MARGIN
10280:
10281: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
10282: --hr_utility.trace('inserting row for MarginPct: ' || TO_CHAR(i));
10283: -- POPULATE null'S for MARGIN_PERCENT row in PERIODS PL/SQL TABLE
10284: l_row_number := l_row_number + 1; -- increment row counter
10285: l_pd_project_id(l_row_number) := l_project_id(i);

Line 10328: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

10324: l_pd_succeeding(l_row_number) := null;
10325: l_pd_project_total(l_row_number) := null; -- bug 2699651
10326: end if; --display_from: MARGIN PERCENT
10327: end loop;
10328: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
10329: l_err_stage:= 900;
10330: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
10331: --hr_utility.trace('finished populating amts pl/sql tables: 600');
10332:

Line 10330: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);

10326: end if; --display_from: MARGIN PERCENT
10327: end loop;
10328: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
10329: l_err_stage:= 900;
10330: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
10331: --hr_utility.trace('finished populating amts pl/sql tables: 600');
10332:
10333: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
10334: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

Line 10334: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

10330: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
10331: --hr_utility.trace('finished populating amts pl/sql tables: 600');
10332:
10333: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
10334: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
10335: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
10336: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
10337: insert into pa_fin_vp_amts_view_tmp
10338: (project_id,

Line 10335: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

10331: --hr_utility.trace('finished populating amts pl/sql tables: 600');
10332:
10333: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
10334: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
10335: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
10336: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
10337: insert into pa_fin_vp_amts_view_tmp
10338: (project_id,
10339: task_id,

Line 10377: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);

10373: -1,
10374: l_unit_of_measure(i),
10375: l_has_child_element(i));
10376: l_err_stage:= 1000;
10377: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
10378: --hr_utility.trace('amts temp table populated: 800');
10379: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
10380:
10381: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP

Line 10379: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

10375: l_has_child_element(i));
10376: l_err_stage:= 1000;
10377: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
10378: --hr_utility.trace('amts temp table populated: 800');
10379: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
10380:
10381: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
10382: -- only if in periodic mode
10383: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 10383: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

10379: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
10380:
10381: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
10382: -- only if in periodic mode
10383: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
10384: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
10385: insert into pa_fin_vp_pds_view_tmp
10386: (project_id,
10387: task_id,

Line 10562: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

10558:
10559: /* Ends logic to rollup the period aounts to the parent levels */
10560:
10561: /* Ends added for 7514054 */
10562: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
10563: l_err_stage := 1100;
10564: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
10565:
10566:

Line 10564: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);

10560:
10561: /* Ends added for 7514054 */
10562: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
10563: l_err_stage := 1100;
10564: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
10565:
10566:
10567: else
10568: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);

Line 10568: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);

10564: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
10565:
10566:
10567: else
10568: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);
10569: --hr_utility.trace('invalid value for p_cost_or_rev');
10570: end if;
10571: commit;
10572: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);

Line 10572: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);

10568: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);
10569: --hr_utility.trace('invalid value for p_cost_or_rev');
10570: end if;
10571: commit;
10572: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);
10573:
10574: EXCEPTION
10575: when others then
10576: rollback to VIEW_PLANS_POP_TABLES_SINGLE;

Line 10581: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

10577: --hr_utility.trace('l_err_stage= ' || to_char(l_err_stage));
10578: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
10579: x_msg_count := 1;
10580: x_msg_data := SQLERRM;
10581: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
10582: p_procedure_name => 'View_Plans_Pop_Tables_Single');
10583: pa_debug.reset_err_stack;
10584: return;
10585: end pa_fp_vp_pop_tables_single;

Line 10613: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or

10609: from pa_resource_assignments ra,
10610: pa_tasks t
10611: where (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
10612: ra.task_id=0 and
10613: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or
10614: (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
10615: ra.task_id <> 0 and
10616: ra.task_id = t.task_id and
10617: t.parent_task_id is null);

Line 10625: and not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)))

10621: from pa_resource_assignments ra
10622: where ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2)
10623: and (
10624: ( ra.task_id=0
10625: and not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)))
10626: or
10627: (exists (select 1
10628: from pa_tasks pt
10629: where pt.task_id = pt.top_task_id

Line 10642: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or

10638: from pa_resource_assignments ra,
10639: pa_tasks t
10640: where (ra.budget_version_id in(p_budget_version_id1, p_budget_version_id2) and
10641: ra.task_id=p_task_id and
10642: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or
10643: (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
10644: ra.task_id = t.task_id and t.parent_task_id = p_task_id);
10645: */
10646: select 1 from dual where exists (

Line 10653: (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)

10649: where ra.budget_version_id in(p_budget_version_id1, p_budget_version_id2) and
10650: (
10651: (ra.task_id=p_task_id and
10652: not (ra.resource_list_member_id in
10653: (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)
10654: )
10655: )
10656: or
10657: (exists (select 1

Line 10673: if (p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and

10669: where parent_member_id = p_resource_list_member_id;
10670: rg_children_rec rg_children_csr%ROWTYPE;
10671:
10672: BEGIN
10673: if (p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and
10674: p_task_id = 0) or
10675: (p_resource_list_member_id = 0 and
10676: p_task_id = 0) then
10677: /* THIS IS A PROJECT-LEVEL ROW */

Line 10687: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

10683: if project_children_csr%NOTFOUND then
10684: if p_amt_or_periodic = 'A' then
10685: l_return_value := 'N';
10686: else
10687: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
10688: l_return_value := 'Y';
10689: else
10690: l_return_value := 'N';
10691: end if;

Line 10699: p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id then

10695: end if;
10696: close project_children_csr;
10697:
10698: elsif p_resource_list_member_id = 0 or
10699: p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id then
10700: /* THIS IS A TASK-LEVEL ROW */
10701: /* to look for children of a TASK-LEVEL row, look for resources/resource groups AND
10702: * for sub-tasks
10703: */

Line 10710: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

10706: if task_children_csr%NOTFOUND then
10707: if p_amt_or_periodic = 'A' then
10708: l_return_value := 'N';
10709: else
10710: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
10711: l_return_value := 'Y';
10712: else
10713: l_return_value := 'N';
10714: end if;

Line 10736: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

10732: if rg_children_csr%NOTFOUND then
10733: if p_amt_or_periodic = 'A' then
10734: l_return_value := 'N';
10735: else
10736: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
10737: l_return_value := 'Y';
10738: else
10739: l_return_value := 'N';
10740: end if;

Line 10751: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

10747: /* THIS IS A RESOURCE; IT COULD HAVE CHILDREN IF IN PERIODIC MODE */
10748: if p_amt_or_periodic = 'A' then
10749: l_return_value := 'N';
10750: else
10751: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
10752: l_return_value := 'Y';
10753: else
10754: l_return_value := 'N';
10755: end if;

Line 10763: END pa_fp_view_plans_pub;

10759: return l_return_value;
10760: END has_child_rows;
10761:
10762:
10763: END pa_fp_view_plans_pub;