DBA Data[Home] [Help]

APPS.PA_FP_CONTROL_ITEMS_UTILS dependencies on PA_DEBUG

Line 3: P_PA_DEBUG_MODE varchar2(1) := NVL(FND_PROFILE.value('PA_DEBUG_MODE'), 'N');

1: PACKAGE BODY Pa_Fp_Control_Items_Utils AS
2: /* $Header: PAFPCIUB.pls 120.6.12010000.2 2008/11/28 12:55:05 vgovvala ship $ */
3: P_PA_DEBUG_MODE varchar2(1) := NVL(FND_PROFILE.value('PA_DEBUG_MODE'), 'N');
4: g_module_name VARCHAR2(100) := 'pa.plsql.PA_CONTROL_ITEM_UTILS';
5:
6: PROCEDURE Get_Fin_Plan_Dtls(p_project_id IN Pa_Projects_All.Project_Id%TYPE,
7: p_ci_id IN NUMBER,

Line 42: IF P_PA_DEBUG_MODE = 'Y' THEN

38: x_return_status := FND_API.G_RET_STS_SUCCESS;
39: x_msg_count := 0;
40: x_no_of_ci_plan_versions := 0;
41: x_margin_derived_from_code := 'B';
42: IF P_PA_DEBUG_MODE = 'Y' THEN
43: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');
44: END IF;
45: FND_MSG_PUB.initialize;
46:

Line 43: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');

39: x_msg_count := 0;
40: x_no_of_ci_plan_versions := 0;
41: x_margin_derived_from_code := 'B';
42: IF P_PA_DEBUG_MODE = 'Y' THEN
43: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');
44: END IF;
45: FND_MSG_PUB.initialize;
46:
47: x_ci_est_qty := pa_fin_plan_utils.Get_Approved_Budget_Ver_Qty(

Line 281: Pa_Debug.Reset_Err_Stack;

277: ELSIF l_rev_budget_flag = 'Y' AND l_cost_budget_flag = 'Y' THEN
278: x_fp_pref_code := 'COST_AND_REV_SEP';
279: END IF;
280: END IF;
281: Pa_Debug.Reset_Err_Stack;
282: EXCEPTION
283: WHEN OTHERS THEN
284: FND_MSG_PUB.Add_Exc_Msg(
285: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls'

Line 286: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

282: EXCEPTION
283: WHEN OTHERS THEN
284: FND_MSG_PUB.Add_Exc_Msg(
285: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls'
286: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
287: IF P_PA_DEBUG_MODE = 'Y' THEN
288: pa_debug.write_file('Get_Fin_Plan_Dtls: ' || SQLERRM);
289: END IF;
290: pa_debug.reset_err_stack;

Line 287: IF P_PA_DEBUG_MODE = 'Y' THEN

283: WHEN OTHERS THEN
284: FND_MSG_PUB.Add_Exc_Msg(
285: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls'
286: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
287: IF P_PA_DEBUG_MODE = 'Y' THEN
288: pa_debug.write_file('Get_Fin_Plan_Dtls: ' || SQLERRM);
289: END IF;
290: pa_debug.reset_err_stack;
291: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 288: pa_debug.write_file('Get_Fin_Plan_Dtls: ' || SQLERRM);

284: FND_MSG_PUB.Add_Exc_Msg(
285: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls'
286: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
287: IF P_PA_DEBUG_MODE = 'Y' THEN
288: pa_debug.write_file('Get_Fin_Plan_Dtls: ' || SQLERRM);
289: END IF;
290: pa_debug.reset_err_stack;
291: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
292: RAISE;

Line 290: pa_debug.reset_err_stack;

286: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
287: IF P_PA_DEBUG_MODE = 'Y' THEN
288: pa_debug.write_file('Get_Fin_Plan_Dtls: ' || SQLERRM);
289: END IF;
290: pa_debug.reset_err_stack;
291: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
292: RAISE;
293: END Get_Fin_Plan_Dtls;
294:

Line 335: IF P_PA_DEBUG_MODE = 'Y' THEN

331: l_debug_mode VARCHAR2(30);
332:
333: BEGIN
334:
335: IF P_PA_DEBUG_MODE = 'Y' THEN
336: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name');
337: END IF;
338:
339: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

Line 336: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name');

332:
333: BEGIN
334:
335: IF P_PA_DEBUG_MODE = 'Y' THEN
336: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name');
337: END IF;
338:
339: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
340: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 339: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

335: IF P_PA_DEBUG_MODE = 'Y' THEN
336: pa_debug.init_err_stack('PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name');
337: END IF;
338:
339: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
340: l_debug_mode := NVL(l_debug_mode, 'Y');
341:
342: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
343:

Line 342: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

338:
339: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
340: l_debug_mode := NVL(l_debug_mode, 'Y');
341:
342: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
343:
344: SELECT
345: pacitl.name into x_ci_type_name
346: FROM pa_control_items paci, pa_ci_types_tl pacitl

Line 353: pa_debug.g_err_stage := 'x_ci_type_name [ IS NULL ]';

349: and paci.ci_type_id = pacitl.ci_type_id
350: and pacitl.language = userenv('lang');
351:
352: IF x_ci_type_name IS NULL THEN
353: pa_debug.g_err_stage := 'x_ci_type_name [ IS NULL ]';
354: IF P_PA_DEBUG_MODE = 'Y' THEN
355: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || pa_debug.g_err_stage);
356: END IF;
357: END IF;

Line 354: IF P_PA_DEBUG_MODE = 'Y' THEN

350: and pacitl.language = userenv('lang');
351:
352: IF x_ci_type_name IS NULL THEN
353: pa_debug.g_err_stage := 'x_ci_type_name [ IS NULL ]';
354: IF P_PA_DEBUG_MODE = 'Y' THEN
355: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || pa_debug.g_err_stage);
356: END IF;
357: END IF;
358: pa_debug.reset_err_stack;

Line 355: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || pa_debug.g_err_stage);

351:
352: IF x_ci_type_name IS NULL THEN
353: pa_debug.g_err_stage := 'x_ci_type_name [ IS NULL ]';
354: IF P_PA_DEBUG_MODE = 'Y' THEN
355: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || pa_debug.g_err_stage);
356: END IF;
357: END IF;
358: pa_debug.reset_err_stack;
359: EXCEPTION

Line 358: pa_debug.reset_err_stack;

354: IF P_PA_DEBUG_MODE = 'Y' THEN
355: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || pa_debug.g_err_stage);
356: END IF;
357: END IF;
358: pa_debug.reset_err_stack;
359: EXCEPTION
360: WHEN NO_DATA_FOUND THEN
361: null;
362: WHEN OTHERS THEN

Line 365: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

361: null;
362: WHEN OTHERS THEN
363: FND_MSG_PUB.add_exc_msg(
364: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name'
365: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
366: IF P_PA_DEBUG_MODE = 'Y' THEN
367: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || SQLERRM);
368: END IF;
369: pa_debug.reset_err_stack;

Line 366: IF P_PA_DEBUG_MODE = 'Y' THEN

362: WHEN OTHERS THEN
363: FND_MSG_PUB.add_exc_msg(
364: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name'
365: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
366: IF P_PA_DEBUG_MODE = 'Y' THEN
367: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || SQLERRM);
368: END IF;
369: pa_debug.reset_err_stack;
370: END get_finplan_ci_type_name;

Line 367: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || SQLERRM);

363: FND_MSG_PUB.add_exc_msg(
364: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_finplan_ci_type_name'
365: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
366: IF P_PA_DEBUG_MODE = 'Y' THEN
367: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || SQLERRM);
368: END IF;
369: pa_debug.reset_err_stack;
370: END get_finplan_ci_type_name;
371:

Line 369: pa_debug.reset_err_stack;

365: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
366: IF P_PA_DEBUG_MODE = 'Y' THEN
367: pa_debug.write_file('GET_FINPLAN_CI_TYPE_NAME: ' || SQLERRM);
368: END IF;
369: pa_debug.reset_err_stack;
370: END get_finplan_ci_type_name;
371:
372: PROCEDURE get_fp_ci_agreement_dtls
373: (

Line 387: IF P_PA_DEBUG_MODE = 'Y' THEN

383: IS
384: l_debug_mode varchar2(30) := 'Y';
385:
386: BEGIN
387: IF P_PA_DEBUG_MODE = 'Y' THEN
388: pa_debug.init_err_stack('get_fp_ci_agreement_dtls: ' || 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls');
389: END IF;
390:
391: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

Line 388: pa_debug.init_err_stack('get_fp_ci_agreement_dtls: ' || 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls');

384: l_debug_mode varchar2(30) := 'Y';
385:
386: BEGIN
387: IF P_PA_DEBUG_MODE = 'Y' THEN
388: pa_debug.init_err_stack('get_fp_ci_agreement_dtls: ' || 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls');
389: END IF;
390:
391: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
392: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 391: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

387: IF P_PA_DEBUG_MODE = 'Y' THEN
388: pa_debug.init_err_stack('get_fp_ci_agreement_dtls: ' || 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls');
389: END IF;
390:
391: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
392: l_debug_mode := NVL(l_debug_mode, 'Y');
393: SELECT pg.agreement_num,
394: pg.amount,
395: pg.agreement_currency_code

Line 408: pa_debug.g_err_stage := 'x_agreement_num [ IS NULL ]';

404: and bv.version_type in ('REVENUE','ALL'); -- Raja FP M Change Bug 3619687
405: --and rownum < 2;
406:
407: IF x_agreement_num IS NULL THEN
408: pa_debug.g_err_stage := 'x_agreement_num [ IS NULL ]';
409: IF P_PA_DEBUG_MODE = 'Y' THEN
410: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
411: END IF;
412: END IF;

Line 409: IF P_PA_DEBUG_MODE = 'Y' THEN

405: --and rownum < 2;
406:
407: IF x_agreement_num IS NULL THEN
408: pa_debug.g_err_stage := 'x_agreement_num [ IS NULL ]';
409: IF P_PA_DEBUG_MODE = 'Y' THEN
410: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
411: END IF;
412: END IF;
413: IF x_agreement_amount IS NULL THEN

Line 410: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);

406:
407: IF x_agreement_num IS NULL THEN
408: pa_debug.g_err_stage := 'x_agreement_num [ IS NULL ]';
409: IF P_PA_DEBUG_MODE = 'Y' THEN
410: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
411: END IF;
412: END IF;
413: IF x_agreement_amount IS NULL THEN
414: pa_debug.g_err_stage := 'x_agreement_amount [ IS NULL ]';

Line 414: pa_debug.g_err_stage := 'x_agreement_amount [ IS NULL ]';

410: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
411: END IF;
412: END IF;
413: IF x_agreement_amount IS NULL THEN
414: pa_debug.g_err_stage := 'x_agreement_amount [ IS NULL ]';
415: IF P_PA_DEBUG_MODE = 'Y' THEN
416: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
417: END IF;
418: END IF;

Line 415: IF P_PA_DEBUG_MODE = 'Y' THEN

411: END IF;
412: END IF;
413: IF x_agreement_amount IS NULL THEN
414: pa_debug.g_err_stage := 'x_agreement_amount [ IS NULL ]';
415: IF P_PA_DEBUG_MODE = 'Y' THEN
416: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
417: END IF;
418: END IF;
419: IF x_agreement_currency_code IS NULL THEN

Line 416: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);

412: END IF;
413: IF x_agreement_amount IS NULL THEN
414: pa_debug.g_err_stage := 'x_agreement_amount [ IS NULL ]';
415: IF P_PA_DEBUG_MODE = 'Y' THEN
416: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
417: END IF;
418: END IF;
419: IF x_agreement_currency_code IS NULL THEN
420: pa_debug.g_err_stage := 'x_agreement_currency_code [ IS NULL ]';

Line 420: pa_debug.g_err_stage := 'x_agreement_currency_code [ IS NULL ]';

416: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
417: END IF;
418: END IF;
419: IF x_agreement_currency_code IS NULL THEN
420: pa_debug.g_err_stage := 'x_agreement_currency_code [ IS NULL ]';
421: IF P_PA_DEBUG_MODE = 'Y' THEN
422: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
423: END IF;
424: END IF;

Line 421: IF P_PA_DEBUG_MODE = 'Y' THEN

417: END IF;
418: END IF;
419: IF x_agreement_currency_code IS NULL THEN
420: pa_debug.g_err_stage := 'x_agreement_currency_code [ IS NULL ]';
421: IF P_PA_DEBUG_MODE = 'Y' THEN
422: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
423: END IF;
424: END IF;
425: pa_debug.reset_err_stack;

Line 422: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);

418: END IF;
419: IF x_agreement_currency_code IS NULL THEN
420: pa_debug.g_err_stage := 'x_agreement_currency_code [ IS NULL ]';
421: IF P_PA_DEBUG_MODE = 'Y' THEN
422: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
423: END IF;
424: END IF;
425: pa_debug.reset_err_stack;
426: EXCEPTION

Line 425: pa_debug.reset_err_stack;

421: IF P_PA_DEBUG_MODE = 'Y' THEN
422: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || pa_debug.g_err_stage);
423: END IF;
424: END IF;
425: pa_debug.reset_err_stack;
426: EXCEPTION
427: WHEN NO_DATA_FOUND THEN
428: null;
429: WHEN OTHERS THEN

Line 432: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

428: null;
429: WHEN OTHERS THEN
430: FND_MSG_PUB.add_exc_msg(
431: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls'
432: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
433: IF P_PA_DEBUG_MODE = 'Y' THEN
434: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || SQLERRM);
435: END IF;
436: pa_debug.reset_err_stack;

Line 433: IF P_PA_DEBUG_MODE = 'Y' THEN

429: WHEN OTHERS THEN
430: FND_MSG_PUB.add_exc_msg(
431: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls'
432: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
433: IF P_PA_DEBUG_MODE = 'Y' THEN
434: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || SQLERRM);
435: END IF;
436: pa_debug.reset_err_stack;
437: END get_fp_ci_agreement_dtls;

Line 434: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || SQLERRM);

430: FND_MSG_PUB.add_exc_msg(
431: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.get_fp_ci_agreement_dtls'
432: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
433: IF P_PA_DEBUG_MODE = 'Y' THEN
434: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || SQLERRM);
435: END IF;
436: pa_debug.reset_err_stack;
437: END get_fp_ci_agreement_dtls;
438:

Line 436: pa_debug.reset_err_stack;

432: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
433: IF P_PA_DEBUG_MODE = 'Y' THEN
434: pa_debug.write_file('get_fp_ci_agreement_dtls: ' || SQLERRM);
435: END IF;
436: pa_debug.reset_err_stack;
437: END get_fp_ci_agreement_dtls;
438:
439: /*********************************************************************
440: This procedure is called while merging change requests into

Line 469: IF P_PA_DEBUG_MODE = 'Y' THEN

465: -- Local Variable Declaration
466: l_debug_mode VARCHAR2(30);
467:
468: BEGIN
469: IF P_PA_DEBUG_MODE = 'Y' THEN
470: pa_debug.init_err_stack('PAFPCIUB.FP_CI_GET_VERSION_DETAILS');
471: END IF;
472: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
473: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 470: pa_debug.init_err_stack('PAFPCIUB.FP_CI_GET_VERSION_DETAILS');

466: l_debug_mode VARCHAR2(30);
467:
468: BEGIN
469: IF P_PA_DEBUG_MODE = 'Y' THEN
470: pa_debug.init_err_stack('PAFPCIUB.FP_CI_GET_VERSION_DETAILS');
471: END IF;
472: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
473: l_debug_mode := NVL(l_debug_mode, 'Y');
474: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 472: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

468: BEGIN
469: IF P_PA_DEBUG_MODE = 'Y' THEN
470: pa_debug.init_err_stack('PAFPCIUB.FP_CI_GET_VERSION_DETAILS');
471: END IF;
472: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
473: l_debug_mode := NVL(l_debug_mode, 'Y');
474: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
475: x_return_status := FND_API.G_RET_STS_SUCCESS;
476: x_msg_count := 0;

Line 474: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

470: pa_debug.init_err_stack('PAFPCIUB.FP_CI_GET_VERSION_DETAILS');
471: END IF;
472: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
473: l_debug_mode := NVL(l_debug_mode, 'Y');
474: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
475: x_return_status := FND_API.G_RET_STS_SUCCESS;
476: x_msg_count := 0;
477: ----DBMS_OUTPUT.PUT_LINE('FP_CI_GET_VERSION_DETAILS - 1');
478: --Get the column values for this budget version id and project id combination

Line 561: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

557: WHEN OTHERS THEN
558: FND_MSG_PUB.add_exc_msg
559: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
560: 'FP_CI_GET_VERSION_DETAILS'
561: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
562: ----DBMS_OUTPUT.PUT_LINE('FP_CI_GET_VERSION_DETAILS - 3');
563: IF P_PA_DEBUG_MODE = 'Y' THEN
564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';
565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

Line 563: IF P_PA_DEBUG_MODE = 'Y' THEN

559: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
560: 'FP_CI_GET_VERSION_DETAILS'
561: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
562: ----DBMS_OUTPUT.PUT_LINE('FP_CI_GET_VERSION_DETAILS - 3');
563: IF P_PA_DEBUG_MODE = 'Y' THEN
564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';
565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
566: END IF;
567: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';

560: 'FP_CI_GET_VERSION_DETAILS'
561: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
562: ----DBMS_OUTPUT.PUT_LINE('FP_CI_GET_VERSION_DETAILS - 3');
563: IF P_PA_DEBUG_MODE = 'Y' THEN
564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';
565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
566: END IF;
567: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
568: PA_DEBUG.Reset_Curr_Function;

Line 565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

561: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
562: ----DBMS_OUTPUT.PUT_LINE('FP_CI_GET_VERSION_DETAILS - 3');
563: IF P_PA_DEBUG_MODE = 'Y' THEN
564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';
565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
566: END IF;
567: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
568: PA_DEBUG.Reset_Curr_Function;
569: RAISE;

Line 568: PA_DEBUG.Reset_Curr_Function;

564: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_GET_VERSION_DETAILS';
565: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
566: END IF;
567: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
568: PA_DEBUG.Reset_Curr_Function;
569: RAISE;
570: END FP_CI_GET_VERSION_DETAILS;
571: -- end of FP_CI_GET_VERSION_DETAILS
572:

Line 669: IF P_PA_DEBUG_MODE = 'Y' THEN

665: l_targ_pt_name pa_fin_plan_types_tl.name%TYPE;
666: l_src_ci_number pa_control_items.ci_number%TYPE;
667: l_module_name varchar2(30) := 'check is possible';
668: BEGIN
669: IF P_PA_DEBUG_MODE = 'Y' THEN
670: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_MERGE_POSSIBLE');
671: END IF;
672: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
673: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 670: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_MERGE_POSSIBLE');

666: l_src_ci_number pa_control_items.ci_number%TYPE;
667: l_module_name varchar2(30) := 'check is possible';
668: BEGIN
669: IF P_PA_DEBUG_MODE = 'Y' THEN
670: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_MERGE_POSSIBLE');
671: END IF;
672: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
673: l_debug_mode := NVL(l_debug_mode, 'Y');
674: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 672: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

668: BEGIN
669: IF P_PA_DEBUG_MODE = 'Y' THEN
670: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_MERGE_POSSIBLE');
671: END IF;
672: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
673: l_debug_mode := NVL(l_debug_mode, 'Y');
674: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
675: x_return_status := FND_API.G_RET_STS_SUCCESS;
676: x_msg_count := 0;

Line 674: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

670: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_MERGE_POSSIBLE');
671: END IF;
672: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
673: l_debug_mode := NVL(l_debug_mode, 'Y');
674: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
675: x_return_status := FND_API.G_RET_STS_SUCCESS;
676: x_msg_count := 0;
677: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 1');
678: -- The API is sure to have ONE target version id for merge check

Line 681: pa_debug.g_err_stage:='p_target_fp_version_id = ' || p_target_fp_version_id;

677: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 1');
678: -- The API is sure to have ONE target version id for merge check
679:
680: IF l_debug_mode = 'Y' THEN
681: pa_debug.g_err_stage:='p_target_fp_version_id = ' || p_target_fp_version_id;
682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
683:
684: pa_debug.g_err_stage:='p_calling_mode = ' || p_calling_mode;
685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

678: -- The API is sure to have ONE target version id for merge check
679:
680: IF l_debug_mode = 'Y' THEN
681: pa_debug.g_err_stage:='p_target_fp_version_id = ' || p_target_fp_version_id;
682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
683:
684: pa_debug.g_err_stage:='p_calling_mode = ' || p_calling_mode;
685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
686: END IF;

Line 684: pa_debug.g_err_stage:='p_calling_mode = ' || p_calling_mode;

680: IF l_debug_mode = 'Y' THEN
681: pa_debug.g_err_stage:='p_target_fp_version_id = ' || p_target_fp_version_id;
682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
683:
684: pa_debug.g_err_stage:='p_calling_mode = ' || p_calling_mode;
685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
686: END IF;
687:
688: IF p_source_fp_version_id_tbl.COUNT > 0 THEN

Line 685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

681: pa_debug.g_err_stage:='p_target_fp_version_id = ' || p_target_fp_version_id;
682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
683:
684: pa_debug.g_err_stage:='p_calling_mode = ' || p_calling_mode;
685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
686: END IF;
687:
688: IF p_source_fp_version_id_tbl.COUNT > 0 THEN
689: FOR i IN p_source_fp_version_id_tbl.FIRST .. p_source_fp_version_id_tbl.LAST LOOP

Line 691: pa_debug.g_err_stage:='p_source_fp_version_id_tbl = ' || p_source_fp_version_id_tbl(i);

687:
688: IF p_source_fp_version_id_tbl.COUNT > 0 THEN
689: FOR i IN p_source_fp_version_id_tbl.FIRST .. p_source_fp_version_id_tbl.LAST LOOP
690: IF l_debug_mode = 'Y' THEN
691: pa_debug.g_err_stage:='p_source_fp_version_id_tbl = ' || p_source_fp_version_id_tbl(i);
692: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
693: END IF;
694: END LOOP;
695: END IF;

Line 692: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

688: IF p_source_fp_version_id_tbl.COUNT > 0 THEN
689: FOR i IN p_source_fp_version_id_tbl.FIRST .. p_source_fp_version_id_tbl.LAST LOOP
690: IF l_debug_mode = 'Y' THEN
691: pa_debug.g_err_stage:='p_source_fp_version_id_tbl = ' || p_source_fp_version_id_tbl(i);
692: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
693: END IF;
694: END LOOP;
695: END IF;
696:

Line 986: pa_debug.g_err_stage:='Source version type: ' || l_s_version_type;

982: END IF;
983: END IF;
984:
985: IF l_debug_mode = 'Y' THEN
986: pa_debug.g_err_stage:='Source version type: ' || l_s_version_type;
987: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
988:
989: pa_debug.g_err_stage:='Target version type: ' || l_t_version_type;
990: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 987: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

983: END IF;
984:
985: IF l_debug_mode = 'Y' THEN
986: pa_debug.g_err_stage:='Source version type: ' || l_s_version_type;
987: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
988:
989: pa_debug.g_err_stage:='Target version type: ' || l_t_version_type;
990: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
991: END IF;

Line 989: pa_debug.g_err_stage:='Target version type: ' || l_t_version_type;

985: IF l_debug_mode = 'Y' THEN
986: pa_debug.g_err_stage:='Source version type: ' || l_s_version_type;
987: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
988:
989: pa_debug.g_err_stage:='Target version type: ' || l_t_version_type;
990: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
991: END IF;
992:
993: --Added agreement check for P2 bug 2724156

Line 990: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

986: pa_debug.g_err_stage:='Source version type: ' || l_s_version_type;
987: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
988:
989: pa_debug.g_err_stage:='Target version type: ' || l_t_version_type;
990: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
991: END IF;
992:
993: --Added agreement check for P2 bug 2724156
994: IF (l_s_version_type IN ('REVENUE','ALL') AND l_t_version_type IN ('REVENUE','ALL')) THEN

Line 1006: pa_debug.g_err_stage:='Source Agr: ' || l_s_agreement_id;

1002: FROM pa_budget_versions
1003: where budget_version_id = l_t_version_id;
1004:
1005: IF l_debug_mode = 'Y' THEN
1006: pa_debug.g_err_stage:='Source Agr: ' || l_s_agreement_id;
1007: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1008:
1009: pa_debug.g_err_stage:='Target Agr: ' || l_t_agreement_id;
1010: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 1007: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

1003: where budget_version_id = l_t_version_id;
1004:
1005: IF l_debug_mode = 'Y' THEN
1006: pa_debug.g_err_stage:='Source Agr: ' || l_s_agreement_id;
1007: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1008:
1009: pa_debug.g_err_stage:='Target Agr: ' || l_t_agreement_id;
1010: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1011: END IF;

Line 1009: pa_debug.g_err_stage:='Target Agr: ' || l_t_agreement_id;

1005: IF l_debug_mode = 'Y' THEN
1006: pa_debug.g_err_stage:='Source Agr: ' || l_s_agreement_id;
1007: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1008:
1009: pa_debug.g_err_stage:='Target Agr: ' || l_t_agreement_id;
1010: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1011: END IF;
1012:
1013: IF (l_s_agreement_id <> l_t_agreement_id) THEN

Line 1010: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

1006: pa_debug.g_err_stage:='Source Agr: ' || l_s_agreement_id;
1007: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1008:
1009: pa_debug.g_err_stage:='Target Agr: ' || l_t_agreement_id;
1010: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1011: END IF;
1012:
1013: IF (l_s_agreement_id <> l_t_agreement_id) THEN
1014: --MERGE NOT POSSIBLE

Line 1029: pa_debug.g_err_stage:='Error: ' || l_raise_error_flag;

1025: END IF;
1026: END IF;
1027:
1028: IF l_debug_mode = 'Y' THEN
1029: pa_debug.g_err_stage:='Error: ' || l_raise_error_flag;
1030: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1031: END IF;
1032:
1033: --end of agreement check for P2 bug 2724156

Line 1030: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

1026: END IF;
1027:
1028: IF l_debug_mode = 'Y' THEN
1029: pa_debug.g_err_stage:='Error: ' || l_raise_error_flag;
1030: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1031: END IF;
1032:
1033: --end of agreement check for P2 bug 2724156
1034: IF (l_raise_error_flag = 'Y') THEN

Line 1079: pa_debug.g_err_stage:='Token: ' || l_chg_doc_token;

1075: if l_ci_number is not null then
1076: l_chg_doc_token := l_chg_doc_token ||'('||l_ci_number ||')';
1077: end if;
1078: IF l_debug_mode = 'Y' THEN
1079: pa_debug.g_err_stage:='Token: ' || l_chg_doc_token;
1080: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1081: END IF;
1082: exception
1083: when no_data_found then

Line 1080: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

1076: l_chg_doc_token := l_chg_doc_token ||'('||l_ci_number ||')';
1077: end if;
1078: IF l_debug_mode = 'Y' THEN
1079: pa_debug.g_err_stage:='Token: ' || l_chg_doc_token;
1080: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
1081: END IF;
1082: exception
1083: when no_data_found then
1084: l_count := 0;

Line 1492: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

1488: WHEN OTHERS THEN
1489: FND_MSG_PUB.add_exc_msg
1490: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
1491: 'FP_CI_CHECK_MERGE_POSSIBLE'
1492: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_MERGE_POSSIBLE';
1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
1496: END IF;

Line 1493: IF P_PA_DEBUG_MODE = 'Y' THEN

1489: FND_MSG_PUB.add_exc_msg
1490: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
1491: 'FP_CI_CHECK_MERGE_POSSIBLE'
1492: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_MERGE_POSSIBLE';
1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
1496: END IF;
1497: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 37');

Line 1494: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_MERGE_POSSIBLE';

1490: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
1491: 'FP_CI_CHECK_MERGE_POSSIBLE'
1492: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_MERGE_POSSIBLE';
1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
1496: END IF;
1497: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 37');
1498: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

1491: 'FP_CI_CHECK_MERGE_POSSIBLE'
1492: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_MERGE_POSSIBLE';
1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
1496: END IF;
1497: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 37');
1498: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1499: PA_DEBUG.Reset_Curr_Function;

Line 1499: PA_DEBUG.Reset_Curr_Function;

1495: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
1496: END IF;
1497: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_MERGE_POSSIBLE - 37');
1498: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
1499: PA_DEBUG.Reset_Curr_Function;
1500: RAISE;
1501:
1502: END FP_CI_CHECK_MERGE_POSSIBLE;
1503: -- end of FP_CI_CHECK_MERGE_POSSIBLE

Line 1889: pa_debug.set_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Is_Create_CI_Version_Allowed');

1885: BEGIN
1886:
1887: x_msg_count := 0;
1888: x_return_status := FND_API.G_RET_STS_SUCCESS;
1889: pa_debug.set_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Is_Create_CI_Version_Allowed');
1890: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1891: l_debug_mode := NVL(l_debug_mode, 'Y');
1892: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
1893:

Line 1890: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

1886:
1887: x_msg_count := 0;
1888: x_return_status := FND_API.G_RET_STS_SUCCESS;
1889: pa_debug.set_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Is_Create_CI_Version_Allowed');
1890: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1891: l_debug_mode := NVL(l_debug_mode, 'Y');
1892: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
1893:
1894: -- Check for business rules violations

Line 1892: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

1888: x_return_status := FND_API.G_RET_STS_SUCCESS;
1889: pa_debug.set_err_stack('PA_FP_CONTROL_ITEMS_UTILS.Is_Create_CI_Version_Allowed');
1890: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1891: l_debug_mode := NVL(l_debug_mode, 'Y');
1892: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
1893:
1894: -- Check for business rules violations
1895:
1896: pa_debug.g_err_stage:= 'Validating input parameters';

Line 1896: pa_debug.g_err_stage:= 'Validating input parameters';

1892: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
1893:
1894: -- Check for business rules violations
1895:
1896: pa_debug.g_err_stage:= 'Validating input parameters';
1897: IF P_PA_DEBUG_MODE = 'Y' THEN
1898: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1899: END IF;
1900:

Line 1897: IF P_PA_DEBUG_MODE = 'Y' THEN

1893:
1894: -- Check for business rules violations
1895:
1896: pa_debug.g_err_stage:= 'Validating input parameters';
1897: IF P_PA_DEBUG_MODE = 'Y' THEN
1898: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1899: END IF;
1900:
1901: --Check if plan version id is null

Line 1898: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

1894: -- Check for business rules violations
1895:
1896: pa_debug.g_err_stage:= 'Validating input parameters';
1897: IF P_PA_DEBUG_MODE = 'Y' THEN
1898: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1899: END IF;
1900:
1901: --Check if plan version id is null
1902:

Line 1907: pa_debug.g_err_stage:= 'p_project_id = '||p_project_id;

1903: IF (p_project_id IS NULL) OR
1904: (p_fin_plan_type_id IS NULL) OR
1905: (p_version_type IS NULL)
1906: THEN
1907: pa_debug.g_err_stage:= 'p_project_id = '||p_project_id;
1908: IF P_PA_DEBUG_MODE = 'Y' THEN
1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;

Line 1908: IF P_PA_DEBUG_MODE = 'Y' THEN

1904: (p_fin_plan_type_id IS NULL) OR
1905: (p_version_type IS NULL)
1906: THEN
1907: pa_debug.g_err_stage:= 'p_project_id = '||p_project_id;
1908: IF P_PA_DEBUG_MODE = 'Y' THEN
1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

1905: (p_version_type IS NULL)
1906: THEN
1907: pa_debug.g_err_stage:= 'p_project_id = '||p_project_id;
1908: IF P_PA_DEBUG_MODE = 'Y' THEN
1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;

1907: pa_debug.g_err_stage:= 'p_project_id = '||p_project_id;
1908: IF P_PA_DEBUG_MODE = 'Y' THEN
1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;

Line 1912: IF P_PA_DEBUG_MODE = 'Y' THEN

1908: IF P_PA_DEBUG_MODE = 'Y' THEN
1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;
1916: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

1909: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1910: END IF;
1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;
1916: IF P_PA_DEBUG_MODE = 'Y' THEN
1917: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;

1911: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '||p_fin_plan_type_id;
1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;
1916: IF P_PA_DEBUG_MODE = 'Y' THEN
1917: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1918: END IF;
1919:

Line 1916: IF P_PA_DEBUG_MODE = 'Y' THEN

1912: IF P_PA_DEBUG_MODE = 'Y' THEN
1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;
1916: IF P_PA_DEBUG_MODE = 'Y' THEN
1917: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1918: END IF;
1919:
1920: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 1917: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

1913: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1914: END IF;
1915: pa_debug.g_err_stage:= 'p_version_type = '||p_version_type;
1916: IF P_PA_DEBUG_MODE = 'Y' THEN
1917: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1918: END IF;
1919:
1920: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1921: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 1923: pa_debug.g_err_stage:= 'Invalid Arguments Passed';

1919:
1920: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1921: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
1922:
1923: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
1924: IF P_PA_DEBUG_MODE = 'Y' THEN
1925: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1926: END IF;
1927:

Line 1924: IF P_PA_DEBUG_MODE = 'Y' THEN

1920: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1921: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
1922:
1923: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
1924: IF P_PA_DEBUG_MODE = 'Y' THEN
1925: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1926: END IF;
1927:
1928: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 1925: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

1921: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
1922:
1923: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
1924: IF P_PA_DEBUG_MODE = 'Y' THEN
1925: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
1926: END IF;
1927:
1928: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
1929: END IF;

Line 1975: pa_debug.g_err_stage:= 'Failed to fetch the fp options id for given combination'||SQLERRM;

1971: -- End; jwhite: Added for Plannable Task Dev Effort ------------------
1972:
1973: EXCEPTION
1974: WHEN OTHERS THEN
1975: pa_debug.g_err_stage:= 'Failed to fetch the fp options id for given combination'||SQLERRM;
1976: IF P_PA_DEBUG_MODE = 'Y' THEN
1977: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1978: END IF;
1979: raise;

Line 1976: IF P_PA_DEBUG_MODE = 'Y' THEN

1972:
1973: EXCEPTION
1974: WHEN OTHERS THEN
1975: pa_debug.g_err_stage:= 'Failed to fetch the fp options id for given combination'||SQLERRM;
1976: IF P_PA_DEBUG_MODE = 'Y' THEN
1977: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1978: END IF;
1979: raise;
1980: END;

Line 1977: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

1973: EXCEPTION
1974: WHEN OTHERS THEN
1975: pa_debug.g_err_stage:= 'Failed to fetch the fp options id for given combination'||SQLERRM;
1976: IF P_PA_DEBUG_MODE = 'Y' THEN
1977: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1978: END IF;
1979: raise;
1980: END;
1981:

Line 1982: pa_debug.g_err_stage:= 'Impacted task = '|| p_impacted_task_id;

1978: END IF;
1979: raise;
1980: END;
1981:
1982: pa_debug.g_err_stage:= 'Impacted task = '|| p_impacted_task_id;
1983: IF P_PA_DEBUG_MODE = 'Y' THEN
1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1985: END IF;
1986:

Line 1983: IF P_PA_DEBUG_MODE = 'Y' THEN

1979: raise;
1980: END;
1981:
1982: pa_debug.g_err_stage:= 'Impacted task = '|| p_impacted_task_id;
1983: IF P_PA_DEBUG_MODE = 'Y' THEN
1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1985: END IF;
1986:
1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;

Line 1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

1980: END;
1981:
1982: pa_debug.g_err_stage:= 'Impacted task = '|| p_impacted_task_id;
1983: IF P_PA_DEBUG_MODE = 'Y' THEN
1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1985: END IF;
1986:
1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;
1988: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;

1983: IF P_PA_DEBUG_MODE = 'Y' THEN
1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1985: END IF;
1986:
1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;
1988: IF P_PA_DEBUG_MODE = 'Y' THEN
1989: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1990: END IF;
1991:

Line 1988: IF P_PA_DEBUG_MODE = 'Y' THEN

1984: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1985: END IF;
1986:
1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;
1988: IF P_PA_DEBUG_MODE = 'Y' THEN
1989: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1990: END IF;
1991:
1992: -- Fetch resource list info

Line 1989: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

1985: END IF;
1986:
1987: pa_debug.g_err_stage := 'Plan Type Planning Level =' || l_plan_type_planning_level;
1988: IF P_PA_DEBUG_MODE = 'Y' THEN
1989: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1990: END IF;
1991:
1992: -- Fetch resource list info
1993:

Line 1994: pa_debug.g_err_stage:= 'Calling get_resource_list_info' ;

1990: END IF;
1991:
1992: -- Fetch resource list info
1993:
1994: pa_debug.g_err_stage:= 'Calling get_resource_list_info' ;
1995: IF P_PA_DEBUG_MODE = 'Y' THEN
1996: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1997: END IF;
1998:

Line 1995: IF P_PA_DEBUG_MODE = 'Y' THEN

1991:
1992: -- Fetch resource list info
1993:
1994: pa_debug.g_err_stage:= 'Calling get_resource_list_info' ;
1995: IF P_PA_DEBUG_MODE = 'Y' THEN
1996: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1997: END IF;
1998:
1999: pa_fin_plan_utils.get_resource_list_info(

Line 1996: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

1992: -- Fetch resource list info
1993:
1994: pa_debug.g_err_stage:= 'Calling get_resource_list_info' ;
1995: IF P_PA_DEBUG_MODE = 'Y' THEN
1996: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
1997: END IF;
1998:
1999: pa_fin_plan_utils.get_resource_list_info(
2000: p_resource_list_id => l_resource_list_id

Line 2036: pa_debug.g_err_stage:= 'Fetching impacted task details';

2032: -- and derive the task level of it
2033:
2034: IF p_impacted_task_id IS NOT NULL THEN
2035:
2036: pa_debug.g_err_stage:= 'Fetching impacted task details';
2037: IF P_PA_DEBUG_MODE = 'Y' THEN
2038: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2039: END IF;
2040:

Line 2037: IF P_PA_DEBUG_MODE = 'Y' THEN

2033:
2034: IF p_impacted_task_id IS NOT NULL THEN
2035:
2036: pa_debug.g_err_stage:= 'Fetching impacted task details';
2037: IF P_PA_DEBUG_MODE = 'Y' THEN
2038: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2039: END IF;
2040:
2041: -- Fetching top task id and parent task id of impacted task id

Line 2038: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2034: IF p_impacted_task_id IS NOT NULL THEN
2035:
2036: pa_debug.g_err_stage:= 'Fetching impacted task details';
2037: IF P_PA_DEBUG_MODE = 'Y' THEN
2038: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2039: END IF;
2040:
2041: -- Fetching top task id and parent task id of impacted task id
2042:

Line 2067: pa_debug.g_err_stage:= 'Error during fetching impacted task details';

2063: l_impacted_task_level := PA_FP_CONSTANTS_PKG.G_IMPACTED_TASK_LEVEL_M;
2064: END IF;
2065: EXCEPTION
2066: WHEN Others THEN
2067: pa_debug.g_err_stage:= 'Error during fetching impacted task details';
2068: IF P_PA_DEBUG_MODE = 'Y' THEN
2069: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2070: END IF;
2071: RAISE;

Line 2068: IF P_PA_DEBUG_MODE = 'Y' THEN

2064: END IF;
2065: EXCEPTION
2066: WHEN Others THEN
2067: pa_debug.g_err_stage:= 'Error during fetching impacted task details';
2068: IF P_PA_DEBUG_MODE = 'Y' THEN
2069: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2070: END IF;
2071: RAISE;
2072: END;

Line 2069: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2065: EXCEPTION
2066: WHEN Others THEN
2067: pa_debug.g_err_stage:= 'Error during fetching impacted task details';
2068: IF P_PA_DEBUG_MODE = 'Y' THEN
2069: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2070: END IF;
2071: RAISE;
2072: END;
2073: END IF;

Line 2075: pa_debug.g_err_stage:= 'Impacted task level = '|| l_impacted_task_level;

2071: RAISE;
2072: END;
2073: END IF;
2074:
2075: pa_debug.g_err_stage:= 'Impacted task level = '|| l_impacted_task_level;
2076: IF P_PA_DEBUG_MODE = 'Y' THEN
2077: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2078: END IF;
2079:

Line 2076: IF P_PA_DEBUG_MODE = 'Y' THEN

2072: END;
2073: END IF;
2074:
2075: pa_debug.g_err_stage:= 'Impacted task level = '|| l_impacted_task_level;
2076: IF P_PA_DEBUG_MODE = 'Y' THEN
2077: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2078: END IF;
2079:
2080: END IF;

Line 2077: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2073: END IF;
2074:
2075: pa_debug.g_err_stage:= 'Impacted task level = '|| l_impacted_task_level;
2076: IF P_PA_DEBUG_MODE = 'Y' THEN
2077: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2078: END IF;
2079:
2080: END IF;
2081:

Line 2096: pa_debug.g_err_stage:= 'Opening cur_impacted_task_null' ;

2092: THEN
2093:
2094: -- Check if plan type has any plannable elements
2095:
2096: pa_debug.g_err_stage:= 'Opening cur_impacted_task_null' ;
2097: IF P_PA_DEBUG_MODE = 'Y' THEN
2098: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2099: END IF;
2100:

Line 2097: IF P_PA_DEBUG_MODE = 'Y' THEN

2093:
2094: -- Check if plan type has any plannable elements
2095:
2096: pa_debug.g_err_stage:= 'Opening cur_impacted_task_null' ;
2097: IF P_PA_DEBUG_MODE = 'Y' THEN
2098: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2099: END IF;
2100:
2101: OPEN cur_impacted_task_null;

Line 2098: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2094: -- Check if plan type has any plannable elements
2095:
2096: pa_debug.g_err_stage:= 'Opening cur_impacted_task_null' ;
2097: IF P_PA_DEBUG_MODE = 'Y' THEN
2098: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2099: END IF;
2100:
2101: OPEN cur_impacted_task_null;
2102: FETCH cur_impacted_task_null INTO l_count;

Line 2108: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_M_child' ;

2104: ELSE
2105: IF l_impacted_task_level = PA_FP_CONSTANTS_PKG.G_IMPACTED_TASK_LEVEL_M THEN
2106:
2107: -- Check if top task id of impacted task is plannable
2108: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_M_child' ;
2109: IF P_PA_DEBUG_MODE = 'Y' THEN
2110: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2111: END IF;
2112:

Line 2109: IF P_PA_DEBUG_MODE = 'Y' THEN

2105: IF l_impacted_task_level = PA_FP_CONSTANTS_PKG.G_IMPACTED_TASK_LEVEL_M THEN
2106:
2107: -- Check if top task id of impacted task is plannable
2108: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_M_child' ;
2109: IF P_PA_DEBUG_MODE = 'Y' THEN
2110: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2111: END IF;
2112:
2113: OPEN cur_impact_task_level_M_child;

Line 2110: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2106:
2107: -- Check if top task id of impacted task is plannable
2108: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_M_child' ;
2109: IF P_PA_DEBUG_MODE = 'Y' THEN
2110: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2111: END IF;
2112:
2113: OPEN cur_impact_task_level_M_child;
2114: FETCH cur_impact_task_level_M_child INTO l_count;

Line 2121: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_L' ;

2117: ELSIF l_impacted_task_level = PA_FP_CONSTANTS_PKG.G_IMPACTED_TASK_LEVEL_L THEN
2118:
2119: -- Check if the impacted task or its top task is plannable
2120:
2121: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_L' ;
2122: IF P_PA_DEBUG_MODE = 'Y' THEN
2123: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2124: END IF;
2125:

Line 2122: IF P_PA_DEBUG_MODE = 'Y' THEN

2118:
2119: -- Check if the impacted task or its top task is plannable
2120:
2121: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_L' ;
2122: IF P_PA_DEBUG_MODE = 'Y' THEN
2123: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2124: END IF;
2125:
2126: OPEN cur_impact_task_level_L(impacted_task_rec.top_task_id);

Line 2123: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2119: -- Check if the impacted task or its top task is plannable
2120:
2121: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_L' ;
2122: IF P_PA_DEBUG_MODE = 'Y' THEN
2123: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2124: END IF;
2125:
2126: OPEN cur_impact_task_level_L(impacted_task_rec.top_task_id);
2127: FETCH cur_impact_task_level_L INTO l_count;

Line 2134: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_T' ;

2130: ELSIF l_impacted_task_level = PA_FP_CONSTANTS_PKG.G_IMPACTED_TASK_LEVEL_T THEN
2131:
2132: -- Check if there are any plannable elements with top task id as impacted task id.
2133:
2134: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_T' ;
2135: IF P_PA_DEBUG_MODE = 'Y' THEN
2136: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2137: END IF;
2138:

Line 2135: IF P_PA_DEBUG_MODE = 'Y' THEN

2131:
2132: -- Check if there are any plannable elements with top task id as impacted task id.
2133:
2134: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_T' ;
2135: IF P_PA_DEBUG_MODE = 'Y' THEN
2136: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2137: END IF;
2138:
2139: OPEN cur_impact_task_level_T;

Line 2136: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2132: -- Check if there are any plannable elements with top task id as impacted task id.
2133:
2134: pa_debug.g_err_stage:= 'Opening cur_impact_task_level_T' ;
2135: IF P_PA_DEBUG_MODE = 'Y' THEN
2136: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2137: END IF;
2138:
2139: OPEN cur_impact_task_level_T;
2140: FETCH cur_impact_task_level_T INTO l_count;

Line 2149: pa_debug.g_err_stage:= 'Ci_version cant be created';

2145: IF l_count = 0
2146: THEN
2147: x_version_allowed_flag := 'N';
2148:
2149: pa_debug.g_err_stage:= 'Ci_version cant be created';
2150: IF P_PA_DEBUG_MODE = 'Y' THEN
2151: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2152: END IF;
2153:

Line 2150: IF P_PA_DEBUG_MODE = 'Y' THEN

2146: THEN
2147: x_version_allowed_flag := 'N';
2148:
2149: pa_debug.g_err_stage:= 'Ci_version cant be created';
2150: IF P_PA_DEBUG_MODE = 'Y' THEN
2151: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2152: END IF;
2153:
2154: -- raise error if the ci version cant be created

Line 2151: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

2147: x_version_allowed_flag := 'N';
2148:
2149: pa_debug.g_err_stage:= 'Ci_version cant be created';
2150: IF P_PA_DEBUG_MODE = 'Y' THEN
2151: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2152: END IF;
2153:
2154: -- raise error if the ci version cant be created
2155: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2164: pa_debug.g_err_stage:= 'Exiting Is_Create_CI_Version_Allowed';

2160: ELSE
2161: x_version_allowed_flag := 'Y';
2162: END IF;
2163:
2164: pa_debug.g_err_stage:= 'Exiting Is_Create_CI_Version_Allowed';
2165: IF P_PA_DEBUG_MODE = 'Y' THEN
2166: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2167: END IF;
2168: pa_debug.reset_err_stack;

Line 2165: IF P_PA_DEBUG_MODE = 'Y' THEN

2161: x_version_allowed_flag := 'Y';
2162: END IF;
2163:
2164: pa_debug.g_err_stage:= 'Exiting Is_Create_CI_Version_Allowed';
2165: IF P_PA_DEBUG_MODE = 'Y' THEN
2166: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2167: END IF;
2168: pa_debug.reset_err_stack;
2169:

Line 2166: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

2162: END IF;
2163:
2164: pa_debug.g_err_stage:= 'Exiting Is_Create_CI_Version_Allowed';
2165: IF P_PA_DEBUG_MODE = 'Y' THEN
2166: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2167: END IF;
2168: pa_debug.reset_err_stack;
2169:
2170: EXCEPTION

Line 2168: pa_debug.reset_err_stack;

2164: pa_debug.g_err_stage:= 'Exiting Is_Create_CI_Version_Allowed';
2165: IF P_PA_DEBUG_MODE = 'Y' THEN
2166: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
2167: END IF;
2168: pa_debug.reset_err_stack;
2169:
2170: EXCEPTION
2171:
2172: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 2190: -- pa_debug.g_err_stage:= 'Invalid Arguments Passed';

2186: ELSE
2187: x_msg_count := l_msg_count;
2188: END IF;
2189:
2190: -- pa_debug.g_err_stage:= 'Invalid Arguments Passed';
2191: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2192: pa_debug.reset_err_stack;
2193: RAISE;
2194:

Line 2191: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

2187: x_msg_count := l_msg_count;
2188: END IF;
2189:
2190: -- pa_debug.g_err_stage:= 'Invalid Arguments Passed';
2191: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2192: pa_debug.reset_err_stack;
2193: RAISE;
2194:
2195: WHEN others THEN

Line 2192: pa_debug.reset_err_stack;

2188: END IF;
2189:
2190: -- pa_debug.g_err_stage:= 'Invalid Arguments Passed';
2191: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2192: pa_debug.reset_err_stack;
2193: RAISE;
2194:
2195: WHEN others THEN
2196:

Line 2202: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

2198: x_msg_count := 1;
2199: x_msg_data := SQLERRM;
2200: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS'
2201: ,p_procedure_name => 'Is_Create_CI_Version_Allowed');
2202: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
2203: IF P_PA_DEBUG_MODE = 'Y' THEN
2204: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2205: END IF;
2206: pa_debug.reset_err_stack;

Line 2203: IF P_PA_DEBUG_MODE = 'Y' THEN

2199: x_msg_data := SQLERRM;
2200: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS'
2201: ,p_procedure_name => 'Is_Create_CI_Version_Allowed');
2202: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
2203: IF P_PA_DEBUG_MODE = 'Y' THEN
2204: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2205: END IF;
2206: pa_debug.reset_err_stack;
2207: RAISE;

Line 2204: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

2200: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS'
2201: ,p_procedure_name => 'Is_Create_CI_Version_Allowed');
2202: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
2203: IF P_PA_DEBUG_MODE = 'Y' THEN
2204: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2205: END IF;
2206: pa_debug.reset_err_stack;
2207: RAISE;
2208:

Line 2206: pa_debug.reset_err_stack;

2202: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
2203: IF P_PA_DEBUG_MODE = 'Y' THEN
2204: pa_debug.write('Is_Create_CI_Version_Allowed: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
2205: END IF;
2206: pa_debug.reset_err_stack;
2207: RAISE;
2208:
2209: END Is_Create_CI_Version_Allowed;
2210:

Line 2223: IF P_PA_DEBUG_MODE = 'Y' THEN

2219:
2220: BEGIN
2221: x_return_status := FND_API.G_RET_STS_SUCCESS;
2222:
2223: IF P_PA_DEBUG_MODE = 'Y' THEN
2224: pa_debug.init_err_stack('IsValidAgreement: ' || 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');
2225: END IF;
2226:
2227: IF p_agreement_number IS NULL THEN

Line 2224: pa_debug.init_err_stack('IsValidAgreement: ' || 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');

2220: BEGIN
2221: x_return_status := FND_API.G_RET_STS_SUCCESS;
2222:
2223: IF P_PA_DEBUG_MODE = 'Y' THEN
2224: pa_debug.init_err_stack('IsValidAgreement: ' || 'PA_FP_CONTROL_ITEMS_UTILS.Get_Fin_Plan_Dtls');
2225: END IF;
2226:
2227: IF p_agreement_number IS NULL THEN
2228: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2231: pa_debug.reset_err_stack;

2227: IF p_agreement_number IS NULL THEN
2228: x_return_status := FND_API.G_RET_STS_ERROR;
2229: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
2230: p_msg_name => 'PA_FP_AGR_NUM_REQ' );
2231: pa_debug.reset_err_stack;
2232: RETURN;
2233: END IF;
2234:
2235: SELECT a.Agreement_Id INTO x_agreement_id FROM

Line 2244: pa_debug.reset_err_stack;

2240: a.agreement_id = spf.agreement_id AND
2241: spf.project_id = p_project_id AND
2242: NVL(spf.total_unbaselined_amount,0) > 0 AND
2243: ROWNUM < 2;
2244: pa_debug.reset_err_stack;
2245: RETURN;
2246: EXCEPTION
2247: WHEN NO_DATA_FOUND THEN
2248: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2253: pa_debug.reset_err_stack;

2249: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
2250: p_msg_name => 'PA_FP_AGR_INVALID',
2251: p_token1 => 'AGREEMENT_NUMBER',
2252: p_value1 => p_agreement_number);
2253: pa_debug.reset_err_stack;
2254: RETURN;
2255:
2256: WHEN OTHERS THEN
2257: FND_MSG_PUB.Add_Exc_Msg(

Line 2259: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

2255:
2256: WHEN OTHERS THEN
2257: FND_MSG_PUB.Add_Exc_Msg(
2258: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.IsValidAgreement'
2259: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2260: IF P_PA_DEBUG_MODE = 'Y' THEN
2261: pa_debug.write_file('IsValidAgreement: ' || SQLERRM);
2262: END IF;
2263: pa_debug.reset_err_stack;

Line 2260: IF P_PA_DEBUG_MODE = 'Y' THEN

2256: WHEN OTHERS THEN
2257: FND_MSG_PUB.Add_Exc_Msg(
2258: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.IsValidAgreement'
2259: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2260: IF P_PA_DEBUG_MODE = 'Y' THEN
2261: pa_debug.write_file('IsValidAgreement: ' || SQLERRM);
2262: END IF;
2263: pa_debug.reset_err_stack;
2264: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 2261: pa_debug.write_file('IsValidAgreement: ' || SQLERRM);

2257: FND_MSG_PUB.Add_Exc_Msg(
2258: p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS.IsValidAgreement'
2259: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2260: IF P_PA_DEBUG_MODE = 'Y' THEN
2261: pa_debug.write_file('IsValidAgreement: ' || SQLERRM);
2262: END IF;
2263: pa_debug.reset_err_stack;
2264: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2265: RAISE;

Line 2263: pa_debug.reset_err_stack;

2259: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2260: IF P_PA_DEBUG_MODE = 'Y' THEN
2261: pa_debug.write_file('IsValidAgreement: ' || SQLERRM);
2262: END IF;
2263: pa_debug.reset_err_stack;
2264: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2265: RAISE;
2266: END IsValidAgreement;
2267:

Line 2348: IF P_PA_DEBUG_MODE = 'Y' THEN

2344: -- Local Variable Declaration
2345: l_debug_mode VARCHAR2(30);
2346:
2347: BEGIN
2348: IF P_PA_DEBUG_MODE = 'Y' THEN
2349: pa_debug.init_err_stack('PAFPCIUB.GET_BUDGET_VERSION_INFO');
2350: END IF;
2351: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2352: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2349: pa_debug.init_err_stack('PAFPCIUB.GET_BUDGET_VERSION_INFO');

2345: l_debug_mode VARCHAR2(30);
2346:
2347: BEGIN
2348: IF P_PA_DEBUG_MODE = 'Y' THEN
2349: pa_debug.init_err_stack('PAFPCIUB.GET_BUDGET_VERSION_INFO');
2350: END IF;
2351: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2352: l_debug_mode := NVL(l_debug_mode, 'Y');
2353: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 2351: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

2347: BEGIN
2348: IF P_PA_DEBUG_MODE = 'Y' THEN
2349: pa_debug.init_err_stack('PAFPCIUB.GET_BUDGET_VERSION_INFO');
2350: END IF;
2351: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2352: l_debug_mode := NVL(l_debug_mode, 'Y');
2353: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2354: x_return_status := FND_API.G_RET_STS_SUCCESS;
2355: x_msg_count := 0;

Line 2353: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

2349: pa_debug.init_err_stack('PAFPCIUB.GET_BUDGET_VERSION_INFO');
2350: END IF;
2351: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2352: l_debug_mode := NVL(l_debug_mode, 'Y');
2353: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2354: x_return_status := FND_API.G_RET_STS_SUCCESS;
2355: x_msg_count := 0;
2356: ----DBMS_OUTPUT.PUT_LINE('GET_BUDGET_VERSION_INFO - 1');
2357: --Get the column values for this budget version id and project id combination

Line 2412: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

2408: WHEN OTHERS THEN
2409: FND_MSG_PUB.add_exc_msg
2410: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
2411: 'GET_BUDGET_VERSION_INFO'
2412: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2413: ----DBMS_OUTPUT.PUT_LINE('GET_BUDGET_VERSION_INFO - 3');
2414: IF P_PA_DEBUG_MODE = 'Y' THEN
2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';
2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

Line 2414: IF P_PA_DEBUG_MODE = 'Y' THEN

2410: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
2411: 'GET_BUDGET_VERSION_INFO'
2412: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2413: ----DBMS_OUTPUT.PUT_LINE('GET_BUDGET_VERSION_INFO - 3');
2414: IF P_PA_DEBUG_MODE = 'Y' THEN
2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';
2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2417: END IF;
2418: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';

2411: 'GET_BUDGET_VERSION_INFO'
2412: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2413: ----DBMS_OUTPUT.PUT_LINE('GET_BUDGET_VERSION_INFO - 3');
2414: IF P_PA_DEBUG_MODE = 'Y' THEN
2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';
2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2417: END IF;
2418: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2419: PA_DEBUG.Reset_Curr_Function;

Line 2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

2412: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2413: ----DBMS_OUTPUT.PUT_LINE('GET_BUDGET_VERSION_INFO - 3');
2414: IF P_PA_DEBUG_MODE = 'Y' THEN
2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';
2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2417: END IF;
2418: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2419: PA_DEBUG.Reset_Curr_Function;
2420: RAISE;

Line 2419: PA_DEBUG.Reset_Curr_Function;

2415: PA_DEBUG.g_err_stage := 'Unexpected error in GET_BUDGET_VERSION_INFO';
2416: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2417: END IF;
2418: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2419: PA_DEBUG.Reset_Curr_Function;
2420: RAISE;
2421: END GET_BUDGET_VERSION_INFO;
2422: -- end of GET_BUDGET_VERSION_INFO
2423:

Line 2666: IF P_PA_DEBUG_MODE = 'Y' THEN

2662: -- Local Variable Declaration
2663: l_debug_mode VARCHAR2(30);
2664:
2665: BEGIN
2666: IF P_PA_DEBUG_MODE = 'Y' THEN
2667: pa_debug.init_err_stack('PAFPCIUB.CHECK_PLAN_VERSION_NAME_OR_ID');
2668: END IF;
2669: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2670: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2667: pa_debug.init_err_stack('PAFPCIUB.CHECK_PLAN_VERSION_NAME_OR_ID');

2663: l_debug_mode VARCHAR2(30);
2664:
2665: BEGIN
2666: IF P_PA_DEBUG_MODE = 'Y' THEN
2667: pa_debug.init_err_stack('PAFPCIUB.CHECK_PLAN_VERSION_NAME_OR_ID');
2668: END IF;
2669: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2670: l_debug_mode := NVL(l_debug_mode, 'Y');
2671: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 2669: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

2665: BEGIN
2666: IF P_PA_DEBUG_MODE = 'Y' THEN
2667: pa_debug.init_err_stack('PAFPCIUB.CHECK_PLAN_VERSION_NAME_OR_ID');
2668: END IF;
2669: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2670: l_debug_mode := NVL(l_debug_mode, 'Y');
2671: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2672: x_return_status := FND_API.G_RET_STS_SUCCESS;
2673: x_msg_count := 0;

Line 2671: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

2667: pa_debug.init_err_stack('PAFPCIUB.CHECK_PLAN_VERSION_NAME_OR_ID');
2668: END IF;
2669: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2670: l_debug_mode := NVL(l_debug_mode, 'Y');
2671: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2672: x_return_status := FND_API.G_RET_STS_SUCCESS;
2673: x_msg_count := 0;
2674: ----DBMS_OUTPUT.PUT_LINE('CHECK_PLAN_VERSION_NAME_OR_ID - 1');
2675: --Get the number of versions for this budget version name

Line 2707: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

2703: WHEN OTHERS THEN
2704: FND_MSG_PUB.add_exc_msg
2705: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
2706: 'CHECK_PLAN_VERSION_NAME_OR_ID'
2707: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2708: ----DBMS_OUTPUT.PUT_LINE('CHECK_PLAN_VERSION_NAME_OR_ID - 3');
2709: IF P_PA_DEBUG_MODE = 'Y' THEN
2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';
2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

Line 2709: IF P_PA_DEBUG_MODE = 'Y' THEN

2705: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
2706: 'CHECK_PLAN_VERSION_NAME_OR_ID'
2707: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2708: ----DBMS_OUTPUT.PUT_LINE('CHECK_PLAN_VERSION_NAME_OR_ID - 3');
2709: IF P_PA_DEBUG_MODE = 'Y' THEN
2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';
2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2712: END IF;
2713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';

2706: 'CHECK_PLAN_VERSION_NAME_OR_ID'
2707: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2708: ----DBMS_OUTPUT.PUT_LINE('CHECK_PLAN_VERSION_NAME_OR_ID - 3');
2709: IF P_PA_DEBUG_MODE = 'Y' THEN
2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';
2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2712: END IF;
2713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2714: PA_DEBUG.Reset_Curr_Function;

Line 2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

2707: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
2708: ----DBMS_OUTPUT.PUT_LINE('CHECK_PLAN_VERSION_NAME_OR_ID - 3');
2709: IF P_PA_DEBUG_MODE = 'Y' THEN
2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';
2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2712: END IF;
2713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2714: PA_DEBUG.Reset_Curr_Function;
2715: RAISE;

Line 2714: PA_DEBUG.Reset_Curr_Function;

2710: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_PLAN_VERSION_NAME_OR_ID';
2711: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
2712: END IF;
2713: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2714: PA_DEBUG.Reset_Curr_Function;
2715: RAISE;
2716: END CHECK_PLAN_VERSION_NAME_OR_ID;
2717: -- end of CHECK_PLAN_VERSION_NAME_OR_ID
2718:

Line 2768: IF P_PA_DEBUG_MODE = 'Y' THEN

2764: l_msg_index_out NUMBER := NULL;
2765:
2766:
2767: BEGIN
2768: IF P_PA_DEBUG_MODE = 'Y' THEN
2769: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_COPY_POSSIBLE');
2770: END IF;
2771: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2772: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2769: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_COPY_POSSIBLE');

2765:
2766:
2767: BEGIN
2768: IF P_PA_DEBUG_MODE = 'Y' THEN
2769: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_COPY_POSSIBLE');
2770: END IF;
2771: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2772: l_debug_mode := NVL(l_debug_mode, 'Y');
2773: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 2771: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

2767: BEGIN
2768: IF P_PA_DEBUG_MODE = 'Y' THEN
2769: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_COPY_POSSIBLE');
2770: END IF;
2771: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2772: l_debug_mode := NVL(l_debug_mode, 'Y');
2773: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2774: x_return_status := FND_API.G_RET_STS_SUCCESS;
2775: x_msg_count := 0;

Line 2773: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

2769: pa_debug.init_err_stack('PAFPCIUB.FP_CI_CHECK_COPY_POSSIBLE');
2770: END IF;
2771: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2772: l_debug_mode := NVL(l_debug_mode, 'Y');
2773: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
2774: x_return_status := FND_API.G_RET_STS_SUCCESS;
2775: x_msg_count := 0;
2776: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_COPY_POSSIBLE - 1');
2777:

Line 3076: pa_debug.reset_err_stack;

3072: ELSE
3073: x_msg_count := l_msg_count;
3074: END IF;
3075: x_return_status := FND_API.G_RET_STS_ERROR;
3076: pa_debug.reset_err_stack;
3077: RAISE;
3078: WHEN OTHERS THEN
3079: FND_MSG_PUB.add_exc_msg
3080: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||

Line 3082: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

3078: WHEN OTHERS THEN
3079: FND_MSG_PUB.add_exc_msg
3080: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
3081: 'FP_CI_CHECK_COPY_POSSIBLE'
3082: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3083: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_COPY_POSSIBLE - 3');
3084: IF P_PA_DEBUG_MODE = 'Y' THEN
3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';
3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

Line 3084: IF P_PA_DEBUG_MODE = 'Y' THEN

3080: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
3081: 'FP_CI_CHECK_COPY_POSSIBLE'
3082: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3083: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_COPY_POSSIBLE - 3');
3084: IF P_PA_DEBUG_MODE = 'Y' THEN
3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';
3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3087: END IF;
3088: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';

3081: 'FP_CI_CHECK_COPY_POSSIBLE'
3082: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3083: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_COPY_POSSIBLE - 3');
3084: IF P_PA_DEBUG_MODE = 'Y' THEN
3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';
3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3087: END IF;
3088: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3089: PA_DEBUG.Reset_Curr_Function;

Line 3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

3082: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3083: ----DBMS_OUTPUT.PUT_LINE('FP_CI_CHECK_COPY_POSSIBLE - 3');
3084: IF P_PA_DEBUG_MODE = 'Y' THEN
3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';
3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3087: END IF;
3088: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3089: PA_DEBUG.Reset_Curr_Function;
3090:

Line 3089: PA_DEBUG.Reset_Curr_Function;

3085: PA_DEBUG.g_err_stage := 'Unexpected error in FP_CI_CHECK_COPY_POSSIBLE';
3086: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3087: END IF;
3088: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3089: PA_DEBUG.Reset_Curr_Function;
3090:
3091: END FP_CI_CHECK_COPY_POSSIBLE;
3092:
3093:

Line 3115: IF P_PA_DEBUG_MODE = 'Y' THEN

3111: l_debug_mode VARCHAR2(30);
3112: l_no_of_bv_versions NUMBER := 0;
3113:
3114: BEGIN
3115: IF P_PA_DEBUG_MODE = 'Y' THEN
3116: pa_debug.init_err_stack('PAFPCIUB.CHECK_FP_PLAN_VERSION_EXISTS');
3117: END IF;
3118: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3119: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 3116: pa_debug.init_err_stack('PAFPCIUB.CHECK_FP_PLAN_VERSION_EXISTS');

3112: l_no_of_bv_versions NUMBER := 0;
3113:
3114: BEGIN
3115: IF P_PA_DEBUG_MODE = 'Y' THEN
3116: pa_debug.init_err_stack('PAFPCIUB.CHECK_FP_PLAN_VERSION_EXISTS');
3117: END IF;
3118: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3119: l_debug_mode := NVL(l_debug_mode, 'Y');
3120: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 3118: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

3114: BEGIN
3115: IF P_PA_DEBUG_MODE = 'Y' THEN
3116: pa_debug.init_err_stack('PAFPCIUB.CHECK_FP_PLAN_VERSION_EXISTS');
3117: END IF;
3118: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3119: l_debug_mode := NVL(l_debug_mode, 'Y');
3120: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3121: x_return_status := FND_API.G_RET_STS_SUCCESS;
3122: x_msg_count := 0;

Line 3120: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

3116: pa_debug.init_err_stack('PAFPCIUB.CHECK_FP_PLAN_VERSION_EXISTS');
3117: END IF;
3118: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3119: l_debug_mode := NVL(l_debug_mode, 'Y');
3120: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3121: x_return_status := FND_API.G_RET_STS_SUCCESS;
3122: x_msg_count := 0;
3123:
3124: x_call_fp_api_flag := 'N';

Line 3149: ,p_procedure_name => PA_DEBUG.G_Err_Stack);

3145: WHEN OTHERS THEN
3146: FND_MSG_PUB.add_exc_msg
3147: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
3148: 'CHECK_FP_PLAN_VERSION_EXISTS'
3149: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3150: ----DBMS_OUTPUT.PUT_LINE('CHECK_FP_PLAN_VERSION_EXISTS - 3');
3151: IF P_PA_DEBUG_MODE = 'Y' THEN
3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';
3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

Line 3151: IF P_PA_DEBUG_MODE = 'Y' THEN

3147: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils.' ||
3148: 'CHECK_FP_PLAN_VERSION_EXISTS'
3149: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3150: ----DBMS_OUTPUT.PUT_LINE('CHECK_FP_PLAN_VERSION_EXISTS - 3');
3151: IF P_PA_DEBUG_MODE = 'Y' THEN
3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';
3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3154: END IF;
3155: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';

3148: 'CHECK_FP_PLAN_VERSION_EXISTS'
3149: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3150: ----DBMS_OUTPUT.PUT_LINE('CHECK_FP_PLAN_VERSION_EXISTS - 3');
3151: IF P_PA_DEBUG_MODE = 'Y' THEN
3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';
3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3154: END IF;
3155: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3156: PA_DEBUG.Reset_Curr_Function;

Line 3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);

3149: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3150: ----DBMS_OUTPUT.PUT_LINE('CHECK_FP_PLAN_VERSION_EXISTS - 3');
3151: IF P_PA_DEBUG_MODE = 'Y' THEN
3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';
3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3154: END IF;
3155: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3156: PA_DEBUG.Reset_Curr_Function;
3157: RAISE;

Line 3156: PA_DEBUG.Reset_Curr_Function;

3152: PA_DEBUG.g_err_stage := 'Unexpected error in CHECK_FP_PLAN_VERSION_EXISTS';
3153: PA_DEBUG.Log_Message(p_message => PA_DEBUG.g_err_stage);
3154: END IF;
3155: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3156: PA_DEBUG.Reset_Curr_Function;
3157: RAISE;
3158: END CHECK_FP_PLAN_VERSION_EXISTS;
3159: -- end of CHECK_FP_PLAN_VERSION_EXISTS
3160:

Line 3209: IF p_pa_debug_mode = 'Y' THEN

3205:
3206: BEGIN
3207: x_msg_count := 0;
3208: x_return_status := FND_API.G_RET_STS_SUCCESS;
3209: IF p_pa_debug_mode = 'Y' THEN
3210: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.Fp_Ci_Impact_Submit_Chk');
3211: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
3212: END IF;
3213:

Line 3210: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.Fp_Ci_Impact_Submit_Chk');

3206: BEGIN
3207: x_msg_count := 0;
3208: x_return_status := FND_API.G_RET_STS_SUCCESS;
3209: IF p_pa_debug_mode = 'Y' THEN
3210: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.Fp_Ci_Impact_Submit_Chk');
3211: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
3212: END IF;
3213:
3214: /* Get the details of the CI Budget Versions. */

Line 3211: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);

3207: x_msg_count := 0;
3208: x_return_status := FND_API.G_RET_STS_SUCCESS;
3209: IF p_pa_debug_mode = 'Y' THEN
3210: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.Fp_Ci_Impact_Submit_Chk');
3211: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
3212: END IF;
3213:
3214: /* Get the details of the CI Budget Versions. */
3215: OPEN cur_ci_version_dtl;

Line 3225: IF P_PA_DEBUG_MODE = 'Y' THEN

3221:
3222: IF nvl(l_ci_version_id_tbl.last,0) < 1 THEN
3223: /* If there are no budget versions for the CI, throw an error to the user. */
3224:
3225: IF P_PA_DEBUG_MODE = 'Y' THEN
3226: pa_debug.g_err_stage := 'No Budget Version for the CI';
3227: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3228: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3229: END IF;

Line 3226: pa_debug.g_err_stage := 'No Budget Version for the CI';

3222: IF nvl(l_ci_version_id_tbl.last,0) < 1 THEN
3223: /* If there are no budget versions for the CI, throw an error to the user. */
3224:
3225: IF P_PA_DEBUG_MODE = 'Y' THEN
3226: pa_debug.g_err_stage := 'No Budget Version for the CI';
3227: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3228: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3229: END IF;
3230: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 3227: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,

3223: /* If there are no budget versions for the CI, throw an error to the user. */
3224:
3225: IF P_PA_DEBUG_MODE = 'Y' THEN
3226: pa_debug.g_err_stage := 'No Budget Version for the CI';
3227: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3228: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3229: END IF;
3230: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3231: p_msg_name => 'PA_FP_CI_VERSION_NOT_FOUND');

Line 3228: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

3224:
3225: IF P_PA_DEBUG_MODE = 'Y' THEN
3226: pa_debug.g_err_stage := 'No Budget Version for the CI';
3227: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3228: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3229: END IF;
3230: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3231: p_msg_name => 'PA_FP_CI_VERSION_NOT_FOUND');
3232: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 3239: IF P_PA_DEBUG_MODE = 'Y' THEN

3235:
3236: FOR i in l_ci_version_id_tbl.first..l_ci_version_id_tbl.last
3237: LOOP
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.g_err_stage := 'Fetching the Current Working Version';
3241: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3242: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3243: END IF;

Line 3240: pa_debug.g_err_stage := 'Fetching the Current Working Version';

3236: FOR i in l_ci_version_id_tbl.first..l_ci_version_id_tbl.last
3237: LOOP
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.g_err_stage := 'Fetching the Current Working Version';
3241: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3242: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3243: END IF;
3244:

Line 3241: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,

3237: LOOP
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.g_err_stage := 'Fetching the Current Working Version';
3241: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3242: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3243: END IF;
3244:
3245: -- Bug 3809665 Check if change order versions have any budget lines with

Line 3242: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.g_err_stage := 'Fetching the Current Working Version';
3241: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3242: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3243: END IF;
3244:
3245: -- Bug 3809665 Check if change order versions have any budget lines with
3246: -- rejection code

Line 3269: IF P_PA_DEBUG_MODE = 'Y' THEN

3265: ,x_msg_count => l_msg_count
3266: ,x_msg_data => l_msg_data);
3267:
3268: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3269: IF P_PA_DEBUG_MODE = 'Y' THEN
3270: pa_debug.g_err_stage := 'No working version found.';
3271: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3272: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3273: END IF;

Line 3270: pa_debug.g_err_stage := 'No working version found.';

3266: ,x_msg_data => l_msg_data);
3267:
3268: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3269: IF P_PA_DEBUG_MODE = 'Y' THEN
3270: pa_debug.g_err_stage := 'No working version found.';
3271: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3272: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3273: END IF;
3274: raise PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 3271: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,

3267:
3268: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3269: IF P_PA_DEBUG_MODE = 'Y' THEN
3270: pa_debug.g_err_stage := 'No working version found.';
3271: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3272: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3273: END IF;
3274: raise PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
3275: END IF;

Line 3272: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

3268: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
3269: IF P_PA_DEBUG_MODE = 'Y' THEN
3270: pa_debug.g_err_stage := 'No working version found.';
3271: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3272: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3273: END IF;
3274: raise PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
3275: END IF;
3276:

Line 3280: IF P_PA_DEBUG_MODE = 'Y' THEN

3276:
3277: /* Compare the Plan settings of the Financial Impact and the plan settings of the
3278: current working apporved budget plan version. */
3279:
3280: IF P_PA_DEBUG_MODE = 'Y' THEN
3281: pa_debug.g_err_stage := 'Comparing the Plan Settings of Versions';
3282: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3283: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3284: END IF;

Line 3281: pa_debug.g_err_stage := 'Comparing the Plan Settings of Versions';

3277: /* Compare the Plan settings of the Financial Impact and the plan settings of the
3278: current working apporved budget plan version. */
3279:
3280: IF P_PA_DEBUG_MODE = 'Y' THEN
3281: pa_debug.g_err_stage := 'Comparing the Plan Settings of Versions';
3282: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3283: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3284: END IF;
3285:

Line 3282: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,

3278: current working apporved budget plan version. */
3279:
3280: IF P_PA_DEBUG_MODE = 'Y' THEN
3281: pa_debug.g_err_stage := 'Comparing the Plan Settings of Versions';
3282: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3283: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3284: END IF;
3285:
3286: --Added by Xin Liu. For enhancement.

Line 3283: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

3279:
3280: IF P_PA_DEBUG_MODE = 'Y' THEN
3281: pa_debug.g_err_stage := 'Comparing the Plan Settings of Versions';
3282: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' || l_module_name,
3283: pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3284: END IF;
3285:
3286: --Added by Xin Liu. For enhancement.
3287:

Line 3314: IF p_pa_debug_mode = 'Y' THEN

3310: END LOOP;
3311:
3312: END IF; -- nvl(l_ci_version_id_tbl.last,0) < 1
3313:
3314: IF p_pa_debug_mode = 'Y' THEN
3315: pa_debug.g_err_stage:= 'Exiting Fp_Ci_Impact_Submit_Chk';
3316: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3317: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3318: pa_debug.reset_err_stack;

Line 3315: pa_debug.g_err_stage:= 'Exiting Fp_Ci_Impact_Submit_Chk';

3311:
3312: END IF; -- nvl(l_ci_version_id_tbl.last,0) < 1
3313:
3314: IF p_pa_debug_mode = 'Y' THEN
3315: pa_debug.g_err_stage:= 'Exiting Fp_Ci_Impact_Submit_Chk';
3316: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3317: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3318: pa_debug.reset_err_stack;
3319: END IF;

Line 3316: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,

3312: END IF; -- nvl(l_ci_version_id_tbl.last,0) < 1
3313:
3314: IF p_pa_debug_mode = 'Y' THEN
3315: pa_debug.g_err_stage:= 'Exiting Fp_Ci_Impact_Submit_Chk';
3316: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3317: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3318: pa_debug.reset_err_stack;
3319: END IF;
3320:

Line 3318: pa_debug.reset_err_stack;

3314: IF p_pa_debug_mode = 'Y' THEN
3315: pa_debug.g_err_stage:= 'Exiting Fp_Ci_Impact_Submit_Chk';
3316: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3317: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3318: pa_debug.reset_err_stack;
3319: END IF;
3320:
3321: EXCEPTION
3322: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 3338: IF p_pa_debug_mode = 'Y' THEN

3334: x_msg_count := l_msg_count;
3335: ELSE
3336: x_msg_count := l_msg_count;
3337: END IF;
3338: IF p_pa_debug_mode = 'Y' THEN
3339: pa_debug.reset_err_stack;
3340: END IF;
3341: /* #2723909: Returning to the calling procedure instead of raising it,
3342: so that the calling procedure checks for the return status of this procedure

Line 3339: pa_debug.reset_err_stack;

3335: ELSE
3336: x_msg_count := l_msg_count;
3337: END IF;
3338: IF p_pa_debug_mode = 'Y' THEN
3339: pa_debug.reset_err_stack;
3340: END IF;
3341: /* #2723909: Returning to the calling procedure instead of raising it,
3342: so that the calling procedure checks for the return status of this procedure
3343: and handles it appropriately. */

Line 3354: IF p_pa_debug_mode = 'Y' THEN

3350: ( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
3351: ,p_procedure_name => 'Fp_Ci_Impact_Submit_Chk'
3352: ,p_error_text => x_msg_data);
3353:
3354: IF p_pa_debug_mode = 'Y' THEN
3355: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3356: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3357: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3358: pa_debug.reset_err_stack;

Line 3355: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

3351: ,p_procedure_name => 'Fp_Ci_Impact_Submit_Chk'
3352: ,p_error_text => x_msg_data);
3353:
3354: IF p_pa_debug_mode = 'Y' THEN
3355: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3356: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3357: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3358: pa_debug.reset_err_stack;
3359: END IF;

Line 3356: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,

3352: ,p_error_text => x_msg_data);
3353:
3354: IF p_pa_debug_mode = 'Y' THEN
3355: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3356: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3357: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3358: pa_debug.reset_err_stack;
3359: END IF;
3360: RAISE;

Line 3358: pa_debug.reset_err_stack;

3354: IF p_pa_debug_mode = 'Y' THEN
3355: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3356: pa_debug.write('Fp_Ci_Impact_Submit_Chk: ' ||l_module_name,pa_debug.g_err_stage,
3357: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3358: pa_debug.reset_err_stack;
3359: END IF;
3360: RAISE;
3361: END Fp_Ci_Impact_Submit_Chk;
3362:

Line 3413: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

3409: BEGIN
3410:
3411: x_msg_count := 0;
3412: x_return_status := FND_API.G_RET_STS_SUCCESS;
3413: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
3414: IF l_debug_mode = 'Y' THEN
3415: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.FP_CI_VALIDATE_UPDATE_IMPACT');
3416: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3417: END IF;

Line 3415: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.FP_CI_VALIDATE_UPDATE_IMPACT');

3411: x_msg_count := 0;
3412: x_return_status := FND_API.G_RET_STS_SUCCESS;
3413: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
3414: IF l_debug_mode = 'Y' THEN
3415: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.FP_CI_VALIDATE_UPDATE_IMPACT');
3416: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3417: END IF;
3418:
3419: -- Check for business rules violations

Line 3416: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

3412: x_return_status := FND_API.G_RET_STS_SUCCESS;
3413: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
3414: IF l_debug_mode = 'Y' THEN
3415: pa_debug.set_err_stack('Pa_Fp_Control_Items_Utils.FP_CI_VALIDATE_UPDATE_IMPACT');
3416: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3417: END IF;
3418:
3419: -- Check for business rules violations
3420:

Line 3422: pa_debug.g_err_stage:= 'Validating input parameters';

3418:
3419: -- Check for business rules violations
3420:
3421: IF l_debug_mode = 'Y' THEN
3422: pa_debug.g_err_stage:= 'Validating input parameters';
3423: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3424: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3425: END IF;
3426:

Line 3423: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3419: -- Check for business rules violations
3420:
3421: IF l_debug_mode = 'Y' THEN
3422: pa_debug.g_err_stage:= 'Validating input parameters';
3423: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3424: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3425: END IF;
3426:
3427: IF (p_project_id IS NULL) OR (p_ci_id IS NULL AND p_source_version_id IS NULL)

Line 3431: pa_debug.g_err_stage:= 'p_project_id = '|| to_char(p_project_id);

3427: IF (p_project_id IS NULL) OR (p_ci_id IS NULL AND p_source_version_id IS NULL)
3428: OR (p_target_version_id is NULL)
3429: THEN
3430: IF l_debug_mode = 'Y' THEN
3431: pa_debug.g_err_stage:= 'p_project_id = '|| to_char(p_project_id);
3432: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3433: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 3432: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3428: OR (p_target_version_id is NULL)
3429: THEN
3430: IF l_debug_mode = 'Y' THEN
3431: pa_debug.g_err_stage:= 'p_project_id = '|| to_char(p_project_id);
3432: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3433: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);

3430: IF l_debug_mode = 'Y' THEN
3431: pa_debug.g_err_stage:= 'p_project_id = '|| to_char(p_project_id);
3432: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3433: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3431: pa_debug.g_err_stage:= 'p_project_id = '|| to_char(p_project_id);
3432: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3433: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3439: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);

3433: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3439: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3440: pa_debug.g_err_stage:= 'p_ci_id = '|| to_char(p_ci_id);
3441: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3434: pa_debug.g_err_stage:= 'p_source_version_id = '|| to_char(p_source_version_id);
3435: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3439: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3440: pa_debug.g_err_stage:= 'p_ci_id = '|| to_char(p_ci_id);
3441: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3442: END IF;

Line 3440: pa_debug.g_err_stage:= 'p_ci_id = '|| to_char(p_ci_id);

3436: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3439: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3440: pa_debug.g_err_stage:= 'p_ci_id = '|| to_char(p_ci_id);
3441: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3442: END IF;
3443: PA_UTILS.ADD_MESSAGE
3444: (p_app_short_name => 'PA',

Line 3441: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

3437: pa_debug.g_err_stage:= 'p_target_version_id = '|| to_char(p_target_version_id);
3438: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3439: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3440: pa_debug.g_err_stage:= 'p_ci_id = '|| to_char(p_ci_id);
3441: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3442: END IF;
3443: PA_UTILS.ADD_MESSAGE
3444: (p_app_short_name => 'PA',
3445: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 3503: pa_debug.g_err_stage:= 'x_upd_cost_impact_allowed is '||x_upd_cost_impact_allowed

3499: END IF; --end if for approved revenue and cost flag check
3500:
3501:
3502: IF l_debug_mode = 'Y' THEN
3503: pa_debug.g_err_stage:= 'x_upd_cost_impact_allowed is '||x_upd_cost_impact_allowed
3504: ||'x_upd_rev_impact_allowed is '||x_upd_rev_impact_allowed;
3505: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3506: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';

Line 3505: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3501:
3502: IF l_debug_mode = 'Y' THEN
3503: pa_debug.g_err_stage:= 'x_upd_cost_impact_allowed is '||x_upd_cost_impact_allowed
3504: ||'x_upd_rev_impact_allowed is '||x_upd_rev_impact_allowed;
3505: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3506: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';
3508: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3509: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

Line 3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';

3503: pa_debug.g_err_stage:= 'x_upd_cost_impact_allowed is '||x_upd_cost_impact_allowed
3504: ||'x_upd_rev_impact_allowed is '||x_upd_rev_impact_allowed;
3505: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3506: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';
3508: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3509: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3510: pa_debug.reset_err_stack;
3511:

Line 3508: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3504: ||'x_upd_rev_impact_allowed is '||x_upd_rev_impact_allowed;
3505: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3506: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';
3508: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3509: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3510: pa_debug.reset_err_stack;
3511:
3512: END IF;

Line 3510: pa_debug.reset_err_stack;

3506: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3507: pa_debug.g_err_stage:= 'Exiting FP_CI_VALIDATE_UPDATE_IMPACT';
3508: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3509: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
3510: pa_debug.reset_err_stack;
3511:
3512: END IF;
3513:
3514: EXCEPTION

Line 3535: pa_debug.reset_err_stack;

3531: ELSE
3532: x_msg_count := l_msg_count;
3533: END IF;
3534: IF l_debug_mode = 'Y' THEN
3535: pa_debug.reset_err_stack;
3536: END IF;
3537: RAISE;
3538:
3539: WHEN others THEN

Line 3551: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

3547: ,p_procedure_name => 'FP_CI_VALIDATE_UPDATE_IMPACT'
3548: ,p_error_text => x_msg_data);
3549:
3550: IF l_debug_mode = 'Y' THEN
3551: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3552: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3553: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3554: pa_debug.reset_err_stack;
3555:

Line 3552: pa_debug.write(l_module_name,pa_debug.g_err_stage,

3548: ,p_error_text => x_msg_data);
3549:
3550: IF l_debug_mode = 'Y' THEN
3551: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3552: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3553: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3554: pa_debug.reset_err_stack;
3555:
3556: END IF;

Line 3554: pa_debug.reset_err_stack;

3550: IF l_debug_mode = 'Y' THEN
3551: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
3552: pa_debug.write(l_module_name,pa_debug.g_err_stage,
3553: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
3554: pa_debug.reset_err_stack;
3555:
3556: END IF;
3557: RAISE;
3558:

Line 4019: IF P_PA_DEBUG_MODE = 'Y' THEN

4015: l_error_msg_header_flag := 'N';
4016: x_tsk_plan_level_mismatch := 'N';
4017: l_index := 1;
4018: x_return_status := FND_API.G_RET_STS_SUCCESS;
4019: IF P_PA_DEBUG_MODE = 'Y' THEN
4020: PA_DEBUG.init_err_stack('PA_FP_CI_IMPLEMENT_PKG.implement_change_order');
4021: END IF;
4022:
4023: IF p_pa_debug_mode = 'Y' THEN

Line 4020: PA_DEBUG.init_err_stack('PA_FP_CI_IMPLEMENT_PKG.implement_change_order');

4016: x_tsk_plan_level_mismatch := 'N';
4017: l_index := 1;
4018: x_return_status := FND_API.G_RET_STS_SUCCESS;
4019: IF P_PA_DEBUG_MODE = 'Y' THEN
4020: PA_DEBUG.init_err_stack('PA_FP_CI_IMPLEMENT_PKG.implement_change_order');
4021: END IF;
4022:
4023: IF p_pa_debug_mode = 'Y' THEN
4024: PA_DEBUG.write_log (x_module =>

Line 4023: IF p_pa_debug_mode = 'Y' THEN

4019: IF P_PA_DEBUG_MODE = 'Y' THEN
4020: PA_DEBUG.init_err_stack('PA_FP_CI_IMPLEMENT_PKG.implement_change_order');
4021: END IF;
4022:
4023: IF p_pa_debug_mode = 'Y' THEN
4024: PA_DEBUG.write_log (x_module =>
4025: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4026: ,x_msg => 'selecting source version fp option details'
4027: ,x_log_level => 5);

Line 4024: PA_DEBUG.write_log (x_module =>

4020: PA_DEBUG.init_err_stack('PA_FP_CI_IMPLEMENT_PKG.implement_change_order');
4021: END IF;
4022:
4023: IF p_pa_debug_mode = 'Y' THEN
4024: PA_DEBUG.write_log (x_module =>
4025: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4026: ,x_msg => 'selecting source version fp option details'
4027: ,x_log_level => 5);
4028: END IF;

Line 4042: IF p_pa_debug_mode = 'Y' THEN

4038: bv.fin_plan_type_id = o.fin_plan_type_id and
4039: o.project_id = p_project_id and
4040: o.fin_plan_version_id = bv.budget_version_id;
4041:
4042: IF p_pa_debug_mode = 'Y' THEN
4043: PA_DEBUG.write_log (x_module =>
4044: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4045: ,x_msg => 'selecting target version fp option details'
4046: ,x_log_level => 5);

Line 4043: PA_DEBUG.write_log (x_module =>

4039: o.project_id = p_project_id and
4040: o.fin_plan_version_id = bv.budget_version_id;
4041:
4042: IF p_pa_debug_mode = 'Y' THEN
4043: PA_DEBUG.write_log (x_module =>
4044: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4045: ,x_msg => 'selecting target version fp option details'
4046: ,x_log_level => 5);
4047: END IF;

Line 4069: IF p_pa_debug_mode = 'Y' THEN

4065: l_source_task_id := tsk_rec.task_id;
4066: l_source_plan_level := tsk_rec.top_task_planning_level;
4067:
4068: begin
4069: IF p_pa_debug_mode = 'Y' THEN
4070: PA_DEBUG.write_log (x_module =>
4071: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4072: ,x_msg => 'checking for the same task is planned in the target'
4073: ,x_log_level => 5);

Line 4070: PA_DEBUG.write_log (x_module =>

4066: l_source_plan_level := tsk_rec.top_task_planning_level;
4067:
4068: begin
4069: IF p_pa_debug_mode = 'Y' THEN
4070: PA_DEBUG.write_log (x_module =>
4071: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4072: ,x_msg => 'checking for the same task is planned in the target'
4073: ,x_log_level => 5);
4074: END IF;

Line 4091: IF p_pa_debug_mode = 'Y' THEN

4087: when no_data_found then
4088: /* checking for whether the top task is planned in the
4089: target */
4090: begin
4091: IF p_pa_debug_mode = 'Y' THEN
4092: PA_DEBUG.write_log (x_module =>
4093: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4094: ,x_msg => 'checking for whether the top task is planned in the target'
4095: ,x_log_level => 5);

Line 4092: PA_DEBUG.write_log (x_module =>

4088: /* checking for whether the top task is planned in the
4089: target */
4090: begin
4091: IF p_pa_debug_mode = 'Y' THEN
4092: PA_DEBUG.write_log (x_module =>
4093: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4094: ,x_msg => 'checking for whether the top task is planned in the target'
4095: ,x_log_level => 5);
4096: END IF;

Line 4114: IF p_pa_debug_mode = 'Y' THEN

4110: if l_source_plan_level = 'TOP' then
4111: /* checking for whether the top task in the source version
4112: is planned at the lowest task level in target version */
4113: begin
4114: IF p_pa_debug_mode = 'Y' THEN
4115: PA_DEBUG.write_log (x_module =>
4116: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4117: ,x_msg => 'checking for source - top task and target - lowest task'
4118: ,x_log_level => 5);

Line 4115: PA_DEBUG.write_log (x_module =>

4111: /* checking for whether the top task in the source version
4112: is planned at the lowest task level in target version */
4113: begin
4114: IF p_pa_debug_mode = 'Y' THEN
4115: PA_DEBUG.write_log (x_module =>
4116: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4117: ,x_msg => 'checking for source - top task and target - lowest task'
4118: ,x_log_level => 5);
4119: END IF;

Line 4147: IF p_pa_debug_mode = 'Y' THEN

4143: end;
4144:
4145: if l_source_plan_level = 'TOP' and
4146: l_target_plan_level = 'LOWEST' then
4147: IF p_pa_debug_mode = 'Y' THEN
4148: PA_DEBUG.write_log (x_module =>
4149: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4150: ,x_msg => 'getting the task info from pa_tasks table'
4151: ,x_log_level => 5);

Line 4148: PA_DEBUG.write_log (x_module =>

4144:
4145: if l_source_plan_level = 'TOP' and
4146: l_target_plan_level = 'LOWEST' then
4147: IF p_pa_debug_mode = 'Y' THEN
4148: PA_DEBUG.write_log (x_module =>
4149: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4150: ,x_msg => 'getting the task info from pa_tasks table'
4151: ,x_log_level => 5);
4152: END IF;

Line 4197: IF p_pa_debug_mode = 'Y' THEN

4193: Lowest Lowest
4194: Top Top
4195: Lowest Top
4196: */
4197: IF p_pa_debug_mode = 'Y' THEN
4198: PA_DEBUG.write_log (x_module =>
4199: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4200: ,x_msg => 'populating the pl sql table for source and target task'
4201: ,x_log_level => 5);

Line 4198: PA_DEBUG.write_log (x_module =>

4194: Top Top
4195: Lowest Top
4196: */
4197: IF p_pa_debug_mode = 'Y' THEN
4198: PA_DEBUG.write_log (x_module =>
4199: 'pa.plsql.Pa_Fp_Control_Items_Utils.chk_tsk_plan_level_mismatch'
4200: ,x_msg => 'populating the pl sql table for source and target task'
4201: ,x_log_level => 5);
4202: END IF;

Line 4220: IF p_pa_debug_mode = 'Y' THEN

4216: l_index := l_index + 1;
4217: end if;
4218: end if; /* end if for top and lowest check */
4219: END LOOP;
4220: IF p_pa_debug_mode = 'Y' THEN
4221: PA_DEBUG.Reset_Err_Stack;
4222: END IF;
4223: EXCEPTION
4224: WHEN OTHERS THEN

Line 4221: PA_DEBUG.Reset_Err_Stack;

4217: end if;
4218: end if; /* end if for top and lowest check */
4219: END LOOP;
4220: IF p_pa_debug_mode = 'Y' THEN
4221: PA_DEBUG.Reset_Err_Stack;
4222: END IF;
4223: EXCEPTION
4224: WHEN OTHERS THEN
4225: IF p_pa_debug_mode = 'Y' THEN

Line 4225: IF p_pa_debug_mode = 'Y' THEN

4221: PA_DEBUG.Reset_Err_Stack;
4222: END IF;
4223: EXCEPTION
4224: WHEN OTHERS THEN
4225: IF p_pa_debug_mode = 'Y' THEN
4226: PA_DEBUG.Reset_Err_Stack;
4227: END IF;
4228: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4229: fnd_msg_pub.add_exc_msg(p_pkg_name => 'Pa_Fp_Control_Items_Utils',

Line 4226: PA_DEBUG.Reset_Err_Stack;

4222: END IF;
4223: EXCEPTION
4224: WHEN OTHERS THEN
4225: IF p_pa_debug_mode = 'Y' THEN
4226: PA_DEBUG.Reset_Err_Stack;
4227: END IF;
4228: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
4229: fnd_msg_pub.add_exc_msg(p_pkg_name => 'Pa_Fp_Control_Items_Utils',
4230: p_procedure_name => 'chk_tsk_plan_level_mismatch',

Line 4253: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

4249: l_module_name VARCHAR2(100) := 'NON_APP_STATUSES_EXIST' ;
4250:
4251: BEGIN
4252:
4253: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
4254:
4255: IF l_debug_mode = 'Y' THEN
4256: pa_debug.set_curr_function( p_function => 'NON_APP_STATUSES_EXIST',
4257: p_debug_mode => l_debug_mode );

Line 4256: pa_debug.set_curr_function( p_function => 'NON_APP_STATUSES_EXIST',

4252:
4253: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
4254:
4255: IF l_debug_mode = 'Y' THEN
4256: pa_debug.set_curr_function( p_function => 'NON_APP_STATUSES_EXIST',
4257: p_debug_mode => l_debug_mode );
4258: END IF;
4259:
4260: BEGIN

Line 4281: pa_debug.reset_curr_function;

4277: l_return := 'N';
4278: END;
4279:
4280: IF l_debug_mode = 'Y' THEN
4281: pa_debug.reset_curr_function;
4282: END IF;
4283:
4284: RETURN l_return;
4285: END NON_APP_STATUSES_EXIST;

Line 4304: pa_debug.set_curr_function( p_function => 'GET_CI_ALLOWED_IMPACTS',

4300:
4301: BEGIN
4302:
4303: IF l_debug_mode = 'Y' THEN
4304: pa_debug.set_curr_function( p_function => 'GET_CI_ALLOWED_IMPACTS',
4305: p_debug_mode => l_debug_mode );
4306: END IF;
4307:
4308: BEGIN

Line 4318: pa_debug.reset_curr_function;

4314: WHERE ci_type_id = p_ci_type_id;
4315: EXCEPTION
4316: WHEN NO_DATA_FOUND THEN
4317: IF l_debug_mode = 'Y' THEN
4318: pa_debug.reset_curr_function;
4319: END IF;
4320: END;
4321: IF (l_cost_impact_flag = 'Y' AND l_rev_impact_flag = 'Y') THEN
4322:

Line 4324: pa_debug.reset_curr_function;

4320: END;
4321: IF (l_cost_impact_flag = 'Y' AND l_rev_impact_flag = 'Y') THEN
4322:
4323: IF l_debug_mode = 'Y' THEN
4324: pa_debug.reset_curr_function;
4325: END IF ;
4326:
4327: RETURN PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_BOTH;
4328:

Line 4332: pa_debug.reset_curr_function;

4328:
4329: ELSIF l_cost_impact_flag = 'Y' THEN
4330:
4331: IF l_debug_mode = 'Y' THEN
4332: pa_debug.reset_curr_function;
4333: END IF ;
4334:
4335: RETURN PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST;
4336:

Line 4340: pa_debug.reset_curr_function;

4336:
4337: ELSIF l_rev_impact_flag = 'Y' THEN
4338:
4339: IF l_debug_mode = 'Y' THEN
4340: pa_debug.reset_curr_function;
4341: END IF ;
4342:
4343: RETURN PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE;
4344:

Line 4348: pa_debug.reset_curr_function;

4344:
4345: ELSE
4346:
4347: IF l_debug_mode = 'Y' THEN
4348: pa_debug.reset_curr_function;
4349: END IF ;
4350:
4351: RETURN NULL;
4352: END IF;

Line 4898: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

4894:
4895:
4896: BEGIN
4897:
4898: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4899: x_msg_count := 0;
4900: x_return_status := FND_API.G_RET_STS_SUCCESS;
4901: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
4902: p_debug_mode => l_debug_mode );

Line 4901: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

4897:
4898: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4899: x_msg_count := 0;
4900: x_return_status := FND_API.G_RET_STS_SUCCESS;
4901: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
4902: p_debug_mode => l_debug_mode );
4903:
4904:
4905: -----------------------------------------------------------------------------

Line 4910: pa_debug.g_err_stage:='Validating input parameters - project id : ' || p_project_id;

4906: -- Validate Input Params, p_project_id and (p_cost_version_id and p_revenue_version_id
4907: -- both) cannot be null or =-99
4908: -----------------------------------------------------------------------------
4909: IF l_debug_mode = 'Y' THEN
4910: pa_debug.g_err_stage:='Validating input parameters - project id : ' || p_project_id;
4911: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4912: END IF;
4913:
4914: IF (p_project_id IS NULL) THEN

Line 4911: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4907: -- both) cannot be null or =-99
4908: -----------------------------------------------------------------------------
4909: IF l_debug_mode = 'Y' THEN
4910: pa_debug.g_err_stage:='Validating input parameters - project id : ' || p_project_id;
4911: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4912: END IF;
4913:
4914: IF (p_project_id IS NULL) THEN
4915: IF l_debug_mode = 'Y' THEN

Line 4916: pa_debug.g_err_stage:='p_project_id is null';

4912: END IF;
4913:
4914: IF (p_project_id IS NULL) THEN
4915: IF l_debug_mode = 'Y' THEN
4916: pa_debug.g_err_stage:='p_project_id is null';
4917: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4918: END IF;
4919: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4920: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4917: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4913:
4914: IF (p_project_id IS NULL) THEN
4915: IF l_debug_mode = 'Y' THEN
4916: pa_debug.g_err_stage:='p_project_id is null';
4917: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4918: END IF;
4919: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4920: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
4921: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 4925: pa_debug.g_err_stage:='Validating input parameters - p_cost_version_id : '||p_cost_version_id;

4921: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
4922: END IF;
4923:
4924: IF l_debug_mode = 'Y' THEN
4925: pa_debug.g_err_stage:='Validating input parameters - p_cost_version_id : '||p_cost_version_id;
4926: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4927:
4928: pa_debug.g_err_stage:='Validating input parameters - p_revenue_version_id : '||p_revenue_version_id;
4929: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 4926: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4922: END IF;
4923:
4924: IF l_debug_mode = 'Y' THEN
4925: pa_debug.g_err_stage:='Validating input parameters - p_cost_version_id : '||p_cost_version_id;
4926: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4927:
4928: pa_debug.g_err_stage:='Validating input parameters - p_revenue_version_id : '||p_revenue_version_id;
4929: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4930: END IF;

Line 4928: pa_debug.g_err_stage:='Validating input parameters - p_revenue_version_id : '||p_revenue_version_id;

4924: IF l_debug_mode = 'Y' THEN
4925: pa_debug.g_err_stage:='Validating input parameters - p_cost_version_id : '||p_cost_version_id;
4926: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4927:
4928: pa_debug.g_err_stage:='Validating input parameters - p_revenue_version_id : '||p_revenue_version_id;
4929: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4930: END IF;
4931:
4932: IF ((nvl(p_cost_version_id,-99) = -99) AND (nvl(p_revenue_version_id,-99) = -99)) THEN

Line 4929: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4925: pa_debug.g_err_stage:='Validating input parameters - p_cost_version_id : '||p_cost_version_id;
4926: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4927:
4928: pa_debug.g_err_stage:='Validating input parameters - p_revenue_version_id : '||p_revenue_version_id;
4929: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4930: END IF;
4931:
4932: IF ((nvl(p_cost_version_id,-99) = -99) AND (nvl(p_revenue_version_id,-99) = -99)) THEN
4933: IF l_debug_mode = 'Y' THEN

Line 4934: pa_debug.g_err_stage:='Validating p_cost_version_id :'||p_cost_version_id;

4930: END IF;
4931:
4932: IF ((nvl(p_cost_version_id,-99) = -99) AND (nvl(p_revenue_version_id,-99) = -99)) THEN
4933: IF l_debug_mode = 'Y' THEN
4934: pa_debug.g_err_stage:='Validating p_cost_version_id :'||p_cost_version_id;
4935: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4936: END IF;
4937: IF l_debug_mode = 'Y' THEN
4938: pa_debug.g_err_stage:='Validating p_revenue_version_id :'||p_revenue_version_id;

Line 4935: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4931:
4932: IF ((nvl(p_cost_version_id,-99) = -99) AND (nvl(p_revenue_version_id,-99) = -99)) THEN
4933: IF l_debug_mode = 'Y' THEN
4934: pa_debug.g_err_stage:='Validating p_cost_version_id :'||p_cost_version_id;
4935: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4936: END IF;
4937: IF l_debug_mode = 'Y' THEN
4938: pa_debug.g_err_stage:='Validating p_revenue_version_id :'||p_revenue_version_id;
4939: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 4938: pa_debug.g_err_stage:='Validating p_revenue_version_id :'||p_revenue_version_id;

4934: pa_debug.g_err_stage:='Validating p_cost_version_id :'||p_cost_version_id;
4935: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4936: END IF;
4937: IF l_debug_mode = 'Y' THEN
4938: pa_debug.g_err_stage:='Validating p_revenue_version_id :'||p_revenue_version_id;
4939: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4940: END IF;
4941: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
4942: END IF;

Line 4939: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4935: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4936: END IF;
4937: IF l_debug_mode = 'Y' THEN
4938: pa_debug.g_err_stage:='Validating p_revenue_version_id :'||p_revenue_version_id;
4939: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4940: END IF;
4941: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
4942: END IF;
4943:

Line 4949: pa_debug.g_err_stage:='Initialising all tables to empty tables.';

4945: -------------------------------------------
4946: -- Initialising all tables to empty tables.
4947: -------------------------------------------
4948: IF l_debug_mode = 'Y' THEN
4949: pa_debug.g_err_stage:='Initialising all tables to empty tables.';
4950: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4951: END IF;
4952: x_summary_tbl := SYSTEM.PA_VARCHAR2_150_TBL_TYPE();
4953: x_url_tbl := SYSTEM.PA_VARCHAR2_240_TBL_TYPE();

Line 4950: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4946: -- Initialising all tables to empty tables.
4947: -------------------------------------------
4948: IF l_debug_mode = 'Y' THEN
4949: pa_debug.g_err_stage:='Initialising all tables to empty tables.';
4950: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4951: END IF;
4952: x_summary_tbl := SYSTEM.PA_VARCHAR2_150_TBL_TYPE();
4953: x_url_tbl := SYSTEM.PA_VARCHAR2_240_TBL_TYPE();
4954: x_reference_tbl := SYSTEM.PA_VARCHAR2_30_TBL_TYPE();

Line 4966: pa_debug.g_err_stage:='Derive Value of x_context';

4962: ----------------------------------------------------
4963: -- Derive Value of x_context
4964: ----------------------------------------------------
4965: IF l_debug_mode = 'Y' THEN
4966: pa_debug.g_err_stage:='Derive Value of x_context';
4967: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4968: END IF;
4969:
4970: IF ((nvl(p_cost_version_id,-99) <> -99) AND (nvl(p_revenue_version_id,-99) <> -99)) THEN

Line 4967: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4963: -- Derive Value of x_context
4964: ----------------------------------------------------
4965: IF l_debug_mode = 'Y' THEN
4966: pa_debug.g_err_stage:='Derive Value of x_context';
4967: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4968: END IF;
4969:
4970: IF ((nvl(p_cost_version_id,-99) <> -99) AND (nvl(p_revenue_version_id,-99) <> -99)) THEN
4971: l_context := 'ALL';

Line 4984: pa_debug.g_err_stage:='Derived x_context : '||x_context;

4980: --------------------------------------------------
4981: -- Fetching the project currency code
4982: --------------------------------------------------
4983: IF l_debug_mode = 'Y' THEN
4984: pa_debug.g_err_stage:='Derived x_context : '||x_context;
4985: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4986:
4987: pa_debug.g_err_stage:='Fetching the project currency code';
4988: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 4985: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4981: -- Fetching the project currency code
4982: --------------------------------------------------
4983: IF l_debug_mode = 'Y' THEN
4984: pa_debug.g_err_stage:='Derived x_context : '||x_context;
4985: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4986:
4987: pa_debug.g_err_stage:='Fetching the project currency code';
4988: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4989: END IF;

Line 4987: pa_debug.g_err_stage:='Fetching the project currency code';

4983: IF l_debug_mode = 'Y' THEN
4984: pa_debug.g_err_stage:='Derived x_context : '||x_context;
4985: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4986:
4987: pa_debug.g_err_stage:='Fetching the project currency code';
4988: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4989: END IF;
4990:
4991: BEGIN

Line 4988: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4984: pa_debug.g_err_stage:='Derived x_context : '||x_context;
4985: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4986:
4987: pa_debug.g_err_stage:='Fetching the project currency code';
4988: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4989: END IF;
4990:
4991: BEGIN
4992: SELECT project_currency_code

Line 4998: pa_debug.g_err_stage:='x_project_currency_code = ' || x_project_currency_code;

4994: FROM Pa_Projects_All
4995: WHERE project_Id = p_project_id;
4996:
4997: IF l_debug_mode = 'Y' THEN
4998: pa_debug.g_err_stage:='x_project_currency_code = ' || x_project_currency_code;
4999: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5000: END IF;
5001:
5002: EXCEPTION

Line 4999: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

4995: WHERE project_Id = p_project_id;
4996:
4997: IF l_debug_mode = 'Y' THEN
4998: pa_debug.g_err_stage:='x_project_currency_code = ' || x_project_currency_code;
4999: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5000: END IF;
5001:
5002: EXCEPTION
5003: WHEN NO_DATA_FOUND THEN

Line 5005: pa_debug.g_err_stage:='NO_DATA_FOUND for fetching project_currency_code';

5001:
5002: EXCEPTION
5003: WHEN NO_DATA_FOUND THEN
5004: IF l_debug_mode = 'Y' THEN
5005: pa_debug.g_err_stage:='NO_DATA_FOUND for fetching project_currency_code';
5006: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5007: END IF;
5008: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5009: END;

Line 5006: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5002: EXCEPTION
5003: WHEN NO_DATA_FOUND THEN
5004: IF l_debug_mode = 'Y' THEN
5005: pa_debug.g_err_stage:='NO_DATA_FOUND for fetching project_currency_code';
5006: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5007: END IF;
5008: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5009: END;
5010:

Line 5015: pa_debug.g_err_stage:='Fetching the margin dervied from code';

5011: -----------------------------------------
5012: -- Fetching the margin dervied from code.
5013: -----------------------------------------
5014: IF l_debug_mode = 'Y' THEN
5015: pa_debug.g_err_stage:='Fetching the margin dervied from code';
5016: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5017: END IF;
5018:
5019: BEGIN

Line 5016: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5012: -- Fetching the margin dervied from code.
5013: -----------------------------------------
5014: IF l_debug_mode = 'Y' THEN
5015: pa_debug.g_err_stage:='Fetching the margin dervied from code';
5016: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5017: END IF;
5018:
5019: BEGIN
5020: SELECT nvl(MARGIN_DERIVED_FROM_CODE,'B')

Line 5028: pa_debug.g_err_stage:='margin dervied from code :'||l_margin_derived_from_code;

5024: AND fin_plan_option_level_code = 'PLAN_TYPE'
5025: AND approved_cost_plan_type_flag = 'Y';
5026:
5027: IF l_debug_mode = 'Y' THEN
5028: pa_debug.g_err_stage:='margin dervied from code :'||l_margin_derived_from_code;
5029: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5030: END IF;
5031:
5032: EXCEPTION

Line 5029: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5025: AND approved_cost_plan_type_flag = 'Y';
5026:
5027: IF l_debug_mode = 'Y' THEN
5028: pa_debug.g_err_stage:='margin dervied from code :'||l_margin_derived_from_code;
5029: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5030: END IF;
5031:
5032: EXCEPTION
5033: WHEN NO_DATA_FOUND THEN

Line 5035: pa_debug.g_err_stage:='NO_DATA_FOUND for margin dervied from code,default to burdened cost';

5031:
5032: EXCEPTION
5033: WHEN NO_DATA_FOUND THEN
5034: IF l_debug_mode = 'Y' THEN
5035: pa_debug.g_err_stage:='NO_DATA_FOUND for margin dervied from code,default to burdened cost';
5036: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5037: END IF;
5038: l_margin_derived_from_code := 'B';
5039: END;

Line 5036: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5032: EXCEPTION
5033: WHEN NO_DATA_FOUND THEN
5034: IF l_debug_mode = 'Y' THEN
5035: pa_debug.g_err_stage:='NO_DATA_FOUND for margin dervied from code,default to burdened cost';
5036: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5037: END IF;
5038: l_margin_derived_from_code := 'B';
5039: END;
5040:

Line 5046: pa_debug.g_err_stage:='Fetching lookup data';

5042: ----------------------------------------------------
5043: -- Fetch Lookup_code ,summary and reference details.
5044: ----------------------------------------------------
5045: IF l_debug_mode = 'Y' THEN
5046: pa_debug.g_err_stage:='Fetching lookup data';
5047: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5048: END IF;
5049:
5050: OPEN c_lookup_summary;

Line 5047: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5043: -- Fetch Lookup_code ,summary and reference details.
5044: ----------------------------------------------------
5045: IF l_debug_mode = 'Y' THEN
5046: pa_debug.g_err_stage:='Fetching lookup data';
5047: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5048: END IF;
5049:
5050: OPEN c_lookup_summary;
5051: FETCH c_lookup_summary BULK COLLECT INTO x_summary_tbl,l_lookup_code_tbl;

Line 5066: pa_debug.g_err_stage:='fetching the approved revenue current working version';

5062: ----------------------------------------------------------------
5063: -- Bug 3744910 -- This is being passed to get_pc_revenue_partial
5064: -- in c_change_documents_status cursor
5065: IF l_debug_mode = 'Y' THEN
5066: pa_debug.g_err_stage:='fetching the approved revenue current working version';
5067: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5068: END IF;
5069: BEGIN
5070: SELECT A.BUDGET_VERSION_ID

Line 5067: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5063: -- Bug 3744910 -- This is being passed to get_pc_revenue_partial
5064: -- in c_change_documents_status cursor
5065: IF l_debug_mode = 'Y' THEN
5066: pa_debug.g_err_stage:='fetching the approved revenue current working version';
5067: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5068: END IF;
5069: BEGIN
5070: SELECT A.BUDGET_VERSION_ID
5071: INTO l_appr_rev_cw_version_id

Line 5081: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;

5077: AND A.CI_ID IS NULL;
5078: -- AND A.BUDGET_STATUS_CODE in ('S','W'); -- Bug#3815378
5079:
5080: IF l_debug_mode = 'Y' THEN
5081: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;
5082: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5083: END IF;
5084:
5085:

Line 5082: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5078: -- AND A.BUDGET_STATUS_CODE in ('S','W'); -- Bug#3815378
5079:
5080: IF l_debug_mode = 'Y' THEN
5081: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;
5082: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5083: END IF;
5084:
5085:
5086: EXCEPTION

Line 5096: pa_debug.g_err_stage:='Get Approved Fin plan Type Details for the project';

5092: -- Get Approved Fin plan Type Details for the project
5093: -----------------------------------------------------
5094:
5095: IF l_debug_mode = 'Y' THEN
5096: pa_debug.g_err_stage:='Get Approved Fin plan Type Details for the project';
5097: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5098: END IF;
5099:
5100: OPEN c_get_approved_details(p_project_id);

Line 5097: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5093: -----------------------------------------------------
5094:
5095: IF l_debug_mode = 'Y' THEN
5096: pa_debug.g_err_stage:='Get Approved Fin plan Type Details for the project';
5097: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5098: END IF;
5099:
5100: OPEN c_get_approved_details(p_project_id);
5101: FETCH c_get_approved_details BULK COLLECT INTO l_fin_plan_type_id_tbl,

Line 5110: pa_debug.g_err_stage:='fetching the revenue current working version of current plan type';

5106: CLOSE c_get_approved_details;
5107:
5108: ELSIF nvl(p_calling_mode,'APPROVED') = 'CURRENT' THEN
5109: IF l_debug_mode = 'Y' THEN
5110: pa_debug.g_err_stage:='fetching the revenue current working version of current plan type';
5111: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5112: END IF;
5113:
5114: BEGIN

Line 5111: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5107:
5108: ELSIF nvl(p_calling_mode,'APPROVED') = 'CURRENT' THEN
5109: IF l_debug_mode = 'Y' THEN
5110: pa_debug.g_err_stage:='fetching the revenue current working version of current plan type';
5111: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5112: END IF;
5113:
5114: BEGIN
5115: SELECT A.BUDGET_VERSION_ID

Line 5130: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;

5126: AND A.CI_ID IS NULL;
5127: --AND A.BUDGET_STATUS_CODE in ('S','W'); -- Bug#3815378
5128:
5129: IF l_debug_mode = 'Y' THEN
5130: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;
5131: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5132: END IF;
5133:
5134:

Line 5131: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5127: --AND A.BUDGET_STATUS_CODE in ('S','W'); -- Bug#3815378
5128:
5129: IF l_debug_mode = 'Y' THEN
5130: pa_debug.g_err_stage:='---l_appr_rev_cw_version_id----'||l_appr_rev_cw_version_id;
5131: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5132: END IF;
5133:
5134:
5135: EXCEPTION

Line 5168: pa_debug.g_err_stage:='No Approved Plan type in in the system for this project';

5164: --------------------------------------------------------------------------
5165: -- Insert data as 0 in all pl sql tables.
5166: --------------------------------------------------------------------------
5167: IF l_debug_mode = 'Y' THEN
5168: pa_debug.g_err_stage:='No Approved Plan type in in the system for this project';
5169: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5170: END IF;
5171: l_row_count := x_summary_tbl.COUNT;
5172: x_margin_tbl.extend(l_row_count);

Line 5169: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5165: -- Insert data as 0 in all pl sql tables.
5166: --------------------------------------------------------------------------
5167: IF l_debug_mode = 'Y' THEN
5168: pa_debug.g_err_stage:='No Approved Plan type in in the system for this project';
5169: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5170: END IF;
5171: l_row_count := x_summary_tbl.COUNT;
5172: x_margin_tbl.extend(l_row_count);
5173: x_margin_percent_tbl.extend(l_row_count);

Line 5229: pa_debug.g_err_stage:='l_ac_fin_plan_type_id; '||l_ac_fin_plan_type_id;

5225: END IF;
5226: --CLOSE c_get_approved_details;
5227:
5228: IF l_debug_mode = 'Y' THEN
5229: pa_debug.g_err_stage:='l_ac_fin_plan_type_id; '||l_ac_fin_plan_type_id;
5230: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5231:
5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5230: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5226: --CLOSE c_get_approved_details;
5227:
5228: IF l_debug_mode = 'Y' THEN
5229: pa_debug.g_err_stage:='l_ac_fin_plan_type_id; '||l_ac_fin_plan_type_id;
5230: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5231:
5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5234:

Line 5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;

5228: IF l_debug_mode = 'Y' THEN
5229: pa_debug.g_err_stage:='l_ac_fin_plan_type_id; '||l_ac_fin_plan_type_id;
5230: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5231:
5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5234:
5235: pa_debug.g_err_stage:='l_report_version_type :'||l_report_version_type;
5236: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5229: pa_debug.g_err_stage:='l_ac_fin_plan_type_id; '||l_ac_fin_plan_type_id;
5230: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5231:
5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5234:
5235: pa_debug.g_err_stage:='l_report_version_type :'||l_report_version_type;
5236: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5237: END IF;

Line 5235: pa_debug.g_err_stage:='l_report_version_type :'||l_report_version_type;

5231:
5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5234:
5235: pa_debug.g_err_stage:='l_report_version_type :'||l_report_version_type;
5236: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5237: END IF;
5238:
5239: ---------------------------------------------------------

Line 5236: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5232: pa_debug.g_err_stage:='l_ar_fin_plan_type_id; '||l_ar_fin_plan_type_id;
5233: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5234:
5235: pa_debug.g_err_stage:='l_report_version_type :'||l_report_version_type;
5236: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5237: END IF;
5238:
5239: ---------------------------------------------------------
5240: -- Deriving plan type id for links in plan summary region

Line 5243: pa_debug.g_err_stage:='Deriving plan type id for links in plan summary region';

5239: ---------------------------------------------------------
5240: -- Deriving plan type id for links in plan summary region
5241: ---------------------------------------------------------
5242: IF l_debug_mode = 'Y' THEN
5243: pa_debug.g_err_stage:='Deriving plan type id for links in plan summary region';
5244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5245: END IF;
5246:
5247: IF l_context = 'ALL' THEN

Line 5244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5240: -- Deriving plan type id for links in plan summary region
5241: ---------------------------------------------------------
5242: IF l_debug_mode = 'Y' THEN
5243: pa_debug.g_err_stage:='Deriving plan type id for links in plan summary region';
5244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5245: END IF;
5246:
5247: IF l_context = 'ALL' THEN
5248: IF l_ac_fin_plan_type_id IS NOT NULL THEN

Line 5275: pa_debug.g_err_stage:='Derived l_fin_plan_type_id --- '||l_fin_plan_type_id;

5271: END IF;
5272:
5273:
5274: IF l_debug_mode = 'Y' THEN
5275: pa_debug.g_err_stage:='Derived l_fin_plan_type_id --- '||l_fin_plan_type_id;
5276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5277:
5278: pa_debug.g_err_stage:='Derived l_next --- '||l_next;
5279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5272:
5273:
5274: IF l_debug_mode = 'Y' THEN
5275: pa_debug.g_err_stage:='Derived l_fin_plan_type_id --- '||l_fin_plan_type_id;
5276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5277:
5278: pa_debug.g_err_stage:='Derived l_next --- '||l_next;
5279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5280: END IF;

Line 5278: pa_debug.g_err_stage:='Derived l_next --- '||l_next;

5274: IF l_debug_mode = 'Y' THEN
5275: pa_debug.g_err_stage:='Derived l_fin_plan_type_id --- '||l_fin_plan_type_id;
5276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5277:
5278: pa_debug.g_err_stage:='Derived l_next --- '||l_next;
5279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5280: END IF;
5281:
5282:

Line 5279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5275: pa_debug.g_err_stage:='Derived l_fin_plan_type_id --- '||l_fin_plan_type_id;
5276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5277:
5278: pa_debug.g_err_stage:='Derived l_next --- '||l_next;
5279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5280: END IF;
5281:
5282:
5283:

Line 5395: pa_debug.g_err_stage:='Fetching Data for Original Baselined Version';

5391: x_url_tbl.extend(1);
5392:
5393: IF l_lookup_code_tbl(i) = 10 THEN
5394: IF l_debug_mode = 'Y' THEN
5395: pa_debug.g_err_stage:='Fetching Data for Original Baselined Version';
5396: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5397: END IF;
5398: OPEN c_original_baselined(p_project_id,
5399: l_ac_fin_plan_type_id,

Line 5396: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5392:
5393: IF l_lookup_code_tbl(i) = 10 THEN
5394: IF l_debug_mode = 'Y' THEN
5395: pa_debug.g_err_stage:='Fetching Data for Original Baselined Version';
5396: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5397: END IF;
5398: OPEN c_original_baselined(p_project_id,
5399: l_ac_fin_plan_type_id,
5400: l_ar_fin_plan_type_id,

Line 5409: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5405: l_cost,
5406: l_revenue;
5407: CLOSE c_original_baselined;
5408: IF l_debug_mode = 'Y' THEN
5409: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5410: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5411:
5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5410: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5406: l_revenue;
5407: CLOSE c_original_baselined;
5408: IF l_debug_mode = 'Y' THEN
5409: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5410: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5411:
5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5414:

Line 5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5408: IF l_debug_mode = 'Y' THEN
5409: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5410: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5411:
5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5414:
5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5409: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5410: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5411:
5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5414:
5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5417:

Line 5415: pa_debug.g_err_stage:='l_cost:'||l_cost;

5411:
5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5414:
5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5417:
5418: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5419: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5412: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5413: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5414:
5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5417:
5418: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5419: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5420: END IF;

Line 5418: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5414:
5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5417:
5418: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5419: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5420: END IF;
5421:
5422: IF l_fin_plan_type_id IS NOT NULL THEN

Line 5419: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5415: pa_debug.g_err_stage:='l_cost:'||l_cost;
5416: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5417:
5418: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5419: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5420: END IF;
5421:
5422: IF l_fin_plan_type_id IS NOT NULL THEN
5423: -- Bug 3883406

Line 5457: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Prior Baselined Versions';

5453: END IF;
5454:
5455: ELSIF l_lookup_code_tbl(i) = 20 THEN
5456: IF l_debug_mode = 'Y' THEN
5457: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Prior Baselined Versions';
5458: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5459: END IF;
5460: OPEN c_change_documents_prior(p_project_id,
5461: l_ac_fin_plan_type_id,

Line 5458: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5454:
5455: ELSIF l_lookup_code_tbl(i) = 20 THEN
5456: IF l_debug_mode = 'Y' THEN
5457: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Prior Baselined Versions';
5458: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5459: END IF;
5460: OPEN c_change_documents_prior(p_project_id,
5461: l_ac_fin_plan_type_id,
5462: l_ar_fin_plan_type_id,

Line 5471: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5467: l_cost,
5468: l_revenue;
5469: CLOSE c_change_documents_prior;
5470: IF l_debug_mode = 'Y' THEN
5471: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5472: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5473:
5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5472: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5468: l_revenue;
5469: CLOSE c_change_documents_prior;
5470: IF l_debug_mode = 'Y' THEN
5471: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5472: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5473:
5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5476:

Line 5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5470: IF l_debug_mode = 'Y' THEN
5471: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5472: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5473:
5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5476:
5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5471: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5472: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5473:
5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5476:
5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5479:

Line 5477: pa_debug.g_err_stage:='l_cost:'||l_cost;

5473:
5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5476:
5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5479:
5480: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5474: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5475: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5476:
5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5479:
5480: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5482: END IF;

Line 5480: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5476:
5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5479:
5480: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5482: END IF;
5483:
5484: IF l_fin_plan_type_id IS NOT NULL THEN

Line 5481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5477: pa_debug.g_err_stage:='l_cost:'||l_cost;
5478: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5479:
5480: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5482: END IF;
5483:
5484: IF l_fin_plan_type_id IS NOT NULL THEN
5485: IF (l_next = 'COST' OR l_next = 'ALL') THEN

Line 5507: pa_debug.g_err_stage:='Fetching Data for Current Baselined';

5503: END IF;
5504:
5505: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for Adjustments from Prior Baseline Versions */
5506: IF l_debug_mode = 'Y' THEN
5507: pa_debug.g_err_stage:='Fetching Data for Current Baselined';
5508: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5509: END IF;
5510: OPEN c_current_baselined(p_project_id,
5511: l_ac_fin_plan_type_id,

Line 5508: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5504:
5505: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for Adjustments from Prior Baseline Versions */
5506: IF l_debug_mode = 'Y' THEN
5507: pa_debug.g_err_stage:='Fetching Data for Current Baselined';
5508: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5509: END IF;
5510: OPEN c_current_baselined(p_project_id,
5511: l_ac_fin_plan_type_id,
5512: l_ar_fin_plan_type_id,

Line 5521: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;

5517: l_cb_cost,
5518: l_cb_revenue;
5519: CLOSE c_current_baselined;
5520: IF l_debug_mode = 'Y' THEN
5521: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5522: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5523:
5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5522: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5518: l_cb_revenue;
5519: CLOSE c_current_baselined;
5520: IF l_debug_mode = 'Y' THEN
5521: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5522: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5523:
5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5526:

Line 5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;

5520: IF l_debug_mode = 'Y' THEN
5521: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5522: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5523:
5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5526:
5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5521: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5522: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5523:
5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5526:
5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5529:

Line 5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;

5523:
5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5526:
5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5529:
5530: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5524: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5525: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5526:
5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5529:
5530: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5532: END IF;

Line 5530: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;

5526:
5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5529:
5530: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5532: END IF;
5533:
5534: IF l_debug_mode = 'Y' THEN

Line 5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5527: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5528: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5529:
5530: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5532: END IF;
5533:
5534: IF l_debug_mode = 'Y' THEN
5535: pa_debug.g_err_stage:='Inserting Data for Adjustments from Prior versions';

Line 5535: pa_debug.g_err_stage:='Inserting Data for Adjustments from Prior versions';

5531: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5532: END IF;
5533:
5534: IF l_debug_mode = 'Y' THEN
5535: pa_debug.g_err_stage:='Inserting Data for Adjustments from Prior versions';
5536: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5537: END IF;
5538: x_equipment_hours_tbl(i) := l_cb_equipment_quantity -
5539: x_equipment_hours_tbl(i-1) -

Line 5536: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5532: END IF;
5533:
5534: IF l_debug_mode = 'Y' THEN
5535: pa_debug.g_err_stage:='Inserting Data for Adjustments from Prior versions';
5536: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5537: END IF;
5538: x_equipment_hours_tbl(i) := l_cb_equipment_quantity -
5539: x_equipment_hours_tbl(i-1) -
5540: x_equipment_hours_tbl(i-2);

Line 5589: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;

5585: END IF;
5586: END IF;
5587:
5588: IF l_debug_mode = 'Y' THEN
5589: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5590: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5591:
5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5590: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5586: END IF;
5587:
5588: IF l_debug_mode = 'Y' THEN
5589: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5590: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5591:
5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5594:

Line 5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;

5588: IF l_debug_mode = 'Y' THEN
5589: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5590: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5591:
5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5594:
5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5589: pa_debug.g_err_stage:='l_cb_labor_quantity:'||l_cb_labor_quantity;
5590: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5591:
5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5594:
5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5597:

Line 5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;

5591:
5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5594:
5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5597:
5598: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5599: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5592: pa_debug.g_err_stage:='l_cb_equipment_quantity:'||l_cb_equipment_quantity;
5593: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5594:
5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5597:
5598: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5599: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5600: END IF;

Line 5598: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;

5594:
5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5597:
5598: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5599: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5600: END IF;
5601:
5602: x_equipment_hours_tbl(i) := l_cb_equipment_quantity;

Line 5599: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5595: pa_debug.g_err_stage:='l_cb_cost:'||l_cb_cost;
5596: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5597:
5598: pa_debug.g_err_stage:='l_cb_revenue:'||l_cb_revenue;
5599: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5600: END IF;
5601:
5602: x_equipment_hours_tbl(i) := l_cb_equipment_quantity;
5603: x_labor_hours_tbl(i) := l_cb_labor_quantity;

Line 5610: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Current Versions';

5606: l_assigned_flag := 'Y';
5607:
5608: ELSIF l_lookup_code_tbl(i) = 50 THEN
5609: IF l_debug_mode = 'Y' THEN
5610: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Current Versions';
5611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5612: END IF;
5613: OPEN c_change_documents_current(p_project_id,
5614: l_ac_fin_plan_type_id,

Line 5611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5607:
5608: ELSIF l_lookup_code_tbl(i) = 50 THEN
5609: IF l_debug_mode = 'Y' THEN
5610: pa_debug.g_err_stage:='Fetching Data for Change Docs fom Current Versions';
5611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5612: END IF;
5613: OPEN c_change_documents_current(p_project_id,
5614: l_ac_fin_plan_type_id,
5615: l_ar_fin_plan_type_id,

Line 5624: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5620: l_cost,
5621: l_revenue;
5622: CLOSE c_change_documents_current;
5623: IF l_debug_mode = 'Y' THEN
5624: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5626:
5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5621: l_revenue;
5622: CLOSE c_change_documents_current;
5623: IF l_debug_mode = 'Y' THEN
5624: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5626:
5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5629:

Line 5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5623: IF l_debug_mode = 'Y' THEN
5624: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5626:
5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5629:
5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5624: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5626:
5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5629:
5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5632:

Line 5630: pa_debug.g_err_stage:='l_cost:'||l_cost;

5626:
5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5629:
5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5632:
5633: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5634: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5627: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5628: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5629:
5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5632:
5633: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5634: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5635: END IF;

Line 5633: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5629:
5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5632:
5633: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5634: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5635: END IF;
5636:
5637: IF l_fin_plan_type_id IS NOT NULL THEN

Line 5634: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5630: pa_debug.g_err_stage:='l_cost:'||l_cost;
5631: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5632:
5633: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5634: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5635: END IF;
5636:
5637: IF l_fin_plan_type_id IS NOT NULL THEN
5638: IF (l_next = 'COST' OR l_next = 'ALL') THEN

Line 5661: pa_debug.g_err_stage:='Fetching Data for Current Working';

5657:
5658:
5659: ELSIF l_lookup_code_tbl(i) = 60 THEN
5660: IF l_debug_mode = 'Y' THEN
5661: pa_debug.g_err_stage:='Fetching Data for Current Working';
5662: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5663: END IF;
5664: OPEN c_current_working(p_project_id,
5665: l_ac_fin_plan_type_id,

Line 5662: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5658:
5659: ELSIF l_lookup_code_tbl(i) = 60 THEN
5660: IF l_debug_mode = 'Y' THEN
5661: pa_debug.g_err_stage:='Fetching Data for Current Working';
5662: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5663: END IF;
5664: OPEN c_current_working(p_project_id,
5665: l_ac_fin_plan_type_id,
5666: l_ar_fin_plan_type_id,

Line 5675: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;

5671: l_cw_cost,
5672: l_cw_revenue;
5673: CLOSE c_current_working;
5674: IF l_debug_mode = 'Y' THEN
5675: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5676: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5677:
5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5676: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5672: l_cw_revenue;
5673: CLOSE c_current_working;
5674: IF l_debug_mode = 'Y' THEN
5675: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5676: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5677:
5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5680:

Line 5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;

5674: IF l_debug_mode = 'Y' THEN
5675: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5676: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5677:
5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5680:
5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5675: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5676: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5677:
5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5680:
5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5683:

Line 5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;

5677:
5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5680:
5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5683:
5684: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5678: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5679: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5680:
5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5683:
5684: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5686: END IF;

Line 5684: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;

5680:
5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5683:
5684: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5686: END IF;
5687:
5688: IF l_debug_mode = 'Y' THEN

Line 5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5681: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5682: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5683:
5684: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5686: END IF;
5687:
5688: IF l_debug_mode = 'Y' THEN
5689: pa_debug.g_err_stage:='Inserting Data for Adjustments';

Line 5689: pa_debug.g_err_stage:='Inserting Data for Adjustments';

5685: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5686: END IF;
5687:
5688: IF l_debug_mode = 'Y' THEN
5689: pa_debug.g_err_stage:='Inserting Data for Adjustments';
5690: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5691: END IF;
5692: x_equipment_hours_tbl(i) := l_cw_equipment_quantity -
5693: x_equipment_hours_tbl(i-1) -

Line 5690: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5686: END IF;
5687:
5688: IF l_debug_mode = 'Y' THEN
5689: pa_debug.g_err_stage:='Inserting Data for Adjustments';
5690: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5691: END IF;
5692: x_equipment_hours_tbl(i) := l_cw_equipment_quantity -
5693: x_equipment_hours_tbl(i-1) -
5694: x_equipment_hours_tbl(i-2);

Line 5743: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;

5739: END IF;
5740: END IF;
5741:
5742: IF l_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5745:
5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5740: END IF;
5741:
5742: IF l_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5745:
5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5748:

Line 5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;

5742: IF l_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5745:
5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5748:
5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5743: pa_debug.g_err_stage:='l_cw_labor_quantity:'||l_cw_labor_quantity;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5745:
5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5748:
5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5751:

Line 5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;

5745:
5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5748:
5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5751:
5752: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5753: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5746: pa_debug.g_err_stage:='l_cw_equipment_quantity:'||l_cw_equipment_quantity;
5747: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5748:
5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5751:
5752: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5753: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5754: END IF;

Line 5752: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;

5748:
5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5751:
5752: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5753: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5754: END IF;
5755:
5756:

Line 5753: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5749: pa_debug.g_err_stage:='l_cw_cost:'||l_cw_cost;
5750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5751:
5752: pa_debug.g_err_stage:='l_cw_revenue:'||l_cw_revenue;
5753: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5754: END IF;
5755:
5756:
5757: x_equipment_hours_tbl(i) := l_cw_equipment_quantity;

Line 5765: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Approved';

5761: l_assigned_flag := 'Y';
5762:
5763: ELSIF l_lookup_code_tbl(i) = 80 THEN
5764: IF l_debug_mode = 'Y' THEN
5765: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Approved';
5766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5767: END IF;
5768: OPEN c_change_documents_status(p_project_id,
5769: 'CI_APPROVED',

Line 5766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5762:
5763: ELSIF l_lookup_code_tbl(i) = 80 THEN
5764: IF l_debug_mode = 'Y' THEN
5765: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Approved';
5766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5767: END IF;
5768: OPEN c_change_documents_status(p_project_id,
5769: 'CI_APPROVED',
5770: l_margin_derived_from_code,

Line 5779: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5775: l_cost,
5776: l_revenue;
5777: CLOSE c_change_documents_status;
5778: IF l_debug_mode = 'Y' THEN
5779: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5780: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5781:
5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5780: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5776: l_revenue;
5777: CLOSE c_change_documents_status;
5778: IF l_debug_mode = 'Y' THEN
5779: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5780: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5781:
5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5784:

Line 5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5778: IF l_debug_mode = 'Y' THEN
5779: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5780: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5781:
5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5784:
5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5779: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5780: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5781:
5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5784:
5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5787:

Line 5785: pa_debug.g_err_stage:='l_cost:'||l_cost;

5781:
5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5784:
5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5787:
5788: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5789: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5782: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5783: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5784:
5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5787:
5788: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5789: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5790: END IF;

Line 5788: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5784:
5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5787:
5788: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5789: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5790: END IF;
5791:
5792: ELSIF l_lookup_code_tbl(i) = 90 THEN

Line 5789: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5785: pa_debug.g_err_stage:='l_cost:'||l_cost;
5786: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5787:
5788: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5789: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5790: END IF;
5791:
5792: ELSIF l_lookup_code_tbl(i) = 90 THEN
5793: IF l_debug_mode = 'Y' THEN

Line 5794: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Working';

5790: END IF;
5791:
5792: ELSIF l_lookup_code_tbl(i) = 90 THEN
5793: IF l_debug_mode = 'Y' THEN
5794: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Working';
5795: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5796: END IF;
5797: OPEN c_change_documents_status(p_project_id,
5798: 'CI_WORKING',

Line 5795: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5791:
5792: ELSIF l_lookup_code_tbl(i) = 90 THEN
5793: IF l_debug_mode = 'Y' THEN
5794: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Working';
5795: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5796: END IF;
5797: OPEN c_change_documents_status(p_project_id,
5798: 'CI_WORKING',
5799: l_margin_derived_from_code,

Line 5808: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5804: l_cost,
5805: l_revenue;
5806: CLOSE c_change_documents_status;
5807: IF l_debug_mode = 'Y' THEN
5808: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5809: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5810:
5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5809: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5805: l_revenue;
5806: CLOSE c_change_documents_status;
5807: IF l_debug_mode = 'Y' THEN
5808: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5809: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5810:
5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5813:

Line 5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5807: IF l_debug_mode = 'Y' THEN
5808: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5809: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5810:
5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5813:
5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5808: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5809: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5810:
5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5813:
5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5816:

Line 5814: pa_debug.g_err_stage:='l_cost:'||l_cost;

5810:
5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5813:
5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5816:
5817: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5818: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5811: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5812: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5813:
5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5816:
5817: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5818: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5819: END IF;

Line 5817: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5813:
5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5816:
5817: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5818: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5819: END IF;
5820:
5821: ELSIF l_lookup_code_tbl(i) = 100 THEN

Line 5818: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5814: pa_debug.g_err_stage:='l_cost:'||l_cost;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5816:
5817: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5818: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5819: END IF;
5820:
5821: ELSIF l_lookup_code_tbl(i) = 100 THEN
5822: IF l_debug_mode = 'Y' THEN

Line 5823: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Submitted';

5819: END IF;
5820:
5821: ELSIF l_lookup_code_tbl(i) = 100 THEN
5822: IF l_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Submitted';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5825: END IF;
5826: OPEN c_change_documents_status(p_project_id,
5827: 'CI_SUBMITTED',

Line 5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5820:
5821: ELSIF l_lookup_code_tbl(i) = 100 THEN
5822: IF l_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:='Fetching Data for Change Docs of System Status Submitted';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5825: END IF;
5826: OPEN c_change_documents_status(p_project_id,
5827: 'CI_SUBMITTED',
5828: l_margin_derived_from_code,

Line 5837: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

5833: l_cost,
5834: l_revenue;
5835: CLOSE c_change_documents_status;
5836: IF l_debug_mode = 'Y' THEN
5837: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5838: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5839:
5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5838: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5834: l_revenue;
5835: CLOSE c_change_documents_status;
5836: IF l_debug_mode = 'Y' THEN
5837: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5838: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5839:
5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5842:

Line 5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

5836: IF l_debug_mode = 'Y' THEN
5837: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5838: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5839:
5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5842:
5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5837: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
5838: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5839:
5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5842:
5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5845:

Line 5843: pa_debug.g_err_stage:='l_cost:'||l_cost;

5839:
5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5842:
5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5845:
5846: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5847: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5840: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
5841: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5842:
5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5845:
5846: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5847: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5848: END IF;

Line 5846: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

5842:
5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5845:
5846: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5847: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5848: END IF;
5849:
5850: ELSIF l_lookup_code_tbl(i) = 110 THEN

Line 5847: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5843: pa_debug.g_err_stage:='l_cost:'||l_cost;
5844: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5845:
5846: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
5847: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5848: END IF;
5849:
5850: ELSIF l_lookup_code_tbl(i) = 110 THEN
5851: IF l_debug_mode = 'Y' THEN

Line 5852: pa_debug.g_err_stage:='Fetching Data for Projected Total';

5848: END IF;
5849:
5850: ELSIF l_lookup_code_tbl(i) = 110 THEN
5851: IF l_debug_mode = 'Y' THEN
5852: pa_debug.g_err_stage:='Fetching Data for Projected Total';
5853: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5854: END IF;
5855: x_equipment_hours_tbl(i) := x_equipment_hours_tbl(i-4) +
5856: x_equipment_hours_tbl(i-3) +

Line 5853: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5849:
5850: ELSIF l_lookup_code_tbl(i) = 110 THEN
5851: IF l_debug_mode = 'Y' THEN
5852: pa_debug.g_err_stage:='Fetching Data for Projected Total';
5853: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5854: END IF;
5855: x_equipment_hours_tbl(i) := x_equipment_hours_tbl(i-4) +
5856: x_equipment_hours_tbl(i-3) +
5857: x_equipment_hours_tbl(i-2) +

Line 5887: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';

5883: END LOOP;
5884: END IF;
5885:
5886: IF l_debug_mode = 'Y' THEN
5887: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';
5888: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5889: END IF;
5890:
5891: l_row_count := x_summary_tbl.COUNT;

Line 5888: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

5884: END IF;
5885:
5886: IF l_debug_mode = 'Y' THEN
5887: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';
5888: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
5889: END IF;
5890:
5891: l_row_count := x_summary_tbl.COUNT;
5892: IF l_row_count > 0 THEN

Line 5933: pa_debug.reset_curr_function;

5929: END IF;
5930: END IF; /* COST or REVENUE version */
5931: /* Bug 4038253 :ends */
5932:
5933: pa_debug.reset_curr_function;
5934:
5935: EXCEPTION
5936: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN
5937: IF l_debug_mode = 'Y' THEN

Line 5938: pa_debug.g_err_stage:='Exiting out as there are insufficient Parameters..'||SQLERRM;

5934:
5935: EXCEPTION
5936: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN
5937: IF l_debug_mode = 'Y' THEN
5938: pa_debug.g_err_stage:='Exiting out as there are insufficient Parameters..'||SQLERRM;
5939: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5940: END IF;
5941: pa_debug.reset_curr_function;
5942: RETURN;

Line 5939: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);

5935: EXCEPTION
5936: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN
5937: IF l_debug_mode = 'Y' THEN
5938: pa_debug.g_err_stage:='Exiting out as there are insufficient Parameters..'||SQLERRM;
5939: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5940: END IF;
5941: pa_debug.reset_curr_function;
5942: RETURN;
5943:

Line 5941: pa_debug.reset_curr_function;

5937: IF l_debug_mode = 'Y' THEN
5938: pa_debug.g_err_stage:='Exiting out as there are insufficient Parameters..'||SQLERRM;
5939: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5940: END IF;
5941: pa_debug.reset_curr_function;
5942: RETURN;
5943:
5944: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
5945: l_msg_count := FND_MSG_PUB.count_msg;

Line 5960: pa_debug.reset_curr_function;

5956: ELSE
5957: x_msg_count := l_msg_count;
5958: END IF;
5959: x_return_status := FND_API.G_RET_STS_ERROR;
5960: pa_debug.reset_curr_function;
5961: RETURN;
5962:
5963: WHEN OTHERS THEN
5964: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 5971: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

5967: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS'
5968: ,p_procedure_name => 'get_summary_data');
5969:
5970: IF l_debug_mode = 'Y' THEN
5971: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
5972: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5973: END IF;
5974: pa_debug.reset_curr_function;
5975: RAISE;

Line 5972: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);

5968: ,p_procedure_name => 'get_summary_data');
5969:
5970: IF l_debug_mode = 'Y' THEN
5971: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
5972: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5973: END IF;
5974: pa_debug.reset_curr_function;
5975: RAISE;
5976:

Line 5974: pa_debug.reset_curr_function;

5970: IF l_debug_mode = 'Y' THEN
5971: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
5972: pa_debug.write('get_summary_data: ' || g_module_name,pa_debug.g_err_stage,5);
5973: END IF;
5974: pa_debug.reset_curr_function;
5975: RAISE;
5976:
5977: END get_summary_data;
5978:

Line 6016: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6012: l_partial_quantity PA_BUDGET_VERSIONS.LABOR_QUANTITY%TYPE;
6013: l_labor_quantity PA_BUDGET_VERSIONS.LABOR_QUANTITY%TYPE;
6014: l_appr_rev_cw_version_id PA_BUDGET_VERSIONS.BUDGET_VERSION_ID%TYPE;
6015: BEGIN
6016: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6017: IF l_debug_mode = 'Y' THEN
6018: pa_debug.g_err_stage:='In get_labor_qty_partial - pa_fp_control_items_utils ';
6019: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6020: END IF;

Line 6018: pa_debug.g_err_stage:='In get_labor_qty_partial - pa_fp_control_items_utils ';

6014: l_appr_rev_cw_version_id PA_BUDGET_VERSIONS.BUDGET_VERSION_ID%TYPE;
6015: BEGIN
6016: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6017: IF l_debug_mode = 'Y' THEN
6018: pa_debug.g_err_stage:='In get_labor_qty_partial - pa_fp_control_items_utils ';
6019: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6020: END IF;
6021:
6022: -------------------------------

Line 6019: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6015: BEGIN
6016: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6017: IF l_debug_mode = 'Y' THEN
6018: pa_debug.g_err_stage:='In get_labor_qty_partial - pa_fp_control_items_utils ';
6019: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6020: END IF;
6021:
6022: -------------------------------
6023: -- Fetching source version type

Line 6027: pa_debug.g_err_stage:='fetching source version type';

6023: -- Fetching source version type
6024: -------------------------------
6025: IF p_version_type IS NULL THEN
6026: IF l_debug_mode = 'Y' THEN
6027: pa_debug.g_err_stage:='fetching source version type';
6028: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6029: END IF;
6030: BEGIN
6031: SELECT VERSION_TYPE

Line 6028: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6024: -------------------------------
6025: IF p_version_type IS NULL THEN
6026: IF l_debug_mode = 'Y' THEN
6027: pa_debug.g_err_stage:='fetching source version type';
6028: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6029: END IF;
6030: BEGIN
6031: SELECT VERSION_TYPE
6032: INTO l_source_version_type

Line 6038: pa_debug.g_err_stage:='source version does not exist';

6034: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6035: EXCEPTION
6036: WHEN NO_DATA_FOUND THEN
6037: IF l_debug_mode = 'Y' THEN
6038: pa_debug.g_err_stage:='source version does not exist';
6039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6040: END IF;
6041: RAISE;
6042: END;

Line 6039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6035: EXCEPTION
6036: WHEN NO_DATA_FOUND THEN
6037: IF l_debug_mode = 'Y' THEN
6038: pa_debug.g_err_stage:='source version does not exist';
6039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6040: END IF;
6041: RAISE;
6042: END;
6043: ELSE

Line 6051: pa_debug.g_err_stage:='fetching target version type';

6047: -------------------------------
6048: -- Fetching target version type
6049: -------------------------------
6050: IF l_debug_mode = 'Y' THEN
6051: pa_debug.g_err_stage:='fetching target version type';
6052: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6053: END IF;
6054: BEGIN
6055: SELECT VERSION_TYPE

Line 6052: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6048: -- Fetching target version type
6049: -------------------------------
6050: IF l_debug_mode = 'Y' THEN
6051: pa_debug.g_err_stage:='fetching target version type';
6052: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6053: END IF;
6054: BEGIN
6055: SELECT VERSION_TYPE
6056: INTO l_target_version_type

Line 6062: pa_debug.g_err_stage:='target version does not exist';

6058: WHERE BUDGET_VERSION_ID = p_budget_version_id;
6059: EXCEPTION
6060: WHEN NO_DATA_FOUND THEN
6061: IF l_debug_mode = 'Y' THEN
6062: pa_debug.g_err_stage:='target version does not exist';
6063: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6064: END IF;
6065: RAISE;
6066: END;

Line 6063: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6059: EXCEPTION
6060: WHEN NO_DATA_FOUND THEN
6061: IF l_debug_mode = 'Y' THEN
6062: pa_debug.g_err_stage:='target version does not exist';
6063: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6064: END IF;
6065: RAISE;
6066: END;
6067:

Line 6073: pa_debug.g_err_stage:='Fetching labor quantity';

6069: -- Fetching labor quantity
6070: -----------------------------------
6071: IF p_labor_qty IS NULL THEN
6072: IF l_debug_mode = 'Y' THEN
6073: pa_debug.g_err_stage:='Fetching labor quantity';
6074: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6075: END IF;
6076: BEGIN
6077: SELECT labor_quantity

Line 6074: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6070: -----------------------------------
6071: IF p_labor_qty IS NULL THEN
6072: IF l_debug_mode = 'Y' THEN
6073: pa_debug.g_err_stage:='Fetching labor quantity';
6074: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6075: END IF;
6076: BEGIN
6077: SELECT labor_quantity
6078: INTO l_labor_quantity

Line 6084: pa_debug.g_err_stage:='source version does not exist';

6080: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6081: EXCEPTION
6082: WHEN NO_DATA_FOUND THEN
6083: IF l_debug_mode = 'Y' THEN
6084: pa_debug.g_err_stage:='source version does not exist';
6085: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6086: END IF;
6087: RAISE;
6088: END;

Line 6085: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6081: EXCEPTION
6082: WHEN NO_DATA_FOUND THEN
6083: IF l_debug_mode = 'Y' THEN
6084: pa_debug.g_err_stage:='source version does not exist';
6085: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6086: END IF;
6087: RAISE;
6088: END;
6089: ELSE

Line 6131: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';

6127: ELSIF l_target_version_type = 'REVENUE' -- Raja review OR l_target_version_type = 'ALL'
6128: THEN
6129: BEGIN
6130: IF l_debug_mode = 'Y' THEN
6131: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6132: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6133: END IF;
6134: SELECT 'Y'
6135: INTO l_impl_qty_exists

Line 6132: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6128: THEN
6129: BEGIN
6130: IF l_debug_mode = 'Y' THEN
6131: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6132: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6133: END IF;
6134: SELECT 'Y'
6135: INTO l_impl_qty_exists
6136: FROM DUAL

Line 6174: pa_debug.g_err_stage:='fetching the approved revenue current working version';

6170: ----------------------------------------------------------------
6171: -- Fetching the approved revenue current working budget version
6172: ----------------------------------------------------------------
6173: IF l_debug_mode = 'Y' THEN
6174: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6175: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6176: END IF;
6177: BEGIN
6178: SELECT A.BUDGET_VERSION_ID

Line 6175: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6171: -- Fetching the approved revenue current working budget version
6172: ----------------------------------------------------------------
6173: IF l_debug_mode = 'Y' THEN
6174: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6175: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6176: END IF;
6177: BEGIN
6178: SELECT A.BUDGET_VERSION_ID
6179: INTO l_appr_rev_cw_version_id

Line 6243: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';

6239:
6240: /*
6241: BEGIN
6242: IF l_debug_mode = 'Y' THEN
6243: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6245: END IF;
6246: SELECT 'Y'
6247: INTO l_impl_qty_exists

Line 6244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6240: /*
6241: BEGIN
6242: IF l_debug_mode = 'Y' THEN
6243: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6244: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6245: END IF;
6246: SELECT 'Y'
6247: INTO l_impl_qty_exists
6248: FROM DUAL

Line 6326: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6322: l_partial_quantity PA_BUDGET_VERSIONS.EQUIPMENT_QUANTITY%TYPE;
6323: l_equip_quantity PA_BUDGET_VERSIONS.EQUIPMENT_QUANTITY%TYPE;
6324: l_appr_rev_cw_version_id PA_BUDGET_VERSIONS.BUDGET_VERSION_ID%TYPE;
6325: BEGIN
6326: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6327: IF l_debug_mode = 'Y' THEN
6328: pa_debug.g_err_stage:='In get_equip_qty_partial - pa_fp_control_items_utils ';
6329: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6330: END IF;

Line 6328: pa_debug.g_err_stage:='In get_equip_qty_partial - pa_fp_control_items_utils ';

6324: l_appr_rev_cw_version_id PA_BUDGET_VERSIONS.BUDGET_VERSION_ID%TYPE;
6325: BEGIN
6326: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6327: IF l_debug_mode = 'Y' THEN
6328: pa_debug.g_err_stage:='In get_equip_qty_partial - pa_fp_control_items_utils ';
6329: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6330: END IF;
6331:
6332: -------------------------------

Line 6329: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6325: BEGIN
6326: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6327: IF l_debug_mode = 'Y' THEN
6328: pa_debug.g_err_stage:='In get_equip_qty_partial - pa_fp_control_items_utils ';
6329: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6330: END IF;
6331:
6332: -------------------------------
6333: -- Fetching source version type

Line 6337: pa_debug.g_err_stage:='fetching source version type';

6333: -- Fetching source version type
6334: -------------------------------
6335: IF p_version_type IS NULL THEN
6336: IF l_debug_mode = 'Y' THEN
6337: pa_debug.g_err_stage:='fetching source version type';
6338: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6339: END IF;
6340: BEGIN
6341: SELECT VERSION_TYPE

Line 6338: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6334: -------------------------------
6335: IF p_version_type IS NULL THEN
6336: IF l_debug_mode = 'Y' THEN
6337: pa_debug.g_err_stage:='fetching source version type';
6338: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6339: END IF;
6340: BEGIN
6341: SELECT VERSION_TYPE
6342: INTO l_source_version_type

Line 6348: pa_debug.g_err_stage:='source version does not exist';

6344: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6345: EXCEPTION
6346: WHEN NO_DATA_FOUND THEN
6347: IF l_debug_mode = 'Y' THEN
6348: pa_debug.g_err_stage:='source version does not exist';
6349: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6350: END IF;
6351: RAISE;
6352: END;

Line 6349: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6345: EXCEPTION
6346: WHEN NO_DATA_FOUND THEN
6347: IF l_debug_mode = 'Y' THEN
6348: pa_debug.g_err_stage:='source version does not exist';
6349: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6350: END IF;
6351: RAISE;
6352: END;
6353: ELSE

Line 6361: pa_debug.g_err_stage:='fetching target version type';

6357: -------------------------------
6358: -- Fetching target version type
6359: -------------------------------
6360: IF l_debug_mode = 'Y' THEN
6361: pa_debug.g_err_stage:='fetching target version type';
6362: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6363: END IF;
6364: BEGIN
6365: SELECT VERSION_TYPE

Line 6362: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6358: -- Fetching target version type
6359: -------------------------------
6360: IF l_debug_mode = 'Y' THEN
6361: pa_debug.g_err_stage:='fetching target version type';
6362: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6363: END IF;
6364: BEGIN
6365: SELECT VERSION_TYPE
6366: INTO l_target_version_type

Line 6372: pa_debug.g_err_stage:='target version does not exist';

6368: WHERE BUDGET_VERSION_ID = p_budget_version_id;
6369: EXCEPTION
6370: WHEN NO_DATA_FOUND THEN
6371: IF l_debug_mode = 'Y' THEN
6372: pa_debug.g_err_stage:='target version does not exist';
6373: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6374: END IF;
6375: RAISE;
6376: END;

Line 6373: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6369: EXCEPTION
6370: WHEN NO_DATA_FOUND THEN
6371: IF l_debug_mode = 'Y' THEN
6372: pa_debug.g_err_stage:='target version does not exist';
6373: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6374: END IF;
6375: RAISE;
6376: END;
6377:

Line 6383: pa_debug.g_err_stage:='Fetching equipment quantity';

6379: -- Fetching equipment quantity
6380: -----------------------------------
6381: IF p_equip_qty IS NULL THEN
6382: IF l_debug_mode = 'Y' THEN
6383: pa_debug.g_err_stage:='Fetching equipment quantity';
6384: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6385: END IF;
6386: BEGIN
6387: SELECT EQUIPMENT_QUANTITY

Line 6384: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6380: -----------------------------------
6381: IF p_equip_qty IS NULL THEN
6382: IF l_debug_mode = 'Y' THEN
6383: pa_debug.g_err_stage:='Fetching equipment quantity';
6384: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6385: END IF;
6386: BEGIN
6387: SELECT EQUIPMENT_QUANTITY
6388: INTO l_equip_quantity

Line 6394: pa_debug.g_err_stage:='source version does not exist';

6390: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6391: EXCEPTION
6392: WHEN NO_DATA_FOUND THEN
6393: IF l_debug_mode = 'Y' THEN
6394: pa_debug.g_err_stage:='source version does not exist';
6395: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6396: END IF;
6397: RAISE;
6398: END;

Line 6395: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6391: EXCEPTION
6392: WHEN NO_DATA_FOUND THEN
6393: IF l_debug_mode = 'Y' THEN
6394: pa_debug.g_err_stage:='source version does not exist';
6395: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6396: END IF;
6397: RAISE;
6398: END;
6399: ELSE

Line 6440: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';

6436: ELSIF l_target_version_type = 'REVENUE' -- Raja review OR l_target_version_type = 'ALL'
6437: THEN
6438: BEGIN
6439: IF l_debug_mode = 'Y' THEN
6440: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6441: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6442: END IF;
6443: SELECT 'Y'
6444: INTO l_impl_qty_exists

Line 6441: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6437: THEN
6438: BEGIN
6439: IF l_debug_mode = 'Y' THEN
6440: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6441: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6442: END IF;
6443: SELECT 'Y'
6444: INTO l_impl_qty_exists
6445: FROM DUAL

Line 6483: pa_debug.g_err_stage:='fetching the approved revenue current working version';

6479: ----------------------------------------------------------------
6480: -- Fetching the approved revenue currenct working budget version
6481: ----------------------------------------------------------------
6482: IF l_debug_mode = 'Y' THEN
6483: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6484: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6485: END IF;
6486:
6487: BEGIN

Line 6484: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6480: -- Fetching the approved revenue currenct working budget version
6481: ----------------------------------------------------------------
6482: IF l_debug_mode = 'Y' THEN
6483: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6484: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6485: END IF;
6486:
6487: BEGIN
6488: SELECT A.BUDGET_VERSION_ID

Line 6552: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';

6548:
6549: /*
6550: BEGIN
6551: IF l_debug_mode = 'Y' THEN
6552: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6553: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6554: END IF;
6555: SELECT 'Y'
6556: INTO l_impl_qty_exists

Line 6553: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6549: /*
6550: BEGIN
6551: IF l_debug_mode = 'Y' THEN
6552: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6553: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6554: END IF;
6555: SELECT 'Y'
6556: INTO l_impl_qty_exists
6557: FROM DUAL

Line 6634: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6630: l_budget_version_type pa_budget_versions.version_type%TYPE;
6631: l_version_type pa_budget_versions.version_type%TYPE;
6632: BEGIN
6633:
6634: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6635:
6636: IF l_debug_mode = 'Y' THEN
6637: pa_debug.g_err_stage:='In get_pc_revenue_partial - pa_fp_control_items_utils ';
6638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 6637: pa_debug.g_err_stage:='In get_pc_revenue_partial - pa_fp_control_items_utils ';

6633:
6634: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6635:
6636: IF l_debug_mode = 'Y' THEN
6637: pa_debug.g_err_stage:='In get_pc_revenue_partial - pa_fp_control_items_utils ';
6638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6639: END IF;
6640:
6641: ----------------------------------------------------------------

Line 6638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6634: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6635:
6636: IF l_debug_mode = 'Y' THEN
6637: pa_debug.g_err_stage:='In get_pc_revenue_partial - pa_fp_control_items_utils ';
6638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6639: END IF;
6640:
6641: ----------------------------------------------------------------
6642: -- Return 0 if p_pt_ct_version_type is 'COST'

Line 6657: pa_debug.g_err_stage:='In get_pc_revenue_partial - no budget version';

6653: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6654: EXCEPTION
6655: WHEN NO_DATA_FOUND THEN
6656: IF l_debug_mode = 'Y' THEN
6657: pa_debug.g_err_stage:='In get_pc_revenue_partial - no budget version';
6658: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6659: END IF;
6660: RAISE;
6661: END;

Line 6658: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6654: EXCEPTION
6655: WHEN NO_DATA_FOUND THEN
6656: IF l_debug_mode = 'Y' THEN
6657: pa_debug.g_err_stage:='In get_pc_revenue_partial - no budget version';
6658: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6659: END IF;
6660: RAISE;
6661: END;
6662: ELSE

Line 6668: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';

6664: END IF;
6665:
6666: BEGIN
6667: IF l_debug_mode = 'Y' THEN
6668: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6669: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6670: END IF;
6671: SELECT 'Y'
6672: INTO l_exists

Line 6669: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6665:
6666: BEGIN
6667: IF l_debug_mode = 'Y' THEN
6668: pa_debug.g_err_stage:='Check if record exits in pa_fp_merged_ctl_items';
6669: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6670: END IF;
6671: SELECT 'Y'
6672: INTO l_exists
6673: FROM DUAL

Line 6696: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of source';

6692: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6693: EXCEPTION
6694: WHEN NO_DATA_FOUND THEN
6695: IF l_debug_mode = 'Y' THEN
6696: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of source';
6697: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6698: END IF;
6699: RAISE;
6700: END;

Line 6697: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6693: EXCEPTION
6694: WHEN NO_DATA_FOUND THEN
6695: IF l_debug_mode = 'Y' THEN
6696: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of source';
6697: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6698: END IF;
6699: RAISE;
6700: END;
6701: ELSE

Line 6716: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of target';

6712: WHERE BUDGET_VERSION_ID = p_budget_version_id;
6713: EXCEPTION
6714: WHEN NO_DATA_FOUND THEN
6715: IF l_debug_mode = 'Y' THEN
6716: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of target';
6717: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6718: END IF;
6719: RAISE;
6720: END;

Line 6717: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6713: EXCEPTION
6714: WHEN NO_DATA_FOUND THEN
6715: IF l_debug_mode = 'Y' THEN
6716: pa_debug.g_err_stage:='In get_pc_revenue_partial - no version type of target';
6717: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6718: END IF;
6719: RAISE;
6720: END;
6721:

Line 6759: pa_debug.g_err_stage:='fetching the approved revenue current working version';

6755: ----------------------------------------------------------------
6756: -- Fetching the approved revenue budget currenct working version
6757: ----------------------------------------------------------------
6758: IF l_debug_mode = 'Y' THEN
6759: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6760: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6761: END IF;
6762:
6763: BEGIN

Line 6760: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6756: -- Fetching the approved revenue budget currenct working version
6757: ----------------------------------------------------------------
6758: IF l_debug_mode = 'Y' THEN
6759: pa_debug.g_err_stage:='fetching the approved revenue current working version';
6760: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6761: END IF;
6762:
6763: BEGIN
6764: SELECT A.BUDGET_VERSION_ID

Line 6832: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6828: l_cost pa_budget_versions.total_project_raw_cost%TYPE;
6829:
6830: BEGIN
6831:
6832: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6833:
6834: IF l_debug_mode = 'Y' THEN
6835: pa_debug.g_err_stage:='In get_pc_cost - pa_fp_control_items_utils ';
6836: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 6835: pa_debug.g_err_stage:='In get_pc_cost - pa_fp_control_items_utils ';

6831:
6832: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6833:
6834: IF l_debug_mode = 'Y' THEN
6835: pa_debug.g_err_stage:='In get_pc_cost - pa_fp_control_items_utils ';
6836: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6837: END IF;
6838:
6839: ----------------------------------------------------------------

Line 6836: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6832: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6833:
6834: IF l_debug_mode = 'Y' THEN
6835: pa_debug.g_err_stage:='In get_pc_cost - pa_fp_control_items_utils ';
6836: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6837: END IF;
6838:
6839: ----------------------------------------------------------------
6840: -- Return 0 if p_pt_ct_version_type is 'REVENUE'

Line 6871: pa_debug.g_err_stage:='In get_pc_cost - no version type of source';

6867: WHERE BUDGET_VERSION_ID = p_ci_version_id;
6868: EXCEPTION
6869: WHEN NO_DATA_FOUND THEN
6870: IF l_debug_mode = 'Y' THEN
6871: pa_debug.g_err_stage:='In get_pc_cost - no version type of source';
6872: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6873: END IF;
6874: RAISE;
6875: END;

Line 6872: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6868: EXCEPTION
6869: WHEN NO_DATA_FOUND THEN
6870: IF l_debug_mode = 'Y' THEN
6871: pa_debug.g_err_stage:='In get_pc_cost - no version type of source';
6872: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6873: END IF;
6874: RAISE;
6875: END;
6876: ELSE

Line 6891: pa_debug.g_err_stage:='In get_pc_cost - no version type of target';

6887: WHERE BUDGET_VERSION_ID = p_budget_version_id;
6888: EXCEPTION
6889: WHEN NO_DATA_FOUND THEN
6890: IF l_debug_mode = 'Y' THEN
6891: pa_debug.g_err_stage:='In get_pc_cost - no version type of target';
6892: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6893: END IF;
6894: RAISE;
6895: END;

Line 6892: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6888: EXCEPTION
6889: WHEN NO_DATA_FOUND THEN
6890: IF l_debug_mode = 'Y' THEN
6891: pa_debug.g_err_stage:='In get_pc_cost - no version type of target';
6892: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6893: END IF;
6894: RAISE;
6895: END;
6896:

Line 6930: pa_debug.g_err_stage:='In get_pc_cost - couldnt get raw or burdened cost';

6926:
6927: EXCEPTION
6928: WHEN NO_DATA_FOUND THEN
6929: IF l_debug_mode = 'Y' THEN
6930: pa_debug.g_err_stage:='In get_pc_cost - couldnt get raw or burdened cost';
6931: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6932: END IF;
6933: RAISE;
6934: END;

Line 6931: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6927: EXCEPTION
6928: WHEN NO_DATA_FOUND THEN
6929: IF l_debug_mode = 'Y' THEN
6930: pa_debug.g_err_stage:='In get_pc_cost - couldnt get raw or burdened cost';
6931: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6932: END IF;
6933: RAISE;
6934: END;
6935: END IF;

Line 6953: pa_debug.g_err_stage:='In get_pc_cost - NO_DATA_FOUND ';

6949: EXCEPTION
6950: WHEN NO_DATA_FOUND THEN
6951: l_return_cost := 0;
6952: IF l_debug_mode = 'Y' THEN
6953: pa_debug.g_err_stage:='In get_pc_cost - NO_DATA_FOUND ';
6954: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6955: END IF;
6956: END;
6957:

Line 6954: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6950: WHEN NO_DATA_FOUND THEN
6951: l_return_cost := 0;
6952: IF l_debug_mode = 'Y' THEN
6953: pa_debug.g_err_stage:='In get_pc_cost - NO_DATA_FOUND ';
6954: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6955: END IF;
6956: END;
6957:
6958: ELSIF l_version_type = 'REVENUE' THEN

Line 6963: pa_debug.g_err_stage:='In get_pc_cost - l_return_cost ' || l_return_cost;

6959: l_return_cost := 0;
6960: END IF;
6961:
6962: IF l_debug_mode = 'Y' THEN
6963: pa_debug.g_err_stage:='In get_pc_cost - l_return_cost ' || l_return_cost;
6964: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6965: END IF;
6966:
6967: return l_return_cost;

Line 6964: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

6960: END IF;
6961:
6962: IF l_debug_mode = 'Y' THEN
6963: pa_debug.g_err_stage:='In get_pc_cost - l_return_cost ' || l_return_cost;
6964: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
6965: END IF;
6966:
6967: return l_return_cost;
6968: END get_pc_cost;

Line 7082: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

7078: and merge2.project_id = c_project_id)));
7079:
7080: BEGIN
7081:
7082: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7083: x_msg_count := 0;
7084: x_return_status := FND_API.G_RET_STS_SUCCESS;
7085: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7086: p_debug_mode => l_debug_mode );

Line 7085: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

7081:
7082: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7083: x_msg_count := 0;
7084: x_return_status := FND_API.G_RET_STS_SUCCESS;
7085: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7086: p_debug_mode => l_debug_mode );
7087:
7088:
7089: -----------------------------------------------------------------------------

Line 7094: pa_debug.g_err_stage:='Validating input parameters - project id and budget version id: ' || p_project_id;

7090: -- Validate Input Params, p_project_id and p_budget_version_id cannot be null
7091: -----------------------------------------------------------------------------
7092:
7093: IF l_debug_mode = 'Y' THEN
7094: pa_debug.g_err_stage:='Validating input parameters - project id and budget version id: ' || p_project_id;
7095: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7096: END IF;
7097:
7098: IF (p_project_id IS NULL) THEN

Line 7095: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7091: -----------------------------------------------------------------------------
7092:
7093: IF l_debug_mode = 'Y' THEN
7094: pa_debug.g_err_stage:='Validating input parameters - project id and budget version id: ' || p_project_id;
7095: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7096: END IF;
7097:
7098: IF (p_project_id IS NULL) THEN
7099: IF l_debug_mode = 'Y' THEN

Line 7100: pa_debug.g_err_stage:='p_project_id is null';

7096: END IF;
7097:
7098: IF (p_project_id IS NULL) THEN
7099: IF l_debug_mode = 'Y' THEN
7100: pa_debug.g_err_stage:='p_project_id is null';
7101: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7102: END IF;
7103: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7104: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7101: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7097:
7098: IF (p_project_id IS NULL) THEN
7099: IF l_debug_mode = 'Y' THEN
7100: pa_debug.g_err_stage:='p_project_id is null';
7101: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7102: END IF;
7103: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7104: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
7105: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7109: pa_debug.g_err_stage:='p_project_id; '||p_project_id;

7105: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7106: END IF;
7107:
7108: IF l_debug_mode = 'Y' THEN
7109: pa_debug.g_err_stage:='p_project_id; '||p_project_id;
7110: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7111: END IF;
7112:
7113: IF (p_budget_version_id IS NULL) THEN

Line 7110: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7106: END IF;
7107:
7108: IF l_debug_mode = 'Y' THEN
7109: pa_debug.g_err_stage:='p_project_id; '||p_project_id;
7110: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7111: END IF;
7112:
7113: IF (p_budget_version_id IS NULL) THEN
7114: IF l_debug_mode = 'Y' THEN

Line 7115: pa_debug.g_err_stage:='p_budget_version_id is null';

7111: END IF;
7112:
7113: IF (p_budget_version_id IS NULL) THEN
7114: IF l_debug_mode = 'Y' THEN
7115: pa_debug.g_err_stage:='p_budget_version_id is null';
7116: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7117: END IF;
7118: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7119: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7116: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7112:
7113: IF (p_budget_version_id IS NULL) THEN
7114: IF l_debug_mode = 'Y' THEN
7115: pa_debug.g_err_stage:='p_budget_version_id is null';
7116: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7117: END IF;
7118: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7119: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
7120: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7124: pa_debug.g_err_stage:='p_budget_version_id; '||p_budget_version_id;

7120: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7121: END IF;
7122:
7123: IF l_debug_mode = 'Y' THEN
7124: pa_debug.g_err_stage:='p_budget_version_id; '||p_budget_version_id;
7125: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7126: END IF;
7127:
7128: ---------------------------------------------------------

Line 7125: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7121: END IF;
7122:
7123: IF l_debug_mode = 'Y' THEN
7124: pa_debug.g_err_stage:='p_budget_version_id; '||p_budget_version_id;
7125: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7126: END IF;
7127:
7128: ---------------------------------------------------------
7129: -- Derive version type and fin_plan_type_id if not passed

Line 7134: pa_debug.g_err_stage:='fetching version type';

7130: ---------------------------------------------------------
7131: IF p_version_type is NULL THEN
7132:
7133: IF l_debug_mode = 'Y' THEN
7134: pa_debug.g_err_stage:='fetching version type';
7135: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7136: END IF;
7137:
7138: BEGIN

Line 7135: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7131: IF p_version_type is NULL THEN
7132:
7133: IF l_debug_mode = 'Y' THEN
7134: pa_debug.g_err_stage:='fetching version type';
7135: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7136: END IF;
7137:
7138: BEGIN
7139: Select version_type

Line 7145: pa_debug.g_err_stage:='l_version_type; '||l_version_type;

7141: from pa_budget_versions
7142: where budget_version_id = p_budget_version_id;
7143:
7144: IF l_debug_mode = 'Y' THEN
7145: pa_debug.g_err_stage:='l_version_type; '||l_version_type;
7146: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7147: END IF;
7148:
7149: EXCEPTION

Line 7146: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7142: where budget_version_id = p_budget_version_id;
7143:
7144: IF l_debug_mode = 'Y' THEN
7145: pa_debug.g_err_stage:='l_version_type; '||l_version_type;
7146: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7147: END IF;
7148:
7149: EXCEPTION
7150: WHEN NO_DATA_FOUND THEN

Line 7152: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching version type';

7148:
7149: EXCEPTION
7150: WHEN NO_DATA_FOUND THEN
7151: IF l_debug_mode = 'Y' THEN
7152: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching version type';
7153: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7154: END IF;
7155: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7156: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7153: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7149: EXCEPTION
7150: WHEN NO_DATA_FOUND THEN
7151: IF l_debug_mode = 'Y' THEN
7152: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching version type';
7153: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7154: END IF;
7155: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7156: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
7157: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7167: pa_debug.g_err_stage:='fetching fin plan type id';

7163:
7164: IF p_fin_plan_type_id is NULL THEN
7165:
7166: IF l_debug_mode = 'Y' THEN
7167: pa_debug.g_err_stage:='fetching fin plan type id';
7168: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7169: END IF;
7170:
7171: BEGIN

Line 7168: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7164: IF p_fin_plan_type_id is NULL THEN
7165:
7166: IF l_debug_mode = 'Y' THEN
7167: pa_debug.g_err_stage:='fetching fin plan type id';
7168: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7169: END IF;
7170:
7171: BEGIN
7172: Select fin_plan_type_id

Line 7178: pa_debug.g_err_stage:='l_fin_plan_type_id; '||l_fin_plan_type_id;

7174: from pa_budget_versions
7175: where budget_version_id = p_budget_version_id;
7176:
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:='l_fin_plan_type_id; '||l_fin_plan_type_id;
7179: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7180: END IF;
7181:
7182: EXCEPTION

Line 7179: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7175: where budget_version_id = p_budget_version_id;
7176:
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:='l_fin_plan_type_id; '||l_fin_plan_type_id;
7179: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7180: END IF;
7181:
7182: EXCEPTION
7183: WHEN NO_DATA_FOUND THEN

Line 7185: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching fin plan type id';

7181:
7182: EXCEPTION
7183: WHEN NO_DATA_FOUND THEN
7184: IF l_debug_mode = 'Y' THEN
7185: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching fin plan type id';
7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7187: END IF;
7188: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7189: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7182: EXCEPTION
7183: WHEN NO_DATA_FOUND THEN
7184: IF l_debug_mode = 'Y' THEN
7185: pa_debug.g_err_stage:='p_budget_version_id is invalid - fetching fin plan type id';
7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7187: END IF;
7188: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
7189: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
7190: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7202: pa_debug.g_err_stage:='Initialising all tables to empty tables.';

7198: -------------------------------------------
7199: -- Initialising all tables to empty tables.
7200: -------------------------------------------
7201: IF l_debug_mode = 'Y' THEN
7202: pa_debug.g_err_stage:='Initialising all tables to empty tables.';
7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7204: END IF;
7205: x_summary_tbl := SYSTEM.PA_VARCHAR2_150_TBL_TYPE();
7206: x_equipment_hours_tbl := SYSTEM.pa_num_tbl_type();

Line 7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7199: -- Initialising all tables to empty tables.
7200: -------------------------------------------
7201: IF l_debug_mode = 'Y' THEN
7202: pa_debug.g_err_stage:='Initialising all tables to empty tables.';
7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7204: END IF;
7205: x_summary_tbl := SYSTEM.PA_VARCHAR2_150_TBL_TYPE();
7206: x_equipment_hours_tbl := SYSTEM.pa_num_tbl_type();
7207: x_labor_hours_tbl := SYSTEM.pa_num_tbl_type();

Line 7218: pa_debug.g_err_stage:='Fetching lookup data' || p_project_id;

7214: ----------------------------------------------------
7215: -- Fetch Lookup_code ,summary and reference details.
7216: ----------------------------------------------------
7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:='Fetching lookup data' || p_project_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7220: END IF;
7221:
7222: OPEN c_lookup_summary;

Line 7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7215: -- Fetch Lookup_code ,summary and reference details.
7216: ----------------------------------------------------
7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:='Fetching lookup data' || p_project_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7220: END IF;
7221:
7222: OPEN c_lookup_summary;
7223: FETCH c_lookup_summary BULK COLLECT INTO x_summary_tbl,l_lookup_code_tbl;

Line 7258: pa_debug.g_err_stage:='Fetching Data for Approved Change Documents';

7254: x_revenue_tbl.extend(1);
7255:
7256: IF l_lookup_code_tbl(i) = 10 THEN
7257: IF l_debug_mode = 'Y' THEN
7258: pa_debug.g_err_stage:='Fetching Data for Approved Change Documents';
7259: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7260: END IF;
7261: OPEN c_change_documents_status('CI_APPROVED',
7262: p_budget_version_id,

Line 7259: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7255:
7256: IF l_lookup_code_tbl(i) = 10 THEN
7257: IF l_debug_mode = 'Y' THEN
7258: pa_debug.g_err_stage:='Fetching Data for Approved Change Documents';
7259: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7260: END IF;
7261: OPEN c_change_documents_status('CI_APPROVED',
7262: p_budget_version_id,
7263: p_project_id ,

Line 7272: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

7268: l_cost,
7269: l_revenue;
7270: CLOSE c_change_documents_status;
7271: IF l_debug_mode = 'Y' THEN
7272: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7273: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7274:
7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7273: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7269: l_revenue;
7270: CLOSE c_change_documents_status;
7271: IF l_debug_mode = 'Y' THEN
7272: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7273: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7274:
7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7277:

Line 7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

7271: IF l_debug_mode = 'Y' THEN
7272: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7273: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7274:
7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7277:
7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7272: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7273: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7274:
7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7277:
7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7280:

Line 7278: pa_debug.g_err_stage:='l_cost:'||l_cost;

7274:
7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7277:
7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7280:
7281: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7282: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7275: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7276: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7277:
7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7280:
7281: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7282: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7283: END IF;

Line 7281: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

7277:
7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7280:
7281: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7282: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7283: END IF;
7284:
7285: ELSIF l_lookup_code_tbl(i) = 20 THEN

Line 7282: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7278: pa_debug.g_err_stage:='l_cost:'||l_cost;
7279: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7280:
7281: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7282: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7283: END IF;
7284:
7285: ELSIF l_lookup_code_tbl(i) = 20 THEN
7286: IF l_debug_mode = 'Y' THEN

Line 7287: pa_debug.g_err_stage:='Fetching Data for Working Change Documents';

7283: END IF;
7284:
7285: ELSIF l_lookup_code_tbl(i) = 20 THEN
7286: IF l_debug_mode = 'Y' THEN
7287: pa_debug.g_err_stage:='Fetching Data for Working Change Documents';
7288: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7289: END IF;
7290: OPEN c_change_documents_status('CI_WORKING',
7291: p_budget_version_id,

Line 7288: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7284:
7285: ELSIF l_lookup_code_tbl(i) = 20 THEN
7286: IF l_debug_mode = 'Y' THEN
7287: pa_debug.g_err_stage:='Fetching Data for Working Change Documents';
7288: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7289: END IF;
7290: OPEN c_change_documents_status('CI_WORKING',
7291: p_budget_version_id,
7292: p_project_id ,

Line 7301: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

7297: l_cost,
7298: l_revenue;
7299: CLOSE c_change_documents_status;
7300: IF l_debug_mode = 'Y' THEN
7301: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7302: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7303:
7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7302: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7298: l_revenue;
7299: CLOSE c_change_documents_status;
7300: IF l_debug_mode = 'Y' THEN
7301: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7302: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7303:
7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7306:

Line 7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

7300: IF l_debug_mode = 'Y' THEN
7301: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7302: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7303:
7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7306:
7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7301: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7302: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7303:
7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7306:
7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7309:

Line 7307: pa_debug.g_err_stage:='l_cost:'||l_cost;

7303:
7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7306:
7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7309:
7310: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7304: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7305: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7306:
7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7309:
7310: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7312: END IF;

Line 7310: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

7306:
7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7309:
7310: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7312: END IF;
7313:
7314: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for COs included into asdfsd prior versions */

Line 7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7307: pa_debug.g_err_stage:='l_cost:'||l_cost;
7308: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7309:
7310: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7312: END IF;
7313:
7314: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for COs included into asdfsd prior versions */
7315: IF l_debug_mode = 'Y' THEN

Line 7316: pa_debug.g_err_stage:='Fetching Data for Submitted Change Documents';

7312: END IF;
7313:
7314: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for COs included into asdfsd prior versions */
7315: IF l_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:='Fetching Data for Submitted Change Documents';
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7318: END IF;
7319: OPEN c_change_documents_status('CI_SUBMITTED',
7320: p_budget_version_id,

Line 7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7313:
7314: ELSIF l_lookup_code_tbl(i) = 30 THEN /* fetching data for COs included into asdfsd prior versions */
7315: IF l_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:='Fetching Data for Submitted Change Documents';
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7318: END IF;
7319: OPEN c_change_documents_status('CI_SUBMITTED',
7320: p_budget_version_id,
7321: p_project_id ,

Line 7330: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

7326: l_cost,
7327: l_revenue;
7328: CLOSE c_change_documents_status;
7329: IF l_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7332:
7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7327: l_revenue;
7328: CLOSE c_change_documents_status;
7329: IF l_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7332:
7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7335:

Line 7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

7329: IF l_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7332:
7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7335:
7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7330: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7332:
7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7335:
7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7338:

Line 7336: pa_debug.g_err_stage:='l_cost:'||l_cost;

7332:
7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7335:
7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7338:
7339: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7340: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7333: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7334: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7335:
7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7338:
7339: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7340: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7341: END IF;

Line 7339: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

7335:
7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7338:
7339: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7340: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7341: END IF;
7342:
7343: ELSIF l_lookup_code_tbl(i) = 40 THEN

Line 7340: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7336: pa_debug.g_err_stage:='l_cost:'||l_cost;
7337: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7338:
7339: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7340: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7341: END IF;
7342:
7343: ELSIF l_lookup_code_tbl(i) = 40 THEN
7344: IF l_debug_mode = 'Y' THEN

Line 7345: pa_debug.g_err_stage:='Fetching Data for Rejected Change Documents';

7341: END IF;
7342:
7343: ELSIF l_lookup_code_tbl(i) = 40 THEN
7344: IF l_debug_mode = 'Y' THEN
7345: pa_debug.g_err_stage:='Fetching Data for Rejected Change Documents';
7346: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7347: END IF;
7348: OPEN c_change_documents_status('CI_REJECTED',
7349: p_budget_version_id,

Line 7346: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7342:
7343: ELSIF l_lookup_code_tbl(i) = 40 THEN
7344: IF l_debug_mode = 'Y' THEN
7345: pa_debug.g_err_stage:='Fetching Data for Rejected Change Documents';
7346: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7347: END IF;
7348: OPEN c_change_documents_status('CI_REJECTED',
7349: p_budget_version_id,
7350: p_project_id ,

Line 7359: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;

7355: l_cost,
7356: l_revenue;
7357: CLOSE c_change_documents_status;
7358: IF l_debug_mode = 'Y' THEN
7359: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7360: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7361:
7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7360: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7356: l_revenue;
7357: CLOSE c_change_documents_status;
7358: IF l_debug_mode = 'Y' THEN
7359: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7360: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7361:
7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7364:

Line 7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;

7358: IF l_debug_mode = 'Y' THEN
7359: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7360: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7361:
7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7364:
7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7359: pa_debug.g_err_stage:='l_labor_quantity:'||l_labor_quantity;
7360: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7361:
7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7364:
7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7367:

Line 7365: pa_debug.g_err_stage:='l_cost:'||l_cost;

7361:
7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7364:
7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7367:
7368: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7369: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7362: pa_debug.g_err_stage:='l_equipment_quantity:'||l_equipment_quantity;
7363: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7364:
7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7367:
7368: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7369: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7370: END IF;

Line 7368: pa_debug.g_err_stage:='l_revenue:'||l_revenue;

7364:
7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7367:
7368: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7369: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7370: END IF;
7371:
7372: ELSIF l_lookup_code_tbl(i) = 50 THEN

Line 7369: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7365: pa_debug.g_err_stage:='l_cost:'||l_cost;
7366: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7367:
7368: pa_debug.g_err_stage:='l_revenue:'||l_revenue;
7369: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7370: END IF;
7371:
7372: ELSIF l_lookup_code_tbl(i) = 50 THEN
7373: IF l_debug_mode = 'Y' THEN

Line 7374: pa_debug.g_err_stage:='Deriving Data for Total Change Documents';

7370: END IF;
7371:
7372: ELSIF l_lookup_code_tbl(i) = 50 THEN
7373: IF l_debug_mode = 'Y' THEN
7374: pa_debug.g_err_stage:='Deriving Data for Total Change Documents';
7375: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7376: END IF;
7377: x_equipment_hours_tbl(i) := x_equipment_hours_tbl(i-1) +
7378: x_equipment_hours_tbl(i-2) +

Line 7375: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7371:
7372: ELSIF l_lookup_code_tbl(i) = 50 THEN
7373: IF l_debug_mode = 'Y' THEN
7374: pa_debug.g_err_stage:='Deriving Data for Total Change Documents';
7375: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7376: END IF;
7377: x_equipment_hours_tbl(i) := x_equipment_hours_tbl(i-1) +
7378: x_equipment_hours_tbl(i-2) +
7379: x_equipment_hours_tbl(i-3) +

Line 7408: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';

7404:
7405: END LOOP;
7406:
7407: IF l_debug_mode = 'Y' THEN
7408: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';
7409: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7410: END IF;
7411:
7412: l_row_count := x_summary_tbl.COUNT;

Line 7409: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7405: END LOOP;
7406:
7407: IF l_debug_mode = 'Y' THEN
7408: pa_debug.g_err_stage:='Deriving Margin and Margin Percent';
7409: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7410: END IF;
7411:
7412: l_row_count := x_summary_tbl.COUNT;
7413: IF l_row_count > 0 THEN

Line 7426: pa_debug.reset_curr_function;

7422: END IF;
7423: END LOOP;
7424: END IF;
7425:
7426: pa_debug.reset_curr_function;
7427:
7428: EXCEPTION
7429: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
7430: l_msg_count := FND_MSG_PUB.count_msg;

Line 7445: pa_debug.reset_curr_function;

7441: ELSE
7442: x_msg_count := l_msg_count;
7443: END IF;
7444: x_return_status := FND_API.G_RET_STS_ERROR;
7445: pa_debug.reset_curr_function;
7446: RETURN;
7447:
7448: WHEN OTHERS THEN
7449: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 7456: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

7452: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FP_CONTROL_ITEMS_UTILS'
7453: ,p_procedure_name => 'get_not_included');
7454:
7455: IF l_debug_mode = 'Y' THEN
7456: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7457: pa_debug.write('get_not_included: ' || g_module_name,pa_debug.g_err_stage,5);
7458: END IF;
7459: pa_debug.reset_curr_function;
7460: RAISE;

Line 7457: pa_debug.write('get_not_included: ' || g_module_name,pa_debug.g_err_stage,5);

7453: ,p_procedure_name => 'get_not_included');
7454:
7455: IF l_debug_mode = 'Y' THEN
7456: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7457: pa_debug.write('get_not_included: ' || g_module_name,pa_debug.g_err_stage,5);
7458: END IF;
7459: pa_debug.reset_curr_function;
7460: RAISE;
7461:

Line 7459: pa_debug.reset_curr_function;

7455: IF l_debug_mode = 'Y' THEN
7456: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7457: pa_debug.write('get_not_included: ' || g_module_name,pa_debug.g_err_stage,5);
7458: END IF;
7459: pa_debug.reset_curr_function;
7460: RAISE;
7461:
7462: END get_not_included;
7463:

Line 7495: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

7491:
7492: l_impact_type_tbl PA_PLSQL_DATATYPES.Char30TabTyp;
7493:
7494: BEGIN
7495: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7496:
7497: IF l_debug_mode = 'Y' THEN
7498: pa_debug.g_err_stage:='In is_impact_exists - pa_fp_control_items_utils ';
7499: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7498: pa_debug.g_err_stage:='In is_impact_exists - pa_fp_control_items_utils ';

7494: BEGIN
7495: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7496:
7497: IF l_debug_mode = 'Y' THEN
7498: pa_debug.g_err_stage:='In is_impact_exists - pa_fp_control_items_utils ';
7499: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7500: END IF;
7501: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7502: p_debug_mode => l_debug_mode );

Line 7499: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7495: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7496:
7497: IF l_debug_mode = 'Y' THEN
7498: pa_debug.g_err_stage:='In is_impact_exists - pa_fp_control_items_utils ';
7499: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7500: END IF;
7501: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7502: p_debug_mode => l_debug_mode );
7503: OPEN get_impact_type_csr;

Line 7501: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

7497: IF l_debug_mode = 'Y' THEN
7498: pa_debug.g_err_stage:='In is_impact_exists - pa_fp_control_items_utils ';
7499: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7500: END IF;
7501: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7502: p_debug_mode => l_debug_mode );
7503: OPEN get_impact_type_csr;
7504:
7505: FETCH get_impact_type_csr

Line 7513: pa_debug.g_err_stage:='l_record_count is:' || l_record_count;

7509:
7510: l_record_count := l_impact_type_tbl.COUNT;
7511:
7512: IF l_debug_mode = 'Y' THEN
7513: pa_debug.g_err_stage:='l_record_count is:' || l_record_count;
7514: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7515: END IF;
7516:
7517: IF l_record_count = 0 THEN

Line 7514: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7510: l_record_count := l_impact_type_tbl.COUNT;
7511:
7512: IF l_debug_mode = 'Y' THEN
7513: pa_debug.g_err_stage:='l_record_count is:' || l_record_count;
7514: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7515: END IF;
7516:
7517: IF l_record_count = 0 THEN
7518: IF l_debug_mode = 'Y' THEN

Line 7519: pa_debug.g_err_stage:='No Impact Exists';

7515: END IF;
7516:
7517: IF l_record_count = 0 THEN
7518: IF l_debug_mode = 'Y' THEN
7519: pa_debug.g_err_stage:='No Impact Exists';
7520: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7521: END IF;
7522:
7523: l_impact_type_code := 'NONE';

Line 7520: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7516:
7517: IF l_record_count = 0 THEN
7518: IF l_debug_mode = 'Y' THEN
7519: pa_debug.g_err_stage:='No Impact Exists';
7520: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7521: END IF;
7522:
7523: l_impact_type_code := 'NONE';
7524:

Line 7525: pa_debug.reset_curr_function;

7521: END IF;
7522:
7523: l_impact_type_code := 'NONE';
7524:
7525: pa_debug.reset_curr_function;
7526: RETURN l_impact_type_code;
7527: END IF;
7528:
7529: IF l_record_count > 0 THEN

Line 7532: IF P_PA_debug_mode = 'Y' THEN

7528:
7529: IF l_record_count > 0 THEN
7530: IF l_record_count = 1 THEN
7531: IF NOT l_impact_type_tbl(l_impact_type_tbl.FIRST) = 'FINPLAN' THEN
7532: IF P_PA_debug_mode = 'Y' THEN
7533: pa_debug.g_err_stage:='Impact Wrongly Created';
7534: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7535: END IF;
7536: pa_debug.reset_curr_function;

Line 7533: pa_debug.g_err_stage:='Impact Wrongly Created';

7529: IF l_record_count > 0 THEN
7530: IF l_record_count = 1 THEN
7531: IF NOT l_impact_type_tbl(l_impact_type_tbl.FIRST) = 'FINPLAN' THEN
7532: IF P_PA_debug_mode = 'Y' THEN
7533: pa_debug.g_err_stage:='Impact Wrongly Created';
7534: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7535: END IF;
7536: pa_debug.reset_curr_function;
7537: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7534: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

7530: IF l_record_count = 1 THEN
7531: IF NOT l_impact_type_tbl(l_impact_type_tbl.FIRST) = 'FINPLAN' THEN
7532: IF P_PA_debug_mode = 'Y' THEN
7533: pa_debug.g_err_stage:='Impact Wrongly Created';
7534: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7535: END IF;
7536: pa_debug.reset_curr_function;
7537: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7538: ELSE

Line 7536: pa_debug.reset_curr_function;

7532: IF P_PA_debug_mode = 'Y' THEN
7533: pa_debug.g_err_stage:='Impact Wrongly Created';
7534: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
7535: END IF;
7536: pa_debug.reset_curr_function;
7537: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7538: ELSE
7539: l_impact_type_code := 'FINPLAN';
7540: END IF;

Line 7554: pa_debug.g_err_stage:='l_impact_type_code is:' || l_impact_type_code;

7550: l_impact_type_code := PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_BOTH;
7551: END IF;
7552: END IF;
7553: IF l_debug_mode = 'Y' THEN
7554: pa_debug.g_err_stage:='l_impact_type_code is:' || l_impact_type_code;
7555: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7556: END IF;
7557:
7558: pa_debug.reset_curr_function;

Line 7555: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7551: END IF;
7552: END IF;
7553: IF l_debug_mode = 'Y' THEN
7554: pa_debug.g_err_stage:='l_impact_type_code is:' || l_impact_type_code;
7555: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7556: END IF;
7557:
7558: pa_debug.reset_curr_function;
7559: RETURN l_impact_type_code;

Line 7558: pa_debug.reset_curr_function;

7554: pa_debug.g_err_stage:='l_impact_type_code is:' || l_impact_type_code;
7555: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7556: END IF;
7557:
7558: pa_debug.reset_curr_function;
7559: RETURN l_impact_type_code;
7560: EXCEPTION
7561: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
7562: l_msg_count := FND_MSG_PUB.count_msg;

Line 7573: pa_debug.reset_curr_function;

7569: ,p_msg_data => l_msg_data
7570: ,p_data => l_data
7571: ,p_msg_index_out => l_msg_index_out);
7572: END IF;
7573: pa_debug.reset_curr_function;
7574: RAISE;
7575: WHEN OTHERS THEN
7576: IF l_debug_mode = 'Y' THEN
7577: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

Line 7577: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

7573: pa_debug.reset_curr_function;
7574: RAISE;
7575: WHEN OTHERS THEN
7576: IF l_debug_mode = 'Y' THEN
7577: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7578: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7579: END IF;
7580: pa_debug.reset_curr_function;
7581: RAISE;

Line 7578: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);

7574: RAISE;
7575: WHEN OTHERS THEN
7576: IF l_debug_mode = 'Y' THEN
7577: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7578: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7579: END IF;
7580: pa_debug.reset_curr_function;
7581: RAISE;
7582: END is_impact_exists;

Line 7580: pa_debug.reset_curr_function;

7576: IF l_debug_mode = 'Y' THEN
7577: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7578: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7579: END IF;
7580: pa_debug.reset_curr_function;
7581: RAISE;
7582: END is_impact_exists;
7583:
7584: /* FP.M- This function checks for the particular ci type, the Cost Impact or

Line 7600: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

7596: l_debug_mode VARCHAR2(30);
7597: l_module_name VARCHAR2(30) := 'is_fin_impact_enabled';
7598:
7599: BEGIN
7600: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7601:
7602: IF l_debug_mode = 'Y' THEN
7603: pa_debug.g_err_stage:='is_fin_impact_enabled - pa_fp_control_items_utils ';
7604: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 7603: pa_debug.g_err_stage:='is_fin_impact_enabled - pa_fp_control_items_utils ';

7599: BEGIN
7600: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7601:
7602: IF l_debug_mode = 'Y' THEN
7603: pa_debug.g_err_stage:='is_fin_impact_enabled - pa_fp_control_items_utils ';
7604: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7605: END IF;
7606: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7607: p_debug_mode => l_debug_mode );

Line 7604: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7600: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7601:
7602: IF l_debug_mode = 'Y' THEN
7603: pa_debug.g_err_stage:='is_fin_impact_enabled - pa_fp_control_items_utils ';
7604: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7605: END IF;
7606: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7607: p_debug_mode => l_debug_mode );
7608:

Line 7606: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

7602: IF l_debug_mode = 'Y' THEN
7603: pa_debug.g_err_stage:='is_fin_impact_enabled - pa_fp_control_items_utils ';
7604: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7605: END IF;
7606: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
7607: p_debug_mode => l_debug_mode );
7608:
7609: BEGIN
7610: SELECT ci_type_id

Line 7624: pa_debug.g_err_stage:='No Fin Impact Exists';

7620:
7621: EXCEPTION
7622: WHEN NO_DATA_FOUND THEN
7623: IF l_debug_mode = 'Y' THEN
7624: pa_debug.g_err_stage:='No Fin Impact Exists';
7625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7626: END IF;
7627:
7628: l_fin_impl_flag := 'NONE';

Line 7625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7621: EXCEPTION
7622: WHEN NO_DATA_FOUND THEN
7623: IF l_debug_mode = 'Y' THEN
7624: pa_debug.g_err_stage:='No Fin Impact Exists';
7625: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7626: END IF;
7627:
7628: l_fin_impl_flag := 'NONE';
7629:

Line 7630: pa_debug.reset_curr_function;

7626: END IF;
7627:
7628: l_fin_impl_flag := 'NONE';
7629:
7630: pa_debug.reset_curr_function;
7631: RETURN l_fin_impl_flag;
7632: END;
7633: IF l_cost_impact_flag = 'Y' and l_rev_impact_flag = 'N' THEN
7634: l_fin_impl_flag := PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST;

Line 7642: pa_debug.g_err_stage:='l_fin_impl_flag is:' || l_fin_impl_flag;

7638: l_fin_impl_flag := PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_BOTH;
7639: END IF;
7640:
7641: IF l_debug_mode = 'Y' THEN
7642: pa_debug.g_err_stage:='l_fin_impl_flag is:' || l_fin_impl_flag;
7643: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7644: END IF;
7645:
7646: pa_debug.reset_curr_function;

Line 7643: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

7639: END IF;
7640:
7641: IF l_debug_mode = 'Y' THEN
7642: pa_debug.g_err_stage:='l_fin_impl_flag is:' || l_fin_impl_flag;
7643: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7644: END IF;
7645:
7646: pa_debug.reset_curr_function;
7647: RETURN l_fin_impl_flag;

Line 7646: pa_debug.reset_curr_function;

7642: pa_debug.g_err_stage:='l_fin_impl_flag is:' || l_fin_impl_flag;
7643: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
7644: END IF;
7645:
7646: pa_debug.reset_curr_function;
7647: RETURN l_fin_impl_flag;
7648: EXCEPTION
7649: WHEN OTHERS THEN
7650: IF l_debug_mode = 'Y' THEN

Line 7651: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

7647: RETURN l_fin_impl_flag;
7648: EXCEPTION
7649: WHEN OTHERS THEN
7650: IF l_debug_mode = 'Y' THEN
7651: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7652: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7653: END IF;
7654: pa_debug.reset_curr_function;
7655: RAISE;

Line 7652: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);

7648: EXCEPTION
7649: WHEN OTHERS THEN
7650: IF l_debug_mode = 'Y' THEN
7651: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7652: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7653: END IF;
7654: pa_debug.reset_curr_function;
7655: RAISE;
7656: END is_fin_impact_enabled;

Line 7654: pa_debug.reset_curr_function;

7650: IF l_debug_mode = 'Y' THEN
7651: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
7652: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
7653: END IF;
7654: pa_debug.reset_curr_function;
7655: RAISE;
7656: END is_fin_impact_enabled;
7657:
7658: /* Returns the Ids of the versions created for this Change Document(p_ci_id).

Line 7694: pa_debug.set_curr_function( p_function => 'GET_CI_VERSIONS',

7690: c_vers_for_ci_rec c_vers_for_ci%ROWTYPE;
7691:
7692: BEGIN
7693:
7694: pa_debug.set_curr_function( p_function => 'GET_CI_VERSIONS',
7695: p_debug_mode => P_PA_debug_mode );
7696:
7697:
7698: x_msg_count := 0;

Line 7695: p_debug_mode => P_PA_debug_mode );

7691:
7692: BEGIN
7693:
7694: pa_debug.set_curr_function( p_function => 'GET_CI_VERSIONS',
7695: p_debug_mode => P_PA_debug_mode );
7696:
7697:
7698: x_msg_count := 0;
7699: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7704: IF P_PA_debug_mode = 'Y' THEN

7700:
7701: IF (p_ci_id IS NULL)
7702: THEN
7703:
7704: IF P_PA_debug_mode = 'Y' THEN
7705: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7706: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7707: END IF;
7708:

Line 7705: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

7701: IF (p_ci_id IS NULL)
7702: THEN
7703:
7704: IF P_PA_debug_mode = 'Y' THEN
7705: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7706: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7707: END IF;
7708:
7709:

Line 7706: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7702: THEN
7703:
7704: IF P_PA_debug_mode = 'Y' THEN
7705: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7706: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7707: END IF;
7708:
7709:
7710: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 7716: IF P_PA_debug_mode = 'Y' THEN

7712: p_token1 => l_token_name,
7713: p_value1 => l_mod_name);
7714:
7715:
7716: IF P_PA_debug_mode = 'Y' THEN
7717: pa_debug.g_err_stage:='Invalid Arguments Passed';
7718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7719: END IF;
7720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7717: pa_debug.g_err_stage:='Invalid Arguments Passed';

7713: p_value1 => l_mod_name);
7714:
7715:
7716: IF P_PA_debug_mode = 'Y' THEN
7717: pa_debug.g_err_stage:='Invalid Arguments Passed';
7718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7719: END IF;
7720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7721:

Line 7718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7714:
7715:
7716: IF P_PA_debug_mode = 'Y' THEN
7717: pa_debug.g_err_stage:='Invalid Arguments Passed';
7718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7719: END IF;
7720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7721:
7722: END IF;

Line 7724: IF P_PA_debug_mode = 'Y' THEN

7720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7721:
7722: END IF;
7723:
7724: IF P_PA_debug_mode = 'Y' THEN
7725: pa_debug.g_err_stage:= 'Entering GET_CI_VERSIONS';
7726: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7727: END IF;
7728:

Line 7725: pa_debug.g_err_stage:= 'Entering GET_CI_VERSIONS';

7721:
7722: END IF;
7723:
7724: IF P_PA_debug_mode = 'Y' THEN
7725: pa_debug.g_err_stage:= 'Entering GET_CI_VERSIONS';
7726: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7727: END IF;
7728:
7729: X_cost_budget_version_id := NULL;

Line 7726: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

7722: END IF;
7723:
7724: IF P_PA_debug_mode = 'Y' THEN
7725: pa_debug.g_err_stage:= 'Entering GET_CI_VERSIONS';
7726: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7727: END IF;
7728:
7729: X_cost_budget_version_id := NULL;
7730: X_rev_budget_version_id := NULL;

Line 7743: IF P_PA_debug_mode = 'Y' THEN

7739: X_all_budget_version_id := c_vers_for_ci_rec.budget_version_id;
7740: END IF;
7741: END LOOP;
7742:
7743: IF P_PA_debug_mode = 'Y' THEN
7744: pa_debug.g_err_stage:= 'Exiting GET_CI_VERSIONS';
7745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7746: END IF;
7747:

Line 7744: pa_debug.g_err_stage:= 'Exiting GET_CI_VERSIONS';

7740: END IF;
7741: END LOOP;
7742:
7743: IF P_PA_debug_mode = 'Y' THEN
7744: pa_debug.g_err_stage:= 'Exiting GET_CI_VERSIONS';
7745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7746: END IF;
7747:
7748: pa_debug.reset_curr_function;

Line 7745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

7741: END LOOP;
7742:
7743: IF P_PA_debug_mode = 'Y' THEN
7744: pa_debug.g_err_stage:= 'Exiting GET_CI_VERSIONS';
7745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7746: END IF;
7747:
7748: pa_debug.reset_curr_function;
7749:

Line 7748: pa_debug.reset_curr_function;

7744: pa_debug.g_err_stage:= 'Exiting GET_CI_VERSIONS';
7745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7746: END IF;
7747:
7748: pa_debug.reset_curr_function;
7749:
7750: EXCEPTION
7751: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
7752: l_msg_count := FND_MSG_PUB.count_msg;

Line 7769: pa_debug.reset_curr_function;

7765: x_msg_count := l_msg_count;
7766: END IF;
7767: x_return_status := FND_API.G_RET_STS_ERROR;
7768:
7769: pa_debug.reset_curr_function;
7770:
7771: RETURN;
7772:
7773: WHEN Others THEN

Line 7784: IF P_PA_DEBUG_MODE = 'Y' THEN

7780: END IF;
7781:
7782: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
7783: ,p_procedure_name => 'GET_CI_VERSIONS');
7784: IF P_PA_DEBUG_MODE = 'Y' THEN
7785: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
7786: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7787: END IF;
7788: pa_debug.reset_curr_function;

Line 7785: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

7781:
7782: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
7783: ,p_procedure_name => 'GET_CI_VERSIONS');
7784: IF P_PA_DEBUG_MODE = 'Y' THEN
7785: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
7786: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7787: END IF;
7788: pa_debug.reset_curr_function;
7789: RAISE;

Line 7786: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7782: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
7783: ,p_procedure_name => 'GET_CI_VERSIONS');
7784: IF P_PA_DEBUG_MODE = 'Y' THEN
7785: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
7786: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7787: END IF;
7788: pa_debug.reset_curr_function;
7789: RAISE;
7790:

Line 7788: pa_debug.reset_curr_function;

7784: IF P_PA_DEBUG_MODE = 'Y' THEN
7785: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
7786: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7787: END IF;
7788: pa_debug.reset_curr_function;
7789: RAISE;
7790:
7791: END GET_CI_VERSIONS;
7792:

Line 7905: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

7901: l_submit_revenue_check VARCHAR2(1);
7902:
7903: BEGIN
7904:
7905: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7906: l_debug_mode := NVL(l_debug_mode, 'N');
7907:
7908:
7909: pa_debug.set_curr_function( p_function => 'GET_PLAN_TYPES_FOR_IMPL',

Line 7909: pa_debug.set_curr_function( p_function => 'GET_PLAN_TYPES_FOR_IMPL',

7905: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
7906: l_debug_mode := NVL(l_debug_mode, 'N');
7907:
7908:
7909: pa_debug.set_curr_function( p_function => 'GET_PLAN_TYPES_FOR_IMPL',
7910: p_debug_mode => l_debug_mode );
7911:
7912:
7913: x_msg_count := 0;

Line 7941: pa_debug.g_err_stage:='Validating input parameters';

7937: x_disable_baseline_flag_tbl := SYSTEM.pa_varchar2_1_tbl_type(); -- Bug 3735309
7938: -- Check for business rules violations
7939:
7940: IF l_debug_mode = 'Y' THEN
7941: pa_debug.g_err_stage:='Validating input parameters';
7942: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7943: END IF;
7944:
7945: -- Check if project id and ci id are null

Line 7942: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

7938: -- Check for business rules violations
7939:
7940: IF l_debug_mode = 'Y' THEN
7941: pa_debug.g_err_stage:='Validating input parameters';
7942: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
7943: END IF;
7944:
7945: -- Check if project id and ci id are null
7946:

Line 7953: pa_debug.g_err_stage:='Project_id = '||p_project_id;

7949: THEN
7950:
7951:
7952: IF l_debug_mode = 'Y' THEN
7953: pa_debug.g_err_stage:='Project_id = '||p_project_id;
7954: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7955:
7956: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7957: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

Line 7954: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7950:
7951:
7952: IF l_debug_mode = 'Y' THEN
7953: pa_debug.g_err_stage:='Project_id = '||p_project_id;
7954: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7955:
7956: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7957: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7958: END IF;

Line 7956: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

7952: IF l_debug_mode = 'Y' THEN
7953: pa_debug.g_err_stage:='Project_id = '||p_project_id;
7954: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7955:
7956: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7957: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7958: END IF;
7959:
7960:

Line 7957: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7953: pa_debug.g_err_stage:='Project_id = '||p_project_id;
7954: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7955:
7956: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
7957: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7958: END IF;
7959:
7960:
7961: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 7968: pa_debug.g_err_stage:='Invalid Arguments Passed';

7964: p_value1 => l_mod_name);
7965:
7966:
7967: IF l_debug_mode = 'Y' THEN
7968: pa_debug.g_err_stage:='Invalid Arguments Passed';
7969: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7970: END IF;
7971: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7972:

Line 7969: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7965:
7966:
7967: IF l_debug_mode = 'Y' THEN
7968: pa_debug.g_err_stage:='Invalid Arguments Passed';
7969: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7970: END IF;
7971: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7972:
7973: END IF;

Line 7977: pa_debug.g_err_stage:='Fetching Function Security return codes';

7973: END IF;
7974:
7975:
7976: IF l_debug_mode = 'Y' THEN
7977: pa_debug.g_err_stage:='Fetching Function Security return codes';
7978: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7979: END IF;
7980: -- Fetching Function Security User Privelege for submit for baseline flag
7981: -- "Financials: Project: Budget: Submit Cost"

Line 7978: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7974:
7975:
7976: IF l_debug_mode = 'Y' THEN
7977: pa_debug.g_err_stage:='Fetching Function Security return codes';
7978: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7979: END IF;
7980: -- Fetching Function Security User Privelege for submit for baseline flag
7981: -- "Financials: Project: Budget: Submit Cost"
7982: pa_security_pvt.check_user_privilege(x_ret_code => l_submit_cost,

Line 7992: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost';

7988: p_object_key => P_project_id);
7989:
7990: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
7991: IF l_debug_mode = 'Y' THEN
7992: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost';
7993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7994: END IF;
7995: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7996: END IF;

Line 7993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

7989:
7990: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
7991: IF l_debug_mode = 'Y' THEN
7992: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost';
7993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
7994: END IF;
7995: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7996: END IF;
7997:

Line 8008: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue';

8004: p_object_name => 'PA_PROJECTS',
8005: p_object_key => P_project_id);
8006: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8007: IF l_debug_mode = 'Y' THEN
8008: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue';
8009: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8010: END IF;
8011: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8012: END IF;

Line 8009: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8005: p_object_key => P_project_id);
8006: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8007: IF l_debug_mode = 'Y' THEN
8008: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue';
8009: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8010: END IF;
8011: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8012: END IF;
8013:

Line 8024: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Approved';

8020: p_object_name => 'PA_PROJECTS',
8021: p_object_key => P_project_id);
8022: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8023: IF l_debug_mode = 'Y' THEN
8024: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Approved';
8025: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8026: END IF;
8027: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8028: END IF;

Line 8025: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8021: p_object_key => P_project_id);
8022: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8023: IF l_debug_mode = 'Y' THEN
8024: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Approved';
8025: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8026: END IF;
8027: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8028: END IF;
8029:

Line 8040: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Approved';

8036: p_object_name => 'PA_PROJECTS',
8037: p_object_key => P_project_id);
8038: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8039: IF l_debug_mode = 'Y' THEN
8040: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Approved';
8041: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8042: END IF;
8043: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8044: END IF;

Line 8041: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8037: p_object_key => P_project_id);
8038: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8039: IF l_debug_mode = 'Y' THEN
8040: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Approved';
8041: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8042: END IF;
8043: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8044: END IF;
8045:

Line 8056: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Forecast';

8052: p_object_name => 'PA_PROJECTS',
8053: p_object_key => P_project_id);
8054: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8055: IF l_debug_mode = 'Y' THEN
8056: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Forecast';
8057: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8058: END IF;
8059: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8060: END IF;

Line 8057: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8053: p_object_key => P_project_id);
8054: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8055: IF l_debug_mode = 'Y' THEN
8056: pa_debug.g_err_stage:= 'Error fetching function security - Submit Cost Forecast';
8057: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8058: END IF;
8059: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8060: END IF;
8061:

Line 8072: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Forecast';

8068: p_object_name => 'PA_PROJECTS',
8069: p_object_key => P_project_id);
8070: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8071: IF l_debug_mode = 'Y' THEN
8072: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Forecast';
8073: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8074: END IF;
8075: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8076: END IF;

Line 8073: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8069: p_object_key => P_project_id);
8070: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8071: IF l_debug_mode = 'Y' THEN
8072: pa_debug.g_err_stage:= 'Error fetching function security - Submit Revenue Forecast';
8073: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8074: END IF;
8075: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8076: END IF;
8077:

Line 8079: pa_debug.g_err_stage:='After Fetching Function Security return codes';

8075: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8076: END IF;
8077:
8078: IF l_debug_mode = 'Y' THEN
8079: pa_debug.g_err_stage:='After Fetching Function Security return codes';
8080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8081:
8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8076: END IF;
8077:
8078: IF l_debug_mode = 'Y' THEN
8079: pa_debug.g_err_stage:='After Fetching Function Security return codes';
8080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8081:
8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8084:

Line 8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;

8078: IF l_debug_mode = 'Y' THEN
8079: pa_debug.g_err_stage:='After Fetching Function Security return codes';
8080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8081:
8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8084:
8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8079: pa_debug.g_err_stage:='After Fetching Function Security return codes';
8080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8081:
8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8084:
8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8087:

Line 8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;

8081:
8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8084:
8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8087:
8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8082: pa_debug.g_err_stage:='l_submit_cost: '||l_submit_cost;
8083: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8084:
8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8087:
8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8090:

Line 8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;

8084:
8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8087:
8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8090:
8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8085: pa_debug.g_err_stage:='l_submit_revenue: '||l_submit_revenue;
8086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8087:
8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8090:
8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8093:

Line 8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;

8087:
8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8090:
8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8093:
8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8088: pa_debug.g_err_stage:='l_submit_cost_appr: '||l_submit_cost_appr;
8089: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8090:
8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8093:
8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8096:

Line 8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;

8090:
8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8093:
8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8096:
8097: pa_debug.g_err_stage:='l_submit_revenue_forecast: '||l_submit_revenue_forecast;
8098: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8091: pa_debug.g_err_stage:='l_submit_revenue_appr: '||l_submit_revenue_appr;
8092: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8093:
8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8096:
8097: pa_debug.g_err_stage:='l_submit_revenue_forecast: '||l_submit_revenue_forecast;
8098: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8099: END IF;

Line 8097: pa_debug.g_err_stage:='l_submit_revenue_forecast: '||l_submit_revenue_forecast;

8093:
8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8096:
8097: pa_debug.g_err_stage:='l_submit_revenue_forecast: '||l_submit_revenue_forecast;
8098: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8099: END IF;
8100:
8101:

Line 8098: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8094: pa_debug.g_err_stage:='l_submit_cost_forecast: '||l_submit_cost_forecast;
8095: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8096:
8097: pa_debug.g_err_stage:='l_submit_revenue_forecast: '||l_submit_revenue_forecast;
8098: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8099: END IF;
8100:
8101:
8102: IF l_debug_mode = 'Y' THEN

Line 8103: pa_debug.g_err_stage:= 'Entering GET_PLAN_TYPES_FOR_IMPL';

8099: END IF;
8100:
8101:
8102: IF l_debug_mode = 'Y' THEN
8103: pa_debug.g_err_stage:= 'Entering GET_PLAN_TYPES_FOR_IMPL';
8104: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8105: END IF;
8106:
8107: BEGIN

Line 8104: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8100:
8101:
8102: IF l_debug_mode = 'Y' THEN
8103: pa_debug.g_err_stage:= 'Entering GET_PLAN_TYPES_FOR_IMPL';
8104: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8105: END IF;
8106:
8107: BEGIN
8108:

Line 8118: pa_debug.g_err_stage:='Error while fetching status of the CI';

8114: EXCEPTION
8115: WHEN NO_DATA_FOUND THEN
8116:
8117: IF l_DEBUG_MODE = 'Y' THEN
8118: pa_debug.g_err_stage:='Error while fetching status of the CI';
8119: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8120: END IF;
8121: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8122: END;

Line 8119: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8115: WHEN NO_DATA_FOUND THEN
8116:
8117: IF l_DEBUG_MODE = 'Y' THEN
8118: pa_debug.g_err_stage:='Error while fetching status of the CI';
8119: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8120: END IF;
8121: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8122: END;
8123:

Line 8139: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';

8135:
8136:
8137: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8138: IF l_debug_mode = 'Y' THEN
8139: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
8140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8141: END IF;
8142: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8143: END IF;

Line 8140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8136:
8137: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8138: IF l_debug_mode = 'Y' THEN
8139: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
8140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8141: END IF;
8142: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8143: END IF;
8144:

Line 8158: pa_debug.g_err_stage:= 'l_version_type derived is '||l_version_type;

8154: l_version_type:='REVENUE';
8155: END IF;
8156:
8157: IF l_debug_mode = 'Y' THEN
8158: pa_debug.g_err_stage:= 'l_version_type derived is '||l_version_type;
8159: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8160: END IF;
8161: */
8162:

Line 8159: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8155: END IF;
8156:
8157: IF l_debug_mode = 'Y' THEN
8158: pa_debug.g_err_stage:= 'l_version_type derived is '||l_version_type;
8159: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8160: END IF;
8161: */
8162:
8163: x_autobaseline_project := Pa_Fp_Control_Items_Utils.IsFpAutoBaselineEnabled(p_project_id => p_project_id);

Line 8191: pa_debug.g_err_stage:= 'Error in get_impl_details';

8187: X_msg_count => l_msg_count);
8188:
8189: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8190: IF l_debug_mode = 'Y' THEN
8191: pa_debug.g_err_stage:= 'Error in get_impl_details';
8192: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8193: END IF;
8194: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8195: END IF;

Line 8192: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8188:
8189: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8190: IF l_debug_mode = 'Y' THEN
8191: pa_debug.g_err_stage:= 'Error in get_impl_details';
8192: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8193: END IF;
8194: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8195: END IF;
8196:

Line 8275: pa_debug.g_err_stage:= 'Error in get_summary_amounts';

8271: X_msg_count => l_msg_count);
8272:
8273: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8274: IF l_debug_mode = 'Y' THEN
8275: pa_debug.g_err_stage:= 'Error in get_summary_amounts';
8276: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8277: END IF;
8278: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8279: END IF;

Line 8276: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8272:
8273: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8274: IF l_debug_mode = 'Y' THEN
8275: pa_debug.g_err_stage:= 'Error in get_summary_amounts';
8276: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8277: END IF;
8278: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8279: END IF;
8280:

Line 8371: pa_debug.g_err_stage:= 'Deriving x_disable Submit for Baseline';

8367: END IF;
8368:
8369:
8370: IF l_debug_mode = 'Y' THEN
8371: pa_debug.g_err_stage:= 'Deriving x_disable Submit for Baseline';
8372: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8373:
8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8372: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8368:
8369:
8370: IF l_debug_mode = 'Y' THEN
8371: pa_debug.g_err_stage:= 'Deriving x_disable Submit for Baseline';
8372: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8373:
8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8376:

Line 8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);

8370: IF l_debug_mode = 'Y' THEN
8371: pa_debug.g_err_stage:= 'Deriving x_disable Submit for Baseline';
8372: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8373:
8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8376:
8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8371: pa_debug.g_err_stage:= 'Deriving x_disable Submit for Baseline';
8372: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8373:
8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8376:
8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8379:

Line 8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);

8373:
8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8376:
8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8379:
8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8374: pa_debug.g_err_stage:= 'l_render_impl_cost :'||l_render_impl_cost_tbl(i);
8375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8376:
8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8379:
8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8382:

Line 8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);

8376:
8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8379:
8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8382:
8383: pa_debug.g_err_stage:= 'l_disable_impl_revenue :'||l_disable_impl_revenue_tbl(i);
8384: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8377: pa_debug.g_err_stage:= 'l_render_impl_revenue :'||l_render_impl_revenue_tbl(i);
8378: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8379:
8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8382:
8383: pa_debug.g_err_stage:= 'l_disable_impl_revenue :'||l_disable_impl_revenue_tbl(i);
8384: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8385: END IF;

Line 8383: pa_debug.g_err_stage:= 'l_disable_impl_revenue :'||l_disable_impl_revenue_tbl(i);

8379:
8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8382:
8383: pa_debug.g_err_stage:= 'l_disable_impl_revenue :'||l_disable_impl_revenue_tbl(i);
8384: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8385: END IF;
8386:
8387: /*

Line 8384: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8380: pa_debug.g_err_stage:= 'l_disable_impl_cost :'||l_disable_impl_cost_tbl(i);
8381: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8382:
8383: pa_debug.g_err_stage:= 'l_disable_impl_revenue :'||l_disable_impl_revenue_tbl(i);
8384: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8385: END IF;
8386:
8387: /*
8388: Submit For Baseline Disable Logic

Line 8416: pa_debug.g_err_stage:= 'x_disable_baseline_flag_tbl : '||x_disable_baseline_flag_tbl(i);

8412: x_disable_baseline_flag_tbl(i) := 'Y';
8413: END IF;
8414:
8415: IF l_debug_mode = 'Y' THEN
8416: pa_debug.g_err_stage:= 'x_disable_baseline_flag_tbl : '||x_disable_baseline_flag_tbl(i);
8417: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8418: END IF;
8419: -- Bug 3735309 End of changes.
8420:

Line 8417: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8413: END IF;
8414:
8415: IF l_debug_mode = 'Y' THEN
8416: pa_debug.g_err_stage:= 'x_disable_baseline_flag_tbl : '||x_disable_baseline_flag_tbl(i);
8417: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8418: END IF;
8419: -- Bug 3735309 End of changes.
8420:
8421: i := i + 1;

Line 8426: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPES_FOR_IMPL';

8422: END LOOP;
8423:
8424:
8425: IF l_debug_mode = 'Y' THEN
8426: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPES_FOR_IMPL';
8427: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8428: END IF;
8429: pa_debug.reset_curr_function;
8430:

Line 8427: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8423:
8424:
8425: IF l_debug_mode = 'Y' THEN
8426: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPES_FOR_IMPL';
8427: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8428: END IF;
8429: pa_debug.reset_curr_function;
8430:
8431: EXCEPTION

Line 8429: pa_debug.reset_curr_function;

8425: IF l_debug_mode = 'Y' THEN
8426: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPES_FOR_IMPL';
8427: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8428: END IF;
8429: pa_debug.reset_curr_function;
8430:
8431: EXCEPTION
8432: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
8433: l_msg_count := FND_MSG_PUB.count_msg;

Line 8453: pa_debug.reset_curr_function;

8449: x_msg_count := l_msg_count;
8450: END IF;
8451: x_return_status := FND_API.G_RET_STS_ERROR;
8452:
8453: pa_debug.reset_curr_function;
8454: RETURN;
8455:
8456: WHEN Others THEN
8457: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 8468: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

8464:
8465: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
8466: ,p_procedure_name => 'GET_PLAN_TYPES_FOR_IMPL');
8467: IF l_DEBUG_MODE = 'Y' THEN
8468: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
8469: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8470: END IF;
8471: pa_debug.reset_curr_function;
8472: RAISE;

Line 8469: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8465: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
8466: ,p_procedure_name => 'GET_PLAN_TYPES_FOR_IMPL');
8467: IF l_DEBUG_MODE = 'Y' THEN
8468: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
8469: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8470: END IF;
8471: pa_debug.reset_curr_function;
8472: RAISE;
8473:

Line 8471: pa_debug.reset_curr_function;

8467: IF l_DEBUG_MODE = 'Y' THEN
8468: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
8469: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8470: END IF;
8471: pa_debug.reset_curr_function;
8472: RAISE;
8473:
8474:
8475: END GET_PLAN_TYPES_FOR_IMPL;

Line 8587: pa_debug.set_curr_function( p_function => 'GET_IMPL_DETAILS',

8583: l_current_working_flag Pa_budget_versions.current_working_flag%TYPE; -- Bug 3732446
8584:
8585: BEGIN
8586:
8587: pa_debug.set_curr_function( p_function => 'GET_IMPL_DETAILS',
8588: p_debug_mode => P_PA_debug_mode );
8589:
8590:
8591: x_msg_count := 0;

Line 8588: p_debug_mode => P_PA_debug_mode );

8584:
8585: BEGIN
8586:
8587: pa_debug.set_curr_function( p_function => 'GET_IMPL_DETAILS',
8588: p_debug_mode => P_PA_debug_mode );
8589:
8590:
8591: x_msg_count := 0;
8592: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8601: IF P_PA_debug_mode = 'Y' THEN

8597: IF (p_project_id IS NULL) OR (p_ci_id IS NULL) OR (p_fin_plan_type_id IS NULL)
8598: THEN
8599:
8600:
8601: IF P_PA_debug_mode = 'Y' THEN
8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;
8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

Line 8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;

8598: THEN
8599:
8600:
8601: IF P_PA_debug_mode = 'Y' THEN
8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;
8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

Line 8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8599:
8600:
8601: IF P_PA_debug_mode = 'Y' THEN
8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;
8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8607:

Line 8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

8601: IF P_PA_debug_mode = 'Y' THEN
8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;
8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8607:
8608: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
8609: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

Line 8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8602: pa_debug.g_err_stage:='Project_id = '||p_project_id;
8603: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8607:
8608: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
8609: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8610:

Line 8608: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;

8604:
8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8607:
8608: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
8609: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8610:
8611: END IF;
8612:

Line 8609: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8605: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
8606: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8607:
8608: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
8609: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8610:
8611: END IF;
8612:
8613:

Line 8620: IF P_PA_debug_mode = 'Y' THEN

8616: p_token1 => l_token_name,
8617: p_value1 => l_mod_name);
8618:
8619:
8620: IF P_PA_debug_mode = 'Y' THEN
8621: pa_debug.g_err_stage:='Invalid Arguments Passed';
8622: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8623: END IF;
8624: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8621: pa_debug.g_err_stage:='Invalid Arguments Passed';

8617: p_value1 => l_mod_name);
8618:
8619:
8620: IF P_PA_debug_mode = 'Y' THEN
8621: pa_debug.g_err_stage:='Invalid Arguments Passed';
8622: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8623: END IF;
8624: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8625:

Line 8622: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8618:
8619:
8620: IF P_PA_debug_mode = 'Y' THEN
8621: pa_debug.g_err_stage:='Invalid Arguments Passed';
8622: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8623: END IF;
8624: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8625:
8626: END IF;

Line 8629: IF P_PA_debug_mode = 'Y' THEN

8625:
8626: END IF;
8627:
8628:
8629: IF P_PA_debug_mode = 'Y' THEN
8630: pa_debug.g_err_stage:= 'Entering GET_IMPL_DETAILS';
8631: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8632: END IF;
8633:

Line 8630: pa_debug.g_err_stage:= 'Entering GET_IMPL_DETAILS';

8626: END IF;
8627:
8628:
8629: IF P_PA_debug_mode = 'Y' THEN
8630: pa_debug.g_err_stage:= 'Entering GET_IMPL_DETAILS';
8631: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8632: END IF;
8633:
8634: IF p_ci_status IS NULL OR p_ci_type_id IS NULL THEN

Line 8631: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

8627:
8628:
8629: IF P_PA_debug_mode = 'Y' THEN
8630: pa_debug.g_err_stage:= 'Entering GET_IMPL_DETAILS';
8631: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
8632: END IF;
8633:
8634: IF p_ci_status IS NULL OR p_ci_type_id IS NULL THEN
8635: BEGIN

Line 8685: IF P_PA_debug_mode = 'Y' THEN

8681: x_msg_data => l_msg_data,
8682: X_msg_count => l_msg_count);
8683:
8684: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8685: IF P_PA_debug_mode = 'Y' THEN
8686: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
8687: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8688: END IF;
8689: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8686: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';

8682: X_msg_count => l_msg_count);
8683:
8684: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8685: IF P_PA_debug_mode = 'Y' THEN
8686: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
8687: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8688: END IF;
8689: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8690: END IF;

Line 8687: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8683:
8684: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8685: IF P_PA_debug_mode = 'Y' THEN
8686: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
8687: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8688: END IF;
8689: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8690: END IF;
8691: ELSE

Line 8727: IF P_PA_debug_mode = 'Y' THEN

8723: END IF;
8724:
8725: ELSE
8726:
8727: IF P_PA_debug_mode = 'Y' THEN
8728: pa_debug.g_err_stage:= 'Calling GET_CURR_WORKING_VERSION_IDS';
8729: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8730: END IF;
8731:

Line 8728: pa_debug.g_err_stage:= 'Calling GET_CURR_WORKING_VERSION_IDS';

8724:
8725: ELSE
8726:
8727: IF P_PA_debug_mode = 'Y' THEN
8728: pa_debug.g_err_stage:= 'Calling GET_CURR_WORKING_VERSION_IDS';
8729: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8730: END IF;
8731:
8732: pa_fin_plan_utils.GET_CURR_WORKING_VERSION_IDS(P_fin_plan_type_id => P_fin_plan_type_id

Line 8729: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8725: ELSE
8726:
8727: IF P_PA_debug_mode = 'Y' THEN
8728: pa_debug.g_err_stage:= 'Calling GET_CURR_WORKING_VERSION_IDS';
8729: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8730: END IF;
8731:
8732: pa_fin_plan_utils.GET_CURR_WORKING_VERSION_IDS(P_fin_plan_type_id => P_fin_plan_type_id
8733: ,P_project_id => p_project_id

Line 8743: IF P_PA_debug_mode = 'Y' THEN

8739: ,X_msg_count => l_msg_count);
8740:
8741:
8742: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8743: IF P_PA_debug_mode = 'Y' THEN
8744: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
8745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8746: END IF;
8747: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8744: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';

8740:
8741:
8742: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8743: IF P_PA_debug_mode = 'Y' THEN
8744: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
8745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8746: END IF;
8747: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8748: END IF;

Line 8745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8741:
8742: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8743: IF P_PA_debug_mode = 'Y' THEN
8744: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
8745: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8746: END IF;
8747: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8748: END IF;
8749: END IF;

Line 8886: IF P_PA_debug_mode = 'Y' THEN

8882: AND fin_plan_type_id = p_fin_plan_type_id;
8883:
8884: EXCEPTION
8885: WHEN NO_DATA_FOUND THEN
8886: IF P_PA_debug_mode = 'Y' THEN
8887: pa_debug.g_err_stage:='No data found while getting approved_rev_plan_type_flag ';
8888: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8889: END IF;
8890: RAISE ;

Line 8887: pa_debug.g_err_stage:='No data found while getting approved_rev_plan_type_flag ';

8883:
8884: EXCEPTION
8885: WHEN NO_DATA_FOUND THEN
8886: IF P_PA_debug_mode = 'Y' THEN
8887: pa_debug.g_err_stage:='No data found while getting approved_rev_plan_type_flag ';
8888: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8889: END IF;
8890: RAISE ;
8891: END;

Line 8888: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8884: EXCEPTION
8885: WHEN NO_DATA_FOUND THEN
8886: IF P_PA_debug_mode = 'Y' THEN
8887: pa_debug.g_err_stage:='No data found while getting approved_rev_plan_type_flag ';
8888: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8889: END IF;
8890: RAISE ;
8891: END;
8892: ELSE

Line 8909: IF P_PA_debug_mode = 'Y' THEN

8905: x_msg_count => l_msg_count,
8906: x_return_status => l_return_status);
8907:
8908: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8909: IF P_PA_debug_mode = 'Y' THEN
8910: pa_debug.g_err_stage:= 'Error in get_fp_ci_agreement_dtls';
8911: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8912: END IF;
8913: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8910: pa_debug.g_err_stage:= 'Error in get_fp_ci_agreement_dtls';

8906: x_return_status => l_return_status);
8907:
8908: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8909: IF P_PA_debug_mode = 'Y' THEN
8910: pa_debug.g_err_stage:= 'Error in get_fp_ci_agreement_dtls';
8911: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8912: END IF;
8913: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8914: END IF;

Line 8911: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8907:
8908: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
8909: IF P_PA_debug_mode = 'Y' THEN
8910: pa_debug.g_err_stage:= 'Error in get_fp_ci_agreement_dtls';
8911: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8912: END IF;
8913: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8914: END IF;
8915:

Line 8953: IF P_PA_debug_mode = 'Y' THEN

8949: l_rev_budget_version_id); */
8950:
8951: EXCEPTION
8952: WHEN NO_DATA_FOUND THEN
8953: IF P_PA_debug_mode = 'Y' THEN
8954: pa_debug.g_err_stage:='get rev_partially_impl_flag - NO_DATA_FOUND ';
8955: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8956: END IF;
8957: RAISE ;

Line 8954: pa_debug.g_err_stage:='get rev_partially_impl_flag - NO_DATA_FOUND ';

8950:
8951: EXCEPTION
8952: WHEN NO_DATA_FOUND THEN
8953: IF P_PA_debug_mode = 'Y' THEN
8954: pa_debug.g_err_stage:='get rev_partially_impl_flag - NO_DATA_FOUND ';
8955: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8956: END IF;
8957: RAISE ;
8958: END;

Line 8955: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8951: EXCEPTION
8952: WHEN NO_DATA_FOUND THEN
8953: IF P_PA_debug_mode = 'Y' THEN
8954: pa_debug.g_err_stage:='get rev_partially_impl_flag - NO_DATA_FOUND ';
8955: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8956: END IF;
8957: RAISE ;
8958: END;
8959:

Line 8974: IF P_PA_debug_mode = 'Y' THEN

8970: AND PLAN_VERSION_ID = decode(nvl(l_rev_budget_version_id,-1),-1,l_all_budget_version_id
8971: ,l_rev_budget_version_id));
8972: EXCEPTION
8973: WHEN NO_DATA_FOUND THEN
8974: IF P_PA_debug_mode = 'Y' THEN
8975: pa_debug.g_err_stage:='Deriving rev partial flag - Rev not yet implemented';
8976: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8977: END IF;
8978: l_rev_impl_full := 'N';

Line 8975: pa_debug.g_err_stage:='Deriving rev partial flag - Rev not yet implemented';

8971: ,l_rev_budget_version_id));
8972: EXCEPTION
8973: WHEN NO_DATA_FOUND THEN
8974: IF P_PA_debug_mode = 'Y' THEN
8975: pa_debug.g_err_stage:='Deriving rev partial flag - Rev not yet implemented';
8976: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8977: END IF;
8978: l_rev_impl_full := 'N';
8979: END;

Line 8976: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8972: EXCEPTION
8973: WHEN NO_DATA_FOUND THEN
8974: IF P_PA_debug_mode = 'Y' THEN
8975: pa_debug.g_err_stage:='Deriving rev partial flag - Rev not yet implemented';
8976: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8977: END IF;
8978: l_rev_impl_full := 'N';
8979: END;
8980:

Line 8991: IF P_PA_debug_mode = 'Y' THEN

8987: FROM PA_FIN_PLAN_TYPES_B
8988: WHERE fin_plan_type_id = p_fin_plan_type_id;
8989: EXCEPTION
8990: WHEN NO_DATA_FOUND THEN
8991: IF P_PA_debug_mode = 'Y' THEN
8992: pa_debug.g_err_stage:='Deriving rev partial flag : Record not found for plan type';
8993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8994: END IF;
8995: RAISE;

Line 8992: pa_debug.g_err_stage:='Deriving rev partial flag : Record not found for plan type';

8988: WHERE fin_plan_type_id = p_fin_plan_type_id;
8989: EXCEPTION
8990: WHEN NO_DATA_FOUND THEN
8991: IF P_PA_debug_mode = 'Y' THEN
8992: pa_debug.g_err_stage:='Deriving rev partial flag : Record not found for plan type';
8993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8994: END IF;
8995: RAISE;
8996: END;

Line 8993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

8989: EXCEPTION
8990: WHEN NO_DATA_FOUND THEN
8991: IF P_PA_debug_mode = 'Y' THEN
8992: pa_debug.g_err_stage:='Deriving rev partial flag : Record not found for plan type';
8993: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
8994: END IF;
8995: RAISE;
8996: END;
8997: END IF;

Line 9052: IF P_PA_debug_mode = 'Y' THEN

9048: -- Status does not allow revenue implementation
9049: X_rev_impl_flag := 'H';
9050: END IF;
9051:
9052: IF P_PA_debug_mode = 'Y' THEN
9053: pa_debug.g_err_stage:= 'Exiting GET_IMPL_DETAILS';
9054: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
9055: END IF;
9056:

Line 9053: pa_debug.g_err_stage:= 'Exiting GET_IMPL_DETAILS';

9049: X_rev_impl_flag := 'H';
9050: END IF;
9051:
9052: IF P_PA_debug_mode = 'Y' THEN
9053: pa_debug.g_err_stage:= 'Exiting GET_IMPL_DETAILS';
9054: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
9055: END IF;
9056:
9057: pa_debug.reset_curr_function;

Line 9054: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

9050: END IF;
9051:
9052: IF P_PA_debug_mode = 'Y' THEN
9053: pa_debug.g_err_stage:= 'Exiting GET_IMPL_DETAILS';
9054: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
9055: END IF;
9056:
9057: pa_debug.reset_curr_function;
9058:

Line 9057: pa_debug.reset_curr_function;

9053: pa_debug.g_err_stage:= 'Exiting GET_IMPL_DETAILS';
9054: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
9055: END IF;
9056:
9057: pa_debug.reset_curr_function;
9058:
9059: EXCEPTION
9060: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
9061: l_msg_count := FND_MSG_PUB.count_msg;

Line 9078: pa_debug.reset_curr_function;

9074: x_msg_count := l_msg_count;
9075: END IF;
9076: x_return_status := FND_API.G_RET_STS_ERROR;
9077:
9078: pa_debug.reset_curr_function;
9079: RETURN;
9080:
9081: WHEN Others THEN
9082: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 9088: IF P_PA_DEBUG_MODE = 'Y' THEN

9084: x_msg_data := SQLERRM;
9085:
9086: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
9087: ,p_procedure_name => 'GET_IMPL_DETAILS');
9088: IF P_PA_DEBUG_MODE = 'Y' THEN
9089: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9090: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
9091: END IF;
9092: pa_debug.reset_curr_function;

Line 9089: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

9085:
9086: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
9087: ,p_procedure_name => 'GET_IMPL_DETAILS');
9088: IF P_PA_DEBUG_MODE = 'Y' THEN
9089: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9090: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
9091: END IF;
9092: pa_debug.reset_curr_function;
9093: RAISE;

Line 9090: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

9086: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
9087: ,p_procedure_name => 'GET_IMPL_DETAILS');
9088: IF P_PA_DEBUG_MODE = 'Y' THEN
9089: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9090: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
9091: END IF;
9092: pa_debug.reset_curr_function;
9093: RAISE;
9094:

Line 9092: pa_debug.reset_curr_function;

9088: IF P_PA_DEBUG_MODE = 'Y' THEN
9089: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9090: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
9091: END IF;
9092: pa_debug.reset_curr_function;
9093: RAISE;
9094:
9095: END GET_IMPL_DETAILS;
9096:

Line 9183: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

9179: AND plan_version_id=c_app_cw_ver_id
9180: AND ci_plan_version_id=c_ci_version_id
9181: AND version_type=c_version_type);
9182: BEGIN
9183: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9184: l_debug_mode := NVL(l_debug_mode, 'Y');
9185: x_msg_count := 0;
9186: x_return_status := FND_API.G_RET_STS_SUCCESS;
9187: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

Line 9187: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

9183: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9184: l_debug_mode := NVL(l_debug_mode, 'Y');
9185: x_msg_count := 0;
9186: x_return_status := FND_API.G_RET_STS_SUCCESS;
9187: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
9188: p_debug_mode => l_debug_mode );
9189:
9190: IF p_ci_id IS NULL OR
9191: p_project_id IS NULL THEN

Line 9194: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;

9190: IF p_ci_id IS NULL OR
9191: p_project_id IS NULL THEN
9192:
9193: IF l_debug_mode = 'Y' THEN
9194: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9195: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9196:
9197: pa_debug.g_err_stage:= 'Passed p_ci_id is '||p_ci_id;
9198: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 9195: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9191: p_project_id IS NULL THEN
9192:
9193: IF l_debug_mode = 'Y' THEN
9194: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9195: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9196:
9197: pa_debug.g_err_stage:= 'Passed p_ci_id is '||p_ci_id;
9198: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9199:

Line 9197: pa_debug.g_err_stage:= 'Passed p_ci_id is '||p_ci_id;

9193: IF l_debug_mode = 'Y' THEN
9194: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9195: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9196:
9197: pa_debug.g_err_stage:= 'Passed p_ci_id is '||p_ci_id;
9198: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9199:
9200: END IF;
9201:

Line 9198: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9194: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9195: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9196:
9197: pa_debug.g_err_stage:= 'Passed p_ci_id is '||p_ci_id;
9198: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9199:
9200: END IF;
9201:
9202: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 9228: pa_debug.g_err_stage:='Called API Pa_Fp_Control_Items_Utils.get_ci_versions returned error';

9224:
9225: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
9226:
9227: IF l_debug_mode = 'Y' THEN
9228: pa_debug.g_err_stage:='Called API Pa_Fp_Control_Items_Utils.get_ci_versions returned error';
9229: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9230: END IF;
9231:
9232: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 9229: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);

9225: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
9226:
9227: IF l_debug_mode = 'Y' THEN
9228: pa_debug.g_err_stage:='Called API Pa_Fp_Control_Items_Utils.get_ci_versions returned error';
9229: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9230: END IF;
9231:
9232: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9233:

Line 9244: pa_debug.g_err_stage:='Getting project currency code';

9240:
9241: END IF;
9242:
9243: IF l_debug_mode = 'Y' THEN
9244: pa_debug.g_err_stage:='Getting project currency code';
9245: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9246: END IF;
9247:
9248:

Line 9245: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);

9241: END IF;
9242:
9243: IF l_debug_mode = 'Y' THEN
9244: pa_debug.g_err_stage:='Getting project currency code';
9245: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9246: END IF;
9247:
9248:
9249: --Get the project currency code

Line 9256: pa_debug.g_err_stage:='Getting ci status code';

9252: FROM pa_projects_all
9253: WHERE project_id=p_project_id;
9254:
9255: IF l_debug_mode = 'Y' THEN
9256: pa_debug.g_err_stage:='Getting ci status code';
9257: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9258: END IF;
9259:
9260: --Get the CI status code

Line 9257: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9253: WHERE project_id=p_project_id;
9254:
9255: IF l_debug_mode = 'Y' THEN
9256: pa_debug.g_err_stage:='Getting ci status code';
9257: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9258: END IF;
9259:
9260: --Get the CI status code
9261: SELECT pps.project_system_status_code

Line 9271: pa_debug.g_err_stage:='Getting impact is mc flag';

9267:
9268: --Derive the value for x_impact_in_mc_flag. This should be 'Y' if either COST or REVENUE impact is
9269: --defined in multiple currencies
9270: IF l_debug_mode = 'Y' THEN
9271: pa_debug.g_err_stage:='Getting impact is mc flag';
9272: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9273: END IF;
9274:
9275: IF NVL(l_cost_ci_version_id,NVL(l_all_ci_version_id,l_rev_ci_version_id)) <>

Line 9272: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9268: --Derive the value for x_impact_in_mc_flag. This should be 'Y' if either COST or REVENUE impact is
9269: --defined in multiple currencies
9270: IF l_debug_mode = 'Y' THEN
9271: pa_debug.g_err_stage:='Getting impact is mc flag';
9272: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9273: END IF;
9274:
9275: IF NVL(l_cost_ci_version_id,NVL(l_all_ci_version_id,l_rev_ci_version_id)) <>
9276: NVL(l_rev_ci_version_id,NVL(l_all_ci_version_id,l_cost_ci_version_id)) THEN

Line 9313: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';

9309:
9310: END IF;
9311:
9312: IF l_debug_mode = 'Y' THEN
9313: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';
9314: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9315: END IF;
9316:
9317: --Call the API that will return the approved cost/rev current working version ids for the project

Line 9314: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9310: END IF;
9311:
9312: IF l_debug_mode = 'Y' THEN
9313: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';
9314: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9315: END IF;
9316:
9317: --Call the API that will return the approved cost/rev current working version ids for the project
9318: IF p_budget_version_id IS NULL THEN

Line 9321: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';

9317: --Call the API that will return the approved cost/rev current working version ids for the project
9318: IF p_budget_version_id IS NULL THEN
9319:
9320: IF l_debug_mode = 'Y' THEN
9321: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';
9322: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9323: END IF;
9324:
9325:

Line 9322: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9318: IF p_budget_version_id IS NULL THEN
9319:
9320: IF l_debug_mode = 'Y' THEN
9321: pa_debug.g_err_stage:='Getting app cost/rev current working version ids';
9322: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9323: END IF;
9324:
9325:
9326: pa_fp_control_items_utils.get_app_cw_ver_ids_for_proj

Line 9337: pa_debug.g_err_stage:='Called API pa_fp_control_items_utils.get_app_cw_ver_ids_for_proj returned error';

9333:
9334: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
9335:
9336: IF l_debug_mode = 'Y' THEN
9337: pa_debug.g_err_stage:='Called API pa_fp_control_items_utils.get_app_cw_ver_ids_for_proj returned error';
9338: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9339: END IF;
9340:
9341: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 9338: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);

9334: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
9335:
9336: IF l_debug_mode = 'Y' THEN
9337: pa_debug.g_err_stage:='Called API pa_fp_control_items_utils.get_app_cw_ver_ids_for_proj returned error';
9338: pa_debug.write( l_module_name,pa_debug.g_err_stage,5);
9339: END IF;
9340:
9341: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9342:

Line 9361: pa_debug.g_err_stage:='Getting the version type for the budget version id passed';

9357:
9358: ELSE
9359:
9360: IF l_debug_mode = 'Y' THEN
9361: pa_debug.g_err_stage:='Getting the version type for the budget version id passed';
9362: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9363: END IF;
9364:
9365: --Select the version details of the budget version id passed

Line 9362: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9358: ELSE
9359:
9360: IF l_debug_mode = 'Y' THEN
9361: pa_debug.g_err_stage:='Getting the version type for the budget version id passed';
9362: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9363: END IF;
9364:
9365: --Select the version details of the budget version id passed
9366: SELECT pbv.version_type,

Line 9423: pa_debug.g_err_stage:='Deriving x_cost_impl_into_app_cw_ver and x_rev_impl_into_app_cw_ver';

9419:
9420: --x_cost_impl_into_app_cw_ver should be Y if the change doc has got implemented into app_cw_ver
9421: --x_rev_impl_into_app_cw_ver should be Y if the change doc has got implemented into app_cw_ver
9422: IF l_debug_mode = 'Y' THEN
9423: pa_debug.g_err_stage:='Deriving x_cost_impl_into_app_cw_ver and x_rev_impl_into_app_cw_ver';
9424: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9425: END IF;
9426:
9427: IF NVL(l_cost_ci_version_id,l_all_ci_version_id) IS NOT NULL THEN

Line 9424: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9420: --x_cost_impl_into_app_cw_ver should be Y if the change doc has got implemented into app_cw_ver
9421: --x_rev_impl_into_app_cw_ver should be Y if the change doc has got implemented into app_cw_ver
9422: IF l_debug_mode = 'Y' THEN
9423: pa_debug.g_err_stage:='Deriving x_cost_impl_into_app_cw_ver and x_rev_impl_into_app_cw_ver';
9424: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9425: END IF;
9426:
9427: IF NVL(l_cost_ci_version_id,l_all_ci_version_id) IS NOT NULL THEN
9428:

Line 9466: pa_debug.g_err_stage:='x_cost_impl_into_app_cw_ver is '||x_cost_impl_into_app_cw_ver;

9462:
9463: END IF;
9464:
9465: IF l_debug_mode = 'Y' THEN
9466: pa_debug.g_err_stage:='x_cost_impl_into_app_cw_ver is '||x_cost_impl_into_app_cw_ver;
9467: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9468:
9469: pa_debug.g_err_stage:='x_rev_impl_into_app_cw_ver is '||x_rev_impl_into_app_cw_ver;
9470: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

Line 9467: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9463: END IF;
9464:
9465: IF l_debug_mode = 'Y' THEN
9466: pa_debug.g_err_stage:='x_cost_impl_into_app_cw_ver is '||x_cost_impl_into_app_cw_ver;
9467: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9468:
9469: pa_debug.g_err_stage:='x_rev_impl_into_app_cw_ver is '||x_rev_impl_into_app_cw_ver;
9470: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9471:

Line 9469: pa_debug.g_err_stage:='x_rev_impl_into_app_cw_ver is '||x_rev_impl_into_app_cw_ver;

9465: IF l_debug_mode = 'Y' THEN
9466: pa_debug.g_err_stage:='x_cost_impl_into_app_cw_ver is '||x_cost_impl_into_app_cw_ver;
9467: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9468:
9469: pa_debug.g_err_stage:='x_rev_impl_into_app_cw_ver is '||x_rev_impl_into_app_cw_ver;
9470: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9471:
9472: END IF;
9473:

Line 9470: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9466: pa_debug.g_err_stage:='x_cost_impl_into_app_cw_ver is '||x_cost_impl_into_app_cw_ver;
9467: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9468:
9469: pa_debug.g_err_stage:='x_rev_impl_into_app_cw_ver is '||x_rev_impl_into_app_cw_ver;
9470: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9471:
9472: END IF;
9473:
9474: --For bug 3957561

Line 9483: pa_debug.g_err_stage:='x_ci_number is '||x_ci_number;

9479: WHERE ci_id=p_ci_id
9480: AND ci.ci_type_id=ct.ci_type_id;
9481:
9482: IF l_debug_mode = 'Y' THEN
9483: pa_debug.g_err_stage:='x_ci_number is '||x_ci_number;
9484: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9485:
9486: pa_debug.g_err_stage:='x_ci_type is '||x_ci_type;
9487: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

Line 9484: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9480: AND ci.ci_type_id=ct.ci_type_id;
9481:
9482: IF l_debug_mode = 'Y' THEN
9483: pa_debug.g_err_stage:='x_ci_number is '||x_ci_number;
9484: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9485:
9486: pa_debug.g_err_stage:='x_ci_type is '||x_ci_type;
9487: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9488:

Line 9486: pa_debug.g_err_stage:='x_ci_type is '||x_ci_type;

9482: IF l_debug_mode = 'Y' THEN
9483: pa_debug.g_err_stage:='x_ci_number is '||x_ci_number;
9484: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9485:
9486: pa_debug.g_err_stage:='x_ci_type is '||x_ci_type;
9487: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9488:
9489: END IF;
9490:

Line 9487: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);

9483: pa_debug.g_err_stage:='x_ci_number is '||x_ci_number;
9484: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9485:
9486: pa_debug.g_err_stage:='x_ci_type is '||x_ci_type;
9487: pa_debug.write( l_module_name,pa_debug.g_err_stage,3);
9488:
9489: END IF;
9490:
9491: --End of bug 3957561

Line 9494: pa_debug.g_err_stage:='Exiting get_dtls_for_view_fin_imp_pg';

9490:
9491: --End of bug 3957561
9492:
9493: IF l_debug_mode = 'Y' THEN
9494: pa_debug.g_err_stage:='Exiting get_dtls_for_view_fin_imp_pg';
9495: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9496: END IF;
9497:
9498: pa_debug.reset_curr_function;

Line 9495: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9491: --End of bug 3957561
9492:
9493: IF l_debug_mode = 'Y' THEN
9494: pa_debug.g_err_stage:='Exiting get_dtls_for_view_fin_imp_pg';
9495: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9496: END IF;
9497:
9498: pa_debug.reset_curr_function;
9499:

Line 9498: pa_debug.reset_curr_function;

9494: pa_debug.g_err_stage:='Exiting get_dtls_for_view_fin_imp_pg';
9495: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9496: END IF;
9497:
9498: pa_debug.reset_curr_function;
9499:
9500: EXCEPTION
9501:
9502: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9520: pa_debug.reset_curr_function;

9516:
9517: x_msg_count := l_msg_count;
9518: END IF;
9519: x_return_status := FND_API.G_RET_STS_ERROR;
9520: pa_debug.reset_curr_function;
9521:
9522: WHEN OTHERS THEN
9523:
9524: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 9531: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9527: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
9528: ,p_procedure_name => 'get_dtls_for_view_fin_imp_pg');
9529:
9530: IF l_debug_mode = 'Y' THEN
9531: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9532: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9533: END IF;
9534:
9535: pa_debug.reset_curr_function;

Line 9532: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9528: ,p_procedure_name => 'get_dtls_for_view_fin_imp_pg');
9529:
9530: IF l_debug_mode = 'Y' THEN
9531: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9532: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9533: END IF;
9534:
9535: pa_debug.reset_curr_function;
9536: RAISE;

Line 9535: pa_debug.reset_curr_function;

9531: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9532: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9533: END IF;
9534:
9535: pa_debug.reset_curr_function;
9536: RAISE;
9537:
9538: END get_dtls_for_view_fin_imp_pg;
9539:

Line 9580: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

9576:
9577: l_app_cw_ver_rec c_app_cw_ver_csr%ROWTYPE;
9578:
9579: BEGIN
9580: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9581: l_debug_mode := NVL(l_debug_mode, 'Y');
9582: x_msg_count := 0;
9583: x_return_status := FND_API.G_RET_STS_SUCCESS;
9584: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

Line 9584: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

9580: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9581: l_debug_mode := NVL(l_debug_mode, 'Y');
9582: x_msg_count := 0;
9583: x_return_status := FND_API.G_RET_STS_SUCCESS;
9584: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
9585: p_debug_mode => l_debug_mode );
9586:
9587: IF p_project_id IS NULL THEN
9588:

Line 9590: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;

9586:
9587: IF p_project_id IS NULL THEN
9588:
9589: IF l_debug_mode = 'Y' THEN
9590: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9591: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9592:
9593: END IF;
9594:

Line 9591: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9587: IF p_project_id IS NULL THEN
9588:
9589: IF l_debug_mode = 'Y' THEN
9590: pa_debug.g_err_stage:= 'Passed project id is '||p_project_id;
9591: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9592:
9593: END IF;
9594:
9595: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 9605: pa_debug.g_err_stage:='About to derive the CW ver ids';

9601:
9602: END IF;
9603:
9604: IF l_debug_mode = 'Y' THEN
9605: pa_debug.g_err_stage:='About to derive the CW ver ids';
9606: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9607: END IF;
9608:
9609: x_app_cost_cw_ver_id:=NULL;

Line 9606: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9602: END IF;
9603:
9604: IF l_debug_mode = 'Y' THEN
9605: pa_debug.g_err_stage:='About to derive the CW ver ids';
9606: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9607: END IF;
9608:
9609: x_app_cost_cw_ver_id:=NULL;
9610: x_app_cost_cw_ver_id:=NULL;

Line 9634: pa_debug.g_err_stage:='Derived x_app_cost_cw_ver_id is '||x_app_cost_cw_ver_id ||' x_app_rev_cw_ver_id is '||x_app_rev_cw_ver_id;

9630:
9631:
9632: IF l_debug_mode = 'Y' THEN
9633:
9634: pa_debug.g_err_stage:='Derived x_app_cost_cw_ver_id is '||x_app_cost_cw_ver_id ||' x_app_rev_cw_ver_id is '||x_app_rev_cw_ver_id;
9635: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9636:
9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';
9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 9635: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9631:
9632: IF l_debug_mode = 'Y' THEN
9633:
9634: pa_debug.g_err_stage:='Derived x_app_cost_cw_ver_id is '||x_app_cost_cw_ver_id ||' x_app_rev_cw_ver_id is '||x_app_rev_cw_ver_id;
9635: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9636:
9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';
9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9639: END IF;

Line 9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';

9633:
9634: pa_debug.g_err_stage:='Derived x_app_cost_cw_ver_id is '||x_app_cost_cw_ver_id ||' x_app_rev_cw_ver_id is '||x_app_rev_cw_ver_id;
9635: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9636:
9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';
9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9639: END IF;
9640:
9641: pa_debug.reset_curr_function;

Line 9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9634: pa_debug.g_err_stage:='Derived x_app_cost_cw_ver_id is '||x_app_cost_cw_ver_id ||' x_app_rev_cw_ver_id is '||x_app_rev_cw_ver_id;
9635: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9636:
9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';
9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9639: END IF;
9640:
9641: pa_debug.reset_curr_function;
9642:

Line 9641: pa_debug.reset_curr_function;

9637: pa_debug.g_err_stage:='Exiting get_app_cw_ver_ids_for_proj';
9638: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9639: END IF;
9640:
9641: pa_debug.reset_curr_function;
9642:
9643: EXCEPTION
9644:
9645: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9666: pa_debug.reset_curr_function;

9662:
9663: x_msg_count := l_msg_count;
9664: END IF;
9665: x_return_status := FND_API.G_RET_STS_ERROR;
9666: pa_debug.reset_curr_function;
9667:
9668: WHEN OTHERS THEN
9669:
9670: CLOSE c_app_cw_ver_csr; -- Added for bug#6405905 by vvjoshi

Line 9679: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9675: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
9676: ,p_procedure_name => 'get_app_cw_ver_ids_for_proj');
9677:
9678: IF l_debug_mode = 'Y' THEN
9679: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9680: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9681: END IF;
9682: pa_debug.reset_curr_function;
9683: RAISE;

Line 9680: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9676: ,p_procedure_name => 'get_app_cw_ver_ids_for_proj');
9677:
9678: IF l_debug_mode = 'Y' THEN
9679: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9680: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9681: END IF;
9682: pa_debug.reset_curr_function;
9683: RAISE;
9684:

Line 9682: pa_debug.reset_curr_function;

9678: IF l_debug_mode = 'Y' THEN
9679: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9680: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9681: END IF;
9682: pa_debug.reset_curr_function;
9683: RAISE;
9684:
9685: END get_app_cw_ver_ids_for_proj;
9686:

Line 9708: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

9704:
9705:
9706:
9707: BEGIN
9708: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9709:
9710: IF l_debug_mode = 'Y' THEN
9711: pa_debug.g_err_stage:='get_impl_agr_revenue - pa_fp_control_items_utils ';
9712: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 9711: pa_debug.g_err_stage:='get_impl_agr_revenue - pa_fp_control_items_utils ';

9707: BEGIN
9708: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9709:
9710: IF l_debug_mode = 'Y' THEN
9711: pa_debug.g_err_stage:='get_impl_agr_revenue - pa_fp_control_items_utils ';
9712: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9713: END IF;
9714: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
9715: p_debug_mode => l_debug_mode );

Line 9712: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9708: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9709:
9710: IF l_debug_mode = 'Y' THEN
9711: pa_debug.g_err_stage:='get_impl_agr_revenue - pa_fp_control_items_utils ';
9712: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9713: END IF;
9714: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
9715: p_debug_mode => l_debug_mode );
9716:

Line 9714: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

9710: IF l_debug_mode = 'Y' THEN
9711: pa_debug.g_err_stage:='get_impl_agr_revenue - pa_fp_control_items_utils ';
9712: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9713: END IF;
9714: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
9715: p_debug_mode => l_debug_mode );
9716:
9717: -- Throwing error if the inputs are Null
9718: IF p_project_id IS NULL OR

Line 9721: pa_debug.g_err_stage:='Input p_project_id/p_ci_id is NULL';

9717: -- Throwing error if the inputs are Null
9718: IF p_project_id IS NULL OR
9719: p_ci_id IS NULL THEN
9720: IF l_debug_mode = 'Y' THEN
9721: pa_debug.g_err_stage:='Input p_project_id/p_ci_id is NULL';
9722: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9723: END IF;
9724: pa_debug.reset_curr_function;
9725: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 9722: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9718: IF p_project_id IS NULL OR
9719: p_ci_id IS NULL THEN
9720: IF l_debug_mode = 'Y' THEN
9721: pa_debug.g_err_stage:='Input p_project_id/p_ci_id is NULL';
9722: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9723: END IF;
9724: pa_debug.reset_curr_function;
9725: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9726: END IF;

Line 9724: pa_debug.reset_curr_function;

9720: IF l_debug_mode = 'Y' THEN
9721: pa_debug.g_err_stage:='Input p_project_id/p_ci_id is NULL';
9722: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9723: END IF;
9724: pa_debug.reset_curr_function;
9725: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9726: END IF;
9727:
9728: BEGIN

Line 9749: pa_debug.g_err_stage:='No Rev Current Working Version Exists';

9745:
9746: EXCEPTION
9747: WHEN NO_DATA_FOUND THEN
9748: IF l_debug_mode = 'Y' THEN
9749: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9751: END IF;
9752: pa_debug.reset_curr_function;
9753:

Line 9750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9746: EXCEPTION
9747: WHEN NO_DATA_FOUND THEN
9748: IF l_debug_mode = 'Y' THEN
9749: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9751: END IF;
9752: pa_debug.reset_curr_function;
9753:
9754: RETURN l_impl_agr_rev_amt;

Line 9752: pa_debug.reset_curr_function;

9748: IF l_debug_mode = 'Y' THEN
9749: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9750: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9751: END IF;
9752: pa_debug.reset_curr_function;
9753:
9754: RETURN l_impl_agr_rev_amt;
9755:
9756: WHEN OTHERS THEN

Line 9758: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9754: RETURN l_impl_agr_rev_amt;
9755:
9756: WHEN OTHERS THEN
9757: IF l_debug_mode = 'Y' THEN
9758: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9759: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9760: END IF;
9761: pa_debug.reset_curr_function;
9762: RAISE;

Line 9759: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);

9755:
9756: WHEN OTHERS THEN
9757: IF l_debug_mode = 'Y' THEN
9758: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9759: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9760: END IF;
9761: pa_debug.reset_curr_function;
9762: RAISE;
9763: END;

Line 9761: pa_debug.reset_curr_function;

9757: IF l_debug_mode = 'Y' THEN
9758: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9759: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9760: END IF;
9761: pa_debug.reset_curr_function;
9762: RAISE;
9763: END;
9764: IF l_debug_mode = 'Y' THEN
9765: pa_debug.g_err_stage:='Rev Current Working version id: ' || l_cw_bv_id;

Line 9765: pa_debug.g_err_stage:='Rev Current Working version id: ' || l_cw_bv_id;

9761: pa_debug.reset_curr_function;
9762: RAISE;
9763: END;
9764: IF l_debug_mode = 'Y' THEN
9765: pa_debug.g_err_stage:='Rev Current Working version id: ' || l_cw_bv_id;
9766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9767: END IF;
9768:
9769: BEGIN

Line 9766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9762: RAISE;
9763: END;
9764: IF l_debug_mode = 'Y' THEN
9765: pa_debug.g_err_stage:='Rev Current Working version id: ' || l_cw_bv_id;
9766: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9767: END IF;
9768:
9769: BEGIN
9770: -- Selecting the revenue amount implemeted in agreement currency

Line 9783: pa_debug.g_err_stage:='No Rev Current Working Version Exists';

9779:
9780: EXCEPTION
9781: WHEN NO_DATA_FOUND THEN
9782: IF l_debug_mode = 'Y' THEN
9783: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9784: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9785: END IF;
9786: pa_debug.reset_curr_function;
9787:

Line 9784: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9780: EXCEPTION
9781: WHEN NO_DATA_FOUND THEN
9782: IF l_debug_mode = 'Y' THEN
9783: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9784: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9785: END IF;
9786: pa_debug.reset_curr_function;
9787:
9788: RETURN l_impl_agr_rev_amt;

Line 9786: pa_debug.reset_curr_function;

9782: IF l_debug_mode = 'Y' THEN
9783: pa_debug.g_err_stage:='No Rev Current Working Version Exists';
9784: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9785: END IF;
9786: pa_debug.reset_curr_function;
9787:
9788: RETURN l_impl_agr_rev_amt;
9789: WHEN OTHERS THEN
9790: IF l_debug_mode = 'Y' THEN

Line 9791: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9787:
9788: RETURN l_impl_agr_rev_amt;
9789: WHEN OTHERS THEN
9790: IF l_debug_mode = 'Y' THEN
9791: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9792: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9793: END IF;
9794: pa_debug.reset_curr_function;
9795: RAISE;

Line 9792: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);

9788: RETURN l_impl_agr_rev_amt;
9789: WHEN OTHERS THEN
9790: IF l_debug_mode = 'Y' THEN
9791: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9792: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9793: END IF;
9794: pa_debug.reset_curr_function;
9795: RAISE;
9796: END;

Line 9794: pa_debug.reset_curr_function;

9790: IF l_debug_mode = 'Y' THEN
9791: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9792: pa_debug.write(l_module_name || g_module_name,pa_debug.g_err_stage,5);
9793: END IF;
9794: pa_debug.reset_curr_function;
9795: RAISE;
9796: END;
9797:
9798: IF l_debug_mode = 'Y' THEN

Line 9799: pa_debug.g_err_stage:='Agr Revenue Amount: ' || l_impl_agr_rev_amt;

9795: RAISE;
9796: END;
9797:
9798: IF l_debug_mode = 'Y' THEN
9799: pa_debug.g_err_stage:='Agr Revenue Amount: ' || l_impl_agr_rev_amt;
9800: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9801: END IF;
9802:
9803: pa_debug.reset_curr_function;

Line 9800: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9796: END;
9797:
9798: IF l_debug_mode = 'Y' THEN
9799: pa_debug.g_err_stage:='Agr Revenue Amount: ' || l_impl_agr_rev_amt;
9800: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9801: END IF;
9802:
9803: pa_debug.reset_curr_function;
9804:

Line 9803: pa_debug.reset_curr_function;

9799: pa_debug.g_err_stage:='Agr Revenue Amount: ' || l_impl_agr_rev_amt;
9800: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9801: END IF;
9802:
9803: pa_debug.reset_curr_function;
9804:
9805: RETURN l_impl_agr_rev_amt;
9806:
9807: EXCEPTION

Line 9819: pa_debug.reset_curr_function;

9815: ,p_msg_data => l_msg_data
9816: ,p_data => l_data
9817: ,p_msg_index_out => l_msg_index_out);
9818: END IF;
9819: pa_debug.reset_curr_function;
9820:
9821: WHEN OTHERS THEN
9822: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
9823: ,p_procedure_name => 'get_app_cw_ver_ids_for_proj');

Line 9826: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9822: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
9823: ,p_procedure_name => 'get_app_cw_ver_ids_for_proj');
9824:
9825: IF l_debug_mode = 'Y' THEN
9826: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9827: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9828: END IF;
9829: pa_debug.reset_curr_function;
9830: RAISE;

Line 9827: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9823: ,p_procedure_name => 'get_app_cw_ver_ids_for_proj');
9824:
9825: IF l_debug_mode = 'Y' THEN
9826: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9827: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9828: END IF;
9829: pa_debug.reset_curr_function;
9830: RAISE;
9831: END get_impl_agr_revenue;

Line 9829: pa_debug.reset_curr_function;

9825: IF l_debug_mode = 'Y' THEN
9826: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9827: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9828: END IF;
9829: pa_debug.reset_curr_function;
9830: RAISE;
9831: END get_impl_agr_revenue;
9832:
9833: /* Function returns 'Y' if the change order has been implemented/included into ANY budget version. */

Line 9879: pa_debug.set_curr_function(

9875: x_msg_count := 0;
9876: x_return_status := FND_API.G_RET_STS_SUCCESS;
9877:
9878: -- Set curr function
9879: pa_debug.set_curr_function(
9880: p_function =>'PAFPCIUB.get_txn_curr_code_of_ci_ver'
9881: ,p_debug_mode => P_PA_DEBUG_MODE );
9882:
9883: -- Validate input parameters

Line 9881: ,p_debug_mode => P_PA_DEBUG_MODE );

9877:
9878: -- Set curr function
9879: pa_debug.set_curr_function(
9880: p_function =>'PAFPCIUB.get_txn_curr_code_of_ci_ver'
9881: ,p_debug_mode => P_PA_DEBUG_MODE );
9882:
9883: -- Validate input parameters
9884: IF P_PA_DEBUG_MODE = 'Y' THEN
9885: pa_debug.g_err_stage:='Validating input parameters';

Line 9884: IF P_PA_DEBUG_MODE = 'Y' THEN

9880: p_function =>'PAFPCIUB.get_txn_curr_code_of_ci_ver'
9881: ,p_debug_mode => P_PA_DEBUG_MODE );
9882:
9883: -- Validate input parameters
9884: IF P_PA_DEBUG_MODE = 'Y' THEN
9885: pa_debug.g_err_stage:='Validating input parameters';
9886: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,3);
9887: END IF;
9888:

Line 9885: pa_debug.g_err_stage:='Validating input parameters';

9881: ,p_debug_mode => P_PA_DEBUG_MODE );
9882:
9883: -- Validate input parameters
9884: IF P_PA_DEBUG_MODE = 'Y' THEN
9885: pa_debug.g_err_stage:='Validating input parameters';
9886: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,3);
9887: END IF;
9888:
9889:

Line 9886: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,3);

9882:
9883: -- Validate input parameters
9884: IF P_PA_DEBUG_MODE = 'Y' THEN
9885: pa_debug.g_err_stage:='Validating input parameters';
9886: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,3);
9887: END IF;
9888:
9889:
9890: IF (p_project_id IS NULL) OR (p_ci_id IS NULL)

Line 9893: IF P_PA_DEBUG_MODE = 'Y' THEN

9889:
9890: IF (p_project_id IS NULL) OR (p_ci_id IS NULL)
9891: THEN
9892:
9893: IF P_PA_DEBUG_MODE = 'Y' THEN
9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9896:
9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;

Line 9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

9890: IF (p_project_id IS NULL) OR (p_ci_id IS NULL)
9891: THEN
9892:
9893: IF P_PA_DEBUG_MODE = 'Y' THEN
9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9896:
9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;
9898: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);

Line 9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);

9891: THEN
9892:
9893: IF P_PA_DEBUG_MODE = 'Y' THEN
9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9896:
9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;
9898: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9899: END IF;

Line 9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;

9893: IF P_PA_DEBUG_MODE = 'Y' THEN
9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9896:
9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;
9898: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9899: END IF;
9900:
9901: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 9898: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);

9894: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
9895: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9896:
9897: pa_debug.g_err_stage:='p_ci_id = '||p_ci_id;
9898: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9899: END IF;
9900:
9901: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
9902: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 9927: pa_debug.reset_curr_function();

9923: AND rac.budget_version_id = bv.budget_version_id
9924: AND rownum=1;
9925:
9926: -- reset curr function
9927: pa_debug.reset_curr_function();
9928:
9929: Exception
9930: When no_data_found Then
9931: -- reset curr function

Line 9932: pa_debug.reset_curr_function();

9928:
9929: Exception
9930: When no_data_found Then
9931: -- reset curr function
9932: pa_debug.reset_curr_function();
9933: End;
9934:
9935: EXCEPTION
9936: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9954: pa_debug.reset_curr_function;

9950:
9951: x_msg_count := l_msg_count;
9952: END IF;
9953: x_return_status := FND_API.G_RET_STS_ERROR;
9954: pa_debug.reset_curr_function;
9955: WHEN Others THEN
9956:
9957: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
9958: x_msg_count := 1;

Line 9964: IF P_PA_DEBUG_MODE = 'Y' THEN

9960:
9961: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
9962: ,p_procedure_name => 'get_txn_curr_code_of_ci_ver');
9963:
9964: IF P_PA_DEBUG_MODE = 'Y' THEN
9965: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9966: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9967: END IF;
9968:

Line 9965: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

9961: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'Pa_Fp_Control_Items_Utils'
9962: ,p_procedure_name => 'get_txn_curr_code_of_ci_ver');
9963:
9964: IF P_PA_DEBUG_MODE = 'Y' THEN
9965: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9966: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9967: END IF;
9968:
9969: -- reset curr function

Line 9966: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);

9962: ,p_procedure_name => 'get_txn_curr_code_of_ci_ver');
9963:
9964: IF P_PA_DEBUG_MODE = 'Y' THEN
9965: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
9966: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9967: END IF;
9968:
9969: -- reset curr function
9970: pa_debug.Reset_Curr_Function();

Line 9970: pa_debug.Reset_Curr_Function();

9966: pa_debug.write('get_txn_curr_code_of_ci_ver: ' || g_module_name,pa_debug.g_err_stage,5);
9967: END IF;
9968:
9969: -- reset curr function
9970: pa_debug.Reset_Curr_Function();
9971:
9972: RAISE;
9973:
9974: END get_txn_curr_code_of_ci_ver;

Line 9994: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

9990:
9991: is_delete_allowed VARCHAR2(1) := 'Y';
9992:
9993: BEGIN
9994: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9995:
9996: IF l_debug_mode = 'Y' THEN
9997: pa_debug.g_err_stage:='validate_fp_ci_type_delete - pa_fp_control_items_utils ';
9998: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 9997: pa_debug.g_err_stage:='validate_fp_ci_type_delete - pa_fp_control_items_utils ';

9993: BEGIN
9994: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9995:
9996: IF l_debug_mode = 'Y' THEN
9997: pa_debug.g_err_stage:='validate_fp_ci_type_delete - pa_fp_control_items_utils ';
9998: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9999: END IF;
10000: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
10001: p_debug_mode => l_debug_mode );

Line 9998: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9994: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9995:
9996: IF l_debug_mode = 'Y' THEN
9997: pa_debug.g_err_stage:='validate_fp_ci_type_delete - pa_fp_control_items_utils ';
9998: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9999: END IF;
10000: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
10001: p_debug_mode => l_debug_mode );
10002:

Line 10000: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

9996: IF l_debug_mode = 'Y' THEN
9997: pa_debug.g_err_stage:='validate_fp_ci_type_delete - pa_fp_control_items_utils ';
9998: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9999: END IF;
10000: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
10001: p_debug_mode => l_debug_mode );
10002:
10003: IF l_debug_mode = 'Y' THEN
10004: pa_debug.g_err_stage:='Entering validate_fp_ci_type_delete';

Line 10004: pa_debug.g_err_stage:='Entering validate_fp_ci_type_delete';

10000: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
10001: p_debug_mode => l_debug_mode );
10002:
10003: IF l_debug_mode = 'Y' THEN
10004: pa_debug.g_err_stage:='Entering validate_fp_ci_type_delete';
10005: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10006: END IF;
10007:
10008: IF p_ci_type_id IS NULL THEN

Line 10005: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10001: p_debug_mode => l_debug_mode );
10002:
10003: IF l_debug_mode = 'Y' THEN
10004: pa_debug.g_err_stage:='Entering validate_fp_ci_type_delete';
10005: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10006: END IF;
10007:
10008: IF p_ci_type_id IS NULL THEN
10009: IF l_debug_mode = 'Y' THEN

Line 10010: pa_debug.g_err_stage:='Input p_ci_type_id is NULL';

10006: END IF;
10007:
10008: IF p_ci_type_id IS NULL THEN
10009: IF l_debug_mode = 'Y' THEN
10010: pa_debug.g_err_stage:='Input p_ci_type_id is NULL';
10011: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10012: END IF;
10013: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
10014: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 10011: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10007:
10008: IF p_ci_type_id IS NULL THEN
10009: IF l_debug_mode = 'Y' THEN
10010: pa_debug.g_err_stage:='Input p_ci_type_id is NULL';
10011: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10012: END IF;
10013: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
10014: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
10015: p_token1 => 'PROCEDURENAME',

Line 10017: pa_debug.reset_curr_function;

10013: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
10014: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
10015: p_token1 => 'PROCEDURENAME',
10016: p_value1 => 'PAFPCIUB.validate_fp_ci_type_delete');
10017: pa_debug.reset_curr_function;
10018: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
10019: END IF;
10020:
10021: IF l_debug_mode = 'Y' THEN

Line 10022: pa_debug.g_err_stage:='Checkin if delete allowed';

10018: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
10019: END IF;
10020:
10021: IF l_debug_mode = 'Y' THEN
10022: pa_debug.g_err_stage:='Checkin if delete allowed';
10023: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10024: END IF;
10025:
10026: BEGIN

Line 10023: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10019: END IF;
10020:
10021: IF l_debug_mode = 'Y' THEN
10022: pa_debug.g_err_stage:='Checkin if delete allowed';
10023: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10024: END IF;
10025:
10026: BEGIN
10027: SELECT 'N'

Line 10039: pa_debug.g_err_stage:='Check completed';

10035: RETURN is_delete_allowed;
10036: END;
10037:
10038: IF l_debug_mode = 'Y' THEN
10039: pa_debug.g_err_stage:='Check completed';
10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';

Line 10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10036: END;
10037:
10038: IF l_debug_mode = 'Y' THEN
10039: pa_debug.g_err_stage:='Check completed';
10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

Line 10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;

10037:
10038: IF l_debug_mode = 'Y' THEN
10039: pa_debug.g_err_stage:='Check completed';
10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10045: END IF;

Line 10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10038: IF l_debug_mode = 'Y' THEN
10039: pa_debug.g_err_stage:='Check completed';
10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10045: END IF;
10046:

Line 10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';

10039: pa_debug.g_err_stage:='Check completed';
10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10045: END IF;
10046:
10047: pa_debug.reset_curr_function;

Line 10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

10040: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10041: pa_debug.g_err_stage:='Value returned: ' || is_delete_allowed;
10042: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10045: END IF;
10046:
10047: pa_debug.reset_curr_function;
10048:

Line 10047: pa_debug.reset_curr_function;

10043: pa_debug.g_err_stage:='Leaving validate_fp_ci_type_delete';
10044: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
10045: END IF;
10046:
10047: pa_debug.reset_curr_function;
10048:
10049: RETURN is_delete_allowed;
10050:
10051: EXCEPTION

Line 10063: pa_debug.reset_curr_function;

10059: ,p_msg_data => l_msg_data
10060: ,p_data => l_data
10061: ,p_msg_index_out => l_msg_index_out);
10062: END IF;
10063: pa_debug.reset_curr_function;
10064: WHEN OTHERS THEN
10065: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
10066: ,p_procedure_name => 'validate_fp_ci_type_delete');
10067:

Line 10069: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10065: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPCIUB'
10066: ,p_procedure_name => 'validate_fp_ci_type_delete');
10067:
10068: IF l_debug_mode = 'Y' THEN
10069: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10070: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
10071: END IF;
10072: pa_debug.reset_curr_function;
10073: RAISE;

Line 10070: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

10066: ,p_procedure_name => 'validate_fp_ci_type_delete');
10067:
10068: IF l_debug_mode = 'Y' THEN
10069: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10070: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
10071: END IF;
10072: pa_debug.reset_curr_function;
10073: RAISE;
10074: END validate_fp_ci_type_delete;

Line 10072: pa_debug.reset_curr_function;

10068: IF l_debug_mode = 'Y' THEN
10069: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10070: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
10071: END IF;
10072: pa_debug.reset_curr_function;
10073: RAISE;
10074: END validate_fp_ci_type_delete;
10075:
10076: END Pa_Fp_Control_Items_Utils;