DBA Data[Home] [Help]

APPS.PA_FIN_PLAN_UTILS dependencies on PA_DEBUG

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

14:
15: -- This function takes a lookup type and code, and returns the meaning
16: -- useful when wanting to populate VO's with the meaning for display
17: -- in a table
18: P_PA_DEBUG_MODE varchar2(1) := NVL(FND_PROFILE.value('PA_DEBUG_MODE'), 'N');
19:
20: --bug 5962744
21:
22: G_Chg_Reason varchar2(80);

Line 98: IF P_PA_DEBUG_MODE = 'Y' THEN

94: l_approved_rev_plan_type_flag pa_fin_plan_types_b.approved_rev_plan_type_flag%TYPE;
95: l_budget_version_id pa_budget_Versions.budget_version_id%TYPE;
96:
97: BEGIN
98: IF P_PA_DEBUG_MODE = 'Y' THEN
99: pa_debug.init_err_stack ('pa_fin_plan_utils.is_plan_type_addition_allowed');
100: END IF;
101:
102: /* Changes for FP.M, Tracking Bug No - 3354518. Adding conditon in the where clause below to

Line 99: pa_debug.init_err_stack ('pa_fin_plan_utils.is_plan_type_addition_allowed');

95: l_budget_version_id pa_budget_Versions.budget_version_id%TYPE;
96:
97: BEGIN
98: IF P_PA_DEBUG_MODE = 'Y' THEN
99: pa_debug.init_err_stack ('pa_fin_plan_utils.is_plan_type_addition_allowed');
100: END IF;
101:
102: /* Changes for FP.M, Tracking Bug No - 3354518. Adding conditon in the where clause below to
103: check for new column use_for_workplan flag. This column indicates if a plan type is being

Line 170: IF P_PA_DEBUG_MODE = 'Y' THEN

166: WHEN NO_DATA_FOUND THEN
167: l_valid_status :='S';
168: END;
169: END IF;
170: IF P_PA_DEBUG_MODE = 'Y' THEN
171: pa_debug.reset_err_stack;
172: END IF;
173: RETURN l_valid_status;
174: EXCEPTION

Line 171: pa_debug.reset_err_stack;

167: l_valid_status :='S';
168: END;
169: END IF;
170: IF P_PA_DEBUG_MODE = 'Y' THEN
171: pa_debug.reset_err_stack;
172: END IF;
173: RETURN l_valid_status;
174: EXCEPTION
175:

Line 179: IF P_PA_DEBUG_MODE = 'Y' THEN

175:
176: /* Changes for FP.M, Tracking Bug No - 3354518. Adding Exception handling for NO_DATA_FOUND
177: to return Failure Status as per the where clause added above for use_for_workplan_flag */
178: WHEN NO_DATA_FOUND THEN
179: IF P_PA_DEBUG_MODE = 'Y' THEN
180: pa_debug.reset_err_stack;
181: END IF;
182: RETURN 'F';
183:

Line 180: pa_debug.reset_err_stack;

176: /* Changes for FP.M, Tracking Bug No - 3354518. Adding Exception handling for NO_DATA_FOUND
177: to return Failure Status as per the where clause added above for use_for_workplan_flag */
178: WHEN NO_DATA_FOUND THEN
179: IF P_PA_DEBUG_MODE = 'Y' THEN
180: pa_debug.reset_err_stack;
181: END IF;
182: RETURN 'F';
183:
184: WHEN OTHERS THEN

Line 185: IF P_PA_DEBUG_MODE = 'Y' THEN

181: END IF;
182: RETURN 'F';
183:
184: WHEN OTHERS THEN
185: IF P_PA_DEBUG_MODE = 'Y' THEN
186: pa_debug.reset_err_stack;
187: END IF;
188: RETURN 'F';
189:

Line 186: pa_debug.reset_err_stack;

182: RETURN 'F';
183:
184: WHEN OTHERS THEN
185: IF P_PA_DEBUG_MODE = 'Y' THEN
186: pa_debug.reset_err_stack;
187: END IF;
188: RETURN 'F';
189:
190: END is_plan_type_addition_allowed;

Line 635: IF P_PA_DEBUG_MODE = 'Y' THEN

631:
632:
633: BEGIN
634:
635: IF P_PA_DEBUG_MODE = 'Y' THEN
636: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Baselined_Version_Info');
637: END IF;
638: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
639: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 636: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Baselined_Version_Info');

632:
633: BEGIN
634:
635: IF P_PA_DEBUG_MODE = 'Y' THEN
636: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Baselined_Version_Info');
637: END IF;
638: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
639: l_debug_mode := NVL(l_debug_mode, 'Y');
640: IF P_PA_DEBUG_MODE = 'Y' THEN

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

634:
635: IF P_PA_DEBUG_MODE = 'Y' THEN
636: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Baselined_Version_Info');
637: END IF;
638: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
639: l_debug_mode := NVL(l_debug_mode, 'Y');
640: IF P_PA_DEBUG_MODE = 'Y' THEN
641: pa_debug.set_process('Get_Baselined_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
642: END IF;

Line 640: IF P_PA_DEBUG_MODE = 'Y' THEN

636: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Baselined_Version_Info');
637: END IF;
638: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
639: l_debug_mode := NVL(l_debug_mode, 'Y');
640: IF P_PA_DEBUG_MODE = 'Y' THEN
641: pa_debug.set_process('Get_Baselined_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
642: END IF;
643: x_msg_count := 0;
644: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 641: pa_debug.set_process('Get_Baselined_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);

637: END IF;
638: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
639: l_debug_mode := NVL(l_debug_mode, 'Y');
640: IF P_PA_DEBUG_MODE = 'Y' THEN
641: pa_debug.set_process('Get_Baselined_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
642: END IF;
643: x_msg_count := 0;
644: x_return_status := FND_API.G_RET_STS_SUCCESS;
645:

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

644: x_return_status := FND_API.G_RET_STS_SUCCESS;
645:
646: -- Check for business rules violations
647:
648: pa_debug.g_err_stage:='Validating input parameters';
649: IF P_PA_DEBUG_MODE = 'Y' THEN
650: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
651: END IF;
652:

Line 649: IF P_PA_DEBUG_MODE = 'Y' THEN

645:
646: -- Check for business rules violations
647:
648: pa_debug.g_err_stage:='Validating input parameters';
649: IF P_PA_DEBUG_MODE = 'Y' THEN
650: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
651: END IF;
652:
653: IF (p_project_id IS NULL) OR

Line 650: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

646: -- Check for business rules violations
647:
648: pa_debug.g_err_stage:='Validating input parameters';
649: IF P_PA_DEBUG_MODE = 'Y' THEN
650: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
651: END IF;
652:
653: IF (p_project_id IS NULL) OR
654: (p_fin_plan_type_id IS NULL)

Line 657: pa_debug.g_err_stage:='Project_id = '||p_project_id;

653: IF (p_project_id IS NULL) OR
654: (p_fin_plan_type_id IS NULL)
655: THEN
656:
657: pa_debug.g_err_stage:='Project_id = '||p_project_id;
658: IF P_PA_DEBUG_MODE = 'Y' THEN
659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

Line 658: IF P_PA_DEBUG_MODE = 'Y' THEN

654: (p_fin_plan_type_id IS NULL)
655: THEN
656:
657: pa_debug.g_err_stage:='Project_id = '||p_project_id;
658: IF P_PA_DEBUG_MODE = 'Y' THEN
659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
662: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

655: THEN
656:
657: pa_debug.g_err_stage:='Project_id = '||p_project_id;
658: IF P_PA_DEBUG_MODE = 'Y' THEN
659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
662: IF P_PA_DEBUG_MODE = 'Y' THEN
663: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

657: pa_debug.g_err_stage:='Project_id = '||p_project_id;
658: IF P_PA_DEBUG_MODE = 'Y' THEN
659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
662: IF P_PA_DEBUG_MODE = 'Y' THEN
663: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
664: END IF;
665:

Line 662: IF P_PA_DEBUG_MODE = 'Y' THEN

658: IF P_PA_DEBUG_MODE = 'Y' THEN
659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
662: IF P_PA_DEBUG_MODE = 'Y' THEN
663: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
664: END IF;
665:
666: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 663: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

659: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
660: END IF;
661: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
662: IF P_PA_DEBUG_MODE = 'Y' THEN
663: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
664: END IF;
665:
666: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
667: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 675: pa_debug.g_err_stage:='Fetching fin plan preference code ';

671: END IF;
672:
673: --Fetch fin plan preference code
674:
675: pa_debug.g_err_stage:='Fetching fin plan preference code ';
676: IF P_PA_DEBUG_MODE = 'Y' THEN
677: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
678: END IF;
679:

Line 676: IF P_PA_DEBUG_MODE = 'Y' THEN

672:
673: --Fetch fin plan preference code
674:
675: pa_debug.g_err_stage:='Fetching fin plan preference code ';
676: IF P_PA_DEBUG_MODE = 'Y' THEN
677: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
678: END IF;
679:
680: SELECT fin_plan_preference_code

Line 677: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

673: --Fetch fin plan preference code
674:
675: pa_debug.g_err_stage:='Fetching fin plan preference code ';
676: IF P_PA_DEBUG_MODE = 'Y' THEN
677: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
678: END IF;
679:
680: SELECT fin_plan_preference_code
681: INTO l_fp_preference_code

Line 693: pa_debug.g_err_stage:='Version_Type = '||p_version_type;

689: (p_version_type IS NULL) THEN
690:
691: --In this case version_type should be passed and so raise error
692:
693: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
694: IF P_PA_DEBUG_MODE = 'Y' THEN
695: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
696: END IF;
697:

Line 694: IF P_PA_DEBUG_MODE = 'Y' THEN

690:
691: --In this case version_type should be passed and so raise error
692:
693: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
694: IF P_PA_DEBUG_MODE = 'Y' THEN
695: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
696: END IF;
697:
698: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 695: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

691: --In this case version_type should be passed and so raise error
692:
693: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
694: IF P_PA_DEBUG_MODE = 'Y' THEN
695: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
696: END IF;
697:
698: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
699: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 705: pa_debug.g_err_stage:='Parameter validation complete ';

701: RAISE Invalid_Arg_Exc;
702:
703: END IF;
704:
705: pa_debug.g_err_stage:='Parameter validation complete ';
706: IF P_PA_DEBUG_MODE = 'Y' THEN
707: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
708: END IF;
709:

Line 706: IF P_PA_DEBUG_MODE = 'Y' THEN

702:
703: END IF;
704:
705: pa_debug.g_err_stage:='Parameter validation complete ';
706: IF P_PA_DEBUG_MODE = 'Y' THEN
707: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
708: END IF;
709:
710: --Fetch l_element_type ifn't passed and could be derived

Line 707: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

703: END IF;
704:
705: pa_debug.g_err_stage:='Parameter validation complete ';
706: IF P_PA_DEBUG_MODE = 'Y' THEN
707: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
708: END IF;
709:
710: --Fetch l_element_type ifn't passed and could be derived
711:

Line 732: pa_debug.g_err_stage:='Fetching Baselined Version';

728: END IF;
729:
730: --get baselined version if any
731:
732: pa_debug.g_err_stage:='Fetching Baselined Version';
733: IF P_PA_DEBUG_MODE = 'Y' THEN
734: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
735: END IF;
736:

Line 733: IF P_PA_DEBUG_MODE = 'Y' THEN

729:
730: --get baselined version if any
731:
732: pa_debug.g_err_stage:='Fetching Baselined Version';
733: IF P_PA_DEBUG_MODE = 'Y' THEN
734: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
735: END IF;
736:
737: BEGIN

Line 734: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

730: --get baselined version if any
731:
732: pa_debug.g_err_stage:='Fetching Baselined Version';
733: IF P_PA_DEBUG_MODE = 'Y' THEN
734: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
735: END IF;
736:
737: BEGIN
738:

Line 750: pa_debug.g_err_stage:='Fetching fp options id';

746: AND ci_id IS NULL; -- -- Added an extra clause ci_id IS NULL--Bug # 3507156
747:
748: --Fetch fp options id using plan version id
749:
750: pa_debug.g_err_stage:='Fetching fp options id';
751: IF P_PA_DEBUG_MODE = 'Y' THEN
752: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
753: END IF;
754:

Line 751: IF P_PA_DEBUG_MODE = 'Y' THEN

747:
748: --Fetch fp options id using plan version id
749:
750: pa_debug.g_err_stage:='Fetching fp options id';
751: IF P_PA_DEBUG_MODE = 'Y' THEN
752: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
753: END IF;
754:
755: SELECT proj_fp_options_id

Line 752: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

748: --Fetch fp options id using plan version id
749:
750: pa_debug.g_err_stage:='Fetching fp options id';
751: IF P_PA_DEBUG_MODE = 'Y' THEN
752: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
753: END IF;
754:
755: SELECT proj_fp_options_id
756: INTO l_fp_options_id

Line 776: pa_debug.g_err_stage:='Exiting Get_Baselined_Version_Info';

772: x_fin_plan_version_id := l_baselined_version_id;
773:
774: x_fp_options_id := l_fp_options_id;
775:
776: pa_debug.g_err_stage:='Exiting Get_Baselined_Version_Info';
777: IF P_PA_DEBUG_MODE = 'Y' THEN
778: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
779: pa_debug.reset_err_stack;
780: END IF;

Line 777: IF P_PA_DEBUG_MODE = 'Y' THEN

773:
774: x_fp_options_id := l_fp_options_id;
775:
776: pa_debug.g_err_stage:='Exiting Get_Baselined_Version_Info';
777: IF P_PA_DEBUG_MODE = 'Y' THEN
778: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
779: pa_debug.reset_err_stack;
780: END IF;
781: EXCEPTION

Line 778: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

774: x_fp_options_id := l_fp_options_id;
775:
776: pa_debug.g_err_stage:='Exiting Get_Baselined_Version_Info';
777: IF P_PA_DEBUG_MODE = 'Y' THEN
778: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
779: pa_debug.reset_err_stack;
780: END IF;
781: EXCEPTION
782:

Line 779: pa_debug.reset_err_stack;

775:
776: pa_debug.g_err_stage:='Exiting Get_Baselined_Version_Info';
777: IF P_PA_DEBUG_MODE = 'Y' THEN
778: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
779: pa_debug.reset_err_stack;
780: END IF;
781: EXCEPTION
782:
783: WHEN Invalid_Arg_Exc THEN

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

804: END IF;
805:
806: x_return_status := FND_API.G_RET_STS_ERROR;
807:
808: pa_debug.g_err_stage:='Invalid Arguments Passed';
809: IF P_PA_DEBUG_MODE = 'Y' THEN
810: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
811: pa_debug.reset_err_stack;
812: END IF;

Line 809: IF P_PA_DEBUG_MODE = 'Y' THEN

805:
806: x_return_status := FND_API.G_RET_STS_ERROR;
807:
808: pa_debug.g_err_stage:='Invalid Arguments Passed';
809: IF P_PA_DEBUG_MODE = 'Y' THEN
810: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
811: pa_debug.reset_err_stack;
812: END IF;
813: RAISE;

Line 810: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

806: x_return_status := FND_API.G_RET_STS_ERROR;
807:
808: pa_debug.g_err_stage:='Invalid Arguments Passed';
809: IF P_PA_DEBUG_MODE = 'Y' THEN
810: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
811: pa_debug.reset_err_stack;
812: END IF;
813: RAISE;
814:

Line 811: pa_debug.reset_err_stack;

807:
808: pa_debug.g_err_stage:='Invalid Arguments Passed';
809: IF P_PA_DEBUG_MODE = 'Y' THEN
810: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
811: pa_debug.reset_err_stack;
812: END IF;
813: RAISE;
814:
815: WHEN Others THEN

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

820:
821: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
822: ,p_procedure_name => 'GET_BASELINED_VERSION_INFO');
823:
824: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
825: IF P_PA_DEBUG_MODE = 'Y' THEN
826: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
827: pa_debug.reset_err_stack;
828: END IF;

Line 825: IF P_PA_DEBUG_MODE = 'Y' THEN

821: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
822: ,p_procedure_name => 'GET_BASELINED_VERSION_INFO');
823:
824: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
825: IF P_PA_DEBUG_MODE = 'Y' THEN
826: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
827: pa_debug.reset_err_stack;
828: END IF;
829: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 826: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

822: ,p_procedure_name => 'GET_BASELINED_VERSION_INFO');
823:
824: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
825: IF P_PA_DEBUG_MODE = 'Y' THEN
826: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
827: pa_debug.reset_err_stack;
828: END IF;
829: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
830:

Line 827: pa_debug.reset_err_stack;

823:
824: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
825: IF P_PA_DEBUG_MODE = 'Y' THEN
826: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
827: pa_debug.reset_err_stack;
828: END IF;
829: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
830:
831:

Line 1161: IF P_PA_DEBUG_MODE = 'Y' THEN

1157:
1158:
1159: BEGIN
1160:
1161: IF P_PA_DEBUG_MODE = 'Y' THEN
1162: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Working_Version_Info');
1163: END IF;
1164: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1165: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 1162: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Working_Version_Info');

1158:
1159: BEGIN
1160:
1161: IF P_PA_DEBUG_MODE = 'Y' THEN
1162: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Working_Version_Info');
1163: END IF;
1164: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1165: l_debug_mode := NVL(l_debug_mode, 'Y');
1166: IF P_PA_DEBUG_MODE = 'Y' THEN

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

1160:
1161: IF P_PA_DEBUG_MODE = 'Y' THEN
1162: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Working_Version_Info');
1163: END IF;
1164: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1165: l_debug_mode := NVL(l_debug_mode, 'Y');
1166: IF P_PA_DEBUG_MODE = 'Y' THEN
1167: pa_debug.set_process('Get_Curr_Working_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
1168: END IF;

Line 1166: IF P_PA_DEBUG_MODE = 'Y' THEN

1162: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Working_Version_Info');
1163: END IF;
1164: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1165: l_debug_mode := NVL(l_debug_mode, 'Y');
1166: IF P_PA_DEBUG_MODE = 'Y' THEN
1167: pa_debug.set_process('Get_Curr_Working_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
1168: END IF;
1169: x_msg_count := 0;
1170: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1167: pa_debug.set_process('Get_Curr_Working_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);

1163: END IF;
1164: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1165: l_debug_mode := NVL(l_debug_mode, 'Y');
1166: IF P_PA_DEBUG_MODE = 'Y' THEN
1167: pa_debug.set_process('Get_Curr_Working_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
1168: END IF;
1169: x_msg_count := 0;
1170: x_return_status := FND_API.G_RET_STS_SUCCESS;
1171:

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

1170: x_return_status := FND_API.G_RET_STS_SUCCESS;
1171:
1172: -- Check for business rules violations
1173:
1174: pa_debug.g_err_stage:='Validating input parameters';
1175: IF P_PA_DEBUG_MODE = 'Y' THEN
1176: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1177: END IF;
1178:

Line 1175: IF P_PA_DEBUG_MODE = 'Y' THEN

1171:
1172: -- Check for business rules violations
1173:
1174: pa_debug.g_err_stage:='Validating input parameters';
1175: IF P_PA_DEBUG_MODE = 'Y' THEN
1176: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1177: END IF;
1178:
1179: IF (p_project_id IS NULL) OR

Line 1176: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1172: -- Check for business rules violations
1173:
1174: pa_debug.g_err_stage:='Validating input parameters';
1175: IF P_PA_DEBUG_MODE = 'Y' THEN
1176: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1177: END IF;
1178:
1179: IF (p_project_id IS NULL) OR
1180: (p_fin_plan_type_id IS NULL)

Line 1183: pa_debug.g_err_stage:='Project_id = '||p_project_id;

1179: IF (p_project_id IS NULL) OR
1180: (p_fin_plan_type_id IS NULL)
1181: THEN
1182:
1183: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1184: IF P_PA_DEBUG_MODE = 'Y' THEN
1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

Line 1184: IF P_PA_DEBUG_MODE = 'Y' THEN

1180: (p_fin_plan_type_id IS NULL)
1181: THEN
1182:
1183: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1184: IF P_PA_DEBUG_MODE = 'Y' THEN
1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
1188: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1181: THEN
1182:
1183: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1184: IF P_PA_DEBUG_MODE = 'Y' THEN
1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
1188: IF P_PA_DEBUG_MODE = 'Y' THEN
1189: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

1183: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1184: IF P_PA_DEBUG_MODE = 'Y' THEN
1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
1188: IF P_PA_DEBUG_MODE = 'Y' THEN
1189: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1190: END IF;
1191:

Line 1188: IF P_PA_DEBUG_MODE = 'Y' THEN

1184: IF P_PA_DEBUG_MODE = 'Y' THEN
1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
1188: IF P_PA_DEBUG_MODE = 'Y' THEN
1189: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1190: END IF;
1191:
1192: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 1189: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1185: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1186: END IF;
1187: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
1188: IF P_PA_DEBUG_MODE = 'Y' THEN
1189: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1190: END IF;
1191:
1192: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1193: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 1201: pa_debug.g_err_stage:='Fetching fin plan preference code ';

1197: END IF;
1198:
1199: --Fetch fin plan preference code
1200:
1201: pa_debug.g_err_stage:='Fetching fin plan preference code ';
1202: IF P_PA_DEBUG_MODE = 'Y' THEN
1203: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1204: END IF;
1205:

Line 1202: IF P_PA_DEBUG_MODE = 'Y' THEN

1198:
1199: --Fetch fin plan preference code
1200:
1201: pa_debug.g_err_stage:='Fetching fin plan preference code ';
1202: IF P_PA_DEBUG_MODE = 'Y' THEN
1203: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1204: END IF;
1205:
1206: SELECT fin_plan_preference_code

Line 1203: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1199: --Fetch fin plan preference code
1200:
1201: pa_debug.g_err_stage:='Fetching fin plan preference code ';
1202: IF P_PA_DEBUG_MODE = 'Y' THEN
1203: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1204: END IF;
1205:
1206: SELECT fin_plan_preference_code
1207: INTO l_fp_preference_code

Line 1219: pa_debug.g_err_stage:='Version_Type = '||p_version_type;

1215: (p_version_type IS NULL) THEN
1216:
1217: --In this case version_type should be passed and so raise error
1218:
1219: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
1220: IF P_PA_DEBUG_MODE = 'Y' THEN
1221: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1222: END IF;
1223:

Line 1220: IF P_PA_DEBUG_MODE = 'Y' THEN

1216:
1217: --In this case version_type should be passed and so raise error
1218:
1219: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
1220: IF P_PA_DEBUG_MODE = 'Y' THEN
1221: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1222: END IF;
1223:
1224: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 1221: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1217: --In this case version_type should be passed and so raise error
1218:
1219: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
1220: IF P_PA_DEBUG_MODE = 'Y' THEN
1221: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1222: END IF;
1223:
1224: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1225: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 1231: pa_debug.g_err_stage:='Parameter validation complete ';

1227: RAISE Invalid_Arg_Exc;
1228:
1229: END IF;
1230:
1231: pa_debug.g_err_stage:='Parameter validation complete ';
1232: IF P_PA_DEBUG_MODE = 'Y' THEN
1233: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1234: END IF;
1235:

Line 1232: IF P_PA_DEBUG_MODE = 'Y' THEN

1228:
1229: END IF;
1230:
1231: pa_debug.g_err_stage:='Parameter validation complete ';
1232: IF P_PA_DEBUG_MODE = 'Y' THEN
1233: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1234: END IF;
1235:
1236: --Fetch l_element_type ifn't passed and could be derived

Line 1233: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1229: END IF;
1230:
1231: pa_debug.g_err_stage:='Parameter validation complete ';
1232: IF P_PA_DEBUG_MODE = 'Y' THEN
1233: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1234: END IF;
1235:
1236: --Fetch l_element_type ifn't passed and could be derived
1237:

Line 1260: pa_debug.g_err_stage:='Fetching current working Version';

1256: --Fetch the current working version
1257:
1258: BEGIN
1259:
1260: pa_debug.g_err_stage:='Fetching current working Version';
1261: IF P_PA_DEBUG_MODE = 'Y' THEN
1262: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1263: END IF;
1264:

Line 1261: IF P_PA_DEBUG_MODE = 'Y' THEN

1257:
1258: BEGIN
1259:
1260: pa_debug.g_err_stage:='Fetching current working Version';
1261: IF P_PA_DEBUG_MODE = 'Y' THEN
1262: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1263: END IF;
1264:
1265: SELECT budget_version_id

Line 1262: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1258: BEGIN
1259:
1260: pa_debug.g_err_stage:='Fetching current working Version';
1261: IF P_PA_DEBUG_MODE = 'Y' THEN
1262: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1263: END IF;
1264:
1265: SELECT budget_version_id
1266: INTO l_current_working_version_id

Line 1276: pa_debug.g_err_stage:='Fetching fp option id';

1272: AND ci_id IS NULL; -- -- Added an extra clause ci_id IS NULL--Bug # 3507156
1273:
1274: --Fetch fp options id using plan version id
1275:
1276: pa_debug.g_err_stage:='Fetching fp option id';
1277: IF P_PA_DEBUG_MODE = 'Y' THEN
1278: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1279: END IF;
1280:

Line 1277: IF P_PA_DEBUG_MODE = 'Y' THEN

1273:
1274: --Fetch fp options id using plan version id
1275:
1276: pa_debug.g_err_stage:='Fetching fp option id';
1277: IF P_PA_DEBUG_MODE = 'Y' THEN
1278: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1279: END IF;
1280:
1281: SELECT proj_fp_options_id

Line 1278: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1274: --Fetch fp options id using plan version id
1275:
1276: pa_debug.g_err_stage:='Fetching fp option id';
1277: IF P_PA_DEBUG_MODE = 'Y' THEN
1278: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1279: END IF;
1280:
1281: SELECT proj_fp_options_id
1282: INTO l_fp_options_id

Line 1302: pa_debug.g_err_stage:='Exiting Get_Curr_Working _Version_Info';

1298: x_fin_plan_version_id := l_current_working_version_id;
1299:
1300: x_fp_options_id := l_fp_options_id;
1301:
1302: pa_debug.g_err_stage:='Exiting Get_Curr_Working _Version_Info';
1303: IF P_PA_DEBUG_MODE = 'Y' THEN
1304: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1305: pa_debug.reset_err_stack;
1306: END IF;

Line 1303: IF P_PA_DEBUG_MODE = 'Y' THEN

1299:
1300: x_fp_options_id := l_fp_options_id;
1301:
1302: pa_debug.g_err_stage:='Exiting Get_Curr_Working _Version_Info';
1303: IF P_PA_DEBUG_MODE = 'Y' THEN
1304: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1305: pa_debug.reset_err_stack;
1306: END IF;
1307: EXCEPTION

Line 1304: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1300: x_fp_options_id := l_fp_options_id;
1301:
1302: pa_debug.g_err_stage:='Exiting Get_Curr_Working _Version_Info';
1303: IF P_PA_DEBUG_MODE = 'Y' THEN
1304: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1305: pa_debug.reset_err_stack;
1306: END IF;
1307: EXCEPTION
1308:

Line 1305: pa_debug.reset_err_stack;

1301:
1302: pa_debug.g_err_stage:='Exiting Get_Curr_Working _Version_Info';
1303: IF P_PA_DEBUG_MODE = 'Y' THEN
1304: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1305: pa_debug.reset_err_stack;
1306: END IF;
1307: EXCEPTION
1308:
1309: WHEN Invalid_Arg_Exc THEN

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

1330: END IF;
1331:
1332: x_return_status := FND_API.G_RET_STS_ERROR;
1333:
1334: pa_debug.g_err_stage:='Invalid Arguments Passed';
1335: IF P_PA_DEBUG_MODE = 'Y' THEN
1336: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1337:
1338: pa_debug.reset_err_stack;

Line 1335: IF P_PA_DEBUG_MODE = 'Y' THEN

1331:
1332: x_return_status := FND_API.G_RET_STS_ERROR;
1333:
1334: pa_debug.g_err_stage:='Invalid Arguments Passed';
1335: IF P_PA_DEBUG_MODE = 'Y' THEN
1336: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1337:
1338: pa_debug.reset_err_stack;
1339: END IF;

Line 1336: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1332: x_return_status := FND_API.G_RET_STS_ERROR;
1333:
1334: pa_debug.g_err_stage:='Invalid Arguments Passed';
1335: IF P_PA_DEBUG_MODE = 'Y' THEN
1336: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1337:
1338: pa_debug.reset_err_stack;
1339: END IF;
1340: RAISE;

Line 1338: pa_debug.reset_err_stack;

1334: pa_debug.g_err_stage:='Invalid Arguments Passed';
1335: IF P_PA_DEBUG_MODE = 'Y' THEN
1336: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1337:
1338: pa_debug.reset_err_stack;
1339: END IF;
1340: RAISE;
1341:
1342: WHEN Others THEN

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

1347:
1348: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1349: ,p_procedure_name => 'Get_Curr_Working_Version_Info');
1350:
1351: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1352: IF P_PA_DEBUG_MODE = 'Y' THEN
1353: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1354:
1355: pa_debug.reset_err_stack;

Line 1352: IF P_PA_DEBUG_MODE = 'Y' THEN

1348: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1349: ,p_procedure_name => 'Get_Curr_Working_Version_Info');
1350:
1351: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1352: IF P_PA_DEBUG_MODE = 'Y' THEN
1353: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1354:
1355: pa_debug.reset_err_stack;
1356: END IF;

Line 1353: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1349: ,p_procedure_name => 'Get_Curr_Working_Version_Info');
1350:
1351: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1352: IF P_PA_DEBUG_MODE = 'Y' THEN
1353: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1354:
1355: pa_debug.reset_err_stack;
1356: END IF;
1357: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1355: pa_debug.reset_err_stack;

1351: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1352: IF P_PA_DEBUG_MODE = 'Y' THEN
1353: pa_debug.write('Get_Curr_Working_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1354:
1355: pa_debug.reset_err_stack;
1356: END IF;
1357: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1358:
1359:

Line 1392: IF P_PA_DEBUG_MODE = 'Y' THEN

1388:
1389:
1390: BEGIN
1391:
1392: IF P_PA_DEBUG_MODE = 'Y' THEN
1393: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Cost_Plan_Type_Info');
1394: END IF;
1395: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1396: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 1393: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Cost_Plan_Type_Info');

1389:
1390: BEGIN
1391:
1392: IF P_PA_DEBUG_MODE = 'Y' THEN
1393: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Cost_Plan_Type_Info');
1394: END IF;
1395: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1396: l_debug_mode := NVL(l_debug_mode, 'Y');
1397: IF P_PA_DEBUG_MODE = 'Y' THEN

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

1391:
1392: IF P_PA_DEBUG_MODE = 'Y' THEN
1393: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Cost_Plan_Type_Info');
1394: END IF;
1395: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1396: l_debug_mode := NVL(l_debug_mode, 'Y');
1397: IF P_PA_DEBUG_MODE = 'Y' THEN
1398: pa_debug.set_process('Get_Appr_Cost_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1399: END IF;

Line 1397: IF P_PA_DEBUG_MODE = 'Y' THEN

1393: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Cost_Plan_Type_Info');
1394: END IF;
1395: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1396: l_debug_mode := NVL(l_debug_mode, 'Y');
1397: IF P_PA_DEBUG_MODE = 'Y' THEN
1398: pa_debug.set_process('Get_Appr_Cost_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1399: END IF;
1400: x_msg_count := 0;
1401: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1398: pa_debug.set_process('Get_Appr_Cost_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);

1394: END IF;
1395: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1396: l_debug_mode := NVL(l_debug_mode, 'Y');
1397: IF P_PA_DEBUG_MODE = 'Y' THEN
1398: pa_debug.set_process('Get_Appr_Cost_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1399: END IF;
1400: x_msg_count := 0;
1401: x_return_status := FND_API.G_RET_STS_SUCCESS;
1402:

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

1401: x_return_status := FND_API.G_RET_STS_SUCCESS;
1402:
1403: -- Check for business rules violations
1404:
1405: pa_debug.g_err_stage:='Validating input parameters';
1406: IF P_PA_DEBUG_MODE = 'Y' THEN
1407: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1408: END IF;
1409:

Line 1406: IF P_PA_DEBUG_MODE = 'Y' THEN

1402:
1403: -- Check for business rules violations
1404:
1405: pa_debug.g_err_stage:='Validating input parameters';
1406: IF P_PA_DEBUG_MODE = 'Y' THEN
1407: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1408: END IF;
1409:
1410: -- project_id can't be null

Line 1407: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1403: -- Check for business rules violations
1404:
1405: pa_debug.g_err_stage:='Validating input parameters';
1406: IF P_PA_DEBUG_MODE = 'Y' THEN
1407: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1408: END IF;
1409:
1410: -- project_id can't be null
1411:

Line 1414: pa_debug.g_err_stage:='Project_id = '||p_project_id;

1410: -- project_id can't be null
1411:
1412: IF (p_project_id IS NULL) THEN
1413:
1414: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1415: IF P_PA_DEBUG_MODE = 'Y' THEN
1416: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1417: END IF;
1418:

Line 1415: IF P_PA_DEBUG_MODE = 'Y' THEN

1411:
1412: IF (p_project_id IS NULL) THEN
1413:
1414: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1415: IF P_PA_DEBUG_MODE = 'Y' THEN
1416: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1417: END IF;
1418:
1419: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 1416: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1412: IF (p_project_id IS NULL) THEN
1413:
1414: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1415: IF P_PA_DEBUG_MODE = 'Y' THEN
1416: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1417: END IF;
1418:
1419: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1420: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 1426: pa_debug.g_err_stage:='Parameter validation complete ';

1422: RAISE Invalid_Arg_Exc;
1423:
1424: END IF;
1425:
1426: pa_debug.g_err_stage:='Parameter validation complete ';
1427: IF P_PA_DEBUG_MODE = 'Y' THEN
1428: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1429: END IF;
1430:

Line 1427: IF P_PA_DEBUG_MODE = 'Y' THEN

1423:
1424: END IF;
1425:
1426: pa_debug.g_err_stage:='Parameter validation complete ';
1427: IF P_PA_DEBUG_MODE = 'Y' THEN
1428: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1429: END IF;
1430:
1431: --Fetch approved plan type id

Line 1428: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1424: END IF;
1425:
1426: pa_debug.g_err_stage:='Parameter validation complete ';
1427: IF P_PA_DEBUG_MODE = 'Y' THEN
1428: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1429: END IF;
1430:
1431: --Fetch approved plan type id
1432:

Line 1435: pa_debug.g_err_stage:='Fetching approved cost plan type id';

1431: --Fetch approved plan type id
1432:
1433: BEGIN
1434:
1435: pa_debug.g_err_stage:='Fetching approved cost plan type id';
1436: IF P_PA_DEBUG_MODE = 'Y' THEN
1437: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1438: END IF;
1439:

Line 1436: IF P_PA_DEBUG_MODE = 'Y' THEN

1432:
1433: BEGIN
1434:
1435: pa_debug.g_err_stage:='Fetching approved cost plan type id';
1436: IF P_PA_DEBUG_MODE = 'Y' THEN
1437: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1438: END IF;
1439:
1440: SELECT fin_plan_type_id

Line 1437: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1433: BEGIN
1434:
1435: pa_debug.g_err_stage:='Fetching approved cost plan type id';
1436: IF P_PA_DEBUG_MODE = 'Y' THEN
1437: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1438: END IF;
1439:
1440: SELECT fin_plan_type_id
1441: INTO l_fin_plan_type_id

Line 1459: pa_debug.g_err_stage:='Exiting Get_Appr_Cost_Plan_Type_Info';

1455: --return the plan type id
1456:
1457: x_plan_type_id := l_fin_plan_type_id ;
1458:
1459: pa_debug.g_err_stage:='Exiting Get_Appr_Cost_Plan_Type_Info';
1460: IF P_PA_DEBUG_MODE = 'Y' THEN
1461: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1462:
1463: pa_debug.reset_err_stack;

Line 1460: IF P_PA_DEBUG_MODE = 'Y' THEN

1456:
1457: x_plan_type_id := l_fin_plan_type_id ;
1458:
1459: pa_debug.g_err_stage:='Exiting Get_Appr_Cost_Plan_Type_Info';
1460: IF P_PA_DEBUG_MODE = 'Y' THEN
1461: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1462:
1463: pa_debug.reset_err_stack;
1464: END IF;

Line 1461: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1457: x_plan_type_id := l_fin_plan_type_id ;
1458:
1459: pa_debug.g_err_stage:='Exiting Get_Appr_Cost_Plan_Type_Info';
1460: IF P_PA_DEBUG_MODE = 'Y' THEN
1461: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1462:
1463: pa_debug.reset_err_stack;
1464: END IF;
1465: EXCEPTION

Line 1463: pa_debug.reset_err_stack;

1459: pa_debug.g_err_stage:='Exiting Get_Appr_Cost_Plan_Type_Info';
1460: IF P_PA_DEBUG_MODE = 'Y' THEN
1461: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1462:
1463: pa_debug.reset_err_stack;
1464: END IF;
1465: EXCEPTION
1466:
1467: WHEN Invalid_Arg_Exc THEN

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

1488: END IF;
1489:
1490: x_return_status := FND_API.G_RET_STS_ERROR;
1491:
1492: pa_debug.g_err_stage:='Invalid Arguments Passed';
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1495:
1496: pa_debug.reset_err_stack;

Line 1493: IF P_PA_DEBUG_MODE = 'Y' THEN

1489:
1490: x_return_status := FND_API.G_RET_STS_ERROR;
1491:
1492: pa_debug.g_err_stage:='Invalid Arguments Passed';
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1495:
1496: pa_debug.reset_err_stack;
1497: END IF;

Line 1494: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1490: x_return_status := FND_API.G_RET_STS_ERROR;
1491:
1492: pa_debug.g_err_stage:='Invalid Arguments Passed';
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1495:
1496: pa_debug.reset_err_stack;
1497: END IF;
1498: RAISE;

Line 1496: pa_debug.reset_err_stack;

1492: pa_debug.g_err_stage:='Invalid Arguments Passed';
1493: IF P_PA_DEBUG_MODE = 'Y' THEN
1494: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1495:
1496: pa_debug.reset_err_stack;
1497: END IF;
1498: RAISE;
1499:
1500: WHEN Others THEN

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

1505:
1506: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1507: ,p_procedure_name => 'Get_Appr_Cost_Plan_Type_Info');
1508:
1509: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1510: IF P_PA_DEBUG_MODE = 'Y' THEN
1511: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1512:
1513: pa_debug.reset_err_stack;

Line 1510: IF P_PA_DEBUG_MODE = 'Y' THEN

1506: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1507: ,p_procedure_name => 'Get_Appr_Cost_Plan_Type_Info');
1508:
1509: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1510: IF P_PA_DEBUG_MODE = 'Y' THEN
1511: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1512:
1513: pa_debug.reset_err_stack;
1514: END IF;

Line 1511: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1507: ,p_procedure_name => 'Get_Appr_Cost_Plan_Type_Info');
1508:
1509: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1510: IF P_PA_DEBUG_MODE = 'Y' THEN
1511: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1512:
1513: pa_debug.reset_err_stack;
1514: END IF;
1515: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1513: pa_debug.reset_err_stack;

1509: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
1510: IF P_PA_DEBUG_MODE = 'Y' THEN
1511: pa_debug.write('Get_Appr_Cost_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1512:
1513: pa_debug.reset_err_stack;
1514: END IF;
1515: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1516:
1517: END Get_Appr_Cost_Plan_Type_Info;

Line 1547: IF P_PA_DEBUG_MODE = 'Y' THEN

1543:
1544:
1545: BEGIN
1546:
1547: IF P_PA_DEBUG_MODE = 'Y' THEN
1548: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Rev_Plan_Type_Info');
1549: END IF;
1550: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1551: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 1548: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Rev_Plan_Type_Info');

1544:
1545: BEGIN
1546:
1547: IF P_PA_DEBUG_MODE = 'Y' THEN
1548: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Rev_Plan_Type_Info');
1549: END IF;
1550: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1551: l_debug_mode := NVL(l_debug_mode, 'Y');
1552: IF P_PA_DEBUG_MODE = 'Y' THEN

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

1546:
1547: IF P_PA_DEBUG_MODE = 'Y' THEN
1548: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Rev_Plan_Type_Info');
1549: END IF;
1550: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1551: l_debug_mode := NVL(l_debug_mode, 'Y');
1552: IF P_PA_DEBUG_MODE = 'Y' THEN
1553: pa_debug.set_process('Get_Appr_Rev_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1554: END IF;

Line 1552: IF P_PA_DEBUG_MODE = 'Y' THEN

1548: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Appr_Rev_Plan_Type_Info');
1549: END IF;
1550: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1551: l_debug_mode := NVL(l_debug_mode, 'Y');
1552: IF P_PA_DEBUG_MODE = 'Y' THEN
1553: pa_debug.set_process('Get_Appr_Rev_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1554: END IF;
1555: x_msg_count := 0;
1556: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1553: pa_debug.set_process('Get_Appr_Rev_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);

1549: END IF;
1550: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1551: l_debug_mode := NVL(l_debug_mode, 'Y');
1552: IF P_PA_DEBUG_MODE = 'Y' THEN
1553: pa_debug.set_process('Get_Appr_Rev_Plan_Type_Info: ' || 'PLSQL','LOG',l_debug_mode);
1554: END IF;
1555: x_msg_count := 0;
1556: x_return_status := FND_API.G_RET_STS_SUCCESS;
1557:

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

1556: x_return_status := FND_API.G_RET_STS_SUCCESS;
1557:
1558: -- Check for business rules violations
1559:
1560: pa_debug.g_err_stage:='Validating input parameters';
1561: IF P_PA_DEBUG_MODE = 'Y' THEN
1562: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1563: END IF;
1564:

Line 1561: IF P_PA_DEBUG_MODE = 'Y' THEN

1557:
1558: -- Check for business rules violations
1559:
1560: pa_debug.g_err_stage:='Validating input parameters';
1561: IF P_PA_DEBUG_MODE = 'Y' THEN
1562: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1563: END IF;
1564:
1565: -- project_id can't be null

Line 1562: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1558: -- Check for business rules violations
1559:
1560: pa_debug.g_err_stage:='Validating input parameters';
1561: IF P_PA_DEBUG_MODE = 'Y' THEN
1562: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1563: END IF;
1564:
1565: -- project_id can't be null
1566:

Line 1569: pa_debug.g_err_stage:='Project_id = '||p_project_id;

1565: -- project_id can't be null
1566:
1567: IF (p_project_id IS NULL) THEN
1568:
1569: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1570: IF P_PA_DEBUG_MODE = 'Y' THEN
1571: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1572: END IF;
1573:

Line 1570: IF P_PA_DEBUG_MODE = 'Y' THEN

1566:
1567: IF (p_project_id IS NULL) THEN
1568:
1569: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1570: IF P_PA_DEBUG_MODE = 'Y' THEN
1571: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1572: END IF;
1573:
1574: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 1571: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1567: IF (p_project_id IS NULL) THEN
1568:
1569: pa_debug.g_err_stage:='Project_id = '||p_project_id;
1570: IF P_PA_DEBUG_MODE = 'Y' THEN
1571: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1572: END IF;
1573:
1574: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1575: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 1581: pa_debug.g_err_stage:='Parameter validation complete ';

1577: RAISE Invalid_Arg_Exc;
1578:
1579: END IF;
1580:
1581: pa_debug.g_err_stage:='Parameter validation complete ';
1582: IF P_PA_DEBUG_MODE = 'Y' THEN
1583: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1584: END IF;
1585:

Line 1582: IF P_PA_DEBUG_MODE = 'Y' THEN

1578:
1579: END IF;
1580:
1581: pa_debug.g_err_stage:='Parameter validation complete ';
1582: IF P_PA_DEBUG_MODE = 'Y' THEN
1583: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1584: END IF;
1585:
1586: --Fetch approved plan type id

Line 1583: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1579: END IF;
1580:
1581: pa_debug.g_err_stage:='Parameter validation complete ';
1582: IF P_PA_DEBUG_MODE = 'Y' THEN
1583: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1584: END IF;
1585:
1586: --Fetch approved plan type id
1587:

Line 1590: pa_debug.g_err_stage:='Fetching approved rev plan type id';

1586: --Fetch approved plan type id
1587:
1588: BEGIN
1589:
1590: pa_debug.g_err_stage:='Fetching approved rev plan type id';
1591: IF P_PA_DEBUG_MODE = 'Y' THEN
1592: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1593: END IF;
1594:

Line 1591: IF P_PA_DEBUG_MODE = 'Y' THEN

1587:
1588: BEGIN
1589:
1590: pa_debug.g_err_stage:='Fetching approved rev plan type id';
1591: IF P_PA_DEBUG_MODE = 'Y' THEN
1592: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1593: END IF;
1594:
1595: SELECT fin_plan_type_id

Line 1592: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1588: BEGIN
1589:
1590: pa_debug.g_err_stage:='Fetching approved rev plan type id';
1591: IF P_PA_DEBUG_MODE = 'Y' THEN
1592: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1593: END IF;
1594:
1595: SELECT fin_plan_type_id
1596: INTO l_fin_plan_type_id

Line 1614: pa_debug.g_err_stage:='Exiting Get_Appr_Rev_Plan_Type_Info';

1610: --return the plan type id
1611:
1612: x_plan_type_id := l_fin_plan_type_id ;
1613:
1614: pa_debug.g_err_stage:='Exiting Get_Appr_Rev_Plan_Type_Info';
1615: IF P_PA_DEBUG_MODE = 'Y' THEN
1616: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1617: pa_debug.reset_err_stack;
1618: END IF;

Line 1615: IF P_PA_DEBUG_MODE = 'Y' THEN

1611:
1612: x_plan_type_id := l_fin_plan_type_id ;
1613:
1614: pa_debug.g_err_stage:='Exiting Get_Appr_Rev_Plan_Type_Info';
1615: IF P_PA_DEBUG_MODE = 'Y' THEN
1616: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1617: pa_debug.reset_err_stack;
1618: END IF;
1619: EXCEPTION

Line 1616: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);

1612: x_plan_type_id := l_fin_plan_type_id ;
1613:
1614: pa_debug.g_err_stage:='Exiting Get_Appr_Rev_Plan_Type_Info';
1615: IF P_PA_DEBUG_MODE = 'Y' THEN
1616: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1617: pa_debug.reset_err_stack;
1618: END IF;
1619: EXCEPTION
1620:

Line 1617: pa_debug.reset_err_stack;

1613:
1614: pa_debug.g_err_stage:='Exiting Get_Appr_Rev_Plan_Type_Info';
1615: IF P_PA_DEBUG_MODE = 'Y' THEN
1616: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,3);
1617: pa_debug.reset_err_stack;
1618: END IF;
1619: EXCEPTION
1620:
1621: WHEN Invalid_Arg_Exc THEN

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

1642: END IF;
1643:
1644: x_return_status := FND_API.G_RET_STS_ERROR;
1645:
1646: pa_debug.g_err_stage:='Invalid Arguments Passed';
1647: IF P_PA_DEBUG_MODE = 'Y' THEN
1648: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1649:
1650: pa_debug.reset_err_stack;

Line 1647: IF P_PA_DEBUG_MODE = 'Y' THEN

1643:
1644: x_return_status := FND_API.G_RET_STS_ERROR;
1645:
1646: pa_debug.g_err_stage:='Invalid Arguments Passed';
1647: IF P_PA_DEBUG_MODE = 'Y' THEN
1648: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1649:
1650: pa_debug.reset_err_stack;
1651: END IF;

Line 1648: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1644: x_return_status := FND_API.G_RET_STS_ERROR;
1645:
1646: pa_debug.g_err_stage:='Invalid Arguments Passed';
1647: IF P_PA_DEBUG_MODE = 'Y' THEN
1648: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1649:
1650: pa_debug.reset_err_stack;
1651: END IF;
1652: RAISE;

Line 1650: pa_debug.reset_err_stack;

1646: pa_debug.g_err_stage:='Invalid Arguments Passed';
1647: IF P_PA_DEBUG_MODE = 'Y' THEN
1648: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1649:
1650: pa_debug.reset_err_stack;
1651: END IF;
1652: RAISE;
1653:
1654: WHEN Others THEN

Line 1663: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;

1659:
1660: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1661: ,p_procedure_name => 'Get_Appr_Rev_Plan_Type_Info');
1662:
1663: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
1664: IF P_PA_DEBUG_MODE = 'Y' THEN
1665: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1666: pa_debug.reset_err_stack;
1667: END IF;

Line 1664: IF P_PA_DEBUG_MODE = 'Y' THEN

1660: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
1661: ,p_procedure_name => 'Get_Appr_Rev_Plan_Type_Info');
1662:
1663: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
1664: IF P_PA_DEBUG_MODE = 'Y' THEN
1665: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1666: pa_debug.reset_err_stack;
1667: END IF;
1668: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1665: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);

1661: ,p_procedure_name => 'Get_Appr_Rev_Plan_Type_Info');
1662:
1663: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
1664: IF P_PA_DEBUG_MODE = 'Y' THEN
1665: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1666: pa_debug.reset_err_stack;
1667: END IF;
1668: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1669:

Line 1666: pa_debug.reset_err_stack;

1662:
1663: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
1664: IF P_PA_DEBUG_MODE = 'Y' THEN
1665: pa_debug.write('Get_Appr_Rev_Plan_Type_Info: ' || l_module_name,pa_debug.g_err_stage,5);
1666: pa_debug.reset_err_stack;
1667: END IF;
1668: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
1669:
1670: END Get_Appr_Rev_Plan_Type_Info;

Line 1716: IF P_PA_DEBUG_MODE = 'Y' THEN

1712:
1713:
1714:
1715: BEGIN
1716: IF P_PA_DEBUG_MODE = 'Y' THEN
1717: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_OR_CREATE_AMOUNT_SET_ID');
1718: END IF;
1719: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1720: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 1717: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_OR_CREATE_AMOUNT_SET_ID');

1713:
1714:
1715: BEGIN
1716: IF P_PA_DEBUG_MODE = 'Y' THEN
1717: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_OR_CREATE_AMOUNT_SET_ID');
1718: END IF;
1719: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1720: l_debug_mode := NVL(l_debug_mode, 'Y');
1721: IF P_PA_DEBUG_MODE = 'Y' THEN

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

1715: BEGIN
1716: IF P_PA_DEBUG_MODE = 'Y' THEN
1717: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_OR_CREATE_AMOUNT_SET_ID');
1718: END IF;
1719: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1720: l_debug_mode := NVL(l_debug_mode, 'Y');
1721: IF P_PA_DEBUG_MODE = 'Y' THEN
1722: pa_debug.set_process('GET_OR_CREATE_AMOUNT_SET_ID: ' || 'PLSQL','LOG',l_debug_mode);
1723: END IF;

Line 1721: IF P_PA_DEBUG_MODE = 'Y' THEN

1717: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_OR_CREATE_AMOUNT_SET_ID');
1718: END IF;
1719: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1720: l_debug_mode := NVL(l_debug_mode, 'Y');
1721: IF P_PA_DEBUG_MODE = 'Y' THEN
1722: pa_debug.set_process('GET_OR_CREATE_AMOUNT_SET_ID: ' || 'PLSQL','LOG',l_debug_mode);
1723: END IF;
1724: x_message_count := 0;
1725:

Line 1722: pa_debug.set_process('GET_OR_CREATE_AMOUNT_SET_ID: ' || 'PLSQL','LOG',l_debug_mode);

1718: END IF;
1719: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
1720: l_debug_mode := NVL(l_debug_mode, 'Y');
1721: IF P_PA_DEBUG_MODE = 'Y' THEN
1722: pa_debug.set_process('GET_OR_CREATE_AMOUNT_SET_ID: ' || 'PLSQL','LOG',l_debug_mode);
1723: END IF;
1724: x_message_count := 0;
1725:
1726: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1731: IF P_PA_DEBUG_MODE = 'Y' THEN

1727:
1728:
1729: -- Check for business rules violations
1730:
1731: IF P_PA_DEBUG_MODE = 'Y' THEN
1732: pa_debug.g_err_stage := 'Parameter Validation';
1733: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1734: END IF;
1735:

Line 1732: pa_debug.g_err_stage := 'Parameter Validation';

1728:
1729: -- Check for business rules violations
1730:
1731: IF P_PA_DEBUG_MODE = 'Y' THEN
1732: pa_debug.g_err_stage := 'Parameter Validation';
1733: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1734: END IF;
1735:
1736: -- Check for all flags and preference code being null

Line 1733: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

1729: -- Check for business rules violations
1730:
1731: IF P_PA_DEBUG_MODE = 'Y' THEN
1732: pa_debug.g_err_stage := 'Parameter Validation';
1733: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1734: END IF;
1735:
1736: -- Check for all flags and preference code being null
1737:

Line 1756: IF P_PA_DEBUG_MODE = 'Y' THEN

1752: p_cost_rate_flag is null or
1753: p_burden_rate_flag is null
1754: THEN
1755:
1756: IF P_PA_DEBUG_MODE = 'Y' THEN
1757: pa_debug.g_err_stage := 'All null flags or preference code is null';
1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;

Line 1757: pa_debug.g_err_stage := 'All null flags or preference code is null';

1753: p_burden_rate_flag is null
1754: THEN
1755:
1756: IF P_PA_DEBUG_MODE = 'Y' THEN
1757: pa_debug.g_err_stage := 'All null flags or preference code is null';
1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1754: THEN
1755:
1756: IF P_PA_DEBUG_MODE = 'Y' THEN
1757: pa_debug.g_err_stage := 'All null flags or preference code is null';
1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1762:

Line 1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;

1756: IF P_PA_DEBUG_MODE = 'Y' THEN
1757: pa_debug.g_err_stage := 'All null flags or preference code is null';
1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1762:
1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1757: pa_debug.g_err_stage := 'All null flags or preference code is null';
1758: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1762:
1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1765:

Line 1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;

1759:
1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1762:
1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1765:
1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1760: pa_debug.g_err_stage := 'preference code is ' || p_plan_pref_code;
1761: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1762:
1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1765:
1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1768:

Line 1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;

1762:
1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1765:
1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1768:
1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1763: pa_debug.g_err_stage := 'raw cost flag is ' || p_raw_cost_flag;
1764: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1765:
1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1768:
1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1771:

Line 1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;

1765:
1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1768:
1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1771:
1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1766: pa_debug.g_err_stage := 'burdened cost flag is ' || p_burdened_cost_flag;
1767: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1768:
1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1771:
1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1774:

Line 1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;

1768:
1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1771:
1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1774:
1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1769: pa_debug.g_err_stage := 'cost quantity flag is ' || p_cost_qty_flag;
1770: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1771:
1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1774:
1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1777:

Line 1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;

1771:
1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1774:
1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1777:
1778: pa_debug.g_err_stage := 'revenue flag is ' || p_revenue_flag;
1779: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1772: pa_debug.g_err_stage := 'revenue quantity flag is ' || p_revenue_qty_flag;
1773: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1774:
1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1777:
1778: pa_debug.g_err_stage := 'revenue flag is ' || p_revenue_flag;
1779: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1780: END IF;

Line 1778: pa_debug.g_err_stage := 'revenue flag is ' || p_revenue_flag;

1774:
1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1777:
1778: pa_debug.g_err_stage := 'revenue flag is ' || p_revenue_flag;
1779: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1780: END IF;
1781:
1782: /* Changes for FP.M, Tracking Bug No - 3354518

Line 1779: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1775: pa_debug.g_err_stage := 'all quantity flag is ' || p_all_qty_flag;
1776: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1777:
1778: pa_debug.g_err_stage := 'revenue flag is ' || p_revenue_flag;
1779: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1780: END IF;
1781:
1782: /* Changes for FP.M, Tracking Bug No - 3354518
1783: Adding debug code for three new

Line 1789: IF P_PA_DEBUG_MODE = 'Y' THEN

1785: and p_burden_rate below based on the new
1786: columns in pa_fin_plan_amount_sets */
1787:
1788:
1789: IF P_PA_DEBUG_MODE = 'Y' THEN
1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;
1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;

Line 1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;

1786: columns in pa_fin_plan_amount_sets */
1787:
1788:
1789: IF P_PA_DEBUG_MODE = 'Y' THEN
1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;
1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1787:
1788:
1789: IF P_PA_DEBUG_MODE = 'Y' THEN
1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;
1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1795:

Line 1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;

1789: IF P_PA_DEBUG_MODE = 'Y' THEN
1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;
1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1795:
1796: pa_debug.g_err_stage := 'burden rate flag is ' || p_burden_rate_flag;
1797: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

Line 1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1790: pa_debug.g_err_stage := 'bill rate flag is ' || p_bill_rate_flag;
1791: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1795:
1796: pa_debug.g_err_stage := 'burden rate flag is ' || p_burden_rate_flag;
1797: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1798: END IF;

Line 1796: pa_debug.g_err_stage := 'burden rate flag is ' || p_burden_rate_flag;

1792:
1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1795:
1796: pa_debug.g_err_stage := 'burden rate flag is ' || p_burden_rate_flag;
1797: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1798: END IF;
1799: /* Changes for FP.M, Tracking Bug No - 3354518 End here */
1800:

Line 1797: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

1793: pa_debug.g_err_stage := 'cost rate flag is ' || p_cost_rate_flag;
1794: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1795:
1796: pa_debug.g_err_stage := 'burden rate flag is ' || p_burden_rate_flag;
1797: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
1798: END IF;
1799: /* Changes for FP.M, Tracking Bug No - 3354518 End here */
1800:
1801:

Line 1811: pa_debug.g_err_stage := 'Get or Create cost amount set id';

1807: END IF;
1808:
1809: -- End of business rule validations.
1810:
1811: pa_debug.g_err_stage := 'Get or Create cost amount set id';
1812: IF P_PA_DEBUG_MODE = 'Y' THEN
1813: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1814: END IF;
1815:

Line 1812: IF P_PA_DEBUG_MODE = 'Y' THEN

1808:
1809: -- End of business rule validations.
1810:
1811: pa_debug.g_err_stage := 'Get or Create cost amount set id';
1812: IF P_PA_DEBUG_MODE = 'Y' THEN
1813: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1814: END IF;
1815:
1816: IF (p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_ONLY or p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SEP) then

Line 1813: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

1809: -- End of business rule validations.
1810:
1811: pa_debug.g_err_stage := 'Get or Create cost amount set id';
1812: IF P_PA_DEBUG_MODE = 'Y' THEN
1813: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1814: END IF;
1815:
1816: IF (p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_ONLY or p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SEP) then
1817: BEGIN

Line 1846: pa_debug.g_err_stage := 'Create cost amount set id';

1842: when NO_DATA_FOUND then
1843: l_status := 'NEW';
1844: END;
1845:
1846: pa_debug.g_err_stage := 'Create cost amount set id';
1847: IF P_PA_DEBUG_MODE = 'Y' THEN
1848: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1849: END IF;
1850:

Line 1847: IF P_PA_DEBUG_MODE = 'Y' THEN

1843: l_status := 'NEW';
1844: END;
1845:
1846: pa_debug.g_err_stage := 'Create cost amount set id';
1847: IF P_PA_DEBUG_MODE = 'Y' THEN
1848: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1849: END IF;
1850:
1851: /* Changes for FP.M, Tracking Bug No - 3354518

Line 1848: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

1844: END;
1845:
1846: pa_debug.g_err_stage := 'Create cost amount set id';
1847: IF P_PA_DEBUG_MODE = 'Y' THEN
1848: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1849: END IF;
1850:
1851: /* Changes for FP.M, Tracking Bug No - 3354518
1852: Adding three new column bill_rate_flag,cost_rate_flag,

Line 1916: pa_debug.g_err_stage := 'Get or Create revenue amount set id';

1912: END IF;
1913: END IF; -- cost only
1914:
1915:
1916: pa_debug.g_err_stage := 'Get or Create revenue amount set id';
1917: IF P_PA_DEBUG_MODE = 'Y' THEN
1918: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1919: END IF;
1920:

Line 1917: IF P_PA_DEBUG_MODE = 'Y' THEN

1913: END IF; -- cost only
1914:
1915:
1916: pa_debug.g_err_stage := 'Get or Create revenue amount set id';
1917: IF P_PA_DEBUG_MODE = 'Y' THEN
1918: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1919: END IF;
1920:
1921: IF p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_REVENUE_ONLY or p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SEP THEN

Line 1918: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

1914:
1915:
1916: pa_debug.g_err_stage := 'Get or Create revenue amount set id';
1917: IF P_PA_DEBUG_MODE = 'Y' THEN
1918: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1919: END IF;
1920:
1921: IF p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_REVENUE_ONLY or p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SEP THEN
1922: BEGIN

Line 1951: pa_debug.g_err_stage := 'Create revenue amount set id';

1947: when NO_DATA_FOUND then
1948: l_status := 'NEW';
1949: END;
1950:
1951: pa_debug.g_err_stage := 'Create revenue amount set id';
1952: IF P_PA_DEBUG_MODE = 'Y' THEN
1953: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1954: END IF;
1955:

Line 1952: IF P_PA_DEBUG_MODE = 'Y' THEN

1948: l_status := 'NEW';
1949: END;
1950:
1951: pa_debug.g_err_stage := 'Create revenue amount set id';
1952: IF P_PA_DEBUG_MODE = 'Y' THEN
1953: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1954: END IF;
1955:
1956: IF l_status = 'NEW' THEN

Line 1953: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

1949: END;
1950:
1951: pa_debug.g_err_stage := 'Create revenue amount set id';
1952: IF P_PA_DEBUG_MODE = 'Y' THEN
1953: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
1954: END IF;
1955:
1956: IF l_status = 'NEW' THEN
1957:

Line 2022: pa_debug.g_err_stage := 'Get or Create all amount set id';

2018:
2019: END IF;
2020: END IF; -- revenue only
2021:
2022: pa_debug.g_err_stage := 'Get or Create all amount set id';
2023: IF P_PA_DEBUG_MODE = 'Y' THEN
2024: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2025: END IF;
2026:

Line 2023: IF P_PA_DEBUG_MODE = 'Y' THEN

2019: END IF;
2020: END IF; -- revenue only
2021:
2022: pa_debug.g_err_stage := 'Get or Create all amount set id';
2023: IF P_PA_DEBUG_MODE = 'Y' THEN
2024: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2025: END IF;
2026:
2027: IF p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SAME THEN

Line 2024: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

2020: END IF; -- revenue only
2021:
2022: pa_debug.g_err_stage := 'Get or Create all amount set id';
2023: IF P_PA_DEBUG_MODE = 'Y' THEN
2024: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2025: END IF;
2026:
2027: IF p_plan_pref_code = PA_FP_CONSTANTS_PKG.G_PREF_COST_AND_REV_SAME THEN
2028: BEGIN

Line 2057: pa_debug.g_err_stage := 'Create cost amount set id';

2053: when NO_DATA_FOUND then
2054: l_status := 'NEW';
2055: END;
2056:
2057: pa_debug.g_err_stage := 'Create cost amount set id';
2058: IF P_PA_DEBUG_MODE = 'Y' THEN
2059: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2060: END IF;
2061:

Line 2058: IF P_PA_DEBUG_MODE = 'Y' THEN

2054: l_status := 'NEW';
2055: END;
2056:
2057: pa_debug.g_err_stage := 'Create cost amount set id';
2058: IF P_PA_DEBUG_MODE = 'Y' THEN
2059: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2060: END IF;
2061:
2062: IF l_status = 'NEW' THEN

Line 2059: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);

2055: END;
2056:
2057: pa_debug.g_err_stage := 'Create cost amount set id';
2058: IF P_PA_DEBUG_MODE = 'Y' THEN
2059: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,3);
2060: END IF;
2061:
2062: IF l_status = 'NEW' THEN
2063: /* Changes for FP.M, Tracking Bug No - 3354518

Line 2126: IF P_PA_DEBUG_MODE = 'Y' THEN

2122: END IF;
2123: END IF; -- cost and revenue
2124:
2125: commit;
2126: IF P_PA_DEBUG_MODE = 'Y' THEN
2127: pa_debug.reset_err_stack;
2128: END IF;
2129: EXCEPTION
2130: WHEN Invalid_Arg_Exc THEN

Line 2127: pa_debug.reset_err_stack;

2123: END IF; -- cost and revenue
2124:
2125: commit;
2126: IF P_PA_DEBUG_MODE = 'Y' THEN
2127: pa_debug.reset_err_stack;
2128: END IF;
2129: EXCEPTION
2130: WHEN Invalid_Arg_Exc THEN
2131:

Line 2155: IF P_PA_DEBUG_MODE = 'Y' THEN

2151: END IF;
2152:
2153: x_return_status:= FND_API.G_RET_STS_ERROR;
2154:
2155: IF P_PA_DEBUG_MODE = 'Y' THEN
2156: pa_debug.reset_err_stack;
2157: END IF;
2158: rollback;
2159:

Line 2156: pa_debug.reset_err_stack;

2152:
2153: x_return_status:= FND_API.G_RET_STS_ERROR;
2154:
2155: IF P_PA_DEBUG_MODE = 'Y' THEN
2156: pa_debug.reset_err_stack;
2157: END IF;
2158: rollback;
2159:
2160: WHEN Others THEN

Line 2169: pa_debug.g_err_stage:='Unexpected Error';

2165:
2166: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
2167: ,p_procedure_name => 'GET_OR_CREATE_AMOUNT_SET_ID');
2168:
2169: pa_debug.g_err_stage:='Unexpected Error';
2170: IF P_PA_DEBUG_MODE = 'Y' THEN
2171: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
2172:
2173: pa_debug.reset_err_stack;

Line 2170: IF P_PA_DEBUG_MODE = 'Y' THEN

2166: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
2167: ,p_procedure_name => 'GET_OR_CREATE_AMOUNT_SET_ID');
2168:
2169: pa_debug.g_err_stage:='Unexpected Error';
2170: IF P_PA_DEBUG_MODE = 'Y' THEN
2171: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
2172:
2173: pa_debug.reset_err_stack;
2174: END IF;

Line 2171: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);

2167: ,p_procedure_name => 'GET_OR_CREATE_AMOUNT_SET_ID');
2168:
2169: pa_debug.g_err_stage:='Unexpected Error';
2170: IF P_PA_DEBUG_MODE = 'Y' THEN
2171: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
2172:
2173: pa_debug.reset_err_stack;
2174: END IF;
2175: rollback;

Line 2173: pa_debug.reset_err_stack;

2169: pa_debug.g_err_stage:='Unexpected Error';
2170: IF P_PA_DEBUG_MODE = 'Y' THEN
2171: pa_debug.write('GET_OR_CREATE_AMOUNT_SET_ID: ' || l_module_name,pa_debug.g_err_stage,5);
2172:
2173: pa_debug.reset_err_stack;
2174: END IF;
2175: rollback;
2176: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2177:

Line 2212: IF P_PA_DEBUG_MODE = 'Y' THEN

2208: l_return_status VARCHAR2(2000);
2209:
2210: BEGIN
2211:
2212: IF P_PA_DEBUG_MODE = 'Y' THEN
2213: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_PLAN_AMOUNT_FLAGS');
2214: END IF;
2215: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2216: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2213: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_PLAN_AMOUNT_FLAGS');

2209:
2210: BEGIN
2211:
2212: IF P_PA_DEBUG_MODE = 'Y' THEN
2213: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_PLAN_AMOUNT_FLAGS');
2214: END IF;
2215: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2216: l_debug_mode := NVL(l_debug_mode, 'Y');
2217: IF P_PA_DEBUG_MODE = 'Y' THEN

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

2211:
2212: IF P_PA_DEBUG_MODE = 'Y' THEN
2213: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_PLAN_AMOUNT_FLAGS');
2214: END IF;
2215: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2216: l_debug_mode := NVL(l_debug_mode, 'Y');
2217: IF P_PA_DEBUG_MODE = 'Y' THEN
2218: pa_debug.set_process('GET_PLAN_AMOUNT_FLAGS: ' || 'PLSQL','LOG',l_debug_mode);
2219: END IF;

Line 2217: IF P_PA_DEBUG_MODE = 'Y' THEN

2213: pa_debug.set_err_stack ('PA_FIN_PLAN_UTILS.GET_PLAN_AMOUNT_FLAGS');
2214: END IF;
2215: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2216: l_debug_mode := NVL(l_debug_mode, 'Y');
2217: IF P_PA_DEBUG_MODE = 'Y' THEN
2218: pa_debug.set_process('GET_PLAN_AMOUNT_FLAGS: ' || 'PLSQL','LOG',l_debug_mode);
2219: END IF;
2220: x_message_count := 0;
2221:

Line 2218: pa_debug.set_process('GET_PLAN_AMOUNT_FLAGS: ' || 'PLSQL','LOG',l_debug_mode);

2214: END IF;
2215: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2216: l_debug_mode := NVL(l_debug_mode, 'Y');
2217: IF P_PA_DEBUG_MODE = 'Y' THEN
2218: pa_debug.set_process('GET_PLAN_AMOUNT_FLAGS: ' || 'PLSQL','LOG',l_debug_mode);
2219: END IF;
2220: x_message_count := 0;
2221:
2222: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2227: pa_debug.g_err_stage := 'Parameter Validation';

2223:
2224:
2225: -- Check for business rules violations
2226:
2227: pa_debug.g_err_stage := 'Parameter Validation';
2228: IF P_PA_DEBUG_MODE = 'Y' THEN
2229: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,3);
2230: END IF;
2231:

Line 2228: IF P_PA_DEBUG_MODE = 'Y' THEN

2224:
2225: -- Check for business rules violations
2226:
2227: pa_debug.g_err_stage := 'Parameter Validation';
2228: IF P_PA_DEBUG_MODE = 'Y' THEN
2229: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,3);
2230: END IF;
2231:
2232: -- Check for amount set id being null

Line 2229: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,3);

2225: -- Check for business rules violations
2226:
2227: pa_debug.g_err_stage := 'Parameter Validation';
2228: IF P_PA_DEBUG_MODE = 'Y' THEN
2229: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,3);
2230: END IF;
2231:
2232: -- Check for amount set id being null
2233:

Line 2237: pa_debug.g_err_stage := 'Check for null AMOUNT SET ID';

2233:
2234:
2235: IF P_AMOUNT_SET_ID is null THEN
2236:
2237: pa_debug.g_err_stage := 'Check for null AMOUNT SET ID';
2238: IF P_PA_DEBUG_MODE = 'Y' THEN
2239: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2240: END IF;
2241:

Line 2238: IF P_PA_DEBUG_MODE = 'Y' THEN

2234:
2235: IF P_AMOUNT_SET_ID is null THEN
2236:
2237: pa_debug.g_err_stage := 'Check for null AMOUNT SET ID';
2238: IF P_PA_DEBUG_MODE = 'Y' THEN
2239: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2240: END IF;
2241:
2242: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 2239: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);

2235: IF P_AMOUNT_SET_ID is null THEN
2236:
2237: pa_debug.g_err_stage := 'Check for null AMOUNT SET ID';
2238: IF P_PA_DEBUG_MODE = 'Y' THEN
2239: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2240: END IF;
2241:
2242: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
2243: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 2281: IF P_PA_DEBUG_MODE = 'Y' THEN

2277: PA_FIN_PLAN_AMOUNT_SETS
2278: where
2279: fin_plan_amount_set_id = P_AMOUNT_SET_ID;
2280:
2281: IF P_PA_DEBUG_MODE = 'Y' THEN
2282: pa_debug.reset_err_stack;
2283: END IF;
2284: EXCEPTION
2285: WHEN Invalid_Arg_Exc THEN

Line 2282: pa_debug.reset_err_stack;

2278: where
2279: fin_plan_amount_set_id = P_AMOUNT_SET_ID;
2280:
2281: IF P_PA_DEBUG_MODE = 'Y' THEN
2282: pa_debug.reset_err_stack;
2283: END IF;
2284: EXCEPTION
2285: WHEN Invalid_Arg_Exc THEN
2286:

Line 2310: IF P_PA_DEBUG_MODE = 'Y' THEN

2306: END IF;
2307:
2308: x_return_status:= FND_API.G_RET_STS_ERROR;
2309:
2310: IF P_PA_DEBUG_MODE = 'Y' THEN
2311: pa_debug.reset_err_stack;
2312: END IF;
2313: RAISE;
2314:

Line 2311: pa_debug.reset_err_stack;

2307:
2308: x_return_status:= FND_API.G_RET_STS_ERROR;
2309:
2310: IF P_PA_DEBUG_MODE = 'Y' THEN
2311: pa_debug.reset_err_stack;
2312: END IF;
2313: RAISE;
2314:
2315: WHEN Others THEN

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

2320:
2321: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
2322: ,p_procedure_name => 'GET_PLAN_AMOUNT_FLAGS');
2323:
2324: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
2325: IF P_PA_DEBUG_MODE = 'Y' THEN
2326: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2327:
2328: pa_debug.reset_err_stack;

Line 2325: IF P_PA_DEBUG_MODE = 'Y' THEN

2321: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
2322: ,p_procedure_name => 'GET_PLAN_AMOUNT_FLAGS');
2323:
2324: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
2325: IF P_PA_DEBUG_MODE = 'Y' THEN
2326: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2327:
2328: pa_debug.reset_err_stack;
2329: END IF;

Line 2326: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);

2322: ,p_procedure_name => 'GET_PLAN_AMOUNT_FLAGS');
2323:
2324: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
2325: IF P_PA_DEBUG_MODE = 'Y' THEN
2326: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2327:
2328: pa_debug.reset_err_stack;
2329: END IF;
2330: rollback;

Line 2328: pa_debug.reset_err_stack;

2324: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
2325: IF P_PA_DEBUG_MODE = 'Y' THEN
2326: pa_debug.write('GET_PLAN_AMOUNT_FLAGS: ' || l_module_name,pa_debug.g_err_stage,5);
2327:
2328: pa_debug.reset_err_stack;
2329: END IF;
2330: rollback;
2331: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2332:

Line 2439: IF P_PA_DEBUG_MODE = 'Y' THEN

2435:
2436: x_msg_count := 0;
2437: x_return_status := FND_API.G_RET_STS_SUCCESS;
2438:
2439: IF P_PA_DEBUG_MODE = 'Y' THEN
2440: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Peceding_Suceeding_Prd_Info');
2441: END IF;
2442: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2443: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2440: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Peceding_Suceeding_Prd_Info');

2436: x_msg_count := 0;
2437: x_return_status := FND_API.G_RET_STS_SUCCESS;
2438:
2439: IF P_PA_DEBUG_MODE = 'Y' THEN
2440: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Peceding_Suceeding_Prd_Info');
2441: END IF;
2442: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2443: l_debug_mode := NVL(l_debug_mode, 'Y');
2444: IF P_PA_DEBUG_MODE = 'Y' THEN

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

2438:
2439: IF P_PA_DEBUG_MODE = 'Y' THEN
2440: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Peceding_Suceeding_Prd_Info');
2441: END IF;
2442: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2443: l_debug_mode := NVL(l_debug_mode, 'Y');
2444: IF P_PA_DEBUG_MODE = 'Y' THEN
2445: pa_debug.set_process('Get_Peceding_Suceeding_Pd_Info: ' || 'PLSQL','LOG',l_debug_mode);
2446: END IF;

Line 2444: IF P_PA_DEBUG_MODE = 'Y' THEN

2440: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Peceding_Suceeding_Prd_Info');
2441: END IF;
2442: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2443: l_debug_mode := NVL(l_debug_mode, 'Y');
2444: IF P_PA_DEBUG_MODE = 'Y' THEN
2445: pa_debug.set_process('Get_Peceding_Suceeding_Pd_Info: ' || 'PLSQL','LOG',l_debug_mode);
2446: END IF;
2447:
2448: -- Check for not null parameters

Line 2445: pa_debug.set_process('Get_Peceding_Suceeding_Pd_Info: ' || 'PLSQL','LOG',l_debug_mode);

2441: END IF;
2442: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2443: l_debug_mode := NVL(l_debug_mode, 'Y');
2444: IF P_PA_DEBUG_MODE = 'Y' THEN
2445: pa_debug.set_process('Get_Peceding_Suceeding_Pd_Info: ' || 'PLSQL','LOG',l_debug_mode);
2446: END IF;
2447:
2448: -- Check for not null parameters
2449:

Line 2450: pa_debug.g_err_stage := 'Checking for valid parameters:';

2446: END IF;
2447:
2448: -- Check for not null parameters
2449:
2450: pa_debug.g_err_stage := 'Checking for valid parameters:';
2451: IF P_PA_DEBUG_MODE = 'Y' THEN
2452: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,3);
2453: END IF;
2454:

Line 2451: IF P_PA_DEBUG_MODE = 'Y' THEN

2447:
2448: -- Check for not null parameters
2449:
2450: pa_debug.g_err_stage := 'Checking for valid parameters:';
2451: IF P_PA_DEBUG_MODE = 'Y' THEN
2452: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,3);
2453: END IF;
2454:
2455: IF (p_resource_assignment_id IS NULL) OR

Line 2452: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,3);

2448: -- Check for not null parameters
2449:
2450: pa_debug.g_err_stage := 'Checking for valid parameters:';
2451: IF P_PA_DEBUG_MODE = 'Y' THEN
2452: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,3);
2453: END IF;
2454:
2455: IF (p_resource_assignment_id IS NULL) OR
2456: (p_txn_currency_code IS NULL)

Line 2459: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);

2455: IF (p_resource_assignment_id IS NULL) OR
2456: (p_txn_currency_code IS NULL)
2457: THEN
2458:
2459: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2460: IF P_PA_DEBUG_MODE = 'Y' THEN
2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;

Line 2460: IF P_PA_DEBUG_MODE = 'Y' THEN

2456: (p_txn_currency_code IS NULL)
2457: THEN
2458:
2459: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2460: IF P_PA_DEBUG_MODE = 'Y' THEN
2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2464: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);

2457: THEN
2458:
2459: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2460: IF P_PA_DEBUG_MODE = 'Y' THEN
2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2464: IF P_PA_DEBUG_MODE = 'Y' THEN
2465: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;

2459: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2460: IF P_PA_DEBUG_MODE = 'Y' THEN
2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2464: IF P_PA_DEBUG_MODE = 'Y' THEN
2465: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2466: END IF;
2467:

Line 2464: IF P_PA_DEBUG_MODE = 'Y' THEN

2460: IF P_PA_DEBUG_MODE = 'Y' THEN
2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2464: IF P_PA_DEBUG_MODE = 'Y' THEN
2465: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2466: END IF;
2467:
2468: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',

Line 2465: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);

2461: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2462: END IF;
2463: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2464: IF P_PA_DEBUG_MODE = 'Y' THEN
2465: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2466: END IF;
2467:
2468: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
2469: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 2485: IF P_PA_DEBUG_MODE = 'Y' THEN

2481: x_succeeding_prd_end_date := l_period_info_rec.end_date ;
2482: END IF;
2483:
2484: END LOOP;
2485: IF P_PA_DEBUG_MODE = 'Y' THEN
2486: pa_debug.reset_err_stack;
2487: END IF;
2488: EXCEPTION
2489:

Line 2486: pa_debug.reset_err_stack;

2482: END IF;
2483:
2484: END LOOP;
2485: IF P_PA_DEBUG_MODE = 'Y' THEN
2486: pa_debug.reset_err_stack;
2487: END IF;
2488: EXCEPTION
2489:
2490: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

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

2509: x_msg_count := l_msg_count;
2510:
2511: END IF;
2512:
2513: pa_debug.g_err_stage:='Invalid Arguments Passed';
2514: IF P_PA_DEBUG_MODE = 'Y' THEN
2515: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2516: END IF;
2517:

Line 2514: IF P_PA_DEBUG_MODE = 'Y' THEN

2510:
2511: END IF;
2512:
2513: pa_debug.g_err_stage:='Invalid Arguments Passed';
2514: IF P_PA_DEBUG_MODE = 'Y' THEN
2515: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2516: END IF;
2517:
2518: x_return_status:= FND_API.G_RET_STS_ERROR;

Line 2515: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);

2511: END IF;
2512:
2513: pa_debug.g_err_stage:='Invalid Arguments Passed';
2514: IF P_PA_DEBUG_MODE = 'Y' THEN
2515: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2516: END IF;
2517:
2518: x_return_status:= FND_API.G_RET_STS_ERROR;
2519:

Line 2520: IF P_PA_DEBUG_MODE = 'Y' THEN

2516: END IF;
2517:
2518: x_return_status:= FND_API.G_RET_STS_ERROR;
2519:
2520: IF P_PA_DEBUG_MODE = 'Y' THEN
2521: pa_debug.reset_err_stack;
2522: END IF;
2523: RAISE;
2524:

Line 2521: pa_debug.reset_err_stack;

2517:
2518: x_return_status:= FND_API.G_RET_STS_ERROR;
2519:
2520: IF P_PA_DEBUG_MODE = 'Y' THEN
2521: pa_debug.reset_err_stack;
2522: END IF;
2523: RAISE;
2524:
2525: WHEN Others THEN

Line 2534: pa_debug.g_err_stage:='Unexpected Error';

2530:
2531: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
2532: ,p_procedure_name => 'Get_Peceding_Suceeding_Pd_Info');
2533:
2534: pa_debug.g_err_stage:='Unexpected Error';
2535: IF P_PA_DEBUG_MODE = 'Y' THEN
2536: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2537: pa_debug.reset_err_stack;
2538: END IF;

Line 2535: IF P_PA_DEBUG_MODE = 'Y' THEN

2531: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
2532: ,p_procedure_name => 'Get_Peceding_Suceeding_Pd_Info');
2533:
2534: pa_debug.g_err_stage:='Unexpected Error';
2535: IF P_PA_DEBUG_MODE = 'Y' THEN
2536: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2537: pa_debug.reset_err_stack;
2538: END IF;
2539: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2536: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);

2532: ,p_procedure_name => 'Get_Peceding_Suceeding_Pd_Info');
2533:
2534: pa_debug.g_err_stage:='Unexpected Error';
2535: IF P_PA_DEBUG_MODE = 'Y' THEN
2536: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2537: pa_debug.reset_err_stack;
2538: END IF;
2539: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2540:

Line 2537: pa_debug.reset_err_stack;

2533:
2534: pa_debug.g_err_stage:='Unexpected Error';
2535: IF P_PA_DEBUG_MODE = 'Y' THEN
2536: pa_debug.write('Get_Peceding_Suceeding_Pd_Info: ' || l_module_name,pa_debug.g_err_stage,5);
2537: pa_debug.reset_err_stack;
2538: END IF;
2539: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2540:
2541: END Get_Peceding_Suceeding_Pd_Info;

Line 2579: IF P_PA_DEBUG_MODE = 'Y' THEN

2575: BEGIN
2576: x_msg_count := 0;
2577: x_return_status := FND_API.G_RET_STS_SUCCESS;
2578:
2579: IF P_PA_DEBUG_MODE = 'Y' THEN
2580: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Element_Prj_Pf_Amounts');
2581: END IF;
2582: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2583: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 2580: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Element_Prj_Pf_Amounts');

2576: x_msg_count := 0;
2577: x_return_status := FND_API.G_RET_STS_SUCCESS;
2578:
2579: IF P_PA_DEBUG_MODE = 'Y' THEN
2580: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Element_Prj_Pf_Amounts');
2581: END IF;
2582: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2583: l_debug_mode := NVL(l_debug_mode, 'Y');
2584: IF P_PA_DEBUG_MODE = 'Y' THEN

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

2578:
2579: IF P_PA_DEBUG_MODE = 'Y' THEN
2580: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Element_Prj_Pf_Amounts');
2581: END IF;
2582: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2583: l_debug_mode := NVL(l_debug_mode, 'Y');
2584: IF P_PA_DEBUG_MODE = 'Y' THEN
2585: pa_debug.set_process('Get_Element_Proj_PF_Amounts: ' || 'PLSQL','LOG',l_debug_mode);
2586: END IF;

Line 2584: IF P_PA_DEBUG_MODE = 'Y' THEN

2580: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Element_Prj_Pf_Amounts');
2581: END IF;
2582: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2583: l_debug_mode := NVL(l_debug_mode, 'Y');
2584: IF P_PA_DEBUG_MODE = 'Y' THEN
2585: pa_debug.set_process('Get_Element_Proj_PF_Amounts: ' || 'PLSQL','LOG',l_debug_mode);
2586: END IF;
2587:
2588: -- Check for not null parameters

Line 2585: pa_debug.set_process('Get_Element_Proj_PF_Amounts: ' || 'PLSQL','LOG',l_debug_mode);

2581: END IF;
2582: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2583: l_debug_mode := NVL(l_debug_mode, 'Y');
2584: IF P_PA_DEBUG_MODE = 'Y' THEN
2585: pa_debug.set_process('Get_Element_Proj_PF_Amounts: ' || 'PLSQL','LOG',l_debug_mode);
2586: END IF;
2587:
2588: -- Check for not null parameters
2589:

Line 2590: pa_debug.g_err_stage := 'Checking for valid parameters:';

2586: END IF;
2587:
2588: -- Check for not null parameters
2589:
2590: pa_debug.g_err_stage := 'Checking for valid parameters:';
2591: IF P_PA_DEBUG_MODE = 'Y' THEN
2592: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,3);
2593: END IF;
2594:

Line 2591: IF P_PA_DEBUG_MODE = 'Y' THEN

2587:
2588: -- Check for not null parameters
2589:
2590: pa_debug.g_err_stage := 'Checking for valid parameters:';
2591: IF P_PA_DEBUG_MODE = 'Y' THEN
2592: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,3);
2593: END IF;
2594:
2595: IF (p_resource_assignment_id IS NULL) OR

Line 2592: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,3);

2588: -- Check for not null parameters
2589:
2590: pa_debug.g_err_stage := 'Checking for valid parameters:';
2591: IF P_PA_DEBUG_MODE = 'Y' THEN
2592: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,3);
2593: END IF;
2594:
2595: IF (p_resource_assignment_id IS NULL) OR
2596: (p_txn_currency_code IS NULL)

Line 2599: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);

2595: IF (p_resource_assignment_id IS NULL) OR
2596: (p_txn_currency_code IS NULL)
2597: THEN
2598:
2599: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2600: IF P_PA_DEBUG_MODE = 'Y' THEN
2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;

Line 2600: IF P_PA_DEBUG_MODE = 'Y' THEN

2596: (p_txn_currency_code IS NULL)
2597: THEN
2598:
2599: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2600: IF P_PA_DEBUG_MODE = 'Y' THEN
2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2604: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);

2597: THEN
2598:
2599: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2600: IF P_PA_DEBUG_MODE = 'Y' THEN
2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2604: IF P_PA_DEBUG_MODE = 'Y' THEN
2605: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);

Line 2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;

2599: pa_debug.g_err_stage := 'resource_assignment_id='||to_char(p_resource_assignment_id);
2600: IF P_PA_DEBUG_MODE = 'Y' THEN
2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2604: IF P_PA_DEBUG_MODE = 'Y' THEN
2605: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2606: END IF;
2607:

Line 2604: IF P_PA_DEBUG_MODE = 'Y' THEN

2600: IF P_PA_DEBUG_MODE = 'Y' THEN
2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2604: IF P_PA_DEBUG_MODE = 'Y' THEN
2605: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2606: END IF;
2607:
2608: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',

Line 2605: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);

2601: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2602: END IF;
2603: pa_debug.g_err_stage := 'txn currency code ='||p_txn_currency_code;
2604: IF P_PA_DEBUG_MODE = 'Y' THEN
2605: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2606: END IF;
2607:
2608: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
2609: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 2636: pa_debug.g_err_stage :='Invalid Combination of res. Assgnt Id and Txn currency code ';

2632: AND txn_currency_code = p_txn_currency_code ;
2633: EXCEPTION
2634:
2635: WHEN NO_DATA_FOUND THEN
2636: pa_debug.g_err_stage :='Invalid Combination of res. Assgnt Id and Txn currency code ';
2637: IF P_PA_DEBUG_MODE = 'Y' THEN
2638: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,1);
2639: END IF;
2640: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2637: IF P_PA_DEBUG_MODE = 'Y' THEN

2633: EXCEPTION
2634:
2635: WHEN NO_DATA_FOUND THEN
2636: pa_debug.g_err_stage :='Invalid Combination of res. Assgnt Id and Txn currency code ';
2637: IF P_PA_DEBUG_MODE = 'Y' THEN
2638: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,1);
2639: END IF;
2640: x_return_status := FND_API.G_RET_STS_ERROR;
2641: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 2638: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,1);

2634:
2635: WHEN NO_DATA_FOUND THEN
2636: pa_debug.g_err_stage :='Invalid Combination of res. Assgnt Id and Txn currency code ';
2637: IF P_PA_DEBUG_MODE = 'Y' THEN
2638: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,1);
2639: END IF;
2640: x_return_status := FND_API.G_RET_STS_ERROR;
2641: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
2642: p_msg_name => 'PA_BUDGET_LINE_NOT_FOUND' );

Line 2646: IF P_PA_DEBUG_MODE = 'Y' THEN

2642: p_msg_name => 'PA_BUDGET_LINE_NOT_FOUND' );
2643: RAISE PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc;
2644:
2645: END;
2646: IF P_PA_DEBUG_MODE = 'Y' THEN
2647: pa_debug.reset_err_stack;
2648: END IF;
2649: EXCEPTION
2650:

Line 2647: pa_debug.reset_err_stack;

2643: RAISE PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc;
2644:
2645: END;
2646: IF P_PA_DEBUG_MODE = 'Y' THEN
2647: pa_debug.reset_err_stack;
2648: END IF;
2649: EXCEPTION
2650:
2651: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

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

2670: x_msg_count := l_msg_count;
2671:
2672: END IF;
2673:
2674: pa_debug.g_err_stage:='Invalid Arguments Passed';
2675: IF P_PA_DEBUG_MODE = 'Y' THEN
2676: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2677: END IF;
2678:

Line 2675: IF P_PA_DEBUG_MODE = 'Y' THEN

2671:
2672: END IF;
2673:
2674: pa_debug.g_err_stage:='Invalid Arguments Passed';
2675: IF P_PA_DEBUG_MODE = 'Y' THEN
2676: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2677: END IF;
2678:
2679: x_return_status:= FND_API.G_RET_STS_ERROR;

Line 2676: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);

2672: END IF;
2673:
2674: pa_debug.g_err_stage:='Invalid Arguments Passed';
2675: IF P_PA_DEBUG_MODE = 'Y' THEN
2676: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2677: END IF;
2678:
2679: x_return_status:= FND_API.G_RET_STS_ERROR;
2680:

Line 2681: IF P_PA_DEBUG_MODE = 'Y' THEN

2677: END IF;
2678:
2679: x_return_status:= FND_API.G_RET_STS_ERROR;
2680:
2681: IF P_PA_DEBUG_MODE = 'Y' THEN
2682: pa_debug.reset_err_stack;
2683: END IF;
2684: RAISE;
2685:

Line 2682: pa_debug.reset_err_stack;

2678:
2679: x_return_status:= FND_API.G_RET_STS_ERROR;
2680:
2681: IF P_PA_DEBUG_MODE = 'Y' THEN
2682: pa_debug.reset_err_stack;
2683: END IF;
2684: RAISE;
2685:
2686: WHEN Others THEN

Line 2695: pa_debug.g_err_stage:='Unexpected Error';

2691:
2692: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
2693: ,p_procedure_name => 'Get_Element_Proj_PF_Amounts');
2694:
2695: pa_debug.g_err_stage:='Unexpected Error';
2696: IF P_PA_DEBUG_MODE = 'Y' THEN
2697: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2698: pa_debug.reset_err_stack;
2699: END IF;

Line 2696: IF P_PA_DEBUG_MODE = 'Y' THEN

2692: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
2693: ,p_procedure_name => 'Get_Element_Proj_PF_Amounts');
2694:
2695: pa_debug.g_err_stage:='Unexpected Error';
2696: IF P_PA_DEBUG_MODE = 'Y' THEN
2697: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2698: pa_debug.reset_err_stack;
2699: END IF;
2700: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 2697: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);

2693: ,p_procedure_name => 'Get_Element_Proj_PF_Amounts');
2694:
2695: pa_debug.g_err_stage:='Unexpected Error';
2696: IF P_PA_DEBUG_MODE = 'Y' THEN
2697: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2698: pa_debug.reset_err_stack;
2699: END IF;
2700: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2701:

Line 2698: pa_debug.reset_err_stack;

2694:
2695: pa_debug.g_err_stage:='Unexpected Error';
2696: IF P_PA_DEBUG_MODE = 'Y' THEN
2697: pa_debug.write('Get_Element_Proj_PF_Amounts: ' || l_module_name,pa_debug.g_err_stage,5);
2698: pa_debug.reset_err_stack;
2699: END IF;
2700: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
2701:
2702: END Get_Element_Proj_PF_Amounts ;

Line 2726: IF P_PA_DEBUG_MODE = 'Y' THEN

2722:
2723: BEGIN
2724: x_msg_count := 0;
2725: x_return_status := FND_API.G_RET_STS_SUCCESS;
2726: IF P_PA_DEBUG_MODE = 'Y' THEN
2727: pa_debug.init_err_stack ('pa_fin_plan_utils.check_version_name_or_id');
2728: END IF;
2729: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2730: l_debug_mode := NVL(l_debug_mode, 'N');

Line 2727: pa_debug.init_err_stack ('pa_fin_plan_utils.check_version_name_or_id');

2723: BEGIN
2724: x_msg_count := 0;
2725: x_return_status := FND_API.G_RET_STS_SUCCESS;
2726: IF P_PA_DEBUG_MODE = 'Y' THEN
2727: pa_debug.init_err_stack ('pa_fin_plan_utils.check_version_name_or_id');
2728: END IF;
2729: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2730: l_debug_mode := NVL(l_debug_mode, 'N');
2731: IF l_debug_mode = 'Y' THEN

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

2725: x_return_status := FND_API.G_RET_STS_SUCCESS;
2726: IF P_PA_DEBUG_MODE = 'Y' THEN
2727: pa_debug.init_err_stack ('pa_fin_plan_utils.check_version_name_or_id');
2728: END IF;
2729: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2730: l_debug_mode := NVL(l_debug_mode, 'N');
2731: IF l_debug_mode = 'Y' THEN
2732: pa_debug.g_err_stage:= 'Validating input parameters';
2733: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

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

2728: END IF;
2729: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2730: l_debug_mode := NVL(l_debug_mode, 'N');
2731: IF l_debug_mode = 'Y' THEN
2732: pa_debug.g_err_stage:= 'Validating input parameters';
2733: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
2734: END IF;
2735:
2736: IF (p_project_id IS NULL) -- Bug 2770562

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

2729: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
2730: l_debug_mode := NVL(l_debug_mode, 'N');
2731: IF l_debug_mode = 'Y' THEN
2732: pa_debug.g_err_stage:= 'Validating input parameters';
2733: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
2734: END IF;
2735:
2736: IF (p_project_id IS NULL) -- Bug 2770562
2737: THEN

Line 2739: pa_debug.g_err_stage:= 'project id is null ';

2735:
2736: IF (p_project_id IS NULL) -- Bug 2770562
2737: THEN
2738: IF l_debug_mode = 'Y' THEN
2739: pa_debug.g_err_stage:= 'project id is null ';
2740: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
2741: END IF;
2742: PA_UTILS.ADD_MESSAGE
2743: (p_app_short_name => 'PA',

Line 2740: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

2736: IF (p_project_id IS NULL) -- Bug 2770562
2737: THEN
2738: IF l_debug_mode = 'Y' THEN
2739: pa_debug.g_err_stage:= 'project id is null ';
2740: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
2741: END IF;
2742: PA_UTILS.ADD_MESSAGE
2743: (p_app_short_name => 'PA',
2744: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 2771: IF P_PA_DEBUG_MODE = 'Y' THEN

2767: x_budget_version_id := NULL;
2768: END IF;
2769: END IF;
2770: x_return_status := FND_API.G_RET_STS_SUCCESS;
2771: IF P_PA_DEBUG_MODE = 'Y' THEN
2772: pa_debug.reset_err_stack;
2773: END IF;
2774: EXCEPTION
2775: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN -- Bug 2770562

Line 2772: pa_debug.reset_err_stack;

2768: END IF;
2769: END IF;
2770: x_return_status := FND_API.G_RET_STS_SUCCESS;
2771: IF P_PA_DEBUG_MODE = 'Y' THEN
2772: pa_debug.reset_err_stack;
2773: END IF;
2774: EXCEPTION
2775: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN -- Bug 2770562
2776:

Line 2793: IF P_PA_DEBUG_MODE = 'Y' THEN

2789: x_msg_count := l_msg_count;
2790: ELSE
2791: x_msg_count := l_msg_count;
2792: END IF;
2793: IF P_PA_DEBUG_MODE = 'Y' THEN
2794: pa_debug.reset_err_stack;
2795: END IF;
2796: x_budget_version_id := null;
2797: RETURN;

Line 2794: pa_debug.reset_err_stack;

2790: ELSE
2791: x_msg_count := l_msg_count;
2792: END IF;
2793: IF P_PA_DEBUG_MODE = 'Y' THEN
2794: pa_debug.reset_err_stack;
2795: END IF;
2796: x_budget_version_id := null;
2797: RETURN;
2798:

Line 2813: p_procedure_name => pa_debug.g_err_stack );

2809: p_msg_name => 'PA_FP_VERSION_NAME_AMBIGOUS');
2810: x_budget_version_id := NULL;
2811: WHEN OTHERS THEN
2812: FND_MSG_PUB.ADD_EXC_MSG (p_pkg_name => 'PA_FIN_PLAN_UTILS',
2813: p_procedure_name => pa_debug.g_err_stack );
2814: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
2815: x_msg_data := SQLERRM;
2816: x_budget_version_id := NULL;
2817: RAISE;

Line 2831: IF P_PA_DEBUG_MODE = 'Y' THEN

2827: ,x_msg_count OUT NOCOPY NUMBER --File.Sql.39 bug 4440895
2828: ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2829: ) IS
2830: BEGIN
2831: IF P_PA_DEBUG_MODE = 'Y' THEN
2832: pa_debug.init_err_stack ('pa_fin_plan_utils.Check_Currency_Name_Or_Code');
2833: END IF;
2834: IF p_txn_currency_code IS NOT NULL THEN
2835: pa_debug.g_err_stage:='Txn Currency Code is not null';

Line 2832: pa_debug.init_err_stack ('pa_fin_plan_utils.Check_Currency_Name_Or_Code');

2828: ,x_msg_data OUT NOCOPY VARCHAR2 --File.Sql.39 bug 4440895
2829: ) IS
2830: BEGIN
2831: IF P_PA_DEBUG_MODE = 'Y' THEN
2832: pa_debug.init_err_stack ('pa_fin_plan_utils.Check_Currency_Name_Or_Code');
2833: END IF;
2834: IF p_txn_currency_code IS NOT NULL THEN
2835: pa_debug.g_err_stage:='Txn Currency Code is not null';
2836: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 2835: pa_debug.g_err_stage:='Txn Currency Code is not null';

2831: IF P_PA_DEBUG_MODE = 'Y' THEN
2832: pa_debug.init_err_stack ('pa_fin_plan_utils.Check_Currency_Name_Or_Code');
2833: END IF;
2834: IF p_txn_currency_code IS NOT NULL THEN
2835: pa_debug.g_err_stage:='Txn Currency Code is not null';
2836: IF P_PA_DEBUG_MODE = 'Y' THEN
2837: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2838: END IF;
2839:

Line 2836: IF P_PA_DEBUG_MODE = 'Y' THEN

2832: pa_debug.init_err_stack ('pa_fin_plan_utils.Check_Currency_Name_Or_Code');
2833: END IF;
2834: IF p_txn_currency_code IS NOT NULL THEN
2835: pa_debug.g_err_stage:='Txn Currency Code is not null';
2836: IF P_PA_DEBUG_MODE = 'Y' THEN
2837: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2838: END IF;
2839:
2840: IF p_check_id_flag = 'Y' THEN

Line 2837: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);

2833: END IF;
2834: IF p_txn_currency_code IS NOT NULL THEN
2835: pa_debug.g_err_stage:='Txn Currency Code is not null';
2836: IF P_PA_DEBUG_MODE = 'Y' THEN
2837: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2838: END IF;
2839:
2840: IF p_check_id_flag = 'Y' THEN
2841: SELECT txn_currency_code

Line 2849: pa_debug.g_err_stage:='Txn Currency Code is null';

2845: ELSIF p_check_id_flag = 'N' THEN
2846: x_txn_currency_code := p_txn_currency_code;
2847: END IF;
2848: ELSE
2849: pa_debug.g_err_stage:='Txn Currency Code is null';
2850: IF P_PA_DEBUG_MODE = 'Y' THEN
2851: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2852: END IF;
2853:

Line 2850: IF P_PA_DEBUG_MODE = 'Y' THEN

2846: x_txn_currency_code := p_txn_currency_code;
2847: END IF;
2848: ELSE
2849: pa_debug.g_err_stage:='Txn Currency Code is null';
2850: IF P_PA_DEBUG_MODE = 'Y' THEN
2851: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2852: END IF;
2853:
2854: IF (p_currency_code_name IS NOT NULL) THEN

Line 2851: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);

2847: END IF;
2848: ELSE
2849: pa_debug.g_err_stage:='Txn Currency Code is null';
2850: IF P_PA_DEBUG_MODE = 'Y' THEN
2851: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2852: END IF;
2853:
2854: IF (p_currency_code_name IS NOT NULL) THEN
2855: pa_debug.g_err_stage:='Currency Code Name String is not null';

Line 2855: pa_debug.g_err_stage:='Currency Code Name String is not null';

2851: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2852: END IF;
2853:
2854: IF (p_currency_code_name IS NOT NULL) THEN
2855: pa_debug.g_err_stage:='Currency Code Name String is not null';
2856: IF P_PA_DEBUG_MODE = 'Y' THEN
2857: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2858: END IF;
2859:

Line 2856: IF P_PA_DEBUG_MODE = 'Y' THEN

2852: END IF;
2853:
2854: IF (p_currency_code_name IS NOT NULL) THEN
2855: pa_debug.g_err_stage:='Currency Code Name String is not null';
2856: IF P_PA_DEBUG_MODE = 'Y' THEN
2857: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2858: END IF;
2859:
2860: -- Bug 4874283 - performance fix. use TL table and rewrite select

Line 2857: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);

2853:
2854: IF (p_currency_code_name IS NOT NULL) THEN
2855: pa_debug.g_err_stage:='Currency Code Name String is not null';
2856: IF P_PA_DEBUG_MODE = 'Y' THEN
2857: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2858: END IF;
2859:
2860: -- Bug 4874283 - performance fix. use TL table and rewrite select
2861: -- so that the NAME, LANGUAGE index can be used, if appropriate

Line 2875: pa_debug.g_err_stage:='Currency Code Name String is null';

2871: WHERE name = replace(p_currency_code_name, currency_code || ' - ')
2872: AND language = USERENV('LANG');
2873:
2874: ELSE
2875: pa_debug.g_err_stage:='Currency Code Name String is null';
2876: IF P_PA_DEBUG_MODE = 'Y' THEN
2877: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2878: END IF;
2879: x_txn_currency_code := NULL;

Line 2876: IF P_PA_DEBUG_MODE = 'Y' THEN

2872: AND language = USERENV('LANG');
2873:
2874: ELSE
2875: pa_debug.g_err_stage:='Currency Code Name String is null';
2876: IF P_PA_DEBUG_MODE = 'Y' THEN
2877: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2878: END IF;
2879: x_txn_currency_code := NULL;
2880: END IF;

Line 2877: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);

2873:
2874: ELSE
2875: pa_debug.g_err_stage:='Currency Code Name String is null';
2876: IF P_PA_DEBUG_MODE = 'Y' THEN
2877: pa_debug.write('Check_Currency_Name_Or_Code: ' || l_module_name,pa_debug.g_err_stage,3);
2878: END IF;
2879: x_txn_currency_code := NULL;
2880: END IF;
2881: END IF;

Line 2883: IF P_PA_DEBUG_MODE = 'Y' THEN

2879: x_txn_currency_code := NULL;
2880: END IF;
2881: END IF;
2882: x_return_status := FND_API.G_RET_STS_SUCCESS;
2883: IF P_PA_DEBUG_MODE = 'Y' THEN
2884: pa_debug.reset_err_stack;
2885: END IF;
2886: EXCEPTION
2887: WHEN NO_DATA_FOUND THEN

Line 2884: pa_debug.reset_err_stack;

2880: END IF;
2881: END IF;
2882: x_return_status := FND_API.G_RET_STS_SUCCESS;
2883: IF P_PA_DEBUG_MODE = 'Y' THEN
2884: pa_debug.reset_err_stack;
2885: END IF;
2886: EXCEPTION
2887: WHEN NO_DATA_FOUND THEN
2888: x_return_status := FND_API.G_RET_STS_ERROR;

Line 2900: p_procedure_name => pa_debug.g_err_stack );

2896: x_txn_currency_code := NULL;
2897: WHEN OTHERS THEN
2898: fnd_msg_pub.add_exc_msg
2899: (p_pkg_name => 'PA_FIN_PLAN_UTILS',
2900: p_procedure_name => pa_debug.g_err_stack );
2901: x_return_status:= FND_API.G_RET_STS_UNEXP_ERROR;
2902: x_txn_currency_code := NULL;
2903: RAISE;
2904: END Check_Currency_Name_Or_Code;

Line 2932: IF P_PA_DEBUG_MODE = 'Y' THEN

2928: x_error_msg OUT NOCOPY VARCHAR2) --File.Sql.39 bug 4440895
2929: is
2930: l_msg_index_out NUMBER;
2931: BEGIN
2932: IF P_PA_DEBUG_MODE = 'Y' THEN
2933: pa_debug.init_err_stack ('pa_fin_plan_utils.check_task_name_or_id');
2934: END IF;
2935: if p_task_id is not null AND p_task_id <> FND_API.G_MISS_NUM then
2936: if p_check_id_flag = 'Y' then

Line 2933: pa_debug.init_err_stack ('pa_fin_plan_utils.check_task_name_or_id');

2929: is
2930: l_msg_index_out NUMBER;
2931: BEGIN
2932: IF P_PA_DEBUG_MODE = 'Y' THEN
2933: pa_debug.init_err_stack ('pa_fin_plan_utils.check_task_name_or_id');
2934: END IF;
2935: if p_task_id is not null AND p_task_id <> FND_API.G_MISS_NUM then
2936: if p_check_id_flag = 'Y' then
2937: -- validate the id that was passed in

Line 2959: IF P_PA_DEBUG_MODE = 'Y' THEN

2955: x_task_id := null;
2956: end if;
2957: end if; -- p_task_id is null
2958: x_return_status := FND_API.G_RET_STS_SUCCESS;
2959: IF P_PA_DEBUG_MODE = 'Y' THEN
2960: pa_debug.reset_err_stack;
2961: END IF;
2962: EXCEPTION
2963: WHEN NO_DATA_FOUND THEN

Line 2960: pa_debug.reset_err_stack;

2956: end if;
2957: end if; -- p_task_id is null
2958: x_return_status := FND_API.G_RET_STS_SUCCESS;
2959: IF P_PA_DEBUG_MODE = 'Y' THEN
2960: pa_debug.reset_err_stack;
2961: END IF;
2962: EXCEPTION
2963: WHEN NO_DATA_FOUND THEN
2964: x_task_id := NULL;

Line 3018: IF P_PA_DEBUG_MODE = 'Y' THEN

3014: x_error_msg OUT NOCOPY VARCHAR2) --File.Sql.39 bug 4440895
3015: is
3016: l_msg_index_out NUMBER;
3017: BEGIN
3018: IF P_PA_DEBUG_MODE = 'Y' THEN
3019: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_gp_name_or_id');
3020: END IF;
3021: raise Invalid_Call_Exc; /* Changes for FP.M, Tracking Bug No - 3354518 */
3022: /*** bug 3683382 this piece code would never be executed as there is a immediate raise

Line 3019: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_gp_name_or_id');

3015: is
3016: l_msg_index_out NUMBER;
3017: BEGIN
3018: IF P_PA_DEBUG_MODE = 'Y' THEN
3019: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_gp_name_or_id');
3020: END IF;
3021: raise Invalid_Call_Exc; /* Changes for FP.M, Tracking Bug No - 3354518 */
3022: /*** bug 3683382 this piece code would never be executed as there is a immediate raise
3023: if p_resource_id is not null AND p_resource_id <> FND_API.G_MISS_NUM then

Line 3050: IF P_PA_DEBUG_MODE = 'Y' THEN

3046: end if;
3047: end if; -- p_resource_id is null
3048: bug 3683382 ***/
3049: x_return_status := FND_API.G_RET_STS_SUCCESS;
3050: IF P_PA_DEBUG_MODE = 'Y' THEN
3051: pa_debug.reset_err_stack;
3052: END IF;
3053: EXCEPTION
3054: WHEN NO_DATA_FOUND THEN

Line 3051: pa_debug.reset_err_stack;

3047: end if; -- p_resource_id is null
3048: bug 3683382 ***/
3049: x_return_status := FND_API.G_RET_STS_SUCCESS;
3050: IF P_PA_DEBUG_MODE = 'Y' THEN
3051: pa_debug.reset_err_stack;
3052: END IF;
3053: EXCEPTION
3054: WHEN NO_DATA_FOUND THEN
3055: x_resource_id := NULL;

Line 3107: IF P_PA_DEBUG_MODE = 'Y' THEN

3103: x_error_msg OUT NOCOPY VARCHAR2) --File.Sql.39 bug 4440895
3104: is
3105: l_msg_index_out NUMBER;
3106: BEGIN
3107: IF P_PA_DEBUG_MODE = 'Y' THEN
3108: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_name_or_id');
3109: END IF;
3110: if p_resource_id is not null AND p_resource_id <> FND_API.G_MISS_NUM then
3111: if p_check_id_flag = 'Y' then

Line 3108: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_name_or_id');

3104: is
3105: l_msg_index_out NUMBER;
3106: BEGIN
3107: IF P_PA_DEBUG_MODE = 'Y' THEN
3108: pa_debug.init_err_stack ('pa_fin_plan_utils.check_resource_name_or_id');
3109: END IF;
3110: if p_resource_id is not null AND p_resource_id <> FND_API.G_MISS_NUM then
3111: if p_check_id_flag = 'Y' then
3112: -- validate the id that was passed in

Line 3133: IF P_PA_DEBUG_MODE = 'Y' THEN

3129: x_resource_id := null;
3130: end if;
3131: end if; -- p_resource_id is null
3132: x_return_status := FND_API.G_RET_STS_SUCCESS;
3133: IF P_PA_DEBUG_MODE = 'Y' THEN
3134: pa_debug.reset_err_stack;
3135: END IF;
3136: EXCEPTION
3137: WHEN NO_DATA_FOUND THEN

Line 3134: pa_debug.reset_err_stack;

3130: end if;
3131: end if; -- p_resource_id is null
3132: x_return_status := FND_API.G_RET_STS_SUCCESS;
3133: IF P_PA_DEBUG_MODE = 'Y' THEN
3134: pa_debug.reset_err_stack;
3135: END IF;
3136: EXCEPTION
3137: WHEN NO_DATA_FOUND THEN
3138: x_resource_id := NULL;

Line 3232: IF P_PA_DEBUG_MODE = 'Y' THEN

3228:
3229: l_stage number := 0;
3230:
3231: BEGIN
3232: IF P_PA_DEBUG_MODE = 'Y' THEN
3233: pa_debug.init_err_stack('pa_fin_plan_utils.get_amttype_id');
3234: END IF;
3235:
3236: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

Line 3233: pa_debug.init_err_stack('pa_fin_plan_utils.get_amttype_id');

3229: l_stage number := 0;
3230:
3231: BEGIN
3232: IF P_PA_DEBUG_MODE = 'Y' THEN
3233: pa_debug.init_err_stack('pa_fin_plan_utils.get_amttype_id');
3234: END IF;
3235:
3236: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3237: l_debug_mode := NVL(l_debug_mode, 'Y');

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

3232: IF P_PA_DEBUG_MODE = 'Y' THEN
3233: pa_debug.init_err_stack('pa_fin_plan_utils.get_amttype_id');
3234: END IF;
3235:
3236: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3237: l_debug_mode := NVL(l_debug_mode, 'Y');
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.set_process('get_amttype_id: ' || 'PLSQL','LOG',l_debug_mode);

Line 3239: IF P_PA_DEBUG_MODE = 'Y' THEN

3235:
3236: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3237: l_debug_mode := NVL(l_debug_mode, 'Y');
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.set_process('get_amttype_id: ' || 'PLSQL','LOG',l_debug_mode);
3241: END IF;
3242:
3243: l_amount_type_id := -99;

Line 3240: pa_debug.set_process('get_amttype_id: ' || 'PLSQL','LOG',l_debug_mode);

3236: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3237: l_debug_mode := NVL(l_debug_mode, 'Y');
3238:
3239: IF P_PA_DEBUG_MODE = 'Y' THEN
3240: pa_debug.set_process('get_amttype_id: ' || 'PLSQL','LOG',l_debug_mode);
3241: END IF;
3242:
3243: l_amount_type_id := -99;
3244:

Line 3263: pa_debug.g_err_stage := 'p_amt_typ_code ['||p_amt_typ_code ||']';

3259: END IF;
3260: END LOOP;
3261: END IF;
3262: IF l_amount_type_id = -99 THEN
3263: pa_debug.g_err_stage := 'p_amt_typ_code ['||p_amt_typ_code ||']';
3264: IF P_PA_DEBUG_MODE = 'Y' THEN
3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);
3266: END IF;
3267: END IF;

Line 3264: IF P_PA_DEBUG_MODE = 'Y' THEN

3260: END LOOP;
3261: END IF;
3262: IF l_amount_type_id = -99 THEN
3263: pa_debug.g_err_stage := 'p_amt_typ_code ['||p_amt_typ_code ||']';
3264: IF P_PA_DEBUG_MODE = 'Y' THEN
3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);
3266: END IF;
3267: END IF;
3268: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);

3261: END IF;
3262: IF l_amount_type_id = -99 THEN
3263: pa_debug.g_err_stage := 'p_amt_typ_code ['||p_amt_typ_code ||']';
3264: IF P_PA_DEBUG_MODE = 'Y' THEN
3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);
3266: END IF;
3267: END IF;
3268: IF P_PA_DEBUG_MODE = 'Y' THEN
3269: pa_debug.reset_err_stack;

Line 3268: IF P_PA_DEBUG_MODE = 'Y' THEN

3264: IF P_PA_DEBUG_MODE = 'Y' THEN
3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);
3266: END IF;
3267: END IF;
3268: IF P_PA_DEBUG_MODE = 'Y' THEN
3269: pa_debug.reset_err_stack;
3270: END IF;
3271: RETURN(l_amount_type_id);
3272:

Line 3269: pa_debug.reset_err_stack;

3265: pa_debug.write_file('get_amttype_id: ' || pa_debug.g_err_stage);
3266: END IF;
3267: END IF;
3268: IF P_PA_DEBUG_MODE = 'Y' THEN
3269: pa_debug.reset_err_stack;
3270: END IF;
3271: RETURN(l_amount_type_id);
3272:
3273: EXCEPTION

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

3273: EXCEPTION
3274: WHEN OTHERS THEN
3275: FND_MSG_PUB.add_exc_msg(
3276: p_pkg_name => 'pa_fin_plan_utils.get_amttype_id'
3277: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3278:
3279: IF P_PA_DEBUG_MODE = 'Y' THEN
3280: pa_debug.write_file('get_amttype_id: ' || SQLERRM);
3281: pa_debug.reset_err_stack;

Line 3279: IF P_PA_DEBUG_MODE = 'Y' THEN

3275: FND_MSG_PUB.add_exc_msg(
3276: p_pkg_name => 'pa_fin_plan_utils.get_amttype_id'
3277: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3278:
3279: IF P_PA_DEBUG_MODE = 'Y' THEN
3280: pa_debug.write_file('get_amttype_id: ' || SQLERRM);
3281: pa_debug.reset_err_stack;
3282: END IF;
3283: RAISE;

Line 3280: pa_debug.write_file('get_amttype_id: ' || SQLERRM);

3276: p_pkg_name => 'pa_fin_plan_utils.get_amttype_id'
3277: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3278:
3279: IF P_PA_DEBUG_MODE = 'Y' THEN
3280: pa_debug.write_file('get_amttype_id: ' || SQLERRM);
3281: pa_debug.reset_err_stack;
3282: END IF;
3283: RAISE;
3284: END get_amttype_id;

Line 3281: pa_debug.reset_err_stack;

3277: ,p_procedure_name => PA_DEBUG.G_Err_Stack);
3278:
3279: IF P_PA_DEBUG_MODE = 'Y' THEN
3280: pa_debug.write_file('get_amttype_id: ' || SQLERRM);
3281: pa_debug.reset_err_stack;
3282: END IF;
3283: RAISE;
3284: END get_amttype_id;
3285:

Line 3325: IF P_PA_DEBUG_MODE = 'Y' THEN

3321:
3322: BEGIN
3323: x_msg_count := 0;
3324: x_return_status := FND_API.G_RET_STS_SUCCESS;
3325: IF P_PA_DEBUG_MODE = 'Y' THEN
3326: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');
3327: END IF;
3328: /* CHECK FOR BUSINESS RULES VIOLATIONS */
3329:

Line 3326: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');

3322: BEGIN
3323: x_msg_count := 0;
3324: x_return_status := FND_API.G_RET_STS_SUCCESS;
3325: IF P_PA_DEBUG_MODE = 'Y' THEN
3326: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');
3327: END IF;
3328: /* CHECK FOR BUSINESS RULES VIOLATIONS */
3329:
3330: -- Check for VALID USER ID

Line 3331: IF P_PA_DEBUG_MODE = 'Y' THEN

3327: END IF;
3328: /* CHECK FOR BUSINESS RULES VIOLATIONS */
3329:
3330: -- Check for VALID USER ID
3331: IF P_PA_DEBUG_MODE = 'Y' THEN
3332: pa_debug.g_err_stage := 'calling get user info';
3333: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3334: END IF;
3335: /*

Line 3332: pa_debug.g_err_stage := 'calling get user info';

3328: /* CHECK FOR BUSINESS RULES VIOLATIONS */
3329:
3330: -- Check for VALID USER ID
3331: IF P_PA_DEBUG_MODE = 'Y' THEN
3332: pa_debug.g_err_stage := 'calling get user info';
3333: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3334: END IF;
3335: /*
3336: Bug 2933777 : l_resource_name is obtained from the following procedure. But is not required

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

3329:
3330: -- Check for VALID USER ID
3331: IF P_PA_DEBUG_MODE = 'Y' THEN
3332: pa_debug.g_err_stage := 'calling get user info';
3333: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3334: END IF;
3335: /*
3336: Bug 2933777 : l_resource_name is obtained from the following procedure. But is not required
3337: for processing in this API. Hence UTF 8 impact is limited to fetching the value into a

Line 3345: IF P_PA_DEBUG_MODE = 'Y' THEN

3341: (p_user_id => p_user_id,
3342: x_person_id => l_person_id,
3343: x_resource_id => l_resource_id,
3344: x_resource_name => l_resource_name);
3345: IF P_PA_DEBUG_MODE = 'Y' THEN
3346: pa_debug.g_err_stage := 'l_person_id = ' || l_person_id;
3347: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3348: END IF;
3349: if l_person_id is null then

Line 3346: pa_debug.g_err_stage := 'l_person_id = ' || l_person_id;

3342: x_person_id => l_person_id,
3343: x_resource_id => l_resource_id,
3344: x_resource_name => l_resource_name);
3345: IF P_PA_DEBUG_MODE = 'Y' THEN
3346: pa_debug.g_err_stage := 'l_person_id = ' || l_person_id;
3347: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3348: END IF;
3349: if l_person_id is null then
3350: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

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

3343: x_resource_id => l_resource_id,
3344: x_resource_name => l_resource_name);
3345: IF P_PA_DEBUG_MODE = 'Y' THEN
3346: pa_debug.g_err_stage := 'l_person_id = ' || l_person_id;
3347: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3348: END IF;
3349: if l_person_id is null then
3350: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3351: p_msg_name => 'PA_FP_BAD_USER_ID');

Line 3356: IF P_PA_DEBUG_MODE = 'Y' THEN

3352: x_return_status := FND_API.G_RET_STS_ERROR;
3353: end if; -- error with p_user_id
3354:
3355: -- Check for VALID BUDGET VERSION ID
3356: IF P_PA_DEBUG_MODE = 'Y' THEN
3357: pa_debug.g_err_stage := 'opening budget_csr';
3358: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3359: END IF;
3360: open budget_csr;

Line 3357: pa_debug.g_err_stage := 'opening budget_csr';

3353: end if; -- error with p_user_id
3354:
3355: -- Check for VALID BUDGET VERSION ID
3356: IF P_PA_DEBUG_MODE = 'Y' THEN
3357: pa_debug.g_err_stage := 'opening budget_csr';
3358: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3359: END IF;
3360: open budget_csr;
3361: fetch budget_csr into budget_rec;

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

3354:
3355: -- Check for VALID BUDGET VERSION ID
3356: IF P_PA_DEBUG_MODE = 'Y' THEN
3357: pa_debug.g_err_stage := 'opening budget_csr';
3358: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3359: END IF;
3360: open budget_csr;
3361: fetch budget_csr into budget_rec;
3362: if budget_csr%NOTFOUND then

Line 3363: IF P_PA_DEBUG_MODE = 'Y' THEN

3359: END IF;
3360: open budget_csr;
3361: fetch budget_csr into budget_rec;
3362: if budget_csr%NOTFOUND then
3363: IF P_PA_DEBUG_MODE = 'Y' THEN
3364: pa_debug.g_err_stage := 'budget_csr notfound true';
3365: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3366: END IF;
3367: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 3364: pa_debug.g_err_stage := 'budget_csr notfound true';

3360: open budget_csr;
3361: fetch budget_csr into budget_rec;
3362: if budget_csr%NOTFOUND then
3363: IF P_PA_DEBUG_MODE = 'Y' THEN
3364: pa_debug.g_err_stage := 'budget_csr notfound true';
3365: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3366: END IF;
3367: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3368: p_msg_name => 'PA_FP_INVALID_PLAN_VERSION');

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

3361: fetch budget_csr into budget_rec;
3362: if budget_csr%NOTFOUND then
3363: IF P_PA_DEBUG_MODE = 'Y' THEN
3364: pa_debug.g_err_stage := 'budget_csr notfound true';
3365: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3366: END IF;
3367: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3368: p_msg_name => 'PA_FP_INVALID_PLAN_VERSION');
3369: x_return_status := FND_API.G_RET_STS_ERROR;

Line 3376: IF P_PA_DEBUG_MODE = 'Y' THEN

3372:
3373: /* If There are ANY Business Rules Violations , Then Do NOT Proceed: RETURN */
3374: l_msg_count := FND_MSG_PUB.count_msg;
3375: if x_return_status <> FND_API.G_RET_STS_SUCCESS then
3376: IF P_PA_DEBUG_MODE = 'Y' THEN
3377: pa_debug.g_err_stage := 'l_msg_count = ' || l_msg_count;
3378: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3379: END IF;
3380: x_return_status := FND_API.G_RET_STS_ERROR;

Line 3377: pa_debug.g_err_stage := 'l_msg_count = ' || l_msg_count;

3373: /* If There are ANY Business Rules Violations , Then Do NOT Proceed: RETURN */
3374: l_msg_count := FND_MSG_PUB.count_msg;
3375: if x_return_status <> FND_API.G_RET_STS_SUCCESS then
3376: IF P_PA_DEBUG_MODE = 'Y' THEN
3377: pa_debug.g_err_stage := 'l_msg_count = ' || l_msg_count;
3378: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3379: END IF;
3380: x_return_status := FND_API.G_RET_STS_ERROR;
3381: if l_msg_count = 1 then

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

3374: l_msg_count := FND_MSG_PUB.count_msg;
3375: if x_return_status <> FND_API.G_RET_STS_SUCCESS then
3376: IF P_PA_DEBUG_MODE = 'Y' THEN
3377: pa_debug.g_err_stage := 'l_msg_count = ' || l_msg_count;
3378: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3379: END IF;
3380: x_return_status := FND_API.G_RET_STS_ERROR;
3381: if l_msg_count = 1 then
3382: PA_INTERFACE_UTILS_PUB.get_messages

Line 3394: IF P_PA_DEBUG_MODE = 'Y' THEN

3390: x_msg_count := l_msg_count;
3391: else
3392: x_msg_count := l_msg_count;
3393: end if;
3394: IF P_PA_DEBUG_MODE = 'Y' THEN
3395: pa_debug.reset_err_stack;
3396: END IF;
3397: return;
3398: end if;

Line 3395: pa_debug.reset_err_stack;

3391: else
3392: x_msg_count := l_msg_count;
3393: end if;
3394: IF P_PA_DEBUG_MODE = 'Y' THEN
3395: pa_debug.reset_err_stack;
3396: END IF;
3397: return;
3398: end if;
3399:

Line 3404: IF P_PA_DEBUG_MODE = 'Y' THEN

3400: /* If NO VIOLATIONS, proceed */
3401:
3402: -- BASELINED VERSIONS ARE NEVER LOCKED BY ANYONE
3403: if budget_rec.budget_status_code = 'B' then
3404: IF P_PA_DEBUG_MODE = 'Y' THEN
3405: pa_debug.g_err_stage := 'budget_rec.budget_status_code = ' || budget_rec.budget_status_code;
3406: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3407: END IF;
3408: x_is_locked_by_userid := 'N';

Line 3405: pa_debug.g_err_stage := 'budget_rec.budget_status_code = ' || budget_rec.budget_status_code;

3401:
3402: -- BASELINED VERSIONS ARE NEVER LOCKED BY ANYONE
3403: if budget_rec.budget_status_code = 'B' then
3404: IF P_PA_DEBUG_MODE = 'Y' THEN
3405: pa_debug.g_err_stage := 'budget_rec.budget_status_code = ' || budget_rec.budget_status_code;
3406: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3407: END IF;
3408: x_is_locked_by_userid := 'N';
3409: else

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

3402: -- BASELINED VERSIONS ARE NEVER LOCKED BY ANYONE
3403: if budget_rec.budget_status_code = 'B' then
3404: IF P_PA_DEBUG_MODE = 'Y' THEN
3405: pa_debug.g_err_stage := 'budget_rec.budget_status_code = ' || budget_rec.budget_status_code;
3406: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3407: END IF;
3408: x_is_locked_by_userid := 'N';
3409: else
3410: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 3410: IF P_PA_DEBUG_MODE = 'Y' THEN

3406: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3407: END IF;
3408: x_is_locked_by_userid := 'N';
3409: else
3410: IF P_PA_DEBUG_MODE = 'Y' THEN
3411: pa_debug.g_err_stage := 'budget_rec.locked_by_person_id = ' || budget_rec.locked_by_person_id;
3412: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3413: END IF;
3414: if budget_rec.locked_by_person_id is null then

Line 3411: pa_debug.g_err_stage := 'budget_rec.locked_by_person_id = ' || budget_rec.locked_by_person_id;

3407: END IF;
3408: x_is_locked_by_userid := 'N';
3409: else
3410: IF P_PA_DEBUG_MODE = 'Y' THEN
3411: pa_debug.g_err_stage := 'budget_rec.locked_by_person_id = ' || budget_rec.locked_by_person_id;
3412: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3413: END IF;
3414: if budget_rec.locked_by_person_id is null then
3415: -- BUDGET IS UNLOCKED

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

3408: x_is_locked_by_userid := 'N';
3409: else
3410: IF P_PA_DEBUG_MODE = 'Y' THEN
3411: pa_debug.g_err_stage := 'budget_rec.locked_by_person_id = ' || budget_rec.locked_by_person_id;
3412: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3413: END IF;
3414: if budget_rec.locked_by_person_id is null then
3415: -- BUDGET IS UNLOCKED
3416:

Line 3435: IF P_PA_DEBUG_MODE = 'Y' THEN

3431: x_locked_by_person_id := budget_rec.locked_by_person_id;
3432: end if; -- matching person id's
3433: end if; -- locked_by_person_id is null
3434: end if; -- budget_status_code
3435: IF P_PA_DEBUG_MODE = 'Y' THEN
3436: pa_debug.g_err_stage := 'exiting check_locked_by_user';
3437: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3438: pa_debug.reset_err_stack;
3439: END IF;

Line 3436: pa_debug.g_err_stage := 'exiting check_locked_by_user';

3432: end if; -- matching person id's
3433: end if; -- locked_by_person_id is null
3434: end if; -- budget_status_code
3435: IF P_PA_DEBUG_MODE = 'Y' THEN
3436: pa_debug.g_err_stage := 'exiting check_locked_by_user';
3437: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3438: pa_debug.reset_err_stack;
3439: END IF;
3440: EXCEPTION

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

3433: end if; -- locked_by_person_id is null
3434: end if; -- budget_status_code
3435: IF P_PA_DEBUG_MODE = 'Y' THEN
3436: pa_debug.g_err_stage := 'exiting check_locked_by_user';
3437: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3438: pa_debug.reset_err_stack;
3439: END IF;
3440: EXCEPTION
3441: WHEN OTHERS THEN

Line 3438: pa_debug.reset_err_stack;

3434: end if; -- budget_status_code
3435: IF P_PA_DEBUG_MODE = 'Y' THEN
3436: pa_debug.g_err_stage := 'exiting check_locked_by_user';
3437: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
3438: pa_debug.reset_err_stack;
3439: END IF;
3440: EXCEPTION
3441: WHEN OTHERS THEN
3442: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 3445: IF P_PA_DEBUG_MODE = 'Y' THEN

3441: WHEN OTHERS THEN
3442: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3443: FND_MSG_PUB.add_exc_msg(p_pkg_name => 'PA_FIN_PLAN_UTILS',
3444: p_procedure_name => 'Check_Locked_By_User');
3445: IF P_PA_DEBUG_MODE = 'Y' THEN
3446: pa_debug.reset_err_stack;
3447: END IF;
3448: RAISE;
3449: END Check_Locked_By_User;

Line 3446: pa_debug.reset_err_stack;

3442: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3443: FND_MSG_PUB.add_exc_msg(p_pkg_name => 'PA_FIN_PLAN_UTILS',
3444: p_procedure_name => 'Check_Locked_By_User');
3445: IF P_PA_DEBUG_MODE = 'Y' THEN
3446: pa_debug.reset_err_stack;
3447: END IF;
3448: RAISE;
3449: END Check_Locked_By_User;
3450:

Line 3483: IF P_PA_DEBUG_MODE = 'Y' THEN

3479:
3480: BEGIN
3481: x_msg_count := 0;
3482: x_return_status := FND_API.G_RET_STS_SUCCESS;
3483: IF P_PA_DEBUG_MODE = 'Y' THEN
3484: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');
3485: END IF;
3486: pa_fin_plan_utils.Check_Locked_By_User
3487: (p_user_id => p_user_id,

Line 3484: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');

3480: BEGIN
3481: x_msg_count := 0;
3482: x_return_status := FND_API.G_RET_STS_SUCCESS;
3483: IF P_PA_DEBUG_MODE = 'Y' THEN
3484: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Check_Locked_By_User');
3485: END IF;
3486: pa_fin_plan_utils.Check_Locked_By_User
3487: (p_user_id => p_user_id,
3488: p_budget_version_id => p_budget_version_id1,

Line 3515: IF P_PA_DEBUG_MODE = 'Y' THEN

3511: x_is_locked_by_userid := 'Y';
3512: else
3513: x_is_locked_by_userid := 'N';
3514: end if;
3515: IF P_PA_DEBUG_MODE = 'Y' THEN
3516: pa_debug.reset_err_stack;
3517: END IF;
3518: EXCEPTION
3519: WHEN pa_fin_plan_utils.Check_Locked_By_User_Exception THEN

Line 3516: pa_debug.reset_err_stack;

3512: else
3513: x_is_locked_by_userid := 'N';
3514: end if;
3515: IF P_PA_DEBUG_MODE = 'Y' THEN
3516: pa_debug.reset_err_stack;
3517: END IF;
3518: EXCEPTION
3519: WHEN pa_fin_plan_utils.Check_Locked_By_User_Exception THEN
3520: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 3521: IF P_PA_DEBUG_MODE = 'Y' THEN

3517: END IF;
3518: EXCEPTION
3519: WHEN pa_fin_plan_utils.Check_Locked_By_User_Exception THEN
3520: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3521: IF P_PA_DEBUG_MODE = 'Y' THEN
3522: pa_debug.write_file('Check_Both_Locked_By_User: ' || 'Check_Locked_By_User_Exception reached');
3523: END IF;
3524: FND_MSG_PUB.add_exc_msg(p_pkg_name => 'PA_FIN_PLAN_UTILS',
3525: p_procedure_name => 'Check_Both_Locked_By_User');

Line 3522: pa_debug.write_file('Check_Both_Locked_By_User: ' || 'Check_Locked_By_User_Exception reached');

3518: EXCEPTION
3519: WHEN pa_fin_plan_utils.Check_Locked_By_User_Exception THEN
3520: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
3521: IF P_PA_DEBUG_MODE = 'Y' THEN
3522: pa_debug.write_file('Check_Both_Locked_By_User: ' || 'Check_Locked_By_User_Exception reached');
3523: END IF;
3524: FND_MSG_PUB.add_exc_msg(p_pkg_name => 'PA_FIN_PLAN_UTILS',
3525: p_procedure_name => 'Check_Both_Locked_By_User');
3526: WHEN OTHERS THEN

Line 3658: IF P_PA_DEBUG_MODE = 'Y' THEN

3654: BEGIN
3655: x_msg_count := 0;
3656: x_return_status := FND_API.G_RET_STS_SUCCESS;
3657:
3658: IF P_PA_DEBUG_MODE = 'Y' THEN
3659: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3660: END IF;
3661: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3662: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 3659: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');

3655: x_msg_count := 0;
3656: x_return_status := FND_API.G_RET_STS_SUCCESS;
3657:
3658: IF P_PA_DEBUG_MODE = 'Y' THEN
3659: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3660: END IF;
3661: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3662: l_debug_mode := NVL(l_debug_mode, 'Y');
3663: IF P_PA_DEBUG_MODE = 'Y' THEN

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

3657:
3658: IF P_PA_DEBUG_MODE = 'Y' THEN
3659: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3660: END IF;
3661: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3662: l_debug_mode := NVL(l_debug_mode, 'Y');
3663: IF P_PA_DEBUG_MODE = 'Y' THEN
3664: pa_debug.set_process('Get_Resource_List_Info: ' || 'PLSQL','LOG',l_debug_mode);
3665: END IF;

Line 3663: IF P_PA_DEBUG_MODE = 'Y' THEN

3659: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3660: END IF;
3661: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3662: l_debug_mode := NVL(l_debug_mode, 'Y');
3663: IF P_PA_DEBUG_MODE = 'Y' THEN
3664: pa_debug.set_process('Get_Resource_List_Info: ' || 'PLSQL','LOG',l_debug_mode);
3665: END IF;
3666:
3667: -- Check for not null parameters

Line 3664: pa_debug.set_process('Get_Resource_List_Info: ' || 'PLSQL','LOG',l_debug_mode);

3660: END IF;
3661: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3662: l_debug_mode := NVL(l_debug_mode, 'Y');
3663: IF P_PA_DEBUG_MODE = 'Y' THEN
3664: pa_debug.set_process('Get_Resource_List_Info: ' || 'PLSQL','LOG',l_debug_mode);
3665: END IF;
3666:
3667: -- Check for not null parameters
3668:

Line 3669: pa_debug.g_err_stage := 'Checking for valid parameters:';

3665: END IF;
3666:
3667: -- Check for not null parameters
3668:
3669: pa_debug.g_err_stage := 'Checking for valid parameters:';
3670: IF P_PA_DEBUG_MODE = 'Y' THEN
3671: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,3);
3672: END IF;
3673:

Line 3670: IF P_PA_DEBUG_MODE = 'Y' THEN

3666:
3667: -- Check for not null parameters
3668:
3669: pa_debug.g_err_stage := 'Checking for valid parameters:';
3670: IF P_PA_DEBUG_MODE = 'Y' THEN
3671: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,3);
3672: END IF;
3673:
3674: IF (p_resource_list_id IS NULL)

Line 3671: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,3);

3667: -- Check for not null parameters
3668:
3669: pa_debug.g_err_stage := 'Checking for valid parameters:';
3670: IF P_PA_DEBUG_MODE = 'Y' THEN
3671: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,3);
3672: END IF;
3673:
3674: IF (p_resource_list_id IS NULL)
3675:

Line 3678: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);

3674: IF (p_resource_list_id IS NULL)
3675:
3676: THEN
3677:
3678: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3679: IF P_PA_DEBUG_MODE = 'Y' THEN
3680: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3681: END IF;
3682: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',

Line 3679: IF P_PA_DEBUG_MODE = 'Y' THEN

3675:
3676: THEN
3677:
3678: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3679: IF P_PA_DEBUG_MODE = 'Y' THEN
3680: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3681: END IF;
3682: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
3683: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 3680: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);

3676: THEN
3677:
3678: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3679: IF P_PA_DEBUG_MODE = 'Y' THEN
3680: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3681: END IF;
3682: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
3683: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
3684:

Line 3698: IF P_PA_DEBUG_MODE = 'Y' THEN

3694: ,x_group_resource_type_id
3695: FROM pa_resource_lists
3696: WHERE resource_list_id = p_resource_list_id ;
3697:
3698: IF P_PA_DEBUG_MODE = 'Y' THEN
3699: pa_debug.reset_err_stack;
3700: END IF;
3701: EXCEPTION
3702: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 3699: pa_debug.reset_err_stack;

3695: FROM pa_resource_lists
3696: WHERE resource_list_id = p_resource_list_id ;
3697:
3698: IF P_PA_DEBUG_MODE = 'Y' THEN
3699: pa_debug.reset_err_stack;
3700: END IF;
3701: EXCEPTION
3702: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
3703:

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

3721: x_msg_count := l_msg_count;
3722:
3723: END IF;
3724:
3725: pa_debug.g_err_stage:='Invalid Arguments Passed';
3726: IF P_PA_DEBUG_MODE = 'Y' THEN
3727: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3728: END IF;
3729:

Line 3726: IF P_PA_DEBUG_MODE = 'Y' THEN

3722:
3723: END IF;
3724:
3725: pa_debug.g_err_stage:='Invalid Arguments Passed';
3726: IF P_PA_DEBUG_MODE = 'Y' THEN
3727: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3728: END IF;
3729:
3730: x_return_status:= FND_API.G_RET_STS_ERROR;

Line 3727: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);

3723: END IF;
3724:
3725: pa_debug.g_err_stage:='Invalid Arguments Passed';
3726: IF P_PA_DEBUG_MODE = 'Y' THEN
3727: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3728: END IF;
3729:
3730: x_return_status:= FND_API.G_RET_STS_ERROR;
3731:

Line 3732: IF P_PA_DEBUG_MODE = 'Y' THEN

3728: END IF;
3729:
3730: x_return_status:= FND_API.G_RET_STS_ERROR;
3731:
3732: IF P_PA_DEBUG_MODE = 'Y' THEN
3733: pa_debug.reset_err_stack;
3734: END IF;
3735: RAISE;
3736:

Line 3733: pa_debug.reset_err_stack;

3729:
3730: x_return_status:= FND_API.G_RET_STS_ERROR;
3731:
3732: IF P_PA_DEBUG_MODE = 'Y' THEN
3733: pa_debug.reset_err_stack;
3734: END IF;
3735: RAISE;
3736:
3737: WHEN Others THEN

Line 3746: pa_debug.g_err_stage:='Unexpected Error';

3742:
3743: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
3744: ,p_procedure_name => 'Get_Resource_List_Info');
3745:
3746: pa_debug.g_err_stage:='Unexpected Error';
3747: IF P_PA_DEBUG_MODE = 'Y' THEN
3748: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3749:
3750: pa_debug.reset_err_stack;

Line 3747: IF P_PA_DEBUG_MODE = 'Y' THEN

3743: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
3744: ,p_procedure_name => 'Get_Resource_List_Info');
3745:
3746: pa_debug.g_err_stage:='Unexpected Error';
3747: IF P_PA_DEBUG_MODE = 'Y' THEN
3748: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3749:
3750: pa_debug.reset_err_stack;
3751: END IF;

Line 3748: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);

3744: ,p_procedure_name => 'Get_Resource_List_Info');
3745:
3746: pa_debug.g_err_stage:='Unexpected Error';
3747: IF P_PA_DEBUG_MODE = 'Y' THEN
3748: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3749:
3750: pa_debug.reset_err_stack;
3751: END IF;
3752: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3750: pa_debug.reset_err_stack;

3746: pa_debug.g_err_stage:='Unexpected Error';
3747: IF P_PA_DEBUG_MODE = 'Y' THEN
3748: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3749:
3750: pa_debug.reset_err_stack;
3751: END IF;
3752: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3753:
3754:

Line 3788: IF P_PA_DEBUG_MODE = 'Y' THEN

3784: BEGIN
3785: x_msg_count := 0;
3786: x_return_status := FND_API.G_RET_STS_SUCCESS;
3787:
3788: IF P_PA_DEBUG_MODE = 'Y' THEN
3789: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3790: END IF;
3791: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3792: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 3789: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');

3785: x_msg_count := 0;
3786: x_return_status := FND_API.G_RET_STS_SUCCESS;
3787:
3788: IF P_PA_DEBUG_MODE = 'Y' THEN
3789: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3790: END IF;
3791: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3792: l_debug_mode := NVL(l_debug_mode, 'Y');
3793: IF P_PA_DEBUG_MODE = 'Y' THEN

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

3787:
3788: IF P_PA_DEBUG_MODE = 'Y' THEN
3789: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3790: END IF;
3791: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3792: l_debug_mode := NVL(l_debug_mode, 'Y');
3793: IF P_PA_DEBUG_MODE = 'Y' THEN
3794: pa_debug.set_process('Get_Resource_List_Info(Overloaded): ' || 'PLSQL','LOG',l_debug_mode);
3795: END IF;

Line 3793: IF P_PA_DEBUG_MODE = 'Y' THEN

3789: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Resource_List_Info');
3790: END IF;
3791: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3792: l_debug_mode := NVL(l_debug_mode, 'Y');
3793: IF P_PA_DEBUG_MODE = 'Y' THEN
3794: pa_debug.set_process('Get_Resource_List_Info(Overloaded): ' || 'PLSQL','LOG',l_debug_mode);
3795: END IF;
3796:
3797: -- Check for not null parameters

Line 3794: pa_debug.set_process('Get_Resource_List_Info(Overloaded): ' || 'PLSQL','LOG',l_debug_mode);

3790: END IF;
3791: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3792: l_debug_mode := NVL(l_debug_mode, 'Y');
3793: IF P_PA_DEBUG_MODE = 'Y' THEN
3794: pa_debug.set_process('Get_Resource_List_Info(Overloaded): ' || 'PLSQL','LOG',l_debug_mode);
3795: END IF;
3796:
3797: -- Check for not null parameters
3798:

Line 3799: pa_debug.g_err_stage := 'Checking for valid parameters:';

3795: END IF;
3796:
3797: -- Check for not null parameters
3798:
3799: pa_debug.g_err_stage := 'Checking for valid parameters:';
3800: IF P_PA_DEBUG_MODE = 'Y' THEN
3801: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,3);
3802: END IF;
3803:

Line 3800: IF P_PA_DEBUG_MODE = 'Y' THEN

3796:
3797: -- Check for not null parameters
3798:
3799: pa_debug.g_err_stage := 'Checking for valid parameters:';
3800: IF P_PA_DEBUG_MODE = 'Y' THEN
3801: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,3);
3802: END IF;
3803:
3804: IF (p_resource_list_id IS NULL)

Line 3801: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,3);

3797: -- Check for not null parameters
3798:
3799: pa_debug.g_err_stage := 'Checking for valid parameters:';
3800: IF P_PA_DEBUG_MODE = 'Y' THEN
3801: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,3);
3802: END IF;
3803:
3804: IF (p_resource_list_id IS NULL)
3805:

Line 3808: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);

3804: IF (p_resource_list_id IS NULL)
3805:
3806: THEN
3807:
3808: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3809: IF P_PA_DEBUG_MODE = 'Y' THEN
3810: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3811: END IF;
3812: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',

Line 3809: IF P_PA_DEBUG_MODE = 'Y' THEN

3805:
3806: THEN
3807:
3808: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3809: IF P_PA_DEBUG_MODE = 'Y' THEN
3810: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3811: END IF;
3812: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
3813: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 3810: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);

3806: THEN
3807:
3808: pa_debug.g_err_stage := 'resource list id ='||to_char(p_resource_list_id);
3809: IF P_PA_DEBUG_MODE = 'Y' THEN
3810: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3811: END IF;
3812: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
3813: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
3814:

Line 3834: IF P_PA_DEBUG_MODE = 'Y' THEN

3830: ,x_migration_code
3831: FROM pa_resource_lists_all_bg
3832: WHERE resource_list_id = p_resource_list_id ;
3833:
3834: IF P_PA_DEBUG_MODE = 'Y' THEN
3835: pa_debug.reset_err_stack;
3836: END IF;
3837: EXCEPTION
3838: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 3835: pa_debug.reset_err_stack;

3831: FROM pa_resource_lists_all_bg
3832: WHERE resource_list_id = p_resource_list_id ;
3833:
3834: IF P_PA_DEBUG_MODE = 'Y' THEN
3835: pa_debug.reset_err_stack;
3836: END IF;
3837: EXCEPTION
3838: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
3839:

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

3857: x_msg_count := l_msg_count;
3858:
3859: END IF;
3860:
3861: pa_debug.g_err_stage:='Invalid Arguments Passed';
3862: IF P_PA_DEBUG_MODE = 'Y' THEN
3863: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3864: END IF;
3865:

Line 3862: IF P_PA_DEBUG_MODE = 'Y' THEN

3858:
3859: END IF;
3860:
3861: pa_debug.g_err_stage:='Invalid Arguments Passed';
3862: IF P_PA_DEBUG_MODE = 'Y' THEN
3863: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3864: END IF;
3865:
3866: x_return_status:= FND_API.G_RET_STS_ERROR;

Line 3863: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);

3859: END IF;
3860:
3861: pa_debug.g_err_stage:='Invalid Arguments Passed';
3862: IF P_PA_DEBUG_MODE = 'Y' THEN
3863: pa_debug.write('Get_Resource_List_Info(Overloaded): ' || l_module_name,pa_debug.g_err_stage,5);
3864: END IF;
3865:
3866: x_return_status:= FND_API.G_RET_STS_ERROR;
3867:

Line 3868: IF P_PA_DEBUG_MODE = 'Y' THEN

3864: END IF;
3865:
3866: x_return_status:= FND_API.G_RET_STS_ERROR;
3867:
3868: IF P_PA_DEBUG_MODE = 'Y' THEN
3869: pa_debug.reset_err_stack;
3870: END IF;
3871: RAISE;
3872:

Line 3869: pa_debug.reset_err_stack;

3865:
3866: x_return_status:= FND_API.G_RET_STS_ERROR;
3867:
3868: IF P_PA_DEBUG_MODE = 'Y' THEN
3869: pa_debug.reset_err_stack;
3870: END IF;
3871: RAISE;
3872:
3873: WHEN Others THEN

Line 3882: pa_debug.g_err_stage:='Unexpected Error';

3878:
3879: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
3880: ,p_procedure_name => 'Get_Resource_List_Info');
3881:
3882: pa_debug.g_err_stage:='Unexpected Error';
3883: IF P_PA_DEBUG_MODE = 'Y' THEN
3884: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3885: pa_debug.reset_err_stack;
3886: END IF;

Line 3883: IF P_PA_DEBUG_MODE = 'Y' THEN

3879: FND_MSG_PUB.add_exc_msg( p_pkg_name=> 'PA_FIN_PLAN_UTILS'
3880: ,p_procedure_name => 'Get_Resource_List_Info');
3881:
3882: pa_debug.g_err_stage:='Unexpected Error';
3883: IF P_PA_DEBUG_MODE = 'Y' THEN
3884: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3885: pa_debug.reset_err_stack;
3886: END IF;
3887: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3884: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);

3880: ,p_procedure_name => 'Get_Resource_List_Info');
3881:
3882: pa_debug.g_err_stage:='Unexpected Error';
3883: IF P_PA_DEBUG_MODE = 'Y' THEN
3884: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3885: pa_debug.reset_err_stack;
3886: END IF;
3887: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3888:

Line 3885: pa_debug.reset_err_stack;

3881:
3882: pa_debug.g_err_stage:='Unexpected Error';
3883: IF P_PA_DEBUG_MODE = 'Y' THEN
3884: pa_debug.write('Get_Resource_List_Info: ' || l_module_name,pa_debug.g_err_stage,5);
3885: pa_debug.reset_err_stack;
3886: END IF;
3887: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
3888:
3889:

Line 3907: IF P_PA_DEBUG_MODE = 'Y' THEN

3903: l_business_group_id pa_resource_lists_all_bg.business_group_id%TYPE; -- bug 2760675
3904:
3905: BEGIN
3906:
3907: IF P_PA_DEBUG_MODE = 'Y' THEN
3908: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Uncat_Resource_List_Info');
3909: END IF;
3910: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3911: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 3908: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Uncat_Resource_List_Info');

3904:
3905: BEGIN
3906:
3907: IF P_PA_DEBUG_MODE = 'Y' THEN
3908: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Uncat_Resource_List_Info');
3909: END IF;
3910: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3911: l_debug_mode := NVL(l_debug_mode, 'Y');
3912:

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

3906:
3907: IF P_PA_DEBUG_MODE = 'Y' THEN
3908: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Uncat_Resource_List_Info');
3909: END IF;
3910: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3911: l_debug_mode := NVL(l_debug_mode, 'Y');
3912:
3913: IF P_PA_DEBUG_MODE = 'Y' THEN
3914: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

Line 3913: IF P_PA_DEBUG_MODE = 'Y' THEN

3909: END IF;
3910: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3911: l_debug_mode := NVL(l_debug_mode, 'Y');
3912:
3913: IF P_PA_DEBUG_MODE = 'Y' THEN
3914: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3915: END IF;
3916:
3917: x_msg_count := 0;

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

3910: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
3911: l_debug_mode := NVL(l_debug_mode, 'Y');
3912:
3913: IF P_PA_DEBUG_MODE = 'Y' THEN
3914: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
3915: END IF;
3916:
3917: x_msg_count := 0;
3918: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 3920: IF P_PA_DEBUG_MODE = 'Y' THEN

3916:
3917: x_msg_count := 0;
3918: x_return_status := FND_API.G_RET_STS_SUCCESS;
3919:
3920: IF P_PA_DEBUG_MODE = 'Y' THEN
3921: pa_debug.g_err_stage:='Executing the uncat res list info select...';
3922: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3923: END IF;
3924:

Line 3921: pa_debug.g_err_stage:='Executing the uncat res list info select...';

3917: x_msg_count := 0;
3918: x_return_status := FND_API.G_RET_STS_SUCCESS;
3919:
3920: IF P_PA_DEBUG_MODE = 'Y' THEN
3921: pa_debug.g_err_stage:='Executing the uncat res list info select...';
3922: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3923: END IF;
3924:
3925: l_business_group_id := pa_utils.business_group_id; -- bug 2760675

Line 3922: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

3918: x_return_status := FND_API.G_RET_STS_SUCCESS;
3919:
3920: IF P_PA_DEBUG_MODE = 'Y' THEN
3921: pa_debug.g_err_stage:='Executing the uncat res list info select...';
3922: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3923: END IF;
3924:
3925: l_business_group_id := pa_utils.business_group_id; -- bug 2760675
3926:

Line 3978: IF P_PA_DEBUG_MODE = 'Y' THEN

3974: AND prlm.resource_id = pr.resource_id
3975: AND pbg.uncategorized_flag = 'Y'
3976: AND pbg.business_group_id = pa_utils.business_group_id;
3977: */
3978: IF P_PA_DEBUG_MODE = 'Y' THEN
3979: pa_debug.reset_err_stack;
3980: END IF;
3981: EXCEPTION
3982: WHEN NO_DATA_FOUND THEN

Line 3979: pa_debug.reset_err_stack;

3975: AND pbg.uncategorized_flag = 'Y'
3976: AND pbg.business_group_id = pa_utils.business_group_id;
3977: */
3978: IF P_PA_DEBUG_MODE = 'Y' THEN
3979: pa_debug.reset_err_stack;
3980: END IF;
3981: EXCEPTION
3982: WHEN NO_DATA_FOUND THEN
3983:

Line 3984: IF P_PA_DEBUG_MODE = 'Y' THEN

3980: END IF;
3981: EXCEPTION
3982: WHEN NO_DATA_FOUND THEN
3983:
3984: IF P_PA_DEBUG_MODE = 'Y' THEN
3985: pa_debug.g_err_stage:='Uncat Res List could not be found!!!';
3986: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3987: END IF;
3988:

Line 3985: pa_debug.g_err_stage:='Uncat Res List could not be found!!!';

3981: EXCEPTION
3982: WHEN NO_DATA_FOUND THEN
3983:
3984: IF P_PA_DEBUG_MODE = 'Y' THEN
3985: pa_debug.g_err_stage:='Uncat Res List could not be found!!!';
3986: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3987: END IF;
3988:
3989: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 3986: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

3982: WHEN NO_DATA_FOUND THEN
3983:
3984: IF P_PA_DEBUG_MODE = 'Y' THEN
3985: pa_debug.g_err_stage:='Uncat Res List could not be found!!!';
3986: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
3987: END IF;
3988:
3989: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3990: p_msg_name => 'PA_BU_NO_UNCAT_RESOURCE_LIST' );

Line 3991: IF P_PA_DEBUG_MODE = 'Y' THEN

3987: END IF;
3988:
3989: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3990: p_msg_name => 'PA_BU_NO_UNCAT_RESOURCE_LIST' );
3991: IF P_PA_DEBUG_MODE = 'Y' THEN
3992: pa_debug.reset_err_stack;
3993: END IF;
3994: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
3995:

Line 3992: pa_debug.reset_err_stack;

3988:
3989: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3990: p_msg_name => 'PA_BU_NO_UNCAT_RESOURCE_LIST' );
3991: IF P_PA_DEBUG_MODE = 'Y' THEN
3992: pa_debug.reset_err_stack;
3993: END IF;
3994: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
3995:
3996: END Get_Uncat_Resource_List_Info;

Line 4035: IF P_PA_DEBUG_MODE = 'Y' THEN

4031: l_ac_budget_type_code pa_budget_types.budget_type_code%TYPE := 'AC'; --Bug 3764635.
4032:
4033: BEGIN
4034:
4035: IF P_PA_DEBUG_MODE = 'Y' THEN
4036: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AC_PT_Attached_After_UPG');
4037: END IF;
4038: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4039: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4036: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AC_PT_Attached_After_UPG');

4032:
4033: BEGIN
4034:
4035: IF P_PA_DEBUG_MODE = 'Y' THEN
4036: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AC_PT_Attached_After_UPG');
4037: END IF;
4038: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4039: l_debug_mode := NVL(l_debug_mode, 'Y');
4040: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4034:
4035: IF P_PA_DEBUG_MODE = 'Y' THEN
4036: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AC_PT_Attached_After_UPG');
4037: END IF;
4038: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4039: l_debug_mode := NVL(l_debug_mode, 'Y');
4040: IF P_PA_DEBUG_MODE = 'Y' THEN
4041: pa_debug.set_process('Is_AC_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4042: END IF;

Line 4040: IF P_PA_DEBUG_MODE = 'Y' THEN

4036: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AC_PT_Attached_After_UPG');
4037: END IF;
4038: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4039: l_debug_mode := NVL(l_debug_mode, 'Y');
4040: IF P_PA_DEBUG_MODE = 'Y' THEN
4041: pa_debug.set_process('Is_AC_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4042: END IF;
4043: x_msg_count := 0;
4044: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 4041: pa_debug.set_process('Is_AC_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);

4037: END IF;
4038: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4039: l_debug_mode := NVL(l_debug_mode, 'Y');
4040: IF P_PA_DEBUG_MODE = 'Y' THEN
4041: pa_debug.set_process('Is_AC_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4042: END IF;
4043: x_msg_count := 0;
4044: x_return_status := FND_API.G_RET_STS_SUCCESS;
4045:

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

4044: x_return_status := FND_API.G_RET_STS_SUCCESS;
4045:
4046: -- Check for business rules violations
4047:
4048: pa_debug.g_err_stage:='Validating input parameters';
4049: IF P_PA_DEBUG_MODE = 'Y' THEN
4050: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4051: END IF;
4052:

Line 4049: IF P_PA_DEBUG_MODE = 'Y' THEN

4045:
4046: -- Check for business rules violations
4047:
4048: pa_debug.g_err_stage:='Validating input parameters';
4049: IF P_PA_DEBUG_MODE = 'Y' THEN
4050: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4051: END IF;
4052:
4053: -- project_id can't be null

Line 4050: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4046: -- Check for business rules violations
4047:
4048: pa_debug.g_err_stage:='Validating input parameters';
4049: IF P_PA_DEBUG_MODE = 'Y' THEN
4050: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4051: END IF;
4052:
4053: -- project_id can't be null
4054:

Line 4057: pa_debug.g_err_stage:='Project_id = '||p_project_id;

4053: -- project_id can't be null
4054:
4055: IF (p_project_id IS NULL) THEN
4056:
4057: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4058: IF P_PA_DEBUG_MODE = 'Y' THEN
4059: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4060: END IF;
4061:

Line 4058: IF P_PA_DEBUG_MODE = 'Y' THEN

4054:
4055: IF (p_project_id IS NULL) THEN
4056:
4057: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4058: IF P_PA_DEBUG_MODE = 'Y' THEN
4059: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4060: END IF;
4061:
4062: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4059: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4055: IF (p_project_id IS NULL) THEN
4056:
4057: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4058: IF P_PA_DEBUG_MODE = 'Y' THEN
4059: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4060: END IF;
4061:
4062: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4063: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4069: pa_debug.g_err_stage:='Parameter validation complete ';

4065: RAISE Invalid_Arg_Exc;
4066:
4067: END IF;
4068:
4069: pa_debug.g_err_stage:='Parameter validation complete ';
4070: IF P_PA_DEBUG_MODE = 'Y' THEN
4071: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4072: END IF;
4073:

Line 4070: IF P_PA_DEBUG_MODE = 'Y' THEN

4066:
4067: END IF;
4068:
4069: pa_debug.g_err_stage:='Parameter validation complete ';
4070: IF P_PA_DEBUG_MODE = 'Y' THEN
4071: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4072: END IF;
4073:
4074: --Fetch approved plan type id

Line 4071: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4067: END IF;
4068:
4069: pa_debug.g_err_stage:='Parameter validation complete ';
4070: IF P_PA_DEBUG_MODE = 'Y' THEN
4071: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4072: END IF;
4073:
4074: --Fetch approved plan type id
4075:

Line 4078: pa_debug.g_err_stage:='Fetching approved cost plan type id from the new model';

4074: --Fetch approved plan type id
4075:
4076: BEGIN
4077:
4078: pa_debug.g_err_stage:='Fetching approved cost plan type id from the new model';
4079: IF P_PA_DEBUG_MODE = 'Y' THEN
4080: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4081: END IF;
4082:

Line 4079: IF P_PA_DEBUG_MODE = 'Y' THEN

4075:
4076: BEGIN
4077:
4078: pa_debug.g_err_stage:='Fetching approved cost plan type id from the new model';
4079: IF P_PA_DEBUG_MODE = 'Y' THEN
4080: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4081: END IF;
4082:
4083: Get_Appr_Cost_Plan_Type_Info(

Line 4080: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4076: BEGIN
4077:
4078: pa_debug.g_err_stage:='Fetching approved cost plan type id from the new model';
4079: IF P_PA_DEBUG_MODE = 'Y' THEN
4080: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4081: END IF;
4082:
4083: Get_Appr_Cost_Plan_Type_Info(
4084: p_project_id => p_project_id

Line 4124: pa_debug.g_err_stage:='Exiting Is_AC_PT_Attached_After_UPG';

4120: --return the plan type id
4121:
4122: x_plan_type_id := l_fin_plan_type_id ;
4123:
4124: pa_debug.g_err_stage:='Exiting Is_AC_PT_Attached_After_UPG';
4125: IF P_PA_DEBUG_MODE = 'Y' THEN
4126: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4127: pa_debug.reset_err_stack;
4128: END IF;

Line 4125: IF P_PA_DEBUG_MODE = 'Y' THEN

4121:
4122: x_plan_type_id := l_fin_plan_type_id ;
4123:
4124: pa_debug.g_err_stage:='Exiting Is_AC_PT_Attached_After_UPG';
4125: IF P_PA_DEBUG_MODE = 'Y' THEN
4126: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4127: pa_debug.reset_err_stack;
4128: END IF;
4129: EXCEPTION

Line 4126: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4122: x_plan_type_id := l_fin_plan_type_id ;
4123:
4124: pa_debug.g_err_stage:='Exiting Is_AC_PT_Attached_After_UPG';
4125: IF P_PA_DEBUG_MODE = 'Y' THEN
4126: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4127: pa_debug.reset_err_stack;
4128: END IF;
4129: EXCEPTION
4130:

Line 4127: pa_debug.reset_err_stack;

4123:
4124: pa_debug.g_err_stage:='Exiting Is_AC_PT_Attached_After_UPG';
4125: IF P_PA_DEBUG_MODE = 'Y' THEN
4126: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4127: pa_debug.reset_err_stack;
4128: END IF;
4129: EXCEPTION
4130:
4131: WHEN Invalid_Arg_Exc THEN

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

4152: END IF;
4153:
4154: x_return_status := FND_API.G_RET_STS_ERROR;
4155:
4156: pa_debug.g_err_stage:='Invalid Arguments Passed';
4157: IF P_PA_DEBUG_MODE = 'Y' THEN
4158: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4159: pa_debug.reset_err_stack;
4160: END IF;

Line 4157: IF P_PA_DEBUG_MODE = 'Y' THEN

4153:
4154: x_return_status := FND_API.G_RET_STS_ERROR;
4155:
4156: pa_debug.g_err_stage:='Invalid Arguments Passed';
4157: IF P_PA_DEBUG_MODE = 'Y' THEN
4158: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4159: pa_debug.reset_err_stack;
4160: END IF;
4161: RAISE;

Line 4158: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4154: x_return_status := FND_API.G_RET_STS_ERROR;
4155:
4156: pa_debug.g_err_stage:='Invalid Arguments Passed';
4157: IF P_PA_DEBUG_MODE = 'Y' THEN
4158: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4159: pa_debug.reset_err_stack;
4160: END IF;
4161: RAISE;
4162:

Line 4159: pa_debug.reset_err_stack;

4155:
4156: pa_debug.g_err_stage:='Invalid Arguments Passed';
4157: IF P_PA_DEBUG_MODE = 'Y' THEN
4158: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4159: pa_debug.reset_err_stack;
4160: END IF;
4161: RAISE;
4162:
4163: WHEN Others THEN

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

4168:
4169: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4170: ,p_procedure_name => 'Is_AC_PT_Attached_After_UPG');
4171:
4172: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
4173: IF P_PA_DEBUG_MODE = 'Y' THEN
4174: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4175: pa_debug.reset_err_stack;
4176: END IF;

Line 4173: IF P_PA_DEBUG_MODE = 'Y' THEN

4169: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4170: ,p_procedure_name => 'Is_AC_PT_Attached_After_UPG');
4171:
4172: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
4173: IF P_PA_DEBUG_MODE = 'Y' THEN
4174: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4175: pa_debug.reset_err_stack;
4176: END IF;
4177: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4174: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4170: ,p_procedure_name => 'Is_AC_PT_Attached_After_UPG');
4171:
4172: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
4173: IF P_PA_DEBUG_MODE = 'Y' THEN
4174: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4175: pa_debug.reset_err_stack;
4176: END IF;
4177: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4178:

Line 4175: pa_debug.reset_err_stack;

4171:
4172: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
4173: IF P_PA_DEBUG_MODE = 'Y' THEN
4174: pa_debug.write('Is_AC_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4175: pa_debug.reset_err_stack;
4176: END IF;
4177: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4178:
4179: END Is_AC_PT_Attached_After_UPG;

Line 4217: IF P_PA_DEBUG_MODE = 'Y' THEN

4213: l_ar_budget_type_code pa_budget_types.budget_type_code%TYPE := 'AR'; --Bug 3764635.
4214:
4215: BEGIN
4216:
4217: IF P_PA_DEBUG_MODE = 'Y' THEN
4218: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AR_PT_Attached_After_UPG');
4219: END IF;
4220: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4221: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4218: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AR_PT_Attached_After_UPG');

4214:
4215: BEGIN
4216:
4217: IF P_PA_DEBUG_MODE = 'Y' THEN
4218: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AR_PT_Attached_After_UPG');
4219: END IF;
4220: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4221: l_debug_mode := NVL(l_debug_mode, 'Y');
4222: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4216:
4217: IF P_PA_DEBUG_MODE = 'Y' THEN
4218: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AR_PT_Attached_After_UPG');
4219: END IF;
4220: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4221: l_debug_mode := NVL(l_debug_mode, 'Y');
4222: IF P_PA_DEBUG_MODE = 'Y' THEN
4223: pa_debug.set_process('Is_AR_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4224: END IF;

Line 4222: IF P_PA_DEBUG_MODE = 'Y' THEN

4218: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Is_AR_PT_Attached_After_UPG');
4219: END IF;
4220: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4221: l_debug_mode := NVL(l_debug_mode, 'Y');
4222: IF P_PA_DEBUG_MODE = 'Y' THEN
4223: pa_debug.set_process('Is_AR_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4224: END IF;
4225: x_msg_count := 0;
4226: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 4223: pa_debug.set_process('Is_AR_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);

4219: END IF;
4220: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4221: l_debug_mode := NVL(l_debug_mode, 'Y');
4222: IF P_PA_DEBUG_MODE = 'Y' THEN
4223: pa_debug.set_process('Is_AR_PT_Attached_After_UPG: ' || 'PLSQL','LOG',l_debug_mode);
4224: END IF;
4225: x_msg_count := 0;
4226: x_return_status := FND_API.G_RET_STS_SUCCESS;
4227:

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

4226: x_return_status := FND_API.G_RET_STS_SUCCESS;
4227:
4228: -- Check for business rules violations
4229:
4230: pa_debug.g_err_stage:='Validating input parameters';
4231: IF P_PA_DEBUG_MODE = 'Y' THEN
4232: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4233: END IF;
4234:

Line 4231: IF P_PA_DEBUG_MODE = 'Y' THEN

4227:
4228: -- Check for business rules violations
4229:
4230: pa_debug.g_err_stage:='Validating input parameters';
4231: IF P_PA_DEBUG_MODE = 'Y' THEN
4232: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4233: END IF;
4234:
4235: -- project_id can't be null

Line 4232: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4228: -- Check for business rules violations
4229:
4230: pa_debug.g_err_stage:='Validating input parameters';
4231: IF P_PA_DEBUG_MODE = 'Y' THEN
4232: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4233: END IF;
4234:
4235: -- project_id can't be null
4236:

Line 4239: pa_debug.g_err_stage:='Project_id = '||p_project_id;

4235: -- project_id can't be null
4236:
4237: IF (p_project_id IS NULL) THEN
4238:
4239: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4240: IF P_PA_DEBUG_MODE = 'Y' THEN
4241: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4242: END IF;
4243:

Line 4240: IF P_PA_DEBUG_MODE = 'Y' THEN

4236:
4237: IF (p_project_id IS NULL) THEN
4238:
4239: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4240: IF P_PA_DEBUG_MODE = 'Y' THEN
4241: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4242: END IF;
4243:
4244: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4241: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4237: IF (p_project_id IS NULL) THEN
4238:
4239: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4240: IF P_PA_DEBUG_MODE = 'Y' THEN
4241: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4242: END IF;
4243:
4244: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4245: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4251: pa_debug.g_err_stage:='Parameter validation complete ';

4247: RAISE Invalid_Arg_Exc;
4248:
4249: END IF;
4250:
4251: pa_debug.g_err_stage:='Parameter validation complete ';
4252: IF P_PA_DEBUG_MODE = 'Y' THEN
4253: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4254: END IF;
4255:

Line 4252: IF P_PA_DEBUG_MODE = 'Y' THEN

4248:
4249: END IF;
4250:
4251: pa_debug.g_err_stage:='Parameter validation complete ';
4252: IF P_PA_DEBUG_MODE = 'Y' THEN
4253: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4254: END IF;
4255:
4256: --Fetch approved plan type id

Line 4253: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4249: END IF;
4250:
4251: pa_debug.g_err_stage:='Parameter validation complete ';
4252: IF P_PA_DEBUG_MODE = 'Y' THEN
4253: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4254: END IF;
4255:
4256: --Fetch approved plan type id
4257:

Line 4260: pa_debug.g_err_stage:='Fetching approved revenue plan type id from the new model';

4256: --Fetch approved plan type id
4257:
4258: BEGIN
4259:
4260: pa_debug.g_err_stage:='Fetching approved revenue plan type id from the new model';
4261: IF P_PA_DEBUG_MODE = 'Y' THEN
4262: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4263: END IF;
4264:

Line 4261: IF P_PA_DEBUG_MODE = 'Y' THEN

4257:
4258: BEGIN
4259:
4260: pa_debug.g_err_stage:='Fetching approved revenue plan type id from the new model';
4261: IF P_PA_DEBUG_MODE = 'Y' THEN
4262: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4263: END IF;
4264:
4265: Get_Appr_Rev_Plan_Type_Info(

Line 4262: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4258: BEGIN
4259:
4260: pa_debug.g_err_stage:='Fetching approved revenue plan type id from the new model';
4261: IF P_PA_DEBUG_MODE = 'Y' THEN
4262: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4263: END IF;
4264:
4265: Get_Appr_Rev_Plan_Type_Info(
4266: p_project_id => p_project_id

Line 4306: pa_debug.g_err_stage:='Exiting Is_AR_PT_Attached_After_UPG';

4302: --return the plan type id
4303:
4304: x_plan_type_id := l_fin_plan_type_id ;
4305:
4306: pa_debug.g_err_stage:='Exiting Is_AR_PT_Attached_After_UPG';
4307: IF P_PA_DEBUG_MODE = 'Y' THEN
4308: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4309: pa_debug.reset_err_stack;
4310: END IF;

Line 4307: IF P_PA_DEBUG_MODE = 'Y' THEN

4303:
4304: x_plan_type_id := l_fin_plan_type_id ;
4305:
4306: pa_debug.g_err_stage:='Exiting Is_AR_PT_Attached_After_UPG';
4307: IF P_PA_DEBUG_MODE = 'Y' THEN
4308: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4309: pa_debug.reset_err_stack;
4310: END IF;
4311: EXCEPTION

Line 4308: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);

4304: x_plan_type_id := l_fin_plan_type_id ;
4305:
4306: pa_debug.g_err_stage:='Exiting Is_AR_PT_Attached_After_UPG';
4307: IF P_PA_DEBUG_MODE = 'Y' THEN
4308: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4309: pa_debug.reset_err_stack;
4310: END IF;
4311: EXCEPTION
4312:

Line 4309: pa_debug.reset_err_stack;

4305:
4306: pa_debug.g_err_stage:='Exiting Is_AR_PT_Attached_After_UPG';
4307: IF P_PA_DEBUG_MODE = 'Y' THEN
4308: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,3);
4309: pa_debug.reset_err_stack;
4310: END IF;
4311: EXCEPTION
4312:
4313: WHEN Invalid_Arg_Exc THEN

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

4334: END IF;
4335:
4336: x_return_status := FND_API.G_RET_STS_ERROR;
4337:
4338: pa_debug.g_err_stage:='Invalid Arguments Passed';
4339: IF P_PA_DEBUG_MODE = 'Y' THEN
4340: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4341:
4342: pa_debug.reset_err_stack;

Line 4339: IF P_PA_DEBUG_MODE = 'Y' THEN

4335:
4336: x_return_status := FND_API.G_RET_STS_ERROR;
4337:
4338: pa_debug.g_err_stage:='Invalid Arguments Passed';
4339: IF P_PA_DEBUG_MODE = 'Y' THEN
4340: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4341:
4342: pa_debug.reset_err_stack;
4343: END IF;

Line 4340: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4336: x_return_status := FND_API.G_RET_STS_ERROR;
4337:
4338: pa_debug.g_err_stage:='Invalid Arguments Passed';
4339: IF P_PA_DEBUG_MODE = 'Y' THEN
4340: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4341:
4342: pa_debug.reset_err_stack;
4343: END IF;
4344: RAISE;

Line 4342: pa_debug.reset_err_stack;

4338: pa_debug.g_err_stage:='Invalid Arguments Passed';
4339: IF P_PA_DEBUG_MODE = 'Y' THEN
4340: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4341:
4342: pa_debug.reset_err_stack;
4343: END IF;
4344: RAISE;
4345:
4346: WHEN Others THEN

Line 4355: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;

4351:
4352: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4353: ,p_procedure_name => 'Is_AR_PT_Attached_After_UPG');
4354:
4355: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4356: IF P_PA_DEBUG_MODE = 'Y' THEN
4357: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4358:
4359: pa_debug.reset_err_stack;

Line 4356: IF P_PA_DEBUG_MODE = 'Y' THEN

4352: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4353: ,p_procedure_name => 'Is_AR_PT_Attached_After_UPG');
4354:
4355: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4356: IF P_PA_DEBUG_MODE = 'Y' THEN
4357: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4358:
4359: pa_debug.reset_err_stack;
4360: END IF;

Line 4357: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);

4353: ,p_procedure_name => 'Is_AR_PT_Attached_After_UPG');
4354:
4355: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4356: IF P_PA_DEBUG_MODE = 'Y' THEN
4357: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4358:
4359: pa_debug.reset_err_stack;
4360: END IF;
4361: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4359: pa_debug.reset_err_stack;

4355: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4356: IF P_PA_DEBUG_MODE = 'Y' THEN
4357: pa_debug.write('Is_AR_PT_Attached_After_UPG: ' || l_module_name,pa_debug.g_err_stage,5);
4358:
4359: pa_debug.reset_err_stack;
4360: END IF;
4361: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4362:
4363: END Is_AR_PT_Attached_After_UPG;

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

4396: l_version_number pa_budget_versions.version_number%TYPE;
4397:
4398: BEGIN
4399:
4400: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4401: l_debug_mode := NVL(l_debug_mode, 'Y');
4402: IF P_PA_DEBUG_MODE = 'Y' THEN
4403: pa_debug.set_curr_function( p_function =>'Get_Max_Budget_Version_Number',
4404: p_debug_mode => l_debug_mode);

Line 4402: IF P_PA_DEBUG_MODE = 'Y' THEN

4398: BEGIN
4399:
4400: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4401: l_debug_mode := NVL(l_debug_mode, 'Y');
4402: IF P_PA_DEBUG_MODE = 'Y' THEN
4403: pa_debug.set_curr_function( p_function =>'Get_Max_Budget_Version_Number',
4404: p_debug_mode => l_debug_mode);
4405: END IF;
4406: x_msg_count := 0;

Line 4403: pa_debug.set_curr_function( p_function =>'Get_Max_Budget_Version_Number',

4399:
4400: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4401: l_debug_mode := NVL(l_debug_mode, 'Y');
4402: IF P_PA_DEBUG_MODE = 'Y' THEN
4403: pa_debug.set_curr_function( p_function =>'Get_Max_Budget_Version_Number',
4404: p_debug_mode => l_debug_mode);
4405: END IF;
4406: x_msg_count := 0;
4407: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 4417: IF P_PA_DEBUG_MODE = 'Y' THEN

4413: (p_version_type IS NULL) OR
4414: (p_copy_mode IS NULL)
4415: THEN
4416:
4417: IF P_PA_DEBUG_MODE = 'Y' THEN
4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;

Line 4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;

4414: (p_copy_mode IS NULL)
4415: THEN
4416:
4417: IF P_PA_DEBUG_MODE = 'Y' THEN
4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

Line 4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4415: THEN
4416:
4417: IF P_PA_DEBUG_MODE = 'Y' THEN
4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4423:

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

4417: IF P_PA_DEBUG_MODE = 'Y' THEN
4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4423:
4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

Line 4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4418: pa_debug.g_err_stage:='Project_id = '||p_project_id;
4419: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4423:
4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4426:

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

4420:
4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4423:
4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4426:
4427: pa_debug.g_err_stage:='p_copy_mode = '||p_copy_mode;
4428: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

Line 4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4421: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
4422: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4423:
4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4426:
4427: pa_debug.g_err_stage:='p_copy_mode = '||p_copy_mode;
4428: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4429: END IF;

Line 4427: pa_debug.g_err_stage:='p_copy_mode = '||p_copy_mode;

4423:
4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4426:
4427: pa_debug.g_err_stage:='p_copy_mode = '||p_copy_mode;
4428: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4429: END IF;
4430:
4431: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4428: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4424: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
4425: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4426:
4427: pa_debug.g_err_stage:='p_copy_mode = '||p_copy_mode;
4428: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4429: END IF;
4430:
4431: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4432: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4453: IF P_PA_DEBUG_MODE = 'Y' THEN

4449: AND ci_id IS NULL;
4450: EXCEPTION
4451: WHEN OTHERS THEN
4452:
4453: IF P_PA_DEBUG_MODE = 'Y' THEN
4454: pa_debug.g_err_stage:='Error while fetching max version number';
4455: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4456:
4457: pa_debug.reset_curr_function;

Line 4454: pa_debug.g_err_stage:='Error while fetching max version number';

4450: EXCEPTION
4451: WHEN OTHERS THEN
4452:
4453: IF P_PA_DEBUG_MODE = 'Y' THEN
4454: pa_debug.g_err_stage:='Error while fetching max version number';
4455: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4456:
4457: pa_debug.reset_curr_function;
4458: END IF;

Line 4455: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);

4451: WHEN OTHERS THEN
4452:
4453: IF P_PA_DEBUG_MODE = 'Y' THEN
4454: pa_debug.g_err_stage:='Error while fetching max version number';
4455: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4456:
4457: pa_debug.reset_curr_function;
4458: END IF;
4459: RAISE;

Line 4457: pa_debug.reset_curr_function;

4453: IF P_PA_DEBUG_MODE = 'Y' THEN
4454: pa_debug.g_err_stage:='Error while fetching max version number';
4455: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4456:
4457: pa_debug.reset_curr_function;
4458: END IF;
4459: RAISE;
4460: END;
4461:

Line 4478: IF P_PA_DEBUG_MODE = 'Y' THEN

4474: FOR UPDATE;
4475: EXCEPTION
4476: WHEN OTHERS THEN
4477:
4478: IF P_PA_DEBUG_MODE = 'Y' THEN
4479: pa_debug.g_err_stage:='Error while fetching version number';
4480: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4481:
4482: pa_debug.reset_curr_function;

Line 4479: pa_debug.g_err_stage:='Error while fetching version number';

4475: EXCEPTION
4476: WHEN OTHERS THEN
4477:
4478: IF P_PA_DEBUG_MODE = 'Y' THEN
4479: pa_debug.g_err_stage:='Error while fetching version number';
4480: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4481:
4482: pa_debug.reset_curr_function;
4483: END IF;

Line 4480: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);

4476: WHEN OTHERS THEN
4477:
4478: IF P_PA_DEBUG_MODE = 'Y' THEN
4479: pa_debug.g_err_stage:='Error while fetching version number';
4480: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4481:
4482: pa_debug.reset_curr_function;
4483: END IF;
4484: RAISE;

Line 4482: pa_debug.reset_curr_function;

4478: IF P_PA_DEBUG_MODE = 'Y' THEN
4479: pa_debug.g_err_stage:='Error while fetching version number';
4480: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,3);
4481:
4482: pa_debug.reset_curr_function;
4483: END IF;
4484: RAISE;
4485: END;
4486: END IF;

Line 4525: IF P_PA_DEBUG_MODE = 'Y' THEN

4521:
4522: END IF;
4523:
4524: x_version_number:= l_version_number;
4525: IF P_PA_DEBUG_MODE = 'Y' THEN
4526: pa_debug.reset_curr_function;
4527: END IF;
4528: EXCEPTION
4529: WHEN Invalid_Arg_Exc THEN

Line 4526: pa_debug.reset_curr_function;

4522: END IF;
4523:
4524: x_version_number:= l_version_number;
4525: IF P_PA_DEBUG_MODE = 'Y' THEN
4526: pa_debug.reset_curr_function;
4527: END IF;
4528: EXCEPTION
4529: WHEN Invalid_Arg_Exc THEN
4530:

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

4542: ELSE
4543: x_msg_count := l_msg_count;
4544: END IF;
4545: x_return_status := FND_API.G_RET_STS_ERROR;
4546: pa_debug.g_err_stage:='Invalid Arguments Passed';
4547: IF P_PA_DEBUG_MODE = 'Y' THEN
4548: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4549: pa_debug.reset_curr_function;
4550: END IF;

Line 4547: IF P_PA_DEBUG_MODE = 'Y' THEN

4543: x_msg_count := l_msg_count;
4544: END IF;
4545: x_return_status := FND_API.G_RET_STS_ERROR;
4546: pa_debug.g_err_stage:='Invalid Arguments Passed';
4547: IF P_PA_DEBUG_MODE = 'Y' THEN
4548: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4549: pa_debug.reset_curr_function;
4550: END IF;
4551: RETURN;

Line 4548: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4544: END IF;
4545: x_return_status := FND_API.G_RET_STS_ERROR;
4546: pa_debug.g_err_stage:='Invalid Arguments Passed';
4547: IF P_PA_DEBUG_MODE = 'Y' THEN
4548: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4549: pa_debug.reset_curr_function;
4550: END IF;
4551: RETURN;
4552:

Line 4549: pa_debug.reset_curr_function;

4545: x_return_status := FND_API.G_RET_STS_ERROR;
4546: pa_debug.g_err_stage:='Invalid Arguments Passed';
4547: IF P_PA_DEBUG_MODE = 'Y' THEN
4548: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4549: pa_debug.reset_curr_function;
4550: END IF;
4551: RETURN;
4552:
4553: WHEN Others THEN

Line 4560: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;

4556: x_msg_count := 1;
4557: x_msg_data := SQLERRM;
4558: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4559: ,p_procedure_name => 'Get_Budget_Version_Number');
4560: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4561: IF P_PA_DEBUG_MODE = 'Y' THEN
4562: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4563: pa_debug.reset_curr_function;
4564: END IF;

Line 4561: IF P_PA_DEBUG_MODE = 'Y' THEN

4557: x_msg_data := SQLERRM;
4558: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4559: ,p_procedure_name => 'Get_Budget_Version_Number');
4560: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4561: IF P_PA_DEBUG_MODE = 'Y' THEN
4562: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4563: pa_debug.reset_curr_function;
4564: END IF;
4565: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

Line 4562: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);

4558: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4559: ,p_procedure_name => 'Get_Budget_Version_Number');
4560: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4561: IF P_PA_DEBUG_MODE = 'Y' THEN
4562: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4563: pa_debug.reset_curr_function;
4564: END IF;
4565: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4566:

Line 4563: pa_debug.reset_curr_function;

4559: ,p_procedure_name => 'Get_Budget_Version_Number');
4560: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4561: IF P_PA_DEBUG_MODE = 'Y' THEN
4562: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4563: pa_debug.reset_curr_function;
4564: END IF;
4565: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4566:
4567: END Get_Max_Budget_Version_Number;

Line 4574: IF P_PA_DEBUG_MODE = 'Y' THEN

4570: p_time_phased_code IN pa_proj_fp_options.cost_time_phased_Code%TYPE) RETURN DATE
4571: IS
4572: l_start_date pa_periods_all.start_date%TYPE;
4573: BEGIN
4574: IF P_PA_DEBUG_MODE = 'Y' THEN
4575: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4576: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4577: END IF;
4578: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN

Line 4575: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;

4571: IS
4572: l_start_date pa_periods_all.start_date%TYPE;
4573: BEGIN
4574: IF P_PA_DEBUG_MODE = 'Y' THEN
4575: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4576: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4577: END IF;
4578: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4579: IF p_input_date IS NOT NULL THEN

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

4572: l_start_date pa_periods_all.start_date%TYPE;
4573: BEGIN
4574: IF P_PA_DEBUG_MODE = 'Y' THEN
4575: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4576: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4577: END IF;
4578: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4579: IF p_input_date IS NOT NULL THEN
4580: SELECT start_date

Line 4609: IF P_PA_DEBUG_MODE = 'Y' THEN

4605: p_time_phased_code IN pa_proj_fp_options.cost_time_phased_Code%TYPE) RETURN DATE
4606: IS
4607: l_end_date pa_periods_all.end_date%TYPE;
4608: BEGIN
4609: IF P_PA_DEBUG_MODE = 'Y' THEN
4610: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4612: END IF;
4613: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN

Line 4610: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;

4606: IS
4607: l_end_date pa_periods_all.end_date%TYPE;
4608: BEGIN
4609: IF P_PA_DEBUG_MODE = 'Y' THEN
4610: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4612: END IF;
4613: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4614: IF p_input_date IS NOT NULL THEN

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

4607: l_end_date pa_periods_all.end_date%TYPE;
4608: BEGIN
4609: IF P_PA_DEBUG_MODE = 'Y' THEN
4610: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4611: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4612: END IF;
4613: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4614: IF p_input_date IS NOT NULL THEN
4615: SELECT end_date

Line 4678: IF P_PA_DEBUG_MODE = 'Y' THEN

4674: BEGIN
4675:
4676: x_msg_count := 0;
4677: x_return_status := FND_API.G_RET_STS_SUCCESS;
4678: IF P_PA_DEBUG_MODE = 'Y' THEN
4679: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4680: END IF;
4681: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4682: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4679: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');

4675:
4676: x_msg_count := 0;
4677: x_return_status := FND_API.G_RET_STS_SUCCESS;
4678: IF P_PA_DEBUG_MODE = 'Y' THEN
4679: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4680: END IF;
4681: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4682: l_debug_mode := NVL(l_debug_mode, 'Y');
4683: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4677: x_return_status := FND_API.G_RET_STS_SUCCESS;
4678: IF P_PA_DEBUG_MODE = 'Y' THEN
4679: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4680: END IF;
4681: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4682: l_debug_mode := NVL(l_debug_mode, 'Y');
4683: IF P_PA_DEBUG_MODE = 'Y' THEN
4684: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4685: END IF;

Line 4683: IF P_PA_DEBUG_MODE = 'Y' THEN

4679: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4680: END IF;
4681: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4682: l_debug_mode := NVL(l_debug_mode, 'Y');
4683: IF P_PA_DEBUG_MODE = 'Y' THEN
4684: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4685: END IF;
4686:
4687: -- Check for business rules violations

Line 4684: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);

4680: END IF;
4681: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4682: l_debug_mode := NVL(l_debug_mode, 'Y');
4683: IF P_PA_DEBUG_MODE = 'Y' THEN
4684: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4685: END IF;
4686:
4687: -- Check for business rules violations
4688:

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

4685: END IF;
4686:
4687: -- Check for business rules violations
4688:
4689: pa_debug.g_err_stage:= 'Validating input parameters';
4690: IF P_PA_DEBUG_MODE = 'Y' THEN
4691: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4692: END IF;
4693:

Line 4690: IF P_PA_DEBUG_MODE = 'Y' THEN

4686:
4687: -- Check for business rules violations
4688:
4689: pa_debug.g_err_stage:= 'Validating input parameters';
4690: IF P_PA_DEBUG_MODE = 'Y' THEN
4691: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4692: END IF;
4693:
4694: --Check if plan version id is null

Line 4691: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4687: -- Check for business rules violations
4688:
4689: pa_debug.g_err_stage:= 'Validating input parameters';
4690: IF P_PA_DEBUG_MODE = 'Y' THEN
4691: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4692: END IF;
4693:
4694: --Check if plan version id is null
4695:

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

4697: ((p_budget_type_code IS NULL ) AND (p_fin_plan_type_id IS NULL)) OR
4698: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4699: THEN
4700:
4701: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4702: IF P_PA_DEBUG_MODE = 'Y' THEN
4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

Line 4702: IF P_PA_DEBUG_MODE = 'Y' THEN

4698: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4699: THEN
4700:
4701: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4702: IF P_PA_DEBUG_MODE = 'Y' THEN
4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4699: THEN
4700:
4701: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4702: IF P_PA_DEBUG_MODE = 'Y' THEN
4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

4701: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4702: IF P_PA_DEBUG_MODE = 'Y' THEN
4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

Line 4706: IF P_PA_DEBUG_MODE = 'Y' THEN

4702: IF P_PA_DEBUG_MODE = 'Y' THEN
4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4710: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4703: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4704: END IF;
4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4710: IF P_PA_DEBUG_MODE = 'Y' THEN
4711: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

4705: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4710: IF P_PA_DEBUG_MODE = 'Y' THEN
4711: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4712: END IF;
4713:

Line 4710: IF P_PA_DEBUG_MODE = 'Y' THEN

4706: IF P_PA_DEBUG_MODE = 'Y' THEN
4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4710: IF P_PA_DEBUG_MODE = 'Y' THEN
4711: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4712: END IF;
4713:
4714: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4711: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4707: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4708: END IF;
4709: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4710: IF P_PA_DEBUG_MODE = 'Y' THEN
4711: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4712: END IF;
4713:
4714: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4715: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4737: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;

4733: AND fin_plan_type_id = p_fin_plan_type_id
4734: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4735: EXCEPTION
4736: WHEN others THEN
4737: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4738: IF P_PA_DEBUG_MODE = 'Y' THEN
4739: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4740: END IF;
4741: RAISE ;

Line 4738: IF P_PA_DEBUG_MODE = 'Y' THEN

4734: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4735: EXCEPTION
4736: WHEN others THEN
4737: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4738: IF P_PA_DEBUG_MODE = 'Y' THEN
4739: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4740: END IF;
4741: RAISE ;
4742: END;

Line 4739: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4735: EXCEPTION
4736: WHEN others THEN
4737: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4738: IF P_PA_DEBUG_MODE = 'Y' THEN
4739: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4740: END IF;
4741: RAISE ;
4742: END;
4743:

Line 4792: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';

4788: x_msg_data := l_err_stage;
4789: END IF;
4790: END IF;
4791:
4792: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4793: IF P_PA_DEBUG_MODE = 'Y' THEN
4794: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4795:
4796: pa_debug.reset_err_stack;

Line 4793: IF P_PA_DEBUG_MODE = 'Y' THEN

4789: END IF;
4790: END IF;
4791:
4792: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4793: IF P_PA_DEBUG_MODE = 'Y' THEN
4794: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4795:
4796: pa_debug.reset_err_stack;
4797: END IF;

Line 4794: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4790: END IF;
4791:
4792: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4793: IF P_PA_DEBUG_MODE = 'Y' THEN
4794: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4795:
4796: pa_debug.reset_err_stack;
4797: END IF;
4798: EXCEPTION

Line 4796: pa_debug.reset_err_stack;

4792: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4793: IF P_PA_DEBUG_MODE = 'Y' THEN
4794: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4795:
4796: pa_debug.reset_err_stack;
4797: END IF;
4798: EXCEPTION
4799:
4800: WHEN PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc THEN

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

4813: ELSE
4814: x_msg_count := l_msg_count;
4815: END IF;
4816:
4817: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4818: IF P_PA_DEBUG_MODE = 'Y' THEN
4819: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4820: END IF;
4821:

Line 4818: IF P_PA_DEBUG_MODE = 'Y' THEN

4814: x_msg_count := l_msg_count;
4815: END IF;
4816:
4817: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4818: IF P_PA_DEBUG_MODE = 'Y' THEN
4819: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4820: END IF;
4821:
4822: x_return_status := FND_API.G_RET_STS_ERROR;

Line 4819: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4815: END IF;
4816:
4817: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4818: IF P_PA_DEBUG_MODE = 'Y' THEN
4819: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4820: END IF;
4821:
4822: x_return_status := FND_API.G_RET_STS_ERROR;
4823: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4823: IF P_PA_DEBUG_MODE = 'Y' THEN

4819: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4820: END IF;
4821:
4822: x_return_status := FND_API.G_RET_STS_ERROR;
4823: IF P_PA_DEBUG_MODE = 'Y' THEN
4824: pa_debug.reset_err_stack;
4825: END IF;
4826: WHEN others THEN
4827:

Line 4824: pa_debug.reset_err_stack;

4820: END IF;
4821:
4822: x_return_status := FND_API.G_RET_STS_ERROR;
4823: IF P_PA_DEBUG_MODE = 'Y' THEN
4824: pa_debug.reset_err_stack;
4825: END IF;
4826: WHEN others THEN
4827:
4828: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

4829: x_msg_count := 1;
4830: x_msg_data := SQLERRM;
4831: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4832: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4833: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4834: IF P_PA_DEBUG_MODE = 'Y' THEN
4835: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4836: pa_debug.reset_err_stack;
4837: END IF;

Line 4834: IF P_PA_DEBUG_MODE = 'Y' THEN

4830: x_msg_data := SQLERRM;
4831: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4832: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4833: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4834: IF P_PA_DEBUG_MODE = 'Y' THEN
4835: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4836: pa_debug.reset_err_stack;
4837: END IF;
4838: END GET_COST_BASE_VERSION_INFO;

Line 4835: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4831: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4832: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4833: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4834: IF P_PA_DEBUG_MODE = 'Y' THEN
4835: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4836: pa_debug.reset_err_stack;
4837: END IF;
4838: END GET_COST_BASE_VERSION_INFO;
4839:

Line 4836: pa_debug.reset_err_stack;

4832: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4833: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4834: IF P_PA_DEBUG_MODE = 'Y' THEN
4835: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4836: pa_debug.reset_err_stack;
4837: END IF;
4838: END GET_COST_BASE_VERSION_INFO;
4839:
4840: /*==============================================================================

Line 4878: IF P_PA_DEBUG_MODE = 'Y' THEN

4874: BEGIN
4875:
4876: x_msg_count := 0;
4877: x_return_status := FND_API.G_RET_STS_SUCCESS;
4878: IF P_PA_DEBUG_MODE = 'Y' THEN
4879: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4880: END IF;
4881: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4882: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4879: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');

4875:
4876: x_msg_count := 0;
4877: x_return_status := FND_API.G_RET_STS_SUCCESS;
4878: IF P_PA_DEBUG_MODE = 'Y' THEN
4879: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4880: END IF;
4881: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4882: l_debug_mode := NVL(l_debug_mode, 'Y');
4883: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4877: x_return_status := FND_API.G_RET_STS_SUCCESS;
4878: IF P_PA_DEBUG_MODE = 'Y' THEN
4879: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4880: END IF;
4881: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4882: l_debug_mode := NVL(l_debug_mode, 'Y');
4883: IF P_PA_DEBUG_MODE = 'Y' THEN
4884: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4885: END IF;

Line 4883: IF P_PA_DEBUG_MODE = 'Y' THEN

4879: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4880: END IF;
4881: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4882: l_debug_mode := NVL(l_debug_mode, 'Y');
4883: IF P_PA_DEBUG_MODE = 'Y' THEN
4884: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4885: END IF;
4886:
4887: -- Check for business rules violations

Line 4884: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);

4880: END IF;
4881: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4882: l_debug_mode := NVL(l_debug_mode, 'Y');
4883: IF P_PA_DEBUG_MODE = 'Y' THEN
4884: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4885: END IF;
4886:
4887: -- Check for business rules violations
4888:

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

4885: END IF;
4886:
4887: -- Check for business rules violations
4888:
4889: pa_debug.g_err_stage:= 'Validating input parameters';
4890: IF P_PA_DEBUG_MODE = 'Y' THEN
4891: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4892: END IF;
4893:

Line 4890: IF P_PA_DEBUG_MODE = 'Y' THEN

4886:
4887: -- Check for business rules violations
4888:
4889: pa_debug.g_err_stage:= 'Validating input parameters';
4890: IF P_PA_DEBUG_MODE = 'Y' THEN
4891: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4892: END IF;
4893:
4894: --Check if plan version id is null

Line 4891: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4887: -- Check for business rules violations
4888:
4889: pa_debug.g_err_stage:= 'Validating input parameters';
4890: IF P_PA_DEBUG_MODE = 'Y' THEN
4891: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4892: END IF;
4893:
4894: --Check if plan version id is null
4895:

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

4897: ((p_budget_type_code IS NULL ) AND (p_fin_plan_type_id IS NULL)) OR
4898: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4899: THEN
4900:
4901: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4902: IF P_PA_DEBUG_MODE = 'Y' THEN
4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

Line 4902: IF P_PA_DEBUG_MODE = 'Y' THEN

4898: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4899: THEN
4900:
4901: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4902: IF P_PA_DEBUG_MODE = 'Y' THEN
4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4899: THEN
4900:
4901: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4902: IF P_PA_DEBUG_MODE = 'Y' THEN
4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

4901: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4902: IF P_PA_DEBUG_MODE = 'Y' THEN
4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

Line 4906: IF P_PA_DEBUG_MODE = 'Y' THEN

4902: IF P_PA_DEBUG_MODE = 'Y' THEN
4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4910: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4903: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4904: END IF;
4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4910: IF P_PA_DEBUG_MODE = 'Y' THEN
4911: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

4905: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4910: IF P_PA_DEBUG_MODE = 'Y' THEN
4911: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4912: END IF;
4913:

Line 4910: IF P_PA_DEBUG_MODE = 'Y' THEN

4906: IF P_PA_DEBUG_MODE = 'Y' THEN
4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4910: IF P_PA_DEBUG_MODE = 'Y' THEN
4911: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4912: END IF;
4913:
4914: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4911: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4907: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4908: END IF;
4909: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4910: IF P_PA_DEBUG_MODE = 'Y' THEN
4911: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4912: END IF;
4913:
4914: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4915: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4938: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;

4934: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4935: EXCEPTION
4936: WHEN others THEN
4937:
4938: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4939: IF P_PA_DEBUG_MODE = 'Y' THEN
4940: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4941: END IF;
4942: RAISE;

Line 4939: IF P_PA_DEBUG_MODE = 'Y' THEN

4935: EXCEPTION
4936: WHEN others THEN
4937:
4938: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4939: IF P_PA_DEBUG_MODE = 'Y' THEN
4940: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4941: END IF;
4942: RAISE;
4943: END;

Line 4940: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4936: WHEN others THEN
4937:
4938: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4939: IF P_PA_DEBUG_MODE = 'Y' THEN
4940: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4941: END IF;
4942: RAISE;
4943: END;
4944:

Line 4995: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';

4991: END IF;
4992: END IF;
4993:
4994:
4995: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4996: IF P_PA_DEBUG_MODE = 'Y' THEN
4997: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4998: pa_debug.reset_err_stack;
4999: END IF;

Line 4996: IF P_PA_DEBUG_MODE = 'Y' THEN

4992: END IF;
4993:
4994:
4995: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4996: IF P_PA_DEBUG_MODE = 'Y' THEN
4997: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4998: pa_debug.reset_err_stack;
4999: END IF;
5000: EXCEPTION

Line 4997: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4993:
4994:
4995: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4996: IF P_PA_DEBUG_MODE = 'Y' THEN
4997: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4998: pa_debug.reset_err_stack;
4999: END IF;
5000: EXCEPTION
5001:

Line 4998: pa_debug.reset_err_stack;

4994:
4995: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4996: IF P_PA_DEBUG_MODE = 'Y' THEN
4997: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4998: pa_debug.reset_err_stack;
4999: END IF;
5000: EXCEPTION
5001:
5002: WHEN PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc THEN

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

5015: ELSE
5016: x_msg_count := l_msg_count;
5017: END IF;
5018:
5019: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5020: IF P_PA_DEBUG_MODE = 'Y' THEN
5021: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5022: END IF;
5023:

Line 5020: IF P_PA_DEBUG_MODE = 'Y' THEN

5016: x_msg_count := l_msg_count;
5017: END IF;
5018:
5019: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5020: IF P_PA_DEBUG_MODE = 'Y' THEN
5021: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5022: END IF;
5023:
5024: x_return_status := FND_API.G_RET_STS_ERROR;

Line 5021: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5017: END IF;
5018:
5019: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5020: IF P_PA_DEBUG_MODE = 'Y' THEN
5021: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5022: END IF;
5023:
5024: x_return_status := FND_API.G_RET_STS_ERROR;
5025: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5025: IF P_PA_DEBUG_MODE = 'Y' THEN

5021: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5022: END IF;
5023:
5024: x_return_status := FND_API.G_RET_STS_ERROR;
5025: IF P_PA_DEBUG_MODE = 'Y' THEN
5026: pa_debug.reset_err_stack;
5027: END IF;
5028: WHEN others THEN
5029:

Line 5026: pa_debug.reset_err_stack;

5022: END IF;
5023:
5024: x_return_status := FND_API.G_RET_STS_ERROR;
5025: IF P_PA_DEBUG_MODE = 'Y' THEN
5026: pa_debug.reset_err_stack;
5027: END IF;
5028: WHEN others THEN
5029:
5030: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

5031: x_msg_count := 1;
5032: x_msg_data := SQLERRM;
5033: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5034: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5035: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5036: IF P_PA_DEBUG_MODE = 'Y' THEN
5037: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5038: pa_debug.reset_err_stack;
5039: END IF;

Line 5036: IF P_PA_DEBUG_MODE = 'Y' THEN

5032: x_msg_data := SQLERRM;
5033: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5034: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5035: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5036: IF P_PA_DEBUG_MODE = 'Y' THEN
5037: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5038: pa_debug.reset_err_stack;
5039: END IF;
5040: END GET_REV_BASE_VERSION_INFO;

Line 5037: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5033: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5034: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5035: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5036: IF P_PA_DEBUG_MODE = 'Y' THEN
5037: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5038: pa_debug.reset_err_stack;
5039: END IF;
5040: END GET_REV_BASE_VERSION_INFO;
5041:

Line 5038: pa_debug.reset_err_stack;

5034: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5035: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5036: IF P_PA_DEBUG_MODE = 'Y' THEN
5037: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5038: pa_debug.reset_err_stack;
5039: END IF;
5040: END GET_REV_BASE_VERSION_INFO;
5041:
5042: /*==============================================================================

Line 5043: Following two function just calls the usual pa_debug.acquire/release_user_lock

5039: END IF;
5040: END GET_REV_BASE_VERSION_INFO;
5041:
5042: /*==============================================================================
5043: Following two function just calls the usual pa_debug.acquire/release_user_lock
5044: but in AUTONOMOUS mode .This two functions are added as part of fix for #2622476.
5045: ==============================================================================*/
5046:
5047: FUNCTION ACQUIRE_USER_LOCK

Line 5054: RETURN pa_debug.Acquire_User_Lock(X_LOCK_NAME) ;

5050: IS
5051: PRAGMA AUTONOMOUS_TRANSACTION;
5052: BEGIN
5053:
5054: RETURN pa_debug.Acquire_User_Lock(X_LOCK_NAME) ;
5055:
5056: END ACQUIRE_USER_LOCK ;
5057:
5058: FUNCTION RELEASE_USER_LOCK

Line 5065: RETURN pa_debug.Release_User_Lock(X_LOCK_NAME) ;

5061: IS
5062: PRAGMA AUTONOMOUS_TRANSACTION;
5063: BEGIN
5064:
5065: RETURN pa_debug.Release_User_Lock(X_LOCK_NAME) ;
5066:
5067: END RELEASE_USER_LOCK ;
5068:
5069: /*==================================================================

Line 5105: IF P_PA_DEBUG_MODE = 'Y' THEN

5101: BEGIN
5102:
5103: x_msg_count := 0;
5104: x_return_status := FND_API.G_RET_STS_SUCCESS;
5105: IF P_PA_DEBUG_MODE = 'Y' THEN
5106: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5107: END IF;
5108: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5109: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 5106: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');

5102:
5103: x_msg_count := 0;
5104: x_return_status := FND_API.G_RET_STS_SUCCESS;
5105: IF P_PA_DEBUG_MODE = 'Y' THEN
5106: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5107: END IF;
5108: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5109: l_debug_mode := NVL(l_debug_mode, 'Y');
5110: IF P_PA_DEBUG_MODE = 'Y' THEN

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

5104: x_return_status := FND_API.G_RET_STS_SUCCESS;
5105: IF P_PA_DEBUG_MODE = 'Y' THEN
5106: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5107: END IF;
5108: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5109: l_debug_mode := NVL(l_debug_mode, 'Y');
5110: IF P_PA_DEBUG_MODE = 'Y' THEN
5111: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5112: END IF;

Line 5110: IF P_PA_DEBUG_MODE = 'Y' THEN

5106: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5107: END IF;
5108: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5109: l_debug_mode := NVL(l_debug_mode, 'Y');
5110: IF P_PA_DEBUG_MODE = 'Y' THEN
5111: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5112: END IF;
5113:
5114: -- Check for business rules violations

Line 5111: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);

5107: END IF;
5108: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5109: l_debug_mode := NVL(l_debug_mode, 'Y');
5110: IF P_PA_DEBUG_MODE = 'Y' THEN
5111: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5112: END IF;
5113:
5114: -- Check for business rules violations
5115:

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

5112: END IF;
5113:
5114: -- Check for business rules violations
5115:
5116: pa_debug.g_err_stage:= 'Validating input parameters';
5117: IF P_PA_DEBUG_MODE = 'Y' THEN
5118: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5119: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5120: END IF;

Line 5117: IF P_PA_DEBUG_MODE = 'Y' THEN

5113:
5114: -- Check for business rules violations
5115:
5116: pa_debug.g_err_stage:= 'Validating input parameters';
5117: IF P_PA_DEBUG_MODE = 'Y' THEN
5118: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5119: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5120: END IF;
5121:

Line 5118: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,

5114: -- Check for business rules violations
5115:
5116: pa_debug.g_err_stage:= 'Validating input parameters';
5117: IF P_PA_DEBUG_MODE = 'Y' THEN
5118: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5119: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5120: END IF;
5121:
5122: --Check if plan version id is null

Line 5130: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;

5126: (p_project_currency_Code IS NULL) OR
5127: (p_projfunc_currency_code IS NULL)
5128: THEN
5129:
5130: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5131: IF P_PA_DEBUG_MODE = 'Y' THEN
5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;

Line 5131: IF P_PA_DEBUG_MODE = 'Y' THEN

5127: (p_projfunc_currency_code IS NULL)
5128: THEN
5129:
5130: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5131: IF P_PA_DEBUG_MODE = 'Y' THEN
5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5128: THEN
5129:
5130: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5131: IF P_PA_DEBUG_MODE = 'Y' THEN
5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;

5130: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5131: IF P_PA_DEBUG_MODE = 'Y' THEN
5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;

Line 5135: IF P_PA_DEBUG_MODE = 'Y' THEN

5131: IF P_PA_DEBUG_MODE = 'Y' THEN
5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5132: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5133: END IF;
5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;

5134: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;

Line 5139: IF P_PA_DEBUG_MODE = 'Y' THEN

5135: IF P_PA_DEBUG_MODE = 'Y' THEN
5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5143: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5136: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5137: END IF;
5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5143: IF P_PA_DEBUG_MODE = 'Y' THEN
5144: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;

5138: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5143: IF P_PA_DEBUG_MODE = 'Y' THEN
5144: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5145: END IF;
5146:

Line 5143: IF P_PA_DEBUG_MODE = 'Y' THEN

5139: IF P_PA_DEBUG_MODE = 'Y' THEN
5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5143: IF P_PA_DEBUG_MODE = 'Y' THEN
5144: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5145: END IF;
5146:
5147: PA_UTILS.ADD_MESSAGE

Line 5144: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5140: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5141: END IF;
5142: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5143: IF P_PA_DEBUG_MODE = 'Y' THEN
5144: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5145: END IF;
5146:
5147: PA_UTILS.ADD_MESSAGE
5148: (p_app_short_name => 'PA',

Line 5203: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';

5199: x_project_revenue
5200: FROM Pa_Fp_Rollup_Tmp
5201: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5202:
5203: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5204: IF P_PA_DEBUG_MODE = 'Y' THEN
5205: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5206: pa_debug.reset_err_stack;
5207: END IF;

Line 5204: IF P_PA_DEBUG_MODE = 'Y' THEN

5200: FROM Pa_Fp_Rollup_Tmp
5201: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5202:
5203: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5204: IF P_PA_DEBUG_MODE = 'Y' THEN
5205: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5206: pa_debug.reset_err_stack;
5207: END IF;
5208: EXCEPTION

Line 5205: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5201: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5202:
5203: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5204: IF P_PA_DEBUG_MODE = 'Y' THEN
5205: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5206: pa_debug.reset_err_stack;
5207: END IF;
5208: EXCEPTION
5209:

Line 5206: pa_debug.reset_err_stack;

5202:
5203: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5204: IF P_PA_DEBUG_MODE = 'Y' THEN
5205: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5206: pa_debug.reset_err_stack;
5207: END IF;
5208: EXCEPTION
5209:
5210: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

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

5224: ELSE
5225: x_msg_count := l_msg_count;
5226: END IF;
5227:
5228: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5229: IF P_PA_DEBUG_MODE = 'Y' THEN
5230: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5231: pa_debug.reset_err_stack;
5232: END IF;

Line 5229: IF P_PA_DEBUG_MODE = 'Y' THEN

5225: x_msg_count := l_msg_count;
5226: END IF;
5227:
5228: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5229: IF P_PA_DEBUG_MODE = 'Y' THEN
5230: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5231: pa_debug.reset_err_stack;
5232: END IF;
5233: RAISE;

Line 5230: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5226: END IF;
5227:
5228: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5229: IF P_PA_DEBUG_MODE = 'Y' THEN
5230: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5231: pa_debug.reset_err_stack;
5232: END IF;
5233: RAISE;
5234:

Line 5231: pa_debug.reset_err_stack;

5227:
5228: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5229: IF P_PA_DEBUG_MODE = 'Y' THEN
5230: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5231: pa_debug.reset_err_stack;
5232: END IF;
5233: RAISE;
5234:
5235: WHEN others THEN

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

5240: FND_MSG_PUB.add_exc_msg
5241: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5242: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5243: ,p_error_text => sqlerrm);
5244: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5245: IF P_PA_DEBUG_MODE = 'Y' THEN
5246: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5247: pa_debug.reset_err_stack;
5248: END IF;

Line 5245: IF P_PA_DEBUG_MODE = 'Y' THEN

5241: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5242: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5243: ,p_error_text => sqlerrm);
5244: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5245: IF P_PA_DEBUG_MODE = 'Y' THEN
5246: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5247: pa_debug.reset_err_stack;
5248: END IF;
5249: RAISE;

Line 5246: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5242: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5243: ,p_error_text => sqlerrm);
5244: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5245: IF P_PA_DEBUG_MODE = 'Y' THEN
5246: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5247: pa_debug.reset_err_stack;
5248: END IF;
5249: RAISE;
5250:

Line 5247: pa_debug.reset_err_stack;

5243: ,p_error_text => sqlerrm);
5244: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5245: IF P_PA_DEBUG_MODE = 'Y' THEN
5246: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5247: pa_debug.reset_err_stack;
5248: END IF;
5249: RAISE;
5250:
5251: END get_converted_amounts;

Line 5503: IF P_PA_DEBUG_MODE = 'Y' THEN

5499: BEGIN
5500:
5501: x_msg_count := 0;
5502: x_return_status := FND_API.G_RET_STS_SUCCESS;
5503: IF P_PA_DEBUG_MODE = 'Y' THEN
5504: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5505: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5506: END IF;
5507: -- Check for NOT NULL parameters

Line 5504: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');

5500:
5501: x_msg_count := 0;
5502: x_return_status := FND_API.G_RET_STS_SUCCESS;
5503: IF P_PA_DEBUG_MODE = 'Y' THEN
5504: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5505: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5506: END IF;
5507: -- Check for NOT NULL parameters
5508: IF (p_period_name IS NULL) OR

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

5501: x_msg_count := 0;
5502: x_return_status := FND_API.G_RET_STS_SUCCESS;
5503: IF P_PA_DEBUG_MODE = 'Y' THEN
5504: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5505: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5506: END IF;
5507: -- Check for NOT NULL parameters
5508: IF (p_period_name IS NULL) OR
5509: (p_plan_period_type IS NULL)

Line 5511: IF p_pa_debug_mode = 'Y' THEN

5507: -- Check for NOT NULL parameters
5508: IF (p_period_name IS NULL) OR
5509: (p_plan_period_type IS NULL)
5510: THEN
5511: IF p_pa_debug_mode = 'Y' THEN
5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5515: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;

5508: IF (p_period_name IS NULL) OR
5509: (p_plan_period_type IS NULL)
5510: THEN
5511: IF p_pa_debug_mode = 'Y' THEN
5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5515: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5516: END IF;

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

5509: (p_plan_period_type IS NULL)
5510: THEN
5511: IF p_pa_debug_mode = 'Y' THEN
5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5515: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5516: END IF;
5517: PA_UTILS.ADD_MESSAGE

Line 5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;

5510: THEN
5511: IF p_pa_debug_mode = 'Y' THEN
5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5515: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5516: END IF;
5517: PA_UTILS.ADD_MESSAGE
5518: (p_app_short_name => 'PA',

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

5511: IF p_pa_debug_mode = 'Y' THEN
5512: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5515: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5516: END IF;
5517: PA_UTILS.ADD_MESSAGE
5518: (p_app_short_name => 'PA',
5519: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 5535: IF p_pa_debug_mode = 'Y' THEN

5531: FROM pa_periods
5532: WHERE period_name = p_period_name;
5533: EXCEPTION
5534: WHEN OTHERS THEN
5535: IF p_pa_debug_mode = 'Y' THEN
5536: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5537: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5538: END IF;
5539: RAISE;

Line 5536: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;

5532: WHERE period_name = p_period_name;
5533: EXCEPTION
5534: WHEN OTHERS THEN
5535: IF p_pa_debug_mode = 'Y' THEN
5536: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5537: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5538: END IF;
5539: RAISE;
5540: END;

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

5533: EXCEPTION
5534: WHEN OTHERS THEN
5535: IF p_pa_debug_mode = 'Y' THEN
5536: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5537: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5538: END IF;
5539: RAISE;
5540: END;
5541: ELSIF p_plan_period_type = 'GL' THEN

Line 5557: IF p_pa_debug_mode = 'Y' THEN

5553: AND g.period_name = p_period_name;
5554:
5555: EXCEPTION
5556: WHEN OTHERS THEN
5557: IF p_pa_debug_mode = 'Y' THEN
5558: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5559: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5560: END IF;
5561: RAISE;

Line 5558: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;

5554:
5555: EXCEPTION
5556: WHEN OTHERS THEN
5557: IF p_pa_debug_mode = 'Y' THEN
5558: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5559: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5560: END IF;
5561: RAISE;
5562: END;

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

5555: EXCEPTION
5556: WHEN OTHERS THEN
5557: IF p_pa_debug_mode = 'Y' THEN
5558: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5559: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5560: END IF;
5561: RAISE;
5562: END;
5563: END IF;

Line 5565: IF p_pa_debug_mode = 'Y' THEN

5561: RAISE;
5562: END;
5563: END IF;
5564:
5565: IF p_pa_debug_mode = 'Y' THEN
5566: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5567: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5568: pa_debug.reset_err_stack;
5569: END IF;

Line 5566: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';

5562: END;
5563: END IF;
5564:
5565: IF p_pa_debug_mode = 'Y' THEN
5566: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5567: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5568: pa_debug.reset_err_stack;
5569: END IF;
5570: EXCEPTION

Line 5567: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5563: END IF;
5564:
5565: IF p_pa_debug_mode = 'Y' THEN
5566: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5567: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5568: pa_debug.reset_err_stack;
5569: END IF;
5570: EXCEPTION
5571:

Line 5568: pa_debug.reset_err_stack;

5564:
5565: IF p_pa_debug_mode = 'Y' THEN
5566: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5567: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5568: pa_debug.reset_err_stack;
5569: END IF;
5570: EXCEPTION
5571:
5572: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 5589: IF P_PA_DEBUG_MODE = 'Y' THEN

5585: x_msg_count := l_msg_count;
5586: ELSE
5587: x_msg_count := l_msg_count;
5588: END IF;
5589: IF P_PA_DEBUG_MODE = 'Y' THEN
5590: pa_debug.reset_err_stack;
5591: END IF;
5592: RAISE;
5593:

Line 5590: pa_debug.reset_err_stack;

5586: ELSE
5587: x_msg_count := l_msg_count;
5588: END IF;
5589: IF P_PA_DEBUG_MODE = 'Y' THEN
5590: pa_debug.reset_err_stack;
5591: END IF;
5592: RAISE;
5593:
5594: WHEN others THEN

Line 5603: IF p_pa_debug_mode = 'Y' THEN

5599: FND_MSG_PUB.add_exc_msg
5600: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5601: ,p_procedure_name => 'Get_Period_Details'
5602: ,p_error_text => SQLERRM);
5603: IF p_pa_debug_mode = 'Y' THEN
5604: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5605: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5606: pa_debug.reset_err_stack;
5607: END IF;

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

5600: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5601: ,p_procedure_name => 'Get_Period_Details'
5602: ,p_error_text => SQLERRM);
5603: IF p_pa_debug_mode = 'Y' THEN
5604: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5605: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5606: pa_debug.reset_err_stack;
5607: END IF;
5608: RAISE;

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

5601: ,p_procedure_name => 'Get_Period_Details'
5602: ,p_error_text => SQLERRM);
5603: IF p_pa_debug_mode = 'Y' THEN
5604: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5605: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5606: pa_debug.reset_err_stack;
5607: END IF;
5608: RAISE;
5609: END Get_Period_Details;

Line 5606: pa_debug.reset_err_stack;

5602: ,p_error_text => SQLERRM);
5603: IF p_pa_debug_mode = 'Y' THEN
5604: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5605: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5606: pa_debug.reset_err_stack;
5607: END IF;
5608: RAISE;
5609: END Get_Period_Details;
5610:

Line 5652: IF P_PA_DEBUG_MODE = 'Y' THEN

5648:
5649: BEGIN
5650: x_msg_count := 0;
5651: x_return_status := FND_API.G_RET_STS_SUCCESS;
5652: IF P_PA_DEBUG_MODE = 'Y' THEN
5653: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5654: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5655: END IF;
5656: -- check for not null parameters

Line 5653: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');

5649: BEGIN
5650: x_msg_count := 0;
5651: x_return_status := FND_API.G_RET_STS_SUCCESS;
5652: IF P_PA_DEBUG_MODE = 'Y' THEN
5653: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5654: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5655: END IF;
5656: -- check for not null parameters
5657: IF (p_period_name IS NULL) OR

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

5650: x_msg_count := 0;
5651: x_return_status := FND_API.G_RET_STS_SUCCESS;
5652: IF P_PA_DEBUG_MODE = 'Y' THEN
5653: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5654: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5655: END IF;
5656: -- check for not null parameters
5657: IF (p_period_name IS NULL) OR
5658: (p_plan_period_type IS NULL) OR

Line 5661: IF p_pa_debug_mode = 'Y' THEN

5657: IF (p_period_name IS NULL) OR
5658: (p_plan_period_type IS NULL) OR
5659: (p_number_of_periods IS NULL)
5660: THEN
5661: IF p_pa_debug_mode = 'Y' THEN
5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;

5658: (p_plan_period_type IS NULL) OR
5659: (p_number_of_periods IS NULL)
5660: THEN
5661: IF p_pa_debug_mode = 'Y' THEN
5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;

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

5659: (p_number_of_periods IS NULL)
5660: THEN
5661: IF p_pa_debug_mode = 'Y' THEN
5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;
5667: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;

5660: THEN
5661: IF p_pa_debug_mode = 'Y' THEN
5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;
5667: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5668: END IF;

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

5661: IF p_pa_debug_mode = 'Y' THEN
5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;
5667: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5668: END IF;
5669: PA_UTILS.ADD_MESSAGE

Line 5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;

5662: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;
5667: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5668: END IF;
5669: PA_UTILS.ADD_MESSAGE
5670: (p_app_short_name => 'PA',

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

5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5664: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;
5667: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5668: END IF;
5669: PA_UTILS.ADD_MESSAGE
5670: (p_app_short_name => 'PA',
5671: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 5734: IF p_pa_debug_mode = 'Y' THEN

5730: END IF;
5731: EXCEPTION
5732: /*Fix for bug 2753123 starts */
5733: WHEN NO_DATA_FOUND THEN
5734: IF p_pa_debug_mode = 'Y' THEN
5735: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5736: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5737: END IF;
5738: PA_UTILS.ADD_MESSAGE

Line 5735: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;

5731: EXCEPTION
5732: /*Fix for bug 2753123 starts */
5733: WHEN NO_DATA_FOUND THEN
5734: IF p_pa_debug_mode = 'Y' THEN
5735: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5736: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5737: END IF;
5738: PA_UTILS.ADD_MESSAGE
5739: (p_app_short_name => 'PA',

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

5732: /*Fix for bug 2753123 starts */
5733: WHEN NO_DATA_FOUND THEN
5734: IF p_pa_debug_mode = 'Y' THEN
5735: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5736: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5737: END IF;
5738: PA_UTILS.ADD_MESSAGE
5739: (p_app_short_name => 'PA',
5740: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');

Line 5744: IF p_pa_debug_mode = 'Y' THEN

5740: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');
5741: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5742: /*Fix for bug 2753123 ends */
5743: WHEN OTHERS THEN
5744: IF p_pa_debug_mode = 'Y' THEN
5745: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5746: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5747: END IF;
5748: RAISE;

Line 5745: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;

5741: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5742: /*Fix for bug 2753123 ends */
5743: WHEN OTHERS THEN
5744: IF p_pa_debug_mode = 'Y' THEN
5745: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5746: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5747: END IF;
5748: RAISE;
5749: END;

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

5742: /*Fix for bug 2753123 ends */
5743: WHEN OTHERS THEN
5744: IF p_pa_debug_mode = 'Y' THEN
5745: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5746: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5747: END IF;
5748: RAISE;
5749: END;
5750: ELSIF p_plan_period_type = 'GL' THEN

Line 5805: IF p_pa_debug_mode = 'Y' THEN

5801: END IF;
5802: EXCEPTION
5803: /*Fix for bug 2753123 starts */
5804: WHEN NO_DATA_FOUND THEN
5805: IF p_pa_debug_mode = 'Y' THEN
5806: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5807: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5808: END IF;
5809: PA_UTILS.ADD_MESSAGE

Line 5806: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;

5802: EXCEPTION
5803: /*Fix for bug 2753123 starts */
5804: WHEN NO_DATA_FOUND THEN
5805: IF p_pa_debug_mode = 'Y' THEN
5806: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5807: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5808: END IF;
5809: PA_UTILS.ADD_MESSAGE
5810: (p_app_short_name => 'PA',

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

5803: /*Fix for bug 2753123 starts */
5804: WHEN NO_DATA_FOUND THEN
5805: IF p_pa_debug_mode = 'Y' THEN
5806: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5807: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5808: END IF;
5809: PA_UTILS.ADD_MESSAGE
5810: (p_app_short_name => 'PA',
5811: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');

Line 5815: IF p_pa_debug_mode = 'Y' THEN

5811: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');
5812: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5813: /*Fix for bug 2753123 ends */
5814: WHEN OTHERS THEN
5815: IF p_pa_debug_mode = 'Y' THEN
5816: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5817: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5818: END IF;
5819: RAISE;

Line 5816: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;

5812: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5813: /*Fix for bug 2753123 ends */
5814: WHEN OTHERS THEN
5815: IF p_pa_debug_mode = 'Y' THEN
5816: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5817: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5818: END IF;
5819: RAISE;
5820: END;

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

5813: /*Fix for bug 2753123 ends */
5814: WHEN OTHERS THEN
5815: IF p_pa_debug_mode = 'Y' THEN
5816: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5817: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5818: END IF;
5819: RAISE;
5820: END;
5821:

Line 5824: IF p_pa_debug_mode = 'Y' THEN

5820: END;
5821:
5822: END IF;
5823:
5824: IF p_pa_debug_mode = 'Y' THEN
5825: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5826: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5827: pa_debug.reset_err_stack;
5828: END IF;

Line 5825: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';

5821:
5822: END IF;
5823:
5824: IF p_pa_debug_mode = 'Y' THEN
5825: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5826: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5827: pa_debug.reset_err_stack;
5828: END IF;
5829: EXCEPTION

Line 5826: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5822: END IF;
5823:
5824: IF p_pa_debug_mode = 'Y' THEN
5825: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5826: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5827: pa_debug.reset_err_stack;
5828: END IF;
5829: EXCEPTION
5830:

Line 5827: pa_debug.reset_err_stack;

5823:
5824: IF p_pa_debug_mode = 'Y' THEN
5825: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5826: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5827: pa_debug.reset_err_stack;
5828: END IF;
5829: EXCEPTION
5830:
5831: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 5849: IF P_PA_DEBUG_MODE = 'Y' THEN

5845:
5846: ELSE
5847: x_msg_count := l_msg_count;
5848: END IF;
5849: IF P_PA_DEBUG_MODE = 'Y' THEN
5850: pa_debug.reset_err_stack;
5851: END IF;
5852: RAISE;
5853:

Line 5850: pa_debug.reset_err_stack;

5846: ELSE
5847: x_msg_count := l_msg_count;
5848: END IF;
5849: IF P_PA_DEBUG_MODE = 'Y' THEN
5850: pa_debug.reset_err_stack;
5851: END IF;
5852: RAISE;
5853:
5854: WHEN others THEN

Line 5863: IF p_pa_debug_mode = 'Y' THEN

5859: FND_MSG_PUB.add_exc_msg
5860: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5861: ,p_procedure_name => 'Get_Shifted_Period'
5862: ,p_error_text => SQLERRM);
5863: IF p_pa_debug_mode = 'Y' THEN
5864: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5865: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5866: pa_debug.reset_err_stack;
5867: END IF;

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

5860: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5861: ,p_procedure_name => 'Get_Shifted_Period'
5862: ,p_error_text => SQLERRM);
5863: IF p_pa_debug_mode = 'Y' THEN
5864: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5865: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5866: pa_debug.reset_err_stack;
5867: END IF;
5868: RAISE;

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

5861: ,p_procedure_name => 'Get_Shifted_Period'
5862: ,p_error_text => SQLERRM);
5863: IF p_pa_debug_mode = 'Y' THEN
5864: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5865: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5866: pa_debug.reset_err_stack;
5867: END IF;
5868: RAISE;
5869: END Get_Shifted_Period;

Line 5866: pa_debug.reset_err_stack;

5862: ,p_error_text => SQLERRM);
5863: IF p_pa_debug_mode = 'Y' THEN
5864: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5865: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5866: pa_debug.reset_err_stack;
5867: END IF;
5868: RAISE;
5869: END Get_Shifted_Period;
5870:

Line 5931: IF p_pa_debug_mode = 'Y' THEN

5927: C_EQUIPMENT_QUANTITY CONSTANT VARCHAR2(30) := 'EQUIPMENT';
5928:
5929: BEGIN
5930:
5931: IF p_pa_debug_mode = 'Y' THEN
5932: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5933: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5934: END IF;
5935:

Line 5932: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');

5928:
5929: BEGIN
5930:
5931: IF p_pa_debug_mode = 'Y' THEN
5932: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5933: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5934: END IF;
5935:
5936: -- Check for business rules violations

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

5929: BEGIN
5930:
5931: IF p_pa_debug_mode = 'Y' THEN
5932: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5933: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5934: END IF;
5935:
5936: -- Check for business rules violations
5937:

Line 5938: IF p_pa_debug_mode = 'Y' THEN

5934: END IF;
5935:
5936: -- Check for business rules violations
5937:
5938: IF p_pa_debug_mode = 'Y' THEN
5939: pa_debug.g_err_stage:= 'Validating input parameters';
5940: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5941: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5942: END IF;

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

5935:
5936: -- Check for business rules violations
5937:
5938: IF p_pa_debug_mode = 'Y' THEN
5939: pa_debug.g_err_stage:= 'Validating input parameters';
5940: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5941: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5942: END IF;
5943:

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

5936: -- Check for business rules violations
5937:
5938: IF p_pa_debug_mode = 'Y' THEN
5939: pa_debug.g_err_stage:= 'Validating input parameters';
5940: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5941: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5942: END IF;
5943:
5944: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR

Line 5946: IF p_pa_debug_mode = 'Y' THEN

5942: END IF;
5943:
5944: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5945: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5946: IF p_pa_debug_mode = 'Y' THEN
5947: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;

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

5943:
5944: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5945: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5946: IF p_pa_debug_mode = 'Y' THEN
5947: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

5944: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5945: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5946: IF p_pa_debug_mode = 'Y' THEN
5947: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;

5946: IF p_pa_debug_mode = 'Y' THEN
5947: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

5947: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5955: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;

5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5955: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5956: pa_debug.g_err_stage:= 'p_ci_id = '|| p_ci_id;
5957: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

5950: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5955: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5956: pa_debug.g_err_stage:= 'p_ci_id = '|| p_ci_id;
5957: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5958: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5956: pa_debug.g_err_stage:= 'p_ci_id = '|| p_ci_id;

5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5955: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5956: pa_debug.g_err_stage:= 'p_ci_id = '|| p_ci_id;
5957: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5958: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5959: END IF;
5960: PA_UTILS.ADD_MESSAGE

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

5953: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5954: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5955: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5956: pa_debug.g_err_stage:= 'p_ci_id = '|| p_ci_id;
5957: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5958: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5959: END IF;
5960: PA_UTILS.ADD_MESSAGE
5961: (p_app_short_name => 'PA',

Line 5988: IF p_pa_debug_mode = 'Y' THEN

5984:
5985: OPEN cur_ci_ver(PA_FP_CONSTANTS_PKG.G_VERSION_TYPE_COST, p_ci_id);
5986: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5987: IF cur_ci_ver%NOTFOUND THEN
5988: IF p_pa_debug_mode = 'Y' THEN
5989: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5990: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5991: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5992: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 5989: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';

5985: OPEN cur_ci_ver(PA_FP_CONSTANTS_PKG.G_VERSION_TYPE_COST, p_ci_id);
5986: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5987: IF cur_ci_ver%NOTFOUND THEN
5988: IF p_pa_debug_mode = 'Y' THEN
5989: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5990: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5991: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5992: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5993: END IF;

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

5986: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5987: IF cur_ci_ver%NOTFOUND THEN
5988: IF p_pa_debug_mode = 'Y' THEN
5989: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5990: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5991: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5992: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5993: END IF;
5994: END IF;

Line 6002: IF p_pa_debug_mode = 'Y' THEN

5998:
5999: OPEN cur_ci_ver(null, p_ci_id);
6000: FETCH cur_ci_ver INTO cur_ci_ver_rec;
6001: IF cur_ci_ver%NOTFOUND THEN
6002: IF p_pa_debug_mode = 'Y' THEN
6003: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
6004: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6005: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6006: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6003: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';

5999: OPEN cur_ci_ver(null, p_ci_id);
6000: FETCH cur_ci_ver INTO cur_ci_ver_rec;
6001: IF cur_ci_ver%NOTFOUND THEN
6002: IF p_pa_debug_mode = 'Y' THEN
6003: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
6004: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6005: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6006: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6007: END IF;

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

6000: FETCH cur_ci_ver INTO cur_ci_ver_rec;
6001: IF cur_ci_ver%NOTFOUND THEN
6002: IF p_pa_debug_mode = 'Y' THEN
6003: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
6004: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6005: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6006: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6007: END IF;
6008: END IF;

Line 6015: IF p_pa_debug_mode = 'Y' THEN

6011: ELSIF l_ver_count <> 0 THEN
6012:
6013: /* There should not be a case where there more more than 2 versions !! */
6014:
6015: IF p_pa_debug_mode = 'Y' THEN
6016: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6017: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6018: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6019: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6016: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';

6012:
6013: /* There should not be a case where there more more than 2 versions !! */
6014:
6015: IF p_pa_debug_mode = 'Y' THEN
6016: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6017: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6018: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6019: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6020: END IF;

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

6013: /* There should not be a case where there more more than 2 versions !! */
6014:
6015: IF p_pa_debug_mode = 'Y' THEN
6016: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6017: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6018: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6019: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6020: END IF;
6021: END IF;

Line 6049: IF p_pa_debug_mode = 'Y' THEN

6045: ELSIF l_ver_count <> 0 THEN
6046:
6047: /* There should not be a case where there more more than 2 versions !! */
6048:
6049: IF p_pa_debug_mode = 'Y' THEN
6050: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6051: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6052: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6053: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6050: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';

6046:
6047: /* There should not be a case where there more more than 2 versions !! */
6048:
6049: IF p_pa_debug_mode = 'Y' THEN
6050: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6051: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6052: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6053: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6054: END IF;

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

6047: /* There should not be a case where there more more than 2 versions !! */
6048:
6049: IF p_pa_debug_mode = 'Y' THEN
6050: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6051: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6052: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6053: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6054: END IF;
6055:

Line 6084: IF p_pa_debug_mode = 'Y' THEN

6080: ELSIF l_ver_count <> 0 THEN
6081:
6082: /* There should not be a case where there more more than 2 versions !! */
6083:
6084: IF p_pa_debug_mode = 'Y' THEN
6085: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6087: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6088: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6085: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';

6081:
6082: /* There should not be a case where there more more than 2 versions !! */
6083:
6084: IF p_pa_debug_mode = 'Y' THEN
6085: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6087: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6088: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6089: END IF;

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

6082: /* There should not be a case where there more more than 2 versions !! */
6083:
6084: IF p_pa_debug_mode = 'Y' THEN
6085: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6087: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6088: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6089: END IF;
6090:

Line 6096: IF p_pa_debug_mode = 'Y' THEN

6092:
6093:
6094: END IF;
6095:
6096: IF p_pa_debug_mode = 'Y' THEN
6097: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6099: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6100: pa_debug.reset_err_stack;

Line 6097: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';

6093:
6094: END IF;
6095:
6096: IF p_pa_debug_mode = 'Y' THEN
6097: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6099: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6100: pa_debug.reset_err_stack;
6101:

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

6094: END IF;
6095:
6096: IF p_pa_debug_mode = 'Y' THEN
6097: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6099: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6100: pa_debug.reset_err_stack;
6101:
6102: END IF;

Line 6100: pa_debug.reset_err_stack;

6096: IF p_pa_debug_mode = 'Y' THEN
6097: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6099: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6100: pa_debug.reset_err_stack;
6101:
6102: END IF;
6103:
6104: IF p_quantity_type = C_ESTIMATED_QUANTITY THEN

Line 6119: IF p_pa_debug_mode = 'Y' THEN

6115: EXCEPTION
6116:
6117: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6118:
6119: IF p_pa_debug_mode = 'Y' THEN
6120: pa_debug.g_err_stage := 'Invalid arg exception ..';
6121: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6122: pa_debug.reset_err_stack;
6123: END IF;

Line 6120: pa_debug.g_err_stage := 'Invalid arg exception ..';

6116:
6117: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6118:
6119: IF p_pa_debug_mode = 'Y' THEN
6120: pa_debug.g_err_stage := 'Invalid arg exception ..';
6121: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6122: pa_debug.reset_err_stack;
6123: END IF;
6124: RAISE;

Line 6121: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

6117: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6118:
6119: IF p_pa_debug_mode = 'Y' THEN
6120: pa_debug.g_err_stage := 'Invalid arg exception ..';
6121: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6122: pa_debug.reset_err_stack;
6123: END IF;
6124: RAISE;
6125:

Line 6122: pa_debug.reset_err_stack;

6118:
6119: IF p_pa_debug_mode = 'Y' THEN
6120: pa_debug.g_err_stage := 'Invalid arg exception ..';
6121: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6122: pa_debug.reset_err_stack;
6123: END IF;
6124: RAISE;
6125:
6126: WHEN others THEN

Line 6133: IF p_pa_debug_mode = 'Y' THEN

6129: ( p_pkg_name => 'Pa_Fin_Plan_Utils'
6130: ,p_procedure_name => 'Get_Approved_Budget_Ver_Qty'
6131: ,p_error_text => sqlerrm);
6132:
6133: IF p_pa_debug_mode = 'Y' THEN
6134: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6135: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6136: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6137: pa_debug.reset_err_stack;

Line 6134: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;

6130: ,p_procedure_name => 'Get_Approved_Budget_Ver_Qty'
6131: ,p_error_text => sqlerrm);
6132:
6133: IF p_pa_debug_mode = 'Y' THEN
6134: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6135: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6136: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6137: pa_debug.reset_err_stack;
6138:

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

6131: ,p_error_text => sqlerrm);
6132:
6133: IF p_pa_debug_mode = 'Y' THEN
6134: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6135: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6136: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6137: pa_debug.reset_err_stack;
6138:
6139: END IF;

Line 6137: pa_debug.reset_err_stack;

6133: IF p_pa_debug_mode = 'Y' THEN
6134: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6135: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6136: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6137: pa_debug.reset_err_stack;
6138:
6139: END IF;
6140: RAISE;
6141:

Line 6178: IF P_PA_DEBUG_MODE = 'Y' THEN

6174: BEGIN
6175:
6176: x_msg_count := 0;
6177: x_return_status := FND_API.G_RET_STS_SUCCESS;
6178: IF P_PA_DEBUG_MODE = 'Y' THEN
6179: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6180: END IF;
6181: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6182: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6179: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');

6175:
6176: x_msg_count := 0;
6177: x_return_status := FND_API.G_RET_STS_SUCCESS;
6178: IF P_PA_DEBUG_MODE = 'Y' THEN
6179: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6180: END IF;
6181: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6182: l_debug_mode := NVL(l_debug_mode, 'Y');
6183: IF l_debug_mode = 'Y' THEN

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

6177: x_return_status := FND_API.G_RET_STS_SUCCESS;
6178: IF P_PA_DEBUG_MODE = 'Y' THEN
6179: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6180: END IF;
6181: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6182: l_debug_mode := NVL(l_debug_mode, 'Y');
6183: IF l_debug_mode = 'Y' THEN
6184: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6185: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';

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

6180: END IF;
6181: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6182: l_debug_mode := NVL(l_debug_mode, 'Y');
6183: IF l_debug_mode = 'Y' THEN
6184: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6185: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6186: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6187: END IF;
6188:

Line 6185: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';

6181: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6182: l_debug_mode := NVL(l_debug_mode, 'Y');
6183: IF l_debug_mode = 'Y' THEN
6184: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6185: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6186: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6187: END IF;
6188:
6189: /*Validate Rate Type*/

Line 6186: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);

6182: l_debug_mode := NVL(l_debug_mode, 'Y');
6183: IF l_debug_mode = 'Y' THEN
6184: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6185: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6186: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6187: END IF;
6188:
6189: /*Validate Rate Type*/
6190: BEGIN

Line 6303: pa_debug.g_err_stage:= 'Exiting validate_input_params';

6299:
6300: END;
6301:
6302: IF l_debug_mode='Y' THEN
6303: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6304: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6305: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6306:
6307: pa_debug.reset_err_stack;

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

6300: END;
6301:
6302: IF l_debug_mode='Y' THEN
6303: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6304: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6305: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6306:
6307: pa_debug.reset_err_stack;
6308: END IF;

Line 6307: pa_debug.reset_err_stack;

6303: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6304: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6305: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6306:
6307: pa_debug.reset_err_stack;
6308: END IF;
6309: EXCEPTION
6310:
6311: WHEN OTHERS THEN

Line 6321: pa_debug.G_Err_Stack := SQLERRM;

6317: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
6318: ,p_procedure_name => 'validate_input_params'
6319: ,p_error_text => sqlerrm);
6320:
6321: pa_debug.G_Err_Stack := SQLERRM;
6322: IF P_PA_DEBUG_MODE = 'Y' THEN
6323: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6324: pa_debug.reset_err_stack;
6325: END IF;

Line 6322: IF P_PA_DEBUG_MODE = 'Y' THEN

6318: ,p_procedure_name => 'validate_input_params'
6319: ,p_error_text => sqlerrm);
6320:
6321: pa_debug.G_Err_Stack := SQLERRM;
6322: IF P_PA_DEBUG_MODE = 'Y' THEN
6323: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6324: pa_debug.reset_err_stack;
6325: END IF;
6326: RAISE;

Line 6323: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);

6319: ,p_error_text => sqlerrm);
6320:
6321: pa_debug.G_Err_Stack := SQLERRM;
6322: IF P_PA_DEBUG_MODE = 'Y' THEN
6323: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6324: pa_debug.reset_err_stack;
6325: END IF;
6326: RAISE;
6327:

Line 6324: pa_debug.reset_err_stack;

6320:
6321: pa_debug.G_Err_Stack := SQLERRM;
6322: IF P_PA_DEBUG_MODE = 'Y' THEN
6323: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6324: pa_debug.reset_err_stack;
6325: END IF;
6326: RAISE;
6327:
6328: END validate_input_params;

Line 6364: IF P_PA_DEBUG_MODE = 'Y' THEN

6360:
6361: BEGIN
6362: x_msg_count := 0;
6363: x_return_status := FND_API.G_RET_STS_SUCCESS;
6364: IF P_PA_DEBUG_MODE = 'Y' THEN
6365: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6366: END IF;
6367: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6368: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6365: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');

6361: BEGIN
6362: x_msg_count := 0;
6363: x_return_status := FND_API.G_RET_STS_SUCCESS;
6364: IF P_PA_DEBUG_MODE = 'Y' THEN
6365: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6366: END IF;
6367: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6368: l_debug_mode := NVL(l_debug_mode, 'Y');
6369: IF l_debug_mode = 'Y' THEN

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

6363: x_return_status := FND_API.G_RET_STS_SUCCESS;
6364: IF P_PA_DEBUG_MODE = 'Y' THEN
6365: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6366: END IF;
6367: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6368: l_debug_mode := NVL(l_debug_mode, 'Y');
6369: IF l_debug_mode = 'Y' THEN
6370: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6371: pa_debug.g_err_stage:='Validating the given set of conversion attributes';

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

6366: END IF;
6367: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6368: l_debug_mode := NVL(l_debug_mode, 'Y');
6369: IF l_debug_mode = 'Y' THEN
6370: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6371: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6372: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6373: END IF;
6374:

Line 6371: pa_debug.g_err_stage:='Validating the given set of conversion attributes';

6367: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6368: l_debug_mode := NVL(l_debug_mode, 'Y');
6369: IF l_debug_mode = 'Y' THEN
6370: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6371: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6372: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6373: END IF;
6374:
6375: IF((px_rate_type IS NULL) AND

Line 6372: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6368: l_debug_mode := NVL(l_debug_mode, 'Y');
6369: IF l_debug_mode = 'Y' THEN
6370: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6371: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6372: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6373: END IF;
6374:
6375: IF((px_rate_type IS NULL) AND
6376: (px_rate_date_type IS NULL) AND

Line 6384: pa_debug.g_err_stage:='All the attributes are null';

6380: pages. Hence this check is made
6381: */
6382:
6383: IF l_debug_mode = 'Y' THEN
6384: pa_debug.g_err_stage:='All the attributes are null';
6385: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6386: END IF;
6387:
6388: IF(p_calling_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN

Line 6385: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6381: */
6382:
6383: IF l_debug_mode = 'Y' THEN
6384: pa_debug.g_err_stage:='All the attributes are null';
6385: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6386: END IF;
6387:
6388: IF(p_calling_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN
6389: /* Do Nothing as this will be checked in validate_currency_attributes */

Line 6438: pa_debug.g_err_stage:='Rate Type is Null';

6434:
6435: ELSIF (px_rate_type IS NULL) THEN
6436:
6437: IF l_debug_mode = 'Y' THEN
6438: pa_debug.g_err_stage:='Rate Type is Null';
6439: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6440: END IF;
6441:
6442: x_return_status := FND_API.G_RET_STS_ERROR;

Line 6439: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6435: ELSIF (px_rate_type IS NULL) THEN
6436:
6437: IF l_debug_mode = 'Y' THEN
6438: pa_debug.g_err_stage:='Rate Type is Null';
6439: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6440: END IF;
6441:
6442: x_return_status := FND_API.G_RET_STS_ERROR;
6443: IF (p_calling_context=PA_FP_CONSTANTS_PKG.G_AMG_API_DETAIL ) THEN

Line 6477: pa_debug.g_err_stage:='Rate Type is User';

6473:
6474: ELSIF (px_rate_type = PA_FP_CONSTANTS_PKG.G_RATE_TYPE_USER ) THEN
6475:
6476: IF l_debug_mode = 'Y' THEN
6477: pa_debug.g_err_stage:='Rate Type is User';
6478: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6479: END IF;
6480: --Added the constant G_AMG_API_HEADER as part of changes due to finplan model in AMG
6481: IF (px_rate IS NULL AND nvl(p_calling_context,'-99') NOT IN ( PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE

Line 6478: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6474: ELSIF (px_rate_type = PA_FP_CONSTANTS_PKG.G_RATE_TYPE_USER ) THEN
6475:
6476: IF l_debug_mode = 'Y' THEN
6477: pa_debug.g_err_stage:='Rate Type is User';
6478: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6479: END IF;
6480: --Added the constant G_AMG_API_HEADER as part of changes due to finplan model in AMG
6481: IF (px_rate IS NULL AND nvl(p_calling_context,'-99') NOT IN ( PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE
6482: ,PA_FP_CONSTANTS_PKG.G_AMG_API_HEADER) )THEN

Line 6537: pa_debug.g_err_stage:='Rate Date Type is Null';

6533: /* this means that rate type is not null and its value is not user */
6534: ELSIF (px_rate_date_type IS NULL) THEN
6535:
6536: IF l_debug_mode = 'Y' THEN
6537: pa_debug.g_err_stage:='Rate Date Type is Null';
6538: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6539: END IF;
6540:
6541: x_return_status := FND_API.G_RET_STS_ERROR;

Line 6538: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6534: ELSIF (px_rate_date_type IS NULL) THEN
6535:
6536: IF l_debug_mode = 'Y' THEN
6537: pa_debug.g_err_stage:='Rate Date Type is Null';
6538: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6539: END IF;
6540:
6541: x_return_status := FND_API.G_RET_STS_ERROR;
6542: IF (p_calling_context=PA_FP_CONSTANTS_PKG.G_AMG_API_DETAIL ) THEN

Line 6576: pa_debug.g_err_stage:='Rate Date Type is Fixed';

6572: /* this means that rate type is not null and its value is not user and rate_date_type value is FIXED */
6573: ELSIF px_rate_date_type = PA_FP_CONSTANTS_PKG.G_RATE_DATE_TYPE_FIXED_DATE THEN
6574:
6575: IF l_debug_mode = 'Y' THEN
6576: pa_debug.g_err_stage:='Rate Date Type is Fixed';
6577: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6578: END IF;
6579:
6580: /* Rate Date Should not be null */

Line 6577: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6573: ELSIF px_rate_date_type = PA_FP_CONSTANTS_PKG.G_RATE_DATE_TYPE_FIXED_DATE THEN
6574:
6575: IF l_debug_mode = 'Y' THEN
6576: pa_debug.g_err_stage:='Rate Date Type is Fixed';
6577: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6578: END IF;
6579:
6580: /* Rate Date Should not be null */
6581: IF (px_rate_date IS NULL) THEN

Line 6627: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';

6623:
6624: END IF;
6625:
6626: IF l_debug_mode = 'Y' THEN
6627: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6628: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6629: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6630:
6631: pa_debug.reset_err_stack;

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

6624: END IF;
6625:
6626: IF l_debug_mode = 'Y' THEN
6627: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6628: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6629: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6630:
6631: pa_debug.reset_err_stack;
6632: END IF;

Line 6631: pa_debug.reset_err_stack;

6627: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6628: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6629: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6630:
6631: pa_debug.reset_err_stack;
6632: END IF;
6633: EXCEPTION
6634: WHEN OTHERS THEN
6635: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 6644: pa_debug.G_Err_Stack := SQLERRM;

6640: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
6641: ,p_procedure_name => 'VALIDATE_CONV_ATTRIBUTES'
6642: ,p_error_text => sqlerrm);
6643:
6644: pa_debug.G_Err_Stack := SQLERRM;
6645: IF P_PA_DEBUG_MODE = 'Y' THEN
6646: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6647: pa_debug.reset_err_stack;
6648: END IF;

Line 6645: IF P_PA_DEBUG_MODE = 'Y' THEN

6641: ,p_procedure_name => 'VALIDATE_CONV_ATTRIBUTES'
6642: ,p_error_text => sqlerrm);
6643:
6644: pa_debug.G_Err_Stack := SQLERRM;
6645: IF P_PA_DEBUG_MODE = 'Y' THEN
6646: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6647: pa_debug.reset_err_stack;
6648: END IF;
6649: RAISE;

Line 6646: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);

6642: ,p_error_text => sqlerrm);
6643:
6644: pa_debug.G_Err_Stack := SQLERRM;
6645: IF P_PA_DEBUG_MODE = 'Y' THEN
6646: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6647: pa_debug.reset_err_stack;
6648: END IF;
6649: RAISE;
6650:

Line 6647: pa_debug.reset_err_stack;

6643:
6644: pa_debug.G_Err_Stack := SQLERRM;
6645: IF P_PA_DEBUG_MODE = 'Y' THEN
6646: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6647: pa_debug.reset_err_stack;
6648: END IF;
6649: RAISE;
6650:
6651: END VALIDATE_CONV_ATTRIBUTES;

Line 6718: IF P_PA_DEBUG_MODE = 'Y' THEN

6714:
6715: BEGIN
6716: x_msg_count := 0;
6717: x_return_status := FND_API.G_RET_STS_SUCCESS;
6718: IF P_PA_DEBUG_MODE = 'Y' THEN
6719: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6720: END IF;
6721: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6722: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6719: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');

6715: BEGIN
6716: x_msg_count := 0;
6717: x_return_status := FND_API.G_RET_STS_SUCCESS;
6718: IF P_PA_DEBUG_MODE = 'Y' THEN
6719: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6720: END IF;
6721: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6722: l_debug_mode := NVL(l_debug_mode, 'Y');
6723: IF l_debug_mode = 'Y' THEN

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

6717: x_return_status := FND_API.G_RET_STS_SUCCESS;
6718: IF P_PA_DEBUG_MODE = 'Y' THEN
6719: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6720: END IF;
6721: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6722: l_debug_mode := NVL(l_debug_mode, 'Y');
6723: IF l_debug_mode = 'Y' THEN
6724: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6725: END IF;

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

6720: END IF;
6721: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6722: l_debug_mode := NVL(l_debug_mode, 'Y');
6723: IF l_debug_mode = 'Y' THEN
6724: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6725: END IF;
6726: IF (p_project_currency_code IS NULL OR
6727: p_projfunc_currency_code IS NULL OR
6728: p_context IS NULL OR

Line 6732: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;

6728: p_context IS NULL OR
6729: p_attrs_to_be_validated IS NULL ) THEN
6730:
6731: IF l_debug_mode = 'Y' THEN
6732: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6734:
6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6729: p_attrs_to_be_validated IS NULL ) THEN
6730:
6731: IF l_debug_mode = 'Y' THEN
6732: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6734:
6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737:

Line 6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;

6731: IF l_debug_mode = 'Y' THEN
6732: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6734:
6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737:
6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6732: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6734:
6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737:
6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6740:

Line 6738: pa_debug.g_err_stage:='p_context = ' || p_context;

6734:
6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737:
6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6740:
6741: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6742: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6735: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737:
6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6740:
6741: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6742: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6743: END IF;

Line 6741: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;

6737:
6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6740:
6741: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6742: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6743: END IF;
6744:
6745: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 6742: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6738: pa_debug.g_err_stage:='p_context = ' || p_context;
6739: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6740:
6741: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6742: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6743: END IF;
6744:
6745: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6746: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 6749: pa_debug.g_err_stage := 'Invalid parameters passed' ;

6745: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6746: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
6747:
6748: IF l_debug_mode = 'Y' THEN
6749: pa_debug.g_err_stage := 'Invalid parameters passed' ;
6750: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6751: END IF;
6752: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6753:

Line 6750: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);

6746: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
6747:
6748: IF l_debug_mode = 'Y' THEN
6749: pa_debug.g_err_stage := 'Invalid parameters passed' ;
6750: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6751: END IF;
6752: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6753:
6754: END IF;

Line 6758: pa_debug.g_err_stage:='About to validate the currency conversion attributes';

6754: END IF;
6755:
6756:
6757: IF l_debug_mode = 'Y' THEN
6758: pa_debug.g_err_stage:='About to validate the currency conversion attributes';
6759: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6760: END IF;
6761:
6762: /*Get the message tokens that may be required while validating the attributes*/

Line 6759: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6755:
6756:
6757: IF l_debug_mode = 'Y' THEN
6758: pa_debug.g_err_stage:='About to validate the currency conversion attributes';
6759: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6760: END IF;
6761:
6762: /*Get the message tokens that may be required while validating the attributes*/
6763:

Line 6798: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;

6794: /* Throw the error if the above API is not successfully executed */
6795: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6796:
6797: IF l_debug_mode = 'Y' THEN
6798: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;
6799: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6800: END IF;
6801: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6802:

Line 6799: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);

6795: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6796:
6797: IF l_debug_mode = 'Y' THEN
6798: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;
6799: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6800: END IF;
6801: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6802:
6803: END IF;

Line 6842: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;

6838: ,x_msg_data => x_msg_data);
6839:
6840: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6841: IF l_debug_mode = 'Y' THEN
6842: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;
6843: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6844: END IF;
6845: l_any_error_occurred_flag := 'Y';
6846:

Line 6843: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6839:
6840: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6841: IF l_debug_mode = 'Y' THEN
6842: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;
6843: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6844: END IF;
6845: l_any_error_occurred_flag := 'Y';
6846:
6847: /* webADI looks only for the first error message */

Line 6884: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6880: ,x_msg_data => x_msg_data);
6881:
6882: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6883: IF l_debug_mode = 'Y' THEN
6884: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6885: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6886: END IF;
6887: l_any_error_occurred_flag := 'Y';
6888:

Line 6885: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6881:
6882: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6883: IF l_debug_mode = 'Y' THEN
6884: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6885: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6886: END IF;
6887: l_any_error_occurred_flag := 'Y';
6888:
6889: /* webADI looks only for the first error message */

Line 6935: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6931: ,x_msg_count => x_msg_count
6932: ,x_msg_data => x_msg_data);
6933: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6934: IF l_debug_mode = 'Y' THEN
6935: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6936: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6937: END IF;
6938: l_any_error_occurred_flag := 'Y';
6939:

Line 6936: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6932: ,x_msg_data => x_msg_data);
6933: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6934: IF l_debug_mode = 'Y' THEN
6935: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6936: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6937: END IF;
6938: l_any_error_occurred_flag := 'Y';
6939:
6940: /* webADI looks only for the first error message */

Line 6976: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6972: ,x_msg_data => x_msg_data);
6973:
6974: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6975: IF l_debug_mode = 'Y' THEN
6976: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6977: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6978: END IF;
6979: l_any_error_occurred_flag := 'Y';
6980:

Line 6977: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6973:
6974: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6975: IF l_debug_mode = 'Y' THEN
6976: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6977: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6978: END IF;
6979: l_any_error_occurred_flag := 'Y';
6980:
6981: /* webADI looks only for the first error message */

Line 7012: pa_debug.g_err_stage:= 'p_context is '||p_context;

7008:
7009: /*Do the Additional validations required in the case of Create / Update plan type page*/
7010:
7011: IF l_debug_mode='Y' THEN
7012: pa_debug.g_err_stage:= 'p_context is '||p_context;
7013: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7014: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7015: END IF;
7016:

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

7009: /*Do the Additional validations required in the case of Create / Update plan type page*/
7010:
7011: IF l_debug_mode='Y' THEN
7012: pa_debug.g_err_stage:= 'p_context is '||p_context;
7013: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7014: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7015: END IF;
7016:
7017: IF (p_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN

Line 7078: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';

7074: END IF;
7075:
7076: IF l_any_error_occurred_flag = 'Y' THEN
7077: IF l_debug_mode='Y' THEN
7078: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';
7079: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7080: END IF;
7081:
7082: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7079: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7075:
7076: IF l_any_error_occurred_flag = 'Y' THEN
7077: IF l_debug_mode='Y' THEN
7078: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';
7079: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7080: END IF;
7081:
7082: x_return_status := FND_API.G_RET_STS_ERROR;
7083: END IF;

Line 7086: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';

7082: x_return_status := FND_API.G_RET_STS_ERROR;
7083: END IF;
7084:
7085: IF l_debug_mode='Y' THEN
7086: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7087: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7088: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7089:
7090: pa_debug.reset_err_stack;

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

7083: END IF;
7084:
7085: IF l_debug_mode='Y' THEN
7086: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7087: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7088: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7089:
7090: pa_debug.reset_err_stack;
7091: END IF;

Line 7090: pa_debug.reset_err_stack;

7086: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7087: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7088: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7089:
7090: pa_debug.reset_err_stack;
7091: END IF;
7092: EXCEPTION
7093: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
7094: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7110: IF P_PA_DEBUG_MODE = 'Y' THEN

7106: x_msg_count := l_msg_count;
7107: ELSE
7108: x_msg_count := l_msg_count;
7109: END IF;
7110: IF P_PA_DEBUG_MODE = 'Y' THEN
7111: pa_debug.reset_err_stack;
7112: END IF;
7113: RETURN;
7114:

Line 7111: pa_debug.reset_err_stack;

7107: ELSE
7108: x_msg_count := l_msg_count;
7109: END IF;
7110: IF P_PA_DEBUG_MODE = 'Y' THEN
7111: pa_debug.reset_err_stack;
7112: END IF;
7113: RETURN;
7114:
7115: WHEN OTHERS THEN

Line 7125: pa_debug.G_Err_Stack := SQLERRM;

7121: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7122: ,p_procedure_name => 'VALIDATE_CURRENCY_ATTRIBUTES'
7123: ,p_error_text => sqlerrm);
7124:
7125: pa_debug.G_Err_Stack := SQLERRM;
7126: IF P_PA_DEBUG_MODE = 'Y' THEN
7127: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7128: pa_debug.reset_err_stack;
7129: END IF;

Line 7126: IF P_PA_DEBUG_MODE = 'Y' THEN

7122: ,p_procedure_name => 'VALIDATE_CURRENCY_ATTRIBUTES'
7123: ,p_error_text => sqlerrm);
7124:
7125: pa_debug.G_Err_Stack := SQLERRM;
7126: IF P_PA_DEBUG_MODE = 'Y' THEN
7127: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7128: pa_debug.reset_err_stack;
7129: END IF;
7130: RAISE;

Line 7127: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);

7123: ,p_error_text => sqlerrm);
7124:
7125: pa_debug.G_Err_Stack := SQLERRM;
7126: IF P_PA_DEBUG_MODE = 'Y' THEN
7127: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7128: pa_debug.reset_err_stack;
7129: END IF;
7130: RAISE;
7131:

Line 7128: pa_debug.reset_err_stack;

7124:
7125: pa_debug.G_Err_Stack := SQLERRM;
7126: IF P_PA_DEBUG_MODE = 'Y' THEN
7127: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7128: pa_debug.reset_err_stack;
7129: END IF;
7130: RAISE;
7131:
7132: END VALIDATE_CURRENCY_ATTRIBUTES;

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

7166: BEGIN
7167:
7168: x_msg_count := 0;
7169: x_return_status := FND_API.G_RET_STS_SUCCESS;
7170: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7171: IF l_debug_mode = 'Y' THEN
7172: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7173: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7174: END IF;

Line 7172: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');

7168: x_msg_count := 0;
7169: x_return_status := FND_API.G_RET_STS_SUCCESS;
7170: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7171: IF l_debug_mode = 'Y' THEN
7172: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7173: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7174: END IF;
7175:
7176: -- Check for business rules violations

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

7169: x_return_status := FND_API.G_RET_STS_SUCCESS;
7170: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7171: IF l_debug_mode = 'Y' THEN
7172: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7173: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7174: END IF;
7175:
7176: -- Check for business rules violations
7177: IF l_debug_mode = 'Y' THEN

Line 7178: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';

7174: END IF;
7175:
7176: -- Check for business rules violations
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';
7179: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7180: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7181: END IF;
7182:

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

7175:
7176: -- Check for business rules violations
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';
7179: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7180: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7181: END IF;
7182:
7183: IF l_debug_mode = 'Y' THEN

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

7180: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7181: END IF;
7182:
7183: IF l_debug_mode = 'Y' THEN
7184: pa_debug.g_err_stage:= 'Validating input parameters';
7185: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7186: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7187: END IF;
7188:

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

7181: END IF;
7182:
7183: IF l_debug_mode = 'Y' THEN
7184: pa_debug.g_err_stage:= 'Validating input parameters';
7185: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7186: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7187: END IF;
7188:
7189: IF (p_plan_version_id IS NULL) THEN

Line 7191: pa_debug.g_err_stage:= 'plan version id is null';

7187: END IF;
7188:
7189: IF (p_plan_version_id IS NULL) THEN
7190: IF l_debug_mode = 'Y' THEN
7191: pa_debug.g_err_stage:= 'plan version id is null';
7192: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7193: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7194: END IF;
7195: PA_UTILS.ADD_MESSAGE

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

7188:
7189: IF (p_plan_version_id IS NULL) THEN
7190: IF l_debug_mode = 'Y' THEN
7191: pa_debug.g_err_stage:= 'plan version id is null';
7192: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7193: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7194: END IF;
7195: PA_UTILS.ADD_MESSAGE
7196: (p_app_short_name => 'PA',

Line 7208: pa_debug.g_err_stage:= 'Plan type record not found';

7204: into x_fin_plan_type_id,x_plan_type_option_id,x_version_type;
7205:
7206: IF plan_type_cur%NOTFOUND THEN
7207: IF l_debug_mode = 'Y' THEN
7208: pa_debug.g_err_stage:= 'Plan type record not found';
7209: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7210: END IF;
7211: CLOSE plan_type_cur;
7212: RAISE NO_DATA_FOUND;

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

7205:
7206: IF plan_type_cur%NOTFOUND THEN
7207: IF l_debug_mode = 'Y' THEN
7208: pa_debug.g_err_stage:= 'Plan type record not found';
7209: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7210: END IF;
7211: CLOSE plan_type_cur;
7212: RAISE NO_DATA_FOUND;
7213: END IF;

Line 7218: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;

7214:
7215: CLOSE plan_type_cur;
7216:
7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7220: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: END IF;

Line 7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7215: CLOSE plan_type_cur;
7216:
7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7220: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: END IF;
7223:

Line 7220: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;

7216:
7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7220: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: END IF;
7223:
7224: IF l_debug_mode = 'Y' THEN

Line 7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7217: IF l_debug_mode = 'Y' THEN
7218: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7219: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7220: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: END IF;
7223:
7224: IF l_debug_mode = 'Y' THEN
7225: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';

Line 7225: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';

7221: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: END IF;
7223:
7224: IF l_debug_mode = 'Y' THEN
7225: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7226: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7227: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7228: pa_debug.reset_err_stack;
7229:

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

7222: END IF;
7223:
7224: IF l_debug_mode = 'Y' THEN
7225: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7226: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7227: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7228: pa_debug.reset_err_stack;
7229:
7230: END IF;

Line 7228: pa_debug.reset_err_stack;

7224: IF l_debug_mode = 'Y' THEN
7225: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7226: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7227: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7228: pa_debug.reset_err_stack;
7229:
7230: END IF;
7231:
7232: EXCEPTION

Line 7253: pa_debug.reset_err_stack;

7249: ELSE
7250: x_msg_count := l_msg_count;
7251: END IF;
7252: IF l_debug_mode = 'Y' THEN
7253: pa_debug.reset_err_stack;
7254: END IF;
7255: RETURN;
7256:
7257: WHEN others THEN

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

7265: ,p_procedure_name => 'GET_PLAN_TYPE_OPTS_FOR_VER'
7266: ,p_error_text => x_msg_data);
7267:
7268: IF l_debug_mode = 'Y' THEN
7269: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7270: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7271: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7272: pa_debug.reset_err_stack;
7273:

Line 7270: pa_debug.write(L_module_name,pa_debug.g_err_stage,

7266: ,p_error_text => x_msg_data);
7267:
7268: IF l_debug_mode = 'Y' THEN
7269: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7270: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7271: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7272: pa_debug.reset_err_stack;
7273:
7274: END IF;

Line 7272: pa_debug.reset_err_stack;

7268: IF l_debug_mode = 'Y' THEN
7269: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7270: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7271: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7272: pa_debug.reset_err_stack;
7273:
7274: END IF;
7275: RAISE;
7276:

Line 7308: IF P_PA_DEBUG_MODE = 'Y' THEN

7304:
7305: BEGIN
7306: x_msg_count := 0;
7307: x_return_status := FND_API.G_RET_STS_SUCCESS;
7308: IF P_PA_DEBUG_MODE = 'Y' THEN
7309: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7310: p_debug_mode => p_pa_debug_mode );
7311: END IF;
7312: -- Check for NOT NULL parameters

Line 7309: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',

7305: BEGIN
7306: x_msg_count := 0;
7307: x_return_status := FND_API.G_RET_STS_SUCCESS;
7308: IF P_PA_DEBUG_MODE = 'Y' THEN
7309: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7310: p_debug_mode => p_pa_debug_mode );
7311: END IF;
7312: -- Check for NOT NULL parameters
7313: IF (p_project_id IS NULL)

Line 7310: p_debug_mode => p_pa_debug_mode );

7306: x_msg_count := 0;
7307: x_return_status := FND_API.G_RET_STS_SUCCESS;
7308: IF P_PA_DEBUG_MODE = 'Y' THEN
7309: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7310: p_debug_mode => p_pa_debug_mode );
7311: END IF;
7312: -- Check for NOT NULL parameters
7313: IF (p_project_id IS NULL)
7314: THEN

Line 7315: IF p_pa_debug_mode = 'Y' THEN

7311: END IF;
7312: -- Check for NOT NULL parameters
7313: IF (p_project_id IS NULL)
7314: THEN
7315: IF p_pa_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7318: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7319: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

7312: -- Check for NOT NULL parameters
7313: IF (p_project_id IS NULL)
7314: THEN
7315: IF p_pa_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7318: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7319: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7320: END IF;

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

7313: IF (p_project_id IS NULL)
7314: THEN
7315: IF p_pa_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7318: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7319: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7320: END IF;
7321: PA_UTILS.ADD_MESSAGE

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

7314: THEN
7315: IF p_pa_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7318: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7319: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7320: END IF;
7321: PA_UTILS.ADD_MESSAGE
7322: (p_app_short_name => 'PA',

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

7315: IF p_pa_debug_mode = 'Y' THEN
7316: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7317: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7318: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7319: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7320: END IF;
7321: PA_UTILS.ADD_MESSAGE
7322: (p_app_short_name => 'PA',
7323: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7329: IF p_pa_debug_mode = 'Y' THEN

7325: END IF;
7326:
7327: -- Fetch the cost rate types for project currency and projfunc currency
7328:
7329: IF p_pa_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7332: END IF;
7333:

Line 7330: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;

7326:
7327: -- Fetch the cost rate types for project currency and projfunc currency
7328:
7329: IF p_pa_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7332: END IF;
7333:
7334: SELECT p.multi_currency_billing_flag

Line 7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7327: -- Fetch the cost rate types for project currency and projfunc currency
7328:
7329: IF p_pa_debug_mode = 'Y' THEN
7330: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7331: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7332: END IF;
7333:
7334: SELECT p.multi_currency_billing_flag
7335: ,p.project_currency_code

Line 7356: IF p_pa_debug_mode = 'Y' THEN

7352: AND p.org_id = i.org_id; /* Bug 3174677: Added the NVL ,Refer to Update
7353: "16-JAN-04 sagarwal" in the history above.
7354: This has been added as part of code merge */
7355:
7356: IF p_pa_debug_mode = 'Y' THEN
7357: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7358: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7359: pa_debug.reset_curr_function;
7360: END IF;

Line 7357: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';

7353: "16-JAN-04 sagarwal" in the history above.
7354: This has been added as part of code merge */
7355:
7356: IF p_pa_debug_mode = 'Y' THEN
7357: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7358: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7359: pa_debug.reset_curr_function;
7360: END IF;
7361: EXCEPTION

Line 7358: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7354: This has been added as part of code merge */
7355:
7356: IF p_pa_debug_mode = 'Y' THEN
7357: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7358: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7359: pa_debug.reset_curr_function;
7360: END IF;
7361: EXCEPTION
7362:

Line 7359: pa_debug.reset_curr_function;

7355:
7356: IF p_pa_debug_mode = 'Y' THEN
7357: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7358: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7359: pa_debug.reset_curr_function;
7360: END IF;
7361: EXCEPTION
7362:
7363: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7380: IF P_PA_DEBUG_MODE = 'Y' THEN

7376: x_msg_count := l_msg_count;
7377: ELSE
7378: x_msg_count := l_msg_count;
7379: END IF;
7380: IF P_PA_DEBUG_MODE = 'Y' THEN
7381: pa_debug.reset_curr_function;
7382: END IF;
7383: RAISE;
7384: WHEN others THEN

Line 7381: pa_debug.reset_curr_function;

7377: ELSE
7378: x_msg_count := l_msg_count;
7379: END IF;
7380: IF P_PA_DEBUG_MODE = 'Y' THEN
7381: pa_debug.reset_curr_function;
7382: END IF;
7383: RAISE;
7384: WHEN others THEN
7385:

Line 7393: IF p_pa_debug_mode = 'Y' THEN

7389: FND_MSG_PUB.add_exc_msg
7390: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7391: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7392: ,p_error_text => SQLERRM);
7393: IF p_pa_debug_mode = 'Y' THEN
7394: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7395: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7396: pa_debug.reset_curr_function;
7397: END IF;

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

7390: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7391: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7392: ,p_error_text => SQLERRM);
7393: IF p_pa_debug_mode = 'Y' THEN
7394: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7395: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7396: pa_debug.reset_curr_function;
7397: END IF;
7398: RAISE;

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

7391: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7392: ,p_error_text => SQLERRM);
7393: IF p_pa_debug_mode = 'Y' THEN
7394: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7395: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7396: pa_debug.reset_curr_function;
7397: END IF;
7398: RAISE;
7399: END Get_Project_Curr_Attributes;

Line 7396: pa_debug.reset_curr_function;

7392: ,p_error_text => SQLERRM);
7393: IF p_pa_debug_mode = 'Y' THEN
7394: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7395: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7396: pa_debug.reset_curr_function;
7397: END IF;
7398: RAISE;
7399: END Get_Project_Curr_Attributes;
7400:

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

7433: BEGIN
7434:
7435: x_msg_count := 0;
7436: x_return_status := FND_API.G_RET_STS_SUCCESS;
7437: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7438:
7439: IF P_PA_DEBUG_MODE = 'Y' THEN
7440: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7441: p_debug_mode => l_debug_mode );

Line 7439: IF P_PA_DEBUG_MODE = 'Y' THEN

7435: x_msg_count := 0;
7436: x_return_status := FND_API.G_RET_STS_SUCCESS;
7437: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7438:
7439: IF P_PA_DEBUG_MODE = 'Y' THEN
7440: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7441: p_debug_mode => l_debug_mode );
7442: END IF;
7443: -- Check for business rules violations

Line 7440: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',

7436: x_return_status := FND_API.G_RET_STS_SUCCESS;
7437: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7438:
7439: IF P_PA_DEBUG_MODE = 'Y' THEN
7440: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7441: p_debug_mode => l_debug_mode );
7442: END IF;
7443: -- Check for business rules violations
7444:

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

7442: END IF;
7443: -- Check for business rules violations
7444:
7445: IF l_debug_mode = 'Y' THEN
7446: pa_debug.g_err_stage:= 'Validating input parameters';
7447: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7448: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7449: END IF;
7450:

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

7443: -- Check for business rules violations
7444:
7445: IF l_debug_mode = 'Y' THEN
7446: pa_debug.g_err_stage:= 'Validating input parameters';
7447: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7448: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7449: END IF;
7450:
7451: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)

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

7450:
7451: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
7452: THEN
7453: IF l_debug_mode = 'Y' THEN
7454: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7455: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7456: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7457: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7458: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

7451: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
7452: THEN
7453: IF l_debug_mode = 'Y' THEN
7454: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7455: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7456: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7457: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7458: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7459: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

7453: IF l_debug_mode = 'Y' THEN
7454: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7455: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7456: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7457: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7458: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7459: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7460: END IF;
7461: PA_UTILS.ADD_MESSAGE

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

7454: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7455: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7456: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7457: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7458: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7459: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7460: END IF;
7461: PA_UTILS.ADD_MESSAGE
7462: (p_app_short_name => 'PA',

Line 7486: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';

7482: x_creation_allowed := 'N';
7483: END IF;
7484:
7485: IF l_debug_mode = 'Y' THEN
7486: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7487: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7488: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7489: pa_debug.reset_curr_function;
7490: END IF;

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

7483: END IF;
7484:
7485: IF l_debug_mode = 'Y' THEN
7486: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7487: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7488: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7489: pa_debug.reset_curr_function;
7490: END IF;
7491: EXCEPTION

Line 7489: pa_debug.reset_curr_function;

7485: IF l_debug_mode = 'Y' THEN
7486: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7487: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7488: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7489: pa_debug.reset_curr_function;
7490: END IF;
7491: EXCEPTION
7492:
7493: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7515: IF P_PA_DEBUG_MODE = 'Y' THEN

7511: x_msg_count := l_msg_count;
7512: ELSE
7513: x_msg_count := l_msg_count;
7514: END IF;
7515: IF P_PA_DEBUG_MODE = 'Y' THEN
7516: pa_debug.reset_curr_function;
7517: END IF;
7518: RETURN;
7519:

Line 7516: pa_debug.reset_curr_function;

7512: ELSE
7513: x_msg_count := l_msg_count;
7514: END IF;
7515: IF P_PA_DEBUG_MODE = 'Y' THEN
7516: pa_debug.reset_curr_function;
7517: END IF;
7518: RETURN;
7519:
7520: WHEN others THEN

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

7532: ,p_procedure_name => 'IsRevVersionCreationAllowed'
7533: ,p_error_text => x_msg_data);
7534:
7535: IF l_debug_mode = 'Y' THEN
7536: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7537: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7538: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7539: pa_debug.reset_curr_function;
7540: END IF;

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

7533: ,p_error_text => x_msg_data);
7534:
7535: IF l_debug_mode = 'Y' THEN
7536: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7537: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7538: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7539: pa_debug.reset_curr_function;
7540: END IF;
7541: RAISE;

Line 7539: pa_debug.reset_curr_function;

7535: IF l_debug_mode = 'Y' THEN
7536: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7537: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7538: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7539: pa_debug.reset_curr_function;
7540: END IF;
7541: RAISE;
7542:
7543: END IsRevVersionCreationAllowed;

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

7574: BEGIN
7575:
7576: x_msg_count := 0;
7577: x_return_status := FND_API.G_RET_STS_SUCCESS;
7578: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7579:
7580: IF P_PA_DEBUG_MODE = 'Y' THEN
7581: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7582: p_debug_mode => l_debug_mode );

Line 7580: IF P_PA_DEBUG_MODE = 'Y' THEN

7576: x_msg_count := 0;
7577: x_return_status := FND_API.G_RET_STS_SUCCESS;
7578: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7579:
7580: IF P_PA_DEBUG_MODE = 'Y' THEN
7581: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7582: p_debug_mode => l_debug_mode );
7583: END IF;
7584: -- Check for business rules violations

Line 7581: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',

7577: x_return_status := FND_API.G_RET_STS_SUCCESS;
7578: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7579:
7580: IF P_PA_DEBUG_MODE = 'Y' THEN
7581: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7582: p_debug_mode => l_debug_mode );
7583: END IF;
7584: -- Check for business rules violations
7585:

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

7583: END IF;
7584: -- Check for business rules violations
7585:
7586: IF l_debug_mode = 'Y' THEN
7587: pa_debug.g_err_stage:= 'Validating input parameters';
7588: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7589: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7590: END IF;
7591:

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

7584: -- Check for business rules violations
7585:
7586: IF l_debug_mode = 'Y' THEN
7587: pa_debug.g_err_stage:= 'Validating input parameters';
7588: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7589: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7590: END IF;
7591:
7592: IF (p_lookup_type IS NULL) OR

Line 7596: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;

7592: IF (p_lookup_type IS NULL) OR
7593: (p_lookup_meaning IS NULL)
7594: THEN
7595: IF l_debug_mode = 'Y' THEN
7596: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7597: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7598: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7599: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7600: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

7593: (p_lookup_meaning IS NULL)
7594: THEN
7595: IF l_debug_mode = 'Y' THEN
7596: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7597: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7598: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7599: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7600: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7601: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 7599: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;

7595: IF l_debug_mode = 'Y' THEN
7596: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7597: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7598: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7599: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7600: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7601: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7602: END IF;
7603: PA_UTILS.ADD_MESSAGE

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

7596: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7597: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7598: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7599: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7600: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7601: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7602: END IF;
7603: PA_UTILS.ADD_MESSAGE
7604: (p_app_short_name => 'PA',

Line 7616: pa_debug.g_err_stage:= 'could not obtain lookup code';

7612: into x_lookup_code;
7613:
7614: IF lookups_cur%NOTFOUND THEN
7615: IF l_debug_mode = 'Y' THEN
7616: pa_debug.g_err_stage:= 'could not obtain lookup code';
7617: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7618: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7619: END IF;
7620: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

7613:
7614: IF lookups_cur%NOTFOUND THEN
7615: IF l_debug_mode = 'Y' THEN
7616: pa_debug.g_err_stage:= 'could not obtain lookup code';
7617: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7618: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7619: END IF;
7620: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7621: END IF;

Line 7626: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';

7622:
7623: close lookups_cur;
7624:
7625: IF l_debug_mode = 'Y' THEN
7626: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7627: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7628: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7629: pa_debug.reset_curr_function;
7630: END IF;

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

7623: close lookups_cur;
7624:
7625: IF l_debug_mode = 'Y' THEN
7626: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7627: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7628: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7629: pa_debug.reset_curr_function;
7630: END IF;
7631: EXCEPTION

Line 7629: pa_debug.reset_curr_function;

7625: IF l_debug_mode = 'Y' THEN
7626: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7627: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7628: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7629: pa_debug.reset_curr_function;
7630: END IF;
7631: EXCEPTION
7632:
7633: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7655: IF P_PA_DEBUG_MODE = 'Y' THEN

7651: x_msg_count := l_msg_count;
7652: ELSE
7653: x_msg_count := l_msg_count;
7654: END IF;
7655: IF P_PA_DEBUG_MODE = 'Y' THEN
7656: pa_debug.reset_curr_function;
7657: END IF;
7658: RETURN;
7659:

Line 7656: pa_debug.reset_curr_function;

7652: ELSE
7653: x_msg_count := l_msg_count;
7654: END IF;
7655: IF P_PA_DEBUG_MODE = 'Y' THEN
7656: pa_debug.reset_curr_function;
7657: END IF;
7658: RETURN;
7659:
7660: WHEN others THEN

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

7672: ,p_procedure_name => 'GET_LOOKUP_CODE'
7673: ,p_error_text => x_msg_data);
7674:
7675: IF l_debug_mode = 'Y' THEN
7676: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7677: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7678: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7679: pa_debug.reset_curr_function;
7680: END IF;

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

7673: ,p_error_text => x_msg_data);
7674:
7675: IF l_debug_mode = 'Y' THEN
7676: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7677: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7678: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7679: pa_debug.reset_curr_function;
7680: END IF;
7681: RAISE;

Line 7679: pa_debug.reset_curr_function;

7675: IF l_debug_mode = 'Y' THEN
7676: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7677: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7678: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7679: pa_debug.reset_curr_function;
7680: END IF;
7681: RAISE;
7682:
7683: END GET_LOOKUP_CODE;

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

7745: BEGIN
7746:
7747: x_msg_count := 0;
7748: x_return_status := FND_API.G_RET_STS_SUCCESS;
7749: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7750:
7751: IF P_PA_DEBUG_MODE = 'Y' THEN
7752: pa_debug.set_curr_function( p_function => 'get_version_type',
7753: p_debug_mode => l_debug_mode );

Line 7751: IF P_PA_DEBUG_MODE = 'Y' THEN

7747: x_msg_count := 0;
7748: x_return_status := FND_API.G_RET_STS_SUCCESS;
7749: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7750:
7751: IF P_PA_DEBUG_MODE = 'Y' THEN
7752: pa_debug.set_curr_function( p_function => 'get_version_type',
7753: p_debug_mode => l_debug_mode );
7754: END IF;
7755:

Line 7752: pa_debug.set_curr_function( p_function => 'get_version_type',

7748: x_return_status := FND_API.G_RET_STS_SUCCESS;
7749: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7750:
7751: IF P_PA_DEBUG_MODE = 'Y' THEN
7752: pa_debug.set_curr_function( p_function => 'get_version_type',
7753: p_debug_mode => l_debug_mode );
7754: END IF;
7755:
7756: BEGIN --Added for bug 4224464

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

7790:
7791: IF l_proj_fp_options_csr%NOTFOUND THEN
7792:
7793: IF l_debug_mode = 'Y' THEN
7794: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7795: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7796: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7797: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7798: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

7791: IF l_proj_fp_options_csr%NOTFOUND THEN
7792:
7793: IF l_debug_mode = 'Y' THEN
7794: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7795: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7796: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7797: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7798: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7799: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

7793: IF l_debug_mode = 'Y' THEN
7794: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7795: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7796: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7797: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7798: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7799: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7800: END IF;
7801:

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

7794: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7795: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7796: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7797: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7798: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7799: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7800: END IF;
7801:
7802: PA_UTILS.ADD_MESSAGE

Line 7827: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7823:
7824: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST) THEN
7825:
7826: IF l_debug_mode = 'Y' THEN
7827: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7828: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7829: END IF;
7830:
7831: PA_UTILS.ADD_MESSAGE

Line 7828: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7824: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST) THEN
7825:
7826: IF l_debug_mode = 'Y' THEN
7827: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7828: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7829: END IF;
7830:
7831: PA_UTILS.ADD_MESSAGE
7832: (p_app_short_name => 'PA',

Line 7856: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7852:
7853: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
7854:
7855: IF l_debug_mode = 'Y' THEN
7856: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7857: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7858: END IF;
7859:
7860: PA_UTILS.ADD_MESSAGE

Line 7857: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7853: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
7854:
7855: IF l_debug_mode = 'Y' THEN
7856: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7857: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7858: END IF;
7859:
7860: PA_UTILS.ADD_MESSAGE
7861: (p_app_short_name => 'PA',

Line 7884: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7880:
7881: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_ALL) THEN
7882:
7883: IF l_debug_mode = 'Y' THEN
7884: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7885: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);
7886: END IF;
7887:
7888: PA_UTILS.ADD_MESSAGE

Line 7885: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);

7881: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_ALL) THEN
7882:
7883: IF l_debug_mode = 'Y' THEN
7884: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7885: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);
7886: END IF;
7887:
7888: PA_UTILS.ADD_MESSAGE
7889: (p_app_short_name => 'PA',

Line 7909: pa_debug.g_err_stage := 'Version type passed is null' ;

7905:
7906: IF( px_version_type IS NULL) THEN
7907:
7908: IF l_debug_mode = 'Y' THEN
7909: pa_debug.g_err_stage := 'Version type passed is null' ;
7910: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);
7911: END IF;
7912:
7913: PA_UTILS.ADD_MESSAGE

Line 7910: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);

7906: IF( px_version_type IS NULL) THEN
7907:
7908: IF l_debug_mode = 'Y' THEN
7909: pa_debug.g_err_stage := 'Version type passed is null' ;
7910: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);
7911: END IF;
7912:
7913: PA_UTILS.ADD_MESSAGE
7914: (p_app_short_name => 'PA',

Line 7930: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7926: px_version_type:= px_version_type ;
7927: ELSE-- version type is neither COST nor REVENUE
7928:
7929: IF l_debug_mode = 'Y' THEN
7930: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7931: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7932: END IF;
7933:
7934: PA_UTILS.ADD_MESSAGE

Line 7931: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7927: ELSE-- version type is neither COST nor REVENUE
7928:
7929: IF l_debug_mode = 'Y' THEN
7930: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7931: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7932: END IF;
7933:
7934: PA_UTILS.ADD_MESSAGE
7935: (p_app_short_name => 'PA',

Line 7952: pa_debug.g_err_stage:= 'Leaving get version type';

7948:
7949: END IF;--Version type derivation ends
7950:
7951: IF l_debug_mode = 'Y' THEN
7952: pa_debug.g_err_stage:= 'Leaving get version type';
7953: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7954: l_debug_level3);
7955:
7956: pa_debug.reset_curr_function;

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

7949: END IF;--Version type derivation ends
7950:
7951: IF l_debug_mode = 'Y' THEN
7952: pa_debug.g_err_stage:= 'Leaving get version type';
7953: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7954: l_debug_level3);
7955:
7956: pa_debug.reset_curr_function;
7957: END IF;

Line 7956: pa_debug.reset_curr_function;

7952: pa_debug.g_err_stage:= 'Leaving get version type';
7953: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7954: l_debug_level3);
7955:
7956: pa_debug.reset_curr_function;
7957: END IF;
7958: EXCEPTION
7959:
7960: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7981: IF P_PA_DEBUG_MODE = 'Y' THEN

7977: x_msg_count := l_msg_count;
7978: ELSE
7979: x_msg_count := l_msg_count;
7980: END IF;
7981: IF P_PA_DEBUG_MODE = 'Y' THEN
7982: pa_debug.reset_curr_function;
7983: END IF;
7984: RETURN;
7985:

Line 7982: pa_debug.reset_curr_function;

7978: ELSE
7979: x_msg_count := l_msg_count;
7980: END IF;
7981: IF P_PA_DEBUG_MODE = 'Y' THEN
7982: pa_debug.reset_curr_function;
7983: END IF;
7984: RETURN;
7985:
7986: WHEN others THEN

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

7994: ,p_procedure_name => 'get_Version_type'
7995: ,p_error_text => x_msg_data);
7996:
7997: IF l_debug_mode = 'Y' THEN
7998: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7999: pa_debug.write(l_module_name,pa_debug.g_err_stage,
8000: l_debug_level5);
8001: pa_debug.reset_curr_function;
8002: END IF;

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

7995: ,p_error_text => x_msg_data);
7996:
7997: IF l_debug_mode = 'Y' THEN
7998: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7999: pa_debug.write(l_module_name,pa_debug.g_err_stage,
8000: l_debug_level5);
8001: pa_debug.reset_curr_function;
8002: END IF;
8003: RAISE;

Line 8001: pa_debug.reset_curr_function;

7997: IF l_debug_mode = 'Y' THEN
7998: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7999: pa_debug.write(l_module_name,pa_debug.g_err_stage,
8000: l_debug_level5);
8001: pa_debug.reset_curr_function;
8002: END IF;
8003: RAISE;
8004: END get_version_type;
8005:

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

8044: BEGIN
8045:
8046: x_msg_count := 0;
8047: x_return_status := FND_API.G_RET_STS_SUCCESS;
8048: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8049:
8050: IF P_PA_DEBUG_MODE = 'Y' THEN
8051: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8052: END IF;

Line 8050: IF P_PA_DEBUG_MODE = 'Y' THEN

8046: x_msg_count := 0;
8047: x_return_status := FND_API.G_RET_STS_SUCCESS;
8048: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8049:
8050: IF P_PA_DEBUG_MODE = 'Y' THEN
8051: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8052: END IF;
8053: -- Check for business rules violations
8054:

Line 8051: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );

8047: x_return_status := FND_API.G_RET_STS_SUCCESS;
8048: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8049:
8050: IF P_PA_DEBUG_MODE = 'Y' THEN
8051: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8052: END IF;
8053: -- Check for business rules violations
8054:
8055: IF l_debug_mode = 'Y' THEN

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

8052: END IF;
8053: -- Check for business rules violations
8054:
8055: IF l_debug_mode = 'Y' THEN
8056: pa_debug.g_err_stage:= 'Validating input parameters';
8057: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8058: END IF;
8059:
8060: IF (p_project_id IS NULL OR

Line 8057: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8053: -- Check for business rules violations
8054:
8055: IF l_debug_mode = 'Y' THEN
8056: pa_debug.g_err_stage:= 'Validating input parameters';
8057: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8058: END IF;
8059:
8060: IF (p_project_id IS NULL OR
8061: p_fin_plan_type_id IS NULL OR

Line 8066: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;

8062: p_version_type IS NULL OR
8063: p_version_number IS NULL ) THEN
8064:
8065: IF l_debug_mode = 'Y' THEN
8066: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;
8067: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8068: END IF;
8069:
8070: IF l_debug_mode = 'Y' THEN

Line 8067: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8063: p_version_number IS NULL ) THEN
8064:
8065: IF l_debug_mode = 'Y' THEN
8066: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;
8067: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8068: END IF;
8069:
8070: IF l_debug_mode = 'Y' THEN
8071: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;

Line 8071: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;

8067: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8068: END IF;
8069:
8070: IF l_debug_mode = 'Y' THEN
8071: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;
8072: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8073: END IF;
8074:
8075: IF l_debug_mode = 'Y' THEN

Line 8072: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8068: END IF;
8069:
8070: IF l_debug_mode = 'Y' THEN
8071: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;
8072: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8073: END IF;
8074:
8075: IF l_debug_mode = 'Y' THEN
8076: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;

Line 8076: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;

8072: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8073: END IF;
8074:
8075: IF l_debug_mode = 'Y' THEN
8076: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;
8077: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8078: END IF;
8079:
8080: IF l_debug_mode = 'Y' THEN

Line 8077: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8073: END IF;
8074:
8075: IF l_debug_mode = 'Y' THEN
8076: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;
8077: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8078: END IF;
8079:
8080: IF l_debug_mode = 'Y' THEN
8081: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;

Line 8081: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;

8077: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8078: END IF;
8079:
8080: IF l_debug_mode = 'Y' THEN
8081: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;
8082: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8083: END IF;
8084:
8085: PA_UTILS.ADD_MESSAGE

Line 8082: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8078: END IF;
8079:
8080: IF l_debug_mode = 'Y' THEN
8081: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;
8082: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8083: END IF;
8084:
8085: PA_UTILS.ADD_MESSAGE
8086: (p_app_short_name => 'PA',

Line 8097: pa_debug.g_err_stage:= 'Exiting get_version_id';

8093: FETCH l_budget_version_id_csr INTO x_budget_version_id,x_ci_id;
8094: CLOSE l_budget_version_id_csr;
8095:
8096: IF l_debug_mode = 'Y' THEN
8097: pa_debug.g_err_stage:= 'Exiting get_version_id';
8098: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8099: pa_debug.reset_curr_function;
8100: END IF;
8101:

Line 8098: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8094: CLOSE l_budget_version_id_csr;
8095:
8096: IF l_debug_mode = 'Y' THEN
8097: pa_debug.g_err_stage:= 'Exiting get_version_id';
8098: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8099: pa_debug.reset_curr_function;
8100: END IF;
8101:
8102: EXCEPTION

Line 8099: pa_debug.reset_curr_function;

8095:
8096: IF l_debug_mode = 'Y' THEN
8097: pa_debug.g_err_stage:= 'Exiting get_version_id';
8098: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8099: pa_debug.reset_curr_function;
8100: END IF;
8101:
8102: EXCEPTION
8103: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8121: IF P_PA_DEBUG_MODE = 'Y' THEN

8117: x_msg_count := l_msg_count;
8118: ELSE
8119: x_msg_count := l_msg_count;
8120: END IF;
8121: IF P_PA_DEBUG_MODE = 'Y' THEN
8122: pa_debug.reset_curr_function;
8123: END IF;
8124: RETURN;
8125:

Line 8122: pa_debug.reset_curr_function;

8118: ELSE
8119: x_msg_count := l_msg_count;
8120: END IF;
8121: IF P_PA_DEBUG_MODE = 'Y' THEN
8122: pa_debug.reset_curr_function;
8123: END IF;
8124: RETURN;
8125:
8126: WHEN others THEN

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

8134: ,p_procedure_name => 'get_version_id'
8135: ,p_error_text => x_msg_data);
8136:
8137: IF l_debug_mode = 'Y' THEN
8138: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8139: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8140: pa_debug.reset_curr_function;
8141: END IF;
8142: RAISE;

Line 8139: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);

8135: ,p_error_text => x_msg_data);
8136:
8137: IF l_debug_mode = 'Y' THEN
8138: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8139: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8140: pa_debug.reset_curr_function;
8141: END IF;
8142: RAISE;
8143: END get_version_id;

Line 8140: pa_debug.reset_curr_function;

8136:
8137: IF l_debug_mode = 'Y' THEN
8138: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8139: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8140: pa_debug.reset_curr_function;
8141: END IF;
8142: RAISE;
8143: END get_version_id;
8144:

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

8184:
8185: x_msg_count := 0;
8186: x_return_status := FND_API.G_RET_STS_SUCCESS;
8187: x_result:='T';
8188: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8189:
8190:
8191: IF l_debug_mode = 'Y' THEN
8192: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );

Line 8192: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );

8188: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8189:
8190:
8191: IF l_debug_mode = 'Y' THEN
8192: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8193: pa_debug.g_err_stage:= 'Validating input parameters';
8194: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8195: END IF;
8196:

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

8189:
8190:
8191: IF l_debug_mode = 'Y' THEN
8192: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8193: pa_debug.g_err_stage:= 'Validating input parameters';
8194: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8195: END IF;
8196:
8197: IF (p_budget_version_id IS NULL ) THEN

Line 8194: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8190:
8191: IF l_debug_mode = 'Y' THEN
8192: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8193: pa_debug.g_err_stage:= 'Validating input parameters';
8194: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8195: END IF;
8196:
8197: IF (p_budget_version_id IS NULL ) THEN
8198:

Line 8200: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;

8196:
8197: IF (p_budget_version_id IS NULL ) THEN
8198:
8199: IF l_debug_mode = 'Y' THEN
8200: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;
8201: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8202: END IF;
8203:
8204: PA_UTILS.ADD_MESSAGE

Line 8201: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8197: IF (p_budget_version_id IS NULL ) THEN
8198:
8199: IF l_debug_mode = 'Y' THEN
8200: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;
8201: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8202: END IF;
8203:
8204: PA_UTILS.ADD_MESSAGE
8205: (p_app_short_name => 'PA',

Line 8216: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;

8212: FETCH l_autobaseline_check_csr INTO l_autobaseline_check_rec;
8213: IF (l_autobaseline_check_csr%NOTFOUND) THEN
8214:
8215: IF l_debug_mode = 'Y' THEN
8216: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;
8217: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8218: END IF;
8219: CLOSE l_autobaseline_check_csr;
8220: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8217: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8213: IF (l_autobaseline_check_csr%NOTFOUND) THEN
8214:
8215: IF l_debug_mode = 'Y' THEN
8216: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;
8217: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8218: END IF;
8219: CLOSE l_autobaseline_check_csr;
8220: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8221:

Line 8230: pa_debug.g_err_stage := 'Auto base line error in budget model' ;

8226: IF nvl( l_autobaseline_check_rec.budget_type_code,'N')=
8227: PA_FP_CONSTANTS_PKG.G_BUDGET_TYPE_CODE_AR THEN
8228:
8229: IF l_debug_mode = 'Y' THEN
8230: pa_debug.g_err_stage := 'Auto base line error in budget model' ;
8231: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8232: END IF;
8233:
8234: x_result := 'F';

Line 8231: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8227: PA_FP_CONSTANTS_PKG.G_BUDGET_TYPE_CODE_AR THEN
8228:
8229: IF l_debug_mode = 'Y' THEN
8230: pa_debug.g_err_stage := 'Auto base line error in budget model' ;
8231: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8232: END IF;
8233:
8234: x_result := 'F';
8235:

Line 8241: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;

8237: l_autobaseline_check_rec.approved_rev_plan_type_flag = 'Y' AND
8238: l_autobaseline_check_rec.version_type = PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
8239:
8240: IF l_debug_mode = 'Y' THEN
8241: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;
8242: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8243: END IF;
8244:
8245: x_result := 'F';

Line 8242: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8238: l_autobaseline_check_rec.version_type = PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
8239:
8240: IF l_debug_mode = 'Y' THEN
8241: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;
8242: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8243: END IF;
8244:
8245: x_result := 'F';
8246:

Line 8252: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';

8248:
8249: END IF;
8250:
8251: IF l_debug_mode = 'Y' THEN
8252: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8253: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8254: pa_debug.reset_curr_function;
8255: END IF;
8256: EXCEPTION

Line 8253: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8249: END IF;
8250:
8251: IF l_debug_mode = 'Y' THEN
8252: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8253: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8254: pa_debug.reset_curr_function;
8255: END IF;
8256: EXCEPTION
8257: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8254: pa_debug.reset_curr_function;

8250:
8251: IF l_debug_mode = 'Y' THEN
8252: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8253: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8254: pa_debug.reset_curr_function;
8255: END IF;
8256: EXCEPTION
8257: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
8258:

Line 8275: IF P_PA_DEBUG_MODE = 'Y' THEN

8271: x_msg_count := l_msg_count;
8272: ELSE
8273: x_msg_count := l_msg_count;
8274: END IF;
8275: IF P_PA_DEBUG_MODE = 'Y' THEN
8276: pa_debug.reset_curr_function;
8277: END IF;
8278: RETURN;
8279:

Line 8276: pa_debug.reset_curr_function;

8272: ELSE
8273: x_msg_count := l_msg_count;
8274: END IF;
8275: IF P_PA_DEBUG_MODE = 'Y' THEN
8276: pa_debug.reset_curr_function;
8277: END IF;
8278: RETURN;
8279:
8280: WHEN others THEN

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

8288: ,p_procedure_name => 'perform_autobasline_checks'
8289: ,p_error_text => x_msg_data);
8290:
8291: IF l_debug_mode = 'Y' THEN
8292: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8293: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8294: pa_debug.reset_curr_function;
8295: END IF;
8296: RAISE;

Line 8293: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);

8289: ,p_error_text => x_msg_data);
8290:
8291: IF l_debug_mode = 'Y' THEN
8292: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8293: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8294: pa_debug.reset_curr_function;
8295: END IF;
8296: RAISE;
8297: END perform_autobasline_checks;

Line 8294: pa_debug.reset_curr_function;

8290:
8291: IF l_debug_mode = 'Y' THEN
8292: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8293: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8294: pa_debug.reset_curr_function;
8295: END IF;
8296: RAISE;
8297: END perform_autobasline_checks;
8298:

Line 8323: IF p_pa_debug_mode = 'Y' THEN

8319:
8320: BEGIN
8321: x_msg_count := 0;
8322: x_return_status := FND_API.G_RET_STS_SUCCESS;
8323: IF p_pa_debug_mode = 'Y' THEN
8324: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8325: p_debug_mode => p_pa_debug_mode );
8326: END IF;
8327: -- Check for NOT NULL parameters

Line 8324: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',

8320: BEGIN
8321: x_msg_count := 0;
8322: x_return_status := FND_API.G_RET_STS_SUCCESS;
8323: IF p_pa_debug_mode = 'Y' THEN
8324: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8325: p_debug_mode => p_pa_debug_mode );
8326: END IF;
8327: -- Check for NOT NULL parameters
8328: IF (p_budget_type_code IS NULL)

Line 8325: p_debug_mode => p_pa_debug_mode );

8321: x_msg_count := 0;
8322: x_return_status := FND_API.G_RET_STS_SUCCESS;
8323: IF p_pa_debug_mode = 'Y' THEN
8324: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8325: p_debug_mode => p_pa_debug_mode );
8326: END IF;
8327: -- Check for NOT NULL parameters
8328: IF (p_budget_type_code IS NULL)
8329: THEN

Line 8330: IF p_pa_debug_mode = 'Y' THEN

8326: END IF;
8327: -- Check for NOT NULL parameters
8328: IF (p_budget_type_code IS NULL)
8329: THEN
8330: IF p_pa_debug_mode = 'Y' THEN
8331: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8332: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8333: END IF;
8334: PA_UTILS.ADD_MESSAGE

Line 8331: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

8327: -- Check for NOT NULL parameters
8328: IF (p_budget_type_code IS NULL)
8329: THEN
8330: IF p_pa_debug_mode = 'Y' THEN
8331: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8332: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8333: END IF;
8334: PA_UTILS.ADD_MESSAGE
8335: (p_app_short_name => 'PA',

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

8328: IF (p_budget_type_code IS NULL)
8329: THEN
8330: IF p_pa_debug_mode = 'Y' THEN
8331: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8332: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8333: END IF;
8334: PA_UTILS.ADD_MESSAGE
8335: (p_app_short_name => 'PA',
8336: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 8351: IF p_pa_debug_mode = 'Y' THEN

8347: FROM pa_budget_types
8348: WHERE budget_type_code = p_budget_type_code;
8349: EXCEPTION
8350: WHEN NO_DATA_FOUND THEN
8351: IF p_pa_debug_mode = 'Y' THEN
8352: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8353: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8354: END IF;
8355:

Line 8352: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;

8348: WHERE budget_type_code = p_budget_type_code;
8349: EXCEPTION
8350: WHEN NO_DATA_FOUND THEN
8351: IF p_pa_debug_mode = 'Y' THEN
8352: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8353: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8354: END IF;
8355:
8356: PA_UTILS.ADD_MESSAGE(

Line 8353: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

8349: EXCEPTION
8350: WHEN NO_DATA_FOUND THEN
8351: IF p_pa_debug_mode = 'Y' THEN
8352: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8353: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8354: END IF;
8355:
8356: PA_UTILS.ADD_MESSAGE(
8357: p_app_short_name => 'PA'

Line 8363: IF p_pa_debug_mode = 'Y' THEN

8359:
8360: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8361: END;
8362:
8363: IF p_pa_debug_mode = 'Y' THEN
8364: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8365: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8366: pa_debug.reset_curr_function;
8367: END IF;

Line 8364: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';

8360: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8361: END;
8362:
8363: IF p_pa_debug_mode = 'Y' THEN
8364: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8365: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8366: pa_debug.reset_curr_function;
8367: END IF;
8368: EXCEPTION

Line 8365: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

8361: END;
8362:
8363: IF p_pa_debug_mode = 'Y' THEN
8364: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8365: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8366: pa_debug.reset_curr_function;
8367: END IF;
8368: EXCEPTION
8369:

Line 8366: pa_debug.reset_curr_function;

8362:
8363: IF p_pa_debug_mode = 'Y' THEN
8364: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8365: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8366: pa_debug.reset_curr_function;
8367: END IF;
8368: EXCEPTION
8369:
8370: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8387: IF P_PA_DEBUG_MODE = 'Y' THEN

8383: x_msg_count := l_msg_count;
8384: ELSE
8385: x_msg_count := l_msg_count;
8386: END IF;
8387: IF P_PA_DEBUG_MODE = 'Y' THEN
8388: pa_debug.reset_curr_function;
8389: END IF;
8390: RETURN;
8391: WHEN others THEN

Line 8388: pa_debug.reset_curr_function;

8384: ELSE
8385: x_msg_count := l_msg_count;
8386: END IF;
8387: IF P_PA_DEBUG_MODE = 'Y' THEN
8388: pa_debug.reset_curr_function;
8389: END IF;
8390: RETURN;
8391: WHEN others THEN
8392:

Line 8400: IF p_pa_debug_mode = 'Y' THEN

8396: FND_MSG_PUB.add_exc_msg
8397: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
8398: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8399: ,p_error_text => sqlerrm);
8400: IF p_pa_debug_mode = 'Y' THEN
8401: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8402: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8403: pa_debug.reset_curr_function;
8404: END IF;

Line 8401: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;

8397: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
8398: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8399: ,p_error_text => sqlerrm);
8400: IF p_pa_debug_mode = 'Y' THEN
8401: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8402: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8403: pa_debug.reset_curr_function;
8404: END IF;
8405: RAISE;

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

8398: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8399: ,p_error_text => sqlerrm);
8400: IF p_pa_debug_mode = 'Y' THEN
8401: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8402: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8403: pa_debug.reset_curr_function;
8404: END IF;
8405: RAISE;
8406: END get_version_type_for_bdgt_type;

Line 8403: pa_debug.reset_curr_function;

8399: ,p_error_text => sqlerrm);
8400: IF p_pa_debug_mode = 'Y' THEN
8401: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8402: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8403: pa_debug.reset_curr_function;
8404: END IF;
8405: RAISE;
8406: END get_version_type_for_bdgt_type;
8407:

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

8498: l_plan_processing_code pa_budget_versions.plan_processing_code%TYPE;
8499:
8500: BEGIN
8501:
8502: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
8503:
8504: FND_MSG_PUB.initialize;
8505:
8506: IF l_debug_mode = 'Y' THEN

Line 8507: pa_debug.Set_Curr_Function

8503:
8504: FND_MSG_PUB.initialize;
8505:
8506: IF l_debug_mode = 'Y' THEN
8507: pa_debug.Set_Curr_Function
8508: ( p_function => l_module_name,
8509: p_debug_mode => l_debug_mode);
8510: END IF;
8511: IF l_debug_mode = 'Y' THEN

Line 8512: pa_debug.g_err_stage:='Entering validate_editable_bv';

8508: ( p_function => l_module_name,
8509: p_debug_mode => l_debug_mode);
8510: END IF;
8511: IF l_debug_mode = 'Y' THEN
8512: pa_debug.g_err_stage:='Entering validate_editable_bv';
8513: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8514: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8515: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8516: END IF;

Line 8513: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8509: p_debug_mode => l_debug_mode);
8510: END IF;
8511: IF l_debug_mode = 'Y' THEN
8512: pa_debug.g_err_stage:='Entering validate_editable_bv';
8513: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8514: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8515: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8516: END IF;
8517:

Line 8514: pa_debug.g_err_stage:='p_context passed: ' || p_context;

8510: END IF;
8511: IF l_debug_mode = 'Y' THEN
8512: pa_debug.g_err_stage:='Entering validate_editable_bv';
8513: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8514: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8515: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8516: END IF;
8517:
8518: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8515: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8511: IF l_debug_mode = 'Y' THEN
8512: pa_debug.g_err_stage:='Entering validate_editable_bv';
8513: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8514: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8515: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8516: END IF;
8517:
8518: x_return_status := FND_API.G_RET_STS_SUCCESS;
8519:

Line 8615: pa_debug.g_err_stage:='Web ADI: Submitted Error';

8611: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8612: END IF;
8613: ELSE -- p_context = 'WEBADI'
8614: IF l_debug_mode = 'Y' THEN
8615: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8616: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8617: pa_debug.g_err_stage:='Populating Error Flag - Code';
8618: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8619: END IF;

Line 8616: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8612: END IF;
8613: ELSE -- p_context = 'WEBADI'
8614: IF l_debug_mode = 'Y' THEN
8615: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8616: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8617: pa_debug.g_err_stage:='Populating Error Flag - Code';
8618: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8619: END IF;
8620:

Line 8617: pa_debug.g_err_stage:='Populating Error Flag - Code';

8613: ELSE -- p_context = 'WEBADI'
8614: IF l_debug_mode = 'Y' THEN
8615: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8616: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8617: pa_debug.g_err_stage:='Populating Error Flag - Code';
8618: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8619: END IF;
8620:
8621: x_err_code := 'PA_FP_WA_BV_SUBMITTED_ERR';

Line 8618: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8614: IF l_debug_mode = 'Y' THEN
8615: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8616: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8617: pa_debug.g_err_stage:='Populating Error Flag - Code';
8618: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8619: END IF;
8620:
8621: x_err_code := 'PA_FP_WA_BV_SUBMITTED_ERR';
8622:

Line 8688: pa_debug.g_err_stage:='Web ADI: Process Locked Error';

8684: l_plan_processing_code = 'XLUE' THEN
8685: -- the version is locked for processing or the version
8686: -- has some processing errors.
8687: IF l_debug_mode = 'Y' THEN
8688: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8689: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8690: pa_debug.g_err_stage:='Populating Error Flag - Code';
8691: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8692: END IF;

Line 8689: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8685: -- the version is locked for processing or the version
8686: -- has some processing errors.
8687: IF l_debug_mode = 'Y' THEN
8688: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8689: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8690: pa_debug.g_err_stage:='Populating Error Flag - Code';
8691: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8692: END IF;
8693:

Line 8690: pa_debug.g_err_stage:='Populating Error Flag - Code';

8686: -- has some processing errors.
8687: IF l_debug_mode = 'Y' THEN
8688: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8689: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8690: pa_debug.g_err_stage:='Populating Error Flag - Code';
8691: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8692: END IF;
8693:
8694: x_err_code := 'PA_FP_WA_BV_LOCKED_PRC_ERR';

Line 8691: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8687: IF l_debug_mode = 'Y' THEN
8688: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8689: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8690: pa_debug.g_err_stage:='Populating Error Flag - Code';
8691: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8692: END IF;
8693:
8694: x_err_code := 'PA_FP_WA_BV_LOCKED_PRC_ERR';
8695:

Line 8789: pa_debug.g_err_stage:='Web ADI: BV Locked Error';

8785: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8786: END IF;
8787: ELSE -- p_context = 'WEBADI'
8788: IF l_debug_mode = 'Y' THEN
8789: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8790: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8791: pa_debug.g_err_stage:='Populating Error Flag - Code';
8792: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8793: END IF;

Line 8790: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8786: END IF;
8787: ELSE -- p_context = 'WEBADI'
8788: IF l_debug_mode = 'Y' THEN
8789: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8790: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8791: pa_debug.g_err_stage:='Populating Error Flag - Code';
8792: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8793: END IF;
8794:

Line 8791: pa_debug.g_err_stage:='Populating Error Flag - Code';

8787: ELSE -- p_context = 'WEBADI'
8788: IF l_debug_mode = 'Y' THEN
8789: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8790: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8791: pa_debug.g_err_stage:='Populating Error Flag - Code';
8792: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8793: END IF;
8794:
8795: x_err_code := 'PA_FP_WA_BV_LOCKED_ERR';

Line 8792: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8788: IF l_debug_mode = 'Y' THEN
8789: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8790: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8791: pa_debug.g_err_stage:='Populating Error Flag - Code';
8792: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8793: END IF;
8794:
8795: x_err_code := 'PA_FP_WA_BV_LOCKED_ERR';
8796:

Line 8804: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';

8800: end if;
8801:
8802: -- Bug 3986129: FP.M Web ADI Dev. Added additional check for 'allow_edit_after_baseline flag
8803: IF l_debug_mode = 'Y' THEN
8804: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';
8805: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8806: END IF;
8807:
8808: BEGIN

Line 8805: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8801:
8802: -- Bug 3986129: FP.M Web ADI Dev. Added additional check for 'allow_edit_after_baseline flag
8803: IF l_debug_mode = 'Y' THEN
8804: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';
8805: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8806: END IF;
8807:
8808: BEGIN
8809: SELECT Nvl(fpt.edit_after_baseline_flag, 'N'),

Line 8825: pa_debug.g_err_stage:='No data found for edit after baseline flag';

8821:
8822: EXCEPTION
8823: WHEN NO_DATA_FOUND THEN
8824: IF l_debug_mode = 'Y' THEN
8825: pa_debug.g_err_stage:='No data found for edit after baseline flag';
8826: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8827: END IF;
8828: RAISE;
8829: WHEN OTHERS THEN

Line 8826: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8822: EXCEPTION
8823: WHEN NO_DATA_FOUND THEN
8824: IF l_debug_mode = 'Y' THEN
8825: pa_debug.g_err_stage:='No data found for edit after baseline flag';
8826: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8827: END IF;
8828: RAISE;
8829: WHEN OTHERS THEN
8830: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 8835: IF P_PA_DEBUG_MODE = 'Y' THEN

8831: x_msg_count := 1;
8832: x_msg_data := SQLERRM;
8833: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8834: p_procedure_name => 'validate_editable_bv');
8835: IF P_PA_DEBUG_MODE = 'Y' THEN
8836: pa_debug.reset_err_stack;
8837: END IF;
8838: END;
8839:

Line 8836: pa_debug.reset_err_stack;

8832: x_msg_data := SQLERRM;
8833: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8834: p_procedure_name => 'validate_editable_bv');
8835: IF P_PA_DEBUG_MODE = 'Y' THEN
8836: pa_debug.reset_err_stack;
8837: END IF;
8838: END;
8839:
8840: IF l_edit_after_baseline_flag = 'N' THEN

Line 8885: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';

8881:
8882: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8883: ELSE -- p_context = 'WEBADI'
8884: IF l_debug_mode = 'Y' THEN
8885: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8886: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8887: pa_debug.g_err_stage:='Populating Error Flag - Code';
8888: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8889: END IF;

Line 8886: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8882: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8883: ELSE -- p_context = 'WEBADI'
8884: IF l_debug_mode = 'Y' THEN
8885: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8886: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8887: pa_debug.g_err_stage:='Populating Error Flag - Code';
8888: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8889: END IF;
8890: -- Use new messages for the context of WEBADI

Line 8887: pa_debug.g_err_stage:='Populating Error Flag - Code';

8883: ELSE -- p_context = 'WEBADI'
8884: IF l_debug_mode = 'Y' THEN
8885: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8886: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8887: pa_debug.g_err_stage:='Populating Error Flag - Code';
8888: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8889: END IF;
8890: -- Use new messages for the context of WEBADI
8891: x_err_code := 'PA_FP_WA_BV_BL_NON_EDIT';

Line 8888: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8884: IF l_debug_mode = 'Y' THEN
8885: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8886: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8887: pa_debug.g_err_stage:='Populating Error Flag - Code';
8888: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8889: END IF;
8890: -- Use new messages for the context of WEBADI
8891: x_err_code := 'PA_FP_WA_BV_BL_NON_EDIT';
8892:

Line 8899: pa_debug.g_err_stage:='Leaving validate_editable_bv';

8895: END IF;
8896: END IF; -- edit_after_baseline
8897:
8898: IF l_debug_mode = 'Y' THEN
8899: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8900: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8901: pa_debug.Reset_Curr_Function;
8902: END IF;
8903:

Line 8900: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8896: END IF; -- edit_after_baseline
8897:
8898: IF l_debug_mode = 'Y' THEN
8899: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8900: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8901: pa_debug.Reset_Curr_Function;
8902: END IF;
8903:
8904: EXCEPTION

Line 8901: pa_debug.Reset_Curr_Function;

8897:
8898: IF l_debug_mode = 'Y' THEN
8899: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8900: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8901: pa_debug.Reset_Curr_Function;
8902: END IF;
8903:
8904: EXCEPTION
8905: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN

Line 8909: pa_debug.Reset_Curr_Function;

8905: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN
8906: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8907:
8908: IF l_debug_mode = 'Y' THEN
8909: pa_debug.Reset_Curr_Function;
8910: END IF;
8911: RETURN;
8912:
8913: WHEN NO_DATA_FOUND THEN

Line 8919: IF P_PA_DEBUG_MODE = 'Y' THEN

8915: x_msg_count := 1;
8916: x_msg_data := SQLERRM;
8917: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8918: p_procedure_name => 'validate_editable_bv');
8919: IF P_PA_DEBUG_MODE = 'Y' THEN
8920: pa_debug.reset_err_stack;
8921: END IF;
8922: raise FND_API.G_EXC_UNEXPECTED_ERROR;
8923: WHEN OTHERS THEN

Line 8920: pa_debug.reset_err_stack;

8916: x_msg_data := SQLERRM;
8917: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8918: p_procedure_name => 'validate_editable_bv');
8919: IF P_PA_DEBUG_MODE = 'Y' THEN
8920: pa_debug.reset_err_stack;
8921: END IF;
8922: raise FND_API.G_EXC_UNEXPECTED_ERROR;
8923: WHEN OTHERS THEN
8924: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 8929: IF P_PA_DEBUG_MODE = 'Y' THEN

8925: x_msg_count := 1;
8926: x_msg_data := SQLERRM;
8927: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8928: p_procedure_name => 'validate_editable_bv');
8929: IF P_PA_DEBUG_MODE = 'Y' THEN
8930: pa_debug.reset_err_stack;
8931: END IF;
8932: RAISE;
8933: END validate_editable_bv;

Line 8930: pa_debug.reset_err_stack;

8926: x_msg_data := SQLERRM;
8927: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8928: p_procedure_name => 'validate_editable_bv');
8929: IF P_PA_DEBUG_MODE = 'Y' THEN
8930: pa_debug.reset_err_stack;
8931: END IF;
8932: RAISE;
8933: END validate_editable_bv;
8934:

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

9064: BEGIN
9065:
9066: x_msg_count := 0;
9067: x_return_status := FND_API.G_RET_STS_SUCCESS;
9068: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9069: IF l_debug_mode = 'Y' THEN
9070: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9071: p_debug_mode => l_debug_mode );
9072:

Line 9070: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',

9066: x_msg_count := 0;
9067: x_return_status := FND_API.G_RET_STS_SUCCESS;
9068: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9069: IF l_debug_mode = 'Y' THEN
9070: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9071: p_debug_mode => l_debug_mode );
9072:
9073: -- Check for business rules violations
9074: pa_debug.g_err_stage:= 'Validating input parameters';

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

9070: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9071: p_debug_mode => l_debug_mode );
9072:
9073: -- Check for business rules violations
9074: pa_debug.g_err_stage:= 'Validating input parameters';
9075: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9076: l_debug_level3);
9077: END IF;
9078:

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

9071: p_debug_mode => l_debug_mode );
9072:
9073: -- Check for business rules violations
9074: pa_debug.g_err_stage:= 'Validating input parameters';
9075: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9076: l_debug_level3);
9077: END IF;
9078:
9079: IF (p_task_id IS NULL)

Line 9082: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;

9078:
9079: IF (p_task_id IS NULL)
9080: THEN
9081: IF l_debug_mode = 'Y' THEN
9082: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9083: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9084: l_debug_level5);
9085: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9086: pa_debug.write(l_module_name,pa_debug.g_err_stage,

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

9079: IF (p_task_id IS NULL)
9080: THEN
9081: IF l_debug_mode = 'Y' THEN
9082: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9083: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9084: l_debug_level5);
9085: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9087: l_debug_level5);

Line 9085: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;

9081: IF l_debug_mode = 'Y' THEN
9082: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9083: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9084: l_debug_level5);
9085: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9087: l_debug_level5);
9088: END IF;
9089: PA_UTILS.ADD_MESSAGE

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

9082: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9083: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9084: l_debug_level5);
9085: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9086: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9087: l_debug_level5);
9088: END IF;
9089: PA_UTILS.ADD_MESSAGE
9090: (p_app_short_name => 'PA',

Line 9097: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;

9093:
9094: END IF;
9095:
9096: IF l_debug_mode = 'Y' THEN
9097: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9099: l_debug_level5);
9100: END IF;
9101:

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

9094: END IF;
9095:
9096: IF l_debug_mode = 'Y' THEN
9097: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9098: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9099: l_debug_level5);
9100: END IF;
9101:
9102:

Line 9139: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;

9135:
9136:
9137:
9138: IF l_debug_mode = 'Y' THEN
9139: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;
9140: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9141: l_debug_level5);
9142: END IF;
9143:

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

9136:
9137:
9138: IF l_debug_mode = 'Y' THEN
9139: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;
9140: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9141: l_debug_level5);
9142: END IF;
9143:
9144: IF l_validation_success = 'N' THEN

Line 9152: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';

9148: RAISE FND_API.G_Exc_Error;
9149: END IF;
9150:
9151: IF l_debug_mode = 'Y' THEN
9152: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9153: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9154: l_debug_level3);
9155: pa_debug.reset_curr_function;
9156: END IF;

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

9149: END IF;
9150:
9151: IF l_debug_mode = 'Y' THEN
9152: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9153: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9154: l_debug_level3);
9155: pa_debug.reset_curr_function;
9156: END IF;
9157: EXCEPTION

Line 9155: pa_debug.reset_curr_function;

9151: IF l_debug_mode = 'Y' THEN
9152: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9153: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9154: l_debug_level3);
9155: pa_debug.reset_curr_function;
9156: END IF;
9157: EXCEPTION
9158:
9159: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9177: IF P_PA_DEBUG_MODE = 'Y' THEN

9173: x_msg_count := l_msg_count;
9174: ELSE
9175: x_msg_count := l_msg_count;
9176: END IF;
9177: IF P_PA_DEBUG_MODE = 'Y' THEN
9178: pa_debug.reset_curr_function;
9179: END IF;
9180: RETURN;
9181:

Line 9178: pa_debug.reset_curr_function;

9174: ELSE
9175: x_msg_count := l_msg_count;
9176: END IF;
9177: IF P_PA_DEBUG_MODE = 'Y' THEN
9178: pa_debug.reset_curr_function;
9179: END IF;
9180: RETURN;
9181:
9182: WHEN FND_API.G_Exc_Error THEN

Line 9200: IF P_PA_DEBUG_MODE = 'Y' THEN

9196: x_msg_count := l_msg_count;
9197: ELSE
9198: x_msg_count := l_msg_count;
9199: END IF;
9200: IF P_PA_DEBUG_MODE = 'Y' THEN
9201: pa_debug.reset_curr_function;
9202: END IF;
9203: RETURN;
9204:

Line 9201: pa_debug.reset_curr_function;

9197: ELSE
9198: x_msg_count := l_msg_count;
9199: END IF;
9200: IF P_PA_DEBUG_MODE = 'Y' THEN
9201: pa_debug.reset_curr_function;
9202: END IF;
9203: RETURN;
9204:
9205: WHEN others THEN

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

9213: ,p_procedure_name => 'check_delete_task_ok'
9214: ,p_error_text => x_msg_data);
9215:
9216: IF l_debug_mode = 'Y' THEN
9217: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9218: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9219: l_debug_level5);
9220: pa_debug.reset_curr_function;
9221: END IF;

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

9214: ,p_error_text => x_msg_data);
9215:
9216: IF l_debug_mode = 'Y' THEN
9217: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9218: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9219: l_debug_level5);
9220: pa_debug.reset_curr_function;
9221: END IF;
9222: RAISE;

Line 9220: pa_debug.reset_curr_function;

9216: IF l_debug_mode = 'Y' THEN
9217: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9218: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9219: l_debug_level5);
9220: pa_debug.reset_curr_function;
9221: END IF;
9222: RAISE;
9223: END check_delete_task_ok;
9224:

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

9256:
9257: BEGIN
9258: x_msg_count := 0;
9259: x_return_status := FND_API.G_RET_STS_SUCCESS;
9260: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9261: IF l_debug_mode = 'Y' THEN
9262: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9263: p_debug_mode => l_debug_mode );
9264: -- check for business rules violations

Line 9262: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',

9258: x_msg_count := 0;
9259: x_return_status := FND_API.G_RET_STS_SUCCESS;
9260: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9261: IF l_debug_mode = 'Y' THEN
9262: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9263: p_debug_mode => l_debug_mode );
9264: -- check for business rules violations
9265:
9266: pa_debug.g_err_stage:= 'Validating input parameters';

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

9262: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9263: p_debug_mode => l_debug_mode );
9264: -- check for business rules violations
9265:
9266: pa_debug.g_err_stage:= 'Validating input parameters';
9267: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9268: END IF;
9269:
9270: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN

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

9263: p_debug_mode => l_debug_mode );
9264: -- check for business rules violations
9265:
9266: pa_debug.g_err_stage:= 'Validating input parameters';
9267: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9268: END IF;
9269:
9270: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN
9271: IF l_debug_mode = 'Y' THEN

Line 9272: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9268: END IF;
9269:
9270: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN
9271: IF l_debug_mode = 'Y' THEN
9272: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9273: END IF;
9274: PA_UTILS.ADD_MESSAGE
9275: (p_app_short_name => 'PA',
9276: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 9283: IF P_PA_DEBUG_MODE = 'Y' THEN

9279: -- end of business rules violations check
9280:
9281: IF (p_old_parent_task_id = p_new_parent_task_id) THEN
9282: -- not really a re-parenting procedure, so just return successfully
9283: IF P_PA_DEBUG_MODE = 'Y' THEN
9284: pa_debug.reset_curr_function;
9285: END IF;
9286: return;
9287: END IF; -- old parent = new parent

Line 9284: pa_debug.reset_curr_function;

9280:
9281: IF (p_old_parent_task_id = p_new_parent_task_id) THEN
9282: -- not really a re-parenting procedure, so just return successfully
9283: IF P_PA_DEBUG_MODE = 'Y' THEN
9284: pa_debug.reset_curr_function;
9285: END IF;
9286: return;
9287: END IF; -- old parent = new parent
9288:

Line 9323: IF P_PA_DEBUG_MODE = 'Y' THEN

9319: ELSE
9320: x_msg_count := l_msg_count;
9321: END IF;
9322: */
9323: IF P_PA_DEBUG_MODE = 'Y' THEN
9324: pa_debug.reset_curr_function;
9325: END IF;
9326: return;
9327: END IF; -- validation: affected task

Line 9324: pa_debug.reset_curr_function;

9320: x_msg_count := l_msg_count;
9321: END IF;
9322: */
9323: IF P_PA_DEBUG_MODE = 'Y' THEN
9324: pa_debug.reset_curr_function;
9325: END IF;
9326: return;
9327: END IF; -- validation: affected task
9328:

Line 9382: IF P_PA_DEBUG_MODE = 'Y' THEN

9378: ELSE
9379: x_msg_count := l_msg_count;
9380: END IF;
9381: close task_ra_csr;
9382: IF P_PA_DEBUG_MODE = 'Y' THEN
9383: pa_debug.reset_curr_function;
9384: END IF;
9385: return;
9386: END IF;

Line 9383: pa_debug.reset_curr_function;

9379: x_msg_count := l_msg_count;
9380: END IF;
9381: close task_ra_csr;
9382: IF P_PA_DEBUG_MODE = 'Y' THEN
9383: pa_debug.reset_curr_function;
9384: END IF;
9385: return;
9386: END IF;
9387: close task_ra_csr;

Line 9440: IF P_PA_DEBUG_MODE = 'Y' THEN

9436: x_msg_count := l_msg_count;
9437: ELSE
9438: x_msg_count := l_msg_count;
9439: END IF;
9440: IF P_PA_DEBUG_MODE = 'Y' THEN
9441: pa_debug.reset_curr_function;
9442: END IF;
9443: return;
9444: END IF;

Line 9441: pa_debug.reset_curr_function;

9437: ELSE
9438: x_msg_count := l_msg_count;
9439: END IF;
9440: IF P_PA_DEBUG_MODE = 'Y' THEN
9441: pa_debug.reset_curr_function;
9442: END IF;
9443: return;
9444: END IF;
9445: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 9445: IF P_PA_DEBUG_MODE = 'Y' THEN

9441: pa_debug.reset_curr_function;
9442: END IF;
9443: return;
9444: END IF;
9445: IF P_PA_DEBUG_MODE = 'Y' THEN
9446: pa_debug.reset_curr_function;
9447: END IF;
9448: EXCEPTION
9449: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9446: pa_debug.reset_curr_function;

9442: END IF;
9443: return;
9444: END IF;
9445: IF P_PA_DEBUG_MODE = 'Y' THEN
9446: pa_debug.reset_curr_function;
9447: END IF;
9448: EXCEPTION
9449: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
9450: x_return_status := FND_API.G_RET_STS_ERROR;

Line 9465: IF P_PA_DEBUG_MODE = 'Y' THEN

9461: x_msg_count := l_msg_count;
9462: ELSE
9463: x_msg_count := l_msg_count;
9464: END IF;
9465: IF P_PA_DEBUG_MODE = 'Y' THEN
9466: pa_debug.reset_curr_function;
9467: END IF;
9468: RETURN;
9469: WHEN others THEN

Line 9466: pa_debug.reset_curr_function;

9462: ELSE
9463: x_msg_count := l_msg_count;
9464: END IF;
9465: IF P_PA_DEBUG_MODE = 'Y' THEN
9466: pa_debug.reset_curr_function;
9467: END IF;
9468: RETURN;
9469: WHEN others THEN
9470: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

9474: ( p_pkg_name => 'pa_fin_plan_utils'
9475: ,p_procedure_name => 'check_reparent_task_ok'
9476: ,p_error_text => x_msg_data);
9477: IF l_debug_mode = 'Y' THEN
9478: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9479: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9480: pa_debug.reset_curr_function;
9481: END IF;
9482: RAISE;

Line 9479: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9475: ,p_procedure_name => 'check_reparent_task_ok'
9476: ,p_error_text => x_msg_data);
9477: IF l_debug_mode = 'Y' THEN
9478: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9479: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9480: pa_debug.reset_curr_function;
9481: END IF;
9482: RAISE;
9483: END check_reparent_task_ok;

Line 9480: pa_debug.reset_curr_function;

9476: ,p_error_text => x_msg_data);
9477: IF l_debug_mode = 'Y' THEN
9478: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9479: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9480: pa_debug.reset_curr_function;
9481: END IF;
9482: RAISE;
9483: END check_reparent_task_ok;
9484:

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

9803:
9804: BEGIN
9805:
9806: FND_MSG_PUB.initialize;
9807: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9808: l_debug_mode := NVL(l_debug_mode, 'Y');
9809: IF P_PA_DEBUG_MODE = 'Y' THEN
9810: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9811: p_debug_mode => l_debug_mode );

Line 9809: IF P_PA_DEBUG_MODE = 'Y' THEN

9805:
9806: FND_MSG_PUB.initialize;
9807: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9808: l_debug_mode := NVL(l_debug_mode, 'Y');
9809: IF P_PA_DEBUG_MODE = 'Y' THEN
9810: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9811: p_debug_mode => l_debug_mode );
9812: END IF;
9813: x_msg_count := 0;

Line 9810: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',

9806: FND_MSG_PUB.initialize;
9807: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9808: l_debug_mode := NVL(l_debug_mode, 'Y');
9809: IF P_PA_DEBUG_MODE = 'Y' THEN
9810: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9811: p_debug_mode => l_debug_mode );
9812: END IF;
9813: x_msg_count := 0;
9814: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 9818: IF P_PA_DEBUG_MODE = 'Y' THEN

9814: x_return_status := FND_API.G_RET_STS_SUCCESS;
9815: -- Check for business rules violations
9816:
9817:
9818: IF P_PA_DEBUG_MODE = 'Y' THEN
9819: pa_debug.g_err_stage:='Validating input parameters';
9820: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9821: END IF;
9822:

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

9815: -- Check for business rules violations
9816:
9817:
9818: IF P_PA_DEBUG_MODE = 'Y' THEN
9819: pa_debug.g_err_stage:='Validating input parameters';
9820: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9821: END IF;
9822:
9823: -- Check if project id, fp option id and Version type are null

Line 9820: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9816:
9817:
9818: IF P_PA_DEBUG_MODE = 'Y' THEN
9819: pa_debug.g_err_stage:='Validating input parameters';
9820: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9821: END IF;
9822:
9823: -- Check if project id, fp option id and Version type are null
9824:

Line 9831: IF P_PA_DEBUG_MODE = 'Y' THEN

9827: (p_version_type IS NULL)
9828: THEN
9829:
9830:
9831: IF P_PA_DEBUG_MODE = 'Y' THEN
9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

Line 9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;

9828: THEN
9829:
9830:
9831: IF P_PA_DEBUG_MODE = 'Y' THEN
9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

Line 9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9829:
9830:
9831: IF P_PA_DEBUG_MODE = 'Y' THEN
9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9837:

Line 9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

9831: IF P_PA_DEBUG_MODE = 'Y' THEN
9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9837:
9838: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9839: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

Line 9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9832: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9837:
9838: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9839: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9840: END IF;

Line 9838: pa_debug.g_err_stage:='Version_type = '||p_version_type;

9834:
9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9837:
9838: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9839: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9840: END IF;
9841:
9842:

Line 9839: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9835: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9836: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9837:
9838: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9839: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9840: END IF;
9841:
9842:
9843: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 9847: IF P_PA_DEBUG_MODE = 'Y' THEN

9843: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9844: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
9845:
9846:
9847: IF P_PA_DEBUG_MODE = 'Y' THEN
9848: pa_debug.g_err_stage:='Invalid Arguments Passed';
9849: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9850: END IF;
9851: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

9844: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
9845:
9846:
9847: IF P_PA_DEBUG_MODE = 'Y' THEN
9848: pa_debug.g_err_stage:='Invalid Arguments Passed';
9849: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9850: END IF;
9851: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9852:

Line 9849: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9845:
9846:
9847: IF P_PA_DEBUG_MODE = 'Y' THEN
9848: pa_debug.g_err_stage:='Invalid Arguments Passed';
9849: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9850: END IF;
9851: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9852:
9853: END IF;

Line 9863: IF P_PA_DEBUG_MODE = 'Y' THEN

9859: where fin_plan_type_id = p_fin_plan_type_id;
9860: EXCEPTION
9861: WHEN OTHERS THEN
9862:
9863: IF P_PA_DEBUG_MODE = 'Y' THEN
9864: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9865: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9866: END IF;
9867: RAISE;

Line 9864: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';

9860: EXCEPTION
9861: WHEN OTHERS THEN
9862:
9863: IF P_PA_DEBUG_MODE = 'Y' THEN
9864: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9865: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9866: END IF;
9867: RAISE;
9868: END;

Line 9865: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9861: WHEN OTHERS THEN
9862:
9863: IF P_PA_DEBUG_MODE = 'Y' THEN
9864: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9865: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9866: END IF;
9867: RAISE;
9868: END;
9869:

Line 9885: IF P_PA_DEBUG_MODE = 'Y' THEN

9881: and budget_status_code = 'B' );
9882: EXCEPTION
9883: WHEN NO_DATA_FOUND THEN
9884:
9885: IF P_PA_DEBUG_MODE = 'Y' THEN
9886: pa_debug.g_err_stage:='No base versions exist';
9887: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9888: END IF;
9889:

Line 9886: pa_debug.g_err_stage:='No base versions exist';

9882: EXCEPTION
9883: WHEN NO_DATA_FOUND THEN
9884:
9885: IF P_PA_DEBUG_MODE = 'Y' THEN
9886: pa_debug.g_err_stage:='No base versions exist';
9887: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9888: END IF;
9889:
9890: x_editable_flag := 'Y';

Line 9887: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9883: WHEN NO_DATA_FOUND THEN
9884:
9885: IF P_PA_DEBUG_MODE = 'Y' THEN
9886: pa_debug.g_err_stage:='No base versions exist';
9887: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9888: END IF;
9889:
9890: x_editable_flag := 'Y';
9891:

Line 9897: IF P_PA_DEBUG_MODE = 'Y' THEN

9893: ELSE
9894: x_editable_flag := 'Y';
9895: END IF;
9896:
9897: IF P_PA_DEBUG_MODE = 'Y' THEN
9898: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9899: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9900:
9901: --Reset the error stack

Line 9898: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';

9894: x_editable_flag := 'Y';
9895: END IF;
9896:
9897: IF P_PA_DEBUG_MODE = 'Y' THEN
9898: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9899: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9900:
9901: --Reset the error stack
9902:

Line 9899: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9895: END IF;
9896:
9897: IF P_PA_DEBUG_MODE = 'Y' THEN
9898: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9899: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9900:
9901: --Reset the error stack
9902:
9903: pa_debug.reset_curr_function;

Line 9903: pa_debug.reset_curr_function;

9899: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9900:
9901: --Reset the error stack
9902:
9903: pa_debug.reset_curr_function;
9904: END IF;
9905: EXCEPTION
9906:
9907: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

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

9919: ELSE
9920: x_msg_count := l_msg_count;
9921: END IF;
9922: x_return_status := FND_API.G_RET_STS_ERROR;
9923: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9924: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9925: IF P_PA_DEBUG_MODE = 'Y' THEN
9926: pa_debug.reset_curr_function;
9927: END IF;

Line 9924: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9920: x_msg_count := l_msg_count;
9921: END IF;
9922: x_return_status := FND_API.G_RET_STS_ERROR;
9923: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9924: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9925: IF P_PA_DEBUG_MODE = 'Y' THEN
9926: pa_debug.reset_curr_function;
9927: END IF;
9928: RETURN;

Line 9925: IF P_PA_DEBUG_MODE = 'Y' THEN

9921: END IF;
9922: x_return_status := FND_API.G_RET_STS_ERROR;
9923: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9924: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9925: IF P_PA_DEBUG_MODE = 'Y' THEN
9926: pa_debug.reset_curr_function;
9927: END IF;
9928: RETURN;
9929:

Line 9926: pa_debug.reset_curr_function;

9922: x_return_status := FND_API.G_RET_STS_ERROR;
9923: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9924: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9925: IF P_PA_DEBUG_MODE = 'Y' THEN
9926: pa_debug.reset_curr_function;
9927: END IF;
9928: RETURN;
9929:
9930: WHEN Others THEN

Line 9936: IF P_PA_DEBUG_MODE = 'Y' THEN

9932: x_msg_count := 1;
9933: x_msg_data := SQLERRM;
9934: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9935: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9936: IF P_PA_DEBUG_MODE = 'Y' THEN
9937: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9938: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9939: pa_debug.reset_curr_function;
9940: END IF;

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

9933: x_msg_data := SQLERRM;
9934: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9935: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9936: IF P_PA_DEBUG_MODE = 'Y' THEN
9937: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9938: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9939: pa_debug.reset_curr_function;
9940: END IF;
9941: RAISE;

Line 9938: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9934: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9935: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9936: IF P_PA_DEBUG_MODE = 'Y' THEN
9937: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9938: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9939: pa_debug.reset_curr_function;
9940: END IF;
9941: RAISE;
9942:

Line 9939: pa_debug.reset_curr_function;

9935: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9936: IF P_PA_DEBUG_MODE = 'Y' THEN
9937: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9938: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9939: pa_debug.reset_curr_function;
9940: END IF;
9941: RAISE;
9942:
9943: END Check_if_plan_type_editable;

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

10036:
10037: x_msg_count := 0;
10038: x_return_status := FND_API.G_RET_STS_SUCCESS;
10039:
10040: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10041: l_debug_mode := NVL(l_debug_mode, 'Y');
10042:
10043: IF l_debug_mode = 'Y' THEN
10044: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');

Line 10044: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');

10040: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10041: l_debug_mode := NVL(l_debug_mode, 'Y');
10042:
10043: IF l_debug_mode = 'Y' THEN
10044: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');
10045: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
10046: END IF;
10047:
10048: -- Check for business rules violations

Line 10045: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);

10041: l_debug_mode := NVL(l_debug_mode, 'Y');
10042:
10043: IF l_debug_mode = 'Y' THEN
10044: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');
10045: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
10046: END IF;
10047:
10048: -- Check for business rules violations
10049:

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

10047:
10048: -- Check for business rules violations
10049:
10050: IF l_debug_mode = 'Y' THEN
10051: pa_debug.g_err_stage:='Validating input parameters';
10052: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10053: END IF;
10054:
10055: IF (p_project_id IS NULL) OR

Line 10052: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10048: -- Check for business rules violations
10049:
10050: IF l_debug_mode = 'Y' THEN
10051: pa_debug.g_err_stage:='Validating input parameters';
10052: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10053: END IF;
10054:
10055: IF (p_project_id IS NULL) OR
10056: (p_fin_plan_type_id IS NULL)

Line 10060: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10056: (p_fin_plan_type_id IS NULL)
10057: THEN
10058:
10059: IF l_debug_mode = 'Y' THEN
10060: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10061: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10062:
10063: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10064: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 10061: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10057: THEN
10058:
10059: IF l_debug_mode = 'Y' THEN
10060: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10061: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10062:
10063: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10064: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10065: END IF;

Line 10063: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

10059: IF l_debug_mode = 'Y' THEN
10060: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10061: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10062:
10063: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10064: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10065: END IF;
10066:
10067: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10064: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10060: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10061: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10062:
10063: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10064: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10065: END IF;
10066:
10067: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10068: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10077: pa_debug.g_err_stage:='Fetching fin plan preference code ';

10073:
10074: --Fetch fin plan preference code
10075:
10076: IF l_debug_mode = 'Y' THEN
10077: pa_debug.g_err_stage:='Fetching fin plan preference code ';
10078: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10079: END IF;
10080:
10081: SELECT fin_plan_preference_code

Line 10078: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10074: --Fetch fin plan preference code
10075:
10076: IF l_debug_mode = 'Y' THEN
10077: pa_debug.g_err_stage:='Fetching fin plan preference code ';
10078: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10079: END IF;
10080:
10081: SELECT fin_plan_preference_code
10082: INTO l_fp_preference_code

Line 10095: pa_debug.g_err_stage:='Version_Type = '||p_version_type;

10091:
10092: --In this case version_type should be passed and so raise error
10093:
10094: IF l_debug_mode = 'Y' THEN
10095: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
10096: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10097: END IF;
10098:
10099: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10096: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10092: --In this case version_type should be passed and so raise error
10093:
10094: IF l_debug_mode = 'Y' THEN
10095: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
10096: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10097: END IF;
10098:
10099: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10100: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10107: pa_debug.g_err_stage:='Parameter validation complete ';

10103:
10104: END IF;
10105:
10106: IF l_debug_mode = 'Y' THEN
10107: pa_debug.g_err_stage:='Parameter validation complete ';
10108: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10109: END IF;
10110:
10111: --Fetch l_element_type ifn't passed and could be derived

Line 10108: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10104: END IF;
10105:
10106: IF l_debug_mode = 'Y' THEN
10107: pa_debug.g_err_stage:='Parameter validation complete ';
10108: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10109: END IF;
10110:
10111: --Fetch l_element_type ifn't passed and could be derived
10112:

Line 10136: pa_debug.g_err_stage:='Fetching current original Version';

10132:
10133: BEGIN
10134:
10135: IF l_debug_mode = 'Y' THEN
10136: pa_debug.g_err_stage:='Fetching current original Version';
10137: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10138: END IF;
10139:
10140: SELECT budget_version_id

Line 10137: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10133: BEGIN
10134:
10135: IF l_debug_mode = 'Y' THEN
10136: pa_debug.g_err_stage:='Fetching current original Version';
10137: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10138: END IF;
10139:
10140: SELECT budget_version_id
10141: INTO l_current_original_version_id

Line 10152: pa_debug.g_err_stage:='Fetching fp option id';

10148:
10149: --Fetch fp options id using plan version id
10150:
10151: IF l_debug_mode = 'Y' THEN
10152: pa_debug.g_err_stage:='Fetching fp option id';
10153: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10154: END IF;
10155:
10156: SELECT proj_fp_options_id

Line 10153: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10149: --Fetch fp options id using plan version id
10150:
10151: IF l_debug_mode = 'Y' THEN
10152: pa_debug.g_err_stage:='Fetching fp option id';
10153: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10154: END IF;
10155:
10156: SELECT proj_fp_options_id
10157: INTO l_fp_options_id

Line 10175: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';

10171: x_fin_plan_version_id := l_current_original_version_id;
10172: x_fp_options_id := l_fp_options_id;
10173:
10174: IF l_debug_mode = 'Y' THEN
10175: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10176: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10177: pa_debug.reset_err_stack;
10178: END IF;
10179:

Line 10176: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10172: x_fp_options_id := l_fp_options_id;
10173:
10174: IF l_debug_mode = 'Y' THEN
10175: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10176: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10177: pa_debug.reset_err_stack;
10178: END IF;
10179:
10180: EXCEPTION

Line 10177: pa_debug.reset_err_stack;

10173:
10174: IF l_debug_mode = 'Y' THEN
10175: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10176: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10177: pa_debug.reset_err_stack;
10178: END IF;
10179:
10180: EXCEPTION
10181:

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

10198:
10199: x_return_status := FND_API.G_RET_STS_ERROR;
10200:
10201: IF l_debug_mode = 'Y' THEN
10202: pa_debug.g_err_stage:='Invalid Arguments Passed';
10203: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10204:
10205: -- reset error stack
10206: pa_debug.reset_err_stack;

Line 10203: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10199: x_return_status := FND_API.G_RET_STS_ERROR;
10200:
10201: IF l_debug_mode = 'Y' THEN
10202: pa_debug.g_err_stage:='Invalid Arguments Passed';
10203: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10204:
10205: -- reset error stack
10206: pa_debug.reset_err_stack;
10207: END IF;

Line 10206: pa_debug.reset_err_stack;

10202: pa_debug.g_err_stage:='Invalid Arguments Passed';
10203: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10204:
10205: -- reset error stack
10206: pa_debug.reset_err_stack;
10207: END IF;
10208: RETURN;
10209:
10210: WHEN Others THEN

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

10215: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10216: ,p_procedure_name => 'Get_Curr_Original_Version_Info');
10217:
10218: IF l_debug_mode = 'Y' THEN
10219: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10220: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10221:
10222: -- reset error stack
10223: pa_debug.reset_err_stack;

Line 10220: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10216: ,p_procedure_name => 'Get_Curr_Original_Version_Info');
10217:
10218: IF l_debug_mode = 'Y' THEN
10219: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10220: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10221:
10222: -- reset error stack
10223: pa_debug.reset_err_stack;
10224: END IF;

Line 10223: pa_debug.reset_err_stack;

10219: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10220: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10221:
10222: -- reset error stack
10223: pa_debug.reset_err_stack;
10224: END IF;
10225: RAISE;
10226: END Get_Curr_Original_Version_Info;
10227:

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

10273:
10274: x_msg_count := 0;
10275: x_return_status := FND_API.G_RET_STS_SUCCESS;
10276:
10277: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10278: l_debug_mode := NVL(l_debug_mode, 'Y');
10279:
10280: -- Set curr function
10281:

Line 10283: pa_debug.set_curr_function(

10279:
10280: -- Set curr function
10281:
10282: IF l_debug_mode = 'Y' THEN
10283: pa_debug.set_curr_function(
10284: p_function =>'PA_FIN_PLAN_UTILS.GET_ACTUAL_AMTS_THRU_PERIOD'
10285: ,p_debug_mode => l_debug_mode );
10286:
10287: -- Check for business rules violations

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

10284: p_function =>'PA_FIN_PLAN_UTILS.GET_ACTUAL_AMTS_THRU_PERIOD'
10285: ,p_debug_mode => l_debug_mode );
10286:
10287: -- Check for business rules violations
10288: pa_debug.g_err_stage:='Validating input parameters';
10289: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10290: END IF;
10291:
10292: IF (p_budget_version_id IS NULL)

Line 10289: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10285: ,p_debug_mode => l_debug_mode );
10286:
10287: -- Check for business rules violations
10288: pa_debug.g_err_stage:='Validating input parameters';
10289: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10290: END IF;
10291:
10292: IF (p_budget_version_id IS NULL)
10293: THEN

Line 10296: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;

10292: IF (p_budget_version_id IS NULL)
10293: THEN
10294:
10295: IF l_debug_mode = 'Y' THEN
10296: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;
10297: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10298: END IF;
10299:
10300: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10297: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10293: THEN
10294:
10295: IF l_debug_mode = 'Y' THEN
10296: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;
10297: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10298: END IF;
10299:
10300: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10301: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10309: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';

10305: END IF;
10306:
10307: -- Using bv id derive ACTUAL_AMTS_THRU_PERIOD from versions table
10308: IF l_debug_mode = 'Y' THEN
10309: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';
10310: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10311: END IF;
10312:
10313: SELECT actual_amts_thru_period

Line 10310: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10306:
10307: -- Using bv id derive ACTUAL_AMTS_THRU_PERIOD from versions table
10308: IF l_debug_mode = 'Y' THEN
10309: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';
10310: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10311: END IF;
10312:
10313: SELECT actual_amts_thru_period
10314: ,record_version_number

Line 10322: pa_debug.g_err_stage:='Fetching first future PA period';

10318: WHERE budget_version_id = p_budget_version_id;
10319:
10320: -- Fetch first future PA period
10321: IF l_debug_mode = 'Y' THEN
10322: pa_debug.g_err_stage:='Fetching first future PA period';
10323: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10324: END IF;
10325:
10326: -- Fetch the first period. There might not be any future period

Line 10323: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10319:
10320: -- Fetch first future PA period
10321: IF l_debug_mode = 'Y' THEN
10322: pa_debug.g_err_stage:='Fetching first future PA period';
10323: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10324: END IF;
10325:
10326: -- Fetch the first period. There might not be any future period
10327: OPEN future_pa_periods_cur;

Line 10333: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;

10329: CLOSE future_pa_periods_cur;
10330:
10331: -- Fetch first future GL period
10332: IF l_debug_mode = 'Y' THEN
10333: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10334: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10335: pa_debug.g_err_stage:='Fetching first future GL period';
10336: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10337: END IF;

Line 10334: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10330:
10331: -- Fetch first future GL period
10332: IF l_debug_mode = 'Y' THEN
10333: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10334: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10335: pa_debug.g_err_stage:='Fetching first future GL period';
10336: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10337: END IF;
10338:

Line 10335: pa_debug.g_err_stage:='Fetching first future GL period';

10331: -- Fetch first future GL period
10332: IF l_debug_mode = 'Y' THEN
10333: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10334: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10335: pa_debug.g_err_stage:='Fetching first future GL period';
10336: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10337: END IF;
10338:
10339: -- Fetch first gl period, there might not be any gl period

Line 10336: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10332: IF l_debug_mode = 'Y' THEN
10333: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10334: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10335: pa_debug.g_err_stage:='Fetching first future GL period';
10336: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10337: END IF;
10338:
10339: -- Fetch first gl period, there might not be any gl period
10340: OPEN future_pa_periods_cur;

Line 10345: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;

10341: FETCH future_pa_periods_cur INTO x_first_future_gl_period;
10342: CLOSE future_pa_periods_cur;
10343:
10344: IF l_debug_mode = 'Y' THEN
10345: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10346: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10349:

Line 10346: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10342: CLOSE future_pa_periods_cur;
10343:
10344: IF l_debug_mode = 'Y' THEN
10345: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10346: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10349:
10350: -- Reset curr function

Line 10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';

10343:
10344: IF l_debug_mode = 'Y' THEN
10345: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10346: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10349:
10350: -- Reset curr function
10351: pa_debug.reset_curr_function();

Line 10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10344: IF l_debug_mode = 'Y' THEN
10345: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10346: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10349:
10350: -- Reset curr function
10351: pa_debug.reset_curr_function();
10352: END IF;

Line 10351: pa_debug.reset_curr_function();

10347: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10348: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10349:
10350: -- Reset curr function
10351: pa_debug.reset_curr_function();
10352: END IF;
10353: EXCEPTION
10354:
10355: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10375: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10371:
10372: x_return_status := FND_API.G_RET_STS_ERROR;
10373:
10374: IF l_debug_mode = 'Y' THEN
10375: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10376: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10377:
10378: -- Reset curr function
10379: pa_debug.reset_curr_function();

Line 10376: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10372: x_return_status := FND_API.G_RET_STS_ERROR;
10373:
10374: IF l_debug_mode = 'Y' THEN
10375: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10376: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10377:
10378: -- Reset curr function
10379: pa_debug.reset_curr_function();
10380: END IF;

Line 10379: pa_debug.reset_curr_function();

10375: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10376: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10377:
10378: -- Reset curr function
10379: pa_debug.reset_curr_function();
10380: END IF;
10381: RETURN;
10382: WHEN Others THEN
10383: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

10387: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10388: ,p_procedure_name => 'GET_ACTUAL_AMTS_THRU_PERIOD');
10389:
10390: IF l_debug_mode = 'Y' THEN
10391: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10392: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10393:
10394: -- Reset curr function
10395: pa_debug.Reset_Curr_Function();

Line 10392: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10388: ,p_procedure_name => 'GET_ACTUAL_AMTS_THRU_PERIOD');
10389:
10390: IF l_debug_mode = 'Y' THEN
10391: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10392: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10393:
10394: -- Reset curr function
10395: pa_debug.Reset_Curr_Function();
10396: END IF;

Line 10395: pa_debug.Reset_Curr_Function();

10391: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10392: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10393:
10394: -- Reset curr function
10395: pa_debug.Reset_Curr_Function();
10396: END IF;
10397: RAISE;
10398: END GET_ACTUAL_AMTS_THRU_PERIOD;
10399:

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

10555: BEGIN
10556: x_msg_count := 0;
10557: x_return_status := FND_API.G_RET_STS_SUCCESS;
10558:
10559: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10560: l_debug_mode := NVL(l_debug_mode, 'Y');
10561:
10562: -- Set curr function
10563: IF l_debug_mode = 'Y' THEN

Line 10564: pa_debug.set_curr_function(

10560: l_debug_mode := NVL(l_debug_mode, 'Y');
10561:
10562: -- Set curr function
10563: IF l_debug_mode = 'Y' THEN
10564: pa_debug.set_curr_function(
10565: p_function =>'PA_FIN_PLAN_UTILS.IS_WP_RL_UPDATEABLE'
10566: ,p_debug_mode => l_debug_mode );
10567: END IF;
10568:

Line 10573: pa_debug.g_err_stage:='Project_id = '|| p_project_id;

10569: IF (p_project_id IS NULL)
10570: THEN
10571:
10572: IF l_debug_mode = 'Y' THEN
10573: pa_debug.g_err_stage:='Project_id = '|| p_project_id;
10574: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10575: END IF;
10576:
10577: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10574: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10570: THEN
10571:
10572: IF l_debug_mode = 'Y' THEN
10573: pa_debug.g_err_stage:='Project_id = '|| p_project_id;
10574: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10575: END IF;
10576:
10577: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10578: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10646: IF P_PA_DEBUG_MODE = 'Y' THEN

10642: END IF; -- progress
10643: END IF; -- versioning
10644:
10645: -- reset curr function
10646: IF P_PA_DEBUG_MODE = 'Y' THEN
10647: pa_debug.reset_curr_function();
10648: END IF;
10649: EXCEPTION
10650:

Line 10647: pa_debug.reset_curr_function();

10643: END IF; -- versioning
10644:
10645: -- reset curr function
10646: IF P_PA_DEBUG_MODE = 'Y' THEN
10647: pa_debug.reset_curr_function();
10648: END IF;
10649: EXCEPTION
10650:
10651: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10671: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10667:
10668: x_return_status := FND_API.G_RET_STS_ERROR;
10669:
10670: IF l_debug_mode = 'Y' THEN
10671: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10672: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10673:
10674: -- reset curr function
10675: pa_debug.reset_curr_function();

Line 10672: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10668: x_return_status := FND_API.G_RET_STS_ERROR;
10669:
10670: IF l_debug_mode = 'Y' THEN
10671: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10672: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10673:
10674: -- reset curr function
10675: pa_debug.reset_curr_function();
10676: END IF;

Line 10675: pa_debug.reset_curr_function();

10671: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10672: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10673:
10674: -- reset curr function
10675: pa_debug.reset_curr_function();
10676: END IF;
10677: RETURN;
10678: WHEN Others THEN
10679: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

10683: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10684: ,p_procedure_name => 'IS_WP_RL_UPDATEABLE');
10685:
10686: IF l_debug_mode = 'Y' THEN
10687: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10688: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10689: -- reset curr function
10690: pa_debug.Reset_Curr_Function();
10691: END IF;

Line 10688: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10684: ,p_procedure_name => 'IS_WP_RL_UPDATEABLE');
10685:
10686: IF l_debug_mode = 'Y' THEN
10687: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10688: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10689: -- reset curr function
10690: pa_debug.Reset_Curr_Function();
10691: END IF;
10692: RAISE;

Line 10690: pa_debug.Reset_Curr_Function();

10686: IF l_debug_mode = 'Y' THEN
10687: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10688: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10689: -- reset curr function
10690: pa_debug.Reset_Curr_Function();
10691: END IF;
10692: RAISE;
10693:
10694: END IS_WP_RL_UPDATEABLE;

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

10722:
10723: x_msg_count := 0;
10724: x_return_status := FND_API.G_RET_STS_SUCCESS;
10725:
10726: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10727: l_debug_mode := NVL(l_debug_mode, 'Y');
10728:
10729: -- Set curr function
10730: IF l_debug_mode = 'Y' THEN

Line 10731: pa_debug.set_curr_function(

10727: l_debug_mode := NVL(l_debug_mode, 'Y');
10728:
10729: -- Set curr function
10730: IF l_debug_mode = 'Y' THEN
10731: pa_debug.set_curr_function(
10732: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_COST_PT_ATTACHED'
10733: ,p_debug_mode => l_debug_mode );
10734:
10735: -- Check for business rules violations

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

10733: ,p_debug_mode => l_debug_mode );
10734:
10735: -- Check for business rules violations
10736:
10737: pa_debug.g_err_stage:='Validating input parameters';
10738: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10739: END IF;
10740:
10741: IF (p_project_id IS NULL)

Line 10738: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10734:
10735: -- Check for business rules violations
10736:
10737: pa_debug.g_err_stage:='Validating input parameters';
10738: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10739: END IF;
10740:
10741: IF (p_project_id IS NULL)
10742: THEN

Line 10745: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10741: IF (p_project_id IS NULL)
10742: THEN
10743:
10744: IF l_debug_mode = 'Y' THEN
10745: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10746: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10747: END IF;
10748:
10749: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10746: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10742: THEN
10743:
10744: IF l_debug_mode = 'Y' THEN
10745: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10746: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10747: END IF;
10748:
10749: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10750: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10769: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';

10765: x_plan_type_id := null;
10766: END;
10767:
10768: IF l_debug_mode = 'Y' THEN
10769: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10770: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10771: -- reset curr function
10772: pa_debug.reset_curr_function();
10773: END IF;

Line 10770: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10766: END;
10767:
10768: IF l_debug_mode = 'Y' THEN
10769: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10770: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10771: -- reset curr function
10772: pa_debug.reset_curr_function();
10773: END IF;
10774: EXCEPTION

Line 10772: pa_debug.reset_curr_function();

10768: IF l_debug_mode = 'Y' THEN
10769: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10770: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10771: -- reset curr function
10772: pa_debug.reset_curr_function();
10773: END IF;
10774: EXCEPTION
10775:
10776: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10796: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10792:
10793: x_return_status := FND_API.G_RET_STS_ERROR;
10794:
10795: IF l_debug_mode = 'Y' THEN
10796: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10797: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10798: -- reset curr function
10799: pa_debug.reset_curr_function();
10800: END IF;

Line 10797: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10793: x_return_status := FND_API.G_RET_STS_ERROR;
10794:
10795: IF l_debug_mode = 'Y' THEN
10796: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10797: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10798: -- reset curr function
10799: pa_debug.reset_curr_function();
10800: END IF;
10801: RETURN;

Line 10799: pa_debug.reset_curr_function();

10795: IF l_debug_mode = 'Y' THEN
10796: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10797: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10798: -- reset curr function
10799: pa_debug.reset_curr_function();
10800: END IF;
10801: RETURN;
10802: WHEN Others THEN
10803: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

10807: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10808: ,p_procedure_name => 'IS_PRI_FCST_COST_PT_ATTACHED');
10809:
10810: IF l_debug_mode = 'Y' THEN
10811: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10812: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10813: -- reset curr function
10814: pa_debug.Reset_Curr_Function();
10815: END IF;

Line 10812: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10808: ,p_procedure_name => 'IS_PRI_FCST_COST_PT_ATTACHED');
10809:
10810: IF l_debug_mode = 'Y' THEN
10811: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10812: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10813: -- reset curr function
10814: pa_debug.Reset_Curr_Function();
10815: END IF;
10816: RAISE;

Line 10814: pa_debug.Reset_Curr_Function();

10810: IF l_debug_mode = 'Y' THEN
10811: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10812: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10813: -- reset curr function
10814: pa_debug.Reset_Curr_Function();
10815: END IF;
10816: RAISE;
10817: END IS_PRI_FCST_COST_PT_ATTACHED;
10818:

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

10845:
10846: x_msg_count := 0;
10847: x_return_status := FND_API.G_RET_STS_SUCCESS;
10848:
10849: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10850: l_debug_mode := NVL(l_debug_mode, 'Y');
10851:
10852: -- Set curr function
10853: IF l_debug_mode = 'Y' THEN

Line 10854: pa_debug.set_curr_function(

10850: l_debug_mode := NVL(l_debug_mode, 'Y');
10851:
10852: -- Set curr function
10853: IF l_debug_mode = 'Y' THEN
10854: pa_debug.set_curr_function(
10855: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_REV_PT_ATTACHED'
10856: ,p_debug_mode => l_debug_mode );
10857:
10858: -- Check for business rules violations

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

10855: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_REV_PT_ATTACHED'
10856: ,p_debug_mode => l_debug_mode );
10857:
10858: -- Check for business rules violations
10859: pa_debug.g_err_stage:='Validating input parameters';
10860: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10861: END IF;
10862:
10863: IF (p_project_id IS NULL)

Line 10860: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10856: ,p_debug_mode => l_debug_mode );
10857:
10858: -- Check for business rules violations
10859: pa_debug.g_err_stage:='Validating input parameters';
10860: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10861: END IF;
10862:
10863: IF (p_project_id IS NULL)
10864: THEN

Line 10867: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10863: IF (p_project_id IS NULL)
10864: THEN
10865:
10866: IF l_debug_mode = 'Y' THEN
10867: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10868: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10869: END IF;
10870:
10871: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10868: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10864: THEN
10865:
10866: IF l_debug_mode = 'Y' THEN
10867: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10868: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10869: END IF;
10870:
10871: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10872: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10891: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';

10887: x_plan_type_id := null;
10888: END;
10889:
10890: IF l_debug_mode = 'Y' THEN
10891: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10892: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10893: -- reset curr function
10894: pa_debug.reset_curr_function();
10895: END IF;

Line 10892: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10888: END;
10889:
10890: IF l_debug_mode = 'Y' THEN
10891: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10892: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10893: -- reset curr function
10894: pa_debug.reset_curr_function();
10895: END IF;
10896: EXCEPTION

Line 10894: pa_debug.reset_curr_function();

10890: IF l_debug_mode = 'Y' THEN
10891: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10892: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10893: -- reset curr function
10894: pa_debug.reset_curr_function();
10895: END IF;
10896: EXCEPTION
10897:
10898: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10918: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10914:
10915: x_return_status := FND_API.G_RET_STS_ERROR;
10916:
10917: IF l_debug_mode = 'Y' THEN
10918: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10919: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10920: -- reset curr function
10921: pa_debug.reset_curr_function();
10922: END IF;

Line 10919: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10915: x_return_status := FND_API.G_RET_STS_ERROR;
10916:
10917: IF l_debug_mode = 'Y' THEN
10918: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10919: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10920: -- reset curr function
10921: pa_debug.reset_curr_function();
10922: END IF;
10923: RETURN;

Line 10921: pa_debug.reset_curr_function();

10917: IF l_debug_mode = 'Y' THEN
10918: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10919: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10920: -- reset curr function
10921: pa_debug.reset_curr_function();
10922: END IF;
10923: RETURN;
10924: WHEN Others THEN
10925: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

10929: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10930: ,p_procedure_name => 'IS_PRI_FCST_REV_PT_ATTACHED');
10931:
10932: IF l_debug_mode = 'Y' THEN
10933: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10934: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10935: -- reset curr function
10936: pa_debug.Reset_Curr_Function();
10937: END IF;

Line 10934: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10930: ,p_procedure_name => 'IS_PRI_FCST_REV_PT_ATTACHED');
10931:
10932: IF l_debug_mode = 'Y' THEN
10933: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10934: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10935: -- reset curr function
10936: pa_debug.Reset_Curr_Function();
10937: END IF;
10938: RAISE;

Line 10936: pa_debug.Reset_Curr_Function();

10932: IF l_debug_mode = 'Y' THEN
10933: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10934: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10935: -- reset curr function
10936: pa_debug.Reset_Curr_Function();
10937: END IF;
10938: RAISE;
10939: END IS_PRI_FCST_REV_PT_ATTACHED;
10940:

Line 11028: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',

11024:
11025: BEGIN
11026:
11027: IF l_debug_mode = 'Y' THEN
11028: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',
11029: p_debug_mode => P_PA_debug_mode );
11030: END IF;
11031:
11032: x_msg_count := 0;

Line 11029: p_debug_mode => P_PA_debug_mode );

11025: BEGIN
11026:
11027: IF l_debug_mode = 'Y' THEN
11028: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',
11029: p_debug_mode => P_PA_debug_mode );
11030: END IF;
11031:
11032: x_msg_count := 0;
11033: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11037: IF P_PA_debug_mode = 'Y' THEN

11033: x_return_status := FND_API.G_RET_STS_SUCCESS;
11034:
11035: -- Validate that the input parameters are not null
11036: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11037: IF P_PA_debug_mode = 'Y' THEN
11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11040:
11041: pa_debug.g_err_stage:='project_id = '||p_project_id;

Line 11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;

11034:
11035: -- Validate that the input parameters are not null
11036: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11037: IF P_PA_debug_mode = 'Y' THEN
11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11040:
11041: pa_debug.g_err_stage:='project_id = '||p_project_id;
11042: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

Line 11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11035: -- Validate that the input parameters are not null
11036: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11037: IF P_PA_debug_mode = 'Y' THEN
11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11040:
11041: pa_debug.g_err_stage:='project_id = '||p_project_id;
11042: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11043:

Line 11041: pa_debug.g_err_stage:='project_id = '||p_project_id;

11037: IF P_PA_debug_mode = 'Y' THEN
11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11040:
11041: pa_debug.g_err_stage:='project_id = '||p_project_id;
11042: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11043:
11044: END IF;
11045:

Line 11042: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11038: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11040:
11041: pa_debug.g_err_stage:='project_id = '||p_project_id;
11042: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11043:
11044: END IF;
11045:
11046:

Line 11053: IF P_PA_debug_mode = 'Y' THEN

11049: p_token1 => l_token_name,
11050: p_value1 => l_mod_name);
11051:
11052:
11053: IF P_PA_debug_mode = 'Y' THEN
11054: pa_debug.g_err_stage:='Invalid Arguments Passed';
11055: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11056: END IF;
11057: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11050: p_value1 => l_mod_name);
11051:
11052:
11053: IF P_PA_debug_mode = 'Y' THEN
11054: pa_debug.g_err_stage:='Invalid Arguments Passed';
11055: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11056: END IF;
11057: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11058: END IF;

Line 11055: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11051:
11052:
11053: IF P_PA_debug_mode = 'Y' THEN
11054: pa_debug.g_err_stage:='Invalid Arguments Passed';
11055: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11056: END IF;
11057: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11058: END IF;
11059:

Line 11060: IF P_PA_debug_mode = 'Y' THEN

11056: END IF;
11057: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11058: END IF;
11059:
11060: IF P_PA_debug_mode = 'Y' THEN
11061: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11062: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11063: END IF;
11064:

Line 11061: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';

11057: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11058: END IF;
11059:
11060: IF P_PA_debug_mode = 'Y' THEN
11061: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11062: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11063: END IF;
11064:
11065: BEGIN

Line 11062: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11058: END IF;
11059:
11060: IF P_PA_debug_mode = 'Y' THEN
11061: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11062: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11063: END IF;
11064:
11065: BEGIN
11066: SELECT fin_plan_preference_code

Line 11074: IF P_PA_debug_mode = 'Y' THEN

11070: AND project_id = p_project_id
11071: AND fin_plan_type_id = p_fin_plan_type_id;
11072: EXCEPTION
11073: WHEN NO_DATA_FOUND THEN
11074: IF P_PA_debug_mode = 'Y' THEN
11075: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11076: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11077: END IF;
11078: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11075: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';

11071: AND fin_plan_type_id = p_fin_plan_type_id;
11072: EXCEPTION
11073: WHEN NO_DATA_FOUND THEN
11074: IF P_PA_debug_mode = 'Y' THEN
11075: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11076: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11077: END IF;
11078: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11079: END;

Line 11076: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11072: EXCEPTION
11073: WHEN NO_DATA_FOUND THEN
11074: IF P_PA_debug_mode = 'Y' THEN
11075: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11076: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11077: END IF;
11078: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11079: END;
11080:

Line 11098: IF P_PA_debug_mode = 'Y' THEN

11094: ,x_msg_count => l_msg_count
11095: ,x_msg_data => l_msg_data);
11096:
11097: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11098: IF P_PA_debug_mode = 'Y' THEN
11099: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11100: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11101: END IF;
11102: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11099: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';

11095: ,x_msg_data => l_msg_data);
11096:
11097: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11098: IF P_PA_debug_mode = 'Y' THEN
11099: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11100: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11101: END IF;
11102: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11103: END IF;

Line 11100: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11096:
11097: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11098: IF P_PA_debug_mode = 'Y' THEN
11099: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11100: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11101: END IF;
11102: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11103: END IF;
11104: END IF;

Line 11116: IF P_PA_debug_mode = 'Y' THEN

11112: ,x_return_status => l_return_status
11113: ,x_msg_count => l_msg_count
11114: ,x_msg_data => l_msg_data);
11115: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11116: IF P_PA_debug_mode = 'Y' THEN
11117: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11118: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11119: END IF;
11120: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11117: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';

11113: ,x_msg_count => l_msg_count
11114: ,x_msg_data => l_msg_data);
11115: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11116: IF P_PA_debug_mode = 'Y' THEN
11117: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11118: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11119: END IF;
11120: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11121: END IF;

Line 11118: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11114: ,x_msg_data => l_msg_data);
11115: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11116: IF P_PA_debug_mode = 'Y' THEN
11117: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11118: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11119: END IF;
11120: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11121: END IF;
11122: END IF;

Line 11134: IF P_PA_debug_mode = 'Y' THEN

11130: ,x_msg_count => l_msg_count
11131: ,x_msg_data => l_msg_data);
11132:
11133: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11134: IF P_PA_debug_mode = 'Y' THEN
11135: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11136: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11137: END IF;
11138: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11135: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';

11131: ,x_msg_data => l_msg_data);
11132:
11133: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11134: IF P_PA_debug_mode = 'Y' THEN
11135: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11136: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11137: END IF;
11138: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11139: END IF;

Line 11136: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11132:
11133: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11134: IF P_PA_debug_mode = 'Y' THEN
11135: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11136: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11137: END IF;
11138: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11139: END IF;
11140:

Line 11144: IF P_PA_debug_mode = 'Y' THEN

11140:
11141:
11142: END IF;
11143:
11144: IF P_PA_debug_mode = 'Y' THEN
11145: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11146: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11147: pa_debug.reset_curr_function;
11148: END IF;

Line 11145: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';

11141:
11142: END IF;
11143:
11144: IF P_PA_debug_mode = 'Y' THEN
11145: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11146: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11147: pa_debug.reset_curr_function;
11148: END IF;
11149: EXCEPTION

Line 11146: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11142: END IF;
11143:
11144: IF P_PA_debug_mode = 'Y' THEN
11145: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11146: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11147: pa_debug.reset_curr_function;
11148: END IF;
11149: EXCEPTION
11150: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 11147: pa_debug.reset_curr_function;

11143:
11144: IF P_PA_debug_mode = 'Y' THEN
11145: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11146: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11147: pa_debug.reset_curr_function;
11148: END IF;
11149: EXCEPTION
11150: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11151: l_msg_count := FND_MSG_PUB.count_msg;

Line 11167: IF P_PA_DEBUG_MODE = 'Y' THEN

11163: ELSE
11164: x_msg_count := l_msg_count;
11165: END IF;
11166: x_return_status := FND_API.G_RET_STS_ERROR;
11167: IF P_PA_DEBUG_MODE = 'Y' THEN
11168: pa_debug.reset_curr_function;
11169: END IF;
11170: RETURN;
11171:

Line 11168: pa_debug.reset_curr_function;

11164: x_msg_count := l_msg_count;
11165: END IF;
11166: x_return_status := FND_API.G_RET_STS_ERROR;
11167: IF P_PA_DEBUG_MODE = 'Y' THEN
11168: pa_debug.reset_curr_function;
11169: END IF;
11170: RETURN;
11171:
11172: WHEN Others THEN

Line 11179: IF P_PA_DEBUG_MODE = 'Y' THEN

11175: x_msg_data := SQLERRM;
11176:
11177: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11178: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11179: IF P_PA_DEBUG_MODE = 'Y' THEN
11180: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11181: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11182: pa_debug.reset_curr_function;
11183: END IF;

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

11176:
11177: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11178: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11179: IF P_PA_DEBUG_MODE = 'Y' THEN
11180: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11181: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11182: pa_debug.reset_curr_function;
11183: END IF;
11184: RAISE;

Line 11181: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11177: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11178: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11179: IF P_PA_DEBUG_MODE = 'Y' THEN
11180: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11181: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11182: pa_debug.reset_curr_function;
11183: END IF;
11184: RAISE;
11185:

Line 11182: pa_debug.reset_curr_function;

11178: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11179: IF P_PA_DEBUG_MODE = 'Y' THEN
11180: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11181: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11182: pa_debug.reset_curr_function;
11183: END IF;
11184: RAISE;
11185:
11186: END GET_CURR_WORKING_VERSION_IDS;

Line 11242: IF P_PA_DEBUG_MODE = 'Y' THEN

11238:
11239:
11240: BEGIN
11241:
11242: IF P_PA_DEBUG_MODE = 'Y' THEN
11243: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11244: p_debug_mode => P_PA_debug_mode );
11245: END IF;
11246: x_msg_count := 0;

Line 11243: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',

11239:
11240: BEGIN
11241:
11242: IF P_PA_DEBUG_MODE = 'Y' THEN
11243: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11244: p_debug_mode => P_PA_debug_mode );
11245: END IF;
11246: x_msg_count := 0;
11247: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11244: p_debug_mode => P_PA_debug_mode );

11240: BEGIN
11241:
11242: IF P_PA_DEBUG_MODE = 'Y' THEN
11243: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11244: p_debug_mode => P_PA_debug_mode );
11245: END IF;
11246: x_msg_count := 0;
11247: x_return_status := FND_API.G_RET_STS_SUCCESS;
11248:

Line 11252: IF P_PA_DEBUG_MODE = 'Y' THEN

11248:
11249: -- See if all the input parameters passed are invalid
11250: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11251: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11252: IF P_PA_DEBUG_MODE = 'Y' THEN
11253: pa_debug.g_err_stage:='Invalid Arguments Passed';
11254: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11255: END IF;
11256:

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

11249: -- See if all the input parameters passed are invalid
11250: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11251: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11252: IF P_PA_DEBUG_MODE = 'Y' THEN
11253: pa_debug.g_err_stage:='Invalid Arguments Passed';
11254: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11255: END IF;
11256:
11257:

Line 11254: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11250: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11251: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11252: IF P_PA_DEBUG_MODE = 'Y' THEN
11253: pa_debug.g_err_stage:='Invalid Arguments Passed';
11254: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11255: END IF;
11256:
11257:
11258: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 11273: IF P_PA_debug_mode = 'Y' THEN

11269: --p_version_type should be either COST or REVENUE if not null
11270: IF p_version_type IS NOT NULL AND
11271: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11272:
11273: IF P_PA_debug_mode = 'Y' THEN
11274: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11275: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11276: END IF;
11277:

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

11270: IF p_version_type IS NOT NULL AND
11271: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11272:
11273: IF P_PA_debug_mode = 'Y' THEN
11274: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11275: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11276: END IF;
11277:
11278:

Line 11275: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11271: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11272:
11273: IF P_PA_debug_mode = 'Y' THEN
11274: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11275: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11276: END IF;
11277:
11278:
11279: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 11285: IF P_PA_debug_mode = 'Y' THEN

11281: p_token1 => l_token_name,
11282: p_value1 => l_mod_name);
11283:
11284:
11285: IF P_PA_debug_mode = 'Y' THEN
11286: pa_debug.g_err_stage:='Invalid Arguments Passed';
11287: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11288: END IF;
11289: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11282: p_value1 => l_mod_name);
11283:
11284:
11285: IF P_PA_debug_mode = 'Y' THEN
11286: pa_debug.g_err_stage:='Invalid Arguments Passed';
11287: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11288: END IF;
11289: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11290:

Line 11287: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11283:
11284:
11285: IF P_PA_debug_mode = 'Y' THEN
11286: pa_debug.g_err_stage:='Invalid Arguments Passed';
11287: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11288: END IF;
11289: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11290:
11291: END IF;

Line 11294: IF P_PA_debug_mode = 'Y' THEN

11290:
11291: END IF;
11292: */
11293:
11294: IF P_PA_debug_mode = 'Y' THEN
11295: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11296: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11297: END IF;
11298:

Line 11295: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';

11291: END IF;
11292: */
11293:
11294: IF P_PA_debug_mode = 'Y' THEN
11295: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11296: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11297: END IF;
11298:
11299: /* l_budget_version_id is used to get margin_derived_from_code.

Line 11296: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11292: */
11293:
11294: IF P_PA_debug_mode = 'Y' THEN
11295: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11296: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11297: END IF;
11298:
11299: /* l_budget_version_id is used to get margin_derived_from_code.
11300: This is derived if an 'ALL' version exists or if both 'cost' and revenue' versions exist because

Line 11316: IF P_PA_DEBUG_MODE = 'Y' THEN

11312: FROM pa_proj_fp_options pfo
11313: WHERE pfo.fin_plan_version_id=l_budget_version_id ;
11314: EXCEPTION
11315: WHEN NO_DATA_FOUND THEN
11316: IF P_PA_DEBUG_MODE = 'Y' THEN
11317: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11318: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11319: END IF;
11320: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11317: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';

11313: WHERE pfo.fin_plan_version_id=l_budget_version_id ;
11314: EXCEPTION
11315: WHEN NO_DATA_FOUND THEN
11316: IF P_PA_DEBUG_MODE = 'Y' THEN
11317: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11318: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11319: END IF;
11320: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11321: END;

Line 11318: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11314: EXCEPTION
11315: WHEN NO_DATA_FOUND THEN
11316: IF P_PA_DEBUG_MODE = 'Y' THEN
11317: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11318: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11319: END IF;
11320: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11321: END;
11322: END IF;

Line 11354: IF P_PA_DEBUG_MODE = 'Y' THEN

11350: FROM pa_budget_versions
11351: WHERE budget_version_id = decode(nvl(p_cost_budget_version_id,-1),-1,p_all_budget_version_id,p_cost_budget_version_id);
11352: EXCEPTION
11353: WHEN NO_DATA_FOUND THEN
11354: IF P_PA_DEBUG_MODE = 'Y' THEN
11355: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11356: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11357: END IF;
11358: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11355: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';

11351: WHERE budget_version_id = decode(nvl(p_cost_budget_version_id,-1),-1,p_all_budget_version_id,p_cost_budget_version_id);
11352: EXCEPTION
11353: WHEN NO_DATA_FOUND THEN
11354: IF P_PA_DEBUG_MODE = 'Y' THEN
11355: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11356: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11357: END IF;
11358: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11359: END;

Line 11356: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11352: EXCEPTION
11353: WHEN NO_DATA_FOUND THEN
11354: IF P_PA_DEBUG_MODE = 'Y' THEN
11355: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11356: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11357: END IF;
11358: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11359: END;
11360: END IF;

Line 11373: IF P_PA_DEBUG_MODE = 'Y' THEN

11369: FROM pa_budget_versions
11370: WHERE budget_version_id = decode(nvl(p_rev_budget_version_id,-1),-1,p_all_budget_version_id,p_rev_budget_version_id);
11371: EXCEPTION
11372: WHEN NO_DATA_FOUND THEN
11373: IF P_PA_DEBUG_MODE = 'Y' THEN
11374: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11376: END IF;
11377: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11374: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';

11370: WHERE budget_version_id = decode(nvl(p_rev_budget_version_id,-1),-1,p_all_budget_version_id,p_rev_budget_version_id);
11371: EXCEPTION
11372: WHEN NO_DATA_FOUND THEN
11373: IF P_PA_DEBUG_MODE = 'Y' THEN
11374: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11376: END IF;
11377: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11378: END;

Line 11375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11371: EXCEPTION
11372: WHEN NO_DATA_FOUND THEN
11373: IF P_PA_DEBUG_MODE = 'Y' THEN
11374: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11375: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11376: END IF;
11377: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11378: END;
11379: END IF;

Line 11414: IF P_PA_debug_mode = 'Y' THEN

11410: END IF;
11411: END IF;
11412:
11413:
11414: IF P_PA_debug_mode = 'Y' THEN
11415: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11416: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11417: pa_debug.reset_curr_function;
11418: END IF;

Line 11415: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';

11411: END IF;
11412:
11413:
11414: IF P_PA_debug_mode = 'Y' THEN
11415: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11416: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11417: pa_debug.reset_curr_function;
11418: END IF;
11419: EXCEPTION

Line 11416: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11412:
11413:
11414: IF P_PA_debug_mode = 'Y' THEN
11415: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11416: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11417: pa_debug.reset_curr_function;
11418: END IF;
11419: EXCEPTION
11420: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 11417: pa_debug.reset_curr_function;

11413:
11414: IF P_PA_debug_mode = 'Y' THEN
11415: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11416: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11417: pa_debug.reset_curr_function;
11418: END IF;
11419: EXCEPTION
11420: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11421: l_msg_count := FND_MSG_PUB.count_msg;

Line 11438: IF P_PA_DEBUG_MODE = 'Y' THEN

11434: x_msg_count := l_msg_count;
11435: END IF;
11436: x_return_status := FND_API.G_RET_STS_ERROR;
11437:
11438: IF P_PA_DEBUG_MODE = 'Y' THEN
11439: pa_debug.reset_curr_function;
11440: END IF;
11441: RETURN;
11442:

Line 11439: pa_debug.reset_curr_function;

11435: END IF;
11436: x_return_status := FND_API.G_RET_STS_ERROR;
11437:
11438: IF P_PA_DEBUG_MODE = 'Y' THEN
11439: pa_debug.reset_curr_function;
11440: END IF;
11441: RETURN;
11442:
11443: WHEN Others THEN

Line 11450: IF P_PA_DEBUG_MODE = 'Y' THEN

11446: x_msg_data := SQLERRM;
11447:
11448: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11449: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11450: IF P_PA_DEBUG_MODE = 'Y' THEN
11451: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11452: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11453: pa_debug.reset_curr_function;
11454: END IF;

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

11447:
11448: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11449: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11450: IF P_PA_DEBUG_MODE = 'Y' THEN
11451: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11452: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11453: pa_debug.reset_curr_function;
11454: END IF;
11455: RAISE;

Line 11452: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11448: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11449: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11450: IF P_PA_DEBUG_MODE = 'Y' THEN
11451: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11452: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11453: pa_debug.reset_curr_function;
11454: END IF;
11455: RAISE;
11456:

Line 11453: pa_debug.reset_curr_function;

11449: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11450: IF P_PA_DEBUG_MODE = 'Y' THEN
11451: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11452: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11453: pa_debug.reset_curr_function;
11454: END IF;
11455: RAISE;
11456:
11457:

Line 11523: IF P_PA_DEBUG_MODE = 'Y' THEN

11519: -- End of variables used for debugging purpose
11520:
11521: BEGIN
11522:
11523: IF P_PA_DEBUG_MODE = 'Y' THEN
11524: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11525: p_debug_mode => P_PA_debug_mode );
11526: END IF;
11527: x_msg_count := 0;

Line 11524: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',

11520:
11521: BEGIN
11522:
11523: IF P_PA_DEBUG_MODE = 'Y' THEN
11524: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11525: p_debug_mode => P_PA_debug_mode );
11526: END IF;
11527: x_msg_count := 0;
11528: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11525: p_debug_mode => P_PA_debug_mode );

11521: BEGIN
11522:
11523: IF P_PA_DEBUG_MODE = 'Y' THEN
11524: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11525: p_debug_mode => P_PA_debug_mode );
11526: END IF;
11527: x_msg_count := 0;
11528: x_return_status := FND_API.G_RET_STS_SUCCESS;
11529:

Line 11532: IF P_PA_debug_mode = 'Y' THEN

11528: x_return_status := FND_API.G_RET_STS_SUCCESS;
11529:
11530: -- Check for business rules violations
11531:
11532: IF P_PA_debug_mode = 'Y' THEN
11533: pa_debug.g_err_stage:='Validating input parameters';
11534: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11535: END IF;
11536:

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

11529:
11530: -- Check for business rules violations
11531:
11532: IF P_PA_debug_mode = 'Y' THEN
11533: pa_debug.g_err_stage:='Validating input parameters';
11534: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11535: END IF;
11536:
11537: -- Check if p_context or project id is NULL

Line 11534: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11530: -- Check for business rules violations
11531:
11532: IF P_PA_debug_mode = 'Y' THEN
11533: pa_debug.g_err_stage:='Validating input parameters';
11534: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11535: END IF;
11536:
11537: -- Check if p_context or project id is NULL
11538: IF p_context IS NULL OR p_project_id IS NULL THEN

Line 11540: IF P_PA_debug_mode = 'Y' THEN

11536:
11537: -- Check if p_context or project id is NULL
11538: IF p_context IS NULL OR p_project_id IS NULL THEN
11539:
11540: IF P_PA_debug_mode = 'Y' THEN
11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11543:
11544: pa_debug.g_err_stage:='project_id = '||p_project_id;

Line 11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11537: -- Check if p_context or project id is NULL
11538: IF p_context IS NULL OR p_project_id IS NULL THEN
11539:
11540: IF P_PA_debug_mode = 'Y' THEN
11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11543:
11544: pa_debug.g_err_stage:='project_id = '||p_project_id;
11545: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11538: IF p_context IS NULL OR p_project_id IS NULL THEN
11539:
11540: IF P_PA_debug_mode = 'Y' THEN
11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11543:
11544: pa_debug.g_err_stage:='project_id = '||p_project_id;
11545: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11546:

Line 11544: pa_debug.g_err_stage:='project_id = '||p_project_id;

11540: IF P_PA_debug_mode = 'Y' THEN
11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11543:
11544: pa_debug.g_err_stage:='project_id = '||p_project_id;
11545: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11546:
11547: END IF;
11548:

Line 11545: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11541: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11542: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11543:
11544: pa_debug.g_err_stage:='project_id = '||p_project_id;
11545: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11546:
11547: END IF;
11548:
11549:

Line 11556: IF P_PA_debug_mode = 'Y' THEN

11552: p_token1 => l_token_name,
11553: p_value1 => l_mod_name);
11554:
11555:
11556: IF P_PA_debug_mode = 'Y' THEN
11557: pa_debug.g_err_stage:='Invalid Arguments Passed';
11558: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11559: END IF;
11560: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11553: p_value1 => l_mod_name);
11554:
11555:
11556: IF P_PA_debug_mode = 'Y' THEN
11557: pa_debug.g_err_stage:='Invalid Arguments Passed';
11558: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11559: END IF;
11560: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11561:

Line 11558: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11554:
11555:
11556: IF P_PA_debug_mode = 'Y' THEN
11557: pa_debug.g_err_stage:='Invalid Arguments Passed';
11558: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11559: END IF;
11560: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11561:
11562: END IF;

Line 11571: IF P_PA_debug_mode = 'Y' THEN

11567: --p_version_type should be either COST or REVENUE if not null
11568: IF p_version_type IS NOT NULL AND
11569: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11570:
11571: IF P_PA_debug_mode = 'Y' THEN
11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11574:
11575: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11568: IF p_version_type IS NOT NULL AND
11569: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11570:
11571: IF P_PA_debug_mode = 'Y' THEN
11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11574:
11575: pa_debug.g_err_stage:='p_context = '||p_context;
11576: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11569: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11570:
11571: IF P_PA_debug_mode = 'Y' THEN
11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11574:
11575: pa_debug.g_err_stage:='p_context = '||p_context;
11576: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11577:

Line 11575: pa_debug.g_err_stage:='p_context = '||p_context;

11571: IF P_PA_debug_mode = 'Y' THEN
11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11574:
11575: pa_debug.g_err_stage:='p_context = '||p_context;
11576: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11577:
11578: END IF;
11579:

Line 11576: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11572: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11573: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11574:
11575: pa_debug.g_err_stage:='p_context = '||p_context;
11576: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11577:
11578: END IF;
11579:
11580:

Line 11587: IF P_PA_debug_mode = 'Y' THEN

11583: p_token1 => l_token_name,
11584: p_value1 => l_mod_name);
11585:
11586:
11587: IF P_PA_debug_mode = 'Y' THEN
11588: pa_debug.g_err_stage:='Invalid Arguments Passed';
11589: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11590: END IF;
11591: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11584: p_value1 => l_mod_name);
11585:
11586:
11587: IF P_PA_debug_mode = 'Y' THEN
11588: pa_debug.g_err_stage:='Invalid Arguments Passed';
11589: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11590: END IF;
11591: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11592:

Line 11589: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11585:
11586:
11587: IF P_PA_debug_mode = 'Y' THEN
11588: pa_debug.g_err_stage:='Invalid Arguments Passed';
11589: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11590: END IF;
11591: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11592:
11593: END IF;

Line 11603: IF P_PA_debug_mode = 'Y' THEN

11599: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN
11600: IF (p_ci_id IS NULL)
11601: THEN
11602:
11603: IF P_PA_debug_mode = 'Y' THEN
11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11606:
11607: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11600: IF (p_ci_id IS NULL)
11601: THEN
11602:
11603: IF P_PA_debug_mode = 'Y' THEN
11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11606:
11607: pa_debug.g_err_stage:='p_context = '||p_context;
11608: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11601: THEN
11602:
11603: IF P_PA_debug_mode = 'Y' THEN
11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11606:
11607: pa_debug.g_err_stage:='p_context = '||p_context;
11608: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11609:

Line 11607: pa_debug.g_err_stage:='p_context = '||p_context;

11603: IF P_PA_debug_mode = 'Y' THEN
11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11606:
11607: pa_debug.g_err_stage:='p_context = '||p_context;
11608: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11609:
11610: END IF;
11611:

Line 11608: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11604: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11605: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11606:
11607: pa_debug.g_err_stage:='p_context = '||p_context;
11608: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11609:
11610: END IF;
11611:
11612:

Line 11619: IF P_PA_debug_mode = 'Y' THEN

11615: p_token1 => l_token_name,
11616: p_value1 => l_mod_name);
11617:
11618:
11619: IF P_PA_debug_mode = 'Y' THEN
11620: pa_debug.g_err_stage:='Invalid Arguments Passed';
11621: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11622: END IF;
11623: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11616: p_value1 => l_mod_name);
11617:
11618:
11619: IF P_PA_debug_mode = 'Y' THEN
11620: pa_debug.g_err_stage:='Invalid Arguments Passed';
11621: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11622: END IF;
11623: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11624:

Line 11621: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11617:
11618:
11619: IF P_PA_debug_mode = 'Y' THEN
11620: pa_debug.g_err_stage:='Invalid Arguments Passed';
11621: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11622: END IF;
11623: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11624:
11625: END IF;

Line 11631: IF P_PA_debug_mode = 'Y' THEN

11627: ELSIF p_context = PA_FP_CONSTANTS_PKG.G_PLAN_TYPE_CWV_AMOUNTS THEN
11628: IF (p_fin_plan_type_id IS NULL)
11629: THEN
11630:
11631: IF P_PA_debug_mode = 'Y' THEN
11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11634:
11635: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

11628: IF (p_fin_plan_type_id IS NULL)
11629: THEN
11630:
11631: IF P_PA_debug_mode = 'Y' THEN
11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11634:
11635: pa_debug.g_err_stage:='p_context = '||p_context;
11636: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11629: THEN
11630:
11631: IF P_PA_debug_mode = 'Y' THEN
11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11634:
11635: pa_debug.g_err_stage:='p_context = '||p_context;
11636: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11637:

Line 11635: pa_debug.g_err_stage:='p_context = '||p_context;

11631: IF P_PA_debug_mode = 'Y' THEN
11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11634:
11635: pa_debug.g_err_stage:='p_context = '||p_context;
11636: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11637:
11638: END IF;
11639:

Line 11636: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11632: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11633: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11634:
11635: pa_debug.g_err_stage:='p_context = '||p_context;
11636: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11637:
11638: END IF;
11639:
11640:

Line 11647: IF P_PA_debug_mode = 'Y' THEN

11643: p_token1 => l_token_name,
11644: p_value1 => l_mod_name);
11645:
11646:
11647: IF P_PA_debug_mode = 'Y' THEN
11648: pa_debug.g_err_stage:='Invalid Arguments Passed';
11649: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11650: END IF;
11651: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

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

11644: p_value1 => l_mod_name);
11645:
11646:
11647: IF P_PA_debug_mode = 'Y' THEN
11648: pa_debug.g_err_stage:='Invalid Arguments Passed';
11649: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11650: END IF;
11651: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11652:

Line 11649: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11645:
11646:
11647: IF P_PA_debug_mode = 'Y' THEN
11648: pa_debug.g_err_stage:='Invalid Arguments Passed';
11649: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11650: END IF;
11651: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11652:
11653: END IF;

Line 11657: IF P_PA_debug_mode = 'Y' THEN

11653: END IF;
11654:
11655: END IF;
11656:
11657: IF P_PA_debug_mode = 'Y' THEN
11658: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11659: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11660: END IF;
11661:

Line 11658: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';

11654:
11655: END IF;
11656:
11657: IF P_PA_debug_mode = 'Y' THEN
11658: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11659: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11660: END IF;
11661:
11662: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN

Line 11659: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11655: END IF;
11656:
11657: IF P_PA_debug_mode = 'Y' THEN
11658: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11659: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11660: END IF;
11661:
11662: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN
11663: Pa_Fp_Control_Items_Utils.GET_CI_VERSIONS(P_ci_id => p_ci_id,

Line 11672: IF P_PA_debug_mode = 'Y' THEN

11668: x_msg_data => l_msg_data,
11669: X_msg_count => l_msg_count);
11670:
11671: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11672: IF P_PA_debug_mode = 'Y' THEN
11673: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11674: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11675: END IF;
11676: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11673: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';

11669: X_msg_count => l_msg_count);
11670:
11671: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11672: IF P_PA_debug_mode = 'Y' THEN
11673: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11674: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11675: END IF;
11676: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11677: END IF;

Line 11674: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11670:
11671: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11672: IF P_PA_debug_mode = 'Y' THEN
11673: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11674: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11675: END IF;
11676: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11677: END IF;
11678:

Line 11699: IF P_PA_debug_mode = 'Y' THEN

11695: ,x_msg_data => l_msg_data
11696: ,X_msg_count => l_msg_count);
11697:
11698: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11699: IF P_PA_debug_mode = 'Y' THEN
11700: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11701: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11702: END IF;
11703: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11700: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';

11696: ,X_msg_count => l_msg_count);
11697:
11698: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11699: IF P_PA_debug_mode = 'Y' THEN
11700: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11701: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11702: END IF;
11703: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11704: END IF;

Line 11701: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11697:
11698: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11699: IF P_PA_debug_mode = 'Y' THEN
11700: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11701: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11702: END IF;
11703: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11704: END IF;
11705: ELSIF p_context = PA_FP_CONSTANTS_PKG.G_PLAN_TYPE_CWV_AMOUNTS THEN

Line 11716: IF P_PA_debug_mode = 'Y' THEN

11712: ,x_msg_data => l_msg_data
11713: ,X_msg_count => l_msg_count);
11714:
11715: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11716: IF P_PA_debug_mode = 'Y' THEN
11717: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11719: END IF;
11720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11717: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';

11713: ,X_msg_count => l_msg_count);
11714:
11715: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11716: IF P_PA_debug_mode = 'Y' THEN
11717: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11719: END IF;
11720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11721: END IF;

Line 11718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11714:
11715: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11716: IF P_PA_debug_mode = 'Y' THEN
11717: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11718: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11719: END IF;
11720: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11721: END IF;
11722:

Line 11747: IF P_PA_debug_mode = 'Y' THEN

11743: ,x_msg_data => l_msg_data
11744: ,X_msg_count => l_msg_count);
11745:
11746: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11747: IF P_PA_debug_mode = 'Y' THEN
11748: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11749: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11750: END IF;
11751: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11748: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';

11744: ,X_msg_count => l_msg_count);
11745:
11746: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11747: IF P_PA_debug_mode = 'Y' THEN
11748: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11749: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11750: END IF;
11751: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11752: END IF;

Line 11749: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11745:
11746: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11747: IF P_PA_debug_mode = 'Y' THEN
11748: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11749: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11750: END IF;
11751: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11752: END IF;
11753: END IF;

Line 11757: IF P_PA_debug_mode = 'Y' THEN

11753: END IF;
11754: END IF;
11755:
11756:
11757: IF P_PA_debug_mode = 'Y' THEN
11758: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11759: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11760:
11761: pa_debug.reset_curr_function;

Line 11758: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';

11754: END IF;
11755:
11756:
11757: IF P_PA_debug_mode = 'Y' THEN
11758: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11759: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11760:
11761: pa_debug.reset_curr_function;
11762: END IF;

Line 11759: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11755:
11756:
11757: IF P_PA_debug_mode = 'Y' THEN
11758: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11759: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11760:
11761: pa_debug.reset_curr_function;
11762: END IF;
11763: EXCEPTION

Line 11761: pa_debug.reset_curr_function;

11757: IF P_PA_debug_mode = 'Y' THEN
11758: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11759: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11760:
11761: pa_debug.reset_curr_function;
11762: END IF;
11763: EXCEPTION
11764: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11765: l_msg_count := FND_MSG_PUB.count_msg;

Line 11782: IF P_PA_DEBUG_MODE = 'Y' THEN

11778: x_msg_count := l_msg_count;
11779: END IF;
11780: x_return_status := FND_API.G_RET_STS_ERROR;
11781:
11782: IF P_PA_DEBUG_MODE = 'Y' THEN
11783: pa_debug.reset_curr_function;
11784: END IF;
11785: RETURN;
11786:

Line 11783: pa_debug.reset_curr_function;

11779: END IF;
11780: x_return_status := FND_API.G_RET_STS_ERROR;
11781:
11782: IF P_PA_DEBUG_MODE = 'Y' THEN
11783: pa_debug.reset_curr_function;
11784: END IF;
11785: RETURN;
11786:
11787: WHEN Others THEN

Line 11794: IF P_PA_DEBUG_MODE = 'Y' THEN

11790: x_msg_data := SQLERRM;
11791:
11792: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11793: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11794: IF P_PA_DEBUG_MODE = 'Y' THEN
11795: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11796: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11797: pa_debug.reset_curr_function;
11798: END IF;

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

11791:
11792: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11793: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11794: IF P_PA_DEBUG_MODE = 'Y' THEN
11795: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11796: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11797: pa_debug.reset_curr_function;
11798: END IF;
11799: RAISE;

Line 11796: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11792: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11793: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11794: IF P_PA_DEBUG_MODE = 'Y' THEN
11795: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11796: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11797: pa_debug.reset_curr_function;
11798: END IF;
11799: RAISE;
11800:

Line 11797: pa_debug.reset_curr_function;

11793: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11794: IF P_PA_DEBUG_MODE = 'Y' THEN
11795: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11796: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11797: pa_debug.reset_curr_function;
11798: END IF;
11799: RAISE;
11800:
11801:

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

11848: l_delete_ok VARCHAR2(1);
11849:
11850: BEGIN
11851:
11852: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11853:
11854: -- Input Paramter Validations
11855: IF P_PA_debug_mode = 'Y' THEN
11856: pa_debug.g_err_stage:='Validating input parameters';

Line 11855: IF P_PA_debug_mode = 'Y' THEN

11851:
11852: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11853:
11854: -- Input Paramter Validations
11855: IF P_PA_debug_mode = 'Y' THEN
11856: pa_debug.g_err_stage:='Validating input parameters';
11857: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11858: END IF;
11859:

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

11852: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11853:
11854: -- Input Paramter Validations
11855: IF P_PA_debug_mode = 'Y' THEN
11856: pa_debug.g_err_stage:='Validating input parameters';
11857: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11858: END IF;
11859:
11860: IF (p_bill_rate_sch_id IS NULL)

Line 11857: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11853:
11854: -- Input Paramter Validations
11855: IF P_PA_debug_mode = 'Y' THEN
11856: pa_debug.g_err_stage:='Validating input parameters';
11857: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11858: END IF;
11859:
11860: IF (p_bill_rate_sch_id IS NULL)
11861: THEN

Line 11862: IF P_PA_debug_mode = 'Y' THEN

11858: END IF;
11859:
11860: IF (p_bill_rate_sch_id IS NULL)
11861: THEN
11862: IF P_PA_debug_mode = 'Y' THEN
11863: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11864: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11865: END IF;
11866: END IF;

Line 11863: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';

11859:
11860: IF (p_bill_rate_sch_id IS NULL)
11861: THEN
11862: IF P_PA_debug_mode = 'Y' THEN
11863: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11864: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11865: END IF;
11866: END IF;
11867:

Line 11864: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11860: IF (p_bill_rate_sch_id IS NULL)
11861: THEN
11862: IF P_PA_debug_mode = 'Y' THEN
11863: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11864: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11865: END IF;
11866: END IF;
11867:
11868: BEGIN

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

11910: l_delete_ok VARCHAR2(1);
11911:
11912: BEGIN
11913:
11914: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11915:
11916: -- Input Paramter Validations
11917: IF P_PA_debug_mode = 'Y' THEN
11918: pa_debug.g_err_stage:='Validating input parameters';

Line 11917: IF P_PA_debug_mode = 'Y' THEN

11913:
11914: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11915:
11916: -- Input Paramter Validations
11917: IF P_PA_debug_mode = 'Y' THEN
11918: pa_debug.g_err_stage:='Validating input parameters';
11919: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11920: END IF;
11921:

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

11914: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11915:
11916: -- Input Paramter Validations
11917: IF P_PA_debug_mode = 'Y' THEN
11918: pa_debug.g_err_stage:='Validating input parameters';
11919: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11920: END IF;
11921:
11922: IF (p_ind_rate_sch_id IS NULL)

Line 11919: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11915:
11916: -- Input Paramter Validations
11917: IF P_PA_debug_mode = 'Y' THEN
11918: pa_debug.g_err_stage:='Validating input parameters';
11919: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11920: END IF;
11921:
11922: IF (p_ind_rate_sch_id IS NULL)
11923: THEN

Line 11924: IF P_PA_debug_mode = 'Y' THEN

11920: END IF;
11921:
11922: IF (p_ind_rate_sch_id IS NULL)
11923: THEN
11924: IF P_PA_debug_mode = 'Y' THEN
11925: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11926: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11927: END IF;
11928: END IF;

Line 11925: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';

11921:
11922: IF (p_ind_rate_sch_id IS NULL)
11923: THEN
11924: IF P_PA_debug_mode = 'Y' THEN
11925: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11926: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11927: END IF;
11928: END IF;
11929:

Line 11926: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11922: IF (p_ind_rate_sch_id IS NULL)
11923: THEN
11924: IF P_PA_debug_mode = 'Y' THEN
11925: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11926: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11927: END IF;
11928: END IF;
11929:
11930: BEGIN

Line 11976: IF P_PA_DEBUG_MODE = 'Y' THEN

11972: l_currency_code VARCHAR2(30);
11973: is_valid_flag VARCHAR2(30);
11974:
11975: BEGIN
11976: IF P_PA_DEBUG_MODE = 'Y' THEN
11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11978: p_debug_mode => P_PA_DEBUG_MODE );
11979:
11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';

Line 11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',

11973: is_valid_flag VARCHAR2(30);
11974:
11975: BEGIN
11976: IF P_PA_DEBUG_MODE = 'Y' THEN
11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11978: p_debug_mode => P_PA_DEBUG_MODE );
11979:
11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

Line 11978: p_debug_mode => P_PA_DEBUG_MODE );

11974:
11975: BEGIN
11976: IF P_PA_DEBUG_MODE = 'Y' THEN
11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11978: p_debug_mode => P_PA_DEBUG_MODE );
11979:
11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11982:

Line 11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';

11976: IF P_PA_DEBUG_MODE = 'Y' THEN
11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11978: p_debug_mode => P_PA_DEBUG_MODE );
11979:
11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11982:
11983: -- Checking, if the input parameters are null
11984: pa_debug.g_err_stage:='Validating Input Parameters';

Line 11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

11977: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11978: p_debug_mode => P_PA_DEBUG_MODE );
11979:
11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11982:
11983: -- Checking, if the input parameters are null
11984: pa_debug.g_err_stage:='Validating Input Parameters';
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11984: pa_debug.g_err_stage:='Validating Input Parameters';

11980: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11982:
11983: -- Checking, if the input parameters are null
11984: pa_debug.g_err_stage:='Validating Input Parameters';
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986: END IF;
11987:
11988: IF p_project_id IS NULL OR p_context IS NULL THEN

Line 11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11981: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11982:
11983: -- Checking, if the input parameters are null
11984: pa_debug.g_err_stage:='Validating Input Parameters';
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986: END IF;
11987:
11988: IF p_project_id IS NULL OR p_context IS NULL THEN
11989: IF P_PA_debug_mode = 'Y' THEN

Line 11989: IF P_PA_debug_mode = 'Y' THEN

11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986: END IF;
11987:
11988: IF p_project_id IS NULL OR p_context IS NULL THEN
11989: IF P_PA_debug_mode = 'Y' THEN
11990: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11992:
11993: pa_debug.g_err_stage:='p_context = '||p_context;

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

11986: END IF;
11987:
11988: IF p_project_id IS NULL OR p_context IS NULL THEN
11989: IF P_PA_debug_mode = 'Y' THEN
11990: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11992:
11993: pa_debug.g_err_stage:='p_context = '||p_context;
11994: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11987:
11988: IF p_project_id IS NULL OR p_context IS NULL THEN
11989: IF P_PA_debug_mode = 'Y' THEN
11990: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11992:
11993: pa_debug.g_err_stage:='p_context = '||p_context;
11994: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11995:

Line 11993: pa_debug.g_err_stage:='p_context = '||p_context;

11989: IF P_PA_debug_mode = 'Y' THEN
11990: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11992:
11993: pa_debug.g_err_stage:='p_context = '||p_context;
11994: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11995:
11996: END IF;
11997:

Line 11994: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11990: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11991: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11992:
11993: pa_debug.g_err_stage:='p_context = '||p_context;
11994: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11995:
11996: END IF;
11997:
11998: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 12004: IF P_PA_DEBUG_MODE = 'Y' THEN

12000: p_token1 => l_token_name,
12001: p_value1 => l_mod_name);
12002:
12003:
12004: IF P_PA_DEBUG_MODE = 'Y' THEN
12005: pa_debug.g_err_stage:='Invalid Arguments Passed';
12006: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12007: pa_debug.reset_err_stack;
12008: END IF;

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

12001: p_value1 => l_mod_name);
12002:
12003:
12004: IF P_PA_DEBUG_MODE = 'Y' THEN
12005: pa_debug.g_err_stage:='Invalid Arguments Passed';
12006: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12007: pa_debug.reset_err_stack;
12008: END IF;
12009: RAISE INVALID_ARG_EXC;

Line 12006: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12002:
12003:
12004: IF P_PA_DEBUG_MODE = 'Y' THEN
12005: pa_debug.g_err_stage:='Invalid Arguments Passed';
12006: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12007: pa_debug.reset_err_stack;
12008: END IF;
12009: RAISE INVALID_ARG_EXC;
12010: ELSE

Line 12007: pa_debug.reset_err_stack;

12003:
12004: IF P_PA_DEBUG_MODE = 'Y' THEN
12005: pa_debug.g_err_stage:='Invalid Arguments Passed';
12006: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12007: pa_debug.reset_err_stack;
12008: END IF;
12009: RAISE INVALID_ARG_EXC;
12010: ELSE
12011: IF p_context = 'FINPLAN' AND p_budget_version_id IS NULL THEN

Line 12018: IF P_PA_DEBUG_MODE = 'Y' THEN

12014: p_token1 => l_token_name,
12015: p_value1 => l_mod_name);
12016:
12017:
12018: IF P_PA_DEBUG_MODE = 'Y' THEN
12019: pa_debug.g_err_stage:='Invalid Arguments Passed';
12020: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12021: pa_debug.reset_err_stack;
12022: END IF;

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

12015: p_value1 => l_mod_name);
12016:
12017:
12018: IF P_PA_DEBUG_MODE = 'Y' THEN
12019: pa_debug.g_err_stage:='Invalid Arguments Passed';
12020: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12021: pa_debug.reset_err_stack;
12022: END IF;
12023: RAISE INVALID_ARG_EXC;

Line 12020: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12016:
12017:
12018: IF P_PA_DEBUG_MODE = 'Y' THEN
12019: pa_debug.g_err_stage:='Invalid Arguments Passed';
12020: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12021: pa_debug.reset_err_stack;
12022: END IF;
12023: RAISE INVALID_ARG_EXC;
12024: END IF;

Line 12021: pa_debug.reset_err_stack;

12017:
12018: IF P_PA_DEBUG_MODE = 'Y' THEN
12019: pa_debug.g_err_stage:='Invalid Arguments Passed';
12020: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12021: pa_debug.reset_err_stack;
12022: END IF;
12023: RAISE INVALID_ARG_EXC;
12024: END IF;
12025: END IF;

Line 12027: IF P_PA_DEBUG_MODE = 'Y' THEN

12023: RAISE INVALID_ARG_EXC;
12024: END IF;
12025: END IF;
12026:
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Input Parameters validation done';
12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:

Line 12028: pa_debug.g_err_stage:='Input Parameters validation done';

12024: END IF;
12025: END IF;
12026:
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Input Parameters validation done';
12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:
12032: -- Getting the project currency code

Line 12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12025: END IF;
12026:
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Input Parameters validation done';
12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:
12032: -- Getting the project currency code
12033: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 12033: IF P_PA_DEBUG_MODE = 'Y' THEN

12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:
12032: -- Getting the project currency code
12033: IF P_PA_DEBUG_MODE = 'Y' THEN
12034: pa_debug.g_err_stage:='Getting the project currency code';
12035: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12036: END IF;
12037:

Line 12034: pa_debug.g_err_stage:='Getting the project currency code';

12030: END IF;
12031:
12032: -- Getting the project currency code
12033: IF P_PA_DEBUG_MODE = 'Y' THEN
12034: pa_debug.g_err_stage:='Getting the project currency code';
12035: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12036: END IF;
12037:
12038: SELECT project_currency_code

Line 12035: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12031:
12032: -- Getting the project currency code
12033: IF P_PA_DEBUG_MODE = 'Y' THEN
12034: pa_debug.g_err_stage:='Getting the project currency code';
12035: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12036: END IF;
12037:
12038: SELECT project_currency_code
12039: INTO l_currency_code

Line 12043: IF P_PA_DEBUG_MODE = 'Y' THEN

12039: INTO l_currency_code
12040: FROM pa_projects_all
12041: WHERE project_id = p_project_id;
12042:
12043: IF P_PA_DEBUG_MODE = 'Y' THEN
12044: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12045: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12046: END IF;
12047:

Line 12044: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;

12040: FROM pa_projects_all
12041: WHERE project_id = p_project_id;
12042:
12043: IF P_PA_DEBUG_MODE = 'Y' THEN
12044: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12045: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12046: END IF;
12047:
12048: IF p_context = 'WORKPLAN' THEN

Line 12045: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12041: WHERE project_id = p_project_id;
12042:
12043: IF P_PA_DEBUG_MODE = 'Y' THEN
12044: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12045: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12046: END IF;
12047:
12048: IF p_context = 'WORKPLAN' THEN
12049: BEGIN

Line 12079: IF P_PA_DEBUG_MODE = 'Y' THEN

12075: is_valid_flag := 'Y';
12076: END;
12077: END IF;
12078:
12079: IF P_PA_DEBUG_MODE = 'Y' THEN
12080: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12082: END IF;
12083:

Line 12080: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;

12076: END;
12077: END IF;
12078:
12079: IF P_PA_DEBUG_MODE = 'Y' THEN
12080: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12082: END IF;
12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

12077: END IF;
12078:
12079: IF P_PA_DEBUG_MODE = 'Y' THEN
12080: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12082: END IF;
12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN
12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';

Line 12084: IF P_PA_DEBUG_MODE = 'Y' THEN

12080: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12082: END IF;
12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN
12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12087: pa_debug.reset_curr_function;
12088: END IF;

Line 12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';

12081: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12082: END IF;
12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN
12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12087: pa_debug.reset_curr_function;
12088: END IF;
12089: RETURN is_valid_flag;

Line 12086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

12082: END IF;
12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN
12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12087: pa_debug.reset_curr_function;
12088: END IF;
12089: RETURN is_valid_flag;
12090:

Line 12087: pa_debug.reset_curr_function;

12083:
12084: IF P_PA_DEBUG_MODE = 'Y' THEN
12085: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12086: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12087: pa_debug.reset_curr_function;
12088: END IF;
12089: RETURN is_valid_flag;
12090:
12091: EXCEPTION

Line 12095: IF P_PA_DEBUG_MODE = 'Y' THEN

12091: EXCEPTION
12092: WHEN OTHERS THEN
12093: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12094: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12095: IF P_PA_DEBUG_MODE = 'Y' THEN
12096: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12097: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12098: pa_debug.reset_curr_function;
12099: END IF;

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

12092: WHEN OTHERS THEN
12093: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12094: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12095: IF P_PA_DEBUG_MODE = 'Y' THEN
12096: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12097: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12098: pa_debug.reset_curr_function;
12099: END IF;
12100: RAISE;

Line 12097: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

12093: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12094: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12095: IF P_PA_DEBUG_MODE = 'Y' THEN
12096: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12097: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12098: pa_debug.reset_curr_function;
12099: END IF;
12100: RAISE;
12101: END Validate_Uncheck_MC_Flag;

Line 12098: pa_debug.reset_curr_function;

12094: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12095: IF P_PA_DEBUG_MODE = 'Y' THEN
12096: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12097: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12098: pa_debug.reset_curr_function;
12099: END IF;
12100: RAISE;
12101: END Validate_Uncheck_MC_Flag;
12102:

Line 12135: IF P_PA_DEBUG_MODE = 'Y' THEN

12131: WHERE project_id = p_project_id;
12132: project_info_rec project_info_cur%ROWTYPE;
12133: BEGIN
12134: -- Set curr function
12135: IF P_PA_DEBUG_MODE = 'Y' THEN
12136: pa_debug.set_curr_function(
12137: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12138: ,p_debug_mode => P_PA_DEBUG_MODE );
12139:

Line 12136: pa_debug.set_curr_function(

12132: project_info_rec project_info_cur%ROWTYPE;
12133: BEGIN
12134: -- Set curr function
12135: IF P_PA_DEBUG_MODE = 'Y' THEN
12136: pa_debug.set_curr_function(
12137: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12138: ,p_debug_mode => P_PA_DEBUG_MODE );
12139:
12140: -- Validate input parameters

Line 12138: ,p_debug_mode => P_PA_DEBUG_MODE );

12134: -- Set curr function
12135: IF P_PA_DEBUG_MODE = 'Y' THEN
12136: pa_debug.set_curr_function(
12137: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12138: ,p_debug_mode => P_PA_DEBUG_MODE );
12139:
12140: -- Validate input parameters
12141: pa_debug.g_err_stage:='Validating input parameters';
12142: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

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

12137: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12138: ,p_debug_mode => P_PA_DEBUG_MODE );
12139:
12140: -- Validate input parameters
12141: pa_debug.g_err_stage:='Validating input parameters';
12142: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12143: END IF;
12144:
12145: IF (p_project_id IS NULL) OR

Line 12142: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

12138: ,p_debug_mode => P_PA_DEBUG_MODE );
12139:
12140: -- Validate input parameters
12141: pa_debug.g_err_stage:='Validating input parameters';
12142: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12143: END IF;
12144:
12145: IF (p_project_id IS NULL) OR
12146: (p_context IS NULL) OR

Line 12151: IF P_PA_DEBUG_MODE = 'Y' THEN

12147: (p_context = 'FINPLAN' AND nvl(p_fin_plan_version_id, -99) = -99) OR
12148: (p_txn_currency_code IS NULL)
12149: THEN
12150:
12151: IF P_PA_DEBUG_MODE = 'Y' THEN
12152: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;

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

12148: (p_txn_currency_code IS NULL)
12149: THEN
12150:
12151: IF P_PA_DEBUG_MODE = 'Y' THEN
12152: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12149: THEN
12150:
12151: IF P_PA_DEBUG_MODE = 'Y' THEN
12152: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157:

Line 12155: pa_debug.g_err_stage:='p_context = '||p_context;

12151: IF P_PA_DEBUG_MODE = 'Y' THEN
12152: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157:
12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12152: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157:
12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12160:

Line 12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;

12154:
12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157:
12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12160:
12161: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;
12162: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12155: pa_debug.g_err_stage:='p_context = '||p_context;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157:
12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12160:
12161: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;
12162: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12163: END IF;

Line 12161: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;

12157:
12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12160:
12161: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;
12162: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12163: END IF;
12164:
12165: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12162: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12158: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12159: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12160:
12161: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;
12162: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12163: END IF;
12164:
12165: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12166: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12228: IF P_PA_DEBUG_MODE = 'Y' THEN

12224: END IF;
12225:
12226: END IF; -- p_context
12227:
12228: IF P_PA_DEBUG_MODE = 'Y' THEN
12229: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12230: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12231:
12232: -- reset curr function

Line 12229: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';

12225:
12226: END IF; -- p_context
12227:
12228: IF P_PA_DEBUG_MODE = 'Y' THEN
12229: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12230: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12231:
12232: -- reset curr function
12233: pa_debug.reset_curr_function();

Line 12230: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

12226: END IF; -- p_context
12227:
12228: IF P_PA_DEBUG_MODE = 'Y' THEN
12229: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12230: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12231:
12232: -- reset curr function
12233: pa_debug.reset_curr_function();
12234: END IF;

Line 12233: pa_debug.reset_curr_function();

12229: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12230: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12231:
12232: -- reset curr function
12233: pa_debug.reset_curr_function();
12234: END IF;
12235: RETURN l_delete_ok_flag;
12236:
12237: EXCEPTION

Line 12243: IF P_PA_DEBUG_MODE = 'Y' THEN

12239:
12240: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12241: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12242:
12243: IF P_PA_DEBUG_MODE = 'Y' THEN
12244: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12245: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12246:
12247: -- reset curr function

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

12240: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12241: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12242:
12243: IF P_PA_DEBUG_MODE = 'Y' THEN
12244: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12245: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12246:
12247: -- reset curr function
12248: pa_debug.Reset_Curr_Function();

Line 12245: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12241: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12242:
12243: IF P_PA_DEBUG_MODE = 'Y' THEN
12244: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12245: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12246:
12247: -- reset curr function
12248: pa_debug.Reset_Curr_Function();
12249: END IF;

Line 12248: pa_debug.Reset_Curr_Function();

12244: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12245: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12246:
12247: -- reset curr function
12248: pa_debug.Reset_Curr_Function();
12249: END IF;
12250: RAISE;
12251: END Check_delete_txn_cur_ok;
12252:

Line 12265: IF P_PA_DEBUG_MODE = 'Y' THEN

12261: IS
12262: l_amounts_exist_flag VARCHAR2(1) := 'N';
12263: BEGIN
12264: -- Set curr function
12265: IF P_PA_DEBUG_MODE = 'Y' THEN
12266: pa_debug.set_curr_function(
12267: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12268: ,p_debug_mode => P_PA_DEBUG_MODE );
12269:

Line 12266: pa_debug.set_curr_function(

12262: l_amounts_exist_flag VARCHAR2(1) := 'N';
12263: BEGIN
12264: -- Set curr function
12265: IF P_PA_DEBUG_MODE = 'Y' THEN
12266: pa_debug.set_curr_function(
12267: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12268: ,p_debug_mode => P_PA_DEBUG_MODE );
12269:
12270: -- Validate input parameters

Line 12268: ,p_debug_mode => P_PA_DEBUG_MODE );

12264: -- Set curr function
12265: IF P_PA_DEBUG_MODE = 'Y' THEN
12266: pa_debug.set_curr_function(
12267: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12268: ,p_debug_mode => P_PA_DEBUG_MODE );
12269:
12270: -- Validate input parameters
12271:
12272: pa_debug.g_err_stage:='Validating input parameters';

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

12268: ,p_debug_mode => P_PA_DEBUG_MODE );
12269:
12270: -- Validate input parameters
12271:
12272: pa_debug.g_err_stage:='Validating input parameters';
12273: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12274: END IF;
12275:
12276: IF (p_project_id IS NULL)

Line 12273: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);

12269:
12270: -- Validate input parameters
12271:
12272: pa_debug.g_err_stage:='Validating input parameters';
12273: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12274: END IF;
12275:
12276: IF (p_project_id IS NULL)
12277: THEN

Line 12279: IF P_PA_DEBUG_MODE = 'Y' THEN

12275:
12276: IF (p_project_id IS NULL)
12277: THEN
12278:
12279: IF P_PA_DEBUG_MODE = 'Y' THEN
12280: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12281: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12282: END IF;
12283:

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

12276: IF (p_project_id IS NULL)
12277: THEN
12278:
12279: IF P_PA_DEBUG_MODE = 'Y' THEN
12280: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12281: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12282: END IF;
12283:
12284: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12281: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);

12277: THEN
12278:
12279: IF P_PA_DEBUG_MODE = 'Y' THEN
12280: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12281: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12282: END IF;
12283:
12284: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12285: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12309: IF P_PA_DEBUG_MODE = 'Y' THEN

12305: l_amounts_exist_flag := 'N';
12306: End;
12307:
12308:
12309: IF P_PA_DEBUG_MODE = 'Y' THEN
12310: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12311: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12312:
12313: -- reset curr function

Line 12310: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';

12306: End;
12307:
12308:
12309: IF P_PA_DEBUG_MODE = 'Y' THEN
12310: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12311: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12312:
12313: -- reset curr function
12314: pa_debug.reset_curr_function();

Line 12311: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);

12307:
12308:
12309: IF P_PA_DEBUG_MODE = 'Y' THEN
12310: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12311: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12312:
12313: -- reset curr function
12314: pa_debug.reset_curr_function();
12315: END IF;

Line 12314: pa_debug.reset_curr_function();

12310: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12311: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12312:
12313: -- reset curr function
12314: pa_debug.reset_curr_function();
12315: END IF;
12316: RETURN l_amounts_exist_flag;
12317:
12318: EXCEPTION

Line 12324: IF P_PA_DEBUG_MODE = 'Y' THEN

12320:
12321: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12322: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12323:
12324: IF P_PA_DEBUG_MODE = 'Y' THEN
12325: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12326: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12327:
12328: -- reset curr function

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

12321: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12322: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12323:
12324: IF P_PA_DEBUG_MODE = 'Y' THEN
12325: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12326: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12327:
12328: -- reset curr function
12329: pa_debug.Reset_Curr_Function();

Line 12326: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);

12322: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12323:
12324: IF P_PA_DEBUG_MODE = 'Y' THEN
12325: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12326: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12327:
12328: -- reset curr function
12329: pa_debug.Reset_Curr_Function();
12330: END IF;

Line 12329: pa_debug.Reset_Curr_Function();

12325: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12326: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12327:
12328: -- reset curr function
12329: pa_debug.Reset_Curr_Function();
12330: END IF;
12331: RAISE;
12332: END check_if_amounts_exist_for_wp;
12333:

Line 12346: IF P_PA_DEBUG_MODE = 'Y' THEN

12342: IS
12343: l_task_assignments_exist_flag VARCHAR2(1);
12344: BEGIN
12345: -- Set curr function
12346: IF P_PA_DEBUG_MODE = 'Y' THEN
12347: pa_debug.set_curr_function(
12348: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12349: ,p_debug_mode => P_PA_DEBUG_MODE );
12350:

Line 12347: pa_debug.set_curr_function(

12343: l_task_assignments_exist_flag VARCHAR2(1);
12344: BEGIN
12345: -- Set curr function
12346: IF P_PA_DEBUG_MODE = 'Y' THEN
12347: pa_debug.set_curr_function(
12348: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12349: ,p_debug_mode => P_PA_DEBUG_MODE );
12350:
12351: -- Validate input parameters

Line 12349: ,p_debug_mode => P_PA_DEBUG_MODE );

12345: -- Set curr function
12346: IF P_PA_DEBUG_MODE = 'Y' THEN
12347: pa_debug.set_curr_function(
12348: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12349: ,p_debug_mode => P_PA_DEBUG_MODE );
12350:
12351: -- Validate input parameters
12352:
12353: pa_debug.g_err_stage:='Validating input parameters';

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

12349: ,p_debug_mode => P_PA_DEBUG_MODE );
12350:
12351: -- Validate input parameters
12352:
12353: pa_debug.g_err_stage:='Validating input parameters';
12354: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12355: END IF;
12356:
12357: IF (p_project_id IS NULL)

Line 12354: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);

12350:
12351: -- Validate input parameters
12352:
12353: pa_debug.g_err_stage:='Validating input parameters';
12354: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12355: END IF;
12356:
12357: IF (p_project_id IS NULL)
12358: THEN

Line 12360: IF P_PA_DEBUG_MODE = 'Y' THEN

12356:
12357: IF (p_project_id IS NULL)
12358: THEN
12359:
12360: IF P_PA_DEBUG_MODE = 'Y' THEN
12361: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12362: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12363: END IF;
12364:

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

12357: IF (p_project_id IS NULL)
12358: THEN
12359:
12360: IF P_PA_DEBUG_MODE = 'Y' THEN
12361: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12362: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12363: END IF;
12364:
12365: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12362: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);

12358: THEN
12359:
12360: IF P_PA_DEBUG_MODE = 'Y' THEN
12361: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12362: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12363: END IF;
12364:
12365: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12366: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12391: IF P_PA_DEBUG_MODE = 'Y' THEN

12387: l_task_assignments_exist_flag := 'N';
12388: End;
12389:
12390:
12391: IF P_PA_DEBUG_MODE = 'Y' THEN
12392: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12393: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12394:
12395: -- reset curr function

Line 12392: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';

12388: End;
12389:
12390:
12391: IF P_PA_DEBUG_MODE = 'Y' THEN
12392: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12393: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12394:
12395: -- reset curr function
12396: pa_debug.reset_curr_function();

Line 12393: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);

12389:
12390:
12391: IF P_PA_DEBUG_MODE = 'Y' THEN
12392: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12393: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12394:
12395: -- reset curr function
12396: pa_debug.reset_curr_function();
12397: END IF;

Line 12396: pa_debug.reset_curr_function();

12392: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12393: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12394:
12395: -- reset curr function
12396: pa_debug.reset_curr_function();
12397: END IF;
12398: RETURN l_task_assignments_exist_flag;
12399:
12400: EXCEPTION

Line 12406: IF P_PA_DEBUG_MODE = 'Y' THEN

12402:
12403: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12404: ,p_procedure_name => 'check_if_task_asgmts_exist');
12405:
12406: IF P_PA_DEBUG_MODE = 'Y' THEN
12407: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12408: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12409:
12410: -- reset curr function

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

12403: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12404: ,p_procedure_name => 'check_if_task_asgmts_exist');
12405:
12406: IF P_PA_DEBUG_MODE = 'Y' THEN
12407: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12408: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12409:
12410: -- reset curr function
12411: pa_debug.Reset_Curr_Function();

Line 12408: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);

12404: ,p_procedure_name => 'check_if_task_asgmts_exist');
12405:
12406: IF P_PA_DEBUG_MODE = 'Y' THEN
12407: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12408: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12409:
12410: -- reset curr function
12411: pa_debug.Reset_Curr_Function();
12412: END IF;

Line 12411: pa_debug.Reset_Curr_Function();

12407: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12408: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12409:
12410: -- reset curr function
12411: pa_debug.Reset_Curr_Function();
12412: END IF;
12413: RAISE;
12414: END check_if_task_asgmts_exist;
12415:

Line 12430: IF P_PA_DEBUG_MODE = 'Y' THEN

12426: IS
12427: l_amounts_exist_flag VARCHAR2(1) := 'N';
12428: BEGIN
12429: -- Set curr function
12430: IF P_PA_DEBUG_MODE = 'Y' THEN
12431: pa_debug.set_curr_function(
12432: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12433: ,p_debug_mode => P_PA_DEBUG_MODE );
12434:

Line 12431: pa_debug.set_curr_function(

12427: l_amounts_exist_flag VARCHAR2(1) := 'N';
12428: BEGIN
12429: -- Set curr function
12430: IF P_PA_DEBUG_MODE = 'Y' THEN
12431: pa_debug.set_curr_function(
12432: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12433: ,p_debug_mode => P_PA_DEBUG_MODE );
12434:
12435: -- Validate input parameters

Line 12433: ,p_debug_mode => P_PA_DEBUG_MODE );

12429: -- Set curr function
12430: IF P_PA_DEBUG_MODE = 'Y' THEN
12431: pa_debug.set_curr_function(
12432: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12433: ,p_debug_mode => P_PA_DEBUG_MODE );
12434:
12435: -- Validate input parameters
12436:
12437: pa_debug.g_err_stage:='Validating input parameters';

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

12433: ,p_debug_mode => P_PA_DEBUG_MODE );
12434:
12435: -- Validate input parameters
12436:
12437: pa_debug.g_err_stage:='Validating input parameters';
12438: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12439: END IF;
12440:
12441: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)

Line 12438: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);

12434:
12435: -- Validate input parameters
12436:
12437: pa_debug.g_err_stage:='Validating input parameters';
12438: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12439: END IF;
12440:
12441: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12442: THEN

Line 12444: IF P_PA_DEBUG_MODE = 'Y' THEN

12440:
12441: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12442: THEN
12443:
12444: IF P_PA_DEBUG_MODE = 'Y' THEN
12445: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12447:
12448: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;

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

12441: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12442: THEN
12443:
12444: IF P_PA_DEBUG_MODE = 'Y' THEN
12445: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12447:
12448: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12449: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12442: THEN
12443:
12444: IF P_PA_DEBUG_MODE = 'Y' THEN
12445: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12447:
12448: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12449: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12450: END IF;

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

12444: IF P_PA_DEBUG_MODE = 'Y' THEN
12445: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12447:
12448: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12449: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12450: END IF;
12451:
12452: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12449: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12445: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12446: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12447:
12448: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12449: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12450: END IF;
12451:
12452: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12453: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12477: IF P_PA_DEBUG_MODE = 'Y' THEN

12473: l_amounts_exist_flag := 'N';
12474: End;
12475:
12476:
12477: IF P_PA_DEBUG_MODE = 'Y' THEN
12478: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12479: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12480:
12481: -- reset curr function

Line 12478: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';

12474: End;
12475:
12476:
12477: IF P_PA_DEBUG_MODE = 'Y' THEN
12478: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12479: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12480:
12481: -- reset curr function
12482: pa_debug.reset_curr_function();

Line 12479: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);

12475:
12476:
12477: IF P_PA_DEBUG_MODE = 'Y' THEN
12478: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12479: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12480:
12481: -- reset curr function
12482: pa_debug.reset_curr_function();
12483: END IF;

Line 12482: pa_debug.reset_curr_function();

12478: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12479: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12480:
12481: -- reset curr function
12482: pa_debug.reset_curr_function();
12483: END IF;
12484: RETURN l_amounts_exist_flag;
12485:
12486: EXCEPTION

Line 12492: IF P_PA_DEBUG_MODE = 'Y' THEN

12488:
12489: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12490: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12491:
12492: IF P_PA_DEBUG_MODE = 'Y' THEN
12493: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12494: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12495:
12496: -- reset curr function

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

12489: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12490: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12491:
12492: IF P_PA_DEBUG_MODE = 'Y' THEN
12493: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12494: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12495:
12496: -- reset curr function
12497: pa_debug.Reset_Curr_Function();

Line 12494: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12490: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12491:
12492: IF P_PA_DEBUG_MODE = 'Y' THEN
12493: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12494: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12495:
12496: -- reset curr function
12497: pa_debug.Reset_Curr_Function();
12498: END IF;

Line 12497: pa_debug.Reset_Curr_Function();

12493: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12494: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12495:
12496: -- reset curr function
12497: pa_debug.Reset_Curr_Function();
12498: END IF;
12499: RAISE;
12500: END check_if_amounts_exist_for_fp;
12501:

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

12549: l_targ_ci_request_id pa_budget_versions.request_id%TYPE;
12550:
12551: BEGIN
12552:
12553: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
12554:
12555: x_msg_count := 0;
12556: x_return_status := FND_API.G_RET_STS_SUCCESS;
12557:

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

12555: x_msg_count := 0;
12556: x_return_status := FND_API.G_RET_STS_SUCCESS;
12557:
12558: IF l_debug_mode = 'Y' THEN
12559: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
12560: p_debug_mode => l_debug_mode );
12561: END IF;
12562: IF l_debug_mode = 'Y' THEN
12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

Line 12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

12559: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
12560: p_debug_mode => l_debug_mode );
12561: END IF;
12562: IF l_debug_mode = 'Y' THEN
12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12564: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12565: pa_debug.g_err_stage := 'Validating input parameters';
12566: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12567: END IF;

Line 12564: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12560: p_debug_mode => l_debug_mode );
12561: END IF;
12562: IF l_debug_mode = 'Y' THEN
12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12564: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12565: pa_debug.g_err_stage := 'Validating input parameters';
12566: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12567: END IF;
12568:

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

12561: END IF;
12562: IF l_debug_mode = 'Y' THEN
12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12564: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12565: pa_debug.g_err_stage := 'Validating input parameters';
12566: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12567: END IF;
12568:
12569: IF p_calling_context = 'BUDGET' THEN

Line 12566: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12562: IF l_debug_mode = 'Y' THEN
12563: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12564: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12565: pa_debug.g_err_stage := 'Validating input parameters';
12566: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12567: END IF;
12568:
12569: IF p_calling_context = 'BUDGET' THEN
12570: IF p_budget_version_id IS NULL AND

Line 12574: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;

12570: IF p_budget_version_id IS NULL AND
12571: p_plan_processing_code IS NULL THEN
12572:
12573: IF l_debug_mode = 'Y' THEN
12574: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12575: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12576:
12577: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12578: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

Line 12575: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12571: p_plan_processing_code IS NULL THEN
12572:
12573: IF l_debug_mode = 'Y' THEN
12574: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12575: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12576:
12577: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12578: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12579: END IF;

Line 12577: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;

12573: IF l_debug_mode = 'Y' THEN
12574: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12575: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12576:
12577: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12578: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12579: END IF;
12580:
12581: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 12578: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12574: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12575: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12576:
12577: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12578: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12579: END IF;
12580:
12581: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
12582: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 12591: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;

12587: IF p_source_ci_id_tbl.COUNT = 0 AND
12588: p_target_ci_id IS NULL THEN
12589:
12590: IF l_debug_mode = 'Y' THEN
12591: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12592: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12593:
12594: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12595: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

Line 12592: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12588: p_target_ci_id IS NULL THEN
12589:
12590: IF l_debug_mode = 'Y' THEN
12591: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12592: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12593:
12594: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12595: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12596: END IF;

Line 12594: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;

12590: IF l_debug_mode = 'Y' THEN
12591: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12592: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12593:
12594: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12595: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12596: END IF;
12597:
12598: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 12595: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12591: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12592: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12593:
12594: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12595: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12596: END IF;
12597:
12598: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
12599: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 12842: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

12838: END;
12839: END IF; -- p_calling_context
12840:
12841: IF l_debug_mode = 'Y' THEN
12842: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12843: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12844:
12845: pa_debug.reset_curr_function();
12846: END IF;

Line 12843: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12839: END IF; -- p_calling_context
12840:
12841: IF l_debug_mode = 'Y' THEN
12842: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12843: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12844:
12845: pa_debug.reset_curr_function();
12846: END IF;
12847: EXCEPTION

Line 12845: pa_debug.reset_curr_function();

12841: IF l_debug_mode = 'Y' THEN
12842: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12843: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12844:
12845: pa_debug.reset_curr_function();
12846: END IF;
12847: EXCEPTION
12848:
12849: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 12868: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

12864: END IF;
12865: x_return_status := FND_API.G_RET_STS_ERROR;
12866:
12867: IF l_debug_mode = 'Y' THEN
12868: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12869: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12870:
12871: -- reset curr function
12872: pa_debug.reset_curr_function();

Line 12869: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12865: x_return_status := FND_API.G_RET_STS_ERROR;
12866:
12867: IF l_debug_mode = 'Y' THEN
12868: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12869: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12870:
12871: -- reset curr function
12872: pa_debug.reset_curr_function();
12873: END IF;

Line 12872: pa_debug.reset_curr_function();

12868: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12869: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12870:
12871: -- reset curr function
12872: pa_debug.reset_curr_function();
12873: END IF;
12874: RETURN;
12875: WHEN OTHERS THEN
12876: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

12880: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils'
12881: ,p_procedure_name => 'return_and_vldt_plan_prc_code');
12882:
12883: IF l_debug_mode = 'Y' THEN
12884: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12885: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12886: -- reset curr function
12887: pa_debug.Reset_Curr_Function();
12888: END IF;

Line 12885: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12881: ,p_procedure_name => 'return_and_vldt_plan_prc_code');
12882:
12883: IF l_debug_mode = 'Y' THEN
12884: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12885: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12886: -- reset curr function
12887: pa_debug.Reset_Curr_Function();
12888: END IF;
12889: RAISE;

Line 12887: pa_debug.Reset_Curr_Function();

12883: IF l_debug_mode = 'Y' THEN
12884: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12885: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12886: -- reset curr function
12887: pa_debug.Reset_Curr_Function();
12888: END IF;
12889: RAISE;
12890:
12891: END return_and_vldt_plan_prc_code;

Line 12906: IF P_PA_DEBUG_MODE = 'Y' THEN

12902: l_exists VARCHAR2(1);
12903:
12904: BEGIN
12905:
12906: IF P_PA_DEBUG_MODE = 'Y' THEN
12907: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');
12908: END IF;
12909:
12910: /* Changes for FP.M, Tracking Bug No - 3619687. Making a check if the plan version/type is

Line 12907: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');

12903:
12904: BEGIN
12905:
12906: IF P_PA_DEBUG_MODE = 'Y' THEN
12907: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');
12908: END IF;
12909:
12910: /* Changes for FP.M, Tracking Bug No - 3619687. Making a check if the plan version/type is
12911: a source of generation fot other plan types*/

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

13027: l_project_id pa_projects_all.project_id%TYPE;
13028:
13029:
13030: BEGIN
13031: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13032:
13033: x_msg_count := 0;
13034: x_return_status := FND_API.G_RET_STS_SUCCESS;
13035:

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

13033: x_msg_count := 0;
13034: x_return_status := FND_API.G_RET_STS_SUCCESS;
13035:
13036: IF l_debug_mode = 'Y' THEN
13037: PA_DEBUG.Set_Curr_Function(p_function => l_module_name,
13038: p_debug_mode => l_debug_mode );
13039: END IF;
13040:
13041: IF l_debug_mode = 'Y' THEN

Line 13042: pa_debug.g_err_stage:='Entering return_struct_ver_info';

13038: p_debug_mode => l_debug_mode );
13039: END IF;
13040:
13041: IF l_debug_mode = 'Y' THEN
13042: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13043: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13044: pa_debug.g_err_stage:='Validating input parameters';
13045: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13046: END IF;

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

13039: END IF;
13040:
13041: IF l_debug_mode = 'Y' THEN
13042: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13043: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13044: pa_debug.g_err_stage:='Validating input parameters';
13045: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13046: END IF;
13047:

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

13040:
13041: IF l_debug_mode = 'Y' THEN
13042: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13043: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13044: pa_debug.g_err_stage:='Validating input parameters';
13045: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13046: END IF;
13047:
13048: IF p_budget_version_id IS NULL THEN

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

13041: IF l_debug_mode = 'Y' THEN
13042: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13043: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13044: pa_debug.g_err_stage:='Validating input parameters';
13045: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13046: END IF;
13047:
13048: IF p_budget_version_id IS NULL THEN
13049: IF l_debug_mode = 'Y' THEN

Line 13050: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';

13046: END IF;
13047:
13048: IF p_budget_version_id IS NULL THEN
13049: IF l_debug_mode = 'Y' THEN
13050: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';
13051: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13052: END IF;
13053: pa_utils.add_message(p_app_short_name => 'PA',
13054: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 13051: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13047:
13048: IF p_budget_version_id IS NULL THEN
13049: IF l_debug_mode = 'Y' THEN
13050: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';
13051: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13052: END IF;
13053: pa_utils.add_message(p_app_short_name => 'PA',
13054: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
13055: p_token1 => 'PROCEDURENAME',

Line 13062: pa_debug.g_err_stage := 'Deriving project_id';

13058: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13059: END IF;
13060:
13061: IF l_debug_mode = 'Y' THEN
13062: pa_debug.g_err_stage := 'Deriving project_id';
13063: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13064: END IF;
13065:
13066: BEGIN

Line 13063: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13059: END IF;
13060:
13061: IF l_debug_mode = 'Y' THEN
13062: pa_debug.g_err_stage := 'Deriving project_id';
13063: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13064: END IF;
13065:
13066: BEGIN
13067: SELECT project_id

Line 13074: pa_debug.g_err_stage := 'Invalid budget_version_id passed';

13070: WHERE budget_version_id = p_budget_version_id;
13071: EXCEPTION
13072: WHEN NO_DATA_FOUND THEN
13073: IF l_debug_mode = 'Y' THEN
13074: pa_debug.g_err_stage := 'Invalid budget_version_id passed';
13075: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13076: END IF;
13077: pa_utils.add_message(p_app_short_name => 'PA',
13078: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 13075: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13071: EXCEPTION
13072: WHEN NO_DATA_FOUND THEN
13073: IF l_debug_mode = 'Y' THEN
13074: pa_debug.g_err_stage := 'Invalid budget_version_id passed';
13075: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13076: END IF;
13077: pa_utils.add_message(p_app_short_name => 'PA',
13078: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
13079: p_token1 => 'PROCEDURENAME',

Line 13086: pa_debug.g_err_stage := 'Getting structure version id';

13082: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13083: END;
13084:
13085: IF l_debug_mode = 'Y' THEN
13086: pa_debug.g_err_stage := 'Getting structure version id';
13087: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13088: END IF;
13089:
13090: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);

Line 13087: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13083: END;
13084:
13085: IF l_debug_mode = 'Y' THEN
13086: pa_debug.g_err_stage := 'Getting structure version id';
13087: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13088: END IF;
13089:
13090: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);
13091: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);

Line 13094: pa_debug.g_err_stage := 'Values returned->';

13090: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);
13091: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);
13092:
13093: IF l_debug_mode = 'Y' THEN
13094: pa_debug.g_err_stage := 'Values returned->';
13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;

Line 13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13091: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);
13092:
13093: IF l_debug_mode = 'Y' THEN
13094: pa_debug.g_err_stage := 'Values returned->';
13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

Line 13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;

13092:
13093: IF l_debug_mode = 'Y' THEN
13094: pa_debug.g_err_stage := 'Values returned->';
13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13100: END IF;

Line 13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13093: IF l_debug_mode = 'Y' THEN
13094: pa_debug.g_err_stage := 'Values returned->';
13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13100: END IF;
13101:

Line 13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;

13094: pa_debug.g_err_stage := 'Values returned->';
13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13100: END IF;
13101:
13102: IF l_debug_mode = 'Y' THEN

Line 13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13095: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13096: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13097: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13098: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13100: END IF;
13101:
13102: IF l_debug_mode = 'Y' THEN
13103: pa_debug.g_err_stage:='Leaving return_struct_ver_info';

Line 13103: pa_debug.g_err_stage:='Leaving return_struct_ver_info';

13099: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13100: END IF;
13101:
13102: IF l_debug_mode = 'Y' THEN
13103: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13104: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13105: pa_debug.reset_curr_function;
13106: END IF;
13107:

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

13100: END IF;
13101:
13102: IF l_debug_mode = 'Y' THEN
13103: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13104: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13105: pa_debug.reset_curr_function;
13106: END IF;
13107:
13108: EXCEPTION

Line 13105: pa_debug.reset_curr_function;

13101:
13102: IF l_debug_mode = 'Y' THEN
13103: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13104: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13105: pa_debug.reset_curr_function;
13106: END IF;
13107:
13108: EXCEPTION
13109: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 13121: pa_debug.reset_curr_function;

13117: ,p_data => l_data
13118: ,p_msg_index_out => l_msg_index_out);
13119: END IF;
13120: IF l_debug_mode = 'Y' THEN
13121: pa_debug.reset_curr_function;
13122: END IF;
13123: WHEN OTHERS THEN
13124: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPWAUB'
13125: ,p_procedure_name => 'return_struct_ver_info');

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

13124: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPWAUB'
13125: ,p_procedure_name => 'return_struct_ver_info');
13126:
13127: IF l_debug_mode = 'Y' THEN
13128: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13129: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13130: END IF;
13131: IF l_debug_mode = 'Y' THEN
13132: pa_debug.reset_curr_function;

Line 13129: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

13125: ,p_procedure_name => 'return_struct_ver_info');
13126:
13127: IF l_debug_mode = 'Y' THEN
13128: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13129: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13130: END IF;
13131: IF l_debug_mode = 'Y' THEN
13132: pa_debug.reset_curr_function;
13133: END IF;

Line 13132: pa_debug.reset_curr_function;

13128: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13129: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13130: END IF;
13131: IF l_debug_mode = 'Y' THEN
13132: pa_debug.reset_curr_function;
13133: END IF;
13134: RAISE;
13135: END return_struct_ver_info;
13136:

Line 13256: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');

13252: l_budget_version_name pa_budget_versions.version_name%TYPE;
13253:
13254: BEGIN
13255:
13256: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13257: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13258: l_debug_mode := NVL(l_debug_mode, 'Y');
13259: IF P_PA_DEBUG_MODE = 'Y' THEN
13260: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);

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

13253:
13254: BEGIN
13255:
13256: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13257: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13258: l_debug_mode := NVL(l_debug_mode, 'Y');
13259: IF P_PA_DEBUG_MODE = 'Y' THEN
13260: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13261: END IF;

Line 13259: IF P_PA_DEBUG_MODE = 'Y' THEN

13255:
13256: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13257: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13258: l_debug_mode := NVL(l_debug_mode, 'Y');
13259: IF P_PA_DEBUG_MODE = 'Y' THEN
13260: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13261: END IF;
13262:
13263: -- Bug 8681652

Line 13260: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);

13256: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13257: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13258: l_debug_mode := NVL(l_debug_mode, 'Y');
13259: IF P_PA_DEBUG_MODE = 'Y' THEN
13260: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13261: END IF;
13262:
13263: -- Bug 8681652
13264: select baseline_funding_flag

Line 13289: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;

13285:
13286: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
13287:
13288: IF l_debug_mode = 'Y' THEN
13289: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;
13290: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);
13291: END IF;
13292: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13293:

Line 13290: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);

13286: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
13287:
13288: IF l_debug_mode = 'Y' THEN
13289: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;
13290: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);
13291: END IF;
13292: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13293:
13294: -- The Get_Appr_Cost_Plan_Type_Info api got executed successfully.

Line 13494: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';

13490: RAISE FND_API.G_EXC_ERROR;
13491: END IF;
13492: END IF;
13493:
13494: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13495: IF P_PA_DEBUG_MODE = 'Y' THEN
13496: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13497: END IF;
13498: pa_debug.reset_err_stack;

Line 13495: IF P_PA_DEBUG_MODE = 'Y' THEN

13491: END IF;
13492: END IF;
13493:
13494: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13495: IF P_PA_DEBUG_MODE = 'Y' THEN
13496: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13497: END IF;
13498: pa_debug.reset_err_stack;
13499:

Line 13496: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);

13492: END IF;
13493:
13494: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13495: IF P_PA_DEBUG_MODE = 'Y' THEN
13496: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13497: END IF;
13498: pa_debug.reset_err_stack;
13499:
13500: EXCEPTION

Line 13498: pa_debug.reset_err_stack;

13494: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13495: IF P_PA_DEBUG_MODE = 'Y' THEN
13496: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13497: END IF;
13498: pa_debug.reset_err_stack;
13499:
13500: EXCEPTION
13501:
13502: WHEN Invalid_Arg_Exc THEN

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

13523: END IF;
13524:
13525: p_return_status := FND_API.G_RET_STS_ERROR;
13526:
13527: pa_debug.g_err_stage:='Invalid Arguments Passed';
13528: IF P_PA_DEBUG_MODE = 'Y' THEN
13529: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13530: END IF;
13531:

Line 13528: IF P_PA_DEBUG_MODE = 'Y' THEN

13524:
13525: p_return_status := FND_API.G_RET_STS_ERROR;
13526:
13527: pa_debug.g_err_stage:='Invalid Arguments Passed';
13528: IF P_PA_DEBUG_MODE = 'Y' THEN
13529: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13530: END IF;
13531:
13532: pa_debug.reset_err_stack;

Line 13529: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);

13525: p_return_status := FND_API.G_RET_STS_ERROR;
13526:
13527: pa_debug.g_err_stage:='Invalid Arguments Passed';
13528: IF P_PA_DEBUG_MODE = 'Y' THEN
13529: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13530: END IF;
13531:
13532: pa_debug.reset_err_stack;
13533:

Line 13532: pa_debug.reset_err_stack;

13528: IF P_PA_DEBUG_MODE = 'Y' THEN
13529: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13530: END IF;
13531:
13532: pa_debug.reset_err_stack;
13533:
13534: RAISE;
13535:
13536: WHEN Others THEN

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

13541:
13542: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
13543: ,p_procedure_name => 'create_draft_budget_wrp');
13544:
13545: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13546: IF P_PA_DEBUG_MODE = 'Y' THEN
13547: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13548: END IF;
13549:

Line 13546: IF P_PA_DEBUG_MODE = 'Y' THEN

13542: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
13543: ,p_procedure_name => 'create_draft_budget_wrp');
13544:
13545: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13546: IF P_PA_DEBUG_MODE = 'Y' THEN
13547: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13548: END IF;
13549:
13550: pa_debug.reset_err_stack;

Line 13547: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);

13543: ,p_procedure_name => 'create_draft_budget_wrp');
13544:
13545: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13546: IF P_PA_DEBUG_MODE = 'Y' THEN
13547: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13548: END IF;
13549:
13550: pa_debug.reset_err_stack;
13551:

Line 13550: pa_debug.reset_err_stack;

13546: IF P_PA_DEBUG_MODE = 'Y' THEN
13547: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13548: END IF;
13549:
13550: pa_debug.reset_err_stack;
13551:
13552: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
13553:
13554: