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.3 2005/08/19 16:31:18 mwasowic noship $
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.3 2005/08/19 16:31:18 mwasowic noship $
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 150: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := p_orgfcst_version_id;

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

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

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

Line 162: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;

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

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

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

Line 181: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;

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

Line 220: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

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

Line 225: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;

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

Line 227: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;

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

Line 247: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := px_display_quantity;

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

Line 248: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := px_display_rawcost;

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

Line 249: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := px_display_burdcost;

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

Line 250: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := px_display_revenue;

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

Line 251: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := px_display_margin;

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

Line 252: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := px_display_marginpct;

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

Line 359: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;

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

Line 361: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;

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

Line 363: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;

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

Line 365: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;

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

Line 367: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

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

Line 369: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 403: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;

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

Line 404: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

400: -- set the user-defined budget versions source
401: if l_user_bv_flag = 'Y' then
402: if (p_user_cost_version_id = p_user_rev_version_id) then
403: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
404: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
405: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
406: else
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;

Line 405: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

401: if l_user_bv_flag = 'Y' then
402: if (p_user_cost_version_id = p_user_rev_version_id) then
403: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
404: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
405: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
406: else
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: end if;

Line 407: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

403: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
404: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
405: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
406: else
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: end if;
410: select approved_rev_plan_type_flag
411: into x_ar_flag -- OUTPUT: x_ar_flag

Line 408: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

404: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
405: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
406: else
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: end if;
410: select approved_rev_plan_type_flag
411: into x_ar_flag -- OUTPUT: x_ar_flag
412: from pa_proj_fp_options

Line 432: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;

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

Line 433: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

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

Line 435: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;

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

Line 436: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;

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

Line 461: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

457: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
458: x_msg_count := 1;
459: x_msg_data := SQLERRM;
460: FND_MSG_PUB.add_exc_msg
461: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
462: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan period type: 300');
463: END;
464: --hr_utility.trace('after selecting from pa_proj_period_profiles: 300 succeeded');
465:

Line 511: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;

507: ll_plan_start_date := l_plan_start_date;
508: ll_plan_end_date := l_plan_end_date;
509: -- end if;
510:
511: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
512: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
513: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
514: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
515: if ll_plan_period_type = 'GL' THEN

Line 512: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;

508: ll_plan_end_date := l_plan_end_date;
509: -- end if;
510:
511: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
512: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
513: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
514: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
515: if ll_plan_period_type = 'GL' THEN
516: l_num_of_periods := 6;

Line 513: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;

509: -- end if;
510:
511: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
512: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
513: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
514: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
515: if ll_plan_period_type = 'GL' THEN
516: l_num_of_periods := 6;
517: else

Line 548: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

544: if l_start_date is null then
545: l_start_date := to_char(pp_plan_start_date);
546: end if;
547: elsif p_period_start_date = 'L' Then
548: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
549: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
550: p_direction => 'BACKWARD',
551: p_num_of_periods => l_num_of_periods,
552: p_period_type => ll_plan_period_type,

Line 549: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

545: l_start_date := to_char(pp_plan_start_date);
546: end if;
547: elsif p_period_start_date = 'L' Then
548: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
549: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
550: p_direction => 'BACKWARD',
551: p_num_of_periods => l_num_of_periods,
552: p_period_type => ll_plan_period_type,
553: x_start_date => l_start_date,

Line 566: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

562: l_start_date := to_char(pp_plan_start_date);
563: end if;
564: -- if sysdate falls after last period end date, display the ending periods
565: elsif l_cur_period_number = -1 then
566: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
567: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
568: p_direction => 'BACKWARD',
569: p_num_of_periods => l_num_of_periods,
570: p_period_type => ll_plan_period_type,

Line 567: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

563: end if;
564: -- if sysdate falls after last period end date, display the ending periods
565: elsif l_cur_period_number = -1 then
566: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
567: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
568: p_direction => 'BACKWARD',
569: p_num_of_periods => l_num_of_periods,
570: p_period_type => ll_plan_period_type,
571: x_start_date => l_start_date,

Line 584: pa_fp_view_plans_pub.pa_fp_set_periods

580: else
581: l_start_date := p_period_start_date;
582: end if;
583:
584: pa_fp_view_plans_pub.pa_fp_set_periods
585: ( p_period_start_date => l_start_date,
586: p_period_type => ll_plan_period_type,
587: x_return_status => l_return_status,
588: x_msg_count => l_msg_count,

Line 614: pa_fp_view_plans_pub.view_plan_temp_tables

610: --hr_utility.trace('calling view_plan_temp_tables');
611: -- delete residual data in the temp tables
612: DELETE from PA_FIN_VP_AMTS_VIEW_TMP;
613: DELETE from PA_FIN_VP_PDS_VIEW_TMP;
614: pa_fp_view_plans_pub.view_plan_temp_tables
615: (p_project_id => l_project_id,
616: p_budget_version_id => p_orgfcst_version_id,
617: p_cost_or_revenue => l_cost_or_revenue,
618: p_user_bv_flag => l_user_bv_flag,

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

640:
641: --hr_utility.trace('after calling view_plan_temp_tables: 500');
642: -- END OF POPULATING GLOBAL TEMPORARY TABLE --
643:
644: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
645: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
646: -- NEED THIS IN CASE NOT USER-SPECIFIED
647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

Line 647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

643:
644: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
645: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
646: -- NEED THIS IN CASE NOT USER-SPECIFIED
647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
649: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
650: end if;
651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

Line 648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

644: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
645: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
646: -- NEED THIS IN CASE NOT USER-SPECIFIED
647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
649: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
650: end if;
651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
652: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

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

645: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
646: -- NEED THIS IN CASE NOT USER-SPECIFIED
647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
649: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
650: end if;
651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
652: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
653: end if;

Line 651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

647: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
649: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
650: end if;
651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
652: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
653: end if;
654: end if;
655:

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

648: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
649: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
650: end if;
651: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
652: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
653: end if;
654: end if;
655:
656: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle

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

655:
656: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle
657: -- also, set x_refresh_pd_flag and x_refresh_req_id
658: -- also set preceding/succeeding periods flags
659: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
660: select nvl(all_time_phased_code, 'N')
661: into x_time_phase_code -- OUTPUT: x_time_phase_code
662: from pa_proj_fp_options
663: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 663: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

659: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
660: select nvl(all_time_phased_code, 'N')
661: into x_time_phase_code -- OUTPUT: x_time_phase_code
662: from pa_proj_fp_options
663: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
664: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
665: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
666: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
667: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

Line 665: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

661: into x_time_phase_code -- OUTPUT: x_time_phase_code
662: from pa_proj_fp_options
663: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
664: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
665: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
666: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
667: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
668: select plan_processing_code,
669: request_id

Line 667: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);

663: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
664: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
665: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
666: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
667: (pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID);
668: select plan_processing_code,
669: request_id
670: into l_plan_processing_code,
671: l_request_id

Line 673: where budget_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

669: request_id
670: into l_plan_processing_code,
671: l_request_id
672: from pa_budget_versions
673: where budget_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
674: if l_plan_processing_code = 'PPP' then
675: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
676: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
677: else

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

677: else
678: x_refresh_pd_flag := 'N'; -- OUTPUT: x_refresh_pd_flag
679: x_refresh_req_id := -1; -- OUTPUT: x_refresh_req_id
680: end if;
681: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
682: select nvl(cost_time_phased_code, 'N')
683: into x_time_phase_code -- OUTPUT: x_time_phase_code
684: from pa_proj_fp_options
685: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 685: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

681: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
682: select nvl(cost_time_phased_code, 'N')
683: into x_time_phase_code -- OUTPUT: x_time_phase_code
684: from pa_proj_fp_options
685: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
686: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
687: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
688: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
689: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

Line 687: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

683: into x_time_phase_code -- OUTPUT: x_time_phase_code
684: from pa_proj_fp_options
685: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
686: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
687: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
688: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
689: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
690: select plan_processing_code,
691: request_id

Line 689: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);

685: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
686: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
687: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
688: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
689: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID);
690: select plan_processing_code,
691: request_id
692: into l_plan_processing_code,
693: l_request_id

Line 695: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

691: request_id
692: into l_plan_processing_code,
693: l_request_id
694: from pa_budget_versions
695: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
696: if l_plan_processing_code = 'PPP' then
697: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
698: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
699: else

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

699: else
700: x_refresh_pd_flag := 'N'; -- OUTPUT: x_refresh_pd_flag
701: x_refresh_req_id := -1; -- OUTPUT: x_refresh_req_id
702: end if;
703: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
704: select nvl(revenue_time_phased_code, 'N')
705: into x_time_phase_code -- OUTPUT: x_time_phase_code
706: from pa_proj_fp_options
707: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 707: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

703: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
704: select nvl(revenue_time_phased_code, 'N')
705: into x_time_phase_code -- OUTPUT: x_time_phase_code
706: from pa_proj_fp_options
707: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
708: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
709: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
710: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
711: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

Line 709: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

705: into x_time_phase_code -- OUTPUT: x_time_phase_code
706: from pa_proj_fp_options
707: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
708: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
709: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
710: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
711: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
712: select plan_processing_code,
713: request_id

Line 711: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);

707: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
708: x_prec_pds_flag := Pa_Prj_Period_Profile_Utils.has_preceding_periods
709: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
710: x_succ_pds_flag := Pa_Prj_Period_Profile_Utils.has_succeeding_periods
711: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID);
712: select plan_processing_code,
713: request_id
714: into l_plan_processing_code,
715: l_request_id

Line 717: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

713: request_id
714: into l_plan_processing_code,
715: l_request_id
716: from pa_budget_versions
717: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
718: if l_plan_processing_code = 'PPP' then
719: x_refresh_pd_flag := 'Y'; -- OUTPUT: x_refresh_pd_flag
720: x_refresh_req_id := l_request_id; -- OUTPUT: x_refresh_req_id
721: else

Line 729: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

725: else
726: select nvl(cost_time_phased_code, 'N')
727: into l_cost_time_phase_code
728: from pa_proj_fp_options
729: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
730: select nvl(revenue_time_phased_code, 'N')
731: into l_rev_time_phase_code
732: from pa_proj_fp_options
733: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 733: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

729: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
730: select nvl(revenue_time_phased_code, 'N')
731: into l_rev_time_phase_code
732: from pa_proj_fp_options
733: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
734: -- if cost and rev versions have different time phase codes, there is no way to
735: -- merge them in periodic view
736: if l_cost_time_phase_code <> l_rev_time_phase_code then
737: x_time_phase_code := 'N'; -- OUTPUT: x_time_phase_code

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

743: -- **** if have TWO versions, may need to set x_primary_pp_bv_id ****
744: -- if p_orgfcst_version_id does not have a period_profile_id
745: if (x_time_phase_code <> 'N') and
746: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
747: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
748: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
749: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
750: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
751: end if;

Line 748: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

744: -- if p_orgfcst_version_id does not have a period_profile_id
745: if (x_time_phase_code <> 'N') and
746: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
747: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
748: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
749: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
750: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
751: end if;
752: end if;

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

745: if (x_time_phase_code <> 'N') and
746: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
747: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
748: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
749: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
750: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
751: end if;
752: end if;
753: */

Line 750: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

746: (pa_fp_view_plans_util.has_period_profile_id(p_orgfcst_version_id) = 'N') then
747: if pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' then
748: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
749: elsif pa_fp_view_plans_util.has_period_profile_id(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
750: x_primary_pp_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
751: end if;
752: end if;
753: */
754: if Pa_Prj_Period_Profile_Utils.has_preceding_periods

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

751: end if;
752: end if;
753: */
754: if Pa_Prj_Period_Profile_Utils.has_preceding_periods
755: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
756: Pa_Prj_Period_Profile_Utils.has_preceding_periods
757: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
758: x_prec_pds_flag := 'Y';
759: else

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

753: */
754: if Pa_Prj_Period_Profile_Utils.has_preceding_periods
755: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
756: Pa_Prj_Period_Profile_Utils.has_preceding_periods
757: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
758: x_prec_pds_flag := 'Y';
759: else
760: x_prec_pds_flag := 'N';
761: end if;

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

759: else
760: x_prec_pds_flag := 'N';
761: end if;
762: if Pa_Prj_Period_Profile_Utils.has_succeeding_periods
763: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
764: Pa_Prj_Period_Profile_Utils.has_succeeding_periods
765: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
766: x_succ_pds_flag := 'Y';
767: else

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

761: end if;
762: if Pa_Prj_Period_Profile_Utils.has_succeeding_periods
763: (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID) = 'Y' or
764: Pa_Prj_Period_Profile_Utils.has_succeeding_periods
765: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID) = 'Y' then
766: x_succ_pds_flag := 'Y';
767: else
768: x_succ_pds_flag := 'N';
769: end if;

Line 776: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

772: request_id
773: into l_plan_processing_code,
774: l_request_id
775: from pa_budget_versions
776: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
777: if l_request_id is not null then
778: x_refresh_req_id := l_request_id;
779: end if;
780: select plan_processing_code,

Line 785: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

781: request_id
782: into l_plan_processing_code2,
783: l_request_id
784: from pa_budget_versions
785: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
786: if l_request_id is not null then
787: x_refresh_req_id := l_request_id;
788: end if;
789: if (l_plan_processing_code = 'PPP') or (l_plan_processing_code2 = 'PPP') then

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

795: -- PRECEDING/SUCCEEDING PERIODS:
796: -- if we are not displaying the first period in profile, hide preceding periods
797: -- if we are not displaying the last period in profile, hide succeeding periods
798: if p_amt_or_pd = 'P' then
799: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
800: x_prec_pds_flag := 'N';
801: end if;
802: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
803: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

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

798: if p_amt_or_pd = 'P' then
799: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
800: x_prec_pds_flag := 'N';
801: end if;
802: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
803: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
804: x_succ_pds_flag := 'N';
805: end if;
806: else

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

799: if pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 <> pa_fp_view_plans_pub.G_FP_PLAN_START_DATE then
800: x_prec_pds_flag := 'N';
801: end if;
802: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
803: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
804: x_succ_pds_flag := 'N';
805: end if;
806: else
807: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

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

803: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
804: x_succ_pds_flag := 'N';
805: end if;
806: else
807: if pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 < pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
808: x_succ_pds_flag := 'N';
809: end if;
810: end if;
811: end if;

Line 813: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;

809: end if;
810: end if;
811: end if;
812: -- -----> BEGIN bug fix 2821568 <-----
813: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;
814: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
815: -- -----> END bug fix 2821568 <-----
816:
817: -- ----> BEGIN bug fix 2812381 <----

Line 814: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;

810: end if;
811: end if;
812: -- -----> BEGIN bug fix 2821568 <-----
813: pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC := x_prec_pds_flag;
814: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
815: -- -----> END bug fix 2821568 <-----
816:
817: -- ----> BEGIN bug fix 2812381 <----
818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then

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

814: pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC := x_succ_pds_flag;
815: -- -----> END bug fix 2821568 <-----
816:
817: -- ----> BEGIN bug fix 2812381 <----
818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

815: -- -----> END bug fix 2821568 <-----
816:
817: -- ----> BEGIN bug fix 2812381 <----
818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;

Line 820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

816:
817: -- ----> BEGIN bug fix 2812381 <----
818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;
824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then

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

817: -- ----> BEGIN bug fix 2812381 <----
818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;
824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
825: x_cost_bv_id := -1;

Line 822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

818: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
819: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;
824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
825: x_cost_bv_id := -1;
826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

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

820: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
821: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;
824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
825: x_cost_bv_id := -1;
826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
827: else
828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

822: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
823: x_revenue_bv_id := -1;
824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
825: x_cost_bv_id := -1;
826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
827: else
828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
829: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
830: end if;

Line 828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

824: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
825: x_cost_bv_id := -1;
826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
827: else
828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
829: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
830: end if;
831: /*
832: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 829: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

825: x_cost_bv_id := -1;
826: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
827: else
828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
829: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
830: end if;
831: /*
832: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
833: if x_cost_bv_id is null then

Line 832: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

828: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
829: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
830: end if;
831: /*
832: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
833: if x_cost_bv_id is null then
834: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
835: x_cost_bv_id := -1;
836: else

Line 834: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

830: end if;
831: /*
832: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
833: if x_cost_bv_id is null then
834: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
835: x_cost_bv_id := -1;
836: else
837: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
838: end if;

Line 837: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

833: if x_cost_bv_id is null then
834: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
835: x_cost_bv_id := -1;
836: else
837: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
838: end if;
839: end if;
840: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
841: if x_revenue_bv_id is null then

Line 840: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

836: else
837: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
838: end if;
839: end if;
840: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
841: if x_revenue_bv_id is null then
842: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
843: x_revenue_bv_id := -1;
844: else

Line 842: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

838: end if;
839: end if;
840: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
841: if x_revenue_bv_id is null then
842: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
843: x_revenue_bv_id := -1;
844: else
845: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
846: end if;

Line 845: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

841: if x_revenue_bv_id is null then
842: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
843: x_revenue_bv_id := -1;
844: else
845: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
846: end if;
847: end if;
848: */
849: -- ----> END bug fix 2812381 <----

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

849: -- ----> END bug fix 2812381 <----
850:
851: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
852: -- COST VERSION
853: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
854: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('COST', 'BOTH', 'ANY')) then
855: --hr_utility.trace('figuring out cost LOCKED BY');
856: select record_version_number, -- OUTPUT: x_cost_rv_number
857: budget_status_code -- OUTPUT: x_cost_budget_status_code

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

850:
851: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
852: -- COST VERSION
853: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
854: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('COST', 'BOTH', 'ANY')) then
855: --hr_utility.trace('figuring out cost LOCKED BY');
856: select record_version_number, -- OUTPUT: x_cost_rv_number
857: budget_status_code -- OUTPUT: x_cost_budget_status_code
858: into x_cost_rv_number,

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

857: budget_status_code -- OUTPUT: x_cost_budget_status_code
858: into x_cost_rv_number,
859: x_cost_budget_status_code
860: from pa_budget_versions
861: --4/16/03 where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
862: where budget_version_id = x_cost_bv_id;
863: pa_fin_plan_utils.Check_Locked_By_User
864: (p_user_id => p_user_id,
865: --4/16/03 p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

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

861: --4/16/03 where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
862: where budget_version_id = x_cost_bv_id;
863: pa_fin_plan_utils.Check_Locked_By_User
864: (p_user_id => p_user_id,
865: --4/16/03 p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
866: p_budget_version_id => x_cost_bv_id,
867: x_is_locked_by_userid => l_is_cost_locked_by_user,
868: x_locked_by_person_id => l_cost_locked_by_person_id,
869: x_return_status => l_return_status,

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

880: end if; -- is_cost_locked_by_user
881: end if; -- END:COST VERSION
882:
883: -- REVENUE VERSION
884: if (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) and
885: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('REVENUE', 'BOTH', 'ANY')) then
886: --hr_utility.trace('figuring out revenue LOCKED BY');
887: select record_version_number, -- OUTPUT: x_rev_rv_number
888: budget_status_code -- OUTPUT: x_rev_budget_status_code

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

881: end if; -- END:COST VERSION
882:
883: -- REVENUE VERSION
884: if (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) and
885: (pa_fp_view_plans_pub.G_DISPLAY_FROM in ('REVENUE', 'BOTH', 'ANY')) then
886: --hr_utility.trace('figuring out revenue LOCKED BY');
887: select record_version_number, -- OUTPUT: x_rev_rv_number
888: budget_status_code -- OUTPUT: x_rev_budget_status_code
889: into x_rev_rv_number,

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

888: budget_status_code -- OUTPUT: x_rev_budget_status_code
889: into x_rev_rv_number,
890: x_rev_budget_status_code
891: from pa_budget_versions
892: -- where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
893: where budget_version_id = x_revenue_bv_id;
894: pa_fin_plan_utils.Check_Locked_By_User
895: (p_user_id => p_user_id,
896: -- p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

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

892: -- where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
893: where budget_version_id = x_revenue_bv_id;
894: pa_fin_plan_utils.Check_Locked_By_User
895: (p_user_id => p_user_id,
896: -- p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
897: p_budget_version_id => x_revenue_bv_id,
898: x_is_locked_by_userid => l_is_rev_locked_by_user,
899: x_locked_by_person_id => l_rev_locked_by_person_id,
900: x_return_status => l_return_status,

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

912: end if; -- END:REVENUE VERSION
913:
914:
915: --hr_utility.trace('after calling locked version stuff');
916: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

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

913:
914:
915: --hr_utility.trace('after calling locked version stuff');
916: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

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

914:
915: --hr_utility.trace('after calling locked version stuff');
916: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
922: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

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

915: --hr_utility.trace('after calling locked version stuff');
916: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
922: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
923: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));

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

916: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
922: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
923: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
924: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));

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

917: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
922: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
923: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
924: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
925:

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

918: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
919: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
920: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
921: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
922: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
923: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
924: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
925:
926: EXCEPTION

Line 932: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

928: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
929: x_msg_count := 1;
930: x_msg_data := SQLERRM;
931: FND_MSG_PUB.add_exc_msg
932: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
933: p_procedure_name => 'pa_fp_viewplan_hgrid_init');
934:
935: END pa_fp_viewplan_hgrid_init;
936: /* ------------------------------------------------------------------------- */

Line 1103: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;

1099: ,x_unit_of_measure => l_unit_of_measure
1100: ,x_return_status => l_return_status
1101: ,x_msg_count => l_msg_count
1102: ,x_msg_data => l_msg_data);
1103: pa_fp_view_plans_pub.G_UNCAT_RLM_ID := l_uncat_rlm_id;
1104:
1105: -- FIRST, deal with all the initialization that we did in the non-Hgrid page
1106: ---------- BEGIN non-Hgrid initialization ----------
1107:

Line 1123: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := l_ci_budget_version_id;

1119:
1120: --- >>>> PROCESSING FOR FIRST ROW <<<< ---
1121: if l_ci_row_index = 1 then
1122: l_ci_budget_version_id := ci_rec.budget_version_id;
1123: pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID := l_ci_budget_version_id;
1124: select fin_plan_type_id,
1125: proj_fp_options_id
1126: into l_fin_plan_type_id,
1127: l_proj_fp_options_id

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

1168: select projfunc_currency_code
1169: into x_view_currency_code
1170: from pa_projects_all
1171: where project_id = p_project_id;
1172: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJFUNC';
1173: else
1174: -- NOT APPROVED REVENUE: go with Project Currency
1175: x_ar_flag := 'N';
1176: -- get PROJECT CURRENCY

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

1177: select project_currency_code
1178: into x_view_currency_code
1179: from pa_projects_all
1180: where project_id = p_project_id;
1181: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := 'PROJECT';
1182: end if; -- approved revenue flag
1183: /*
1184: if l_uncategorized_flag = 'Y' then
1185: x_planned_resources_flag := 'N';

Line 1206: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;

1202: from pa_proj_fp_options
1203: where project_id = p_project_id and
1204: fin_plan_type_id = l_fin_plan_type_id and
1205: fin_plan_option_level_code = 'PLAN_TYPE';
1206: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1207: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1208: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1209:
1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;

Line 1207: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;

1203: where project_id = p_project_id and
1204: fin_plan_type_id = l_fin_plan_type_id and
1205: fin_plan_option_level_code = 'PLAN_TYPE';
1206: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1207: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1208: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1209:
1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1211:

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

1204: fin_plan_type_id = l_fin_plan_type_id and
1205: fin_plan_option_level_code = 'PLAN_TYPE';
1206: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1207: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1208: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1209:
1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1211:
1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then

Line 1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;

1206: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_report_labor_hrs_from_code;
1207: pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID := l_fin_plan_type_id;
1208: --pa_fp_view_plans_pub.G_MULTI_CURR_FLAG := ci_rec.plan_in_multi_curr_flag;
1209:
1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1211:
1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

Line 1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1209:
1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1211:
1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1215: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1216: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1217: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';

Line 1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1210: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_code;
1211:
1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1215: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1216: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1217: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1218: --x_grouping_type := l_grouping_type;

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

1211:
1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1215: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1216: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1217: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1218: --x_grouping_type := l_grouping_type;
1219: -- set planning level code for page: P, T, L, or M

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

1212: if l_fp_preference_code = 'COST_AND_REV_SAME' then
1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1215: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1216: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1217: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1218: --x_grouping_type := l_grouping_type;
1219: -- set planning level code for page: P, T, L, or M
1220: /*

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

1213: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1214: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1215: --pa_fp_view_plans_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1216: --pa_fp_view_plans_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1217: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
1218: --x_grouping_type := l_grouping_type;
1219: -- set planning level code for page: P, T, L, or M
1220: /*
1221: select all_fin_plan_level_code

Line 1233: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1229: --x_cost_rl_id := l_resource_list_id;
1230: --x_rev_rl_id := l_resource_list_id;
1231:
1232: elsif l_fp_preference_code = 'COST_ONLY' then
1233: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1234: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1235: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1236: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1237: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

Line 1234: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;

1230: --x_rev_rl_id := l_resource_list_id;
1231:
1232: elsif l_fp_preference_code = 'COST_ONLY' then
1233: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1234: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1235: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1236: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1237: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
1238: --x_grouping_type := l_grouping_type;

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

1233: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1234: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := -1;
1235: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1236: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1237: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
1238: --x_grouping_type := l_grouping_type;
1239: -- set planning level code for page: P, T, L, or M
1240: /*
1241: select cost_fin_plan_level_code

Line 1253: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;

1249: --x_cost_rl_id := l_resource_list_id;
1250: --x_rev_rl_id := -1;
1251:
1252: elsif l_fp_preference_code = 'REVENUE_ONLY' then
1253: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1254: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1255: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1256: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1257: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

Line 1254: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1250: --x_rev_rl_id := -1;
1251:
1252: elsif l_fp_preference_code = 'REVENUE_ONLY' then
1253: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1254: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1255: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1256: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1257: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
1258: --x_grouping_type := l_grouping_type;

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

1253: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := -1;
1254: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1255: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1256: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1257: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
1258: --x_grouping_type := l_grouping_type;
1259: -- set planning level code for page: P, T, L, or M
1260: /*
1261: select revenue_fin_plan_level_code

Line 1294: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1290: from pa_budget_versions bv,
1291: pa_resource_lists_all_bg rl
1292: where bv.budget_version_id = ci_rec.budget_version_id and
1293: bv.resource_list_id = rl.resource_list_id;
1294: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1295: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1296: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1297: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1298: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

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

1291: pa_resource_lists_all_bg rl
1292: where bv.budget_version_id = ci_rec.budget_version_id and
1293: bv.resource_list_id = rl.resource_list_id;
1294: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1295: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1296: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1297: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1298: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1299: /*

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

1294: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1295: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1296: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1297: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1298: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1299: /*
1300: if l_grouping_type = 'GROUPED' then
1301: if l_compl_grouping_type = 'GROUPED' then
1302: x_grouping_type := 'GROUPED';

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

1352: from pa_budget_versions bv,
1353: pa_resource_lists_all_bg rl
1354: where bv.budget_version_id = ci_rec.budget_version_id and
1355: bv.resource_list_id = rl.resource_list_id;
1356: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1357: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1358: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1359: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1360: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1357: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1353: pa_resource_lists_all_bg rl
1354: where bv.budget_version_id = ci_rec.budget_version_id and
1355: bv.resource_list_id = rl.resource_list_id;
1356: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1357: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1358: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1359: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1360: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1361: /*

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

1356: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1357: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1358: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1359: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1360: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1361: /*
1362: if l_grouping_type = 'GROUPED' then
1363: if l_compl_grouping_type = 'GROUPED' then
1364: x_grouping_type := 'GROUPED';

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

1415: from pa_budget_versions bv,
1416: pa_resource_lists_all_bg rl
1417: where bv.budget_version_id = ci_rec.budget_version_id and
1418: bv.resource_list_id = rl.resource_list_id;
1419: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1420: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1421: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1422: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1423: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 1420: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;

1416: pa_resource_lists_all_bg rl
1417: where bv.budget_version_id = ci_rec.budget_version_id and
1418: bv.resource_list_id = rl.resource_list_id;
1419: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1420: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1421: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1422: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1423: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1424: /*

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

1419: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := ci_rec.budget_version_id;
1420: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_ci_budget_version_id;
1421: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_compl_grouping_type;
1422: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_grouping_type;
1423: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1424: /*
1425: if l_grouping_type = 'GROUPED' then
1426: if l_compl_grouping_type = 'GROUPED' then
1427: x_grouping_type := 'GROUPED';

Line 1481: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;

1477: from pa_budget_versions bv,
1478: pa_resource_lists_all_bg rl
1479: where bv.budget_version_id = ci_rec.budget_version_id and
1480: bv.resource_list_id = rl.resource_list_id;
1481: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1482: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1483: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1484: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1485: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

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

1478: pa_resource_lists_all_bg rl
1479: where bv.budget_version_id = ci_rec.budget_version_id and
1480: bv.resource_list_id = rl.resource_list_id;
1481: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1482: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1483: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1484: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1485: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1486: /*

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

1481: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_ci_budget_version_id;
1482: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := ci_rec.budget_version_id;
1483: --pa_fp_view_plans_txn_pub.G_COST_VERSION_GROUPING := l_grouping_type;
1484: --pa_fp_view_plans_txn_pub.G_REV_VERSION_GROUPING := l_compl_grouping_type;
1485: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
1486: /*
1487: if l_grouping_type = 'GROUPED' then
1488: if l_compl_grouping_type = 'GROUPED' then
1489: x_grouping_type := 'GROUPED';

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

1540: into l_project_id,
1541: l_projfunc_currency_code
1542: from pa_budget_versions bv,
1543: pa_projects_all pa
1544: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and
1545: bv.project_id = pa.project_id;
1546: select nvl(org_id,-99)
1547: into l_org_id
1548: from pa_projects_all

Line 1550: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;

1546: select nvl(org_id,-99)
1547: into l_org_id
1548: from pa_projects_all
1549: where project_id = l_project_id;
1550: pa_fp_view_plans_pub.G_FP_ORG_ID := l_org_id;
1551: x_view_currency_code := l_projfunc_currency_code; -- OUTPUT: x_view_currency_code
1552:
1553: BEGIN
1554: select fin_plan_start_date, fin_plan_end_date, fin_plan_type_id

Line 1561: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

1557: into ll_plan_start_date,ll_plan_end_date, l_fin_plan_type_id
1558: -- l_default_amount_type_code,
1559: -- l_default_amount_subtype_code
1560: from pa_proj_fp_options
1561: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1562:
1563: -- DERIVE MARGIN FROM CODE: get from PLAN TYPE entry
1564: select proj_fp_options_id,
1565: margin_derived_from_code,

Line 1581: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

1577: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1578: x_msg_count := 1;
1579: x_msg_data := SQLERRM;
1580: FND_MSG_PUB.add_exc_msg
1581: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
1582: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
1583: END;
1584: --hr_utility.trace('stage 100 passed');
1585: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id

Line 1586: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;

1582: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan start/end dates: 100');
1583: END;
1584: --hr_utility.trace('stage 100 passed');
1585: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
1586: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
1587: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
1588: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
1589: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
1590:

Line 1588: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;

1584: --hr_utility.trace('stage 100 passed');
1585: x_plan_type_id := l_fin_plan_type_id; -- OUTPUT: x_plan_type_id
1586: pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM := l_margin_derived_from_code;
1587: x_calc_margin_from := l_margin_derived_from_code; -- OUTPUT: x_calc_margin_from
1588: pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM := l_labor_hours_from_code;
1589: x_labor_hrs_from_code := l_labor_hours_from_code; -- OUTPUT: x_labor_hrs_from_code
1590:
1591:
1592: -- USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS PAGE)

Line 1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;

1598: end if;
1599:
1600: -- set the display from flags
1601: if l_user_bv_flag = 'Y' then
1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;

Line 1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;

1599:
1600: -- set the display from flags
1601: if l_user_bv_flag = 'Y' then
1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;

Line 1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;

1600: -- set the display from flags
1601: if l_user_bv_flag = 'Y' then
1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1608: x_factor_by_code := null;

Line 1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;

1601: if l_user_bv_flag = 'Y' then
1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1608: x_factor_by_code := null;
1609: else

Line 1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;

1602: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := p_display_quantity;
1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1608: x_factor_by_code := null;
1609: else
1610: -- retrieve default settings

Line 1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;

1603: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := p_display_rawcost;
1604: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := p_display_burdcost;
1605: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := p_display_revenue;
1606: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := p_display_margin;
1607: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := p_display_marginpct;
1608: x_factor_by_code := null;
1609: else
1610: -- retrieve default settings
1611: select DECODE(bv.version_type,

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

1618: l_version_type,
1619: x_factor_by_code -- OUTPUT: x_factor_by_code
1620: from pa_budget_versions bv,
1621: pa_proj_fp_options po
1622: where bv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID and
1623: bv.fin_plan_type_id = po.fin_plan_type_id and
1624: po.project_id = l_project_id and
1625: po.fin_plan_option_level_code = 'PLAN_TYPE';
1626: select DECODE(l_version_type,

Line 1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;

1643: l_display_margin,
1644: l_display_marginpct
1645: from pa_fin_plan_amount_sets
1646: where fin_plan_amount_set_id = l_amount_set_id;
1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

Line 1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;

1644: l_display_marginpct
1645: from pa_fin_plan_amount_sets
1646: where fin_plan_amount_set_id = l_amount_set_id;
1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

Line 1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;

1645: from pa_fin_plan_amount_sets
1646: where fin_plan_amount_set_id = l_amount_set_id;
1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;

Line 1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;

1646: where fin_plan_amount_set_id = l_amount_set_id;
1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);

Line 1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;

1647: pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY := l_display_quantity;
1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);

Line 1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;

1648: pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST := l_display_rawcost;
1649: pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST := l_display_burdcost;
1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);

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

1650: pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE := l_display_revenue;
1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);

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

1651: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN := l_display_margin;
1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);

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

1652: pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT := l_display_marginpct;
1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1660:

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

1653: end if;
1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1660:
1661: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy

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

1654: --hr_utility.trace('quantityflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY);
1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1660:
1661: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1662: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

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

1655: --hr_utility.trace('rawcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST);
1656: --hr_utility.trace('burdenedcostflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST);
1657: --hr_utility.trace('revenueflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE);
1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1660:
1661: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1662: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1663: l_default_amount_type_code := 'QUANTITY';

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

1658: --hr_utility.trace('marginflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN);
1659: --hr_utility.trace('marginpctflag= ' || pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT);
1660:
1661: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1662: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1663: l_default_amount_type_code := 'QUANTITY';
1664: l_default_amount_subtype_code := 'QUANTITY';
1665: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1666: l_default_amount_type_code := 'COST';

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

1661: -- set the DEFAULT AMOUNT TYPE/SUBTYPE CODES, based on order of hierarchy
1662: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
1663: l_default_amount_type_code := 'QUANTITY';
1664: l_default_amount_subtype_code := 'QUANTITY';
1665: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1666: l_default_amount_type_code := 'COST';
1667: l_default_amount_subtype_code := 'RAW_COST';
1668: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1669: l_default_amount_type_code := 'COST';

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

1664: l_default_amount_subtype_code := 'QUANTITY';
1665: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
1666: l_default_amount_type_code := 'COST';
1667: l_default_amount_subtype_code := 'RAW_COST';
1668: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1669: l_default_amount_type_code := 'COST';
1670: l_default_amount_subtype_code := 'BURDENED_COST';
1671: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1672: l_default_amount_type_code := 'REVENUE';

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

1667: l_default_amount_subtype_code := 'RAW_COST';
1668: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
1669: l_default_amount_type_code := 'COST';
1670: l_default_amount_subtype_code := 'BURDENED_COST';
1671: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1672: l_default_amount_type_code := 'REVENUE';
1673: l_default_amount_subtype_code := 'REVENUE';
1674: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
1675: l_default_amount_type_code := 'MARGIN';

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

1670: l_default_amount_subtype_code := 'BURDENED_COST';
1671: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
1672: l_default_amount_type_code := 'REVENUE';
1673: l_default_amount_subtype_code := 'REVENUE';
1674: elsif pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
1675: l_default_amount_type_code := 'MARGIN';
1676: l_default_amount_subtype_code := 'MARGIN';
1677: else
1678: l_default_amount_type_code := 'MARGIN_PERCENT';

Line 1685: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;

1681:
1682: -- set the user-defined budget versions source
1683: if l_user_bv_flag = 'Y' then
1684: if (p_user_cost_version_id = p_user_rev_version_id) then
1685: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1688: else
1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

Line 1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

1682: -- set the user-defined budget versions source
1683: if l_user_bv_flag = 'Y' then
1684: if (p_user_cost_version_id = p_user_rev_version_id) then
1685: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1688: else
1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1690: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

Line 1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

1683: if l_user_bv_flag = 'Y' then
1684: if (p_user_cost_version_id = p_user_rev_version_id) then
1685: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1688: else
1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1690: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1691: end if;

Line 1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;

1685: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_user_cost_version_id;
1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1688: else
1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1690: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1691: end if;
1692: select approved_rev_plan_type_flag
1693: into x_ar_flag -- OUTPUT: x_ar_flag

Line 1690: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;

1686: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1687: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1688: else
1689: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_user_cost_version_id;
1690: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_user_rev_version_id;
1691: end if;
1692: select approved_rev_plan_type_flag
1693: into x_ar_flag -- OUTPUT: x_ar_flag
1694: from pa_proj_fp_options

Line 1713: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

1709: into l_cost_or_revenue,
1710: x_budget_status_code, -- OUTPUT: x_budget_status_code
1711: x_ar_flag -- OUTPUT: x_ar_flag
1712: from pa_budget_versions
1713: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1714: end if;
1715: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

Line 1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;

1712: from pa_budget_versions
1713: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1714: end if;
1715: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1718: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1719: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1720: --hr_utility.trace('reached end of user customizations section: 200');

Line 1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;

1713: where budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
1714: end if;
1715: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1718: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1719: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1720: --hr_utility.trace('reached end of user customizations section: 200');
1721:

Line 1718: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;

1714: end if;
1715: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1718: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1719: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1720: --hr_utility.trace('reached end of user customizations section: 200');
1721:
1722: BEGIN

Line 1719: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;

1715: -- END OF USER CUSTOMIZATIONS (ADVANCED DISPLAY OPTIONS)
1716: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE := l_default_amount_type_code;
1717: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE := l_default_amount_subtype_code;
1718: pa_fp_view_plans_pub.G_FP_CURRENCY_CODE := l_projfunc_currency_code;
1719: pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE := p_view_currency_type;
1720: --hr_utility.trace('reached end of user customizations section: 200');
1721:
1722: BEGIN
1723: select pp.plan_period_type,

Line 1731: where pbv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID

1727: pp_plan_start_date,
1728: l_period_profile_id
1729: from pa_proj_period_profiles pp,
1730: pa_budget_versions pbv
1731: where pbv.budget_version_id = pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID
1732: and pp.period_profile_id = pbv.period_profile_id;
1733: EXCEPTION
1734: WHEN NO_DATA_FOUND THEN
1735: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 1739: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

1735: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1736: x_msg_count := 1;
1737: x_msg_data := SQLERRM;
1738: FND_MSG_PUB.add_exc_msg
1739: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
1740: p_procedure_name => 'pa_fp_viewplan_hgrid_init:plan period type: 300');
1741: END;
1742: --hr_utility.trace('after selecting from pa_proj_period_profiles: 300 succeeded');
1743:

Line 1794: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;

1790: ll_plan_start_date := l_plan_start_date;
1791: ll_plan_end_date := l_plan_end_date;
1792: end if;
1793:
1794: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1795: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1796: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1797: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1798: if ll_plan_period_type = 'GL' THEN

Line 1795: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;

1791: ll_plan_end_date := l_plan_end_date;
1792: end if;
1793:
1794: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1795: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1796: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1797: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1798: if ll_plan_period_type = 'GL' THEN
1799: l_num_of_periods := 6;

Line 1796: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;

1792: end if;
1793:
1794: pa_fp_view_plans_pub.G_FP_PLAN_START_DATE := ll_plan_start_date;
1795: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE := ll_plan_end_date;
1796: pa_fp_view_plans_pub.G_FP_PERIOD_TYPE := ll_plan_period_type;
1797: x_plan_period_type := ll_plan_period_type; -- OUTPUT: x_plan_period_type
1798: if ll_plan_period_type = 'GL' THEN
1799: l_num_of_periods := 6;
1800: else

Line 1812: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;

1808: if l_start_date is null then
1809: l_start_date := to_char(pp_plan_start_date);
1810: end if;
1811: elsif p_period_start_date = 'L' Then
1812: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
1813: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
1814: p_direction => 'BACKWARD',
1815: p_num_of_periods => l_num_of_periods,
1816: p_period_type => ll_plan_period_type,

Line 1813: pa_fp_view_plans_pub.pa_fp_set_periods_nav (

1809: l_start_date := to_char(pp_plan_start_date);
1810: end if;
1811: elsif p_period_start_date = 'L' Then
1812: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1:=ll_plan_end_date;
1813: pa_fp_view_plans_pub.pa_fp_set_periods_nav (
1814: p_direction => 'BACKWARD',
1815: p_num_of_periods => l_num_of_periods,
1816: p_period_type => ll_plan_period_type,
1817: x_start_date => l_start_date,

Line 1825: pa_fp_view_plans_pub.pa_fp_set_periods

1821: else
1822: l_start_date := p_period_start_date;
1823: end if;
1824:
1825: pa_fp_view_plans_pub.pa_fp_set_periods
1826: ( p_period_start_date => l_start_date,
1827: p_period_type => ll_plan_period_type,
1828: x_return_status => l_return_status,
1829: x_msg_count => l_msg_count,

Line 1857: pa_fp_view_plans_pub.view_plan_temp_tables

1853: DELETE from PA_FIN_VP_PDS_VIEW_TMP;
1854:
1855: /* -- since we've already found the complements, we call the appropriate
1856: * global temp table populating procedures ourselves
1857: pa_fp_view_plans_pub.view_plan_temp_tables
1858: (p_project_id => l_project_id,
1859: p_budget_version_id => p_orgfcst_version_id,
1860: p_cost_or_revenue => l_cost_or_revenue,
1861: p_user_bv_flag => l_user_bv_flag,

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

1882: end if;
1883: */
1884: -- END OF POPULATING GLOBAL TEMPORARY TABLE --
1885: /*
1886: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1887: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1888: -- NEED THIS IN CASE NOT USER-SPECIFIED
1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

Line 1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

1885: /*
1886: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1887: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1888: -- NEED THIS IN CASE NOT USER-SPECIFIED
1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
1891: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1892: end if;
1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

Line 1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then

1886: x_display_from := pa_fp_view_plans_pub.G_DISPLAY_FROM; -- OUTPUT: x_display_from
1887: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1888: -- NEED THIS IN CASE NOT USER-SPECIFIED
1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
1891: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1892: end if;
1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
1894: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

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

1887: x_diff_pd_profile_flag := l_diff_pd_profile_flag; -- OUTPUT: x_diff_pd_profile_flag
1888: -- NEED THIS IN CASE NOT USER-SPECIFIED
1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
1891: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1892: end if;
1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
1894: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1895: end if;

Line 1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then

1889: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
1891: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1892: end if;
1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
1894: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1895: end if;
1896: end if;
1897:

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

1890: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is null then
1891: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1892: end if;
1893: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is null then
1894: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1895: end if;
1896: end if;
1897:
1898: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle

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

1895: end if;
1896: end if;
1897:
1898: -- figure out x_time_phase_code: to decide whether or not to display the amt/pd toggle
1899: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
1900: select nvl(all_time_phased_code, 'N')
1901: into x_time_phase_code -- OUTPUT: x_time_phase_code
1902: from pa_proj_fp_options
1903: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

Line 1903: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

1899: if pa_fp_view_plans_pub.G_DISPLAY_FROM = 'ANY' then
1900: select nvl(all_time_phased_code, 'N')
1901: into x_time_phase_code -- OUTPUT: x_time_phase_code
1902: from pa_proj_fp_options
1903: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1904: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
1905: select nvl(cost_time_phased_code, 'N')
1906: into x_time_phase_code -- OUTPUT: x_time_phase_code
1907: from pa_proj_fp_options

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

1900: select nvl(all_time_phased_code, 'N')
1901: into x_time_phase_code -- OUTPUT: x_time_phase_code
1902: from pa_proj_fp_options
1903: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1904: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
1905: select nvl(cost_time_phased_code, 'N')
1906: into x_time_phase_code -- OUTPUT: x_time_phase_code
1907: from pa_proj_fp_options
1908: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

Line 1908: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

1904: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'COST' then
1905: select nvl(cost_time_phased_code, 'N')
1906: into x_time_phase_code -- OUTPUT: x_time_phase_code
1907: from pa_proj_fp_options
1908: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1909: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
1910: select nvl(revenue_time_phased_code, 'N')
1911: into x_time_phase_code -- OUTPUT: x_time_phase_code
1912: from pa_proj_fp_options

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

1905: select nvl(cost_time_phased_code, 'N')
1906: into x_time_phase_code -- OUTPUT: x_time_phase_code
1907: from pa_proj_fp_options
1908: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1909: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
1910: select nvl(revenue_time_phased_code, 'N')
1911: into x_time_phase_code -- OUTPUT: x_time_phase_code
1912: from pa_proj_fp_options
1913: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 1913: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

1909: elsif pa_fp_view_plans_pub.G_DISPLAY_FROM = 'REVENUE' then
1910: select nvl(revenue_time_phased_code, 'N')
1911: into x_time_phase_code -- OUTPUT: x_time_phase_code
1912: from pa_proj_fp_options
1913: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1914: else
1915: select nvl(cost_time_phased_code, 'N')
1916: into l_cost_time_phase_code
1917: from pa_proj_fp_options

Line 1918: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

1914: else
1915: select nvl(cost_time_phased_code, 'N')
1916: into l_cost_time_phase_code
1917: from pa_proj_fp_options
1918: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1919: select nvl(revenue_time_phased_code, 'N')
1920: into l_rev_time_phase_code
1921: from pa_proj_fp_options
1922: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 1922: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

1918: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1919: select nvl(revenue_time_phased_code, 'N')
1920: into l_rev_time_phase_code
1921: from pa_proj_fp_options
1922: where fin_plan_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1923: if l_cost_time_phase_code <> 'Y' and l_rev_time_phase_code <> 'Y' then
1924: x_time_phase_code := 'N'; -- OUTPUT: x_time_phase_code
1925: else
1926: x_time_phase_code := l_cost_time_phase_code; -- OUTPUT: x_time_phase_code

Line 1930: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

1926: x_time_phase_code := l_cost_time_phase_code; -- OUTPUT: x_time_phase_code
1927: end if;
1928: end if;
1929:
1930: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1931: if x_cost_bv_id is null then
1932: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1933: x_cost_bv_id := -1;
1934: else

Line 1932: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

1928: end if;
1929:
1930: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1931: if x_cost_bv_id is null then
1932: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1933: x_cost_bv_id := -1;
1934: else
1935: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1936: end if;

Line 1935: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

1931: if x_cost_bv_id is null then
1932: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1933: x_cost_bv_id := -1;
1934: else
1935: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1936: end if;
1937: end if;
1938: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1939: if x_revenue_bv_id is null then

Line 1938: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

1934: else
1935: x_cost_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1936: end if;
1937: end if;
1938: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1939: if x_revenue_bv_id is null then
1940: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1941: x_revenue_bv_id := -1;
1942: else

Line 1940: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

1936: end if;
1937: end if;
1938: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1939: if x_revenue_bv_id is null then
1940: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1941: x_revenue_bv_id := -1;
1942: else
1943: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1944: end if;

Line 1943: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

1939: if x_revenue_bv_id is null then
1940: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
1941: x_revenue_bv_id := -1;
1942: else
1943: x_revenue_bv_id := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
1944: end if;
1945: end if;
1946:
1947: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS

Line 1949: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

1945: end if;
1946:
1947: -- figure out LOCKED BY after version sources set; also get RECORD VERSION NUMBERS
1948: -- COST VERSION
1949: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
1950: --hr_utility.trace('figuring out cost LOCKED BY');
1951: select record_version_number, -- OUTPUT: x_cost_rv_number
1952: budget_status_code -- OUTPUT: x_budget_status_code
1953: into x_cost_rv_number,

Line 1956: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

1952: budget_status_code -- OUTPUT: x_budget_status_code
1953: into x_cost_rv_number,
1954: x_budget_status_code
1955: from pa_budget_versions
1956: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1957: pa_fin_plan_utils.Check_Locked_By_User
1958: (p_user_id => p_user_id,
1959: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
1960: x_is_locked_by_userid => l_is_cost_locked_by_user,

Line 1959: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

1955: from pa_budget_versions
1956: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
1957: pa_fin_plan_utils.Check_Locked_By_User
1958: (p_user_id => p_user_id,
1959: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
1960: x_is_locked_by_userid => l_is_cost_locked_by_user,
1961: x_locked_by_person_id => l_cost_locked_by_person_id,
1962: x_return_status => l_return_status,
1963: x_msg_count => l_msg_count,

Line 1977: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null then

1973: end if; -- is_cost_locked_by_user
1974: end if; -- END:COST VERSION
1975:
1976: -- REVENUE VERSION
1977: if pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null then
1978: --hr_utility.trace('figuring out revenue LOCKED BY');
1979: select record_version_number, -- OUTPUT: x_rev_rv_number
1980: budget_status_code -- OUTPUT: x_budget_status_code
1981: into x_rev_rv_number,

Line 1984: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

1980: budget_status_code -- OUTPUT: x_budget_status_code
1981: into x_rev_rv_number,
1982: x_budget_status_code
1983: from pa_budget_versions
1984: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1985: pa_fin_plan_utils.Check_Locked_By_User
1986: (p_user_id => p_user_id,
1987: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
1988: x_is_locked_by_userid => l_is_rev_locked_by_user,

Line 1987: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

1983: from pa_budget_versions
1984: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
1985: pa_fin_plan_utils.Check_Locked_By_User
1986: (p_user_id => p_user_id,
1987: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
1988: x_is_locked_by_userid => l_is_rev_locked_by_user,
1989: x_locked_by_person_id => l_rev_locked_by_person_id,
1990: x_return_status => l_return_status,
1991: x_msg_count => l_msg_count,

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

2002: end if; -- END:REVENUE VERSION
2003:
2004:
2005: --hr_utility.trace('after calling locked version stuff');
2006: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));

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

2003:
2004:
2005: --hr_utility.trace('after calling locked version stuff');
2006: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));

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

2004:
2005: --hr_utility.trace('after calling locked version stuff');
2006: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2012: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));

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

2005: --hr_utility.trace('after calling locked version stuff');
2006: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2012: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2013: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));

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

2006: --hr_utility.trace('G_FP_PERIOD_TYPE = ' || pa_fp_view_plans_pub.G_FP_PERIOD_TYPE);
2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2012: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2013: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2014: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));

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

2007: --hr_utility.trace('G_FP_VIEW_START_DATE1 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1));
2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2012: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2013: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2014: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
2015: --hr_utility.trace('x_budget_status_code= ' || x_budget_status_code);

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

2008: --hr_utility.trace('G_FP_VIEW_START_DATE2 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2));
2009: --hr_utility.trace('G_FP_VIEW_START_DATE3 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3));
2010: --hr_utility.trace('G_FP_VIEW_START_DATE4 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4));
2011: --hr_utility.trace('G_FP_VIEW_START_DATE5 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5));
2012: --hr_utility.trace('G_FP_VIEW_START_DATE6 = ' || to_char(pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6));
2013: --hr_utility.trace('x_cost_rv_number= ' || TO_CHAR(x_cost_rv_number));
2014: --hr_utility.trace('x_rev_rv_number= ' || TO_CHAR(x_rev_rv_number));
2015: --hr_utility.trace('x_budget_status_code= ' || x_budget_status_code);
2016: */

Line 2024: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

2020: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2021: x_msg_count := 1;
2022: x_msg_data := SQLERRM;
2023: FND_MSG_PUB.add_exc_msg
2024: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
2025: p_procedure_name => 'pa_fp_viewplan_hgrid_init');
2026: END pa_fp_viewplan_hgrid_init_ci;
2027:
2028:

Line 2050: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;

2046: BEGIN
2047:
2048: x_return_status := FND_API.G_RET_STS_SUCCESS;
2049:
2050: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;
2051: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;
2052: l_budget_version_id := p_budget_version_id;
2053:
2054: l_start_date := p_start_period;

Line 2051: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;

2047:
2048: x_return_status := FND_API.G_RET_STS_SUCCESS;
2049:
2050: pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE := p_amount_type_code;
2051: pa_fp_view_plans_pub.G_FP_RA_ID := p_resource_assignment_id;
2052: l_budget_version_id := p_budget_version_id;
2053:
2054: l_start_date := p_start_period;
2055:

Line 2056: pa_fp_view_plans_pub.pa_fp_set_orgfcst_version_id

2052: l_budget_version_id := p_budget_version_id;
2053:
2054: l_start_date := p_start_period;
2055:
2056: pa_fp_view_plans_pub.pa_fp_set_orgfcst_version_id
2057: (p_orgfcst_version_id => l_budget_version_id,
2058: p_period_start_date => l_start_date,
2059: x_return_status => l_return_status,
2060: x_msg_count => l_msg_count,

Line 2068: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',

2064: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2065: x_msg_count := 1;
2066: x_msg_data := SQLERRM;
2067: FND_MSG_PUB.add_exc_msg
2068: ( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
2069: p_procedure_name => 'pa_fp_viewby_set_globals');
2070: END pa_fp_viewby_set_globals;
2071: */
2072:

Line 2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;

2131: -- 1. initialized all global start date variables to null
2132: -- 2. populated global variables only if records exist for them in the
2133: -- PL/SQL table
2134:
2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;

Line 2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;

2132: -- 2. populated global variables only if records exist for them in the
2133: -- PL/SQL table
2134:
2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;

Line 2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;

2133: -- PL/SQL table
2134:
2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;

Line 2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;

2134:
2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;

Line 2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;

2135: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := null;
2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;

Line 2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;

2136: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := null;
2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;

Line 2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;

2137: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := null;
2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;

Line 2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;

2138: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := null;
2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;

Line 2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;

2139: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := null;
2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;

Line 2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;

2140: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := null;
2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;

Line 2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;

2141: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := null;
2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;

Line 2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;

2142: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := null;
2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;

Line 2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;

2143: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := null;
2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;

Line 2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;

2144: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := null;
2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;

Line 2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;

2145: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := null;
2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;

Line 2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;

2146: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := null;
2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;

Line 2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;

2147: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := null;
2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;

Line 2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;

2148: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := null;
2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;

Line 2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;

2149: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := null;
2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;

Line 2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;

2150: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := null;
2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;

Line 2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;

2151: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := null;
2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;

Line 2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;

2152: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := null;
2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;

Line 2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;

2153: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := null;
2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2161:

Line 2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;

2154: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := null;
2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2161:
2162:

Line 2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;

2155: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := null;
2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2161:
2162:
2163: if i > 1 then

Line 2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;

2156: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := null;
2157: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := null;
2158: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := null;
2159: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := null;
2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2161:
2162:
2163: if i > 1 then
2164: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);

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

2160: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := null;
2161:
2162:
2163: if i > 1 then
2164: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2165: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2166: end if;
2167: if i > 2 then
2168: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);

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

2161:
2162:
2163: if i > 1 then
2164: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2165: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2166: end if;
2167: if i > 2 then
2168: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2169: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);

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

2164: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1 := v_start_date_tab(0);
2165: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2166: end if;
2167: if i > 2 then
2168: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2169: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2170: end if;
2171: if i > 3 then
2172: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);

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

2165: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE1 := v_end_date_tab(0);
2166: end if;
2167: if i > 2 then
2168: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2169: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2170: end if;
2171: if i > 3 then
2172: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2173: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);

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

2168: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2 := v_start_date_tab(1);
2169: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2170: end if;
2171: if i > 3 then
2172: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2173: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2174: end if;
2175: if i > 4 then
2176: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);

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

2169: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE2 := v_end_date_tab(1);
2170: end if;
2171: if i > 3 then
2172: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2173: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2174: end if;
2175: if i > 4 then
2176: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2177: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);

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

2172: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3 := v_start_date_tab(2);
2173: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2174: end if;
2175: if i > 4 then
2176: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2177: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2178: end if;
2179: if i > 5 then
2180: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);

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

2173: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE3 := v_end_date_tab(2);
2174: end if;
2175: if i > 4 then
2176: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2177: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2178: end if;
2179: if i > 5 then
2180: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2181: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);

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

2176: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4 := v_start_date_tab(3);
2177: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2178: end if;
2179: if i > 5 then
2180: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2181: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2182: end if;
2183: if i > 6 then
2184: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);

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

2177: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE4 := v_end_date_tab(3);
2178: end if;
2179: if i > 5 then
2180: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2181: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2182: end if;
2183: if i > 6 then
2184: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2185: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);

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

2180: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5 := v_start_date_tab(4);
2181: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2182: end if;
2183: if i > 6 then
2184: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2185: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);
2186: end if;
2187:
2188: if p_period_type = 'PA' THEN

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

2181: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE5 := v_end_date_tab(4);
2182: end if;
2183: if i > 6 then
2184: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6 := v_start_date_tab(5);
2185: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE6 := v_end_date_tab(5);
2186: end if;
2187:
2188: if p_period_type = 'PA' THEN
2189: if i > 7 then

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

2186: end if;
2187:
2188: if p_period_type = 'PA' THEN
2189: if i > 7 then
2190: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2191: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2192: end if;
2193: if i > 8 then
2194: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);

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

2187:
2188: if p_period_type = 'PA' THEN
2189: if i > 7 then
2190: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2191: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2192: end if;
2193: if i > 8 then
2194: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2195: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);

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

2190: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7 := v_start_date_tab(6);
2191: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2192: end if;
2193: if i > 8 then
2194: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2195: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2196: end if;
2197: if i > 9 then
2198: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);

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

2191: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE7 := v_end_date_tab(6);
2192: end if;
2193: if i > 8 then
2194: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2195: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2196: end if;
2197: if i > 9 then
2198: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2199: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);

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

2194: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8 := v_start_date_tab(7);
2195: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2196: end if;
2197: if i > 9 then
2198: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2199: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2200: end if;
2201: if i > 10 then
2202: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);

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

2195: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE8 := v_end_date_tab(7);
2196: end if;
2197: if i > 9 then
2198: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2199: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2200: end if;
2201: if i > 10 then
2202: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2203: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);

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

2198: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9 := v_start_date_tab(8);
2199: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2200: end if;
2201: if i > 10 then
2202: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2203: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2204: end if;
2205: if i > 11 then
2206: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);

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

2199: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE9 := v_end_date_tab(8);
2200: end if;
2201: if i > 10 then
2202: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2203: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2204: end if;
2205: if i > 11 then
2206: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2207: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);

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

2202: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10 := v_start_date_tab(9);
2203: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2204: end if;
2205: if i > 11 then
2206: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2207: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2208: end if;
2209: if i > 12 then
2210: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);

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

2203: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE10 := v_end_date_tab(9);
2204: end if;
2205: if i > 11 then
2206: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2207: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2208: end if;
2209: if i > 12 then
2210: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2211: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);

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

2206: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11 := v_start_date_tab(10);
2207: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2208: end if;
2209: if i > 12 then
2210: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2211: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2212: end if;
2213: if i > 13 then
2214: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);

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

2207: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE11 := v_end_date_tab(10);
2208: end if;
2209: if i > 12 then
2210: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2211: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2212: end if;
2213: if i > 13 then
2214: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2215: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);

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

2210: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12 := v_start_date_tab(11);
2211: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2212: end if;
2213: if i > 13 then
2214: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2215: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);
2216: end if;
2217: end if;
2218:

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

2211: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE12 := v_end_date_tab(11);
2212: end if;
2213: if i > 13 then
2214: pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13 := v_start_date_tab(12);
2215: pa_fp_view_plans_pub.G_FP_VIEW_END_DATE13 := v_end_date_tab(12);
2216: end if;
2217: end if;
2218:
2219: -- END BUG FIX 3142192

Line 2251: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and

2247:
2248: SELECT start_date, end_date
2249: FROM pa_fp_periods_tmp_v
2250: WHERE start_date > l_start_date and
2251: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2252: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2253: order by start_date;
2254:
2255:

Line 2252: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE

2248: SELECT start_date, end_date
2249: FROM pa_fp_periods_tmp_v
2250: WHERE start_date > l_start_date and
2251: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2252: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2253: order by start_date;
2254:
2255:
2256: CURSOR C_backward(l_start_date IN DATE) IS

Line 2261: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and

2257:
2258: SELECT start_date
2259: FROM pa_fp_periods_tmp_v
2260: WHERE start_date < l_start_date and
2261: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2262: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2263: order by start_date desc;
2264:
2265: BEGIN

Line 2262: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE

2258: SELECT start_date
2259: FROM pa_fp_periods_tmp_v
2260: WHERE start_date < l_start_date and
2261: start_date between pa_fp_view_plans_pub.G_FP_PLAN_START_DATE and
2262: pa_fp_view_plans_pub.G_FP_PLAN_END_DATE
2263: order by start_date desc;
2264:
2265: BEGIN
2266: --hr_utility.trace_on(null, 'dlai');

Line 2269: l_start_date := pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;

2265: BEGIN
2266: --hr_utility.trace_on(null, 'dlai');
2267: l_rownum := p_num_of_periods;
2268: ll_start_date := null;
2269: l_start_date := pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;
2270:
2271: l_period_type := p_period_type;
2272:
2273: IF p_direction = 'FORWARD' THEN

Line 2287: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then

2283:
2284: END LOOP;
2285: -- if we've reached the end of the period profile, we need go loop back
2286: -- 6 or 13 periods, depending on the period type
2287: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
2288: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'PA' then
2289: l_rownum := 12;
2290: OPEN C_backward(ll_start_date);
2291: LOOP

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

2284: END LOOP;
2285: -- if we've reached the end of the period profile, we need go loop back
2286: -- 6 or 13 periods, depending on the period type
2287: if ll_end_date = pa_fp_view_plans_pub.G_FP_PLAN_END_DATE then
2288: if pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'PA' then
2289: l_rownum := 12;
2290: OPEN C_backward(ll_start_date);
2291: LOOP
2292: FETCH C_backward INTO ll_start_date;

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

2293: EXIT WHEN C_backward%NOTFOUND;
2294: EXIT WHEN C_backward%ROWCOUNT = l_rownum;
2295: END LOOP;
2296: CLOSE C_backward;
2297: elsif pa_fp_view_plans_pub.G_FP_PERIOD_TYPE = 'GL' then
2298: l_rownum := 5;
2299: OPEN C_backward(ll_start_date);
2300: LOOP
2301: FETCH C_backward INTO ll_start_date;

Line 2339: return pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;

2335:
2336:
2337: FUNCTION Get_Version_ID return NUMBER is
2338: BEGIN
2339: return pa_fp_view_plans_pub.G_FP_VIEW_VERSION_ID;
2340: END Get_Version_ID;
2341:
2342: FUNCTION Get_Cost_Version_Id return Number is
2343: BEGIN

Line 2344: return pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2340: END Get_Version_ID;
2341:
2342: FUNCTION Get_Cost_Version_Id return Number is
2343: BEGIN
2344: return pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2345: END Get_Cost_Version_id;
2346:
2347: FUNCTION Get_Rev_Version_Id return Number is
2348: BEGIN

Line 2349: return pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2345: END Get_Cost_Version_id;
2346:
2347: FUNCTION Get_Rev_Version_Id return Number is
2348: BEGIN
2349: return pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2350: END Get_Rev_Version_Id;
2351:
2352: FUNCTION Get_Org_ID return NUMBER is
2353: BEGIN

Line 2354: return pa_fp_view_plans_pub.G_FP_ORG_ID;

2350: END Get_Rev_Version_Id;
2351:
2352: FUNCTION Get_Org_ID return NUMBER is
2353: BEGIN
2354: return pa_fp_view_plans_pub.G_FP_ORG_ID;
2355: END Get_Org_ID;
2356:
2357: FUNCTION Get_Plan_Type_ID return NUMBER is
2358: BEGIN

Line 2359: return pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID;

2355: END Get_Org_ID;
2356:
2357: FUNCTION Get_Plan_Type_ID return NUMBER is
2358: BEGIN
2359: return pa_fp_view_plans_pub.G_FP_PLAN_TYPE_ID;
2360: END Get_Plan_Type_ID;
2361:
2362: FUNCTION Get_Derive_Margin_From_Code return VARCHAR2 is
2363: BEGIN

Line 2364: return pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM;

2360: END Get_Plan_Type_ID;
2361:
2362: FUNCTION Get_Derive_Margin_From_Code return VARCHAR2 is
2363: BEGIN
2364: return pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM;
2365: END Get_Derive_Margin_From_Code;
2366:
2367: FUNCTION Get_Report_Labor_Hrs_From_Code return VARCHAR2 is
2368: BEGIN

Line 2369: return pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM;

2365: END Get_Derive_Margin_From_Code;
2366:
2367: FUNCTION Get_Report_Labor_Hrs_From_Code return VARCHAR2 is
2368: BEGIN
2369: return pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM;
2370: END Get_Report_Labor_Hrs_From_Code;
2371:
2372: FUNCTION Get_Resource_assignment_ID return NUMBER is
2373: BEGIN

Line 2374: return pa_fp_view_plans_pub.G_FP_RA_ID;

2370: END Get_Report_Labor_Hrs_From_Code;
2371:
2372: FUNCTION Get_Resource_assignment_ID return NUMBER is
2373: BEGIN
2374: return pa_fp_view_plans_pub.G_FP_RA_ID;
2375: END Get_Resource_assignment_ID;
2376:
2377: FUNCTION Get_Amount_Type_code return VARCHAR2 is
2378: BEGIN

Line 2379: return pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE;

2375: END Get_Resource_assignment_ID;
2376:
2377: FUNCTION Get_Amount_Type_code return VARCHAR2 is
2378: BEGIN
2379: return pa_fp_view_plans_pub.G_FP_AMOUNT_TYPE_CODE;
2380: END Get_Amount_Type_code;
2381:
2382: FUNCTION Get_Adj_Reason_Code return VARCHAR2 is
2383: BEGIN

Line 2384: return pa_fp_view_plans_pub.G_FP_ADJ_REASON_CODE;

2380: END Get_Amount_Type_code;
2381:
2382: FUNCTION Get_Adj_Reason_Code return VARCHAR2 is
2383: BEGIN
2384: return pa_fp_view_plans_pub.G_FP_ADJ_REASON_CODE;
2385: END Get_Adj_Reason_Code;
2386:
2387: FUNCTION Get_Uncat_Res_List_Member_Id return NUMBER is
2388: BEGIN

Line 2389: return pa_fp_view_plans_pub.G_UNCAT_RLM_ID;

2385: END Get_Adj_Reason_Code;
2386:
2387: FUNCTION Get_Uncat_Res_List_Member_Id return NUMBER is
2388: BEGIN
2389: return pa_fp_view_plans_pub.G_UNCAT_RLM_ID;
2390: END Get_Uncat_Res_List_Member_Id;
2391:
2392: FUNCTION Get_Period_Start_Date1 return Date is
2393: BEGIN

Line 2394: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;

2390: END Get_Uncat_Res_List_Member_Id;
2391:
2392: FUNCTION Get_Period_Start_Date1 return Date is
2393: BEGIN
2394: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE1;
2395: END Get_Period_Start_Date1;
2396:
2397: FUNCTION Get_Period_Start_Date2 return Date is
2398: BEGIN

Line 2399: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2;

2395: END Get_Period_Start_Date1;
2396:
2397: FUNCTION Get_Period_Start_Date2 return Date is
2398: BEGIN
2399: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE2;
2400: END Get_Period_Start_Date2;
2401:
2402: FUNCTION Get_Period_Start_Date3 return Date is
2403: BEGIN

Line 2404: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3;

2400: END Get_Period_Start_Date2;
2401:
2402: FUNCTION Get_Period_Start_Date3 return Date is
2403: BEGIN
2404: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE3;
2405: END Get_Period_Start_Date3;
2406:
2407: FUNCTION Get_Period_Start_Date4 return Date is
2408: BEGIN

Line 2409: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4;

2405: END Get_Period_Start_Date3;
2406:
2407: FUNCTION Get_Period_Start_Date4 return Date is
2408: BEGIN
2409: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE4;
2410: END Get_Period_Start_Date4;
2411:
2412: FUNCTION Get_Period_Start_Date5 return Date is
2413: BEGIN

Line 2414: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5;

2410: END Get_Period_Start_Date4;
2411:
2412: FUNCTION Get_Period_Start_Date5 return Date is
2413: BEGIN
2414: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE5;
2415: END Get_Period_Start_Date5;
2416:
2417: FUNCTION Get_Period_Start_Date6 return Date is
2418: BEGIN

Line 2419: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6;

2415: END Get_Period_Start_Date5;
2416:
2417: FUNCTION Get_Period_Start_Date6 return Date is
2418: BEGIN
2419: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE6;
2420: END Get_Period_Start_Date6;
2421:
2422: FUNCTION Get_Period_Start_Date7 return Date is
2423: BEGIN

Line 2424: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7;

2420: END Get_Period_Start_Date6;
2421:
2422: FUNCTION Get_Period_Start_Date7 return Date is
2423: BEGIN
2424: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE7;
2425: END Get_Period_Start_Date7;
2426:
2427: FUNCTION Get_Period_Start_Date8 return Date is
2428: BEGIN

Line 2429: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8;

2425: END Get_Period_Start_Date7;
2426:
2427: FUNCTION Get_Period_Start_Date8 return Date is
2428: BEGIN
2429: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE8;
2430: END Get_Period_Start_Date8;
2431:
2432: FUNCTION Get_Period_Start_Date9 return Date is
2433: BEGIN

Line 2434: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9;

2430: END Get_Period_Start_Date8;
2431:
2432: FUNCTION Get_Period_Start_Date9 return Date is
2433: BEGIN
2434: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE9;
2435: END Get_Period_Start_Date9;
2436:
2437: FUNCTION Get_Period_Start_Date10 return Date is
2438: BEGIN

Line 2439: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10;

2435: END Get_Period_Start_Date9;
2436:
2437: FUNCTION Get_Period_Start_Date10 return Date is
2438: BEGIN
2439: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE10;
2440: END Get_Period_Start_Date10;
2441:
2442: FUNCTION Get_Period_Start_Date11 return Date is
2443: BEGIN

Line 2444: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11;

2440: END Get_Period_Start_Date10;
2441:
2442: FUNCTION Get_Period_Start_Date11 return Date is
2443: BEGIN
2444: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE11;
2445: END Get_Period_Start_Date11;
2446:
2447: FUNCTION Get_Period_Start_Date12 return Date is
2448: BEGIN

Line 2449: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12;

2445: END Get_Period_Start_Date11;
2446:
2447: FUNCTION Get_Period_Start_Date12 return Date is
2448: BEGIN
2449: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE12;
2450: END Get_Period_Start_Date12;
2451:
2452:
2453: FUNCTION Get_Period_Start_Date13 return Date is

Line 2455: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13;

2451:
2452:
2453: FUNCTION Get_Period_Start_Date13 return Date is
2454: BEGIN
2455: return pa_fp_view_plans_pub.G_FP_VIEW_START_DATE13;
2456: END Get_Period_Start_Date13;
2457:
2458: FUNCTION Get_Plan_Start_Date return Date is
2459: BEGIN

Line 2460: return pa_fp_view_plans_pub.G_FP_PLAN_START_DATE;

2456: END Get_Period_Start_Date13;
2457:
2458: FUNCTION Get_Plan_Start_Date return Date is
2459: BEGIN
2460: return pa_fp_view_plans_pub.G_FP_PLAN_START_DATE;
2461: END Get_Plan_Start_Date;
2462:
2463: FUNCTION Get_Plan_End_Date return Date is
2464: BEGIN

Line 2465: return pa_fp_view_plans_pub.G_FP_PLAN_END_DATE;

2461: END Get_Plan_Start_Date;
2462:
2463: FUNCTION Get_Plan_End_Date return Date is
2464: BEGIN
2465: return pa_fp_view_plans_pub.G_FP_PLAN_END_DATE;
2466: END Get_Plan_End_Date;
2467:
2468: FUNCTION Get_Prec_Pds_Flag return VARCHAR2 is
2469: BEGIN

Line 2470: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC;

2466: END Get_Plan_End_Date;
2467:
2468: FUNCTION Get_Prec_Pds_Flag return VARCHAR2 is
2469: BEGIN
2470: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_PREC;
2471: END Get_Prec_Pds_Flag;
2472:
2473: FUNCTION Get_Succ_Pds_Flag return VARCHAR2 is
2474: BEGIN

Line 2475: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC;

2471: END Get_Prec_Pds_Flag;
2472:
2473: FUNCTION Get_Succ_Pds_Flag return VARCHAR2 is
2474: BEGIN
2475: return pa_fp_view_plans_pub.G_DISPLAY_FLAG_SUCC;
2476: END Get_Succ_Pds_Flag;
2477:
2478: FUNCTION Get_Currency_Code return VARCHAR2 is
2479: BEGIN

Line 2480: return pa_fp_view_plans_pub.G_FP_CURRENCY_CODE;

2476: END Get_Succ_Pds_Flag;
2477:
2478: FUNCTION Get_Currency_Code return VARCHAR2 is
2479: BEGIN
2480: return pa_fp_view_plans_pub.G_FP_CURRENCY_CODE;
2481: END Get_Currency_Code;
2482:
2483: FUNCTION Get_Currency_Type return VARCHAR2 is
2484: BEGIN

Line 2485: return pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE;

2481: END Get_Currency_Code;
2482:
2483: FUNCTION Get_Currency_Type return VARCHAR2 is
2484: BEGIN
2485: return pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE;
2486: END Get_Currency_Type;
2487:
2488: FUNCTION Get_Default_Amount_Type_Code return VARCHAR2 is
2489: BEGIN

Line 2490: return pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE;

2486: END Get_Currency_Type;
2487:
2488: FUNCTION Get_Default_Amount_Type_Code return VARCHAR2 is
2489: BEGIN
2490: return pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE;
2491: END Get_Default_Amount_Type_Code;
2492:
2493: FUNCTION Get_Default_Amt_Subtype_Code return VARCHAR2 is
2494: BEGIN

Line 2495: return pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE;

2491: END Get_Default_Amount_Type_Code;
2492:
2493: FUNCTION Get_Default_Amt_Subtype_Code return VARCHAR2 is
2494: BEGIN
2495: return pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE;
2496: END Get_Default_Amt_Subtype_Code;
2497:
2498: FUNCTION Get_Cost_Version_Number return NUMBER is
2499: BEGIN

Line 2500: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER;

2496: END Get_Default_Amt_Subtype_Code;
2497:
2498: FUNCTION Get_Cost_Version_Number return NUMBER is
2499: BEGIN
2500: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER;
2501: END Get_Cost_Version_Number;
2502:
2503: FUNCTION Get_Rev_Version_Number return NUMBER is
2504: BEGIN

Line 2505: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER;

2501: END Get_Cost_Version_Number;
2502:
2503: FUNCTION Get_Rev_Version_Number return NUMBER is
2504: BEGIN
2505: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER;
2506: END Get_Rev_Version_Number;
2507:
2508: FUNCTION Get_All_Version_Number return NUMBER is
2509: BEGIN

Line 2510: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER;

2506: END Get_Rev_Version_Number;
2507:
2508: FUNCTION Get_All_Version_Number return NUMBER is
2509: BEGIN
2510: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER;
2511: END Get_All_Version_Number;
2512:
2513: FUNCTION Get_Cost_Version_Name return VARCHAR2 is
2514: BEGIN

Line 2515: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME;

2511: END Get_All_Version_Number;
2512:
2513: FUNCTION Get_Cost_Version_Name return VARCHAR2 is
2514: BEGIN
2515: return pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME;
2516: END Get_Cost_Version_Name;
2517:
2518: FUNCTION Get_Rev_Version_Name return VARCHAR2 is
2519: BEGIN

Line 2520: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME;

2516: END Get_Cost_Version_Name;
2517:
2518: FUNCTION Get_Rev_Version_Name return VARCHAR2 is
2519: BEGIN
2520: return pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME;
2521: END Get_Rev_Version_Name;
2522:
2523: FUNCTION Get_All_Version_Name return VARCHAR2 is
2524: BEGIN

Line 2525: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME;

2521: END Get_Rev_Version_Name;
2522:
2523: FUNCTION Get_All_Version_Name return VARCHAR2 is
2524: BEGIN
2525: return pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME;
2526: END Get_All_Version_Name;
2527:
2528: FUNCTION Get_Period_Type return VARCHAR2 is
2529: BEGIN

Line 2530: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;

2526: END Get_All_Version_Name;
2527:
2528: FUNCTION Get_Period_Type return VARCHAR2 is
2529: BEGIN
2530: return pa_fp_view_plans_pub.G_FP_PERIOD_TYPE;
2531: END Get_Period_Type;
2532:
2533: PROCEDURE Set_Cost_Version_Number (p_version_number IN NUMBER) is
2534: BEGIN

Line 2535: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := p_version_number;

2531: END Get_Period_Type;
2532:
2533: PROCEDURE Set_Cost_Version_Number (p_version_number IN NUMBER) is
2534: BEGIN
2535: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := p_version_number;
2536: END Set_Cost_Version_Number;
2537:
2538: PROCEDURE Set_Rev_Version_Number (p_version_number IN NUMBER) is
2539: BEGIN

Line 2540: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := p_version_number;

2536: END Set_Cost_Version_Number;
2537:
2538: PROCEDURE Set_Rev_Version_Number (p_version_number IN NUMBER) is
2539: BEGIN
2540: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := p_version_number;
2541: END Set_Rev_Version_Number;
2542:
2543: PROCEDURE Set_Cost_Version_Name (p_version_name IN VARCHAR2) is
2544: BEGIN

Line 2545: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := p_version_name;

2541: END Set_Rev_Version_Number;
2542:
2543: PROCEDURE Set_Cost_Version_Name (p_version_name IN VARCHAR2) is
2544: BEGIN
2545: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := p_version_name;
2546: END Set_Cost_Version_Name;
2547:
2548: PROCEDURE Set_Rev_Version_Name (p_version_name IN VARCHAR2) is
2549: BEGIN

Line 2550: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := p_version_name;

2546: END Set_Cost_Version_Name;
2547:
2548: PROCEDURE Set_Rev_Version_Name (p_version_name IN VARCHAR2) is
2549: BEGIN
2550: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := p_version_name;
2551: END Set_Rev_Version_Name;
2552:
2553:
2554: /* ------------------------------------------------------------------ */

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

2729: l_msg_count NUMBER;
2730: l_msg_data VARCHAR2(80);
2731:
2732: begin
2733: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '100: entered procedure', 2);
2734: --hr_utility.trace_on(null, 'dlai');
2735: --hr_utility.trace('entered view_plan_temp_tables');
2736: --hr_utility.trace('p_budget_version_id= ' || TO_CHAR(p_budget_version_id));
2737: x_msg_count := 0;

Line 2747: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then

2743: -- order of checking: ALL, COST, REVENUE
2744: if p_user_bv_flag = 'Y' then
2745: --hr_utility.trace('p_user_bv_flag = Y');
2746: -- assume that the BV_ID variables have already been set
2747: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else

Line 2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;

2744: if p_user_bv_flag = 'Y' then
2745: --hr_utility.trace('p_user_bv_flag = Y');
2746: -- assume that the BV_ID variables have already been set
2747: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2745: --hr_utility.trace('p_user_bv_flag = Y');
2746: -- assume that the BV_ID variables have already been set
2747: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;

Line 2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2746: -- assume that the BV_ID variables have already been set
2747: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is not null then
2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;
2754: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));

Line 2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2748: l_primary_bvid := pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID;
2749: elsif pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;
2754: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2755: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2756: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));

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

2750: l_primary_bvid := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;
2754: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2755: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2756: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2757:
2758: --hr_utility.trace('selecting from pa_budget_versions');

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

2751: else
2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;
2754: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2755: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2756: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2757:
2758: --hr_utility.trace('selecting from pa_budget_versions');
2759: select DECODE(budget_status_code,

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

2752: l_primary_bvid := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2753: end if;
2754: --hr_utility.trace('allversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID));
2755: --hr_utility.trace('COSTversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_COST_VERSION_ID));
2756: --hr_utility.trace('REVversionid= ' || to_char(pa_fp_view_plans_pub.G_FP_REV_VERSION_ID));
2757:
2758: --hr_utility.trace('selecting from pa_budget_versions');
2759: select DECODE(budget_status_code,
2760: 'B', 'B',

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

2774:
2775: -- figure out display_from:
2776: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2777: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2778: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2782: else

Line 2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then

2775: -- figure out display_from:
2776: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2777: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2778: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2782: else
2783: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2776: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2777: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2778: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2782: else
2783: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2784: end if;

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

2777: --hr_utility.trace('user_specified: COST_AND_REV_SAME');
2778: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2782: else
2783: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2784: end if;
2785: end if;

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

2779: if pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID is null then
2780: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2781: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2782: else
2783: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2784: end if;
2785: end if;
2786: select version_name,
2787: version_number

Line 2794: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;

2790: from pa_budget_versions
2791: where budget_version_id = p_budget_version_id;
2792: l_rev_version_name := l_cost_version_name;
2793: l_rev_version_number := l_cost_version_number;
2794: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2795: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2796: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2797: (p_project_id => p_project_id,
2798: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,

Line 2795: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;

2791: where budget_version_id = p_budget_version_id;
2792: l_rev_version_name := l_cost_version_name;
2793: l_rev_version_number := l_cost_version_number;
2794: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2795: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2796: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2797: (p_project_id => p_project_id,
2798: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2799: x_return_status => l_return_status,

Line 2796: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together

2792: l_rev_version_name := l_cost_version_name;
2793: l_rev_version_number := l_cost_version_number;
2794: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2795: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2796: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2797: (p_project_id => p_project_id,
2798: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2799: x_return_status => l_return_status,
2800: x_msg_count => l_msg_count,

Line 2798: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,

2794: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
2795: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
2796: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
2797: (p_project_id => p_project_id,
2798: p_budget_version_id => pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID,
2799: x_return_status => l_return_status,
2800: x_msg_count => l_msg_count,
2801: x_msg_data => l_msg_data);
2802:

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

2801: x_msg_data => l_msg_data);
2802:
2803: elsif l_fp_preference_code = 'COST_ONLY' then
2804: --hr_utility.trace('user_specified: COST_ONLY');
2805: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
2806: select version_number,
2807: version_name
2808: into l_cost_version_number,
2809: l_cost_version_name

Line 2814: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

2810: from pa_budget_versions
2811: where budget_version_id = p_budget_version_id;
2812: l_rev_version_number := null;
2813: l_rev_version_name := ' ';
2814: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2815: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2816: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2817: (p_project_id => p_project_id,
2818: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 2815: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2811: where budget_version_id = p_budget_version_id;
2812: l_rev_version_number := null;
2813: l_rev_version_name := ' ';
2814: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2815: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2816: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2817: (p_project_id => p_project_id,
2818: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2819: p_cost_or_rev => 'C',

Line 2816: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

2812: l_rev_version_number := null;
2813: l_rev_version_name := ' ';
2814: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2815: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2816: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2817: (p_project_id => p_project_id,
2818: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2819: p_cost_or_rev => 'C',
2820: x_return_status => l_return_status,

Line 2818: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

2814: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2815: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2816: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2817: (p_project_id => p_project_id,
2818: p_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2819: p_cost_or_rev => 'C',
2820: x_return_status => l_return_status,
2821: x_msg_count => l_msg_count,
2822: x_msg_data => l_msg_data);

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

2822: x_msg_data => l_msg_data);
2823:
2824: elsif l_fp_preference_code = 'REVENUE_ONLY' then
2825: --hr_utility.trace('user_specified: REVENUE_ONLY');
2826: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
2827: select version_number,
2828: version_name
2829: into l_rev_version_number,
2830: l_rev_version_name

Line 2835: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

2831: from pa_budget_versions
2832: where budget_version_id = p_budget_version_id;
2833: l_cost_version_number := null;
2834: l_cost_version_name := ' ';
2835: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2836: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2837: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2838: (p_project_id => p_project_id,
2839: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 2836: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

2832: where budget_version_id = p_budget_version_id;
2833: l_cost_version_number := null;
2834: l_cost_version_name := ' ';
2835: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2836: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2837: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2838: (p_project_id => p_project_id,
2839: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2840: p_cost_or_rev => 'R',

Line 2837: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

2833: l_cost_version_number := null;
2834: l_cost_version_name := ' ';
2835: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2836: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2837: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2838: (p_project_id => p_project_id,
2839: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2840: p_cost_or_rev => 'R',
2841: x_return_status => l_return_status,

Line 2839: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

2835: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2836: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2837: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
2838: (p_project_id => p_project_id,
2839: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2840: p_cost_or_rev => 'R',
2841: x_return_status => l_return_status,
2842: x_msg_count => l_msg_count,
2843: x_msg_data => l_msg_data);

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

2843: x_msg_data => l_msg_data);
2844:
2845: else
2846: --hr_utility.trace('user_specified: COST_AND_REV_SEP');
2847: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
2848: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) then
2849:
2850: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2851: select period_profile_id

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

2844:
2845: else
2846: --hr_utility.trace('user_specified: COST_AND_REV_SEP');
2847: if (pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null) and
2848: (pa_fp_view_plans_pub.G_FP_REV_VERSION_ID is not null) then
2849:
2850: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2851: select period_profile_id
2852: into l_period_profile_id1

Line 2854: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2850: -- BEFORE MERGING, MAKE SURE PERIOD PROFILES MATCH
2851: select period_profile_id
2852: into l_period_profile_id1
2853: from pa_budget_versions
2854: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2855: select period_profile_id
2856: into l_period_profile_id2
2857: from pa_budget_versions
2858: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

Line 2858: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2854: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2855: select period_profile_id
2856: into l_period_profile_id2
2857: from pa_budget_versions
2858: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2859: --hr_utility.trace('retrieved the period profile ids');
2860: if (pa_fp_view_plans_util.check_compatible_pd_profiles
2861: (p_period_profile_id1 => l_period_profile_id1,
2862: p_period_profile_id2 => l_period_profile_id2) = 'Y') or

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

2859: --hr_utility.trace('retrieved the period profile ids');
2860: if (pa_fp_view_plans_util.check_compatible_pd_profiles
2861: (p_period_profile_id1 => l_period_profile_id1,
2862: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
2863: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
2864: --hr_utility.trace('user_specified: period_profile matches');
2865: -- PERIOD PROFILES MATCH: GO AHEAD WITH MERGING
2866: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
2867: select version_number,

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

2862: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
2863: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
2864: --hr_utility.trace('user_specified: period_profile matches');
2865: -- PERIOD PROFILES MATCH: GO AHEAD WITH MERGING
2866: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
2867: select version_number,
2868: version_name
2869: into l_cost_version_number,
2870: l_cost_version_name

Line 2872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2868: version_name
2869: into l_cost_version_number,
2870: l_cost_version_name
2871: from pa_budget_versions
2872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2873: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2874: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2875: select version_number,
2876: version_name

Line 2873: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

2869: into l_cost_version_number,
2870: l_cost_version_name
2871: from pa_budget_versions
2872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2873: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2874: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2875: select version_number,
2876: version_name
2877: into l_rev_version_number,

Line 2874: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2870: l_cost_version_name
2871: from pa_budget_versions
2872: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2873: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2874: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2875: select version_number,
2876: version_name
2877: into l_rev_version_number,
2878: l_rev_version_name

Line 2880: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2876: version_name
2877: into l_rev_version_number,
2878: l_rev_version_name
2879: from pa_budget_versions
2880: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2881: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 2881: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

2877: into l_rev_version_number,
2878: l_rev_version_name
2879: from pa_budget_versions
2880: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2881: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2885: (p_project_id => p_project_id,

Line 2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

2878: l_rev_version_name
2879: from pa_budget_versions
2880: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2881: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2885: (p_project_id => p_project_id,
2886: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

2880: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2881: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2885: (p_project_id => p_project_id,
2886: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2887: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2888: x_return_status => l_return_status,

Line 2886: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

2882: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2885: (p_project_id => p_project_id,
2886: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2887: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2888: x_return_status => l_return_status,
2889: x_msg_count => l_msg_count,
2890: x_msg_data => l_msg_data);

Line 2887: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

2883: --hr_utility.trace('entering pa_fp_vp_pop_tables_separate');
2884: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2885: (p_project_id => p_project_id,
2886: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2887: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2888: x_return_status => l_return_status,
2889: x_msg_count => l_msg_count,
2890: x_msg_data => l_msg_data);
2891: --hr_utility.trace('exiting pa_fp_vp_pop_tables_separate');

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

2892: else
2893: -- PERIOD PROFILES DO NOT MATCH: ERROR MESSAGE
2894: --hr_utility.trace('user-defined bvs: merge failed because mismatch pd profiles');
2895: l_diff_pd_profile_flag := 'Y';
2896: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
2897: select version_number,
2898: version_name
2899: into l_cost_version_number,
2900: l_cost_version_name

Line 2902: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2898: version_name
2899: into l_cost_version_number,
2900: l_cost_version_name
2901: from pa_budget_versions
2902: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2903: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2904: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2905: select version_number,
2906: version_name

Line 2903: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

2899: into l_cost_version_number,
2900: l_cost_version_name
2901: from pa_budget_versions
2902: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2903: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2904: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2905: select version_number,
2906: version_name
2907: into l_rev_version_number,

Line 2904: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2900: l_cost_version_name
2901: from pa_budget_versions
2902: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2903: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
2904: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2905: select version_number,
2906: version_name
2907: into l_rev_version_number,
2908: l_rev_version_name

Line 2910: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2906: version_name
2907: into l_rev_version_number,
2908: l_rev_version_name
2909: from pa_budget_versions
2910: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,

Line 2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

2907: into l_rev_version_number,
2908: l_rev_version_name
2909: from pa_budget_versions
2910: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,
2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

Line 2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

2908: l_rev_version_name
2909: from pa_budget_versions
2910: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,
2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2916: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

Line 2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

2909: from pa_budget_versions
2910: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,
2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2916: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2917: x_return_status => l_return_status,

Line 2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,

2911: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,
2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2916: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2917: x_return_status => l_return_status,
2918: x_msg_count => l_msg_count,
2919: x_msg_data => l_msg_data);

Line 2916: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

2912: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
2913: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
2914: (p_project_id => p_project_id,
2915: p_cost_budget_version_id => pa_fp_view_plans_pub.G_FP_COST_VERSION_ID,
2916: p_rev_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,
2917: x_return_status => l_return_status,
2918: x_msg_count => l_msg_count,
2919: x_msg_data => l_msg_data);
2920: end if;

Line 2922: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then

2918: x_msg_count => l_msg_count,
2919: x_msg_data => l_msg_data);
2920: end if;
2921: else
2922: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
2923: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
2924: select version_number,
2925: version_name
2926: into l_cost_version_number,

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

2919: x_msg_data => l_msg_data);
2920: end if;
2921: else
2922: if pa_fp_view_plans_pub.G_FP_COST_VERSION_ID is not null then
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 2929: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;

2925: version_name
2926: into l_cost_version_number,
2927: l_cost_version_name
2928: from pa_budget_versions
2929: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

Line 2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

2928: from pa_budget_versions
2929: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
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_NUMBER := l_cost_version_number;

2929: where budget_version_id = pa_fp_view_plans_pub.G_FP_COST_VERSION_ID;
2930: l_rev_version_number := null;
2931: l_rev_version_name := ' ';
2932: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
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_NAME := l_cost_version_name;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
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_NAME := l_cost_version_name;
2933: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
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 2943: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';

2939: x_msg_count => l_msg_count,
2940: x_msg_data => l_msg_data);
2941:
2942: else
2943: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
2944: select version_number,
2945: version_name
2946: into l_rev_version_number,
2947: l_rev_version_name

Line 2949: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;

2945: version_name
2946: into l_rev_version_number,
2947: l_rev_version_name
2948: from pa_budget_versions
2949: where budget_version_id = pa_fp_view_plans_pub.G_FP_REV_VERSION_ID;
2950: l_cost_version_number := null;
2951: l_cost_version_name := ' ';
2952: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 2952: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

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

Line 2953: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

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

Line 2954: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

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

Line 2956: p_budget_version_id => pa_fp_view_plans_pub.G_FP_REV_VERSION_ID,

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

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

2984:
2985: -- if the preference code is 'COST_AND_REV_SAME', then we only need this one version
2986: -- we blindly insert all rows for the budget version into the temp table
2987: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2988: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '200: pref = COST_AND_REV_SAME', 1);
2989: --hr_utility.trace('COST_AND_REV_SAME');
2990: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2991: select version_name,
2992: version_number

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

2986: -- we blindly insert all rows for the budget version into the temp table
2987: if l_fp_preference_code = 'COST_AND_REV_SAME' then
2988: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '200: pref = COST_AND_REV_SAME', 1);
2989: --hr_utility.trace('COST_AND_REV_SAME');
2990: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'ANY';
2991: select version_name,
2992: version_number
2993: into l_cost_version_name,
2994: l_cost_version_number

Line 2999: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;

2995: from pa_budget_versions
2996: where budget_version_id = p_budget_version_id;
2997: l_rev_version_name := l_cost_version_name;
2998: l_rev_version_number := l_cost_version_number;
2999: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3000: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3001: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3003: (p_project_id => p_project_id,

Line 3000: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;

2996: where budget_version_id = p_budget_version_id;
2997: l_rev_version_name := l_cost_version_name;
2998: l_rev_version_number := l_cost_version_number;
2999: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3000: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3001: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3003: (p_project_id => p_project_id,
3004: p_budget_version_id => p_budget_version_id,

Line 3001: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;

2997: l_rev_version_name := l_cost_version_name;
2998: l_rev_version_number := l_cost_version_number;
2999: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3000: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3001: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3003: (p_project_id => p_project_id,
3004: p_budget_version_id => p_budget_version_id,
3005: x_return_status => l_return_status,

Line 3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together

2998: l_rev_version_number := l_cost_version_number;
2999: pa_fp_view_plans_pub.G_FP_ALL_VERSION_ID := p_budget_version_id;
3000: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NAME := l_cost_version_name;
3001: pa_fp_view_plans_pub.G_FP_ALL_VERSION_NUMBER := l_cost_version_number;
3002: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together
3003: (p_project_id => p_project_id,
3004: p_budget_version_id => p_budget_version_id,
3005: x_return_status => l_return_status,
3006: x_msg_count => l_msg_count,

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

3008:
3009: -- if the preference code is 'COST_ONLY', then we have the bvID of the COST version
3010: -- and we don't have to do anything else
3011: elsif l_fp_preference_code = 'COST_ONLY' then
3012: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '300: pref=COST_ONLY', 1);
3013: --hr_utility.trace('COST_ONLY');
3014: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3015: select version_number,
3016: version_name

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

3010: -- and we don't have to do anything else
3011: elsif l_fp_preference_code = 'COST_ONLY' then
3012: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '300: pref=COST_ONLY', 1);
3013: --hr_utility.trace('COST_ONLY');
3014: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3015: select version_number,
3016: version_name
3017: into l_cost_version_number,
3018: l_cost_version_name

Line 3023: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3019: from pa_budget_versions
3020: where budget_version_id = p_budget_version_id;
3021: l_rev_version_number := null;
3022: l_rev_version_name := ' ';
3023: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3024: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3025: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3026: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3027: (p_project_id => p_project_id,

Line 3024: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3020: where budget_version_id = p_budget_version_id;
3021: l_rev_version_number := null;
3022: l_rev_version_name := ' ';
3023: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3024: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3025: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3026: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3027: (p_project_id => p_project_id,
3028: p_budget_version_id => p_budget_version_id,

Line 3025: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3021: l_rev_version_number := null;
3022: l_rev_version_name := ' ';
3023: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3024: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3025: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3026: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3027: (p_project_id => p_project_id,
3028: p_budget_version_id => p_budget_version_id,
3029: p_cost_or_rev => 'C',

Line 3026: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3022: l_rev_version_name := ' ';
3023: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3024: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3025: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3026: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3027: (p_project_id => p_project_id,
3028: p_budget_version_id => p_budget_version_id,
3029: p_cost_or_rev => 'C',
3030: x_return_status => l_return_status,

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

3031: x_msg_count => l_msg_count,
3032: x_msg_data => l_msg_data);
3033:
3034: elsif l_fp_preference_code = 'REVENUE_ONLY' then
3035: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=REVENUE_ONLY', 1);
3036: --hr_utility.trace('REVENUE_ONLY');
3037: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3038: select version_number,
3039: version_name

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

3033:
3034: elsif l_fp_preference_code = 'REVENUE_ONLY' then
3035: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=REVENUE_ONLY', 1);
3036: --hr_utility.trace('REVENUE_ONLY');
3037: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3038: select version_number,
3039: version_name
3040: into l_rev_version_number,
3041: l_rev_version_name

Line 3046: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3042: from pa_budget_versions
3043: where budget_version_id = p_budget_version_id;
3044: l_cost_version_number := null;
3045: l_cost_version_name := ' ';
3046: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3047: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3048: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3049: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3050: (p_project_id => p_project_id,

Line 3047: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3043: where budget_version_id = p_budget_version_id;
3044: l_cost_version_number := null;
3045: l_cost_version_name := ' ';
3046: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3047: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3048: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3049: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3050: (p_project_id => p_project_id,
3051: p_budget_version_id => p_budget_version_id,

Line 3048: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3044: l_cost_version_number := null;
3045: l_cost_version_name := ' ';
3046: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3047: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3048: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3049: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3050: (p_project_id => p_project_id,
3051: p_budget_version_id => p_budget_version_id,
3052: p_cost_or_rev => 'R',

Line 3049: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3045: l_cost_version_name := ' ';
3046: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3047: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3048: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3049: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3050: (p_project_id => p_project_id,
3051: p_budget_version_id => p_budget_version_id,
3052: p_cost_or_rev => 'R',
3053: x_return_status => l_return_status,

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

3059: -- the other one will also have preference_code = 'COST_AND_REV_SEP', and we will
3060: -- have to inspect bv.version_type (which can be 'COST', 'REVENUE', etc)
3061: else
3062: -- find the appropriate current working version
3063: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '400: pref=COST_AND_REV_SEP', 1);
3064: --hr_utility.trace('COST_AND_REV_SEP');
3065: if l_working_or_baselined = 'W' then
3066: -- determine whether we have the COST or REVENUE version, and look for the other one
3067: if p_cost_or_revenue = 'C' then

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

3064: --hr_utility.trace('COST_AND_REV_SEP');
3065: if l_working_or_baselined = 'W' then
3066: -- determine whether we have the COST or REVENUE version, and look for the other one
3067: if p_cost_or_revenue = 'C' then
3068: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '500: pref=COST_AND_REV_SEP, WORKING, COST', 2);
3069: --hr_utility.trace('we have a working cost version');
3070: -- we have the COST version, so look for REVENUE version with 'COST_AND_REV_SEP'
3071: open l_compl_crsep_c_w_csr;
3072: fetch l_compl_crsep_c_w_csr into l_compl_crsep_c_w_rec;

Line 3083: 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);

3079: end if; -- l_compl_crsep_c_w_csr: no data found
3080: close l_compl_crsep_c_w_csr;
3081: if l_compl_budget_version_id = -99 then
3082: -- did not find a compl for the COST version; just process COST version
3083: 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);
3084: --hr_utility.trace('could NOT find complement for working cost version');
3085: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3086: select version_number,
3087: version_name

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

3081: if l_compl_budget_version_id = -99 then
3082: -- did not find a compl for the COST version; just process COST version
3083: 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);
3084: --hr_utility.trace('could NOT find complement for working cost version');
3085: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3086: select version_number,
3087: version_name
3088: into l_cost_version_number,
3089: l_cost_version_name

Line 3094: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3090: from pa_budget_versions
3091: where budget_version_id = p_budget_version_id;
3092: l_rev_version_number := null;
3093: l_rev_version_name := ' ';
3094: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3095: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3096: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3097: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3098: (p_project_id => p_project_id,

Line 3095: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3091: where budget_version_id = p_budget_version_id;
3092: l_rev_version_number := null;
3093: l_rev_version_name := ' ';
3094: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3095: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3096: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3097: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3098: (p_project_id => p_project_id,
3099: p_budget_version_id => p_budget_version_id,

Line 3096: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3092: l_rev_version_number := null;
3093: l_rev_version_name := ' ';
3094: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3095: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3096: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3097: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3098: (p_project_id => p_project_id,
3099: p_budget_version_id => p_budget_version_id,
3100: p_cost_or_rev => 'C',

Line 3097: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3093: l_rev_version_name := ' ';
3094: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3095: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3096: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3097: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3098: (p_project_id => p_project_id,
3099: p_budget_version_id => p_budget_version_id,
3100: p_cost_or_rev => 'C',
3101: x_return_status => l_return_status,

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

3113: where budget_version_id = l_compl_budget_version_id;
3114: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3115: (p_period_profile_id1 => l_period_profile_id1,
3116: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3117: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3118: --merge the COST and REVENUE versions
3119: 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);
3120: --hr_utility.trace('found complement for working cost version AND period profile match');
3121: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3119: 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);

3115: (p_period_profile_id1 => l_period_profile_id1,
3116: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3117: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3118: --merge the COST and REVENUE versions
3119: 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);
3120: --hr_utility.trace('found complement for working cost version AND period profile match');
3121: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3122: select version_number,
3123: version_name

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

3117: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3118: --merge the COST and REVENUE versions
3119: 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);
3120: --hr_utility.trace('found complement for working cost version AND period profile match');
3121: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3122: select version_number,
3123: version_name
3124: into l_cost_version_number,
3125: l_cost_version_name

Line 3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3130: into l_rev_version_number,
3131: l_rev_version_name
3132: from pa_budget_versions
3133: where budget_version_id = l_compl_budget_version_id;
3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3131: l_rev_version_name
3132: from pa_budget_versions
3133: where budget_version_id = l_compl_budget_version_id;
3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3132: from pa_budget_versions
3133: where budget_version_id = l_compl_budget_version_id;
3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;

3133: where budget_version_id = l_compl_budget_version_id;
3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3141: (p_project_id => p_project_id,

Line 3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3134: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3141: (p_project_id => p_project_id,
3142: p_cost_budget_version_id => p_budget_version_id,

Line 3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3135: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3141: (p_project_id => p_project_id,
3142: p_cost_budget_version_id => p_budget_version_id,
3143: p_rev_budget_version_id => l_compl_budget_version_id,

Line 3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3136: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3137: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3138: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3139: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3140: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3141: (p_project_id => p_project_id,
3142: p_cost_budget_version_id => p_budget_version_id,
3143: p_rev_budget_version_id => l_compl_budget_version_id,
3144: x_return_status => l_return_status,

Line 3149: 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);

3145: x_msg_count => l_msg_count,
3146: x_msg_data => l_msg_data);
3147: else
3148: -- the period profiles didn't match: only process one of the versions
3149: 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);
3150: --hr_utility.trace('found complement for working cost version BUT no per profile match');
3151: l_diff_pd_profile_flag := 'Y';
3152:
3153: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';

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

3149: 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);
3150: --hr_utility.trace('found complement for working cost version BUT no per profile match');
3151: l_diff_pd_profile_flag := 'Y';
3152:
3153: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3154: select version_number,
3155: version_name
3156: into l_cost_version_number,
3157: l_cost_version_name

Line 3162: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3158: from pa_budget_versions
3159: where budget_version_id = p_budget_version_id;
3160: l_rev_version_number := null;
3161: l_rev_version_name := ' ';
3162: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3163: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3164: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3165: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3166: (p_project_id => p_project_id,

Line 3163: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3159: where budget_version_id = p_budget_version_id;
3160: l_rev_version_number := null;
3161: l_rev_version_name := ' ';
3162: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3163: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3164: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3165: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3166: (p_project_id => p_project_id,
3167: p_budget_version_id => p_budget_version_id,

Line 3164: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3160: l_rev_version_number := null;
3161: l_rev_version_name := ' ';
3162: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3163: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3164: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3165: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3166: (p_project_id => p_project_id,
3167: p_budget_version_id => p_budget_version_id,
3168: p_cost_or_rev => 'C',

Line 3165: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3161: l_rev_version_name := ' ';
3162: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3163: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3164: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3165: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3166: (p_project_id => p_project_id,
3167: p_budget_version_id => p_budget_version_id,
3168: p_cost_or_rev => 'C',
3169: x_return_status => l_return_status,

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

3171: x_msg_data => l_msg_data);
3172:
3173: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3174: * ERROR MESSAGE HANDLING HERE
3175: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3176: select version_number,
3177: version_name
3178: into l_cost_version_number,
3179: l_cost_version_name

Line 3184: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3180: from pa_budget_versions
3181: where budget_version_id = p_budget_version_id;
3182: l_rev_version_number := null;
3183: l_rev_version_name := ' ';
3184: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3185: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3186: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3187: (p_project_id => p_project_id,
3188: p_budget_version_id => p_budget_version_id,

Line 3185: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3181: where budget_version_id = p_budget_version_id;
3182: l_rev_version_number := null;
3183: l_rev_version_name := ' ';
3184: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3185: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3186: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3187: (p_project_id => p_project_id,
3188: p_budget_version_id => p_budget_version_id,
3189: p_cost_or_rev => 'C',

Line 3186: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3182: l_rev_version_number := null;
3183: l_rev_version_name := ' ';
3184: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3185: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3186: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3187: (p_project_id => p_project_id,
3188: p_budget_version_id => p_budget_version_id,
3189: p_cost_or_rev => 'C',
3190: x_return_status => l_return_status,

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

3194: end if;
3195: end if; -- l_compl_budget_version_id is null
3196: else
3197: -- we have the REVENUE version, so look for COST version with 'COST_AND_REV_SEP'
3198: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '900: pref=COST_AND_REV_SEP, WORKING, REVENUE', 1);
3199: --hr_utility.trace('we have a working revenue version');
3200: open l_compl_crsep_r_w_csr;
3201: fetch l_compl_crsep_r_w_csr into l_compl_crsep_r_w_rec;
3202: if l_compl_crsep_r_w_csr%NOTFOUND then

Line 3212: 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);

3208: end if; --l_compl_crsep_r_w_csr: no data found
3209: close l_compl_crsep_r_w_csr;
3210: if l_compl_budget_version_id = -99 then
3211: -- did not find a compl for the REVENUE version; just process REVENUE version
3212: 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);
3213: --hr_utility.trace('could not find complement for working revenue version');
3214: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3215: select version_number,
3216: version_name

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

3210: if l_compl_budget_version_id = -99 then
3211: -- did not find a compl for the REVENUE version; just process REVENUE version
3212: 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);
3213: --hr_utility.trace('could not find complement for working revenue version');
3214: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3215: select version_number,
3216: version_name
3217: into l_rev_version_number,
3218: l_rev_version_name

Line 3223: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3219: from pa_budget_versions
3220: where budget_version_id = p_budget_version_id;
3221: l_cost_version_number := null;
3222: l_cost_version_name := ' ';
3223: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3224: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3225: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3226: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3227: (p_project_id => p_project_id,

Line 3224: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3220: where budget_version_id = p_budget_version_id;
3221: l_cost_version_number := null;
3222: l_cost_version_name := ' ';
3223: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3224: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3225: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3226: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3227: (p_project_id => p_project_id,
3228: p_budget_version_id => p_budget_version_id,

Line 3225: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3221: l_cost_version_number := null;
3222: l_cost_version_name := ' ';
3223: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3224: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3225: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3226: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3227: (p_project_id => p_project_id,
3228: p_budget_version_id => p_budget_version_id,
3229: p_cost_or_rev => 'R',

Line 3226: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3222: l_cost_version_name := ' ';
3223: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3224: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3225: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3226: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3227: (p_project_id => p_project_id,
3228: p_budget_version_id => p_budget_version_id,
3229: p_cost_or_rev => 'R',
3230: x_return_status => l_return_status,

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

3242: where budget_version_id = l_compl_budget_version_id;
3243: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3244: (p_period_profile_id1 => l_period_profile_id1,
3245: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3246: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3247: --merge the COST and REVENUE versions
3248: 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);
3249: --hr_utility.trace('found compl for working revenue version AND period profile match');
3250: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3248: 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);

3244: (p_period_profile_id1 => l_period_profile_id1,
3245: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3246: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3247: --merge the COST and REVENUE versions
3248: 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);
3249: --hr_utility.trace('found compl for working revenue version AND period profile match');
3250: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3251: select version_number,
3252: version_name

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

3246: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3247: --merge the COST and REVENUE versions
3248: 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);
3249: --hr_utility.trace('found compl for working revenue version AND period profile match');
3250: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3251: select version_number,
3252: version_name
3253: into l_rev_version_number,
3254: l_rev_version_name

Line 3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;

3259: into l_cost_version_number,
3260: l_cost_version_name
3261: from pa_budget_versions
3262: where budget_version_id = l_compl_budget_version_id;
3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3260: l_cost_version_name
3261: from pa_budget_versions
3262: where budget_version_id = l_compl_budget_version_id;
3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3261: from pa_budget_versions
3262: where budget_version_id = l_compl_budget_version_id;
3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3262: where budget_version_id = l_compl_budget_version_id;
3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3270: (p_project_id => p_project_id,

Line 3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3263: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3270: (p_project_id => p_project_id,
3271: p_cost_budget_version_id => l_compl_budget_version_id,

Line 3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3264: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3270: (p_project_id => p_project_id,
3271: p_cost_budget_version_id => l_compl_budget_version_id,
3272: p_rev_budget_version_id => p_budget_version_id,

Line 3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3265: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3266: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3267: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3268: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3269: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3270: (p_project_id => p_project_id,
3271: p_cost_budget_version_id => l_compl_budget_version_id,
3272: p_rev_budget_version_id => p_budget_version_id,
3273: x_return_status => l_return_status,

Line 3278: 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);

3274: x_msg_count => l_msg_count,
3275: x_msg_data => l_msg_data);
3276: else
3277: -- the period profiles didn't match: only process one of the versions
3278: 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);
3279: --hr_utility.trace('found compl for working revenue version BUT no per profile match');
3280: l_diff_pd_profile_flag := 'Y';
3281: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3282: select version_number,

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

3277: -- the period profiles didn't match: only process one of the versions
3278: 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);
3279: --hr_utility.trace('found compl for working revenue version BUT no per profile match');
3280: l_diff_pd_profile_flag := 'Y';
3281: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3282: select version_number,
3283: version_name
3284: into l_rev_version_number,
3285: l_rev_version_name

Line 3290: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3286: from pa_budget_versions
3287: where budget_version_id = p_budget_version_id;
3288: l_cost_version_number := null;
3289: l_cost_version_name := ' ';
3290: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3291: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3292: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3293: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3294: (p_project_id => p_project_id,

Line 3291: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3287: where budget_version_id = p_budget_version_id;
3288: l_cost_version_number := null;
3289: l_cost_version_name := ' ';
3290: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3291: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3292: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3293: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3294: (p_project_id => p_project_id,
3295: p_budget_version_id => p_budget_version_id,

Line 3292: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3288: l_cost_version_number := null;
3289: l_cost_version_name := ' ';
3290: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3291: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3292: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3293: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3294: (p_project_id => p_project_id,
3295: p_budget_version_id => p_budget_version_id,
3296: p_cost_or_rev => 'R',

Line 3293: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3289: l_cost_version_name := ' ';
3290: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3291: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3292: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3293: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3294: (p_project_id => p_project_id,
3295: p_budget_version_id => p_budget_version_id,
3296: p_cost_or_rev => 'R',
3297: x_return_status => l_return_status,

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

3298: x_msg_count => l_msg_count,
3299: x_msg_data => l_msg_data);
3300: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3301: * ERROR MESSAGE HANDLING HERE
3302: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3303: select version_number,
3304: version_name
3305: into l_rev_version_number,
3306: l_rev_version_name

Line 3311: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3307: from pa_budget_versions
3308: where budget_version_id = p_budget_version_id;
3309: l_cost_version_number := null;
3310: l_cost_version_name := ' ';
3311: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3312: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3313: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3314: (p_project_id => p_project_id,
3315: p_budget_version_id => p_budget_version_id,

Line 3312: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3308: where budget_version_id = p_budget_version_id;
3309: l_cost_version_number := null;
3310: l_cost_version_name := ' ';
3311: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3312: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3313: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3314: (p_project_id => p_project_id,
3315: p_budget_version_id => p_budget_version_id,
3316: p_cost_or_rev => 'R',

Line 3313: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3309: l_cost_version_number := null;
3310: l_cost_version_name := ' ';
3311: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3312: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3313: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3314: (p_project_id => p_project_id,
3315: p_budget_version_id => p_budget_version_id,
3316: p_cost_or_rev => 'R',
3317: x_return_status => l_return_status,

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

3326: else
3327: -- determine whether we have the COST or REVENUE version, and look for the other one
3328: if p_cost_or_revenue = 'C' then
3329: -- we have the COST version, so look for REVENUE version with 'COST_AND_REV_SEP'
3330: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1300: pref=COST_AND_REV_SEP, BASELINED, COST', 1);
3331: --hr_utility.trace('we have a baselined cost version');
3332: open l_compl_crsep_c_b_csr;
3333: fetch l_compl_crsep_c_b_csr into l_compl_crsep_c_b_rec;
3334: if l_compl_crsep_c_b_csr%NOTFOUND then

Line 3344: 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);

3340: end if; -- l_compl_crsep_c_b_csr: no data found
3341: close l_compl_crsep_c_b_csr;
3342: if l_compl_budget_version_id = -99 then
3343: -- did not find a compl for the COST version; just process COST version
3344: 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);
3345: --hr_utility.trace('could not find complement for baselined cost version');
3346: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3347: select version_number,
3348: version_name

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

3342: if l_compl_budget_version_id = -99 then
3343: -- did not find a compl for the COST version; just process COST version
3344: 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);
3345: --hr_utility.trace('could not find complement for baselined cost version');
3346: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3347: select version_number,
3348: version_name
3349: into l_cost_version_number,
3350: l_cost_version_name

Line 3355: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3351: from pa_budget_versions
3352: where budget_version_id = p_budget_version_id;
3353: l_rev_version_number := null;
3354: l_rev_version_name := ' ';
3355: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3356: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3357: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3358: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3359: (p_project_id => p_project_id,

Line 3356: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3352: where budget_version_id = p_budget_version_id;
3353: l_rev_version_number := null;
3354: l_rev_version_name := ' ';
3355: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3356: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3357: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3358: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3359: (p_project_id => p_project_id,
3360: p_budget_version_id => p_budget_version_id,

Line 3357: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3353: l_rev_version_number := null;
3354: l_rev_version_name := ' ';
3355: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3356: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3357: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3358: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3359: (p_project_id => p_project_id,
3360: p_budget_version_id => p_budget_version_id,
3361: p_cost_or_rev => 'C',

Line 3358: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3354: l_rev_version_name := ' ';
3355: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3356: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3357: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3358: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3359: (p_project_id => p_project_id,
3360: p_budget_version_id => p_budget_version_id,
3361: p_cost_or_rev => 'C',
3362: x_return_status => l_return_status,

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

3374: where budget_version_id = l_compl_budget_version_id;
3375: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3376: (p_period_profile_id1 => l_period_profile_id1,
3377: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3378: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3379: --merge the COST and REVENUE versions
3380: 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);
3381: --hr_utility.trace('found compl for baselined cost AND period profile match');
3382: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3380: 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);

3376: (p_period_profile_id1 => l_period_profile_id1,
3377: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3378: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3379: --merge the COST and REVENUE versions
3380: 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);
3381: --hr_utility.trace('found compl for baselined cost AND period profile match');
3382: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3383: select version_number,
3384: version_name

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

3378: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3379: --merge the COST and REVENUE versions
3380: 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);
3381: --hr_utility.trace('found compl for baselined cost AND period profile match');
3382: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3383: select version_number,
3384: version_name
3385: into l_cost_version_number,
3386: l_cost_version_name

Line 3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3391: into l_rev_version_number,
3392: l_rev_version_name
3393: from pa_budget_versions
3394: where budget_version_id = l_compl_budget_version_id;
3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3392: l_rev_version_name
3393: from pa_budget_versions
3394: where budget_version_id = l_compl_budget_version_id;
3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3393: from pa_budget_versions
3394: where budget_version_id = l_compl_budget_version_id;
3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;

3394: where budget_version_id = l_compl_budget_version_id;
3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3402: (p_project_id => p_project_id,

Line 3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3395: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3402: (p_project_id => p_project_id,
3403: p_cost_budget_version_id => p_budget_version_id,

Line 3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3396: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3402: (p_project_id => p_project_id,
3403: p_cost_budget_version_id => p_budget_version_id,
3404: p_rev_budget_version_id => l_compl_budget_version_id,

Line 3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3397: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3398: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := l_compl_budget_version_id;
3399: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3400: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3401: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3402: (p_project_id => p_project_id,
3403: p_cost_budget_version_id => p_budget_version_id,
3404: p_rev_budget_version_id => l_compl_budget_version_id,
3405: x_return_status => l_return_status,

Line 3410: 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);

3406: x_msg_count => l_msg_count,
3407: x_msg_data => l_msg_data);
3408: else
3409: -- period_profiles don't match; process only the COST version
3410: 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);
3411: --hr_utility.trace('found compl for baselined cost BUT no period profile match');
3412: l_diff_pd_profile_flag := 'Y';
3413: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3414: select version_number,

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

3409: -- period_profiles don't match; process only the COST version
3410: 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);
3411: --hr_utility.trace('found compl for baselined cost BUT no period profile match');
3412: l_diff_pd_profile_flag := 'Y';
3413: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3414: select version_number,
3415: version_name
3416: into l_cost_version_number,
3417: l_cost_version_name

Line 3422: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;

3418: from pa_budget_versions
3419: where budget_version_id = p_budget_version_id;
3420: l_rev_version_number := null;
3421: l_rev_version_name := ' ';
3422: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3423: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3424: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3425: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3426: (p_project_id => p_project_id,

Line 3423: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3419: where budget_version_id = p_budget_version_id;
3420: l_rev_version_number := null;
3421: l_rev_version_name := ' ';
3422: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3423: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3424: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3425: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3426: (p_project_id => p_project_id,
3427: p_budget_version_id => p_budget_version_id,

Line 3424: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3420: l_rev_version_number := null;
3421: l_rev_version_name := ' ';
3422: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3423: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3424: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3425: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3426: (p_project_id => p_project_id,
3427: p_budget_version_id => p_budget_version_id,
3428: p_cost_or_rev => 'C',

Line 3425: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3421: l_rev_version_name := ' ';
3422: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_budget_version_id;
3423: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3424: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3425: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3426: (p_project_id => p_project_id,
3427: p_budget_version_id => p_budget_version_id,
3428: p_cost_or_rev => 'C',
3429: x_return_status => l_return_status,

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

3430: x_msg_count => l_msg_count,
3431: x_msg_data => l_msg_data);
3432: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3433: * ERROR MESSAGE HANDLING HERE
3434: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'COST';
3435: select version_number,
3436: version_name
3437: into l_cost_version_number,
3438: l_cost_version_name

Line 3443: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3439: from pa_budget_versions
3440: where budget_version_id = p_budget_version_id;
3441: l_rev_version_number := null;
3442: l_rev_version_name := ' ';
3443: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3444: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3445: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3446: (p_project_id => p_project_id,
3447: p_budget_version_id => p_budget_version_id,

Line 3444: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3440: where budget_version_id = p_budget_version_id;
3441: l_rev_version_number := null;
3442: l_rev_version_name := ' ';
3443: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3444: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3445: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3446: (p_project_id => p_project_id,
3447: p_budget_version_id => p_budget_version_id,
3448: p_cost_or_rev => 'C',

Line 3445: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3441: l_rev_version_number := null;
3442: l_rev_version_name := ' ';
3443: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3444: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3445: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3446: (p_project_id => p_project_id,
3447: p_budget_version_id => p_budget_version_id,
3448: p_cost_or_rev => 'C',
3449: x_return_status => l_return_status,

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

3454: end if; -- l_compl_budget_version_id is null
3455:
3456: else
3457: -- we have the REVENUE version, so look for COST version with 'COST_AND_REV_SEP'
3458: pa_debug.write('pa_fp_view_plans_pub.view_plan_temp_tables', '1700: pref=COST_AND_REV_SEP, BASELINED, REVENUE', 1);
3459: --hr_utility.trace('we have a baselined revenue version');
3460: open l_compl_crsep_r_b_csr;
3461: fetch l_compl_crsep_r_b_csr into l_compl_crsep_r_b_rec;
3462: if l_compl_crsep_r_b_csr%NOTFOUND then

Line 3472: 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);

3468: end if; -- l_compl_crsep_r_b_csr: no data found
3469: close l_compl_crsep_r_b_csr;
3470: if l_compl_budget_version_id = -99 then
3471: -- did not find a compl for the REVENUE version; just process REVENUE version
3472: 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);
3473: --hr_utility.trace('we have a baselined revenue version');
3474: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3475: select version_number,
3476: version_name

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

3470: if l_compl_budget_version_id = -99 then
3471: -- did not find a compl for the REVENUE version; just process REVENUE version
3472: 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);
3473: --hr_utility.trace('we have a baselined revenue version');
3474: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3475: select version_number,
3476: version_name
3477: into l_rev_version_number,
3478: l_rev_version_name

Line 3483: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3479: from pa_budget_versions
3480: where budget_version_id = p_budget_version_id;
3481: l_cost_version_number := null;
3482: l_cost_version_name := ' ';
3483: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3484: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3485: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3486: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3487: (p_project_id => p_project_id,

Line 3484: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3480: where budget_version_id = p_budget_version_id;
3481: l_cost_version_number := null;
3482: l_cost_version_name := ' ';
3483: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3484: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3485: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3486: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3487: (p_project_id => p_project_id,
3488: p_budget_version_id => p_budget_version_id,

Line 3485: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3481: l_cost_version_number := null;
3482: l_cost_version_name := ' ';
3483: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3484: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3485: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3486: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3487: (p_project_id => p_project_id,
3488: p_budget_version_id => p_budget_version_id,
3489: p_cost_or_rev => 'R',

Line 3486: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3482: l_cost_version_name := ' ';
3483: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3484: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3485: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3486: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3487: (p_project_id => p_project_id,
3488: p_budget_version_id => p_budget_version_id,
3489: p_cost_or_rev => 'R',
3490: x_return_status => l_return_status,

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

3502: where budget_version_id = l_compl_budget_version_id;
3503: if (pa_fp_view_plans_util.check_compatible_pd_profiles
3504: (p_period_profile_id1 => l_period_profile_id1,
3505: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3506: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3507: --merge the COST and REVENUE versions
3508: 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);
3509: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3510: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';

Line 3508: 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);

3504: (p_period_profile_id1 => l_period_profile_id1,
3505: p_period_profile_id2 => l_period_profile_id2) = 'Y') or
3506: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3507: --merge the COST and REVENUE versions
3508: 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);
3509: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3510: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3511: select version_number,
3512: version_name

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

3506: not (pa_fp_view_plans_pub.G_AMT_OR_PD = 'P') then
3507: --merge the COST and REVENUE versions
3508: 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);
3509: --hr_utility.trace('found compl for baselined revenue version AND period profile match');
3510: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3511: select version_number,
3512: version_name
3513: into l_rev_version_number,
3514: l_rev_version_name

Line 3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;

3519: into l_cost_version_number,
3520: l_cost_version_name
3521: from pa_budget_versions
3522: where budget_version_id = l_compl_budget_version_id;
3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

Line 3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;

3520: l_cost_version_name
3521: from pa_budget_versions
3522: where budget_version_id = l_compl_budget_version_id;
3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

Line 3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;

3521: from pa_budget_versions
3522: where budget_version_id = l_compl_budget_version_id;
3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

Line 3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3522: where budget_version_id = l_compl_budget_version_id;
3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3530: (p_project_id => p_project_id,

Line 3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3523: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := l_compl_budget_version_id;
3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3530: (p_project_id => p_project_id,
3531: p_cost_budget_version_id => l_compl_budget_version_id,

Line 3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3524: pa_fp_view_plans_pub.G_FP_COST_VERSION_NUMBER := l_cost_version_number;
3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3530: (p_project_id => p_project_id,
3531: p_cost_budget_version_id => l_compl_budget_version_id,
3532: p_rev_budget_version_id => p_budget_version_id,

Line 3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate

3525: pa_fp_view_plans_pub.G_FP_COST_VERSION_NAME := l_cost_version_name;
3526: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3527: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3528: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3529: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate
3530: (p_project_id => p_project_id,
3531: p_cost_budget_version_id => l_compl_budget_version_id,
3532: p_rev_budget_version_id => p_budget_version_id,
3533: x_return_status => l_return_status,

Line 3538: 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);

3534: x_msg_count => l_msg_count,
3535: x_msg_data => l_msg_data);
3536: else
3537: -- period profiles not compatible; just process REVENUE version
3538: 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);
3539: --hr_utility.trace('found compl for baselined revenue version BUT no per profile match');
3540: l_diff_pd_profile_flag := 'Y';
3541: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3542: select version_number,

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

3537: -- period profiles not compatible; just process REVENUE version
3538: 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);
3539: --hr_utility.trace('found compl for baselined revenue version BUT no per profile match');
3540: l_diff_pd_profile_flag := 'Y';
3541: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3542: select version_number,
3543: version_name
3544: into l_rev_version_number,
3545: l_rev_version_name

Line 3550: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;

3546: from pa_budget_versions
3547: where budget_version_id = p_budget_version_id;
3548: l_cost_version_number := null;
3549: l_cost_version_name := ' ';
3550: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3551: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3552: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3553: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3554: (p_project_id => p_project_id,

Line 3551: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3547: where budget_version_id = p_budget_version_id;
3548: l_cost_version_number := null;
3549: l_cost_version_name := ' ';
3550: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3551: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3552: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3553: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3554: (p_project_id => p_project_id,
3555: p_budget_version_id => p_budget_version_id,

Line 3552: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3548: l_cost_version_number := null;
3549: l_cost_version_name := ' ';
3550: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3551: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3552: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3553: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3554: (p_project_id => p_project_id,
3555: p_budget_version_id => p_budget_version_id,
3556: p_cost_or_rev => 'R',

Line 3553: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3549: l_cost_version_name := ' ';
3550: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_budget_version_id;
3551: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3552: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3553: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3554: (p_project_id => p_project_id,
3555: p_budget_version_id => p_budget_version_id,
3556: p_cost_or_rev => 'R',
3557: x_return_status => l_return_status,

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

3558: x_msg_count => l_msg_count,
3559: x_msg_data => l_msg_data);
3560: /* -- INCOMPATIBLE PERIOD PROFILES: WORKING COST ---
3561: * ERROR MESSAGE HANDLING HERE
3562: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'REVENUE';
3563: select version_number,
3564: version_name
3565: into l_rev_version_number,
3566: l_rev_version_name

Line 3571: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;

3567: from pa_budget_versions
3568: where budget_version_id = p_budget_version_id;
3569: l_cost_version_number := -1;
3570: l_cost_version_name := ' ';
3571: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3572: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3573: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3574: (p_project_id => p_project_id,
3575: p_budget_version_id => p_budget_version_id,

Line 3572: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;

3568: where budget_version_id = p_budget_version_id;
3569: l_cost_version_number := -1;
3570: l_cost_version_name := ' ';
3571: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3572: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3573: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3574: (p_project_id => p_project_id,
3575: p_budget_version_id => p_budget_version_id,
3576: p_cost_or_rev => 'R',

Line 3573: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single

3569: l_cost_version_number := -1;
3570: l_cost_version_name := ' ';
3571: pa_fp_view_plans_pub.G_FP_REV_VERSION_NAME := l_rev_version_name;
3572: pa_fp_view_plans_pub.G_FP_REV_VERSION_NUMBER := l_rev_version_number;
3573: pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single
3574: (p_project_id => p_project_id,
3575: p_budget_version_id => p_budget_version_id,
3576: p_cost_or_rev => 'R',
3577: x_return_status => l_return_status,

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

3598: rollback to VIEW_PLAN_TEMP_TABLES;
3599: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3600: x_msg_count := 1;
3601: x_msg_data := SQLERRM;
3602: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
3603: p_procedure_name => 'view_plan_temp_tables');
3604: pa_debug.reset_err_stack;
3605: raise FND_API.G_EXC_UNEXPECTED_ERROR;
3606:

Line 3662: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,

3658: (ra.project_id,
3659: ra.budget_version_id,
3660: ra.task_id,
3661: ra.resource_list_member_id) as element_level, -- element_level
3662: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3663: 'REVENUE', 0,
3664: -- ra.total_utilization_hours) as labor_hours,
3665: ra.total_plan_quantity) as labor_hours,
3666: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

Line 3666: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3662: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3663: 'REVENUE', 0,
3664: -- ra.total_utilization_hours) as labor_hours,
3665: ra.total_plan_quantity) as labor_hours,
3666: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3667: 'PROJ', ra.total_project_burdened_cost,
3668: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
3669: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3670: 'PROJ', ra.total_project_raw_cost,

Line 3669: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3665: ra.total_plan_quantity) as labor_hours,
3666: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3667: 'PROJ', ra.total_project_burdened_cost,
3668: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
3669: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3670: 'PROJ', ra.total_project_raw_cost,
3671: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
3672: 0 as revenue, -- revenue
3673: 0 as margin, -- margin

Line 3713: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,

3709: (ra.project_id,
3710: ra.budget_version_id,
3711: ra.task_id,
3712: ra.resource_list_member_id) as element_level, -- element_level
3713: DECODE(pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM,
3714: -- 'REVENUE', ra.total_utilization_hours,
3715: 'REVENUE', ra.total_plan_quantity,
3716: 0) as labor_hours, -- labor_hrs: 0 if not reported from this COST/REVENUE version
3717: 0 as burdened_cost, -- burdened_cost

Line 3719: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3715: 'REVENUE', ra.total_plan_quantity,
3716: 0) as labor_hours, -- labor_hrs: 0 if not reported from this COST/REVENUE version
3717: 0 as burdened_cost, -- burdened_cost
3718: 0 as raw_cost, -- raw_cost
3719: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3720: 'PROJ', ra.total_project_revenue,
3721: ra.total_plan_revenue) as revenue, -- revenue
3722: 0 as margin, -- margin: leave this null until we visit the row again
3723: 0 as margin_percent, -- margin_percent: leave this null until we visit the row again

Line 3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;

3742: bl.resource_assignment_id = ra.resource_assignment_id)) or
3743: ra.resource_assignment_type = 'ROLLED_UP');
3744:
3745: /* COST budget version: PL/SQL tables */
3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;

3743: ra.resource_assignment_type = 'ROLLED_UP');
3744:
3745: /* COST budget version: PL/SQL tables */
3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3744:
3745: /* COST budget version: PL/SQL tables */
3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3745: /* COST budget version: PL/SQL tables */
3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3746: l_c_project_id pa_fp_view_plans_pub.av_tab_project_id;
3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3747: l_c_task_id pa_fp_view_plans_pub.av_tab_task_id;
3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3748: l_c_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;

3749: l_c_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;

3750: l_c_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

3751: l_c_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;

Line 3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

3752: l_c_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

3753: l_c_element_name pa_fp_view_plans_pub.av_tab_element_name;
3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;

3754: l_c_element_level pa_fp_view_plans_pub.av_tab_element_level;
3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;

3755: l_c_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

3756: l_c_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3757: l_c_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;

3758: l_c_revenue pa_fp_view_plans_pub.av_tab_revenue;
3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:

Line 3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3759: l_c_margin pa_fp_view_plans_pub.av_tab_margin;
3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:
3767: /* REVENUE budget version: PL/SQL tables */

Line 3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3760: l_c_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:
3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3761: l_c_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3762: l_c_row_level pa_fp_view_plans_pub.av_tab_row_level;
3763: l_c_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:
3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;

3764: l_c_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:
3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;

3765: l_c_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3766:
3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3766:
3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3767: /* REVENUE budget version: PL/SQL tables */
3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3768: l_r_project_id pa_fp_view_plans_pub.av_tab_project_id;
3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3769: l_r_task_id pa_fp_view_plans_pub.av_tab_task_id;
3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3770: l_r_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;

3771: l_r_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;

3772: l_r_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

3773: l_r_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;

Line 3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

3774: l_r_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

3775: l_r_element_name pa_fp_view_plans_pub.av_tab_element_name;
3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;

3776: l_r_element_level pa_fp_view_plans_pub.av_tab_element_level;
3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;

3777: l_r_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

3778: l_r_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3779: l_r_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;

3780: l_r_revenue pa_fp_view_plans_pub.av_tab_revenue;
3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:

Line 3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3781: l_r_margin pa_fp_view_plans_pub.av_tab_margin;
3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:
3789: /* PL/SQL table for PERIODS VIEW */

Line 3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3782: l_r_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:
3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3783: l_r_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3784: l_r_row_level pa_fp_view_plans_pub.av_tab_row_level;
3785: l_r_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:
3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

3786: l_r_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:
3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

3787: l_r_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3788:
3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

3788:
3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

Line 3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

3789: /* PL/SQL table for PERIODS VIEW */
3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

Line 3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

3790: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

3791: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;

3792: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;

3793: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

3794: l_pd_cost_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

3795: l_pd_cost_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

3796: l_pd_revenue_budget_version_id pa_fp_view_plans_pub.av_tab_rev_budget_version_id;
3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

3797: l_pd_revenue_res_assignment_id pa_fp_view_plans_pub.av_tab_rev_res_assignment_id;
3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

3798: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

3799: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

3800: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

3801: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

3802: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

3803: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

3804: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

3805: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

3806: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

3807: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

3808: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

3809: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

3810: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

3811: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

3812: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

3813: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

3814: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

3815: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;

Line 3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

3816: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3824: -- local debugging variables

Line 3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

3817: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3824: -- local debugging variables
3825: l_err_stage NUMBER(15);

Line 3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

3818: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3824: -- local debugging variables
3825: l_err_stage NUMBER(15);
3826:

Line 3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;

3819: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
3820: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
3821: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
3822: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
3823: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers;
3824: -- local debugging variables
3825: l_err_stage NUMBER(15);
3826:
3827: begin

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

3824: -- local debugging variables
3825: l_err_stage NUMBER(15);
3826:
3827: begin
3828: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '100: entering procedure', 2);
3829: l_err_stage := 100;
3830: --hr_utility.trace('entered pa_fp_vp_pop_tables_separate');
3831: x_return_status := FND_API.G_RET_STS_SUCCESS;
3832: x_msg_count := 0;

Line 3836: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

3832: x_msg_count := 0;
3833: SAVEPOINT VIEW_PLANS_POP_TABLES_SEP;
3834:
3835: -- used to query pa_proj_periods_denorm table
3836: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
3837: 'PROJFUNC', 'PROJ_FUNCTIONAL',
3838: 'PROJ', 'PROJECT',
3839: 'TRANSACTION')
3840: into l_currency_type

Line 3843: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;

3839: 'TRANSACTION')
3840: into l_currency_type
3841: from dual;
3842:
3843: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3844: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3845: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3846: l_err_stage := 200;
3847: -- this is for populating PERIODS PL/SQL table

Line 3844: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;

3840: into l_currency_type
3841: from dual;
3842:
3843: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3844: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3845: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3846: l_err_stage := 200;
3847: -- this is for populating PERIODS PL/SQL table
3848: l_row_number := 0;

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

3841: from dual;
3842:
3843: pa_fp_view_plans_pub.G_FP_REV_VERSION_ID := p_rev_budget_version_id;
3844: pa_fp_view_plans_pub.G_FP_COST_VERSION_ID := p_cost_budget_version_id;
3845: pa_fp_view_plans_pub.G_DISPLAY_FROM := 'BOTH';
3846: l_err_stage := 200;
3847: -- this is for populating PERIODS PL/SQL table
3848: l_row_number := 0;
3849: select NVL(po.report_labor_hrs_from_code, 'COST'),

Line 3850: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

3846: l_err_stage := 200;
3847: -- this is for populating PERIODS PL/SQL table
3848: l_row_number := 0;
3849: select NVL(po.report_labor_hrs_from_code, 'COST'),
3850: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
3851: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
3852: -- po.default_amount_type_code,
3853: -- po.default_amount_subtype_code
3854: bv.period_profile_id

Line 3851: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

3847: -- this is for populating PERIODS PL/SQL table
3848: l_row_number := 0;
3849: select NVL(po.report_labor_hrs_from_code, 'COST'),
3850: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
3851: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
3852: -- po.default_amount_type_code,
3853: -- po.default_amount_subtype_code
3854: bv.period_profile_id
3855: into l_report_labor_hrs_from_code,

Line 3866: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '200: periodprofileid= ' || l_period_profile_id, 1);

3862: bv.fin_plan_type_id = po.fin_plan_type_id and
3863: po.project_id = p_project_id and
3864: po.fin_plan_option_level_code = 'PLAN_TYPE';
3865: l_err_stage := 300;
3866: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '200: periodprofileid= ' || l_period_profile_id, 1);
3867: -- insert all cost rows into the COST PL/SQL table
3868: open av_cost_csr;
3869: fetch av_cost_csr bulk collect into
3870: l_c_project_id,

Line 3915: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '300: bulk collected into pl/sql tables', 1);

3911: l_r_parent_element_name,
3912: l_r_unit_of_measure;
3913: close av_revenue_csr;
3914: l_err_stage := 500;
3915: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '300: bulk collected into pl/sql tables', 1);
3916: -- now, iterate through all rows in the COST table,
3917: --hr_utility.trace('l_c_project_id.first = ' || TO_CHAR(l_c_project_id.first));
3918: for i in nvl(l_c_project_id.first,0)..nvl(l_c_project_id.last,-1) loop
3919: l_found_complement := false;

Line 3926: (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

3922: if (l_r_project_id(j) = l_c_project_id(i)) and
3923: (l_r_task_id(j) = l_c_task_id(i)) and
3924: -- (l_r_revenue_res_assignment_id(j) = l_c_cost_res_assignment_id(i)) and
3925: ((l_r_resource_list_member_id(j) = l_c_resource_list_member_id(i)) or
3926: (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
3927: (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
3928: -- a match has been found: add data from REVENUE PL/SQL to the COST PL/SQL table
3929: --hr_utility.trace('FOUND MATCH');
3930: --hr_utility.trace('cost res assid= ' || to_char(l_c_cost_res_assignment_id(i)));

Line 3927: (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

3923: (l_r_task_id(j) = l_c_task_id(i)) and
3924: -- (l_r_revenue_res_assignment_id(j) = l_c_cost_res_assignment_id(i)) and
3925: ((l_r_resource_list_member_id(j) = l_c_resource_list_member_id(i)) or
3926: (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
3927: (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
3928: -- a match has been found: add data from REVENUE PL/SQL to the COST PL/SQL table
3929: --hr_utility.trace('FOUND MATCH');
3930: --hr_utility.trace('cost res assid= ' || to_char(l_c_cost_res_assignment_id(i)));
3931: --hr_utility.trace('rev res assid= ' || to_char(l_r_revenue_res_assignment_id(j)));

Line 3936: if (pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'R') or (l_c_burdened_cost(i) is null) then

3932: l_found_complement := true;
3933: l_c_revenue_budget_version_id(i) := l_r_revenue_budget_version_id(j);
3934: l_c_revenue_res_assignment_id(i) := l_r_revenue_res_assignment_id(j);
3935: l_c_revenue(i) := l_r_revenue(j);
3936: if (pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'R') or (l_c_burdened_cost(i) is null) then
3937: l_c_margin(i) := l_c_revenue(i) - l_c_raw_cost(i);
3938: else
3939: l_c_margin(i) := l_c_revenue(i) - l_c_burdened_cost(i);
3940: end if; -- burdened_cost is null

Line 3948: if pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM = 'REVENUE' then

3944: else
3945: l_c_margin_percent(i) := l_c_margin(i) / l_c_revenue(i);
3946: end if;
3947:
3948: if pa_fp_view_plans_pub.G_FP_CALC_QUANTITY_FROM = 'REVENUE' then
3949: l_c_labor_hours(i) := l_r_labor_hours(j);
3950: else
3951: l_c_labor_hours(i) := l_c_labor_hours(i);
3952: end if;

Line 3954: pa_fp_view_plans_pub.has_child_rows

3950: else
3951: l_c_labor_hours(i) := l_c_labor_hours(i);
3952: end if;
3953: l_c_has_child_element(i) :=
3954: pa_fp_view_plans_pub.has_child_rows
3955: (l_c_project_id(i),
3956: l_c_cost_budget_version_id(i),
3957: l_c_revenue_budget_version_id(i),
3958: l_c_task_id(i),

Line 3966: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

3962:
3963: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
3964: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
3965: /* 11/12/2002 --> check to see if flag = 'Y' before creating row */
3966: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
3967: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
3968: -- start with the COST version as the source
3969: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
3970:

Line 3967: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

3963: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
3964: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
3965: /* 11/12/2002 --> check to see if flag = 'Y' before creating row */
3966: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
3967: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
3968: -- start with the COST version as the source
3969: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
3970:
3971: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code

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

3969: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
3970:
3971: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
3972: if l_report_labor_hrs_from_code = 'COST' then
3973: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
3974: --hr_utility.trace('adding QUANTITY row');
3975: l_row_number := l_row_number + 1; -- increment row counter
3976: l_pd_project_id(l_row_number) := l_c_project_id(i);
3977: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 4113: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

4109: l_pd_project_total(l_row_number) := l_c_labor_hours(i); -- bug 2699651
4110: end if; -- display_flag: QUANTITY
4111: end if; -- QUANTITY
4112:
4113: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
4114: --hr_utility.trace('adding BURDENED COST row');
4115: -- process the BURDENED_COST row from the COST version
4116: l_row_number := l_row_number + 1; -- increment row counter
4117: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM

Line 4118: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then

4114: --hr_utility.trace('adding BURDENED COST row');
4115: -- process the BURDENED_COST row from the COST version
4116: l_row_number := l_row_number + 1; -- increment row counter
4117: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
4118: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then
4119: l_cost_row_number := l_row_number;
4120: end if;
4121: /*
4122: if l_c_burdened_cost(i) is not null then

Line 4276: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

4272: p_period_number => 14);
4273: l_pd_project_total(l_row_number) := l_c_burdened_cost(i); -- bug 2699651
4274: end if; -- display_flag: BURDENED_COST
4275:
4276: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
4277: --hr_utility.trace('adding RAW COST row');
4278: -- process the RAW_COST row from the COST version
4279: l_row_number := l_row_number + 1; -- increment row counter
4280: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM

Line 4281: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then

4277: --hr_utility.trace('adding RAW COST row');
4278: -- process the RAW_COST row from the COST version
4279: l_row_number := l_row_number + 1; -- increment row counter
4280: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
4281: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then
4282: l_cost_row_number := l_row_number;
4283: end if;
4284: /*
4285: if l_c_burdened_cost(i) is null then

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

4439: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(j);
4440: -- process the UTILIZATION row based on the value of l_report_labor_hrs_from_code
4441: if l_report_labor_hrs_from_code = 'REVENUE' then
4442:
4443: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
4444: l_row_number := l_row_number + 1; -- increment row counter
4445: l_pd_project_id(l_row_number) := l_r_project_id(j);
4446: l_pd_task_id(l_row_number) := l_r_task_id(j);
4447: l_pd_resource_list_member_id(l_row_number) := l_r_resource_list_member_id(j);

Line 4587: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

4583: l_pd_project_total(l_row_number) := l_r_labor_hours(j); -- bug 2699651
4584: end if; --display_flag: QUANTITY
4585: end if; -- QUANTITY
4586:
4587: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
4588: --hr_utility.trace('adding REVENUE row');
4589: -- process the REVENUE row for this REVENUE version
4590: l_row_number := l_row_number + 1; -- increment row counter
4591: l_revenue_row_number := l_row_number; -- used when calculating margin, margin_percent

Line 4726: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

4722: p_period_number => 14);
4723: l_pd_project_total(l_row_number) := l_r_revenue(j); -- bug 2699651
4724: end if; -- display_flag: REVENUE
4725:
4726: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
4727: --hr_utility.trace('adding MARGIN row');
4728: -- finally, insert the MARGIN and MARGIN_PERCENT rows
4729: -- MARGIN row
4730: l_row_number := l_row_number + 1; -- increment row counter

Line 4776: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

4772: l_pd_succeeding(l_row_number) := l_pd_succeeding(l_revenue_row_number)-l_pd_succeeding(l_cost_row_number);
4773: 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
4774: end if; -- display_flag: MARGIN
4775:
4776: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
4777: --hr_utility.trace('adding MARGIN PERCENT row');
4778: -- MARGIN_PERCENT
4779: l_row_number := l_row_number + 1; -- increment row counter
4780: l_pd_project_id(l_row_number) := l_c_project_id(i);

Line 4824: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

4820: 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));
4821: 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));
4822: 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
4823: end if; -- display_flag: MARGIN PERCENT
4824: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
4825: /*
4826: l_r_project_id.delete(j);
4827: l_r_task_id.delete(j);
4828: l_r_resource_list_member_id.delete(j);

Line 4899: pa_fp_view_plans_pub.has_child_rows

4895: l_c_revenue(i) := 0;
4896: l_c_margin(i) := 0;
4897: l_c_margin_percent(i) := 0;
4898: l_c_has_child_element(i) :=
4899: pa_fp_view_plans_pub.has_child_rows
4900: (l_c_project_id(i),
4901: l_c_cost_budget_version_id(i),
4902: -1,
4903: l_c_task_id(i),

Line 4910: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

4906: 'A');
4907: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
4908: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, LABOR_HOURS ---- */
4909: /* 11/12/2002: populate the rows only if flag = 'Y' */
4910: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
4911: -- use the COST version as the source for COST row
4912: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4913: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
4914: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then

Line 4913: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

4909: /* 11/12/2002: populate the rows only if flag = 'Y' */
4910: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
4911: -- use the COST version as the source for COST row
4912: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4913: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
4914: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
4915: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
4916: if l_report_labor_hrs_from_code = 'COST' then
4917: l_row_number := l_row_number + 1; -- increment row counter

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

4910: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
4911: -- use the COST version as the source for COST row
4912: l_cur_resource_assignment_id := l_c_cost_res_assignment_id(i);
4913: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
4914: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
4915: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
4916: if l_report_labor_hrs_from_code = 'COST' then
4917: l_row_number := l_row_number + 1; -- increment row counter
4918: l_pd_project_id(l_row_number) := l_c_project_id(i);

Line 5099: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

5095: l_pd_project_total(l_row_number) := null; -- bug 2699651
5096: end if; -- QUANTITY
5097: end if; -- display_flag: QUANTITY
5098:
5099: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
5100: -- process the BURDENED_COST row for this COST version
5101: l_row_number := l_row_number + 1; -- increment row counter
5102: l_pd_project_id(l_row_number) := l_c_project_id(i);
5103: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5237: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

5233: p_period_number => 14);
5234: l_pd_project_total(l_row_number) := l_c_burdened_cost(i); -- bug 2699651
5235: end if; -- display_flag: BURDENED_COST
5236:
5237: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
5238: -- process the RAW_COST row for this COST version
5239: l_row_number := l_row_number + 1; -- increment row counter
5240: l_pd_project_id(l_row_number) := l_c_project_id(i);
5241: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5374: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

5370: p_period_number => 14);
5371: l_pd_project_total(l_row_number) := l_c_raw_cost(i); -- bug 2699651
5372: end if; -- display_flag: RAW COST
5373:
5374: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
5375: -- insert (0'S) for REVENUE row
5376: l_row_number := l_row_number + 1; -- increment row counter
5377: l_pd_project_id(l_row_number) := l_c_project_id(i);
5378: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5422: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

5418: l_pd_succeeding(l_row_number) := null;
5419: l_pd_project_total(l_row_number) := null; -- bug 2699651
5420: end if; -- display_flag: REVENUE
5421:
5422: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
5423: -- insert (0's) for MARGIN row
5424: l_row_number := l_row_number + 1; -- increment row counter
5425: l_pd_project_id(l_row_number) := l_c_project_id(i);
5426: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5470: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

5466: l_pd_succeeding(l_row_number) := null;
5467: l_pd_project_total(l_row_number) := null; -- bug 2699651
5468: end if; -- display_flag: MARGIN
5469:
5470: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
5471: -- insert (0'S) for MARGIN_PERCENT row
5472: l_row_number := l_row_number + 1; -- increment row counter
5473: l_pd_project_id(l_row_number) := l_c_project_id(i);
5474: l_pd_task_id(l_row_number) := l_c_task_id(i);

Line 5517: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

5513: l_pd_preceding(l_row_number) := null;
5514: l_pd_succeeding(l_row_number) := null;
5515: l_pd_project_total(l_row_number) := null; -- bug 2699651
5516: end if; -- display_flag: MARGIN PERCENT
5517: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
5518: end if; -- not found_complement
5519: end loop; -- COST PL/SQL loop
5520: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);
5521: l_err_stage := 600;

Line 5520: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);

5516: end if; -- display_flag: MARGIN PERCENT
5517: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
5518: end if; -- not found_complement
5519: end loop; -- COST PL/SQL loop
5520: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '400: iterated through cost pl/sql table', 1);
5521: l_err_stage := 600;
5522: -- after looping through the COST PL/SQL table, iterate through the REVENUE PL/SQL
5523: -- table, and copy over the untouched rows for PERIOD PL/SQL table
5524: for k in nvl(l_r_project_id.first,0)..nvl(l_r_project_id.last,-1) loop

Line 5529: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

5525:
5526: -- copy over the REVENUE PL/SQL rows into PERIODS PL/SQL table, padding cost #'s with 0's
5527: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(k);
5528:
5529: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
5530: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
5531: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
5532: if l_report_labor_hrs_from_code = 'REVENUE' then
5533: l_row_number := l_row_number + 1; -- increment row counter

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

5526: -- copy over the REVENUE PL/SQL rows into PERIODS PL/SQL table, padding cost #'s with 0's
5527: l_cur_resource_assignment_id := l_r_revenue_res_assignment_id(k);
5528:
5529: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
5530: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
5531: -- process the QUANTITY row based on the value of l_report_labor_hrs_from_code
5532: if l_report_labor_hrs_from_code = 'REVENUE' then
5533: l_row_number := l_row_number + 1; -- increment row counter
5534: l_pd_project_id(l_row_number) := l_r_project_id(k);

Line 5715: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

5711: l_pd_project_total(l_row_number) := null; -- bug 2699651
5712: end if; -- QUANTITY
5713: end if; -- display_flag: QUANTITY
5714:
5715: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
5716: -- process the REVENUE row for this REVENUE version
5717: l_row_number := l_row_number + 1; -- increment row counter
5718: l_pd_project_id(l_row_number) := l_r_project_id(k);
5719: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 5852: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

5848: p_period_number => 14);
5849: l_pd_project_total(l_row_number) := l_r_revenue(k); -- bug 2699651
5850: end if; -- display_flag: REVENUE
5851:
5852: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
5853: -- insert (0'S) for BURDENED_COST row
5854: l_row_number := l_row_number + 1; -- increment row counter
5855: l_pd_project_id(l_row_number) := l_r_project_id(k);
5856: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 5900: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

5896: l_pd_succeeding(l_row_number) := null;
5897: l_pd_project_total(l_row_number) := null; -- bug 2699651
5898: end if; -- display_flag: BURDENED COST
5899:
5900: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
5901: -- insert (0'S) for RAW_COST row
5902: l_row_number := l_row_number + 1; -- increment row counter
5903: l_pd_project_id(l_row_number) := l_r_project_id(k);
5904: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 5948: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

5944: l_pd_succeeding(l_row_number) := null;
5945: l_pd_project_total(l_row_number) := null; -- bug 2699651
5946: end if; -- display_flag: RAW COST
5947:
5948: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
5949: -- insert (0'S) for MARGIN row
5950: l_row_number := l_row_number + 1; -- increment row counter
5951: l_pd_project_id(l_row_number) := l_r_project_id(k);
5952: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 5996: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

5992: l_pd_succeeding(l_row_number) := null;
5993: l_pd_project_total(l_row_number) := null; -- bug 2699651
5994: end if; -- display_flag: MARGIN
5995:
5996: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
5997: -- insert (0'S) for MARGIN_PERCENT row
5998: l_row_number := l_row_number + 1; -- increment row counter
5999: l_pd_project_id(l_row_number) := l_r_project_id(k);
6000: l_pd_task_id(l_row_number) := l_r_task_id(k);

Line 6043: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6039: l_pd_preceding(l_row_number) := null;
6040: l_pd_succeeding(l_row_number) := null;
6041: l_pd_project_total(l_row_number) := null; -- bug 2699651
6042: end if; -- display_flag: MARGIN PERCENT
6043: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6044: end loop; -- REVENUE PL/SQL loop: the untouched rows
6045: l_err_stage := 700;
6046: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);
6047:

Line 6046: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);

6042: end if; -- display_flag: MARGIN PERCENT
6043: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6044: end loop; -- REVENUE PL/SQL loop: the untouched rows
6045: l_err_stage := 700;
6046: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '500: iterated through rev pl/sql table', 1);
6047:
6048: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
6049:
6050: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP from the

Line 6054: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

6050: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP from the
6051: -- COST PL/SQL table
6052: -- rows in the COST PL/SQL table
6053:
6054: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
6055: forall x in nvl(l_c_project_id.first,0)..nvl(l_c_project_id.last,-1)
6056: insert into pa_fin_vp_amts_view_tmp
6057: (project_id,
6058: task_id,

Line 6096: 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);

6092: -1,
6093: l_c_unit_of_measure(x),
6094: l_c_has_child_element(x));
6095: l_err_stage := 800;
6096: 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);
6097: -- rows in the REVENUE PL/SQL table
6098: forall y in nvl(l_r_project_id.first,0)..nvl(l_r_project_id.last,-1)
6099: insert into pa_fin_vp_amts_view_tmp
6100: (project_id,

Line 6138: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

6134: l_r_revenue_res_assignment_id(y),
6135: -1,
6136: l_r_unit_of_measure(y),
6137: 'Y'); -- PERFORMANCE LIABILITY: FOR UNMARRIED REVENUE ROWS, WE SAY ALWAYS HAVE CHILD
6138: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
6139: l_err_stage := 900;
6140: 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);
6141: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6142: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the

Line 6140: 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);

6136: l_r_unit_of_measure(y),
6137: 'Y'); -- PERFORMANCE LIABILITY: FOR UNMARRIED REVENUE ROWS, WE SAY ALWAYS HAVE CHILD
6138: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
6139: l_err_stage := 900;
6140: 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);
6141: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6142: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
6143: -- PERIODS PL/SQL table
6144: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 6144: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

6140: 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);
6141: --hr_utility.trace('total rows is ' || to_char(nvl(l_c_project_id.last,0) + nvl(l_r_project_id.last,0)));
6142: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
6143: -- PERIODS PL/SQL table
6144: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6145: --hr_utility.trace('inserting into pa_fin_vp_pds_view_tmp for POP_TEM_TABLES_SEP');
6146: --hr_utility.trace('l_pd_project_id.last= ' || to_char(l_pd_project_id.last));
6147: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
6148: insert into pa_fin_vp_pds_view_tmp

Line 6215: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6211: l_pd_preceding(z),
6212: l_pd_succeeding(z),
6213: l_pd_has_child_element(z),
6214: l_pd_project_total(z));
6215: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6216: l_err_stage:= 1000;
6217: 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);
6218: commit;
6219: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);

Line 6217: 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);

6213: l_pd_has_child_element(z),
6214: l_pd_project_total(z));
6215: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6216: l_err_stage:= 1000;
6217: 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);
6218: commit;
6219: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);
6220: EXCEPTION
6221: when others then

Line 6219: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);

6215: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6216: l_err_stage:= 1000;
6217: 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);
6218: commit;
6219: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_separate', '800: leaving procedure', 2);
6220: EXCEPTION
6221: when others then
6222: rollback to VIEW_PLANS_POP_TABLES_SEP;
6223: --hr_utility.trace('error stage= ' || to_char(l_err_stage));

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

6223: --hr_utility.trace('error stage= ' || to_char(l_err_stage));
6224: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
6225: x_msg_count := 1;
6226: x_msg_data := SQLERRM;
6227: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
6228: p_procedure_name => 'pa_fp_vp_pop_tables_separate');
6229: pa_debug.reset_err_stack;
6230: return;
6231: end pa_fp_vp_pop_tables_separate;

Line 6283: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6279: ra.task_id,
6280: ra.resource_list_member_id) as element_level, -- element_level
6281: -- ra.total_utilization_hours as labor_hours,
6282: ra.total_plan_quantity as labor_hours,
6283: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6284: 'PROJ', ra.total_project_burdened_cost,
6285: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6286: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6287: 'PROJ', ra.total_project_raw_cost,

Line 6286: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6282: ra.total_plan_quantity as labor_hours,
6283: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6284: 'PROJ', ra.total_project_burdened_cost,
6285: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6286: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6287: 'PROJ', ra.total_project_raw_cost,
6288: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6289: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6290: 'PROJ', ra.total_project_revenue,

Line 6289: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6285: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
6286: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6287: 'PROJ', ra.total_project_raw_cost,
6288: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6289: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6290: 'PROJ', ra.total_project_revenue,
6291: ra.total_plan_revenue) as revenue, -- revenue
6292: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6293: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

Line 6292: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6288: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
6289: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6290: 'PROJ', ra.total_project_revenue,
6291: ra.total_plan_revenue) as revenue, -- revenue
6292: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6293: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6294: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6295: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6296: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

Line 6293: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6289: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6290: 'PROJ', ra.total_project_revenue,
6291: ra.total_plan_revenue) as revenue, -- revenue
6292: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6293: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6294: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6295: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6296: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6297: 'R', (ra.total_plan_revenue - total_plan_raw_cost),

Line 6296: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6292: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6293: 'PROJ', DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6294: 'R', (ra.total_project_revenue - ra.total_project_raw_cost),
6295: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6296: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6297: 'R', (ra.total_plan_revenue - total_plan_raw_cost),
6298: (ra.total_plan_revenue - ra.total_plan_burdened_cost))) as margin, -- margin
6299: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6300: 'PROJ',

Line 6299: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6295: (ra.total_project_revenue - ra.total_project_burdened_cost)),
6296: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6297: 'R', (ra.total_plan_revenue - total_plan_raw_cost),
6298: (ra.total_plan_revenue - ra.total_plan_burdened_cost))) as margin, -- margin
6299: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6300: 'PROJ',
6301: DECODE(ra.total_project_revenue,
6302: 0, 0,
6303: null, null,

Line 6304: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6300: 'PROJ',
6301: DECODE(ra.total_project_revenue,
6302: 0, 0,
6303: null, null,
6304: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6305: 'R', (ra.total_project_revenue - ra.total_project_raw_cost)/
6306: ra.total_project_revenue,
6307: (ra.total_project_revenue - ra.total_project_burdened_cost)/
6308: ra.total_project_revenue)),

Line 6312: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,

6308: ra.total_project_revenue)),
6309: DECODE(ra.total_plan_revenue,
6310: 0, 0,
6311: null, null,
6312: DECODE(pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM,
6313: 'R', (ra.total_plan_revenue - ra.total_plan_raw_cost)/
6314: ra.total_plan_revenue,
6315: (ra.total_plan_revenue - ra.total_plan_burdened_cost)/
6316: ra.total_plan_revenue))) as margin_percent, -- margin_percent

Line 6330: pa_fp_view_plans_pub.has_child_rows

6326: (ra.project_id,
6327: ra.task_id,
6328: ra.resource_list_member_id) as parent_element_name,
6329: ra.unit_of_measure,
6330: pa_fp_view_plans_pub.has_child_rows
6331: (p_project_id,
6332: p_budget_version_id,
6333: -1,
6334: ra.task_id,

Line 6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;

6346: bl.resource_assignment_id = ra.resource_assignment_id)) or
6347: ra.resource_assignment_type = 'ROLLED_UP');
6348:
6349: /* PL/SQL tables */
6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;

6347: ra.resource_assignment_type = 'ROLLED_UP');
6348:
6349: /* PL/SQL tables */
6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

6348:
6349: /* PL/SQL tables */
6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

6349: /* PL/SQL tables */
6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

6350: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

6351: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

6352: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

6353: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;

Line 6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

6354: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

6355: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

6356: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 6361: l_margin pa_fp_view_plans_pub.av_tab_margin;

6357: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

6358: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

6359: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

6360: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:

Line 6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

6361: l_margin pa_fp_view_plans_pub.av_tab_margin;
6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:
6369: /* PL/SQL table for PERIODS VIEW */

Line 6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

6362: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:
6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

6363: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6364: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
6365: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:
6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

6366: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:
6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

6367: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6368:
6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

6368:
6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

6369: /* PL/SQL table for PERIODS VIEW */
6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

6370: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

6371: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

6372: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

6373: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

6374: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

6375: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

6376: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

6377: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

6378: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

6379: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

6380: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

6381: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

6382: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

6383: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

6384: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

6385: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

6386: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

6387: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

6388: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

6389: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

6390: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

6391: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

6392: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

6393: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651

Line 6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

6394: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
6402: -- local debugging variables

Line 6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

6395: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
6402: -- local debugging variables
6403: l_err_stage NUMBER(15);

Line 6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

6396: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
6402: -- local debugging variables
6403: l_err_stage NUMBER(15);
6404:

Line 6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651

6397: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
6398: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
6399: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
6400: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
6401: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; -- bug 2699651
6402: -- local debugging variables
6403: l_err_stage NUMBER(15);
6404:
6405: begin

Line 6408: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '100: entering pa_fp_vp_pop_tables_together', 2);

6404:
6405: begin
6406: --hr_utility.trace_on(null, 'dlai');
6407: l_err_stage := 100;
6408: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '100: entering pa_fp_vp_pop_tables_together', 2);
6409: --hr_utility.trace('entered pa_fp_vp_pop_tables_together: 100');
6410: x_return_status := FND_API.G_RET_STS_SUCCESS;
6411: x_msg_count := 0;
6412: SAVEPOINT VIEW_PLANS_POP_TABLES_SAME;

Line 6415: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

6411: x_msg_count := 0;
6412: SAVEPOINT VIEW_PLANS_POP_TABLES_SAME;
6413:
6414: -- used to query pa_proj_periods_denorm table
6415: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
6416: 'PROJFUNC', 'PROJ_FUNCTIONAL',
6417: 'PROJ', 'PROJECT',
6418: 'TRANSACTION')
6419: into l_currency_type

Line 6425: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

6421:
6422: -- this is for populating PERIODS PL/SQL table
6423: l_row_number := 0;
6424: select NVL(po.report_labor_hrs_from_code, 'COST'),
6425: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
6426: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
6427: -- po.default_amount_type_code,
6428: -- po.default_amount_subtype_code
6429: bv.period_profile_id

Line 6426: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

6422: -- this is for populating PERIODS PL/SQL table
6423: l_row_number := 0;
6424: select NVL(po.report_labor_hrs_from_code, 'COST'),
6425: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
6426: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
6427: -- po.default_amount_type_code,
6428: -- po.default_amount_subtype_code
6429: bv.period_profile_id
6430: into l_report_labor_hrs_from_code,

Line 6441: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);

6437: bv.fin_plan_type_id = po.fin_plan_type_id and
6438: po.project_id = p_project_id and
6439: po.fin_plan_option_level_code = 'PLAN_TYPE';
6440: l_err_stage := 200;
6441: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
6442: --hr_utility.trace('retrieved period profile id: 200');
6443: -- populate the AMOUNTS PL/SQL table
6444: open av_csr;
6445: fetch av_csr bulk collect into

Line 6466: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '300: bulk collected into amts pl/sql table', 1);

6462: l_unit_of_measure,
6463: l_has_child_element;
6464: close av_csr;
6465: l_err_stage := 300;
6466: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '300: bulk collected into amts pl/sql table', 1);
6467: --hr_utility.trace('bulk collected into amts pl/sql table: 300');
6468: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
6469:
6470: -- populate the PERIODS PL/SQL table

Line 6471: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

6467: --hr_utility.trace('bulk collected into amts pl/sql table: 300');
6468: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
6469:
6470: -- populate the PERIODS PL/SQL table
6471: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6472: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6473: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
6474: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
6475: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop

Line 6472: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

6468: --hr_utility.trace('number of rows = ' || TO_CHAR(l_project_id.last));
6469:
6470: -- populate the PERIODS PL/SQL table
6471: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
6472: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
6473: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
6474: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
6475: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
6476: --hr_utility.trace('i= ' || to_char(i));

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

6474: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
6475: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
6476: --hr_utility.trace('i= ' || to_char(i));
6477: --hr_utility.trace('loop: ' || to_char(i));
6478: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
6479: l_row_number := l_row_number + 1;
6480: -- process the QUANTITY numbers
6481: l_pd_project_id(l_row_number) := l_project_id(i);
6482: l_pd_task_id(l_row_number) := l_task_id(i);

Line 6617: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

6613: p_period_number => 14);
6614: l_pd_project_total(l_row_number) := l_labor_hours(i); -- bug 2699651
6615: end if; -- display_flag: QUANTITY
6616:
6617: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
6618: -- process the BURDENED_COST numbers
6619: l_row_number := l_row_number + 1;
6620: l_pd_project_id(l_row_number) := l_project_id(i);
6621: l_pd_task_id(l_row_number) := l_task_id(i);

Line 6645: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then

6641: else
6642: l_pd_has_child_element(l_row_number) := 'Y';
6643: end if;
6644: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
6645: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM = 'B' then
6646: l_cost_row_number := l_row_number;
6647: end if;
6648: /*
6649: if l_burdened_cost(i) is not null then

Line 6777: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

6773: p_period_number => 14);
6774: l_pd_project_total(l_row_number) := l_burdened_cost(i); -- bug 2699651
6775: end if; -- display_flag: BURDENED COST
6776:
6777: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
6778: -- process the RAW_COST numbers
6779: l_row_number := l_row_number + 1;
6780: l_pd_project_id(l_row_number) := l_project_id(i);
6781: l_pd_task_id(l_row_number) := l_task_id(i);

Line 6805: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then

6801: else
6802: l_pd_has_child_element(l_row_number) := 'Y';
6803: end if;
6804: -- 02/14/03 dlai: use appropriate cost row based on G_FP_CALC_MARGIN_FROM
6805: if pa_fp_view_plans_pub.G_FP_CALC_MARGIN_FROM <> 'B' then
6806: l_cost_row_number := l_row_number;
6807: end if;
6808: /*
6809: if l_burdened_cost(i) is null then

Line 6937: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

6933: p_period_number => 14);
6934: l_pd_project_total(l_row_number) := l_raw_cost(i); -- bug 2699651
6935: end if; -- display_flag: RAW COST
6936:
6937: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
6938: -- process REVENUE information
6939: l_row_number := l_row_number + 1;
6940: l_pd_project_id(l_row_number) := l_project_id(i);
6941: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7074: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

7070: p_period_number => 14);
7071: l_pd_project_total(l_row_number) := l_revenue(i); -- bug 2699651
7072: end if; -- display_flag: REVENUE
7073:
7074: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
7075: -- calculate and insert the MARGIN row
7076: l_row_number := l_row_number + 1;
7077: l_pd_project_id(l_row_number) := l_project_id(i);
7078: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7119: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

7115: l_pd_succeeding(l_row_number) := l_pd_succeeding(l_revenue_row_number)-l_pd_succeeding(l_cost_row_number);
7116: 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
7117: end if; -- display_flag: MARGIN
7118:
7119: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
7120: -- calculate and insert the MARGIN_PERCENT row
7121: l_row_number := l_row_number + 1;
7122: l_pd_project_id(l_row_number) := l_project_id(i);
7123: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7164: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

7160: 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));
7161: end if; -- display_from: MARGIN PERCENT
7162: 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
7163: end loop;
7164: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7165: l_err_stage := 400;
7166: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);
7167: --hr_utility.trace('populated the pds pl/sql tables: 400');
7168:

Line 7166: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);

7162: 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
7163: end loop;
7164: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7165: l_err_stage := 400;
7166: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '400: populated the pds pl/sql tables', 1);
7167: --hr_utility.trace('populated the pds pl/sql tables: 400');
7168:
7169: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
7170: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP

Line 7171: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

7167: --hr_utility.trace('populated the pds pl/sql tables: 400');
7168:
7169: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
7170: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
7171: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
7172: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
7173: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
7174: insert into pa_fin_vp_amts_view_tmp
7175: (project_id,

Line 7172: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

7168:
7169: /* TRANSFER DATA FROM PL/SQL TABLES TO GLOBAL TEMPORARY TABLES */
7170: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
7171: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
7172: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
7173: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
7174: insert into pa_fin_vp_amts_view_tmp
7175: (project_id,
7176: task_id,

Line 7214: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '500: populated the amts_tmp tables', 1);

7210: l_res_assignment_id(i),
7211: l_unit_of_measure(i),
7212: l_has_child_element(i));
7213: l_err_stage := 500;
7214: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '500: populated the amts_tmp tables', 1);
7215: --hr_utility.trace('populated the amts_tmp table: 500');
7216: commit;
7217: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
7218:

Line 7217: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

7213: l_err_stage := 500;
7214: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '500: populated the amts_tmp tables', 1);
7215: --hr_utility.trace('populated the amts_tmp table: 500');
7216: commit;
7217: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
7218:
7219: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
7220: -- PERIODS PL/SQL table
7221: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

Line 7221: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

7217: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
7218:
7219: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
7220: -- PERIODS PL/SQL table
7221: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7222: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7223: --hr_utility.trace('l_pd_project_id.first= ' || TO_CHAR(l_pd_project_id.first));
7224: --hr_utility.trace('l_pd_project_id.last= ' || TO_CHAR(l_pd_project_id.last));
7225: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)

Line 7222: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

7218:
7219: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP from the
7220: -- PERIODS PL/SQL table
7221: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7222: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7223: --hr_utility.trace('l_pd_project_id.first= ' || TO_CHAR(l_pd_project_id.first));
7224: --hr_utility.trace('l_pd_project_id.last= ' || TO_CHAR(l_pd_project_id.last));
7225: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
7226: insert into pa_fin_vp_pds_view_tmp

Line 7294: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);

7290: l_pd_succeeding(z),
7291: l_pd_has_child_element(z),
7292: l_pd_project_total(z));
7293: l_err_stage := 600;
7294: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
7295: --hr_utility.trace('populated the pds_temp table: 600');
7296: commit;
7297: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7298: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);

Line 7297: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

7293: l_err_stage := 600;
7294: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
7295: --hr_utility.trace('populated the pds_temp table: 600');
7296: commit;
7297: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7298: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);
7299:
7300: EXCEPTION
7301: when others then

Line 7298: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);

7294: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '600: populated the pds_tmp tables', 1);
7295: --hr_utility.trace('populated the pds_temp table: 600');
7296: commit;
7297: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
7298: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_together', '700: leaving procedure', 2);
7299:
7300: EXCEPTION
7301: when others then
7302: rollback to VIEW_PLANS_POP_TABLES_SAME;

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

7303: --hr_utility.trace('l_err_stage= ' || to_char(l_err_stage));
7304: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
7305: x_msg_count := 1;
7306: x_msg_data := SQLERRM;
7307: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
7308: p_procedure_name => 'View_Plans_Pop_Tables_Tog');
7309: pa_debug.reset_err_stack;
7310: return;
7311: end pa_fp_vp_pop_tables_together;

Line 7365: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

7361: DECODE(po.report_labor_hrs_from_code,
7362: 'REVENUE', 0,
7363: -- ra.total_utilization_hours) as labor_hours,
7364: ra.total_plan_quantity) as labor_hours,
7365: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7366: 'PROJ', ra.total_project_burdened_cost,
7367: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
7368: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7369: 'PROJ', ra.total_project_raw_cost,

Line 7368: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

7364: ra.total_plan_quantity) as labor_hours,
7365: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7366: 'PROJ', ra.total_project_burdened_cost,
7367: ra.total_plan_burdened_cost) as burdened_cost, -- burdened_cost
7368: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7369: 'PROJ', ra.total_project_raw_cost,
7370: ra.total_plan_raw_cost) as raw_cost, -- raw_cost
7371: 0 as revenue, -- revenue
7372: 0 as margin, -- margin

Line 7387: pa_fp_view_plans_pub.has_child_rows

7383: (ra.project_id,
7384: ra.task_id,
7385: ra.resource_list_member_id) as parent_element_name,
7386: ra.unit_of_measure,
7387: pa_fp_view_plans_pub.has_child_rows
7388: (p_project_id,
7389: p_budget_version_id,
7390: -1,
7391: ra.task_id,

Line 7427: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

7423: -- ra.total_utilization_hours) as labor_hours,
7424: ra.total_plan_quantity) as labor_hours,
7425: 0 as burdened_cost, -- burdened_cost
7426: 0 as raw_cost, -- raw_cost
7427: DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7428: 'PROJ', ra.total_project_revenue,
7429: ra.total_plan_revenue) as revenue, -- revenue
7430: 0 as margin, -- margin
7431: 0 as margin_percent, -- margin_percent

Line 7445: pa_fp_view_plans_pub.has_child_rows

7441: (ra.project_id,
7442: ra.task_id,
7443: ra.resource_list_member_id) as parent_element_name,
7444: ra.unit_of_measure,
7445: pa_fp_view_plans_pub.has_child_rows
7446: (p_project_id,
7447: p_budget_version_id,
7448: -1,
7449: ra.task_id,

Line 7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;

7461: bl.resource_assignment_id = ra.resource_assignment_id)) or
7462: ra.resource_assignment_type = 'ROLLED_UP');
7463:
7464: /* AMOUNTS VIEW PL/SQL tables */
7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;

7462: ra.resource_assignment_type = 'ROLLED_UP');
7463:
7464: /* AMOUNTS VIEW PL/SQL tables */
7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

7463:
7464: /* AMOUNTS VIEW PL/SQL tables */
7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

7464: /* AMOUNTS VIEW PL/SQL tables */
7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

Line 7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

7465: l_project_id pa_fp_view_plans_pub.av_tab_project_id;
7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

Line 7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;

7466: l_task_id pa_fp_view_plans_pub.av_tab_task_id;
7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

Line 7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;

7467: l_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

Line 7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;

7468: l_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;

Line 7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;

7469: l_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

Line 7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;

7470: l_element_name pa_fp_view_plans_pub.av_tab_element_name;
7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;

7471: l_element_level pa_fp_view_plans_pub.av_tab_element_level;
7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 7476: l_margin pa_fp_view_plans_pub.av_tab_margin;

7472: l_labor_hours pa_fp_view_plans_pub.av_tab_labor_hours;
7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;

7473: l_burdened_cost pa_fp_view_plans_pub.av_tab_burdened_cost;
7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

Line 7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

7474: l_raw_cost pa_fp_view_plans_pub.av_tab_raw_cost;
7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;

7475: l_revenue pa_fp_view_plans_pub.av_tab_revenue;
7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:

Line 7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

7476: l_margin pa_fp_view_plans_pub.av_tab_margin;
7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:
7484: /* PL/SQL table for PERIODS VIEW */

Line 7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

7477: l_margin_percent pa_fp_view_plans_pub.av_tab_margin_percent;
7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:
7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

Line 7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

7478: l_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7479: l_row_level pa_fp_view_plans_pub.av_tab_row_level;
7480: l_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:
7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

Line 7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;

7481: l_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:
7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

Line 7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;

7482: l_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7483:
7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

Line 7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;

7483:
7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;

7484: /* PL/SQL table for PERIODS VIEW */
7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

Line 7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;

7485: l_pd_project_id pa_fp_view_plans_pub.av_tab_project_id;
7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

Line 7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;

7486: l_pd_task_id pa_fp_view_plans_pub.av_tab_task_id;
7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

Line 7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;

7487: l_pd_resource_list_member_id pa_fp_view_plans_pub.av_tab_resource_list_member_id;
7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

Line 7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;

7488: l_pd_unit_of_measure pa_fp_view_plans_pub.av_tab_unit_of_measure;
7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

Line 7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;

7489: l_pd_budget_version_id pa_fp_view_plans_pub.av_tab_cost_budget_version_id;
7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

Line 7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;

7490: l_pd_res_assignment_id pa_fp_view_plans_pub.av_tab_cost_res_assignment_id;
7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

Line 7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;

7491: l_pd_element_name pa_fp_view_plans_pub.av_tab_element_name;
7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

Line 7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;

7492: l_pd_element_level pa_fp_view_plans_pub.av_tab_element_level;
7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;

7493: l_pd_line_editable_flag pa_fp_view_plans_pub.av_tab_line_editable;
7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;

7494: l_pd_row_level pa_fp_view_plans_pub.av_tab_row_level;
7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;

7495: l_pd_parent_element_name pa_fp_view_plans_pub.av_tab_element_name;
7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;

7496: l_pd_amount_type pa_fp_view_plans_pub.av_tab_amount_type;
7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;

7497: l_pd_amount_subtype pa_fp_view_plans_pub.av_tab_amount_subtype;
7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;

7498: l_pd_amount_type_id pa_fp_view_plans_pub.av_tab_amount_type_id;
7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;

7499: l_pd_amount_subtype_id pa_fp_view_plans_pub.av_tab_amount_subtype_id;
7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;

7500: l_pd_period_1 pa_fp_view_plans_pub.av_tab_period_numbers;
7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;

7501: l_pd_period_2 pa_fp_view_plans_pub.av_tab_period_numbers;
7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;

7502: l_pd_period_3 pa_fp_view_plans_pub.av_tab_period_numbers;
7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;

7503: l_pd_period_4 pa_fp_view_plans_pub.av_tab_period_numbers;
7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;

7504: l_pd_period_5 pa_fp_view_plans_pub.av_tab_period_numbers;
7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

Line 7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;

7505: l_pd_period_6 pa_fp_view_plans_pub.av_tab_period_numbers;
7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

Line 7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;

7506: l_pd_period_7 pa_fp_view_plans_pub.av_tab_period_numbers;
7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

Line 7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;

7507: l_pd_period_8 pa_fp_view_plans_pub.av_tab_period_numbers;
7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

Line 7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;

7508: l_pd_period_9 pa_fp_view_plans_pub.av_tab_period_numbers;
7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651

Line 7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;

7509: l_pd_period_10 pa_fp_view_plans_pub.av_tab_period_numbers;
7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
7517: -- local debugging variables

Line 7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;

7510: l_pd_period_11 pa_fp_view_plans_pub.av_tab_period_numbers;
7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
7517: -- local debugging variables
7518: l_err_stage NUMBER(15);

Line 7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;

7511: l_pd_period_12 pa_fp_view_plans_pub.av_tab_period_numbers;
7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
7517: -- local debugging variables
7518: l_err_stage NUMBER(15);
7519:

Line 7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651

7512: l_pd_period_13 pa_fp_view_plans_pub.av_tab_period_numbers;
7513: l_pd_preceding pa_fp_view_plans_pub.av_tab_preceding_amts;
7514: l_pd_succeeding pa_fp_view_plans_pub.av_tab_succeeding_amts;
7515: l_pd_has_child_element pa_fp_view_plans_pub.av_tab_has_child_element;
7516: l_pd_project_total pa_fp_view_plans_pub.av_tab_period_numbers; --bug 2699651
7517: -- local debugging variables
7518: l_err_stage NUMBER(15);
7519:
7520: begin

Line 7523: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '100: entering procedure', 2);

7519:
7520: begin
7521: --hr_utility.trace_on(null, 'dlai');
7522: l_err_stage := 100;
7523: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '100: entering procedure', 2);
7524: --hr_utility.trace('entered pa_fp_vp_pop_tables_single:100');
7525: x_return_status := FND_API.G_RET_STS_SUCCESS;
7526: x_msg_count := 0;
7527: SAVEPOINT VIEW_PLANS_POP_TABLES_SINGLE;

Line 7529: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,

7525: x_return_status := FND_API.G_RET_STS_SUCCESS;
7526: x_msg_count := 0;
7527: SAVEPOINT VIEW_PLANS_POP_TABLES_SINGLE;
7528: -- used to query pa_proj_periods_denorm table
7529: select DECODE(pa_fp_view_plans_pub.G_FP_CURRENCY_TYPE,
7530: 'PROJFUNC', 'PROJ_FUNCTIONAL',
7531: 'PROJ', 'PROJECT',
7532: 'TRANSACTION')
7533: into l_currency_type

Line 7541: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,

7537: l_row_number := 0;
7538: select NVL(po.report_labor_hrs_from_code, 'COST'),
7539: -- po.default_amount_type_code,
7540: -- po.default_amount_subtype_code
7541: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
7542: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
7543: bv.period_profile_id
7544: into l_report_labor_hrs_from_code,
7545: l_default_amount_type_code,

Line 7542: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,

7538: select NVL(po.report_labor_hrs_from_code, 'COST'),
7539: -- po.default_amount_type_code,
7540: -- po.default_amount_subtype_code
7541: pa_fp_view_plans_pub.G_DEFAULT_AMOUNT_TYPE_CODE,
7542: pa_fp_view_plans_pub.G_DEFAULT_AMT_SUBTYPE_CODE,
7543: bv.period_profile_id
7544: into l_report_labor_hrs_from_code,
7545: l_default_amount_type_code,
7546: l_default_amount_subtype_code,

Line 7555: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);

7551: bv.fin_plan_type_id = po.fin_plan_type_id and
7552: po.project_id = p_project_id and
7553: po.fin_plan_option_level_code = 'PLAN_TYPE';
7554: l_err_stage := 200;
7555: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
7556: --hr_utility.trace('retrieved periodprofileid: 200');
7557: -- populate AMOUNTS PL/SQL TABLES
7558: if p_cost_or_rev = 'C' then
7559: 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 7559: 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);

7555: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '200: retrieved periodprofileid= ' || l_period_profile_id, 1);
7556: --hr_utility.trace('retrieved periodprofileid: 200');
7557: -- populate AMOUNTS PL/SQL TABLES
7558: if p_cost_or_rev = 'C' then
7559: 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);
7560: open av_cost_csr;
7561: fetch av_cost_csr bulk collect into
7562: l_project_id,
7563: l_task_id,

Line 7584: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

7580: close av_cost_csr;
7581: l_err_stage := 300;
7582: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
7583: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
7584: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
7585: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7586: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
7587: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7588: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop

Line 7585: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

7581: l_err_stage := 300;
7582: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
7583: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
7584: /* ONLY IF pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
7585: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
7586: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
7587: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7588: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
7589: --hr_utility.trace('i= ' || to_char(i));

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

7586: --hr_utility.trace('l_project_id.first= ' || to_char(l_project_id.first));
7587: --hr_utility.trace('l_project_id.last= ' || to_char(l_project_id.last));
7588: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
7589: --hr_utility.trace('i= ' || to_char(i));
7590: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
7591: -- process QUANTITY numbers based on report_labor_hrs_from_code
7592: l_row_number := l_row_number + 1; -- increment row counter
7593: l_pd_project_id(l_row_number) := l_project_id(i);
7594: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7750: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

7746: l_pd_project_total(l_row_number) := null; -- bug 2699651
7747: end if; -- report_labour_hrs_from_code = 'COST'
7748: end if; -- display_from: QUANTITY
7749:
7750: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
7751: -- process BURDENED_COST numbers from COST BUDGET VERSION
7752: l_row_number := l_row_number + 1; -- increment row counter
7753: l_pd_project_id(l_row_number) := l_project_id(i);
7754: l_pd_task_id(l_row_number) := l_task_id(i);

Line 7900: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

7896: p_period_number => 14);
7897: l_pd_project_total(l_row_number) := l_burdened_cost(i); -- bug 2699651
7898: end if; -- display_flag: BURDENED COST
7899:
7900: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
7901: -- process RAW_COST numbers from COST BUDGET VERSION
7902: l_row_number := l_row_number + 1; -- increment row counter
7903: l_pd_project_id(l_row_number) := l_project_id(i);
7904: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8050: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

8046: p_period_number => 14);
8047: l_pd_project_total(l_row_number) := l_raw_cost(i); -- bug 2699651
8048: end if; -- display_flag: RAW COST
8049:
8050: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
8051: -- POPULATE null'S for REVENUE row in PERIODS PL/SQL TABLE
8052: l_row_number := l_row_number + 1; -- increment row counter
8053: l_pd_project_id(l_row_number) := l_project_id(i);
8054: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8096: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

8092: l_pd_succeeding(l_row_number) := null;
8093: l_pd_project_total(l_row_number) := null; -- bug 2699651
8094: end if; -- display_from: REVENUE
8095:
8096: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
8097: -- POPULATE 0'S for MARGIN row in PERIODS PL/SQL TABLE
8098: l_row_number := l_row_number + 1; -- increment row counter
8099: l_pd_project_id(l_row_number) := l_project_id(i);
8100: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8142: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

8138: l_pd_succeeding(l_row_number) := null;
8139: l_pd_project_total(l_row_number) := null; -- bug 3179756
8140: end if; -- display_from: MARGIN
8141:
8142: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
8143: -- POPULATE 0'S for MARGIN_PERCENT row in PERIODS PL/SQL TABLE
8144: l_row_number := l_row_number + 1; -- increment row counter
8145: l_pd_project_id(l_row_number) := l_project_id(i);
8146: l_pd_task_id(l_row_number) := l_task_id(i);

Line 8188: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8184: l_pd_succeeding(l_row_number) := null;
8185: l_pd_project_total(l_row_number) := null; -- bug 2699651
8186: end if; --display_from: MARGIN PERCENT
8187: end loop;
8188: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8189: l_err_stage := 400;
8190: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
8191:
8192: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP

Line 8190: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);

8186: end if; --display_from: MARGIN PERCENT
8187: end loop;
8188: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8189: l_err_stage := 400;
8190: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
8191:
8192: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8193: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8194: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

Line 8193: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

8189: l_err_stage := 400;
8190: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
8191:
8192: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8193: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8194: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8195: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8196: insert into pa_fin_vp_amts_view_tmp
8197: (project_id,

Line 8194: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

8190: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '400: COST version - FINISHED populating amts pl/sql tables', 1);
8191:
8192: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8193: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8194: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8195: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8196: insert into pa_fin_vp_amts_view_tmp
8197: (project_id,
8198: task_id,

Line 8235: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

8231: -1,
8232: -1,
8233: l_unit_of_measure(i),
8234: l_has_child_element(i));
8235: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
8236: l_err_stage := 500;
8237: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8238:
8239: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP

Line 8237: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);

8233: l_unit_of_measure(i),
8234: l_has_child_element(i));
8235: end if; --pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
8236: l_err_stage := 500;
8237: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8238:
8239: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
8240: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8241: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 8240: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8236: l_err_stage := 500;
8237: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8238:
8239: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
8240: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8241: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8242: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
8243: insert into pa_fin_vp_pds_view_tmp
8244: (project_id,

Line 8241: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

8237: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8238:
8239: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
8240: -- ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8241: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8242: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
8243: insert into pa_fin_vp_pds_view_tmp
8244: (project_id,
8245: task_id,

Line 8310: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8306: l_pd_preceding(z),
8307: l_pd_succeeding(z),
8308: l_pd_has_child_element(z),
8309: l_pd_project_total(z));
8310: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8311: l_err_stage := 600;
8312: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
8313:
8314:

Line 8312: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);

8308: l_pd_has_child_element(z),
8309: l_pd_project_total(z));
8310: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8311: l_err_stage := 600;
8312: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
8313:
8314:
8315: elsif p_cost_or_rev = 'R' then
8316: l_err_stage := 700;

Line 8317: 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);

8313:
8314:
8315: elsif p_cost_or_rev = 'R' then
8316: l_err_stage := 700;
8317: 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);
8318: --hr_utility.trace('this is a REVENUE version: 500');
8319: open av_rev_csr;
8320: fetch av_rev_csr bulk collect into
8321: l_project_id,

Line 8343: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */

8339: close av_rev_csr;
8340: l_err_stage := 800;
8341: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
8342: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
8343: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
8344: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
8345: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8346: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
8347:

Line 8345: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

8341: /* ---- populate the PERIODS PL/SQL table with the following rows ---- */
8342: /* ---- COST, REVENUE, MARGIN, MARGIN_PERCENT, QUANTITY ---- */
8343: /* ONLY if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' */
8344: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
8345: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8346: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
8347:
8348: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
8349: --hr_utility.trace('inserting row for Quantity: ' || TO_CHAR(i));

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

8344: --hr_utility.trace('number of rows in csr= ' || TO_CHAR(l_project_id.last));
8345: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8346: for i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1) loop
8347:
8348: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_QUANTITY = 'Y' then
8349: --hr_utility.trace('inserting row for Quantity: ' || TO_CHAR(i));
8350: -- process the QUANTITY numbers based on report_labor_hrs_from_code
8351: l_row_number := l_row_number + 1; -- increment row counter
8352: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8505: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then

8501: l_pd_project_total(l_row_number) := null; -- bug 2699651
8502: end if; -- QUANTITY
8503: end if; -- display_flag: QUANTITY
8504:
8505: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_REVENUE = 'Y' then
8506: --hr_utility.trace('inserting row for Revenue: ' || TO_CHAR(i));
8507: -- process REVENUE numbers from REVENUE BUDGET VERSION
8508: l_row_number := l_row_number + 1; -- increment row counter
8509: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8641: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then

8637: p_period_number => 14);
8638: l_pd_project_total(l_row_number) := l_revenue(i); -- bug 2699651
8639: end if; -- display_from: REVENUE
8640:
8641: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_BURDCOST = 'Y' then
8642: --hr_utility.trace('creating row for burdened cost: ' || TO_CHAR(i));
8643: -- POPULATE null'S for BURDENED_COST row in PERIODS PL/SQL TABLE
8644: l_row_number := l_row_number + 1; -- increment row counter
8645: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8688: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then

8684: l_pd_succeeding(l_row_number) := null;
8685: l_pd_project_total(l_row_number) := null; -- bug 2699651
8686: end if; -- display_from: BURDENED COST
8687:
8688: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_RAWCOST = 'Y' then
8689: --hr_utility.trace('inserting row for RawCost: ' || TO_CHAR(i));
8690: -- POPULATE null'S for RAW_COST row in PERIODS PL/SQL TABLE
8691: l_row_number := l_row_number + 1; -- increment row counter
8692: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8735: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then

8731: l_pd_succeeding(l_row_number) := null;
8732: l_pd_project_total(l_row_number) := null; -- bug 2699651
8733: end if; -- display_from: RAW COST
8734:
8735: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGIN = 'Y' then
8736: --hr_utility.trace('inserting row for Margin: ' || TO_CHAR(i));
8737: -- POPULATE null'S for MARGIN row in PERIODS PL/SQL TABLE
8738: l_row_number := l_row_number + 1; -- increment row counter
8739: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8782: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then

8778: l_pd_succeeding(l_row_number) := null;
8779: l_pd_project_total(l_row_number) := null; -- bug 2699651
8780: end if; -- display_from: MARGIN
8781:
8782: if pa_fp_view_plans_pub.G_DISPLAY_FLAG_MARGINPCT = 'Y' then
8783: --hr_utility.trace('inserting row for MarginPct: ' || TO_CHAR(i));
8784: -- POPULATE null'S for MARGIN_PERCENT row in PERIODS PL/SQL TABLE
8785: l_row_number := l_row_number + 1; -- increment row counter
8786: l_pd_project_id(l_row_number) := l_project_id(i);

Line 8829: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8825: l_pd_succeeding(l_row_number) := null;
8826: l_pd_project_total(l_row_number) := null; -- bug 2699651
8827: end if; --display_from: MARGIN PERCENT
8828: end loop;
8829: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8830: l_err_stage:= 900;
8831: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
8832: --hr_utility.trace('finished populating amts pl/sql tables: 600');
8833:

Line 8831: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);

8827: end if; --display_from: MARGIN PERCENT
8828: end loop;
8829: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8830: l_err_stage:= 900;
8831: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
8832: --hr_utility.trace('finished populating amts pl/sql tables: 600');
8833:
8834: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8835: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

Line 8835: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'

8831: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '600: REVENUE version - FINISHED populating amts pl/sql tables', 1);
8832: --hr_utility.trace('finished populating amts pl/sql tables: 600');
8833:
8834: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8835: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8836: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8837: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8838: insert into pa_fin_vp_amts_view_tmp
8839: (project_id,

Line 8836: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then

8832: --hr_utility.trace('finished populating amts pl/sql tables: 600');
8833:
8834: -- POPULATE global temporary table PA_FIN_VP_AMTS_VIEW_TMP
8835: -- only if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A'
8836: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'A' then
8837: forall i in nvl(l_project_id.first,0)..nvl(l_project_id.last,-1)
8838: insert into pa_fin_vp_amts_view_tmp
8839: (project_id,
8840: task_id,

Line 8878: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);

8874: -1,
8875: l_unit_of_measure(i),
8876: l_has_child_element(i));
8877: l_err_stage:= 1000;
8878: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8879: --hr_utility.trace('amts temp table populated: 800');
8880: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
8881:
8882: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP

Line 8880: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'

8876: l_has_child_element(i));
8877: l_err_stage:= 1000;
8878: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '800: amts temp table populated', 1);
8879: --hr_utility.trace('amts temp table populated: 800');
8880: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
8881:
8882: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
8883: -- only if in periodic mode
8884: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

Line 8884: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then

8880: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD= 'A'
8881:
8882: -- POPULATE global temporary table PA_FIN_VP_PDS_VIEW_TMP
8883: -- only if in periodic mode
8884: if pa_fp_view_plans_pub.G_AMT_OR_PD = 'P' then
8885: forall z in nvl(l_pd_project_id.first,0)..nvl(l_pd_project_id.last,-1)
8886: insert into pa_fin_vp_pds_view_tmp
8887: (project_id,
8888: task_id,

Line 8953: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'

8949: l_pd_preceding(z),
8950: l_pd_succeeding(z),
8951: l_pd_has_child_element(z),
8952: l_pd_project_total(z));
8953: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8954: l_err_stage := 1100;
8955: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
8956:
8957:

Line 8955: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);

8951: l_pd_has_child_element(z),
8952: l_pd_project_total(z));
8953: end if; -- pa_fp_view_plans_pub.G_AMT_OR_PD = 'P'
8954: l_err_stage := 1100;
8955: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
8956:
8957:
8958: else
8959: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);

Line 8959: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);

8955: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '900: pds temp table populated', 1);
8956:
8957:
8958: else
8959: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);
8960: --hr_utility.trace('invalid value for p_cost_or_rev');
8961: end if;
8962: commit;
8963: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);

Line 8963: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);

8959: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '700: INVALID VALUE FOR p_cost_or_rev', 4);
8960: --hr_utility.trace('invalid value for p_cost_or_rev');
8961: end if;
8962: commit;
8963: pa_debug.write('pa_fp_view_plans_pub.pa_fp_vp_pop_tables_single', '1000: exiting procedure', 2);
8964:
8965: EXCEPTION
8966: when others then
8967: rollback to VIEW_PLANS_POP_TABLES_SINGLE;

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

8968: --hr_utility.trace('l_err_stage= ' || to_char(l_err_stage));
8969: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8970: x_msg_count := 1;
8971: x_msg_data := SQLERRM;
8972: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_VIEW_PLANS_PUB',
8973: p_procedure_name => 'View_Plans_Pop_Tables_Single');
8974: pa_debug.reset_err_stack;
8975: return;
8976: end pa_fp_vp_pop_tables_single;

Line 9004: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or

9000: from pa_resource_assignments ra,
9001: pa_tasks t
9002: where (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
9003: ra.task_id=0 and
9004: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or
9005: (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
9006: ra.task_id <> 0 and
9007: ra.task_id = t.task_id and
9008: t.parent_task_id is null);

Line 9016: and not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)))

9012: from pa_resource_assignments ra
9013: where ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2)
9014: and (
9015: ( ra.task_id=0
9016: and not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)))
9017: or
9018: (exists (select 1
9019: from pa_tasks pt
9020: where pt.task_id = pt.top_task_id

Line 9033: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or

9029: from pa_resource_assignments ra,
9030: pa_tasks t
9031: where (ra.budget_version_id in(p_budget_version_id1, p_budget_version_id2) and
9032: ra.task_id=p_task_id and
9033: not (ra.resource_list_member_id in (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id))) or
9034: (ra.budget_version_id in (p_budget_version_id1, p_budget_version_id2) and
9035: ra.task_id = t.task_id and t.parent_task_id = p_task_id);
9036: */
9037: select 1 from dual where exists (

Line 9044: (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)

9040: where ra.budget_version_id in(p_budget_version_id1, p_budget_version_id2) and
9041: (
9042: (ra.task_id=p_task_id and
9043: not (ra.resource_list_member_id in
9044: (0,pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id)
9045: )
9046: )
9047: or
9048: (exists (select 1

Line 9064: if (p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and

9060: where parent_member_id = p_resource_list_member_id;
9061: rg_children_rec rg_children_csr%ROWTYPE;
9062:
9063: BEGIN
9064: if (p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id and
9065: p_task_id = 0) or
9066: (p_resource_list_member_id = 0 and
9067: p_task_id = 0) then
9068: /* THIS IS A PROJECT-LEVEL ROW */

Line 9078: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

9074: if project_children_csr%NOTFOUND then
9075: if p_amt_or_periodic = 'A' then
9076: l_return_value := 'N';
9077: else
9078: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
9079: l_return_value := 'Y';
9080: else
9081: l_return_value := 'N';
9082: end if;

Line 9090: p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id then

9086: end if;
9087: close project_children_csr;
9088:
9089: elsif p_resource_list_member_id = 0 or
9090: p_resource_list_member_id = pa_fp_view_plans_pub.Get_Uncat_Res_List_Member_Id then
9091: /* THIS IS A TASK-LEVEL ROW */
9092: /* to look for children of a TASK-LEVEL row, look for resources/resource groups AND
9093: * for sub-tasks
9094: */

Line 9101: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

9097: if task_children_csr%NOTFOUND then
9098: if p_amt_or_periodic = 'A' then
9099: l_return_value := 'N';
9100: else
9101: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
9102: l_return_value := 'Y';
9103: else
9104: l_return_value := 'N';
9105: end if;

Line 9127: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

9123: if rg_children_csr%NOTFOUND then
9124: if p_amt_or_periodic = 'A' then
9125: l_return_value := 'N';
9126: else
9127: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
9128: l_return_value := 'Y';
9129: else
9130: l_return_value := 'N';
9131: end if;

Line 9142: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then

9138: /* THIS IS A RESOURCE; IT COULD HAVE CHILDREN IF IN PERIODIC MODE */
9139: if p_amt_or_periodic = 'A' then
9140: l_return_value := 'N';
9141: else
9142: if p_amount_subtype_code = pa_fp_view_plans_pub.Get_Default_Amt_Subtype_Code then
9143: l_return_value := 'Y';
9144: else
9145: l_return_value := 'N';
9146: end if;

Line 9154: END pa_fp_view_plans_pub;

9150: return l_return_value;
9151: END has_child_rows;
9152:
9153:
9154: END pa_fp_view_plans_pub;