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 633: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 638: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 647: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 656: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 660: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 674: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 692: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 704: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 731: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 749: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 775: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 777: pa_debug.reset_err_stack;

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

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

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

Line 807: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 809: pa_debug.reset_err_stack;

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

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

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

Line 823: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 825: pa_debug.reset_err_stack;

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

Line 1159: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1164: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1173: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1182: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1186: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1200: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1218: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1230: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1259: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1275: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1301: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1303: pa_debug.reset_err_stack;

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

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

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

Line 1333: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1336: pa_debug.reset_err_stack;

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

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

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

Line 1350: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1353: pa_debug.reset_err_stack;

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

Line 1390: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1395: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1404: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1413: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1425: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1434: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1458: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1461: pa_debug.reset_err_stack;

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

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

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

Line 1491: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1494: pa_debug.reset_err_stack;

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

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

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

Line 1508: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1511: pa_debug.reset_err_stack;

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

Line 1545: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1550: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1559: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1568: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1580: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1589: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1613: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1615: pa_debug.reset_err_stack;

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

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

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

Line 1645: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1648: pa_debug.reset_err_stack;

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

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

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

Line 1662: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1664: pa_debug.reset_err_stack;

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

Line 1714: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1719: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 1729: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1754: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 1787: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 1810: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

Line 1845: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 1915: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

Line 1950: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2021: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2056: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2124: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2125: pa_debug.reset_err_stack;

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

Line 2153: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2154: pa_debug.reset_err_stack;

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

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

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

Line 2168: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2171: pa_debug.reset_err_stack;

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

Line 2210: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2215: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2226: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2236: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2279: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2280: pa_debug.reset_err_stack;

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

Line 2308: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2309: pa_debug.reset_err_stack;

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

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

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

Line 2323: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2326: pa_debug.reset_err_stack;

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

Line 2437: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2442: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2449: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2458: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2462: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2483: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2484: pa_debug.reset_err_stack;

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

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

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

Line 2512: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2518: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2519: pa_debug.reset_err_stack;

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

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

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

Line 2533: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2535: pa_debug.reset_err_stack;

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

Line 2577: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2582: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2589: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2598: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2602: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2635: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2644: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2645: pa_debug.reset_err_stack;

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

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

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

Line 2673: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2679: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2680: pa_debug.reset_err_stack;

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

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

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

Line 2694: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2696: pa_debug.reset_err_stack;

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

Line 2724: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 2769: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2770: pa_debug.reset_err_stack;

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

Line 2791: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2792: pa_debug.reset_err_stack;

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

Line 2811: p_procedure_name => pa_debug.g_err_stack );

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

Line 2829: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2834: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2848: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2854: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 2874: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2881: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2882: pa_debug.reset_err_stack;

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

Line 2898: p_procedure_name => pa_debug.g_err_stack );

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

Line 2930: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 2957: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 2958: pa_debug.reset_err_stack;

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

Line 3016: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3048: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3049: pa_debug.reset_err_stack;

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

Line 3105: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3131: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3132: pa_debug.reset_err_stack;

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

Line 3230: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3237: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3262: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3266: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3267: pa_debug.reset_err_stack;

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

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

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

Line 3277: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3279: pa_debug.reset_err_stack;

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

Line 3323: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3329: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3343: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3354: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3361: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3374: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3392: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3393: pa_debug.reset_err_stack;

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

Line 3402: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3408: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3433: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3436: pa_debug.reset_err_stack;

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

Line 3443: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3444: pa_debug.reset_err_stack;

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

Line 3481: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3513: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3514: pa_debug.reset_err_stack;

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

Line 3519: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3656: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3661: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3668: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3677: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3696: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3697: pa_debug.reset_err_stack;

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

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

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

Line 3724: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3730: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3731: pa_debug.reset_err_stack;

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

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

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

Line 3745: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3748: pa_debug.reset_err_stack;

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

Line 3786: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3791: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3798: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3807: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3832: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3833: pa_debug.reset_err_stack;

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

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

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

Line 3860: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3866: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3867: pa_debug.reset_err_stack;

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

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

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

Line 3881: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3883: pa_debug.reset_err_stack;

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

Line 3905: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3911: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 3918: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3976: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3977: pa_debug.reset_err_stack;

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

Line 3982: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 3989: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 3990: pa_debug.reset_err_stack;

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

Line 4033: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4038: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4047: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4056: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4068: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4077: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4123: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4125: pa_debug.reset_err_stack;

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

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

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

Line 4155: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4157: pa_debug.reset_err_stack;

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

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

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

Line 4171: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4173: pa_debug.reset_err_stack;

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

Line 4215: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4220: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4229: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4238: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4250: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4259: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4305: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4307: pa_debug.reset_err_stack;

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

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

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

Line 4337: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4340: pa_debug.reset_err_stack;

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

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

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

Line 4354: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4357: pa_debug.reset_err_stack;

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

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

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

Line 4400: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4415: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Line 4451: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4455: pa_debug.reset_curr_function;

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

Line 4476: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

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

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

Line 4480: pa_debug.reset_curr_function;

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

Line 4523: IF P_PA_DEBUG_MODE = 'Y' THEN

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

Line 4524: pa_debug.reset_curr_function;

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

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

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

Line 4545: IF P_PA_DEBUG_MODE = 'Y' THEN

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

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

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

Line 4547: pa_debug.reset_curr_function;

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

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

4554: x_msg_count := 1;
4555: x_msg_data := SQLERRM;
4556: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4557: ,p_procedure_name => 'Get_Budget_Version_Number');
4558: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4559: IF P_PA_DEBUG_MODE = 'Y' THEN
4560: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4561: pa_debug.reset_curr_function;
4562: END IF;

Line 4559: IF P_PA_DEBUG_MODE = 'Y' THEN

4555: x_msg_data := SQLERRM;
4556: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4557: ,p_procedure_name => 'Get_Budget_Version_Number');
4558: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4559: IF P_PA_DEBUG_MODE = 'Y' THEN
4560: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4561: pa_debug.reset_curr_function;
4562: END IF;
4563: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;

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

4556: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4557: ,p_procedure_name => 'Get_Budget_Version_Number');
4558: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4559: IF P_PA_DEBUG_MODE = 'Y' THEN
4560: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4561: pa_debug.reset_curr_function;
4562: END IF;
4563: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4564:

Line 4561: pa_debug.reset_curr_function;

4557: ,p_procedure_name => 'Get_Budget_Version_Number');
4558: pa_debug.g_err_stage:='Unexpeted Error'||SQLERRM;
4559: IF P_PA_DEBUG_MODE = 'Y' THEN
4560: pa_debug.write('Get_Max_Budget_Version_Number: ' || l_module_name,pa_debug.g_err_stage,5);
4561: pa_debug.reset_curr_function;
4562: END IF;
4563: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
4564:
4565: END Get_Max_Budget_Version_Number;

Line 4572: IF P_PA_DEBUG_MODE = 'Y' THEN

4568: p_time_phased_code IN pa_proj_fp_options.cost_time_phased_Code%TYPE) RETURN DATE
4569: IS
4570: l_start_date pa_periods_all.start_date%TYPE;
4571: BEGIN
4572: IF P_PA_DEBUG_MODE = 'Y' THEN
4573: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4574: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4575: END IF;
4576: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN

Line 4573: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;

4569: IS
4570: l_start_date pa_periods_all.start_date%TYPE;
4571: BEGIN
4572: IF P_PA_DEBUG_MODE = 'Y' THEN
4573: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4574: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4575: END IF;
4576: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4577: IF p_input_date IS NOT NULL THEN

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

4570: l_start_date pa_periods_all.start_date%TYPE;
4571: BEGIN
4572: IF P_PA_DEBUG_MODE = 'Y' THEN
4573: pa_debug.g_err_stage := 'Inside get_period_start_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4574: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4575: END IF;
4576: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4577: IF p_input_date IS NOT NULL THEN
4578: SELECT start_date

Line 4607: IF P_PA_DEBUG_MODE = 'Y' THEN

4603: p_time_phased_code IN pa_proj_fp_options.cost_time_phased_Code%TYPE) RETURN DATE
4604: IS
4605: l_end_date pa_periods_all.end_date%TYPE;
4606: BEGIN
4607: IF P_PA_DEBUG_MODE = 'Y' THEN
4608: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4609: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4610: END IF;
4611: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN

Line 4608: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;

4604: IS
4605: l_end_date pa_periods_all.end_date%TYPE;
4606: BEGIN
4607: IF P_PA_DEBUG_MODE = 'Y' THEN
4608: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4609: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4610: END IF;
4611: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4612: IF p_input_date IS NOT NULL THEN

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

4605: l_end_date pa_periods_all.end_date%TYPE;
4606: BEGIN
4607: IF P_PA_DEBUG_MODE = 'Y' THEN
4608: pa_debug.g_err_stage := 'Inside get_period_end_date and input date is '||p_input_date||' time phasing is : '||p_time_phased_code;
4609: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
4610: END IF;
4611: IF p_time_phased_code = PA_FP_CONSTANTS_PKG.G_TIME_PHASED_CODE_P THEN
4612: IF p_input_date IS NOT NULL THEN
4613: SELECT end_date

Line 4676: IF P_PA_DEBUG_MODE = 'Y' THEN

4672: BEGIN
4673:
4674: x_msg_count := 0;
4675: x_return_status := FND_API.G_RET_STS_SUCCESS;
4676: IF P_PA_DEBUG_MODE = 'Y' THEN
4677: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4678: END IF;
4679: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4680: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4677: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');

4673:
4674: x_msg_count := 0;
4675: x_return_status := FND_API.G_RET_STS_SUCCESS;
4676: IF P_PA_DEBUG_MODE = 'Y' THEN
4677: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4678: END IF;
4679: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4680: l_debug_mode := NVL(l_debug_mode, 'Y');
4681: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4675: x_return_status := FND_API.G_RET_STS_SUCCESS;
4676: IF P_PA_DEBUG_MODE = 'Y' THEN
4677: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4678: END IF;
4679: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4680: l_debug_mode := NVL(l_debug_mode, 'Y');
4681: IF P_PA_DEBUG_MODE = 'Y' THEN
4682: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4683: END IF;

Line 4681: IF P_PA_DEBUG_MODE = 'Y' THEN

4677: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_COST_BASE_VERSION_INFO');
4678: END IF;
4679: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4680: l_debug_mode := NVL(l_debug_mode, 'Y');
4681: IF P_PA_DEBUG_MODE = 'Y' THEN
4682: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4683: END IF;
4684:
4685: -- Check for business rules violations

Line 4682: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);

4678: END IF;
4679: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4680: l_debug_mode := NVL(l_debug_mode, 'Y');
4681: IF P_PA_DEBUG_MODE = 'Y' THEN
4682: pa_debug.set_process('GET_COST_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4683: END IF;
4684:
4685: -- Check for business rules violations
4686:

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

4683: END IF;
4684:
4685: -- Check for business rules violations
4686:
4687: pa_debug.g_err_stage:= 'Validating input parameters';
4688: IF P_PA_DEBUG_MODE = 'Y' THEN
4689: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4690: END IF;
4691:

Line 4688: IF P_PA_DEBUG_MODE = 'Y' THEN

4684:
4685: -- Check for business rules violations
4686:
4687: pa_debug.g_err_stage:= 'Validating input parameters';
4688: IF P_PA_DEBUG_MODE = 'Y' THEN
4689: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4690: END IF;
4691:
4692: --Check if plan version id is null

Line 4689: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4685: -- Check for business rules violations
4686:
4687: pa_debug.g_err_stage:= 'Validating input parameters';
4688: IF P_PA_DEBUG_MODE = 'Y' THEN
4689: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4690: END IF;
4691:
4692: --Check if plan version id is null
4693:

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

4695: ((p_budget_type_code IS NULL ) AND (p_fin_plan_type_id IS NULL)) OR
4696: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4697: THEN
4698:
4699: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4700: IF P_PA_DEBUG_MODE = 'Y' THEN
4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

Line 4700: IF P_PA_DEBUG_MODE = 'Y' THEN

4696: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4697: THEN
4698:
4699: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4700: IF P_PA_DEBUG_MODE = 'Y' THEN
4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4697: THEN
4698:
4699: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4700: IF P_PA_DEBUG_MODE = 'Y' THEN
4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

4699: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4700: IF P_PA_DEBUG_MODE = 'Y' THEN
4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

Line 4704: IF P_PA_DEBUG_MODE = 'Y' THEN

4700: IF P_PA_DEBUG_MODE = 'Y' THEN
4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4708: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4701: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4702: END IF;
4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4708: IF P_PA_DEBUG_MODE = 'Y' THEN
4709: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

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

4703: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4708: IF P_PA_DEBUG_MODE = 'Y' THEN
4709: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4710: END IF;
4711:

Line 4708: IF P_PA_DEBUG_MODE = 'Y' THEN

4704: IF P_PA_DEBUG_MODE = 'Y' THEN
4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4708: IF P_PA_DEBUG_MODE = 'Y' THEN
4709: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4710: END IF;
4711:
4712: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4709: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4705: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4706: END IF;
4707: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4708: IF P_PA_DEBUG_MODE = 'Y' THEN
4709: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4710: END IF;
4711:
4712: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4713: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4735: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;

4731: AND fin_plan_type_id = p_fin_plan_type_id
4732: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4733: EXCEPTION
4734: WHEN others THEN
4735: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4736: IF P_PA_DEBUG_MODE = 'Y' THEN
4737: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4738: END IF;
4739: RAISE ;

Line 4736: IF P_PA_DEBUG_MODE = 'Y' THEN

4732: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4733: EXCEPTION
4734: WHEN others THEN
4735: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4736: IF P_PA_DEBUG_MODE = 'Y' THEN
4737: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4738: END IF;
4739: RAISE ;
4740: END;

Line 4737: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4733: EXCEPTION
4734: WHEN others THEN
4735: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4736: IF P_PA_DEBUG_MODE = 'Y' THEN
4737: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4738: END IF;
4739: RAISE ;
4740: END;
4741:

Line 4790: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';

4786: x_msg_data := l_err_stage;
4787: END IF;
4788: END IF;
4789:
4790: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4791: IF P_PA_DEBUG_MODE = 'Y' THEN
4792: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4793:
4794: pa_debug.reset_err_stack;

Line 4791: IF P_PA_DEBUG_MODE = 'Y' THEN

4787: END IF;
4788: END IF;
4789:
4790: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4791: IF P_PA_DEBUG_MODE = 'Y' THEN
4792: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4793:
4794: pa_debug.reset_err_stack;
4795: END IF;

Line 4792: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4788: END IF;
4789:
4790: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4791: IF P_PA_DEBUG_MODE = 'Y' THEN
4792: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4793:
4794: pa_debug.reset_err_stack;
4795: END IF;
4796: EXCEPTION

Line 4794: pa_debug.reset_err_stack;

4790: pa_debug.g_err_stage:= 'Exiting GET_COST_BASE_VERSION_INFO';
4791: IF P_PA_DEBUG_MODE = 'Y' THEN
4792: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4793:
4794: pa_debug.reset_err_stack;
4795: END IF;
4796: EXCEPTION
4797:
4798: WHEN PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc THEN

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

4811: ELSE
4812: x_msg_count := l_msg_count;
4813: END IF;
4814:
4815: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4816: IF P_PA_DEBUG_MODE = 'Y' THEN
4817: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4818: END IF;
4819:

Line 4816: IF P_PA_DEBUG_MODE = 'Y' THEN

4812: x_msg_count := l_msg_count;
4813: END IF;
4814:
4815: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4816: IF P_PA_DEBUG_MODE = 'Y' THEN
4817: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4818: END IF;
4819:
4820: x_return_status := FND_API.G_RET_STS_ERROR;

Line 4817: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4813: END IF;
4814:
4815: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
4816: IF P_PA_DEBUG_MODE = 'Y' THEN
4817: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4818: END IF;
4819:
4820: x_return_status := FND_API.G_RET_STS_ERROR;
4821: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4821: IF P_PA_DEBUG_MODE = 'Y' THEN

4817: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4818: END IF;
4819:
4820: x_return_status := FND_API.G_RET_STS_ERROR;
4821: IF P_PA_DEBUG_MODE = 'Y' THEN
4822: pa_debug.reset_err_stack;
4823: END IF;
4824: WHEN others THEN
4825:

Line 4822: pa_debug.reset_err_stack;

4818: END IF;
4819:
4820: x_return_status := FND_API.G_RET_STS_ERROR;
4821: IF P_PA_DEBUG_MODE = 'Y' THEN
4822: pa_debug.reset_err_stack;
4823: END IF;
4824: WHEN others THEN
4825:
4826: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

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

4827: x_msg_count := 1;
4828: x_msg_data := SQLERRM;
4829: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4830: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4831: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4832: IF P_PA_DEBUG_MODE = 'Y' THEN
4833: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4834: pa_debug.reset_err_stack;
4835: END IF;

Line 4832: IF P_PA_DEBUG_MODE = 'Y' THEN

4828: x_msg_data := SQLERRM;
4829: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4830: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4831: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4832: IF P_PA_DEBUG_MODE = 'Y' THEN
4833: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4834: pa_debug.reset_err_stack;
4835: END IF;
4836: END GET_COST_BASE_VERSION_INFO;

Line 4833: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4829: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
4830: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4831: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4832: IF P_PA_DEBUG_MODE = 'Y' THEN
4833: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4834: pa_debug.reset_err_stack;
4835: END IF;
4836: END GET_COST_BASE_VERSION_INFO;
4837:

Line 4834: pa_debug.reset_err_stack;

4830: ,p_procedure_name => 'GET_COST_BASE_VERSION_INFO');
4831: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
4832: IF P_PA_DEBUG_MODE = 'Y' THEN
4833: pa_debug.write('GET_COST_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4834: pa_debug.reset_err_stack;
4835: END IF;
4836: END GET_COST_BASE_VERSION_INFO;
4837:
4838: /*==============================================================================

Line 4876: IF P_PA_DEBUG_MODE = 'Y' THEN

4872: BEGIN
4873:
4874: x_msg_count := 0;
4875: x_return_status := FND_API.G_RET_STS_SUCCESS;
4876: IF P_PA_DEBUG_MODE = 'Y' THEN
4877: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4878: END IF;
4879: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4880: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 4877: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');

4873:
4874: x_msg_count := 0;
4875: x_return_status := FND_API.G_RET_STS_SUCCESS;
4876: IF P_PA_DEBUG_MODE = 'Y' THEN
4877: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4878: END IF;
4879: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4880: l_debug_mode := NVL(l_debug_mode, 'Y');
4881: IF P_PA_DEBUG_MODE = 'Y' THEN

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

4875: x_return_status := FND_API.G_RET_STS_SUCCESS;
4876: IF P_PA_DEBUG_MODE = 'Y' THEN
4877: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4878: END IF;
4879: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4880: l_debug_mode := NVL(l_debug_mode, 'Y');
4881: IF P_PA_DEBUG_MODE = 'Y' THEN
4882: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4883: END IF;

Line 4881: IF P_PA_DEBUG_MODE = 'Y' THEN

4877: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_REV_BASE_VERSION_INFO');
4878: END IF;
4879: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4880: l_debug_mode := NVL(l_debug_mode, 'Y');
4881: IF P_PA_DEBUG_MODE = 'Y' THEN
4882: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4883: END IF;
4884:
4885: -- Check for business rules violations

Line 4882: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);

4878: END IF;
4879: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
4880: l_debug_mode := NVL(l_debug_mode, 'Y');
4881: IF P_PA_DEBUG_MODE = 'Y' THEN
4882: pa_debug.set_process('GET_REV_BASE_VERSION_INFO: ' || 'PLSQL','LOG',l_debug_mode);
4883: END IF;
4884:
4885: -- Check for business rules violations
4886:

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

4883: END IF;
4884:
4885: -- Check for business rules violations
4886:
4887: pa_debug.g_err_stage:= 'Validating input parameters';
4888: IF P_PA_DEBUG_MODE = 'Y' THEN
4889: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4890: END IF;
4891:

Line 4888: IF P_PA_DEBUG_MODE = 'Y' THEN

4884:
4885: -- Check for business rules violations
4886:
4887: pa_debug.g_err_stage:= 'Validating input parameters';
4888: IF P_PA_DEBUG_MODE = 'Y' THEN
4889: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4890: END IF;
4891:
4892: --Check if plan version id is null

Line 4889: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4885: -- Check for business rules violations
4886:
4887: pa_debug.g_err_stage:= 'Validating input parameters';
4888: IF P_PA_DEBUG_MODE = 'Y' THEN
4889: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4890: END IF;
4891:
4892: --Check if plan version id is null
4893:

Line 4899: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;

4895: ((p_budget_type_code IS NULL ) AND (p_fin_plan_type_id IS NULL)) OR
4896: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4897: THEN
4898:
4899: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4900: IF P_PA_DEBUG_MODE = 'Y' THEN
4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

Line 4900: IF P_PA_DEBUG_MODE = 'Y' THEN

4896: ((p_budget_type_code IS NOT NULL ) AND (p_fin_plan_type_id IS NOT NULL))
4897: THEN
4898:
4899: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4900: IF P_PA_DEBUG_MODE = 'Y' THEN
4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4897: THEN
4898:
4899: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4900: IF P_PA_DEBUG_MODE = 'Y' THEN
4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

4899: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
4900: IF P_PA_DEBUG_MODE = 'Y' THEN
4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

Line 4904: IF P_PA_DEBUG_MODE = 'Y' THEN

4900: IF P_PA_DEBUG_MODE = 'Y' THEN
4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4908: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4901: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4902: END IF;
4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4908: IF P_PA_DEBUG_MODE = 'Y' THEN
4909: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

4903: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4908: IF P_PA_DEBUG_MODE = 'Y' THEN
4909: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4910: END IF;
4911:

Line 4908: IF P_PA_DEBUG_MODE = 'Y' THEN

4904: IF P_PA_DEBUG_MODE = 'Y' THEN
4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4908: IF P_PA_DEBUG_MODE = 'Y' THEN
4909: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4910: END IF;
4911:
4912: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 4909: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4905: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4906: END IF;
4907: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
4908: IF P_PA_DEBUG_MODE = 'Y' THEN
4909: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4910: END IF;
4911:
4912: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4913: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 4936: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;

4932: AND fin_plan_option_level_code = PA_FP_CONSTANTS_PKG.G_OPTION_LEVEL_PLAN_TYPE;
4933: EXCEPTION
4934: WHEN others THEN
4935:
4936: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4937: IF P_PA_DEBUG_MODE = 'Y' THEN
4938: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4939: END IF;
4940: RAISE;

Line 4937: IF P_PA_DEBUG_MODE = 'Y' THEN

4933: EXCEPTION
4934: WHEN others THEN
4935:
4936: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4937: IF P_PA_DEBUG_MODE = 'Y' THEN
4938: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4939: END IF;
4940: RAISE;
4941: END;

Line 4938: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

4934: WHEN others THEN
4935:
4936: pa_debug.g_err_stage:= 'While fetching Preference Code'||SQLERRM;
4937: IF P_PA_DEBUG_MODE = 'Y' THEN
4938: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
4939: END IF;
4940: RAISE;
4941: END;
4942:

Line 4993: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';

4989: END IF;
4990: END IF;
4991:
4992:
4993: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4994: IF P_PA_DEBUG_MODE = 'Y' THEN
4995: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4996: pa_debug.reset_err_stack;
4997: END IF;

Line 4994: IF P_PA_DEBUG_MODE = 'Y' THEN

4990: END IF;
4991:
4992:
4993: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4994: IF P_PA_DEBUG_MODE = 'Y' THEN
4995: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4996: pa_debug.reset_err_stack;
4997: END IF;
4998: EXCEPTION

Line 4995: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

4991:
4992:
4993: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4994: IF P_PA_DEBUG_MODE = 'Y' THEN
4995: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4996: pa_debug.reset_err_stack;
4997: END IF;
4998: EXCEPTION
4999:

Line 4996: pa_debug.reset_err_stack;

4992:
4993: pa_debug.g_err_stage:= 'Exiting GET_REV_BASE_VERSION_INFO';
4994: IF P_PA_DEBUG_MODE = 'Y' THEN
4995: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
4996: pa_debug.reset_err_stack;
4997: END IF;
4998: EXCEPTION
4999:
5000: WHEN PA_FP_ELEMENTS_PUB.Invalid_Arg_Exc THEN

Line 5017: pa_debug.g_err_stage:= 'Invalid Arguments Passed';

5013: ELSE
5014: x_msg_count := l_msg_count;
5015: END IF;
5016:
5017: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5018: IF P_PA_DEBUG_MODE = 'Y' THEN
5019: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5020: END IF;
5021:

Line 5018: IF P_PA_DEBUG_MODE = 'Y' THEN

5014: x_msg_count := l_msg_count;
5015: END IF;
5016:
5017: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5018: IF P_PA_DEBUG_MODE = 'Y' THEN
5019: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5020: END IF;
5021:
5022: x_return_status := FND_API.G_RET_STS_ERROR;

Line 5019: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5015: END IF;
5016:
5017: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5018: IF P_PA_DEBUG_MODE = 'Y' THEN
5019: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5020: END IF;
5021:
5022: x_return_status := FND_API.G_RET_STS_ERROR;
5023: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5023: IF P_PA_DEBUG_MODE = 'Y' THEN

5019: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5020: END IF;
5021:
5022: x_return_status := FND_API.G_RET_STS_ERROR;
5023: IF P_PA_DEBUG_MODE = 'Y' THEN
5024: pa_debug.reset_err_stack;
5025: END IF;
5026: WHEN others THEN
5027:

Line 5024: pa_debug.reset_err_stack;

5020: END IF;
5021:
5022: x_return_status := FND_API.G_RET_STS_ERROR;
5023: IF P_PA_DEBUG_MODE = 'Y' THEN
5024: pa_debug.reset_err_stack;
5025: END IF;
5026: WHEN others THEN
5027:
5028: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 5033: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

5029: x_msg_count := 1;
5030: x_msg_data := SQLERRM;
5031: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5032: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5033: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5034: IF P_PA_DEBUG_MODE = 'Y' THEN
5035: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5036: pa_debug.reset_err_stack;
5037: END IF;

Line 5034: IF P_PA_DEBUG_MODE = 'Y' THEN

5030: x_msg_data := SQLERRM;
5031: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5032: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5033: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5034: IF P_PA_DEBUG_MODE = 'Y' THEN
5035: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5036: pa_debug.reset_err_stack;
5037: END IF;
5038: END GET_REV_BASE_VERSION_INFO;

Line 5035: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5031: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5032: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5033: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5034: IF P_PA_DEBUG_MODE = 'Y' THEN
5035: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5036: pa_debug.reset_err_stack;
5037: END IF;
5038: END GET_REV_BASE_VERSION_INFO;
5039:

Line 5036: pa_debug.reset_err_stack;

5032: ,p_procedure_name => 'GET_REV_BASE_VERSION_INFO');
5033: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5034: IF P_PA_DEBUG_MODE = 'Y' THEN
5035: pa_debug.write('GET_REV_BASE_VERSION_INFO: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5036: pa_debug.reset_err_stack;
5037: END IF;
5038: END GET_REV_BASE_VERSION_INFO;
5039:
5040: /*==============================================================================

Line 5041: Following two function just calls the usual pa_debug.acquire/release_user_lock

5037: END IF;
5038: END GET_REV_BASE_VERSION_INFO;
5039:
5040: /*==============================================================================
5041: Following two function just calls the usual pa_debug.acquire/release_user_lock
5042: but in AUTONOMOUS mode .This two functions are added as part of fix for #2622476.
5043: ==============================================================================*/
5044:
5045: FUNCTION ACQUIRE_USER_LOCK

Line 5052: RETURN pa_debug.Acquire_User_Lock(X_LOCK_NAME) ;

5048: IS
5049: PRAGMA AUTONOMOUS_TRANSACTION;
5050: BEGIN
5051:
5052: RETURN pa_debug.Acquire_User_Lock(X_LOCK_NAME) ;
5053:
5054: END ACQUIRE_USER_LOCK ;
5055:
5056: FUNCTION RELEASE_USER_LOCK

Line 5063: RETURN pa_debug.Release_User_Lock(X_LOCK_NAME) ;

5059: IS
5060: PRAGMA AUTONOMOUS_TRANSACTION;
5061: BEGIN
5062:
5063: RETURN pa_debug.Release_User_Lock(X_LOCK_NAME) ;
5064:
5065: END RELEASE_USER_LOCK ;
5066:
5067: /*==================================================================

Line 5103: IF P_PA_DEBUG_MODE = 'Y' THEN

5099: BEGIN
5100:
5101: x_msg_count := 0;
5102: x_return_status := FND_API.G_RET_STS_SUCCESS;
5103: IF P_PA_DEBUG_MODE = 'Y' THEN
5104: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5105: END IF;
5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5107: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 5104: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');

5100:
5101: x_msg_count := 0;
5102: x_return_status := FND_API.G_RET_STS_SUCCESS;
5103: IF P_PA_DEBUG_MODE = 'Y' THEN
5104: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5105: END IF;
5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5107: l_debug_mode := NVL(l_debug_mode, 'Y');
5108: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

5102: x_return_status := FND_API.G_RET_STS_SUCCESS;
5103: IF P_PA_DEBUG_MODE = 'Y' THEN
5104: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5105: END IF;
5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5107: l_debug_mode := NVL(l_debug_mode, 'Y');
5108: IF P_PA_DEBUG_MODE = 'Y' THEN
5109: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5110: END IF;

Line 5108: IF P_PA_DEBUG_MODE = 'Y' THEN

5104: pa_debug.set_err_stack('PA_FIN_PLAN_UITLS.get_converted_amounts');
5105: END IF;
5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5107: l_debug_mode := NVL(l_debug_mode, 'Y');
5108: IF P_PA_DEBUG_MODE = 'Y' THEN
5109: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5110: END IF;
5111:
5112: -- Check for business rules violations

Line 5109: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);

5105: END IF;
5106: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
5107: l_debug_mode := NVL(l_debug_mode, 'Y');
5108: IF P_PA_DEBUG_MODE = 'Y' THEN
5109: pa_debug.set_process('get_converted_amounts: ' || 'PLSQL','LOG',l_debug_mode);
5110: END IF;
5111:
5112: -- Check for business rules violations
5113:

Line 5114: pa_debug.g_err_stage:= 'Validating input parameters';

5110: END IF;
5111:
5112: -- Check for business rules violations
5113:
5114: pa_debug.g_err_stage:= 'Validating input parameters';
5115: IF P_PA_DEBUG_MODE = 'Y' THEN
5116: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5117: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5118: END IF;

Line 5115: IF P_PA_DEBUG_MODE = 'Y' THEN

5111:
5112: -- Check for business rules violations
5113:
5114: pa_debug.g_err_stage:= 'Validating input parameters';
5115: IF P_PA_DEBUG_MODE = 'Y' THEN
5116: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5117: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5118: END IF;
5119:

Line 5116: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,

5112: -- Check for business rules violations
5113:
5114: pa_debug.g_err_stage:= 'Validating input parameters';
5115: IF P_PA_DEBUG_MODE = 'Y' THEN
5116: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,
5117: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5118: END IF;
5119:
5120: --Check if plan version id is null

Line 5128: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;

5124: (p_project_currency_Code IS NULL) OR
5125: (p_projfunc_currency_code IS NULL)
5126: THEN
5127:
5128: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5129: IF P_PA_DEBUG_MODE = 'Y' THEN
5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;

Line 5129: IF P_PA_DEBUG_MODE = 'Y' THEN

5125: (p_projfunc_currency_code IS NULL)
5126: THEN
5127:
5128: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5129: IF P_PA_DEBUG_MODE = 'Y' THEN
5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5126: THEN
5127:
5128: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5129: IF P_PA_DEBUG_MODE = 'Y' THEN
5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;

5128: pa_debug.g_err_stage:= 'p_budget_version_id = '|| p_budget_version_id;
5129: IF P_PA_DEBUG_MODE = 'Y' THEN
5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;

Line 5133: IF P_PA_DEBUG_MODE = 'Y' THEN

5129: IF P_PA_DEBUG_MODE = 'Y' THEN
5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5130: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5131: END IF;
5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;

5132: pa_debug.g_err_stage:= 'p_txn_currency_Code = '|| p_txn_currency_Code;
5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;

Line 5137: IF P_PA_DEBUG_MODE = 'Y' THEN

5133: IF P_PA_DEBUG_MODE = 'Y' THEN
5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5141: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5134: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5135: END IF;
5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5141: IF P_PA_DEBUG_MODE = 'Y' THEN
5142: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;

5136: pa_debug.g_err_stage:= 'p_project_currency_Code = '|| p_project_currency_Code;
5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5141: IF P_PA_DEBUG_MODE = 'Y' THEN
5142: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5143: END IF;
5144:

Line 5141: IF P_PA_DEBUG_MODE = 'Y' THEN

5137: IF P_PA_DEBUG_MODE = 'Y' THEN
5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5141: IF P_PA_DEBUG_MODE = 'Y' THEN
5142: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5143: END IF;
5144:
5145: PA_UTILS.ADD_MESSAGE

Line 5142: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5138: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5139: END IF;
5140: pa_debug.g_err_stage:= 'p_projfunc_currency_code = '|| p_projfunc_currency_code;
5141: IF P_PA_DEBUG_MODE = 'Y' THEN
5142: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5143: END IF;
5144:
5145: PA_UTILS.ADD_MESSAGE
5146: (p_app_short_name => 'PA',

Line 5201: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';

5197: x_project_revenue
5198: FROM Pa_Fp_Rollup_Tmp
5199: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5200:
5201: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5202: IF P_PA_DEBUG_MODE = 'Y' THEN
5203: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5204: pa_debug.reset_err_stack;
5205: END IF;

Line 5202: IF P_PA_DEBUG_MODE = 'Y' THEN

5198: FROM Pa_Fp_Rollup_Tmp
5199: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5200:
5201: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5202: IF P_PA_DEBUG_MODE = 'Y' THEN
5203: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5204: pa_debug.reset_err_stack;
5205: END IF;
5206: EXCEPTION

Line 5203: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5199: WHERE RESOURCE_ASSIGNMENT_ID = -1;
5200:
5201: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5202: IF P_PA_DEBUG_MODE = 'Y' THEN
5203: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5204: pa_debug.reset_err_stack;
5205: END IF;
5206: EXCEPTION
5207:

Line 5204: pa_debug.reset_err_stack;

5200:
5201: pa_debug.g_err_stage:= 'Exiting get_converted_amounts';
5202: IF P_PA_DEBUG_MODE = 'Y' THEN
5203: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5204: pa_debug.reset_err_stack;
5205: END IF;
5206: EXCEPTION
5207:
5208: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 5226: pa_debug.g_err_stage:= 'Invalid Arguments Passed';

5222: ELSE
5223: x_msg_count := l_msg_count;
5224: END IF;
5225:
5226: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5227: IF P_PA_DEBUG_MODE = 'Y' THEN
5228: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5229: pa_debug.reset_err_stack;
5230: END IF;

Line 5227: IF P_PA_DEBUG_MODE = 'Y' THEN

5223: x_msg_count := l_msg_count;
5224: END IF;
5225:
5226: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5227: IF P_PA_DEBUG_MODE = 'Y' THEN
5228: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5229: pa_debug.reset_err_stack;
5230: END IF;
5231: RAISE;

Line 5228: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5224: END IF;
5225:
5226: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5227: IF P_PA_DEBUG_MODE = 'Y' THEN
5228: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5229: pa_debug.reset_err_stack;
5230: END IF;
5231: RAISE;
5232:

Line 5229: pa_debug.reset_err_stack;

5225:
5226: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
5227: IF P_PA_DEBUG_MODE = 'Y' THEN
5228: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5229: pa_debug.reset_err_stack;
5230: END IF;
5231: RAISE;
5232:
5233: WHEN others THEN

Line 5242: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

5238: FND_MSG_PUB.add_exc_msg
5239: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5240: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5241: ,p_error_text => sqlerrm);
5242: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5243: IF P_PA_DEBUG_MODE = 'Y' THEN
5244: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5245: pa_debug.reset_err_stack;
5246: END IF;

Line 5243: IF P_PA_DEBUG_MODE = 'Y' THEN

5239: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5240: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5241: ,p_error_text => sqlerrm);
5242: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5243: IF P_PA_DEBUG_MODE = 'Y' THEN
5244: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5245: pa_debug.reset_err_stack;
5246: END IF;
5247: RAISE;

Line 5244: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5240: ,p_procedure_name => 'conv_est_amounts_of_ci_version'
5241: ,p_error_text => sqlerrm);
5242: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5243: IF P_PA_DEBUG_MODE = 'Y' THEN
5244: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5245: pa_debug.reset_err_stack;
5246: END IF;
5247: RAISE;
5248:

Line 5245: pa_debug.reset_err_stack;

5241: ,p_error_text => sqlerrm);
5242: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5243: IF P_PA_DEBUG_MODE = 'Y' THEN
5244: pa_debug.write('get_converted_amounts: ' || l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5245: pa_debug.reset_err_stack;
5246: END IF;
5247: RAISE;
5248:
5249: END get_converted_amounts;

Line 5501: IF P_PA_DEBUG_MODE = 'Y' THEN

5497: BEGIN
5498:
5499: x_msg_count := 0;
5500: x_return_status := FND_API.G_RET_STS_SUCCESS;
5501: IF P_PA_DEBUG_MODE = 'Y' THEN
5502: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5503: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5504: END IF;
5505: -- Check for NOT NULL parameters

Line 5502: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');

5498:
5499: x_msg_count := 0;
5500: x_return_status := FND_API.G_RET_STS_SUCCESS;
5501: IF P_PA_DEBUG_MODE = 'Y' THEN
5502: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5503: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5504: END IF;
5505: -- Check for NOT NULL parameters
5506: IF (p_period_name IS NULL) OR

Line 5503: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);

5499: x_msg_count := 0;
5500: x_return_status := FND_API.G_RET_STS_SUCCESS;
5501: IF P_PA_DEBUG_MODE = 'Y' THEN
5502: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Period_Details');
5503: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5504: END IF;
5505: -- Check for NOT NULL parameters
5506: IF (p_period_name IS NULL) OR
5507: (p_plan_period_type IS NULL)

Line 5509: IF p_pa_debug_mode = 'Y' THEN

5505: -- Check for NOT NULL parameters
5506: IF (p_period_name IS NULL) OR
5507: (p_plan_period_type IS NULL)
5508: THEN
5509: IF p_pa_debug_mode = 'Y' THEN
5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;

5506: IF (p_period_name IS NULL) OR
5507: (p_plan_period_type IS NULL)
5508: THEN
5509: IF p_pa_debug_mode = 'Y' THEN
5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: END IF;

Line 5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5507: (p_plan_period_type IS NULL)
5508: THEN
5509: IF p_pa_debug_mode = 'Y' THEN
5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: END IF;
5515: PA_UTILS.ADD_MESSAGE

Line 5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;

5508: THEN
5509: IF p_pa_debug_mode = 'Y' THEN
5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: END IF;
5515: PA_UTILS.ADD_MESSAGE
5516: (p_app_short_name => 'PA',

Line 5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5509: IF p_pa_debug_mode = 'Y' THEN
5510: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5511: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5512: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5513: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5514: END IF;
5515: PA_UTILS.ADD_MESSAGE
5516: (p_app_short_name => 'PA',
5517: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 5533: IF p_pa_debug_mode = 'Y' THEN

5529: FROM pa_periods
5530: WHERE period_name = p_period_name;
5531: EXCEPTION
5532: WHEN OTHERS THEN
5533: IF p_pa_debug_mode = 'Y' THEN
5534: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5535: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5536: END IF;
5537: RAISE;

Line 5534: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;

5530: WHERE period_name = p_period_name;
5531: EXCEPTION
5532: WHEN OTHERS THEN
5533: IF p_pa_debug_mode = 'Y' THEN
5534: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5535: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5536: END IF;
5537: RAISE;
5538: END;

Line 5535: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5531: EXCEPTION
5532: WHEN OTHERS THEN
5533: IF p_pa_debug_mode = 'Y' THEN
5534: pa_debug.g_err_stage:= 'Error while fetching the details of pa_period'||SQLERRM;
5535: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5536: END IF;
5537: RAISE;
5538: END;
5539: ELSIF p_plan_period_type = 'GL' THEN

Line 5555: IF p_pa_debug_mode = 'Y' THEN

5551: AND g.period_name = p_period_name;
5552:
5553: EXCEPTION
5554: WHEN OTHERS THEN
5555: IF p_pa_debug_mode = 'Y' THEN
5556: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5557: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5558: END IF;
5559: RAISE;

Line 5556: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;

5552:
5553: EXCEPTION
5554: WHEN OTHERS THEN
5555: IF p_pa_debug_mode = 'Y' THEN
5556: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5557: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5558: END IF;
5559: RAISE;
5560: END;

Line 5557: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5553: EXCEPTION
5554: WHEN OTHERS THEN
5555: IF p_pa_debug_mode = 'Y' THEN
5556: pa_debug.g_err_stage:= 'Error while fetching the details of gl_period'||SQLERRM;
5557: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5558: END IF;
5559: RAISE;
5560: END;
5561: END IF;

Line 5563: IF p_pa_debug_mode = 'Y' THEN

5559: RAISE;
5560: END;
5561: END IF;
5562:
5563: IF p_pa_debug_mode = 'Y' THEN
5564: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5565: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5566: pa_debug.reset_err_stack;
5567: END IF;

Line 5564: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';

5560: END;
5561: END IF;
5562:
5563: IF p_pa_debug_mode = 'Y' THEN
5564: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5565: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5566: pa_debug.reset_err_stack;
5567: END IF;
5568: EXCEPTION

Line 5565: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5561: END IF;
5562:
5563: IF p_pa_debug_mode = 'Y' THEN
5564: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5565: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5566: pa_debug.reset_err_stack;
5567: END IF;
5568: EXCEPTION
5569:

Line 5566: pa_debug.reset_err_stack;

5562:
5563: IF p_pa_debug_mode = 'Y' THEN
5564: pa_debug.g_err_stage:= 'Exiting Get_Period_Details';
5565: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5566: pa_debug.reset_err_stack;
5567: END IF;
5568: EXCEPTION
5569:
5570: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 5587: IF P_PA_DEBUG_MODE = 'Y' THEN

5583: x_msg_count := l_msg_count;
5584: ELSE
5585: x_msg_count := l_msg_count;
5586: END IF;
5587: IF P_PA_DEBUG_MODE = 'Y' THEN
5588: pa_debug.reset_err_stack;
5589: END IF;
5590: RAISE;
5591:

Line 5588: pa_debug.reset_err_stack;

5584: ELSE
5585: x_msg_count := l_msg_count;
5586: END IF;
5587: IF P_PA_DEBUG_MODE = 'Y' THEN
5588: pa_debug.reset_err_stack;
5589: END IF;
5590: RAISE;
5591:
5592: WHEN others THEN

Line 5601: IF p_pa_debug_mode = 'Y' THEN

5597: FND_MSG_PUB.add_exc_msg
5598: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5599: ,p_procedure_name => 'Get_Period_Details'
5600: ,p_error_text => SQLERRM);
5601: IF p_pa_debug_mode = 'Y' THEN
5602: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5603: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5604: pa_debug.reset_err_stack;
5605: END IF;

Line 5602: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

5598: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5599: ,p_procedure_name => 'Get_Period_Details'
5600: ,p_error_text => SQLERRM);
5601: IF p_pa_debug_mode = 'Y' THEN
5602: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5603: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5604: pa_debug.reset_err_stack;
5605: END IF;
5606: RAISE;

Line 5603: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5599: ,p_procedure_name => 'Get_Period_Details'
5600: ,p_error_text => SQLERRM);
5601: IF p_pa_debug_mode = 'Y' THEN
5602: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5603: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5604: pa_debug.reset_err_stack;
5605: END IF;
5606: RAISE;
5607: END Get_Period_Details;

Line 5604: pa_debug.reset_err_stack;

5600: ,p_error_text => SQLERRM);
5601: IF p_pa_debug_mode = 'Y' THEN
5602: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5603: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5604: pa_debug.reset_err_stack;
5605: END IF;
5606: RAISE;
5607: END Get_Period_Details;
5608:

Line 5650: IF P_PA_DEBUG_MODE = 'Y' THEN

5646:
5647: BEGIN
5648: x_msg_count := 0;
5649: x_return_status := FND_API.G_RET_STS_SUCCESS;
5650: IF P_PA_DEBUG_MODE = 'Y' THEN
5651: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5652: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5653: END IF;
5654: -- check for not null parameters

Line 5651: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');

5647: BEGIN
5648: x_msg_count := 0;
5649: x_return_status := FND_API.G_RET_STS_SUCCESS;
5650: IF P_PA_DEBUG_MODE = 'Y' THEN
5651: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5652: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5653: END IF;
5654: -- check for not null parameters
5655: IF (p_period_name IS NULL) OR

Line 5652: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);

5648: x_msg_count := 0;
5649: x_return_status := FND_API.G_RET_STS_SUCCESS;
5650: IF P_PA_DEBUG_MODE = 'Y' THEN
5651: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Shifted_Period');
5652: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5653: END IF;
5654: -- check for not null parameters
5655: IF (p_period_name IS NULL) OR
5656: (p_plan_period_type IS NULL) OR

Line 5659: IF p_pa_debug_mode = 'Y' THEN

5655: IF (p_period_name IS NULL) OR
5656: (p_plan_period_type IS NULL) OR
5657: (p_number_of_periods IS NULL)
5658: THEN
5659: IF p_pa_debug_mode = 'Y' THEN
5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;

5656: (p_plan_period_type IS NULL) OR
5657: (p_number_of_periods IS NULL)
5658: THEN
5659: IF p_pa_debug_mode = 'Y' THEN
5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;

Line 5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5657: (p_number_of_periods IS NULL)
5658: THEN
5659: IF p_pa_debug_mode = 'Y' THEN
5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;
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_plan_period_type = '|| p_plan_period_type;

5658: THEN
5659: IF p_pa_debug_mode = 'Y' THEN
5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: END IF;

Line 5663: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5659: IF p_pa_debug_mode = 'Y' THEN
5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: END IF;
5667: PA_UTILS.ADD_MESSAGE

Line 5664: pa_debug.g_err_stage:= 'p_number_of_periods = '|| p_number_of_periods;

5660: pa_debug.g_err_stage:= 'p_period_name = '|| p_period_name;
5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: END IF;
5667: PA_UTILS.ADD_MESSAGE
5668: (p_app_short_name => 'PA',

Line 5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5661: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5662: pa_debug.g_err_stage:= 'p_plan_period_type = '|| p_plan_period_type;
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_number_of_periods = '|| p_number_of_periods;
5665: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5666: END IF;
5667: PA_UTILS.ADD_MESSAGE
5668: (p_app_short_name => 'PA',
5669: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 5732: IF p_pa_debug_mode = 'Y' THEN

5728: END IF;
5729: EXCEPTION
5730: /*Fix for bug 2753123 starts */
5731: WHEN NO_DATA_FOUND THEN
5732: IF p_pa_debug_mode = 'Y' THEN
5733: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5734: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5735: END IF;
5736: PA_UTILS.ADD_MESSAGE

Line 5733: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;

5729: EXCEPTION
5730: /*Fix for bug 2753123 starts */
5731: WHEN NO_DATA_FOUND THEN
5732: IF p_pa_debug_mode = 'Y' THEN
5733: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5734: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5735: END IF;
5736: PA_UTILS.ADD_MESSAGE
5737: (p_app_short_name => 'PA',

Line 5734: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5730: /*Fix for bug 2753123 starts */
5731: WHEN NO_DATA_FOUND THEN
5732: IF p_pa_debug_mode = 'Y' THEN
5733: pa_debug.g_err_stage:= 'Failed in shifting PA profile as Periods do not exist .'||SQLERRM;
5734: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5735: END IF;
5736: PA_UTILS.ADD_MESSAGE
5737: (p_app_short_name => 'PA',
5738: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');

Line 5742: IF p_pa_debug_mode = 'Y' THEN

5738: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');
5739: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5740: /*Fix for bug 2753123 ends */
5741: WHEN OTHERS THEN
5742: IF p_pa_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5745: END IF;
5746: RAISE;

Line 5743: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;

5739: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5740: /*Fix for bug 2753123 ends */
5741: WHEN OTHERS THEN
5742: IF p_pa_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5745: END IF;
5746: RAISE;
5747: END;

Line 5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5740: /*Fix for bug 2753123 ends */
5741: WHEN OTHERS THEN
5742: IF p_pa_debug_mode = 'Y' THEN
5743: pa_debug.g_err_stage:= 'Unexp error while fetching shifted PA period'||SQLERRM;
5744: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5745: END IF;
5746: RAISE;
5747: END;
5748: ELSIF p_plan_period_type = 'GL' THEN

Line 5803: IF p_pa_debug_mode = 'Y' THEN

5799: END IF;
5800: EXCEPTION
5801: /*Fix for bug 2753123 starts */
5802: WHEN NO_DATA_FOUND THEN
5803: IF p_pa_debug_mode = 'Y' THEN
5804: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5805: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5806: END IF;
5807: PA_UTILS.ADD_MESSAGE

Line 5804: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;

5800: EXCEPTION
5801: /*Fix for bug 2753123 starts */
5802: WHEN NO_DATA_FOUND THEN
5803: IF p_pa_debug_mode = 'Y' THEN
5804: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5805: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5806: END IF;
5807: PA_UTILS.ADD_MESSAGE
5808: (p_app_short_name => 'PA',

Line 5805: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5801: /*Fix for bug 2753123 starts */
5802: WHEN NO_DATA_FOUND THEN
5803: IF p_pa_debug_mode = 'Y' THEN
5804: pa_debug.g_err_stage:= 'Failed in shifting GL profile as Periods do not exist .'||SQLERRM;
5805: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5806: END IF;
5807: PA_UTILS.ADD_MESSAGE
5808: (p_app_short_name => 'PA',
5809: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');

Line 5813: IF p_pa_debug_mode = 'Y' THEN

5809: p_msg_name => 'PA_BU_INVALID_NEW_PERIOD');
5810: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5811: /*Fix for bug 2753123 ends */
5812: WHEN OTHERS THEN
5813: IF p_pa_debug_mode = 'Y' THEN
5814: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5816: END IF;
5817: RAISE;

Line 5814: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;

5810: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5811: /*Fix for bug 2753123 ends */
5812: WHEN OTHERS THEN
5813: IF p_pa_debug_mode = 'Y' THEN
5814: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5816: END IF;
5817: RAISE;
5818: END;

Line 5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5811: /*Fix for bug 2753123 ends */
5812: WHEN OTHERS THEN
5813: IF p_pa_debug_mode = 'Y' THEN
5814: pa_debug.g_err_stage:= 'Unexp error while fetching shifted GL period'||SQLERRM;
5815: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5816: END IF;
5817: RAISE;
5818: END;
5819:

Line 5822: IF p_pa_debug_mode = 'Y' THEN

5818: END;
5819:
5820: END IF;
5821:
5822: IF p_pa_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5825: pa_debug.reset_err_stack;
5826: END IF;

Line 5823: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';

5819:
5820: END IF;
5821:
5822: IF p_pa_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5825: pa_debug.reset_err_stack;
5826: END IF;
5827: EXCEPTION

Line 5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

5820: END IF;
5821:
5822: IF p_pa_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5825: pa_debug.reset_err_stack;
5826: END IF;
5827: EXCEPTION
5828:

Line 5825: pa_debug.reset_err_stack;

5821:
5822: IF p_pa_debug_mode = 'Y' THEN
5823: pa_debug.g_err_stage:= 'Exiting Get_Shifted_Period';
5824: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5825: pa_debug.reset_err_stack;
5826: END IF;
5827: EXCEPTION
5828:
5829: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 5847: IF P_PA_DEBUG_MODE = 'Y' THEN

5843:
5844: ELSE
5845: x_msg_count := l_msg_count;
5846: END IF;
5847: IF P_PA_DEBUG_MODE = 'Y' THEN
5848: pa_debug.reset_err_stack;
5849: END IF;
5850: RAISE;
5851:

Line 5848: pa_debug.reset_err_stack;

5844: ELSE
5845: x_msg_count := l_msg_count;
5846: END IF;
5847: IF P_PA_DEBUG_MODE = 'Y' THEN
5848: pa_debug.reset_err_stack;
5849: END IF;
5850: RAISE;
5851:
5852: WHEN others THEN

Line 5861: IF p_pa_debug_mode = 'Y' THEN

5857: FND_MSG_PUB.add_exc_msg
5858: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5859: ,p_procedure_name => 'Get_Shifted_Period'
5860: ,p_error_text => SQLERRM);
5861: IF p_pa_debug_mode = 'Y' THEN
5862: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5863: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5864: pa_debug.reset_err_stack;
5865: END IF;

Line 5862: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

5858: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
5859: ,p_procedure_name => 'Get_Shifted_Period'
5860: ,p_error_text => SQLERRM);
5861: IF p_pa_debug_mode = 'Y' THEN
5862: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5863: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5864: pa_debug.reset_err_stack;
5865: END IF;
5866: RAISE;

Line 5863: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

5859: ,p_procedure_name => 'Get_Shifted_Period'
5860: ,p_error_text => SQLERRM);
5861: IF p_pa_debug_mode = 'Y' THEN
5862: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5863: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5864: pa_debug.reset_err_stack;
5865: END IF;
5866: RAISE;
5867: END Get_Shifted_Period;

Line 5864: pa_debug.reset_err_stack;

5860: ,p_error_text => SQLERRM);
5861: IF p_pa_debug_mode = 'Y' THEN
5862: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
5863: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5864: pa_debug.reset_err_stack;
5865: END IF;
5866: RAISE;
5867: END Get_Shifted_Period;
5868:

Line 5925: IF p_pa_debug_mode = 'Y' THEN

5921: C_EQUIPMENT_QUANTITY CONSTANT VARCHAR2(30) := 'EQUIPMENT';
5922:
5923: BEGIN
5924:
5925: IF p_pa_debug_mode = 'Y' THEN
5926: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5927: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5928: END IF;
5929:

Line 5926: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');

5922:
5923: BEGIN
5924:
5925: IF p_pa_debug_mode = 'Y' THEN
5926: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5927: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5928: END IF;
5929:
5930: -- Check for business rules violations

Line 5927: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);

5923: BEGIN
5924:
5925: IF p_pa_debug_mode = 'Y' THEN
5926: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Approved_Budget_Ver_Qty');
5927: pa_debug.set_process('PLSQL','LOG',p_pa_debug_mode);
5928: END IF;
5929:
5930: -- Check for business rules violations
5931:

Line 5932: IF p_pa_debug_mode = 'Y' THEN

5928: END IF;
5929:
5930: -- Check for business rules violations
5931:
5932: IF p_pa_debug_mode = 'Y' THEN
5933: pa_debug.g_err_stage:= 'Validating input parameters';
5934: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5935: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5936: END IF;

Line 5933: pa_debug.g_err_stage:= 'Validating input parameters';

5929:
5930: -- Check for business rules violations
5931:
5932: IF p_pa_debug_mode = 'Y' THEN
5933: pa_debug.g_err_stage:= 'Validating input parameters';
5934: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5935: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5936: END IF;
5937:

Line 5934: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5930: -- Check for business rules violations
5931:
5932: IF p_pa_debug_mode = 'Y' THEN
5933: pa_debug.g_err_stage:= 'Validating input parameters';
5934: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5935: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
5936: END IF;
5937:
5938: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR

Line 5940: IF p_pa_debug_mode = 'Y' THEN

5936: END IF;
5937:
5938: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5939: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5940: IF p_pa_debug_mode = 'Y' THEN
5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;

Line 5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;

5937:
5938: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5939: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5940: IF p_pa_debug_mode = 'Y' THEN
5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5938: IF ((p_project_id IS NULL) OR (p_version_code IS NULL) OR (p_quantity_type IS NULL)) OR
5939: ((p_version_code = C_CTRL_ITEM_VERSION) AND (p_ci_id IS NULL)) THEN
5940: IF p_pa_debug_mode = 'Y' THEN
5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;

5940: IF p_pa_debug_mode = 'Y' THEN
5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5941: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
5942: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
5948: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5949: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;

5943: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5944: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
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_ci_id = '|| p_ci_id;
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: pa_debug.g_err_stage:= 'p_version_code = '|| p_version_code;
5945: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
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_ci_id = '|| p_ci_id;
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_ci_id = '|| p_ci_id;

5946: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
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_ci_id = '|| p_ci_id;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: END IF;
5954: PA_UTILS.ADD_MESSAGE

Line 5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5947: pa_debug.g_err_stage:= 'p_quantity_type = '|| p_quantity_type;
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_ci_id = '|| p_ci_id;
5951: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5952: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5953: END IF;
5954: PA_UTILS.ADD_MESSAGE
5955: (p_app_short_name => 'PA',

Line 5982: IF p_pa_debug_mode = 'Y' THEN

5978:
5979: OPEN cur_ci_ver(PA_FP_CONSTANTS_PKG.G_VERSION_TYPE_COST, p_ci_id);
5980: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5981: IF cur_ci_ver%NOTFOUND THEN
5982: IF p_pa_debug_mode = 'Y' THEN
5983: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5984: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5985: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5986: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 5983: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';

5979: OPEN cur_ci_ver(PA_FP_CONSTANTS_PKG.G_VERSION_TYPE_COST, p_ci_id);
5980: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5981: IF cur_ci_ver%NOTFOUND THEN
5982: IF p_pa_debug_mode = 'Y' THEN
5983: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5984: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5985: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5986: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5987: END IF;

Line 5984: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5980: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5981: IF cur_ci_ver%NOTFOUND THEN
5982: IF p_pa_debug_mode = 'Y' THEN
5983: pa_debug.g_err_stage:= 'Could not fetch cost ci version details!!!...';
5984: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5985: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
5986: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
5987: END IF;
5988: END IF;

Line 5996: IF p_pa_debug_mode = 'Y' THEN

5992:
5993: OPEN cur_ci_ver(null, p_ci_id);
5994: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5995: IF cur_ci_ver%NOTFOUND THEN
5996: IF p_pa_debug_mode = 'Y' THEN
5997: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
5998: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5999: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6000: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 5997: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';

5993: OPEN cur_ci_ver(null, p_ci_id);
5994: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5995: IF cur_ci_ver%NOTFOUND THEN
5996: IF p_pa_debug_mode = 'Y' THEN
5997: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
5998: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5999: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6000: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6001: END IF;

Line 5998: pa_debug.write(l_module_name,pa_debug.g_err_stage,

5994: FETCH cur_ci_ver INTO cur_ci_ver_rec;
5995: IF cur_ci_ver%NOTFOUND THEN
5996: IF p_pa_debug_mode = 'Y' THEN
5997: pa_debug.g_err_stage:= 'Could not fetch ci version details!!!...';
5998: pa_debug.write(l_module_name,pa_debug.g_err_stage,
5999: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6000: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6001: END IF;
6002: END IF;

Line 6009: IF p_pa_debug_mode = 'Y' THEN

6005: ELSIF l_ver_count <> 0 THEN
6006:
6007: /* There should not be a case where there more more than 2 versions !! */
6008:
6009: IF p_pa_debug_mode = 'Y' THEN
6010: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6011: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6012: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6013: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6010: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';

6006:
6007: /* There should not be a case where there more more than 2 versions !! */
6008:
6009: IF p_pa_debug_mode = 'Y' THEN
6010: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6011: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6012: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6013: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6014: END IF;

Line 6011: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6007: /* There should not be a case where there more more than 2 versions !! */
6008:
6009: IF p_pa_debug_mode = 'Y' THEN
6010: pa_debug.g_err_stage:= 'More than 2 ctrl item versions for the project!!!';
6011: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6012: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6013: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6014: END IF;
6015: END IF;

Line 6043: IF p_pa_debug_mode = 'Y' THEN

6039: ELSIF l_ver_count <> 0 THEN
6040:
6041: /* There should not be a case where there more more than 2 versions !! */
6042:
6043: IF p_pa_debug_mode = 'Y' THEN
6044: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6045: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6046: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6047: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6044: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';

6040:
6041: /* There should not be a case where there more more than 2 versions !! */
6042:
6043: IF p_pa_debug_mode = 'Y' THEN
6044: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6045: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6046: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6047: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6048: END IF;

Line 6045: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6041: /* There should not be a case where there more more than 2 versions !! */
6042:
6043: IF p_pa_debug_mode = 'Y' THEN
6044: pa_debug.g_err_stage:= 'More than 2 current baselined item versions for the project!!!';
6045: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6046: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6047: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6048: END IF;
6049:

Line 6078: IF p_pa_debug_mode = 'Y' THEN

6074: ELSIF l_ver_count <> 0 THEN
6075:
6076: /* There should not be a case where there more more than 2 versions !! */
6077:
6078: IF p_pa_debug_mode = 'Y' THEN
6079: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6081: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6082: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 6079: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';

6075:
6076: /* There should not be a case where there more more than 2 versions !! */
6077:
6078: IF p_pa_debug_mode = 'Y' THEN
6079: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6081: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6082: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6083: END IF;

Line 6080: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6076: /* There should not be a case where there more more than 2 versions !! */
6077:
6078: IF p_pa_debug_mode = 'Y' THEN
6079: pa_debug.g_err_stage:= 'More than 2 current working versions for the project!!!';
6080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6081: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6082: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6083: END IF;
6084:

Line 6090: IF p_pa_debug_mode = 'Y' THEN

6086:
6087:
6088: END IF;
6089:
6090: IF p_pa_debug_mode = 'Y' THEN
6091: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6093: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6094: pa_debug.reset_err_stack;

Line 6091: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';

6087:
6088: END IF;
6089:
6090: IF p_pa_debug_mode = 'Y' THEN
6091: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6093: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6094: pa_debug.reset_err_stack;
6095:

Line 6092: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6088: END IF;
6089:
6090: IF p_pa_debug_mode = 'Y' THEN
6091: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6093: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6094: pa_debug.reset_err_stack;
6095:
6096: END IF;

Line 6094: pa_debug.reset_err_stack;

6090: IF p_pa_debug_mode = 'Y' THEN
6091: pa_debug.g_err_stage:= 'Exiting Pa_Fin_Plan_Utils.Get_Approved_Budget_Ver_Qty';
6092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6093: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6094: pa_debug.reset_err_stack;
6095:
6096: END IF;
6097:
6098: IF p_quantity_type = C_ESTIMATED_QUANTITY THEN

Line 6113: IF p_pa_debug_mode = 'Y' THEN

6109: EXCEPTION
6110:
6111: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6112:
6113: IF p_pa_debug_mode = 'Y' THEN
6114: pa_debug.g_err_stage := 'Invalid arg exception ..';
6115: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6116: pa_debug.reset_err_stack;
6117: END IF;

Line 6114: pa_debug.g_err_stage := 'Invalid arg exception ..';

6110:
6111: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6112:
6113: IF p_pa_debug_mode = 'Y' THEN
6114: pa_debug.g_err_stage := 'Invalid arg exception ..';
6115: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6116: pa_debug.reset_err_stack;
6117: END IF;
6118: RAISE;

Line 6115: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

6111: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
6112:
6113: IF p_pa_debug_mode = 'Y' THEN
6114: pa_debug.g_err_stage := 'Invalid arg exception ..';
6115: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6116: pa_debug.reset_err_stack;
6117: END IF;
6118: RAISE;
6119:

Line 6116: pa_debug.reset_err_stack;

6112:
6113: IF p_pa_debug_mode = 'Y' THEN
6114: pa_debug.g_err_stage := 'Invalid arg exception ..';
6115: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6116: pa_debug.reset_err_stack;
6117: END IF;
6118: RAISE;
6119:
6120: WHEN others THEN

Line 6127: IF p_pa_debug_mode = 'Y' THEN

6123: ( p_pkg_name => 'Pa_Fin_Plan_Utils'
6124: ,p_procedure_name => 'Get_Approved_Budget_Ver_Qty'
6125: ,p_error_text => sqlerrm);
6126:
6127: IF p_pa_debug_mode = 'Y' THEN
6128: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6129: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6130: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6131: pa_debug.reset_err_stack;

Line 6128: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;

6124: ,p_procedure_name => 'Get_Approved_Budget_Ver_Qty'
6125: ,p_error_text => sqlerrm);
6126:
6127: IF p_pa_debug_mode = 'Y' THEN
6128: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6129: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6130: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6131: pa_debug.reset_err_stack;
6132:

Line 6129: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6125: ,p_error_text => sqlerrm);
6126:
6127: IF p_pa_debug_mode = 'Y' THEN
6128: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6129: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6130: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6131: pa_debug.reset_err_stack;
6132:
6133: END IF;

Line 6131: pa_debug.reset_err_stack;

6127: IF p_pa_debug_mode = 'Y' THEN
6128: pa_debug.g_err_stage:= 'Unexpected Error'||sqlerrm;
6129: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6130: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
6131: pa_debug.reset_err_stack;
6132:
6133: END IF;
6134: RAISE;
6135:

Line 6172: IF P_PA_DEBUG_MODE = 'Y' THEN

6168: BEGIN
6169:
6170: x_msg_count := 0;
6171: x_return_status := FND_API.G_RET_STS_SUCCESS;
6172: IF P_PA_DEBUG_MODE = 'Y' THEN
6173: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6174: END IF;
6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6176: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6173: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');

6169:
6170: x_msg_count := 0;
6171: x_return_status := FND_API.G_RET_STS_SUCCESS;
6172: IF P_PA_DEBUG_MODE = 'Y' THEN
6173: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6174: END IF;
6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6176: l_debug_mode := NVL(l_debug_mode, 'Y');
6177: IF l_debug_mode = 'Y' THEN

Line 6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6171: x_return_status := FND_API.G_RET_STS_SUCCESS;
6172: IF P_PA_DEBUG_MODE = 'Y' THEN
6173: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.validate_input_params');
6174: END IF;
6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6176: l_debug_mode := NVL(l_debug_mode, 'Y');
6177: IF l_debug_mode = 'Y' THEN
6178: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6179: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';

Line 6178: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

6174: END IF;
6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6176: l_debug_mode := NVL(l_debug_mode, 'Y');
6177: IF l_debug_mode = 'Y' THEN
6178: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6179: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6180: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6181: END IF;
6182:

Line 6179: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';

6175: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6176: l_debug_mode := NVL(l_debug_mode, 'Y');
6177: IF l_debug_mode = 'Y' THEN
6178: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6179: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6180: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6181: END IF;
6182:
6183: /*Validate Rate Type*/

Line 6180: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);

6176: l_debug_mode := NVL(l_debug_mode, 'Y');
6177: IF l_debug_mode = 'Y' THEN
6178: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6179: pa_debug.g_err_stage:='About to validate the values for currency conversion attributes passed for AMG';
6180: pa_debug.write('validate_input_params: ' || l_module_name,pa_debug.g_err_stage,3);
6181: END IF;
6182:
6183: /*Validate Rate Type*/
6184: BEGIN

Line 6297: pa_debug.g_err_stage:= 'Exiting validate_input_params';

6293:
6294: END;
6295:
6296: IF l_debug_mode='Y' THEN
6297: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6298: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6299: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6300:
6301: pa_debug.reset_err_stack;

Line 6298: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6294: END;
6295:
6296: IF l_debug_mode='Y' THEN
6297: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6298: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6299: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6300:
6301: pa_debug.reset_err_stack;
6302: END IF;

Line 6301: pa_debug.reset_err_stack;

6297: pa_debug.g_err_stage:= 'Exiting validate_input_params';
6298: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6299: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6300:
6301: pa_debug.reset_err_stack;
6302: END IF;
6303: EXCEPTION
6304:
6305: WHEN OTHERS THEN

Line 6315: pa_debug.G_Err_Stack := SQLERRM;

6311: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
6312: ,p_procedure_name => 'validate_input_params'
6313: ,p_error_text => sqlerrm);
6314:
6315: pa_debug.G_Err_Stack := SQLERRM;
6316: IF P_PA_DEBUG_MODE = 'Y' THEN
6317: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6318: pa_debug.reset_err_stack;
6319: END IF;

Line 6316: IF P_PA_DEBUG_MODE = 'Y' THEN

6312: ,p_procedure_name => 'validate_input_params'
6313: ,p_error_text => sqlerrm);
6314:
6315: pa_debug.G_Err_Stack := SQLERRM;
6316: IF P_PA_DEBUG_MODE = 'Y' THEN
6317: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6318: pa_debug.reset_err_stack;
6319: END IF;
6320: RAISE;

Line 6317: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);

6313: ,p_error_text => sqlerrm);
6314:
6315: pa_debug.G_Err_Stack := SQLERRM;
6316: IF P_PA_DEBUG_MODE = 'Y' THEN
6317: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6318: pa_debug.reset_err_stack;
6319: END IF;
6320: RAISE;
6321:

Line 6318: pa_debug.reset_err_stack;

6314:
6315: pa_debug.G_Err_Stack := SQLERRM;
6316: IF P_PA_DEBUG_MODE = 'Y' THEN
6317: pa_debug.write('validate_input_params' || l_module_name,pa_debug.G_Err_Stack,4);
6318: pa_debug.reset_err_stack;
6319: END IF;
6320: RAISE;
6321:
6322: END validate_input_params;

Line 6358: IF P_PA_DEBUG_MODE = 'Y' THEN

6354:
6355: BEGIN
6356: x_msg_count := 0;
6357: x_return_status := FND_API.G_RET_STS_SUCCESS;
6358: IF P_PA_DEBUG_MODE = 'Y' THEN
6359: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6360: END IF;
6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6362: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6359: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');

6355: BEGIN
6356: x_msg_count := 0;
6357: x_return_status := FND_API.G_RET_STS_SUCCESS;
6358: IF P_PA_DEBUG_MODE = 'Y' THEN
6359: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6360: END IF;
6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6362: l_debug_mode := NVL(l_debug_mode, 'Y');
6363: IF l_debug_mode = 'Y' THEN

Line 6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6357: x_return_status := FND_API.G_RET_STS_SUCCESS;
6358: IF P_PA_DEBUG_MODE = 'Y' THEN
6359: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CONV_ATTRIBUTES');
6360: END IF;
6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6362: l_debug_mode := NVL(l_debug_mode, 'Y');
6363: IF l_debug_mode = 'Y' THEN
6364: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6365: pa_debug.g_err_stage:='Validating the given set of conversion attributes';

Line 6364: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

6360: END IF;
6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6362: l_debug_mode := NVL(l_debug_mode, 'Y');
6363: IF l_debug_mode = 'Y' THEN
6364: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6365: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6366: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6367: END IF;
6368:

Line 6365: pa_debug.g_err_stage:='Validating the given set of conversion attributes';

6361: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6362: l_debug_mode := NVL(l_debug_mode, 'Y');
6363: IF l_debug_mode = 'Y' THEN
6364: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6365: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6366: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6367: END IF;
6368:
6369: IF((px_rate_type IS NULL) AND

Line 6366: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6362: l_debug_mode := NVL(l_debug_mode, 'Y');
6363: IF l_debug_mode = 'Y' THEN
6364: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6365: pa_debug.g_err_stage:='Validating the given set of conversion attributes';
6366: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6367: END IF;
6368:
6369: IF((px_rate_type IS NULL) AND
6370: (px_rate_date_type IS NULL) AND

Line 6378: pa_debug.g_err_stage:='All the attributes are null';

6374: pages. Hence this check is made
6375: */
6376:
6377: IF l_debug_mode = 'Y' THEN
6378: pa_debug.g_err_stage:='All the attributes are null';
6379: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6380: END IF;
6381:
6382: IF(p_calling_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN

Line 6379: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6375: */
6376:
6377: IF l_debug_mode = 'Y' THEN
6378: pa_debug.g_err_stage:='All the attributes are null';
6379: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6380: END IF;
6381:
6382: IF(p_calling_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN
6383: /* Do Nothing as this will be checked in validate_currency_attributes */

Line 6432: pa_debug.g_err_stage:='Rate Type is Null';

6428:
6429: ELSIF (px_rate_type IS NULL) THEN
6430:
6431: IF l_debug_mode = 'Y' THEN
6432: pa_debug.g_err_stage:='Rate Type is Null';
6433: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6434: END IF;
6435:
6436: x_return_status := FND_API.G_RET_STS_ERROR;

Line 6433: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6429: ELSIF (px_rate_type IS NULL) THEN
6430:
6431: IF l_debug_mode = 'Y' THEN
6432: pa_debug.g_err_stage:='Rate Type is Null';
6433: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6434: END IF;
6435:
6436: x_return_status := FND_API.G_RET_STS_ERROR;
6437: IF (p_calling_context=PA_FP_CONSTANTS_PKG.G_AMG_API_DETAIL ) THEN

Line 6471: pa_debug.g_err_stage:='Rate Type is User';

6467:
6468: ELSIF (px_rate_type = PA_FP_CONSTANTS_PKG.G_RATE_TYPE_USER ) THEN
6469:
6470: IF l_debug_mode = 'Y' THEN
6471: pa_debug.g_err_stage:='Rate Type is User';
6472: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6473: END IF;
6474: --Added the constant G_AMG_API_HEADER as part of changes due to finplan model in AMG
6475: IF (px_rate IS NULL AND nvl(p_calling_context,'-99') NOT IN ( PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE

Line 6472: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6468: ELSIF (px_rate_type = PA_FP_CONSTANTS_PKG.G_RATE_TYPE_USER ) THEN
6469:
6470: IF l_debug_mode = 'Y' THEN
6471: pa_debug.g_err_stage:='Rate Type is User';
6472: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6473: END IF;
6474: --Added the constant G_AMG_API_HEADER as part of changes due to finplan model in AMG
6475: IF (px_rate IS NULL AND nvl(p_calling_context,'-99') NOT IN ( PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE
6476: ,PA_FP_CONSTANTS_PKG.G_AMG_API_HEADER) )THEN

Line 6531: pa_debug.g_err_stage:='Rate Date Type is Null';

6527: /* this means that rate type is not null and its value is not user */
6528: ELSIF (px_rate_date_type IS NULL) THEN
6529:
6530: IF l_debug_mode = 'Y' THEN
6531: pa_debug.g_err_stage:='Rate Date Type is Null';
6532: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6533: END IF;
6534:
6535: x_return_status := FND_API.G_RET_STS_ERROR;

Line 6532: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6528: ELSIF (px_rate_date_type IS NULL) THEN
6529:
6530: IF l_debug_mode = 'Y' THEN
6531: pa_debug.g_err_stage:='Rate Date Type is Null';
6532: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6533: END IF;
6534:
6535: x_return_status := FND_API.G_RET_STS_ERROR;
6536: IF (p_calling_context=PA_FP_CONSTANTS_PKG.G_AMG_API_DETAIL ) THEN

Line 6570: pa_debug.g_err_stage:='Rate Date Type is Fixed';

6566: /* this means that rate type is not null and its value is not user and rate_date_type value is FIXED */
6567: ELSIF px_rate_date_type = PA_FP_CONSTANTS_PKG.G_RATE_DATE_TYPE_FIXED_DATE THEN
6568:
6569: IF l_debug_mode = 'Y' THEN
6570: pa_debug.g_err_stage:='Rate Date Type is Fixed';
6571: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6572: END IF;
6573:
6574: /* Rate Date Should not be null */

Line 6571: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);

6567: ELSIF px_rate_date_type = PA_FP_CONSTANTS_PKG.G_RATE_DATE_TYPE_FIXED_DATE THEN
6568:
6569: IF l_debug_mode = 'Y' THEN
6570: pa_debug.g_err_stage:='Rate Date Type is Fixed';
6571: pa_debug.write('validate_set_of_conv_attrs: ' || l_module_name,pa_debug.g_err_stage,3);
6572: END IF;
6573:
6574: /* Rate Date Should not be null */
6575: IF (px_rate_date IS NULL) THEN

Line 6621: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';

6617:
6618: END IF;
6619:
6620: IF l_debug_mode = 'Y' THEN
6621: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6622: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6623: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6624:
6625: pa_debug.reset_err_stack;

Line 6622: pa_debug.write(l_module_name,pa_debug.g_err_stage,

6618: END IF;
6619:
6620: IF l_debug_mode = 'Y' THEN
6621: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6622: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6623: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6624:
6625: pa_debug.reset_err_stack;
6626: END IF;

Line 6625: pa_debug.reset_err_stack;

6621: pa_debug.g_err_stage:= 'Exiting validate_conv_attributes';
6622: pa_debug.write(l_module_name,pa_debug.g_err_stage,
6623: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
6624:
6625: pa_debug.reset_err_stack;
6626: END IF;
6627: EXCEPTION
6628: WHEN OTHERS THEN
6629: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 6638: pa_debug.G_Err_Stack := SQLERRM;

6634: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
6635: ,p_procedure_name => 'VALIDATE_CONV_ATTRIBUTES'
6636: ,p_error_text => sqlerrm);
6637:
6638: pa_debug.G_Err_Stack := SQLERRM;
6639: IF P_PA_DEBUG_MODE = 'Y' THEN
6640: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6641: pa_debug.reset_err_stack;
6642: END IF;

Line 6639: IF P_PA_DEBUG_MODE = 'Y' THEN

6635: ,p_procedure_name => 'VALIDATE_CONV_ATTRIBUTES'
6636: ,p_error_text => sqlerrm);
6637:
6638: pa_debug.G_Err_Stack := SQLERRM;
6639: IF P_PA_DEBUG_MODE = 'Y' THEN
6640: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6641: pa_debug.reset_err_stack;
6642: END IF;
6643: RAISE;

Line 6640: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);

6636: ,p_error_text => sqlerrm);
6637:
6638: pa_debug.G_Err_Stack := SQLERRM;
6639: IF P_PA_DEBUG_MODE = 'Y' THEN
6640: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6641: pa_debug.reset_err_stack;
6642: END IF;
6643: RAISE;
6644:

Line 6641: pa_debug.reset_err_stack;

6637:
6638: pa_debug.G_Err_Stack := SQLERRM;
6639: IF P_PA_DEBUG_MODE = 'Y' THEN
6640: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
6641: pa_debug.reset_err_stack;
6642: END IF;
6643: RAISE;
6644:
6645: END VALIDATE_CONV_ATTRIBUTES;

Line 6712: IF P_PA_DEBUG_MODE = 'Y' THEN

6708:
6709: BEGIN
6710: x_msg_count := 0;
6711: x_return_status := FND_API.G_RET_STS_SUCCESS;
6712: IF P_PA_DEBUG_MODE = 'Y' THEN
6713: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6714: END IF;
6715: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6716: l_debug_mode := NVL(l_debug_mode, 'Y');

Line 6713: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');

6709: BEGIN
6710: x_msg_count := 0;
6711: x_return_status := FND_API.G_RET_STS_SUCCESS;
6712: IF P_PA_DEBUG_MODE = 'Y' THEN
6713: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6714: END IF;
6715: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6716: l_debug_mode := NVL(l_debug_mode, 'Y');
6717: IF l_debug_mode = 'Y' THEN

Line 6715: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

6711: x_return_status := FND_API.G_RET_STS_SUCCESS;
6712: IF P_PA_DEBUG_MODE = 'Y' THEN
6713: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.VALIDATE_CURRENCY_ATTRIBUTES');
6714: END IF;
6715: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6716: l_debug_mode := NVL(l_debug_mode, 'Y');
6717: IF l_debug_mode = 'Y' THEN
6718: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6719: END IF;

Line 6718: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

6714: END IF;
6715: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
6716: l_debug_mode := NVL(l_debug_mode, 'Y');
6717: IF l_debug_mode = 'Y' THEN
6718: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
6719: END IF;
6720: IF (p_project_currency_code IS NULL OR
6721: p_projfunc_currency_code IS NULL OR
6722: p_context IS NULL OR

Line 6726: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;

6722: p_context IS NULL OR
6723: p_attrs_to_be_validated IS NULL ) THEN
6724:
6725: IF l_debug_mode = 'Y' THEN
6726: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6727: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6728:
6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 6727: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6723: p_attrs_to_be_validated IS NULL ) THEN
6724:
6725: IF l_debug_mode = 'Y' THEN
6726: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6727: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6728:
6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6731:

Line 6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;

6725: IF l_debug_mode = 'Y' THEN
6726: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6727: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6728:
6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6731:
6732: pa_debug.g_err_stage:='p_context = ' || p_context;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

6726: pa_debug.g_err_stage:='p_project_currency_code = ' || p_project_currency_code;
6727: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6728:
6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6731:
6732: pa_debug.g_err_stage:='p_context = ' || p_context;
6733: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6734:

Line 6732: pa_debug.g_err_stage:='p_context = ' || p_context;

6728:
6729: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6731:
6732: pa_debug.g_err_stage:='p_context = ' || p_context;
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_attrs_to_be_validated = ' || p_attrs_to_be_validated;
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: pa_debug.g_err_stage:='p_projfunc_currency_code = ' || p_projfunc_currency_code;
6730: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6731:
6732: pa_debug.g_err_stage:='p_context = ' || p_context;
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_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737: END IF;

Line 6735: pa_debug.g_err_stage:='p_attrs_to_be_validated = ' || p_attrs_to_be_validated;

6731:
6732: pa_debug.g_err_stage:='p_context = ' || p_context;
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_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737: END IF;
6738:
6739: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

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_context = ' || p_context;
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_attrs_to_be_validated = ' || p_attrs_to_be_validated;
6736: pa_debug.write('Get_Baselined_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
6737: END IF;
6738:
6739: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6740: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 6743: pa_debug.g_err_stage := 'Invalid parameters passed' ;

6739: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
6740: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
6741:
6742: IF l_debug_mode = 'Y' THEN
6743: pa_debug.g_err_stage := 'Invalid parameters passed' ;
6744: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6745: END IF;
6746: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6747:

Line 6744: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);

6740: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
6741:
6742: IF l_debug_mode = 'Y' THEN
6743: pa_debug.g_err_stage := 'Invalid parameters passed' ;
6744: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6745: END IF;
6746: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6747:
6748: END IF;

Line 6752: pa_debug.g_err_stage:='About to validate the currency conversion attributes';

6748: END IF;
6749:
6750:
6751: IF l_debug_mode = 'Y' THEN
6752: pa_debug.g_err_stage:='About to validate the currency conversion attributes';
6753: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6754: END IF;
6755:
6756: /*Get the message tokens that may be required while validating the attributes*/

Line 6753: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6749:
6750:
6751: IF l_debug_mode = 'Y' THEN
6752: pa_debug.g_err_stage:='About to validate the currency conversion attributes';
6753: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6754: END IF;
6755:
6756: /*Get the message tokens that may be required while validating the attributes*/
6757:

Line 6792: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;

6788: /* Throw the error if the above API is not successfully executed */
6789: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6790:
6791: IF l_debug_mode = 'Y' THEN
6792: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;
6793: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6794: END IF;
6795: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6796:

Line 6793: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);

6789: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6790:
6791: IF l_debug_mode = 'Y' THEN
6792: pa_debug.g_err_stage := 'Values for rate type and rate date types are not valied' ;
6793: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,1);
6794: END IF;
6795: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
6796:
6797: END IF;

Line 6836: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;

6832: ,x_msg_data => x_msg_data);
6833:
6834: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6835: IF l_debug_mode = 'Y' THEN
6836: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;
6837: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6838: END IF;
6839: l_any_error_occurred_flag := 'Y';
6840:

Line 6837: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6833:
6834: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6835: IF l_debug_mode = 'Y' THEN
6836: pa_debug.g_err_stage := 'failed for PFC COST attributes' ;
6837: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6838: END IF;
6839: l_any_error_occurred_flag := 'Y';
6840:
6841: /* webADI looks only for the first error message */

Line 6878: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6874: ,x_msg_data => x_msg_data);
6875:
6876: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6877: IF l_debug_mode = 'Y' THEN
6878: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6879: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6880: END IF;
6881: l_any_error_occurred_flag := 'Y';
6882:

Line 6879: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6875:
6876: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6877: IF l_debug_mode = 'Y' THEN
6878: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6879: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6880: END IF;
6881: l_any_error_occurred_flag := 'Y';
6882:
6883: /* webADI looks only for the first error message */

Line 6929: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6925: ,x_msg_count => x_msg_count
6926: ,x_msg_data => x_msg_data);
6927: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6928: IF l_debug_mode = 'Y' THEN
6929: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6930: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6931: END IF;
6932: l_any_error_occurred_flag := 'Y';
6933:

Line 6930: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6926: ,x_msg_data => x_msg_data);
6927: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6928: IF l_debug_mode = 'Y' THEN
6929: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6930: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6931: END IF;
6932: l_any_error_occurred_flag := 'Y';
6933:
6934: /* webADI looks only for the first error message */

Line 6970: pa_debug.g_err_stage := 'failed for PC COST attributes' ;

6966: ,x_msg_data => x_msg_data);
6967:
6968: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6969: IF l_debug_mode = 'Y' THEN
6970: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6971: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6972: END IF;
6973: l_any_error_occurred_flag := 'Y';
6974:

Line 6971: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);

6967:
6968: IF x_return_status <> FND_API.G_RET_STS_SUCCESS THEN
6969: IF l_debug_mode = 'Y' THEN
6970: pa_debug.g_err_stage := 'failed for PC COST attributes' ;
6971: pa_debug.write('validate_currency_attributes: ' || l_module_name,pa_debug.g_err_stage,3);
6972: END IF;
6973: l_any_error_occurred_flag := 'Y';
6974:
6975: /* webADI looks only for the first error message */

Line 7006: pa_debug.g_err_stage:= 'p_context is '||p_context;

7002:
7003: /*Do the Additional validations required in the case of Create / Update plan type page*/
7004:
7005: IF l_debug_mode='Y' THEN
7006: pa_debug.g_err_stage:= 'p_context is '||p_context;
7007: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7008: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7009: END IF;
7010:

Line 7007: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7003: /*Do the Additional validations required in the case of Create / Update plan type page*/
7004:
7005: IF l_debug_mode='Y' THEN
7006: pa_debug.g_err_stage:= 'p_context is '||p_context;
7007: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7008: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7009: END IF;
7010:
7011: IF (p_context=PA_FP_CONSTANTS_PKG.G_CR_UP_PLAN_TYPE_PAGE) THEN

Line 7072: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';

7068: END IF;
7069:
7070: IF l_any_error_occurred_flag = 'Y' THEN
7071: IF l_debug_mode='Y' THEN
7072: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';
7073: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7074: END IF;
7075:
7076: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7073: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7069:
7070: IF l_any_error_occurred_flag = 'Y' THEN
7071: IF l_debug_mode='Y' THEN
7072: pa_debug.g_err_stage:= 'some of the conversion attributes failed.. Returning error';
7073: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7074: END IF;
7075:
7076: x_return_status := FND_API.G_RET_STS_ERROR;
7077: END IF;

Line 7080: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';

7076: x_return_status := FND_API.G_RET_STS_ERROR;
7077: END IF;
7078:
7079: IF l_debug_mode='Y' THEN
7080: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7081: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7082: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7083:
7084: pa_debug.reset_err_stack;

Line 7081: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7077: END IF;
7078:
7079: IF l_debug_mode='Y' THEN
7080: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7081: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7082: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7083:
7084: pa_debug.reset_err_stack;
7085: END IF;

Line 7084: pa_debug.reset_err_stack;

7080: pa_debug.g_err_stage:= 'Exiting validate_currency_attributes';
7081: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7082: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7083:
7084: pa_debug.reset_err_stack;
7085: END IF;
7086: EXCEPTION
7087: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
7088: x_return_status := FND_API.G_RET_STS_ERROR;

Line 7104: IF P_PA_DEBUG_MODE = 'Y' THEN

7100: x_msg_count := l_msg_count;
7101: ELSE
7102: x_msg_count := l_msg_count;
7103: END IF;
7104: IF P_PA_DEBUG_MODE = 'Y' THEN
7105: pa_debug.reset_err_stack;
7106: END IF;
7107: RETURN;
7108:

Line 7105: pa_debug.reset_err_stack;

7101: ELSE
7102: x_msg_count := l_msg_count;
7103: END IF;
7104: IF P_PA_DEBUG_MODE = 'Y' THEN
7105: pa_debug.reset_err_stack;
7106: END IF;
7107: RETURN;
7108:
7109: WHEN OTHERS THEN

Line 7119: pa_debug.G_Err_Stack := SQLERRM;

7115: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7116: ,p_procedure_name => 'VALIDATE_CURRENCY_ATTRIBUTES'
7117: ,p_error_text => sqlerrm);
7118:
7119: pa_debug.G_Err_Stack := SQLERRM;
7120: IF P_PA_DEBUG_MODE = 'Y' THEN
7121: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7122: pa_debug.reset_err_stack;
7123: END IF;

Line 7120: IF P_PA_DEBUG_MODE = 'Y' THEN

7116: ,p_procedure_name => 'VALIDATE_CURRENCY_ATTRIBUTES'
7117: ,p_error_text => sqlerrm);
7118:
7119: pa_debug.G_Err_Stack := SQLERRM;
7120: IF P_PA_DEBUG_MODE = 'Y' THEN
7121: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7122: pa_debug.reset_err_stack;
7123: END IF;
7124: RAISE;

Line 7121: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);

7117: ,p_error_text => sqlerrm);
7118:
7119: pa_debug.G_Err_Stack := SQLERRM;
7120: IF P_PA_DEBUG_MODE = 'Y' THEN
7121: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7122: pa_debug.reset_err_stack;
7123: END IF;
7124: RAISE;
7125:

Line 7122: pa_debug.reset_err_stack;

7118:
7119: pa_debug.G_Err_Stack := SQLERRM;
7120: IF P_PA_DEBUG_MODE = 'Y' THEN
7121: pa_debug.write('CHECK_MRC_INSTALL: ' || l_module_name,pa_debug.G_Err_Stack,4);
7122: pa_debug.reset_err_stack;
7123: END IF;
7124: RAISE;
7125:
7126: END VALIDATE_CURRENCY_ATTRIBUTES;

Line 7164: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

7160: BEGIN
7161:
7162: x_msg_count := 0;
7163: x_return_status := FND_API.G_RET_STS_SUCCESS;
7164: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7165: IF l_debug_mode = 'Y' THEN
7166: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7167: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7168: END IF;

Line 7166: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');

7162: x_msg_count := 0;
7163: x_return_status := FND_API.G_RET_STS_SUCCESS;
7164: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7165: IF l_debug_mode = 'Y' THEN
7166: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7167: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7168: END IF;
7169:
7170: -- Check for business rules violations

Line 7167: pa_debug.set_process('PLSQL','LOG',l_debug_mode);

7163: x_return_status := FND_API.G_RET_STS_SUCCESS;
7164: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7165: IF l_debug_mode = 'Y' THEN
7166: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER');
7167: pa_debug.set_process('PLSQL','LOG',l_debug_mode);
7168: END IF;
7169:
7170: -- Check for business rules violations
7171: IF l_debug_mode = 'Y' THEN

Line 7172: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';

7168: END IF;
7169:
7170: -- Check for business rules violations
7171: IF l_debug_mode = 'Y' THEN
7172: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';
7173: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7174: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7175: END IF;
7176:

Line 7173: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7169:
7170: -- Check for business rules violations
7171: IF l_debug_mode = 'Y' THEN
7172: pa_debug.g_err_stage:= 'Entering PA_FIN_PLAN_UTILS.GET_PLAN_TYPE_OPTS_FOR_VER';
7173: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7174: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7175: END IF;
7176:
7177: IF l_debug_mode = 'Y' THEN

Line 7178: pa_debug.g_err_stage:= 'Validating input parameters';

7174: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7175: END IF;
7176:
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:= 'Validating input parameters';
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: END IF;
7176:
7177: IF l_debug_mode = 'Y' THEN
7178: pa_debug.g_err_stage:= 'Validating input parameters';
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 (p_plan_version_id IS NULL) THEN

Line 7185: pa_debug.g_err_stage:= 'plan version id is null';

7181: END IF;
7182:
7183: IF (p_plan_version_id IS NULL) THEN
7184: IF l_debug_mode = 'Y' THEN
7185: pa_debug.g_err_stage:= 'plan version id is null';
7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7187: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7188: END IF;
7189: PA_UTILS.ADD_MESSAGE

Line 7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7182:
7183: IF (p_plan_version_id IS NULL) THEN
7184: IF l_debug_mode = 'Y' THEN
7185: pa_debug.g_err_stage:= 'plan version id is null';
7186: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7187: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7188: END IF;
7189: PA_UTILS.ADD_MESSAGE
7190: (p_app_short_name => 'PA',

Line 7202: pa_debug.g_err_stage:= 'Plan type record not found';

7198: into x_fin_plan_type_id,x_plan_type_option_id,x_version_type;
7199:
7200: IF plan_type_cur%NOTFOUND THEN
7201: IF l_debug_mode = 'Y' THEN
7202: pa_debug.g_err_stage:= 'Plan type record not found';
7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7204: END IF;
7205: CLOSE plan_type_cur;
7206: RAISE NO_DATA_FOUND;

Line 7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

7199:
7200: IF plan_type_cur%NOTFOUND THEN
7201: IF l_debug_mode = 'Y' THEN
7202: pa_debug.g_err_stage:= 'Plan type record not found';
7203: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7204: END IF;
7205: CLOSE plan_type_cur;
7206: RAISE NO_DATA_FOUND;
7207: END IF;

Line 7212: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;

7208:
7209: CLOSE plan_type_cur;
7210:
7211: IF l_debug_mode = 'Y' THEN
7212: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7213: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7214: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7216: END IF;

Line 7213: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7209: CLOSE plan_type_cur;
7210:
7211: IF l_debug_mode = 'Y' THEN
7212: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7213: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7214: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7216: END IF;
7217:

Line 7214: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;

7210:
7211: IF l_debug_mode = 'Y' THEN
7212: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7213: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7214: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7216: END IF;
7217:
7218: IF l_debug_mode = 'Y' THEN

Line 7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7211: IF l_debug_mode = 'Y' THEN
7212: pa_debug.g_err_stage:= 'Plan type id->'||x_fin_plan_type_id;
7213: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7214: pa_debug.g_err_stage:= 'Plan type option id->'||x_plan_type_option_id;
7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7216: END IF;
7217:
7218: IF l_debug_mode = 'Y' THEN
7219: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';

Line 7219: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';

7215: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7216: END IF;
7217:
7218: IF l_debug_mode = 'Y' THEN
7219: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7220: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7221: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: pa_debug.reset_err_stack;
7223:

Line 7220: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7216: END IF;
7217:
7218: IF l_debug_mode = 'Y' THEN
7219: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7220: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7221: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: pa_debug.reset_err_stack;
7223:
7224: END IF;

Line 7222: pa_debug.reset_err_stack;

7218: IF l_debug_mode = 'Y' THEN
7219: pa_debug.g_err_stage:= 'Exiting GET_PLAN_TYPE_OPTS_FOR_VER';
7220: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7221: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7222: pa_debug.reset_err_stack;
7223:
7224: END IF;
7225:
7226: EXCEPTION

Line 7247: pa_debug.reset_err_stack;

7243: ELSE
7244: x_msg_count := l_msg_count;
7245: END IF;
7246: IF l_debug_mode = 'Y' THEN
7247: pa_debug.reset_err_stack;
7248: END IF;
7249: RETURN;
7250:
7251: WHEN others THEN

Line 7263: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

7259: ,p_procedure_name => 'GET_PLAN_TYPE_OPTS_FOR_VER'
7260: ,p_error_text => x_msg_data);
7261:
7262: IF l_debug_mode = 'Y' THEN
7263: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7264: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7265: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7266: pa_debug.reset_err_stack;
7267:

Line 7264: pa_debug.write(L_module_name,pa_debug.g_err_stage,

7260: ,p_error_text => x_msg_data);
7261:
7262: IF l_debug_mode = 'Y' THEN
7263: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7264: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7265: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7266: pa_debug.reset_err_stack;
7267:
7268: END IF;

Line 7266: pa_debug.reset_err_stack;

7262: IF l_debug_mode = 'Y' THEN
7263: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7264: pa_debug.write(L_module_name,pa_debug.g_err_stage,
7265: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7266: pa_debug.reset_err_stack;
7267:
7268: END IF;
7269: RAISE;
7270:

Line 7302: IF P_PA_DEBUG_MODE = 'Y' THEN

7298:
7299: BEGIN
7300: x_msg_count := 0;
7301: x_return_status := FND_API.G_RET_STS_SUCCESS;
7302: IF P_PA_DEBUG_MODE = 'Y' THEN
7303: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7304: p_debug_mode => p_pa_debug_mode );
7305: END IF;
7306: -- Check for NOT NULL parameters

Line 7303: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',

7299: BEGIN
7300: x_msg_count := 0;
7301: x_return_status := FND_API.G_RET_STS_SUCCESS;
7302: IF P_PA_DEBUG_MODE = 'Y' THEN
7303: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7304: p_debug_mode => p_pa_debug_mode );
7305: END IF;
7306: -- Check for NOT NULL parameters
7307: IF (p_project_id IS NULL)

Line 7304: p_debug_mode => p_pa_debug_mode );

7300: x_msg_count := 0;
7301: x_return_status := FND_API.G_RET_STS_SUCCESS;
7302: IF P_PA_DEBUG_MODE = 'Y' THEN
7303: PA_DEBUG.Set_Curr_Function( p_function => 'Get_Project_Curr_Attributes',
7304: p_debug_mode => p_pa_debug_mode );
7305: END IF;
7306: -- Check for NOT NULL parameters
7307: IF (p_project_id IS NULL)
7308: THEN

Line 7309: IF p_pa_debug_mode = 'Y' THEN

7305: END IF;
7306: -- Check for NOT NULL parameters
7307: IF (p_project_id IS NULL)
7308: THEN
7309: IF p_pa_debug_mode = 'Y' THEN
7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;

7306: -- Check for NOT NULL parameters
7307: IF (p_project_id IS NULL)
7308: THEN
7309: IF p_pa_debug_mode = 'Y' THEN
7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7314: END IF;

Line 7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

7307: IF (p_project_id IS NULL)
7308: THEN
7309: IF p_pa_debug_mode = 'Y' THEN
7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7314: END IF;
7315: PA_UTILS.ADD_MESSAGE

Line 7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';

7308: THEN
7309: IF p_pa_debug_mode = 'Y' THEN
7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7314: END IF;
7315: PA_UTILS.ADD_MESSAGE
7316: (p_app_short_name => 'PA',

Line 7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

7309: IF p_pa_debug_mode = 'Y' THEN
7310: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7311: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7312: pa_debug.g_err_stage:= 'Invalid Arguments Passed';
7313: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7314: END IF;
7315: PA_UTILS.ADD_MESSAGE
7316: (p_app_short_name => 'PA',
7317: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 7323: IF p_pa_debug_mode = 'Y' THEN

7319: END IF;
7320:
7321: -- Fetch the cost rate types for project currency and projfunc currency
7322:
7323: IF p_pa_debug_mode = 'Y' THEN
7324: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7325: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7326: END IF;
7327:

Line 7324: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;

7320:
7321: -- Fetch the cost rate types for project currency and projfunc currency
7322:
7323: IF p_pa_debug_mode = 'Y' THEN
7324: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7325: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7326: END IF;
7327:
7328: SELECT p.multi_currency_billing_flag

Line 7325: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7321: -- Fetch the cost rate types for project currency and projfunc currency
7322:
7323: IF p_pa_debug_mode = 'Y' THEN
7324: pa_debug.g_err_stage:= 'Fetching cost rate types for project = '||p_project_id;
7325: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7326: END IF;
7327:
7328: SELECT p.multi_currency_billing_flag
7329: ,p.project_currency_code

Line 7350: IF p_pa_debug_mode = 'Y' THEN

7346: AND p.org_id = i.org_id; /* Bug 3174677: Added the NVL ,Refer to Update
7347: "16-JAN-04 sagarwal" in the history above.
7348: This has been added as part of code merge */
7349:
7350: IF p_pa_debug_mode = 'Y' THEN
7351: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7352: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7353: pa_debug.reset_curr_function;
7354: END IF;

Line 7351: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';

7347: "16-JAN-04 sagarwal" in the history above.
7348: This has been added as part of code merge */
7349:
7350: IF p_pa_debug_mode = 'Y' THEN
7351: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7352: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7353: pa_debug.reset_curr_function;
7354: END IF;
7355: EXCEPTION

Line 7352: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

7348: This has been added as part of code merge */
7349:
7350: IF p_pa_debug_mode = 'Y' THEN
7351: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7352: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7353: pa_debug.reset_curr_function;
7354: END IF;
7355: EXCEPTION
7356:

Line 7353: pa_debug.reset_curr_function;

7349:
7350: IF p_pa_debug_mode = 'Y' THEN
7351: pa_debug.g_err_stage:= 'Exiting Get_Project_Curr_Attributes';
7352: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7353: pa_debug.reset_curr_function;
7354: END IF;
7355: EXCEPTION
7356:
7357: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7374: IF P_PA_DEBUG_MODE = 'Y' THEN

7370: x_msg_count := l_msg_count;
7371: ELSE
7372: x_msg_count := l_msg_count;
7373: END IF;
7374: IF P_PA_DEBUG_MODE = 'Y' THEN
7375: pa_debug.reset_curr_function;
7376: END IF;
7377: RAISE;
7378: WHEN others THEN

Line 7375: pa_debug.reset_curr_function;

7371: ELSE
7372: x_msg_count := l_msg_count;
7373: END IF;
7374: IF P_PA_DEBUG_MODE = 'Y' THEN
7375: pa_debug.reset_curr_function;
7376: END IF;
7377: RAISE;
7378: WHEN others THEN
7379:

Line 7387: IF p_pa_debug_mode = 'Y' THEN

7383: FND_MSG_PUB.add_exc_msg
7384: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7385: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7386: ,p_error_text => SQLERRM);
7387: IF p_pa_debug_mode = 'Y' THEN
7388: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7389: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7390: pa_debug.reset_curr_function;
7391: END IF;

Line 7388: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;

7384: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
7385: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7386: ,p_error_text => SQLERRM);
7387: IF p_pa_debug_mode = 'Y' THEN
7388: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7389: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7390: pa_debug.reset_curr_function;
7391: END IF;
7392: RAISE;

Line 7389: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

7385: ,p_procedure_name => 'Get_Project_Curr_Attributes'
7386: ,p_error_text => SQLERRM);
7387: IF p_pa_debug_mode = 'Y' THEN
7388: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7389: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7390: pa_debug.reset_curr_function;
7391: END IF;
7392: RAISE;
7393: END Get_Project_Curr_Attributes;

Line 7390: pa_debug.reset_curr_function;

7386: ,p_error_text => SQLERRM);
7387: IF p_pa_debug_mode = 'Y' THEN
7388: pa_debug.g_err_stage:= 'Unexpected Error'||SQLERRM;
7389: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7390: pa_debug.reset_curr_function;
7391: END IF;
7392: RAISE;
7393: END Get_Project_Curr_Attributes;
7394:

Line 7431: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

7427: BEGIN
7428:
7429: x_msg_count := 0;
7430: x_return_status := FND_API.G_RET_STS_SUCCESS;
7431: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7432:
7433: IF P_PA_DEBUG_MODE = 'Y' THEN
7434: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7435: p_debug_mode => l_debug_mode );

Line 7433: IF P_PA_DEBUG_MODE = 'Y' THEN

7429: x_msg_count := 0;
7430: x_return_status := FND_API.G_RET_STS_SUCCESS;
7431: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7432:
7433: IF P_PA_DEBUG_MODE = 'Y' THEN
7434: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7435: p_debug_mode => l_debug_mode );
7436: END IF;
7437: -- Check for business rules violations

Line 7434: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',

7430: x_return_status := FND_API.G_RET_STS_SUCCESS;
7431: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7432:
7433: IF P_PA_DEBUG_MODE = 'Y' THEN
7434: pa_Debug.set_curr_function( p_function => 'IsRevVersionCreationAllowed',
7435: p_debug_mode => l_debug_mode );
7436: END IF;
7437: -- Check for business rules violations
7438:

Line 7440: pa_debug.g_err_stage:= 'Validating input parameters';

7436: END IF;
7437: -- Check for business rules violations
7438:
7439: IF l_debug_mode = 'Y' THEN
7440: pa_debug.g_err_stage:= 'Validating input parameters';
7441: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7442: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7443: END IF;
7444:

Line 7441: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7437: -- Check for business rules violations
7438:
7439: IF l_debug_mode = 'Y' THEN
7440: pa_debug.g_err_stage:= 'Validating input parameters';
7441: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7442: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7443: END IF;
7444:
7445: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)

Line 7448: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;

7444:
7445: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
7446: THEN
7447: IF l_debug_mode = 'Y' THEN
7448: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7449: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7450: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7451: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7452: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 7449: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7445: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
7446: THEN
7447: IF l_debug_mode = 'Y' THEN
7448: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7449: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7450: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7451: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7452: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7453: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 7451: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

7447: IF l_debug_mode = 'Y' THEN
7448: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7449: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7450: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7451: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7452: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7453: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7454: END IF;
7455: PA_UTILS.ADD_MESSAGE

Line 7452: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7448: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7449: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7450: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7451: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7452: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7453: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7454: END IF;
7455: PA_UTILS.ADD_MESSAGE
7456: (p_app_short_name => 'PA',

Line 7480: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';

7476: x_creation_allowed := 'N';
7477: END IF;
7478:
7479: IF l_debug_mode = 'Y' THEN
7480: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7481: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7482: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7483: pa_debug.reset_curr_function;
7484: END IF;

Line 7481: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7477: END IF;
7478:
7479: IF l_debug_mode = 'Y' THEN
7480: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7481: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7482: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7483: pa_debug.reset_curr_function;
7484: END IF;
7485: EXCEPTION

Line 7483: pa_debug.reset_curr_function;

7479: IF l_debug_mode = 'Y' THEN
7480: pa_debug.g_err_stage:= 'Exiting IsRevVersionCreationAllowed';
7481: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7482: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7483: pa_debug.reset_curr_function;
7484: END IF;
7485: EXCEPTION
7486:
7487: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7509: IF P_PA_DEBUG_MODE = 'Y' THEN

7505: x_msg_count := l_msg_count;
7506: ELSE
7507: x_msg_count := l_msg_count;
7508: END IF;
7509: IF P_PA_DEBUG_MODE = 'Y' THEN
7510: pa_debug.reset_curr_function;
7511: END IF;
7512: RETURN;
7513:

Line 7510: pa_debug.reset_curr_function;

7506: ELSE
7507: x_msg_count := l_msg_count;
7508: END IF;
7509: IF P_PA_DEBUG_MODE = 'Y' THEN
7510: pa_debug.reset_curr_function;
7511: END IF;
7512: RETURN;
7513:
7514: WHEN others THEN

Line 7530: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

7526: ,p_procedure_name => 'IsRevVersionCreationAllowed'
7527: ,p_error_text => x_msg_data);
7528:
7529: IF l_debug_mode = 'Y' THEN
7530: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7531: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7532: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7533: pa_debug.reset_curr_function;
7534: END IF;

Line 7531: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7527: ,p_error_text => x_msg_data);
7528:
7529: IF l_debug_mode = 'Y' THEN
7530: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7531: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7532: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7533: pa_debug.reset_curr_function;
7534: END IF;
7535: RAISE;

Line 7533: pa_debug.reset_curr_function;

7529: IF l_debug_mode = 'Y' THEN
7530: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7531: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7532: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7533: pa_debug.reset_curr_function;
7534: END IF;
7535: RAISE;
7536:
7537: END IsRevVersionCreationAllowed;

Line 7572: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

7568: BEGIN
7569:
7570: x_msg_count := 0;
7571: x_return_status := FND_API.G_RET_STS_SUCCESS;
7572: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7573:
7574: IF P_PA_DEBUG_MODE = 'Y' THEN
7575: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7576: p_debug_mode => l_debug_mode );

Line 7574: IF P_PA_DEBUG_MODE = 'Y' THEN

7570: x_msg_count := 0;
7571: x_return_status := FND_API.G_RET_STS_SUCCESS;
7572: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7573:
7574: IF P_PA_DEBUG_MODE = 'Y' THEN
7575: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7576: p_debug_mode => l_debug_mode );
7577: END IF;
7578: -- Check for business rules violations

Line 7575: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',

7571: x_return_status := FND_API.G_RET_STS_SUCCESS;
7572: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7573:
7574: IF P_PA_DEBUG_MODE = 'Y' THEN
7575: pa_debug.set_curr_function( p_function => 'GET_LOOKUP_CODE',
7576: p_debug_mode => l_debug_mode );
7577: END IF;
7578: -- Check for business rules violations
7579:

Line 7581: pa_debug.g_err_stage:= 'Validating input parameters';

7577: END IF;
7578: -- Check for business rules violations
7579:
7580: IF l_debug_mode = 'Y' THEN
7581: pa_debug.g_err_stage:= 'Validating input parameters';
7582: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7583: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7584: END IF;
7585:

Line 7582: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7578: -- Check for business rules violations
7579:
7580: IF l_debug_mode = 'Y' THEN
7581: pa_debug.g_err_stage:= 'Validating input parameters';
7582: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7583: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7584: END IF;
7585:
7586: IF (p_lookup_type IS NULL) OR

Line 7590: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;

7586: IF (p_lookup_type IS NULL) OR
7587: (p_lookup_meaning IS NULL)
7588: THEN
7589: IF l_debug_mode = 'Y' THEN
7590: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7591: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7592: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7593: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7594: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 7591: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7587: (p_lookup_meaning IS NULL)
7588: THEN
7589: IF l_debug_mode = 'Y' THEN
7590: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7591: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7592: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7593: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7594: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7595: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 7593: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;

7589: IF l_debug_mode = 'Y' THEN
7590: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7591: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7592: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7593: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7594: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7595: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7596: END IF;
7597: PA_UTILS.ADD_MESSAGE

Line 7594: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7590: pa_debug.g_err_stage:= 'p_lookup_type = '|| p_lookup_type;
7591: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7592: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7593: pa_debug.g_err_stage:= 'p_lookup_meaning = '|| p_lookup_meaning;
7594: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7595: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7596: END IF;
7597: PA_UTILS.ADD_MESSAGE
7598: (p_app_short_name => 'PA',

Line 7610: pa_debug.g_err_stage:= 'could not obtain lookup code';

7606: into x_lookup_code;
7607:
7608: IF lookups_cur%NOTFOUND THEN
7609: IF l_debug_mode = 'Y' THEN
7610: pa_debug.g_err_stage:= 'could not obtain lookup code';
7611: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7612: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7613: END IF;
7614: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 7611: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7607:
7608: IF lookups_cur%NOTFOUND THEN
7609: IF l_debug_mode = 'Y' THEN
7610: pa_debug.g_err_stage:= 'could not obtain lookup code';
7611: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7612: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7613: END IF;
7614: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
7615: END IF;

Line 7620: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';

7616:
7617: close lookups_cur;
7618:
7619: IF l_debug_mode = 'Y' THEN
7620: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7621: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7622: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7623: pa_debug.reset_curr_function;
7624: END IF;

Line 7621: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7617: close lookups_cur;
7618:
7619: IF l_debug_mode = 'Y' THEN
7620: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7621: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7622: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7623: pa_debug.reset_curr_function;
7624: END IF;
7625: EXCEPTION

Line 7623: pa_debug.reset_curr_function;

7619: IF l_debug_mode = 'Y' THEN
7620: pa_debug.g_err_stage:= 'Exiting GET_LOOKUP_CODE';
7621: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7622: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
7623: pa_debug.reset_curr_function;
7624: END IF;
7625: EXCEPTION
7626:
7627: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7649: IF P_PA_DEBUG_MODE = 'Y' THEN

7645: x_msg_count := l_msg_count;
7646: ELSE
7647: x_msg_count := l_msg_count;
7648: END IF;
7649: IF P_PA_DEBUG_MODE = 'Y' THEN
7650: pa_debug.reset_curr_function;
7651: END IF;
7652: RETURN;
7653:

Line 7650: pa_debug.reset_curr_function;

7646: ELSE
7647: x_msg_count := l_msg_count;
7648: END IF;
7649: IF P_PA_DEBUG_MODE = 'Y' THEN
7650: pa_debug.reset_curr_function;
7651: END IF;
7652: RETURN;
7653:
7654: WHEN others THEN

Line 7670: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

7666: ,p_procedure_name => 'GET_LOOKUP_CODE'
7667: ,p_error_text => x_msg_data);
7668:
7669: IF l_debug_mode = 'Y' THEN
7670: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7671: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7672: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7673: pa_debug.reset_curr_function;
7674: END IF;

Line 7671: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7667: ,p_error_text => x_msg_data);
7668:
7669: IF l_debug_mode = 'Y' THEN
7670: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7671: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7672: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7673: pa_debug.reset_curr_function;
7674: END IF;
7675: RAISE;

Line 7673: pa_debug.reset_curr_function;

7669: IF l_debug_mode = 'Y' THEN
7670: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7671: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7672: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7673: pa_debug.reset_curr_function;
7674: END IF;
7675: RAISE;
7676:
7677: END GET_LOOKUP_CODE;

Line 7743: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

7739: BEGIN
7740:
7741: x_msg_count := 0;
7742: x_return_status := FND_API.G_RET_STS_SUCCESS;
7743: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7744:
7745: IF P_PA_DEBUG_MODE = 'Y' THEN
7746: pa_debug.set_curr_function( p_function => 'get_version_type',
7747: p_debug_mode => l_debug_mode );

Line 7745: IF P_PA_DEBUG_MODE = 'Y' THEN

7741: x_msg_count := 0;
7742: x_return_status := FND_API.G_RET_STS_SUCCESS;
7743: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7744:
7745: IF P_PA_DEBUG_MODE = 'Y' THEN
7746: pa_debug.set_curr_function( p_function => 'get_version_type',
7747: p_debug_mode => l_debug_mode );
7748: END IF;
7749:

Line 7746: pa_debug.set_curr_function( p_function => 'get_version_type',

7742: x_return_status := FND_API.G_RET_STS_SUCCESS;
7743: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
7744:
7745: IF P_PA_DEBUG_MODE = 'Y' THEN
7746: pa_debug.set_curr_function( p_function => 'get_version_type',
7747: p_debug_mode => l_debug_mode );
7748: END IF;
7749:
7750: BEGIN --Added for bug 4224464

Line 7788: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;

7784:
7785: IF l_proj_fp_options_csr%NOTFOUND THEN
7786:
7787: IF l_debug_mode = 'Y' THEN
7788: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7789: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7790: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7791: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7792: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 7789: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7785: IF l_proj_fp_options_csr%NOTFOUND THEN
7786:
7787: IF l_debug_mode = 'Y' THEN
7788: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7789: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7790: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7791: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7792: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7793: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

Line 7791: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;

7787: IF l_debug_mode = 'Y' THEN
7788: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7789: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7790: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7791: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7792: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7793: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7794: END IF;
7795:

Line 7792: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7788: pa_debug.g_err_stage:= 'p_project_id = '|| p_project_id;
7789: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7790: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7791: pa_debug.g_err_stage:= 'p_fin_plan_type_id = '|| p_fin_plan_type_id;
7792: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7793: PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
7794: END IF;
7795:
7796: PA_UTILS.ADD_MESSAGE

Line 7821: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7817:
7818: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST) THEN
7819:
7820: IF l_debug_mode = 'Y' THEN
7821: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7822: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7823: END IF;
7824:
7825: PA_UTILS.ADD_MESSAGE

Line 7822: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7818: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_COST) THEN
7819:
7820: IF l_debug_mode = 'Y' THEN
7821: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7822: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7823: END IF;
7824:
7825: PA_UTILS.ADD_MESSAGE
7826: (p_app_short_name => 'PA',

Line 7850: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7846:
7847: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
7848:
7849: IF l_debug_mode = 'Y' THEN
7850: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7851: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7852: END IF;
7853:
7854: PA_UTILS.ADD_MESSAGE

Line 7851: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7847: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
7848:
7849: IF l_debug_mode = 'Y' THEN
7850: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7851: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7852: END IF;
7853:
7854: PA_UTILS.ADD_MESSAGE
7855: (p_app_short_name => 'PA',

Line 7878: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7874:
7875: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_ALL) THEN
7876:
7877: IF l_debug_mode = 'Y' THEN
7878: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7879: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);
7880: END IF;
7881:
7882: PA_UTILS.ADD_MESSAGE

Line 7879: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);

7875: ELSIF(px_version_type <> PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_ALL) THEN
7876:
7877: IF l_debug_mode = 'Y' THEN
7878: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7879: pa_debug.write(l_module_name,pa_debug.g_err_stage, l_debug_level3);
7880: END IF;
7881:
7882: PA_UTILS.ADD_MESSAGE
7883: (p_app_short_name => 'PA',

Line 7903: pa_debug.g_err_stage := 'Version type passed is null' ;

7899:
7900: IF( px_version_type IS NULL) THEN
7901:
7902: IF l_debug_mode = 'Y' THEN
7903: pa_debug.g_err_stage := 'Version type passed is null' ;
7904: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);
7905: END IF;
7906:
7907: PA_UTILS.ADD_MESSAGE

Line 7904: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);

7900: IF( px_version_type IS NULL) THEN
7901:
7902: IF l_debug_mode = 'Y' THEN
7903: pa_debug.g_err_stage := 'Version type passed is null' ;
7904: pa_debug.write( l_module_name,pa_debug.g_err_stage, l_debug_level3);
7905: END IF;
7906:
7907: PA_UTILS.ADD_MESSAGE
7908: (p_app_short_name => 'PA',

Line 7924: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;

7920: px_version_type:= px_version_type ;
7921: ELSE-- version type is neither COST nor REVENUE
7922:
7923: IF l_debug_mode = 'Y' THEN
7924: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7925: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7926: END IF;
7927:
7928: PA_UTILS.ADD_MESSAGE

Line 7925: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

7921: ELSE-- version type is neither COST nor REVENUE
7922:
7923: IF l_debug_mode = 'Y' THEN
7924: pa_debug.g_err_stage := 'Version type passed is '||px_version_type ;
7925: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
7926: END IF;
7927:
7928: PA_UTILS.ADD_MESSAGE
7929: (p_app_short_name => 'PA',

Line 7946: pa_debug.g_err_stage:= 'Leaving get version type';

7942:
7943: END IF;--Version type derivation ends
7944:
7945: IF l_debug_mode = 'Y' THEN
7946: pa_debug.g_err_stage:= 'Leaving get version type';
7947: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7948: l_debug_level3);
7949:
7950: pa_debug.reset_curr_function;

Line 7947: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7943: END IF;--Version type derivation ends
7944:
7945: IF l_debug_mode = 'Y' THEN
7946: pa_debug.g_err_stage:= 'Leaving get version type';
7947: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7948: l_debug_level3);
7949:
7950: pa_debug.reset_curr_function;
7951: END IF;

Line 7950: pa_debug.reset_curr_function;

7946: pa_debug.g_err_stage:= 'Leaving get version type';
7947: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7948: l_debug_level3);
7949:
7950: pa_debug.reset_curr_function;
7951: END IF;
7952: EXCEPTION
7953:
7954: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 7975: IF P_PA_DEBUG_MODE = 'Y' THEN

7971: x_msg_count := l_msg_count;
7972: ELSE
7973: x_msg_count := l_msg_count;
7974: END IF;
7975: IF P_PA_DEBUG_MODE = 'Y' THEN
7976: pa_debug.reset_curr_function;
7977: END IF;
7978: RETURN;
7979:

Line 7976: pa_debug.reset_curr_function;

7972: ELSE
7973: x_msg_count := l_msg_count;
7974: END IF;
7975: IF P_PA_DEBUG_MODE = 'Y' THEN
7976: pa_debug.reset_curr_function;
7977: END IF;
7978: RETURN;
7979:
7980: WHEN others THEN

Line 7992: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

7988: ,p_procedure_name => 'get_Version_type'
7989: ,p_error_text => x_msg_data);
7990:
7991: IF l_debug_mode = 'Y' THEN
7992: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7993: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7994: l_debug_level5);
7995: pa_debug.reset_curr_function;
7996: END IF;

Line 7993: pa_debug.write(l_module_name,pa_debug.g_err_stage,

7989: ,p_error_text => x_msg_data);
7990:
7991: IF l_debug_mode = 'Y' THEN
7992: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7993: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7994: l_debug_level5);
7995: pa_debug.reset_curr_function;
7996: END IF;
7997: RAISE;

Line 7995: pa_debug.reset_curr_function;

7991: IF l_debug_mode = 'Y' THEN
7992: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
7993: pa_debug.write(l_module_name,pa_debug.g_err_stage,
7994: l_debug_level5);
7995: pa_debug.reset_curr_function;
7996: END IF;
7997: RAISE;
7998: END get_version_type;
7999:

Line 8042: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

8038: BEGIN
8039:
8040: x_msg_count := 0;
8041: x_return_status := FND_API.G_RET_STS_SUCCESS;
8042: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8043:
8044: IF P_PA_DEBUG_MODE = 'Y' THEN
8045: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8046: END IF;

Line 8044: IF P_PA_DEBUG_MODE = 'Y' THEN

8040: x_msg_count := 0;
8041: x_return_status := FND_API.G_RET_STS_SUCCESS;
8042: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8043:
8044: IF P_PA_DEBUG_MODE = 'Y' THEN
8045: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8046: END IF;
8047: -- Check for business rules violations
8048:

Line 8045: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );

8041: x_return_status := FND_API.G_RET_STS_SUCCESS;
8042: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8043:
8044: IF P_PA_DEBUG_MODE = 'Y' THEN
8045: pa_debug.set_curr_function( p_function => 'get_version_id',p_debug_mode => l_debug_mode );
8046: END IF;
8047: -- Check for business rules violations
8048:
8049: IF l_debug_mode = 'Y' THEN

Line 8050: pa_debug.g_err_stage:= 'Validating input parameters';

8046: END IF;
8047: -- Check for business rules violations
8048:
8049: IF l_debug_mode = 'Y' THEN
8050: pa_debug.g_err_stage:= 'Validating input parameters';
8051: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8052: END IF;
8053:
8054: IF (p_project_id IS NULL OR

Line 8051: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8047: -- Check for business rules violations
8048:
8049: IF l_debug_mode = 'Y' THEN
8050: pa_debug.g_err_stage:= 'Validating input parameters';
8051: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8052: END IF;
8053:
8054: IF (p_project_id IS NULL OR
8055: p_fin_plan_type_id IS NULL OR

Line 8060: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;

8056: p_version_type IS NULL OR
8057: p_version_number IS NULL ) THEN
8058:
8059: IF l_debug_mode = 'Y' THEN
8060: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;
8061: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8062: END IF;
8063:
8064: IF l_debug_mode = 'Y' THEN

Line 8061: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8057: p_version_number IS NULL ) THEN
8058:
8059: IF l_debug_mode = 'Y' THEN
8060: pa_debug.g_err_stage:= 'Project Id is ' || p_project_id;
8061: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8062: END IF;
8063:
8064: IF l_debug_mode = 'Y' THEN
8065: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;

Line 8065: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;

8061: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8062: END IF;
8063:
8064: IF l_debug_mode = 'Y' THEN
8065: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;
8066: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8067: END IF;
8068:
8069: IF l_debug_mode = 'Y' THEN

Line 8066: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8062: END IF;
8063:
8064: IF l_debug_mode = 'Y' THEN
8065: pa_debug.g_err_stage:= 'p_fin_plan_type_id is '||p_fin_plan_type_id;
8066: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8067: END IF;
8068:
8069: IF l_debug_mode = 'Y' THEN
8070: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;

Line 8070: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;

8066: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8067: END IF;
8068:
8069: IF l_debug_mode = 'Y' THEN
8070: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;
8071: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8072: END IF;
8073:
8074: IF l_debug_mode = 'Y' THEN

Line 8071: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8067: END IF;
8068:
8069: IF l_debug_mode = 'Y' THEN
8070: pa_debug.g_err_stage:= 'p_version_type is '||p_version_type;
8071: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8072: END IF;
8073:
8074: IF l_debug_mode = 'Y' THEN
8075: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;

Line 8075: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;

8071: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8072: END IF;
8073:
8074: IF l_debug_mode = 'Y' THEN
8075: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;
8076: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8077: END IF;
8078:
8079: PA_UTILS.ADD_MESSAGE

Line 8076: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8072: END IF;
8073:
8074: IF l_debug_mode = 'Y' THEN
8075: pa_debug.g_err_stage:= 'p_version_number is ' ||p_version_number;
8076: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8077: END IF;
8078:
8079: PA_UTILS.ADD_MESSAGE
8080: (p_app_short_name => 'PA',

Line 8091: pa_debug.g_err_stage:= 'Exiting get_version_id';

8087: FETCH l_budget_version_id_csr INTO x_budget_version_id,x_ci_id;
8088: CLOSE l_budget_version_id_csr;
8089:
8090: IF l_debug_mode = 'Y' THEN
8091: pa_debug.g_err_stage:= 'Exiting get_version_id';
8092: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8093: pa_debug.reset_curr_function;
8094: END IF;
8095:

Line 8092: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8088: CLOSE l_budget_version_id_csr;
8089:
8090: IF l_debug_mode = 'Y' THEN
8091: pa_debug.g_err_stage:= 'Exiting get_version_id';
8092: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8093: pa_debug.reset_curr_function;
8094: END IF;
8095:
8096: EXCEPTION

Line 8093: pa_debug.reset_curr_function;

8089:
8090: IF l_debug_mode = 'Y' THEN
8091: pa_debug.g_err_stage:= 'Exiting get_version_id';
8092: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8093: pa_debug.reset_curr_function;
8094: END IF;
8095:
8096: EXCEPTION
8097: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8115: IF P_PA_DEBUG_MODE = 'Y' THEN

8111: x_msg_count := l_msg_count;
8112: ELSE
8113: x_msg_count := l_msg_count;
8114: END IF;
8115: IF P_PA_DEBUG_MODE = 'Y' THEN
8116: pa_debug.reset_curr_function;
8117: END IF;
8118: RETURN;
8119:

Line 8116: pa_debug.reset_curr_function;

8112: ELSE
8113: x_msg_count := l_msg_count;
8114: END IF;
8115: IF P_PA_DEBUG_MODE = 'Y' THEN
8116: pa_debug.reset_curr_function;
8117: END IF;
8118: RETURN;
8119:
8120: WHEN others THEN

Line 8132: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

8128: ,p_procedure_name => 'get_version_id'
8129: ,p_error_text => x_msg_data);
8130:
8131: IF l_debug_mode = 'Y' THEN
8132: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8133: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8134: pa_debug.reset_curr_function;
8135: END IF;
8136: RAISE;

Line 8133: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);

8129: ,p_error_text => x_msg_data);
8130:
8131: IF l_debug_mode = 'Y' THEN
8132: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8133: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8134: pa_debug.reset_curr_function;
8135: END IF;
8136: RAISE;
8137: END get_version_id;

Line 8134: pa_debug.reset_curr_function;

8130:
8131: IF l_debug_mode = 'Y' THEN
8132: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8133: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8134: pa_debug.reset_curr_function;
8135: END IF;
8136: RAISE;
8137: END get_version_id;
8138:

Line 8182: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

8178:
8179: x_msg_count := 0;
8180: x_return_status := FND_API.G_RET_STS_SUCCESS;
8181: x_result:='T';
8182: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8183:
8184:
8185: IF l_debug_mode = 'Y' THEN
8186: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );

Line 8186: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );

8182: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
8183:
8184:
8185: IF l_debug_mode = 'Y' THEN
8186: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8187: pa_debug.g_err_stage:= 'Validating input parameters';
8188: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8189: END IF;
8190:

Line 8187: pa_debug.g_err_stage:= 'Validating input parameters';

8183:
8184:
8185: IF l_debug_mode = 'Y' THEN
8186: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8187: pa_debug.g_err_stage:= 'Validating input parameters';
8188: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8189: END IF;
8190:
8191: IF (p_budget_version_id IS NULL ) THEN

Line 8188: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8184:
8185: IF l_debug_mode = 'Y' THEN
8186: pa_debug.set_curr_function( p_function => 'perform_autobasline_checks',p_debug_mode => l_debug_mode );
8187: pa_debug.g_err_stage:= 'Validating input parameters';
8188: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8189: END IF;
8190:
8191: IF (p_budget_version_id IS NULL ) THEN
8192:

Line 8194: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;

8190:
8191: IF (p_budget_version_id IS NULL ) THEN
8192:
8193: IF l_debug_mode = 'Y' THEN
8194: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;
8195: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8196: END IF;
8197:
8198: PA_UTILS.ADD_MESSAGE

Line 8195: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8191: IF (p_budget_version_id IS NULL ) THEN
8192:
8193: IF l_debug_mode = 'Y' THEN
8194: pa_debug.g_err_stage:= 'p_budget_version_id is ' ||p_budget_version_id;
8195: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8196: END IF;
8197:
8198: PA_UTILS.ADD_MESSAGE
8199: (p_app_short_name => 'PA',

Line 8210: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;

8206: FETCH l_autobaseline_check_csr INTO l_autobaseline_check_rec;
8207: IF (l_autobaseline_check_csr%NOTFOUND) THEN
8208:
8209: IF l_debug_mode = 'Y' THEN
8210: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;
8211: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8212: END IF;
8213: CLOSE l_autobaseline_check_csr;
8214: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 8211: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8207: IF (l_autobaseline_check_csr%NOTFOUND) THEN
8208:
8209: IF l_debug_mode = 'Y' THEN
8210: pa_debug.g_err_stage:= 'p_budget_version_id is ' || p_budget_version_id;
8211: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8212: END IF;
8213: CLOSE l_autobaseline_check_csr;
8214: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8215:

Line 8224: pa_debug.g_err_stage := 'Auto base line error in budget model' ;

8220: IF nvl( l_autobaseline_check_rec.budget_type_code,'N')=
8221: PA_FP_CONSTANTS_PKG.G_BUDGET_TYPE_CODE_AR THEN
8222:
8223: IF l_debug_mode = 'Y' THEN
8224: pa_debug.g_err_stage := 'Auto base line error in budget model' ;
8225: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8226: END IF;
8227:
8228: x_result := 'F';

Line 8225: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8221: PA_FP_CONSTANTS_PKG.G_BUDGET_TYPE_CODE_AR THEN
8222:
8223: IF l_debug_mode = 'Y' THEN
8224: pa_debug.g_err_stage := 'Auto base line error in budget model' ;
8225: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8226: END IF;
8227:
8228: x_result := 'F';
8229:

Line 8235: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;

8231: l_autobaseline_check_rec.approved_rev_plan_type_flag = 'Y' AND
8232: l_autobaseline_check_rec.version_type = PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
8233:
8234: IF l_debug_mode = 'Y' THEN
8235: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;
8236: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8237: END IF;
8238:
8239: x_result := 'F';

Line 8236: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8232: l_autobaseline_check_rec.version_type = PA_FP_CONSTANTS_PKG.G_ELEMENT_TYPE_REVENUE) THEN
8233:
8234: IF l_debug_mode = 'Y' THEN
8235: pa_debug.g_err_stage := 'Auto base line error in finplan model' ;
8236: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8237: END IF;
8238:
8239: x_result := 'F';
8240:

Line 8246: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';

8242:
8243: END IF;
8244:
8245: IF l_debug_mode = 'Y' THEN
8246: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8247: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8248: pa_debug.reset_curr_function;
8249: END IF;
8250: EXCEPTION

Line 8247: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);

8243: END IF;
8244:
8245: IF l_debug_mode = 'Y' THEN
8246: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8247: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8248: pa_debug.reset_curr_function;
8249: END IF;
8250: EXCEPTION
8251: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8248: pa_debug.reset_curr_function;

8244:
8245: IF l_debug_mode = 'Y' THEN
8246: pa_debug.g_err_stage:= 'Exiting perform_autobasline_checks ';
8247: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level3);
8248: pa_debug.reset_curr_function;
8249: END IF;
8250: EXCEPTION
8251: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
8252:

Line 8269: IF P_PA_DEBUG_MODE = 'Y' THEN

8265: x_msg_count := l_msg_count;
8266: ELSE
8267: x_msg_count := l_msg_count;
8268: END IF;
8269: IF P_PA_DEBUG_MODE = 'Y' THEN
8270: pa_debug.reset_curr_function;
8271: END IF;
8272: RETURN;
8273:

Line 8270: pa_debug.reset_curr_function;

8266: ELSE
8267: x_msg_count := l_msg_count;
8268: END IF;
8269: IF P_PA_DEBUG_MODE = 'Y' THEN
8270: pa_debug.reset_curr_function;
8271: END IF;
8272: RETURN;
8273:
8274: WHEN others THEN

Line 8286: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

8282: ,p_procedure_name => 'perform_autobasline_checks'
8283: ,p_error_text => x_msg_data);
8284:
8285: IF l_debug_mode = 'Y' THEN
8286: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8287: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8288: pa_debug.reset_curr_function;
8289: END IF;
8290: RAISE;

Line 8287: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);

8283: ,p_error_text => x_msg_data);
8284:
8285: IF l_debug_mode = 'Y' THEN
8286: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8287: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8288: pa_debug.reset_curr_function;
8289: END IF;
8290: RAISE;
8291: END perform_autobasline_checks;

Line 8288: pa_debug.reset_curr_function;

8284:
8285: IF l_debug_mode = 'Y' THEN
8286: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
8287: pa_debug.write(l_module,pa_debug.g_err_stage,l_debug_level5);
8288: pa_debug.reset_curr_function;
8289: END IF;
8290: RAISE;
8291: END perform_autobasline_checks;
8292:

Line 8317: IF p_pa_debug_mode = 'Y' THEN

8313:
8314: BEGIN
8315: x_msg_count := 0;
8316: x_return_status := FND_API.G_RET_STS_SUCCESS;
8317: IF p_pa_debug_mode = 'Y' THEN
8318: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8319: p_debug_mode => p_pa_debug_mode );
8320: END IF;
8321: -- Check for NOT NULL parameters

Line 8318: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',

8314: BEGIN
8315: x_msg_count := 0;
8316: x_return_status := FND_API.G_RET_STS_SUCCESS;
8317: IF p_pa_debug_mode = 'Y' THEN
8318: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8319: p_debug_mode => p_pa_debug_mode );
8320: END IF;
8321: -- Check for NOT NULL parameters
8322: IF (p_budget_type_code IS NULL)

Line 8319: p_debug_mode => p_pa_debug_mode );

8315: x_msg_count := 0;
8316: x_return_status := FND_API.G_RET_STS_SUCCESS;
8317: IF p_pa_debug_mode = 'Y' THEN
8318: PA_DEBUG.Set_Curr_Function( p_function => 'Get_version_type_for_bdgt_type',
8319: p_debug_mode => p_pa_debug_mode );
8320: END IF;
8321: -- Check for NOT NULL parameters
8322: IF (p_budget_type_code IS NULL)
8323: THEN

Line 8324: IF p_pa_debug_mode = 'Y' THEN

8320: END IF;
8321: -- Check for NOT NULL parameters
8322: IF (p_budget_type_code IS NULL)
8323: THEN
8324: IF p_pa_debug_mode = 'Y' THEN
8325: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8326: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8327: END IF;
8328: PA_UTILS.ADD_MESSAGE

Line 8325: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;

8321: -- Check for NOT NULL parameters
8322: IF (p_budget_type_code IS NULL)
8323: THEN
8324: IF p_pa_debug_mode = 'Y' THEN
8325: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8326: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8327: END IF;
8328: PA_UTILS.ADD_MESSAGE
8329: (p_app_short_name => 'PA',

Line 8326: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

8322: IF (p_budget_type_code IS NULL)
8323: THEN
8324: IF p_pa_debug_mode = 'Y' THEN
8325: pa_debug.g_err_stage:= 'p_budget_type_code = '|| p_budget_type_code;
8326: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8327: END IF;
8328: PA_UTILS.ADD_MESSAGE
8329: (p_app_short_name => 'PA',
8330: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 8345: IF p_pa_debug_mode = 'Y' THEN

8341: FROM pa_budget_types
8342: WHERE budget_type_code = p_budget_type_code;
8343: EXCEPTION
8344: WHEN NO_DATA_FOUND THEN
8345: IF p_pa_debug_mode = 'Y' THEN
8346: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8347: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8348: END IF;
8349:

Line 8346: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;

8342: WHERE budget_type_code = p_budget_type_code;
8343: EXCEPTION
8344: WHEN NO_DATA_FOUND THEN
8345: IF p_pa_debug_mode = 'Y' THEN
8346: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8347: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8348: END IF;
8349:
8350: PA_UTILS.ADD_MESSAGE(

Line 8347: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

8343: EXCEPTION
8344: WHEN NO_DATA_FOUND THEN
8345: IF p_pa_debug_mode = 'Y' THEN
8346: pa_debug.g_err_stage:= 'no data found error in get_version_type_for_bdgt_type'||SQLERRM;
8347: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8348: END IF;
8349:
8350: PA_UTILS.ADD_MESSAGE(
8351: p_app_short_name => 'PA'

Line 8357: IF p_pa_debug_mode = 'Y' THEN

8353:
8354: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8355: END;
8356:
8357: IF p_pa_debug_mode = 'Y' THEN
8358: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8359: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8360: pa_debug.reset_curr_function;
8361: END IF;

Line 8358: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';

8354: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
8355: END;
8356:
8357: IF p_pa_debug_mode = 'Y' THEN
8358: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8359: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8360: pa_debug.reset_curr_function;
8361: END IF;
8362: EXCEPTION

Line 8359: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);

8355: END;
8356:
8357: IF p_pa_debug_mode = 'Y' THEN
8358: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8359: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8360: pa_debug.reset_curr_function;
8361: END IF;
8362: EXCEPTION
8363:

Line 8360: pa_debug.reset_curr_function;

8356:
8357: IF p_pa_debug_mode = 'Y' THEN
8358: pa_debug.g_err_stage:= 'Exiting get_version_type_for_bdgt_type';
8359: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL3);
8360: pa_debug.reset_curr_function;
8361: END IF;
8362: EXCEPTION
8363:
8364: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 8381: IF P_PA_DEBUG_MODE = 'Y' THEN

8377: x_msg_count := l_msg_count;
8378: ELSE
8379: x_msg_count := l_msg_count;
8380: END IF;
8381: IF P_PA_DEBUG_MODE = 'Y' THEN
8382: pa_debug.reset_curr_function;
8383: END IF;
8384: RETURN;
8385: WHEN others THEN

Line 8382: pa_debug.reset_curr_function;

8378: ELSE
8379: x_msg_count := l_msg_count;
8380: END IF;
8381: IF P_PA_DEBUG_MODE = 'Y' THEN
8382: pa_debug.reset_curr_function;
8383: END IF;
8384: RETURN;
8385: WHEN others THEN
8386:

Line 8394: IF p_pa_debug_mode = 'Y' THEN

8390: FND_MSG_PUB.add_exc_msg
8391: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
8392: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8393: ,p_error_text => sqlerrm);
8394: IF p_pa_debug_mode = 'Y' THEN
8395: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8396: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8397: pa_debug.reset_curr_function;
8398: END IF;

Line 8395: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;

8391: ( p_pkg_name => 'PA_FIN_PLAN_UTILS'
8392: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8393: ,p_error_text => sqlerrm);
8394: IF p_pa_debug_mode = 'Y' THEN
8395: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8396: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8397: pa_debug.reset_curr_function;
8398: END IF;
8399: RAISE;

Line 8396: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);

8392: ,p_procedure_name => 'get_version_type_for_bdgt_type'
8393: ,p_error_text => sqlerrm);
8394: IF p_pa_debug_mode = 'Y' THEN
8395: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8396: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8397: pa_debug.reset_curr_function;
8398: END IF;
8399: RAISE;
8400: END get_version_type_for_bdgt_type;

Line 8397: pa_debug.reset_curr_function;

8393: ,p_error_text => sqlerrm);
8394: IF p_pa_debug_mode = 'Y' THEN
8395: pa_debug.g_err_stage:= 'unexp error in get_version_type_for_bdgt_type'||SQLERRM;
8396: pa_debug.write(l_module_name,pa_debug.g_err_stage,PA_FP_CONSTANTS_PKG.G_DEBUG_LEVEL5);
8397: pa_debug.reset_curr_function;
8398: END IF;
8399: RAISE;
8400: END get_version_type_for_bdgt_type;
8401:

Line 8496: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

8492: l_plan_processing_code pa_budget_versions.plan_processing_code%TYPE;
8493:
8494: BEGIN
8495:
8496: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
8497:
8498: FND_MSG_PUB.initialize;
8499:
8500: IF l_debug_mode = 'Y' THEN

Line 8501: pa_debug.Set_Curr_Function

8497:
8498: FND_MSG_PUB.initialize;
8499:
8500: IF l_debug_mode = 'Y' THEN
8501: pa_debug.Set_Curr_Function
8502: ( p_function => l_module_name,
8503: p_debug_mode => l_debug_mode);
8504: END IF;
8505: IF l_debug_mode = 'Y' THEN

Line 8506: pa_debug.g_err_stage:='Entering validate_editable_bv';

8502: ( p_function => l_module_name,
8503: p_debug_mode => l_debug_mode);
8504: END IF;
8505: IF l_debug_mode = 'Y' THEN
8506: pa_debug.g_err_stage:='Entering validate_editable_bv';
8507: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8508: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8509: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8510: END IF;

Line 8507: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8503: p_debug_mode => l_debug_mode);
8504: END IF;
8505: IF l_debug_mode = 'Y' THEN
8506: pa_debug.g_err_stage:='Entering validate_editable_bv';
8507: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8508: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8509: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8510: END IF;
8511:

Line 8508: pa_debug.g_err_stage:='p_context passed: ' || p_context;

8504: END IF;
8505: IF l_debug_mode = 'Y' THEN
8506: pa_debug.g_err_stage:='Entering validate_editable_bv';
8507: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8508: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8509: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8510: END IF;
8511:
8512: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8509: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8505: IF l_debug_mode = 'Y' THEN
8506: pa_debug.g_err_stage:='Entering validate_editable_bv';
8507: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8508: pa_debug.g_err_stage:='p_context passed: ' || p_context;
8509: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8510: END IF;
8511:
8512: x_return_status := FND_API.G_RET_STS_SUCCESS;
8513:

Line 8609: pa_debug.g_err_stage:='Web ADI: Submitted Error';

8605: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8606: END IF;
8607: ELSE -- p_context = 'WEBADI'
8608: IF l_debug_mode = 'Y' THEN
8609: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8610: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8611: pa_debug.g_err_stage:='Populating Error Flag - Code';
8612: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8613: END IF;

Line 8610: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8606: END IF;
8607: ELSE -- p_context = 'WEBADI'
8608: IF l_debug_mode = 'Y' THEN
8609: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8610: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8611: pa_debug.g_err_stage:='Populating Error Flag - Code';
8612: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8613: END IF;
8614:

Line 8611: pa_debug.g_err_stage:='Populating Error Flag - Code';

8607: ELSE -- p_context = 'WEBADI'
8608: IF l_debug_mode = 'Y' THEN
8609: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8610: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8611: pa_debug.g_err_stage:='Populating Error Flag - Code';
8612: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8613: END IF;
8614:
8615: x_err_code := 'PA_FP_WA_BV_SUBMITTED_ERR';

Line 8612: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8608: IF l_debug_mode = 'Y' THEN
8609: pa_debug.g_err_stage:='Web ADI: Submitted Error';
8610: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8611: pa_debug.g_err_stage:='Populating Error Flag - Code';
8612: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8613: END IF;
8614:
8615: x_err_code := 'PA_FP_WA_BV_SUBMITTED_ERR';
8616:

Line 8682: pa_debug.g_err_stage:='Web ADI: Process Locked Error';

8678: l_plan_processing_code = 'XLUE' THEN
8679: -- the version is locked for processing or the version
8680: -- has some processing errors.
8681: IF l_debug_mode = 'Y' THEN
8682: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8683: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8684: pa_debug.g_err_stage:='Populating Error Flag - Code';
8685: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8686: END IF;

Line 8683: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8679: -- the version is locked for processing or the version
8680: -- has some processing errors.
8681: IF l_debug_mode = 'Y' THEN
8682: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8683: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8684: pa_debug.g_err_stage:='Populating Error Flag - Code';
8685: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8686: END IF;
8687:

Line 8684: pa_debug.g_err_stage:='Populating Error Flag - Code';

8680: -- has some processing errors.
8681: IF l_debug_mode = 'Y' THEN
8682: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8683: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8684: pa_debug.g_err_stage:='Populating Error Flag - Code';
8685: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8686: END IF;
8687:
8688: x_err_code := 'PA_FP_WA_BV_LOCKED_PRC_ERR';

Line 8685: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8681: IF l_debug_mode = 'Y' THEN
8682: pa_debug.g_err_stage:='Web ADI: Process Locked Error';
8683: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8684: pa_debug.g_err_stage:='Populating Error Flag - Code';
8685: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8686: END IF;
8687:
8688: x_err_code := 'PA_FP_WA_BV_LOCKED_PRC_ERR';
8689:

Line 8783: pa_debug.g_err_stage:='Web ADI: BV Locked Error';

8779: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8780: END IF;
8781: ELSE -- p_context = 'WEBADI'
8782: IF l_debug_mode = 'Y' THEN
8783: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8784: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8785: pa_debug.g_err_stage:='Populating Error Flag - Code';
8786: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8787: END IF;

Line 8784: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8780: END IF;
8781: ELSE -- p_context = 'WEBADI'
8782: IF l_debug_mode = 'Y' THEN
8783: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8784: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8785: pa_debug.g_err_stage:='Populating Error Flag - Code';
8786: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8787: END IF;
8788:

Line 8785: pa_debug.g_err_stage:='Populating Error Flag - Code';

8781: ELSE -- p_context = 'WEBADI'
8782: IF l_debug_mode = 'Y' THEN
8783: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8784: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8785: pa_debug.g_err_stage:='Populating Error Flag - Code';
8786: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8787: END IF;
8788:
8789: x_err_code := 'PA_FP_WA_BV_LOCKED_ERR';

Line 8786: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8782: IF l_debug_mode = 'Y' THEN
8783: pa_debug.g_err_stage:='Web ADI: BV Locked Error';
8784: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8785: pa_debug.g_err_stage:='Populating Error Flag - Code';
8786: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8787: END IF;
8788:
8789: x_err_code := 'PA_FP_WA_BV_LOCKED_ERR';
8790:

Line 8798: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';

8794: end if;
8795:
8796: -- Bug 3986129: FP.M Web ADI Dev. Added additional check for 'allow_edit_after_baseline flag
8797: IF l_debug_mode = 'Y' THEN
8798: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';
8799: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8800: END IF;
8801:
8802: BEGIN

Line 8799: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8795:
8796: -- Bug 3986129: FP.M Web ADI Dev. Added additional check for 'allow_edit_after_baseline flag
8797: IF l_debug_mode = 'Y' THEN
8798: pa_debug.g_err_stage:='Validating for Allow Edit after Baseline';
8799: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8800: END IF;
8801:
8802: BEGIN
8803: SELECT Nvl(fpt.edit_after_baseline_flag, 'N'),

Line 8819: pa_debug.g_err_stage:='No data found for edit after baseline flag';

8815:
8816: EXCEPTION
8817: WHEN NO_DATA_FOUND THEN
8818: IF l_debug_mode = 'Y' THEN
8819: pa_debug.g_err_stage:='No data found for edit after baseline flag';
8820: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8821: END IF;
8822: RAISE;
8823: WHEN OTHERS THEN

Line 8820: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8816: EXCEPTION
8817: WHEN NO_DATA_FOUND THEN
8818: IF l_debug_mode = 'Y' THEN
8819: pa_debug.g_err_stage:='No data found for edit after baseline flag';
8820: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8821: END IF;
8822: RAISE;
8823: WHEN OTHERS THEN
8824: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 8829: IF P_PA_DEBUG_MODE = 'Y' THEN

8825: x_msg_count := 1;
8826: x_msg_data := SQLERRM;
8827: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8828: p_procedure_name => 'validate_editable_bv');
8829: IF P_PA_DEBUG_MODE = 'Y' THEN
8830: pa_debug.reset_err_stack;
8831: END IF;
8832: END;
8833:

Line 8830: pa_debug.reset_err_stack;

8826: x_msg_data := SQLERRM;
8827: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8828: p_procedure_name => 'validate_editable_bv');
8829: IF P_PA_DEBUG_MODE = 'Y' THEN
8830: pa_debug.reset_err_stack;
8831: END IF;
8832: END;
8833:
8834: IF l_edit_after_baseline_flag = 'N' THEN

Line 8879: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';

8875:
8876: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8877: ELSE -- p_context = 'WEBADI'
8878: IF l_debug_mode = 'Y' THEN
8879: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8880: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8881: pa_debug.g_err_stage:='Populating Error Flag - Code';
8882: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8883: END IF;

Line 8880: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8876: RAISE PA_FP_CONSTANTS_PKG.Just_Ret_Exc;
8877: ELSE -- p_context = 'WEBADI'
8878: IF l_debug_mode = 'Y' THEN
8879: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8880: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8881: pa_debug.g_err_stage:='Populating Error Flag - Code';
8882: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8883: END IF;
8884: -- Use new messages for the context of WEBADI

Line 8881: pa_debug.g_err_stage:='Populating Error Flag - Code';

8877: ELSE -- p_context = 'WEBADI'
8878: IF l_debug_mode = 'Y' THEN
8879: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8880: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8881: pa_debug.g_err_stage:='Populating Error Flag - Code';
8882: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8883: END IF;
8884: -- Use new messages for the context of WEBADI
8885: x_err_code := 'PA_FP_WA_BV_BL_NON_EDIT';

Line 8882: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8878: IF l_debug_mode = 'Y' THEN
8879: pa_debug.g_err_stage:='Web ADI: BV Non Edit Error';
8880: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8881: pa_debug.g_err_stage:='Populating Error Flag - Code';
8882: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8883: END IF;
8884: -- Use new messages for the context of WEBADI
8885: x_err_code := 'PA_FP_WA_BV_BL_NON_EDIT';
8886:

Line 8893: pa_debug.g_err_stage:='Leaving validate_editable_bv';

8889: END IF;
8890: END IF; -- edit_after_baseline
8891:
8892: IF l_debug_mode = 'Y' THEN
8893: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8894: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8895: pa_debug.Reset_Curr_Function;
8896: END IF;
8897:

Line 8894: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

8890: END IF; -- edit_after_baseline
8891:
8892: IF l_debug_mode = 'Y' THEN
8893: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8894: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8895: pa_debug.Reset_Curr_Function;
8896: END IF;
8897:
8898: EXCEPTION

Line 8895: pa_debug.Reset_Curr_Function;

8891:
8892: IF l_debug_mode = 'Y' THEN
8893: pa_debug.g_err_stage:='Leaving validate_editable_bv';
8894: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
8895: pa_debug.Reset_Curr_Function;
8896: END IF;
8897:
8898: EXCEPTION
8899: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN

Line 8903: pa_debug.Reset_Curr_Function;

8899: WHEN PA_FP_CONSTANTS_PKG.Just_Ret_Exc THEN
8900: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
8901:
8902: IF l_debug_mode = 'Y' THEN
8903: pa_debug.Reset_Curr_Function;
8904: END IF;
8905: RETURN;
8906:
8907: WHEN NO_DATA_FOUND THEN

Line 8913: IF P_PA_DEBUG_MODE = 'Y' THEN

8909: x_msg_count := 1;
8910: x_msg_data := SQLERRM;
8911: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8912: p_procedure_name => 'validate_editable_bv');
8913: IF P_PA_DEBUG_MODE = 'Y' THEN
8914: pa_debug.reset_err_stack;
8915: END IF;
8916: raise FND_API.G_EXC_UNEXPECTED_ERROR;
8917: WHEN OTHERS THEN

Line 8914: pa_debug.reset_err_stack;

8910: x_msg_data := SQLERRM;
8911: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8912: p_procedure_name => 'validate_editable_bv');
8913: IF P_PA_DEBUG_MODE = 'Y' THEN
8914: pa_debug.reset_err_stack;
8915: END IF;
8916: raise FND_API.G_EXC_UNEXPECTED_ERROR;
8917: WHEN OTHERS THEN
8918: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 8923: IF P_PA_DEBUG_MODE = 'Y' THEN

8919: x_msg_count := 1;
8920: x_msg_data := SQLERRM;
8921: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8922: p_procedure_name => 'validate_editable_bv');
8923: IF P_PA_DEBUG_MODE = 'Y' THEN
8924: pa_debug.reset_err_stack;
8925: END IF;
8926: RAISE;
8927: END validate_editable_bv;

Line 8924: pa_debug.reset_err_stack;

8920: x_msg_data := SQLERRM;
8921: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils',
8922: p_procedure_name => 'validate_editable_bv');
8923: IF P_PA_DEBUG_MODE = 'Y' THEN
8924: pa_debug.reset_err_stack;
8925: END IF;
8926: RAISE;
8927: END validate_editable_bv;
8928:

Line 9062: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

9058: BEGIN
9059:
9060: x_msg_count := 0;
9061: x_return_status := FND_API.G_RET_STS_SUCCESS;
9062: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9063: IF l_debug_mode = 'Y' THEN
9064: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9065: p_debug_mode => l_debug_mode );
9066:

Line 9064: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',

9060: x_msg_count := 0;
9061: x_return_status := FND_API.G_RET_STS_SUCCESS;
9062: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9063: IF l_debug_mode = 'Y' THEN
9064: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9065: p_debug_mode => l_debug_mode );
9066:
9067: -- Check for business rules violations
9068: pa_debug.g_err_stage:= 'Validating input parameters';

Line 9068: pa_debug.g_err_stage:= 'Validating input parameters';

9064: pa_debug.set_curr_function( p_function => 'check_delete_task_ok',
9065: p_debug_mode => l_debug_mode );
9066:
9067: -- Check for business rules violations
9068: pa_debug.g_err_stage:= 'Validating input parameters';
9069: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9070: l_debug_level3);
9071: END IF;
9072:

Line 9069: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9065: p_debug_mode => l_debug_mode );
9066:
9067: -- Check for business rules violations
9068: pa_debug.g_err_stage:= 'Validating input parameters';
9069: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9070: l_debug_level3);
9071: END IF;
9072:
9073: IF (p_task_id IS NULL)

Line 9076: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;

9072:
9073: IF (p_task_id IS NULL)
9074: THEN
9075: IF l_debug_mode = 'Y' THEN
9076: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9077: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9078: l_debug_level5);
9079: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9080: pa_debug.write(l_module_name,pa_debug.g_err_stage,

Line 9077: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9073: IF (p_task_id IS NULL)
9074: THEN
9075: IF l_debug_mode = 'Y' THEN
9076: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9077: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9078: l_debug_level5);
9079: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9081: l_debug_level5);

Line 9079: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;

9075: IF l_debug_mode = 'Y' THEN
9076: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9077: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9078: l_debug_level5);
9079: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9081: l_debug_level5);
9082: END IF;
9083: PA_UTILS.ADD_MESSAGE

Line 9080: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9076: pa_debug.g_err_stage:= 'p_task_id = '|| p_task_id;
9077: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9078: l_debug_level5);
9079: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9080: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9081: l_debug_level5);
9082: END IF;
9083: PA_UTILS.ADD_MESSAGE
9084: (p_app_short_name => 'PA',

Line 9091: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;

9087:
9088: END IF;
9089:
9090: IF l_debug_mode = 'Y' THEN
9091: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9093: l_debug_level5);
9094: END IF;
9095:

Line 9092: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9088: END IF;
9089:
9090: IF l_debug_mode = 'Y' THEN
9091: pa_debug.g_err_stage:= 'p_validation_mode = '|| p_validation_mode;
9092: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9093: l_debug_level5);
9094: END IF;
9095:
9096:

Line 9133: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;

9129:
9130:
9131:
9132: IF l_debug_mode = 'Y' THEN
9133: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;
9134: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9135: l_debug_level5);
9136: END IF;
9137:

Line 9134: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9130:
9131:
9132: IF l_debug_mode = 'Y' THEN
9133: pa_debug.g_err_stage:= 'l_validation_success = '|| l_validation_success;
9134: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9135: l_debug_level5);
9136: END IF;
9137:
9138: IF l_validation_success = 'N' THEN

Line 9146: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';

9142: RAISE FND_API.G_Exc_Error;
9143: END IF;
9144:
9145: IF l_debug_mode = 'Y' THEN
9146: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9147: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9148: l_debug_level3);
9149: pa_debug.reset_curr_function;
9150: END IF;

Line 9147: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9143: END IF;
9144:
9145: IF l_debug_mode = 'Y' THEN
9146: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9147: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9148: l_debug_level3);
9149: pa_debug.reset_curr_function;
9150: END IF;
9151: EXCEPTION

Line 9149: pa_debug.reset_curr_function;

9145: IF l_debug_mode = 'Y' THEN
9146: pa_debug.g_err_stage:= 'Exiting check_delete_task_ok';
9147: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9148: l_debug_level3);
9149: pa_debug.reset_curr_function;
9150: END IF;
9151: EXCEPTION
9152:
9153: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9171: IF P_PA_DEBUG_MODE = 'Y' THEN

9167: x_msg_count := l_msg_count;
9168: ELSE
9169: x_msg_count := l_msg_count;
9170: END IF;
9171: IF P_PA_DEBUG_MODE = 'Y' THEN
9172: pa_debug.reset_curr_function;
9173: END IF;
9174: RETURN;
9175:

Line 9172: pa_debug.reset_curr_function;

9168: ELSE
9169: x_msg_count := l_msg_count;
9170: END IF;
9171: IF P_PA_DEBUG_MODE = 'Y' THEN
9172: pa_debug.reset_curr_function;
9173: END IF;
9174: RETURN;
9175:
9176: WHEN FND_API.G_Exc_Error THEN

Line 9194: IF P_PA_DEBUG_MODE = 'Y' THEN

9190: x_msg_count := l_msg_count;
9191: ELSE
9192: x_msg_count := l_msg_count;
9193: END IF;
9194: IF P_PA_DEBUG_MODE = 'Y' THEN
9195: pa_debug.reset_curr_function;
9196: END IF;
9197: RETURN;
9198:

Line 9195: pa_debug.reset_curr_function;

9191: ELSE
9192: x_msg_count := l_msg_count;
9193: END IF;
9194: IF P_PA_DEBUG_MODE = 'Y' THEN
9195: pa_debug.reset_curr_function;
9196: END IF;
9197: RETURN;
9198:
9199: WHEN others THEN

Line 9211: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

9207: ,p_procedure_name => 'check_delete_task_ok'
9208: ,p_error_text => x_msg_data);
9209:
9210: IF l_debug_mode = 'Y' THEN
9211: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9212: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9213: l_debug_level5);
9214: pa_debug.reset_curr_function;
9215: END IF;

Line 9212: pa_debug.write(l_module_name,pa_debug.g_err_stage,

9208: ,p_error_text => x_msg_data);
9209:
9210: IF l_debug_mode = 'Y' THEN
9211: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9212: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9213: l_debug_level5);
9214: pa_debug.reset_curr_function;
9215: END IF;
9216: RAISE;

Line 9214: pa_debug.reset_curr_function;

9210: IF l_debug_mode = 'Y' THEN
9211: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9212: pa_debug.write(l_module_name,pa_debug.g_err_stage,
9213: l_debug_level5);
9214: pa_debug.reset_curr_function;
9215: END IF;
9216: RAISE;
9217: END check_delete_task_ok;
9218:

Line 9254: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

9250:
9251: BEGIN
9252: x_msg_count := 0;
9253: x_return_status := FND_API.G_RET_STS_SUCCESS;
9254: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9255: IF l_debug_mode = 'Y' THEN
9256: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9257: p_debug_mode => l_debug_mode );
9258: -- check for business rules violations

Line 9256: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',

9252: x_msg_count := 0;
9253: x_return_status := FND_API.G_RET_STS_SUCCESS;
9254: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
9255: IF l_debug_mode = 'Y' THEN
9256: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9257: p_debug_mode => l_debug_mode );
9258: -- check for business rules violations
9259:
9260: pa_debug.g_err_stage:= 'Validating input parameters';

Line 9260: pa_debug.g_err_stage:= 'Validating input parameters';

9256: pa_debug.set_curr_function( p_function => 'check_reparent_task_ok',
9257: p_debug_mode => l_debug_mode );
9258: -- check for business rules violations
9259:
9260: pa_debug.g_err_stage:= 'Validating input parameters';
9261: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9262: END IF;
9263:
9264: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN

Line 9261: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

9257: p_debug_mode => l_debug_mode );
9258: -- check for business rules violations
9259:
9260: pa_debug.g_err_stage:= 'Validating input parameters';
9261: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
9262: END IF;
9263:
9264: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN
9265: IF l_debug_mode = 'Y' THEN

Line 9266: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9262: END IF;
9263:
9264: IF (p_task_id IS NULL) or (p_old_parent_task_id is NULL) or (p_new_parent_task_id is NULL) THEN
9265: IF l_debug_mode = 'Y' THEN
9266: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9267: END IF;
9268: PA_UTILS.ADD_MESSAGE
9269: (p_app_short_name => 'PA',
9270: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 9277: IF P_PA_DEBUG_MODE = 'Y' THEN

9273: -- end of business rules violations check
9274:
9275: IF (p_old_parent_task_id = p_new_parent_task_id) THEN
9276: -- not really a re-parenting procedure, so just return successfully
9277: IF P_PA_DEBUG_MODE = 'Y' THEN
9278: pa_debug.reset_curr_function;
9279: END IF;
9280: return;
9281: END IF; -- old parent = new parent

Line 9278: pa_debug.reset_curr_function;

9274:
9275: IF (p_old_parent_task_id = p_new_parent_task_id) THEN
9276: -- not really a re-parenting procedure, so just return successfully
9277: IF P_PA_DEBUG_MODE = 'Y' THEN
9278: pa_debug.reset_curr_function;
9279: END IF;
9280: return;
9281: END IF; -- old parent = new parent
9282:

Line 9317: IF P_PA_DEBUG_MODE = 'Y' THEN

9313: ELSE
9314: x_msg_count := l_msg_count;
9315: END IF;
9316: */
9317: IF P_PA_DEBUG_MODE = 'Y' THEN
9318: pa_debug.reset_curr_function;
9319: END IF;
9320: return;
9321: END IF; -- validation: affected task

Line 9318: pa_debug.reset_curr_function;

9314: x_msg_count := l_msg_count;
9315: END IF;
9316: */
9317: IF P_PA_DEBUG_MODE = 'Y' THEN
9318: pa_debug.reset_curr_function;
9319: END IF;
9320: return;
9321: END IF; -- validation: affected task
9322:

Line 9376: IF P_PA_DEBUG_MODE = 'Y' THEN

9372: ELSE
9373: x_msg_count := l_msg_count;
9374: END IF;
9375: close task_ra_csr;
9376: IF P_PA_DEBUG_MODE = 'Y' THEN
9377: pa_debug.reset_curr_function;
9378: END IF;
9379: return;
9380: END IF;

Line 9377: pa_debug.reset_curr_function;

9373: x_msg_count := l_msg_count;
9374: END IF;
9375: close task_ra_csr;
9376: IF P_PA_DEBUG_MODE = 'Y' THEN
9377: pa_debug.reset_curr_function;
9378: END IF;
9379: return;
9380: END IF;
9381: close task_ra_csr;

Line 9434: IF P_PA_DEBUG_MODE = 'Y' THEN

9430: x_msg_count := l_msg_count;
9431: ELSE
9432: x_msg_count := l_msg_count;
9433: END IF;
9434: IF P_PA_DEBUG_MODE = 'Y' THEN
9435: pa_debug.reset_curr_function;
9436: END IF;
9437: return;
9438: END IF;

Line 9435: pa_debug.reset_curr_function;

9431: ELSE
9432: x_msg_count := l_msg_count;
9433: END IF;
9434: IF P_PA_DEBUG_MODE = 'Y' THEN
9435: pa_debug.reset_curr_function;
9436: END IF;
9437: return;
9438: END IF;
9439: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 9439: IF P_PA_DEBUG_MODE = 'Y' THEN

9435: pa_debug.reset_curr_function;
9436: END IF;
9437: return;
9438: END IF;
9439: IF P_PA_DEBUG_MODE = 'Y' THEN
9440: pa_debug.reset_curr_function;
9441: END IF;
9442: EXCEPTION
9443: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9440: pa_debug.reset_curr_function;

9436: END IF;
9437: return;
9438: END IF;
9439: IF P_PA_DEBUG_MODE = 'Y' THEN
9440: pa_debug.reset_curr_function;
9441: END IF;
9442: EXCEPTION
9443: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
9444: x_return_status := FND_API.G_RET_STS_ERROR;

Line 9459: IF P_PA_DEBUG_MODE = 'Y' THEN

9455: x_msg_count := l_msg_count;
9456: ELSE
9457: x_msg_count := l_msg_count;
9458: END IF;
9459: IF P_PA_DEBUG_MODE = 'Y' THEN
9460: pa_debug.reset_curr_function;
9461: END IF;
9462: RETURN;
9463: WHEN others THEN

Line 9460: pa_debug.reset_curr_function;

9456: ELSE
9457: x_msg_count := l_msg_count;
9458: END IF;
9459: IF P_PA_DEBUG_MODE = 'Y' THEN
9460: pa_debug.reset_curr_function;
9461: END IF;
9462: RETURN;
9463: WHEN others THEN
9464: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 9472: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;

9468: ( p_pkg_name => 'pa_fin_plan_utils'
9469: ,p_procedure_name => 'check_reparent_task_ok'
9470: ,p_error_text => x_msg_data);
9471: IF l_debug_mode = 'Y' THEN
9472: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9473: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9474: pa_debug.reset_curr_function;
9475: END IF;
9476: RAISE;

Line 9473: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9469: ,p_procedure_name => 'check_reparent_task_ok'
9470: ,p_error_text => x_msg_data);
9471: IF l_debug_mode = 'Y' THEN
9472: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9473: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9474: pa_debug.reset_curr_function;
9475: END IF;
9476: RAISE;
9477: END check_reparent_task_ok;

Line 9474: pa_debug.reset_curr_function;

9470: ,p_error_text => x_msg_data);
9471: IF l_debug_mode = 'Y' THEN
9472: pa_debug.g_err_stage:= 'Unexpected Error'||x_msg_data;
9473: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9474: pa_debug.reset_curr_function;
9475: END IF;
9476: RAISE;
9477: END check_reparent_task_ok;
9478:

Line 9801: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

9797:
9798: BEGIN
9799:
9800: FND_MSG_PUB.initialize;
9801: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9802: l_debug_mode := NVL(l_debug_mode, 'Y');
9803: IF P_PA_DEBUG_MODE = 'Y' THEN
9804: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9805: p_debug_mode => l_debug_mode );

Line 9803: IF P_PA_DEBUG_MODE = 'Y' THEN

9799:
9800: FND_MSG_PUB.initialize;
9801: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9802: l_debug_mode := NVL(l_debug_mode, 'Y');
9803: IF P_PA_DEBUG_MODE = 'Y' THEN
9804: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9805: p_debug_mode => l_debug_mode );
9806: END IF;
9807: x_msg_count := 0;

Line 9804: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',

9800: FND_MSG_PUB.initialize;
9801: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
9802: l_debug_mode := NVL(l_debug_mode, 'Y');
9803: IF P_PA_DEBUG_MODE = 'Y' THEN
9804: pa_debug.set_curr_function( p_function => 'Check_if_plan_type_editable',
9805: p_debug_mode => l_debug_mode );
9806: END IF;
9807: x_msg_count := 0;
9808: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 9812: IF P_PA_DEBUG_MODE = 'Y' THEN

9808: x_return_status := FND_API.G_RET_STS_SUCCESS;
9809: -- Check for business rules violations
9810:
9811:
9812: IF P_PA_DEBUG_MODE = 'Y' THEN
9813: pa_debug.g_err_stage:='Validating input parameters';
9814: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9815: END IF;
9816:

Line 9813: pa_debug.g_err_stage:='Validating input parameters';

9809: -- Check for business rules violations
9810:
9811:
9812: IF P_PA_DEBUG_MODE = 'Y' THEN
9813: pa_debug.g_err_stage:='Validating input parameters';
9814: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9815: END IF;
9816:
9817: -- Check if project id, fp option id and Version type are null

Line 9814: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9810:
9811:
9812: IF P_PA_DEBUG_MODE = 'Y' THEN
9813: pa_debug.g_err_stage:='Validating input parameters';
9814: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9815: END IF;
9816:
9817: -- Check if project id, fp option id and Version type are null
9818:

Line 9825: IF P_PA_DEBUG_MODE = 'Y' THEN

9821: (p_version_type IS NULL)
9822: THEN
9823:
9824:
9825: IF P_PA_DEBUG_MODE = 'Y' THEN
9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

Line 9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;

9822: THEN
9823:
9824:
9825: IF P_PA_DEBUG_MODE = 'Y' THEN
9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

Line 9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9823:
9824:
9825: IF P_PA_DEBUG_MODE = 'Y' THEN
9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9831:

Line 9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

9825: IF P_PA_DEBUG_MODE = 'Y' THEN
9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9831:
9832: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

Line 9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9826: pa_debug.g_err_stage:='Project_id = '||p_project_id;
9827: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9831:
9832: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834: END IF;

Line 9832: pa_debug.g_err_stage:='Version_type = '||p_version_type;

9828:
9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9831:
9832: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834: END IF;
9835:
9836:

Line 9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9829: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
9830: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9831:
9832: pa_debug.g_err_stage:='Version_type = '||p_version_type;
9833: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9834: END IF;
9835:
9836:
9837: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 9841: IF P_PA_DEBUG_MODE = 'Y' THEN

9837: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
9838: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
9839:
9840:
9841: IF P_PA_DEBUG_MODE = 'Y' THEN
9842: pa_debug.g_err_stage:='Invalid Arguments Passed';
9843: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9844: END IF;
9845: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 9842: pa_debug.g_err_stage:='Invalid Arguments Passed';

9838: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
9839:
9840:
9841: IF P_PA_DEBUG_MODE = 'Y' THEN
9842: pa_debug.g_err_stage:='Invalid Arguments Passed';
9843: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9844: END IF;
9845: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9846:

Line 9843: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9839:
9840:
9841: IF P_PA_DEBUG_MODE = 'Y' THEN
9842: pa_debug.g_err_stage:='Invalid Arguments Passed';
9843: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9844: END IF;
9845: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
9846:
9847: END IF;

Line 9857: IF P_PA_DEBUG_MODE = 'Y' THEN

9853: where fin_plan_type_id = p_fin_plan_type_id;
9854: EXCEPTION
9855: WHEN OTHERS THEN
9856:
9857: IF P_PA_DEBUG_MODE = 'Y' THEN
9858: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9859: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9860: END IF;
9861: RAISE;

Line 9858: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';

9854: EXCEPTION
9855: WHEN OTHERS THEN
9856:
9857: IF P_PA_DEBUG_MODE = 'Y' THEN
9858: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9859: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9860: END IF;
9861: RAISE;
9862: END;

Line 9859: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9855: WHEN OTHERS THEN
9856:
9857: IF P_PA_DEBUG_MODE = 'Y' THEN
9858: pa_debug.g_err_stage:='Error while fetching edit_after_baseline_flag';
9859: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9860: END IF;
9861: RAISE;
9862: END;
9863:

Line 9879: IF P_PA_DEBUG_MODE = 'Y' THEN

9875: and budget_status_code = 'B' );
9876: EXCEPTION
9877: WHEN NO_DATA_FOUND THEN
9878:
9879: IF P_PA_DEBUG_MODE = 'Y' THEN
9880: pa_debug.g_err_stage:='No base versions exist';
9881: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9882: END IF;
9883:

Line 9880: pa_debug.g_err_stage:='No base versions exist';

9876: EXCEPTION
9877: WHEN NO_DATA_FOUND THEN
9878:
9879: IF P_PA_DEBUG_MODE = 'Y' THEN
9880: pa_debug.g_err_stage:='No base versions exist';
9881: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9882: END IF;
9883:
9884: x_editable_flag := 'Y';

Line 9881: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9877: WHEN NO_DATA_FOUND THEN
9878:
9879: IF P_PA_DEBUG_MODE = 'Y' THEN
9880: pa_debug.g_err_stage:='No base versions exist';
9881: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9882: END IF;
9883:
9884: x_editable_flag := 'Y';
9885:

Line 9891: IF P_PA_DEBUG_MODE = 'Y' THEN

9887: ELSE
9888: x_editable_flag := 'Y';
9889: END IF;
9890:
9891: IF P_PA_DEBUG_MODE = 'Y' THEN
9892: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9893: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9894:
9895: --Reset the error stack

Line 9892: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';

9888: x_editable_flag := 'Y';
9889: END IF;
9890:
9891: IF P_PA_DEBUG_MODE = 'Y' THEN
9892: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9893: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9894:
9895: --Reset the error stack
9896:

Line 9893: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);

9889: END IF;
9890:
9891: IF P_PA_DEBUG_MODE = 'Y' THEN
9892: pa_debug.g_err_stage:='Exiting Check_if_plan_type_editable:';
9893: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9894:
9895: --Reset the error stack
9896:
9897: pa_debug.reset_curr_function;

Line 9897: pa_debug.reset_curr_function;

9893: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,3);
9894:
9895: --Reset the error stack
9896:
9897: pa_debug.reset_curr_function;
9898: END IF;
9899: EXCEPTION
9900:
9901: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 9917: -- pa_debug.g_err_stage:='Invalid Arguments Passed';

9913: ELSE
9914: x_msg_count := l_msg_count;
9915: END IF;
9916: x_return_status := FND_API.G_RET_STS_ERROR;
9917: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9918: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9919: IF P_PA_DEBUG_MODE = 'Y' THEN
9920: pa_debug.reset_curr_function;
9921: END IF;

Line 9918: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

9914: x_msg_count := l_msg_count;
9915: END IF;
9916: x_return_status := FND_API.G_RET_STS_ERROR;
9917: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9918: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9919: IF P_PA_DEBUG_MODE = 'Y' THEN
9920: pa_debug.reset_curr_function;
9921: END IF;
9922: RETURN;

Line 9919: IF P_PA_DEBUG_MODE = 'Y' THEN

9915: END IF;
9916: x_return_status := FND_API.G_RET_STS_ERROR;
9917: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9918: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9919: IF P_PA_DEBUG_MODE = 'Y' THEN
9920: pa_debug.reset_curr_function;
9921: END IF;
9922: RETURN;
9923:

Line 9920: pa_debug.reset_curr_function;

9916: x_return_status := FND_API.G_RET_STS_ERROR;
9917: -- pa_debug.g_err_stage:='Invalid Arguments Passed';
9918: -- pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
9919: IF P_PA_DEBUG_MODE = 'Y' THEN
9920: pa_debug.reset_curr_function;
9921: END IF;
9922: RETURN;
9923:
9924: WHEN Others THEN

Line 9930: IF P_PA_DEBUG_MODE = 'Y' THEN

9926: x_msg_count := 1;
9927: x_msg_data := SQLERRM;
9928: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9929: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9930: IF P_PA_DEBUG_MODE = 'Y' THEN
9931: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9932: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9933: pa_debug.reset_curr_function;
9934: END IF;

Line 9931: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

9927: x_msg_data := SQLERRM;
9928: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9929: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9930: IF P_PA_DEBUG_MODE = 'Y' THEN
9931: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9932: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9933: pa_debug.reset_curr_function;
9934: END IF;
9935: RAISE;

Line 9932: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);

9928: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
9929: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9930: IF P_PA_DEBUG_MODE = 'Y' THEN
9931: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9932: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9933: pa_debug.reset_curr_function;
9934: END IF;
9935: RAISE;
9936:

Line 9933: pa_debug.reset_curr_function;

9929: ,p_procedure_name => 'CHECK_IF_PLAN_TYPE_EDITABLE');
9930: IF P_PA_DEBUG_MODE = 'Y' THEN
9931: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
9932: pa_debug.write('Check_if_plan_type_editable: ' || l_module_name,pa_debug.g_err_stage,5);
9933: pa_debug.reset_curr_function;
9934: END IF;
9935: RAISE;
9936:
9937: END Check_if_plan_type_editable;

Line 10034: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

10030:
10031: x_msg_count := 0;
10032: x_return_status := FND_API.G_RET_STS_SUCCESS;
10033:
10034: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10035: l_debug_mode := NVL(l_debug_mode, 'Y');
10036:
10037: IF l_debug_mode = 'Y' THEN
10038: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');

Line 10038: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');

10034: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10035: l_debug_mode := NVL(l_debug_mode, 'Y');
10036:
10037: IF l_debug_mode = 'Y' THEN
10038: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');
10039: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
10040: END IF;
10041:
10042: -- Check for business rules violations

Line 10039: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);

10035: l_debug_mode := NVL(l_debug_mode, 'Y');
10036:
10037: IF l_debug_mode = 'Y' THEN
10038: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.Get_Curr_Original_Version_Info');
10039: pa_debug.set_process('Get_Curr_Original_Version_Info: ' || 'PLSQL','LOG',l_debug_mode);
10040: END IF;
10041:
10042: -- Check for business rules violations
10043:

Line 10045: pa_debug.g_err_stage:='Validating input parameters';

10041:
10042: -- Check for business rules violations
10043:
10044: IF l_debug_mode = 'Y' THEN
10045: pa_debug.g_err_stage:='Validating input parameters';
10046: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10047: END IF;
10048:
10049: IF (p_project_id IS NULL) OR

Line 10046: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10042: -- Check for business rules violations
10043:
10044: IF l_debug_mode = 'Y' THEN
10045: pa_debug.g_err_stage:='Validating input parameters';
10046: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10047: END IF;
10048:
10049: IF (p_project_id IS NULL) OR
10050: (p_fin_plan_type_id IS NULL)

Line 10054: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10050: (p_fin_plan_type_id IS NULL)
10051: THEN
10052:
10053: IF l_debug_mode = 'Y' THEN
10054: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10055: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10056:
10057: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10058: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

Line 10055: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10051: THEN
10052:
10053: IF l_debug_mode = 'Y' THEN
10054: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10055: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10056:
10057: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10058: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10059: END IF;

Line 10057: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

10053: IF l_debug_mode = 'Y' THEN
10054: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10055: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10056:
10057: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10058: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10059: END IF;
10060:
10061: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10058: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10054: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10055: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10056:
10057: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
10058: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10059: END IF;
10060:
10061: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10062: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10071: pa_debug.g_err_stage:='Fetching fin plan preference code ';

10067:
10068: --Fetch fin plan preference code
10069:
10070: IF l_debug_mode = 'Y' THEN
10071: pa_debug.g_err_stage:='Fetching fin plan preference code ';
10072: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10073: END IF;
10074:
10075: SELECT fin_plan_preference_code

Line 10072: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10068: --Fetch fin plan preference code
10069:
10070: IF l_debug_mode = 'Y' THEN
10071: pa_debug.g_err_stage:='Fetching fin plan preference code ';
10072: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10073: END IF;
10074:
10075: SELECT fin_plan_preference_code
10076: INTO l_fp_preference_code

Line 10089: pa_debug.g_err_stage:='Version_Type = '||p_version_type;

10085:
10086: --In this case version_type should be passed and so raise error
10087:
10088: IF l_debug_mode = 'Y' THEN
10089: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
10090: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10091: END IF;
10092:
10093: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10090: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10086: --In this case version_type should be passed and so raise error
10087:
10088: IF l_debug_mode = 'Y' THEN
10089: pa_debug.g_err_stage:='Version_Type = '||p_version_type;
10090: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10091: END IF;
10092:
10093: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10094: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10101: pa_debug.g_err_stage:='Parameter validation complete ';

10097:
10098: END IF;
10099:
10100: IF l_debug_mode = 'Y' THEN
10101: pa_debug.g_err_stage:='Parameter validation complete ';
10102: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10103: END IF;
10104:
10105: --Fetch l_element_type ifn't passed and could be derived

Line 10102: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10098: END IF;
10099:
10100: IF l_debug_mode = 'Y' THEN
10101: pa_debug.g_err_stage:='Parameter validation complete ';
10102: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10103: END IF;
10104:
10105: --Fetch l_element_type ifn't passed and could be derived
10106:

Line 10130: pa_debug.g_err_stage:='Fetching current original Version';

10126:
10127: BEGIN
10128:
10129: IF l_debug_mode = 'Y' THEN
10130: pa_debug.g_err_stage:='Fetching current original Version';
10131: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10132: END IF;
10133:
10134: SELECT budget_version_id

Line 10131: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10127: BEGIN
10128:
10129: IF l_debug_mode = 'Y' THEN
10130: pa_debug.g_err_stage:='Fetching current original Version';
10131: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10132: END IF;
10133:
10134: SELECT budget_version_id
10135: INTO l_current_original_version_id

Line 10146: pa_debug.g_err_stage:='Fetching fp option id';

10142:
10143: --Fetch fp options id using plan version id
10144:
10145: IF l_debug_mode = 'Y' THEN
10146: pa_debug.g_err_stage:='Fetching fp option id';
10147: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10148: END IF;
10149:
10150: SELECT proj_fp_options_id

Line 10147: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10143: --Fetch fp options id using plan version id
10144:
10145: IF l_debug_mode = 'Y' THEN
10146: pa_debug.g_err_stage:='Fetching fp option id';
10147: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10148: END IF;
10149:
10150: SELECT proj_fp_options_id
10151: INTO l_fp_options_id

Line 10169: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';

10165: x_fin_plan_version_id := l_current_original_version_id;
10166: x_fp_options_id := l_fp_options_id;
10167:
10168: IF l_debug_mode = 'Y' THEN
10169: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10170: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10171: pa_debug.reset_err_stack;
10172: END IF;
10173:

Line 10170: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);

10166: x_fp_options_id := l_fp_options_id;
10167:
10168: IF l_debug_mode = 'Y' THEN
10169: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10170: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10171: pa_debug.reset_err_stack;
10172: END IF;
10173:
10174: EXCEPTION

Line 10171: pa_debug.reset_err_stack;

10167:
10168: IF l_debug_mode = 'Y' THEN
10169: pa_debug.g_err_stage:='Exiting Get_Curr_Original_Version_Info';
10170: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,3);
10171: pa_debug.reset_err_stack;
10172: END IF;
10173:
10174: EXCEPTION
10175:

Line 10196: pa_debug.g_err_stage:='Invalid Arguments Passed';

10192:
10193: x_return_status := FND_API.G_RET_STS_ERROR;
10194:
10195: IF l_debug_mode = 'Y' THEN
10196: pa_debug.g_err_stage:='Invalid Arguments Passed';
10197: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10198:
10199: -- reset error stack
10200: pa_debug.reset_err_stack;

Line 10197: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10193: x_return_status := FND_API.G_RET_STS_ERROR;
10194:
10195: IF l_debug_mode = 'Y' THEN
10196: pa_debug.g_err_stage:='Invalid Arguments Passed';
10197: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10198:
10199: -- reset error stack
10200: pa_debug.reset_err_stack;
10201: END IF;

Line 10200: pa_debug.reset_err_stack;

10196: pa_debug.g_err_stage:='Invalid Arguments Passed';
10197: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10198:
10199: -- reset error stack
10200: pa_debug.reset_err_stack;
10201: END IF;
10202: RETURN;
10203:
10204: WHEN Others THEN

Line 10213: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10209: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10210: ,p_procedure_name => 'Get_Curr_Original_Version_Info');
10211:
10212: IF l_debug_mode = 'Y' THEN
10213: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10214: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10215:
10216: -- reset error stack
10217: pa_debug.reset_err_stack;

Line 10214: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);

10210: ,p_procedure_name => 'Get_Curr_Original_Version_Info');
10211:
10212: IF l_debug_mode = 'Y' THEN
10213: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10214: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10215:
10216: -- reset error stack
10217: pa_debug.reset_err_stack;
10218: END IF;

Line 10217: pa_debug.reset_err_stack;

10213: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10214: pa_debug.write('Get_Curr_Original_Version_Info: ' || l_module_name,pa_debug.g_err_stage,5);
10215:
10216: -- reset error stack
10217: pa_debug.reset_err_stack;
10218: END IF;
10219: RAISE;
10220: END Get_Curr_Original_Version_Info;
10221:

Line 10271: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

10267:
10268: x_msg_count := 0;
10269: x_return_status := FND_API.G_RET_STS_SUCCESS;
10270:
10271: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10272: l_debug_mode := NVL(l_debug_mode, 'Y');
10273:
10274: -- Set curr function
10275:

Line 10277: pa_debug.set_curr_function(

10273:
10274: -- Set curr function
10275:
10276: IF l_debug_mode = 'Y' THEN
10277: pa_debug.set_curr_function(
10278: p_function =>'PA_FIN_PLAN_UTILS.GET_ACTUAL_AMTS_THRU_PERIOD'
10279: ,p_debug_mode => l_debug_mode );
10280:
10281: -- Check for business rules violations

Line 10282: pa_debug.g_err_stage:='Validating input parameters';

10278: p_function =>'PA_FIN_PLAN_UTILS.GET_ACTUAL_AMTS_THRU_PERIOD'
10279: ,p_debug_mode => l_debug_mode );
10280:
10281: -- Check for business rules violations
10282: pa_debug.g_err_stage:='Validating input parameters';
10283: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10284: END IF;
10285:
10286: IF (p_budget_version_id IS NULL)

Line 10283: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10279: ,p_debug_mode => l_debug_mode );
10280:
10281: -- Check for business rules violations
10282: pa_debug.g_err_stage:='Validating input parameters';
10283: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10284: END IF;
10285:
10286: IF (p_budget_version_id IS NULL)
10287: THEN

Line 10290: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;

10286: IF (p_budget_version_id IS NULL)
10287: THEN
10288:
10289: IF l_debug_mode = 'Y' THEN
10290: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;
10291: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10292: END IF;
10293:
10294: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10291: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10287: THEN
10288:
10289: IF l_debug_mode = 'Y' THEN
10290: pa_debug.g_err_stage:='p_budget_version_id = '|| p_budget_version_id;
10291: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10292: END IF;
10293:
10294: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10295: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10303: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';

10299: END IF;
10300:
10301: -- Using bv id derive ACTUAL_AMTS_THRU_PERIOD from versions table
10302: IF l_debug_mode = 'Y' THEN
10303: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';
10304: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10305: END IF;
10306:
10307: SELECT actual_amts_thru_period

Line 10304: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10300:
10301: -- Using bv id derive ACTUAL_AMTS_THRU_PERIOD from versions table
10302: IF l_debug_mode = 'Y' THEN
10303: pa_debug.g_err_stage:='Fetching actual_amts_thru_period';
10304: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10305: END IF;
10306:
10307: SELECT actual_amts_thru_period
10308: ,record_version_number

Line 10316: pa_debug.g_err_stage:='Fetching first future PA period';

10312: WHERE budget_version_id = p_budget_version_id;
10313:
10314: -- Fetch first future PA period
10315: IF l_debug_mode = 'Y' THEN
10316: pa_debug.g_err_stage:='Fetching first future PA period';
10317: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10318: END IF;
10319:
10320: -- Fetch the first period. There might not be any future period

Line 10317: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10313:
10314: -- Fetch first future PA period
10315: IF l_debug_mode = 'Y' THEN
10316: pa_debug.g_err_stage:='Fetching first future PA period';
10317: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10318: END IF;
10319:
10320: -- Fetch the first period. There might not be any future period
10321: OPEN future_pa_periods_cur;

Line 10327: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;

10323: CLOSE future_pa_periods_cur;
10324:
10325: -- Fetch first future GL period
10326: IF l_debug_mode = 'Y' THEN
10327: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10328: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10329: pa_debug.g_err_stage:='Fetching first future GL period';
10330: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10331: END IF;

Line 10328: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10324:
10325: -- Fetch first future GL period
10326: IF l_debug_mode = 'Y' THEN
10327: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10328: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10329: pa_debug.g_err_stage:='Fetching first future GL period';
10330: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10331: END IF;
10332:

Line 10329: pa_debug.g_err_stage:='Fetching first future GL period';

10325: -- Fetch first future GL period
10326: IF l_debug_mode = 'Y' THEN
10327: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10328: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10329: pa_debug.g_err_stage:='Fetching first future GL period';
10330: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10331: END IF;
10332:
10333: -- Fetch first gl period, there might not be any gl period

Line 10330: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10326: IF l_debug_mode = 'Y' THEN
10327: pa_debug.g_err_stage:='first future PA period = '|| x_first_future_pa_period;
10328: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10329: pa_debug.g_err_stage:='Fetching first future GL period';
10330: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10331: END IF;
10332:
10333: -- Fetch first gl period, there might not be any gl period
10334: OPEN future_pa_periods_cur;

Line 10339: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;

10335: FETCH future_pa_periods_cur INTO x_first_future_gl_period;
10336: CLOSE future_pa_periods_cur;
10337:
10338: IF l_debug_mode = 'Y' THEN
10339: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10340: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10343:

Line 10340: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10336: CLOSE future_pa_periods_cur;
10337:
10338: IF l_debug_mode = 'Y' THEN
10339: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10340: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10343:
10344: -- Reset curr function

Line 10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';

10337:
10338: IF l_debug_mode = 'Y' THEN
10339: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10340: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10343:
10344: -- Reset curr function
10345: pa_debug.reset_curr_function();

Line 10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);

10338: IF l_debug_mode = 'Y' THEN
10339: pa_debug.g_err_stage:='first future GL period = '||x_first_future_gl_period;
10340: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10343:
10344: -- Reset curr function
10345: pa_debug.reset_curr_function();
10346: END IF;

Line 10345: pa_debug.reset_curr_function();

10341: pa_debug.g_err_stage:='Exiting GET_ACTUAL_AMTS_THRU_PERIOD';
10342: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,3);
10343:
10344: -- Reset curr function
10345: pa_debug.reset_curr_function();
10346: END IF;
10347: EXCEPTION
10348:
10349: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10369: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10365:
10366: x_return_status := FND_API.G_RET_STS_ERROR;
10367:
10368: IF l_debug_mode = 'Y' THEN
10369: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10370: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10371:
10372: -- Reset curr function
10373: pa_debug.reset_curr_function();

Line 10370: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10366: x_return_status := FND_API.G_RET_STS_ERROR;
10367:
10368: IF l_debug_mode = 'Y' THEN
10369: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10370: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10371:
10372: -- Reset curr function
10373: pa_debug.reset_curr_function();
10374: END IF;

Line 10373: pa_debug.reset_curr_function();

10369: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10370: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10371:
10372: -- Reset curr function
10373: pa_debug.reset_curr_function();
10374: END IF;
10375: RETURN;
10376: WHEN Others THEN
10377: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 10385: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10381: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10382: ,p_procedure_name => 'GET_ACTUAL_AMTS_THRU_PERIOD');
10383:
10384: IF l_debug_mode = 'Y' THEN
10385: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10386: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10387:
10388: -- Reset curr function
10389: pa_debug.Reset_Curr_Function();

Line 10386: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);

10382: ,p_procedure_name => 'GET_ACTUAL_AMTS_THRU_PERIOD');
10383:
10384: IF l_debug_mode = 'Y' THEN
10385: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10386: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10387:
10388: -- Reset curr function
10389: pa_debug.Reset_Curr_Function();
10390: END IF;

Line 10389: pa_debug.Reset_Curr_Function();

10385: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10386: pa_debug.write('GET_ACTUAL_AMTS_THRU_PERIOD: ' || l_module_name,pa_debug.g_err_stage,5);
10387:
10388: -- Reset curr function
10389: pa_debug.Reset_Curr_Function();
10390: END IF;
10391: RAISE;
10392: END GET_ACTUAL_AMTS_THRU_PERIOD;
10393:

Line 10553: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

10549: BEGIN
10550: x_msg_count := 0;
10551: x_return_status := FND_API.G_RET_STS_SUCCESS;
10552:
10553: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10554: l_debug_mode := NVL(l_debug_mode, 'Y');
10555:
10556: -- Set curr function
10557: IF l_debug_mode = 'Y' THEN

Line 10558: pa_debug.set_curr_function(

10554: l_debug_mode := NVL(l_debug_mode, 'Y');
10555:
10556: -- Set curr function
10557: IF l_debug_mode = 'Y' THEN
10558: pa_debug.set_curr_function(
10559: p_function =>'PA_FIN_PLAN_UTILS.IS_WP_RL_UPDATEABLE'
10560: ,p_debug_mode => l_debug_mode );
10561: END IF;
10562:

Line 10567: pa_debug.g_err_stage:='Project_id = '|| p_project_id;

10563: IF (p_project_id IS NULL)
10564: THEN
10565:
10566: IF l_debug_mode = 'Y' THEN
10567: pa_debug.g_err_stage:='Project_id = '|| p_project_id;
10568: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10569: END IF;
10570:
10571: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10568: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10564: THEN
10565:
10566: IF l_debug_mode = 'Y' THEN
10567: pa_debug.g_err_stage:='Project_id = '|| p_project_id;
10568: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10569: END IF;
10570:
10571: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10572: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10640: IF P_PA_DEBUG_MODE = 'Y' THEN

10636: END IF; -- progress
10637: END IF; -- versioning
10638:
10639: -- reset curr function
10640: IF P_PA_DEBUG_MODE = 'Y' THEN
10641: pa_debug.reset_curr_function();
10642: END IF;
10643: EXCEPTION
10644:

Line 10641: pa_debug.reset_curr_function();

10637: END IF; -- versioning
10638:
10639: -- reset curr function
10640: IF P_PA_DEBUG_MODE = 'Y' THEN
10641: pa_debug.reset_curr_function();
10642: END IF;
10643: EXCEPTION
10644:
10645: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10665: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10661:
10662: x_return_status := FND_API.G_RET_STS_ERROR;
10663:
10664: IF l_debug_mode = 'Y' THEN
10665: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10666: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10667:
10668: -- reset curr function
10669: pa_debug.reset_curr_function();

Line 10666: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10662: x_return_status := FND_API.G_RET_STS_ERROR;
10663:
10664: IF l_debug_mode = 'Y' THEN
10665: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10666: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10667:
10668: -- reset curr function
10669: pa_debug.reset_curr_function();
10670: END IF;

Line 10669: pa_debug.reset_curr_function();

10665: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10666: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10667:
10668: -- reset curr function
10669: pa_debug.reset_curr_function();
10670: END IF;
10671: RETURN;
10672: WHEN Others THEN
10673: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 10681: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10677: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10678: ,p_procedure_name => 'IS_WP_RL_UPDATEABLE');
10679:
10680: IF l_debug_mode = 'Y' THEN
10681: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10682: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10683: -- reset curr function
10684: pa_debug.Reset_Curr_Function();
10685: END IF;

Line 10682: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);

10678: ,p_procedure_name => 'IS_WP_RL_UPDATEABLE');
10679:
10680: IF l_debug_mode = 'Y' THEN
10681: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10682: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10683: -- reset curr function
10684: pa_debug.Reset_Curr_Function();
10685: END IF;
10686: RAISE;

Line 10684: pa_debug.Reset_Curr_Function();

10680: IF l_debug_mode = 'Y' THEN
10681: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10682: pa_debug.write('IS_WP_RL_UPDATEABLE: ' || l_module_name,pa_debug.g_err_stage,5);
10683: -- reset curr function
10684: pa_debug.Reset_Curr_Function();
10685: END IF;
10686: RAISE;
10687:
10688: END IS_WP_RL_UPDATEABLE;

Line 10720: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

10716:
10717: x_msg_count := 0;
10718: x_return_status := FND_API.G_RET_STS_SUCCESS;
10719:
10720: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10721: l_debug_mode := NVL(l_debug_mode, 'Y');
10722:
10723: -- Set curr function
10724: IF l_debug_mode = 'Y' THEN

Line 10725: pa_debug.set_curr_function(

10721: l_debug_mode := NVL(l_debug_mode, 'Y');
10722:
10723: -- Set curr function
10724: IF l_debug_mode = 'Y' THEN
10725: pa_debug.set_curr_function(
10726: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_COST_PT_ATTACHED'
10727: ,p_debug_mode => l_debug_mode );
10728:
10729: -- Check for business rules violations

Line 10731: pa_debug.g_err_stage:='Validating input parameters';

10727: ,p_debug_mode => l_debug_mode );
10728:
10729: -- Check for business rules violations
10730:
10731: pa_debug.g_err_stage:='Validating input parameters';
10732: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10733: END IF;
10734:
10735: IF (p_project_id IS NULL)

Line 10732: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10728:
10729: -- Check for business rules violations
10730:
10731: pa_debug.g_err_stage:='Validating input parameters';
10732: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10733: END IF;
10734:
10735: IF (p_project_id IS NULL)
10736: THEN

Line 10739: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10735: IF (p_project_id IS NULL)
10736: THEN
10737:
10738: IF l_debug_mode = 'Y' THEN
10739: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10740: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10741: END IF;
10742:
10743: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10740: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10736: THEN
10737:
10738: IF l_debug_mode = 'Y' THEN
10739: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10740: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10741: END IF;
10742:
10743: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10744: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10763: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';

10759: x_plan_type_id := null;
10760: END;
10761:
10762: IF l_debug_mode = 'Y' THEN
10763: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10764: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10765: -- reset curr function
10766: pa_debug.reset_curr_function();
10767: END IF;

Line 10764: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10760: END;
10761:
10762: IF l_debug_mode = 'Y' THEN
10763: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10764: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10765: -- reset curr function
10766: pa_debug.reset_curr_function();
10767: END IF;
10768: EXCEPTION

Line 10766: pa_debug.reset_curr_function();

10762: IF l_debug_mode = 'Y' THEN
10763: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_COST_PT_ATTACHED';
10764: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10765: -- reset curr function
10766: pa_debug.reset_curr_function();
10767: END IF;
10768: EXCEPTION
10769:
10770: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10790: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10786:
10787: x_return_status := FND_API.G_RET_STS_ERROR;
10788:
10789: IF l_debug_mode = 'Y' THEN
10790: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10791: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10792: -- reset curr function
10793: pa_debug.reset_curr_function();
10794: END IF;

Line 10791: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10787: x_return_status := FND_API.G_RET_STS_ERROR;
10788:
10789: IF l_debug_mode = 'Y' THEN
10790: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10791: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10792: -- reset curr function
10793: pa_debug.reset_curr_function();
10794: END IF;
10795: RETURN;

Line 10793: pa_debug.reset_curr_function();

10789: IF l_debug_mode = 'Y' THEN
10790: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10791: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10792: -- reset curr function
10793: pa_debug.reset_curr_function();
10794: END IF;
10795: RETURN;
10796: WHEN Others THEN
10797: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 10805: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10801: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10802: ,p_procedure_name => 'IS_PRI_FCST_COST_PT_ATTACHED');
10803:
10804: IF l_debug_mode = 'Y' THEN
10805: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10806: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10807: -- reset curr function
10808: pa_debug.Reset_Curr_Function();
10809: END IF;

Line 10806: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10802: ,p_procedure_name => 'IS_PRI_FCST_COST_PT_ATTACHED');
10803:
10804: IF l_debug_mode = 'Y' THEN
10805: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10806: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10807: -- reset curr function
10808: pa_debug.Reset_Curr_Function();
10809: END IF;
10810: RAISE;

Line 10808: pa_debug.Reset_Curr_Function();

10804: IF l_debug_mode = 'Y' THEN
10805: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10806: pa_debug.write('IS_PRI_FCST_COST_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10807: -- reset curr function
10808: pa_debug.Reset_Curr_Function();
10809: END IF;
10810: RAISE;
10811: END IS_PRI_FCST_COST_PT_ATTACHED;
10812:

Line 10843: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

10839:
10840: x_msg_count := 0;
10841: x_return_status := FND_API.G_RET_STS_SUCCESS;
10842:
10843: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
10844: l_debug_mode := NVL(l_debug_mode, 'Y');
10845:
10846: -- Set curr function
10847: IF l_debug_mode = 'Y' THEN

Line 10848: pa_debug.set_curr_function(

10844: l_debug_mode := NVL(l_debug_mode, 'Y');
10845:
10846: -- Set curr function
10847: IF l_debug_mode = 'Y' THEN
10848: pa_debug.set_curr_function(
10849: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_REV_PT_ATTACHED'
10850: ,p_debug_mode => l_debug_mode );
10851:
10852: -- Check for business rules violations

Line 10853: pa_debug.g_err_stage:='Validating input parameters';

10849: p_function =>'PA_FIN_PLAN_UTILS.IS_PRI_FCST_REV_PT_ATTACHED'
10850: ,p_debug_mode => l_debug_mode );
10851:
10852: -- Check for business rules violations
10853: pa_debug.g_err_stage:='Validating input parameters';
10854: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10855: END IF;
10856:
10857: IF (p_project_id IS NULL)

Line 10854: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10850: ,p_debug_mode => l_debug_mode );
10851:
10852: -- Check for business rules violations
10853: pa_debug.g_err_stage:='Validating input parameters';
10854: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10855: END IF;
10856:
10857: IF (p_project_id IS NULL)
10858: THEN

Line 10861: pa_debug.g_err_stage:='Project_id = '||p_project_id;

10857: IF (p_project_id IS NULL)
10858: THEN
10859:
10860: IF l_debug_mode = 'Y' THEN
10861: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10862: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10863: END IF;
10864:
10865: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 10862: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10858: THEN
10859:
10860: IF l_debug_mode = 'Y' THEN
10861: pa_debug.g_err_stage:='Project_id = '||p_project_id;
10862: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10863: END IF;
10864:
10865: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
10866: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 10885: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';

10881: x_plan_type_id := null;
10882: END;
10883:
10884: IF l_debug_mode = 'Y' THEN
10885: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10886: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10887: -- reset curr function
10888: pa_debug.reset_curr_function();
10889: END IF;

Line 10886: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);

10882: END;
10883:
10884: IF l_debug_mode = 'Y' THEN
10885: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10886: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10887: -- reset curr function
10888: pa_debug.reset_curr_function();
10889: END IF;
10890: EXCEPTION

Line 10888: pa_debug.reset_curr_function();

10884: IF l_debug_mode = 'Y' THEN
10885: pa_debug.g_err_stage:='Exiting IS_PRI_FCST_REV_PT_ATTACHED';
10886: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,3);
10887: -- reset curr function
10888: pa_debug.reset_curr_function();
10889: END IF;
10890: EXCEPTION
10891:
10892: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 10912: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

10908:
10909: x_return_status := FND_API.G_RET_STS_ERROR;
10910:
10911: IF l_debug_mode = 'Y' THEN
10912: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10913: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10914: -- reset curr function
10915: pa_debug.reset_curr_function();
10916: END IF;

Line 10913: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10909: x_return_status := FND_API.G_RET_STS_ERROR;
10910:
10911: IF l_debug_mode = 'Y' THEN
10912: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10913: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10914: -- reset curr function
10915: pa_debug.reset_curr_function();
10916: END IF;
10917: RETURN;

Line 10915: pa_debug.reset_curr_function();

10911: IF l_debug_mode = 'Y' THEN
10912: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
10913: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10914: -- reset curr function
10915: pa_debug.reset_curr_function();
10916: END IF;
10917: RETURN;
10918: WHEN Others THEN
10919: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 10927: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

10923: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
10924: ,p_procedure_name => 'IS_PRI_FCST_REV_PT_ATTACHED');
10925:
10926: IF l_debug_mode = 'Y' THEN
10927: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10928: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10929: -- reset curr function
10930: pa_debug.Reset_Curr_Function();
10931: END IF;

Line 10928: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);

10924: ,p_procedure_name => 'IS_PRI_FCST_REV_PT_ATTACHED');
10925:
10926: IF l_debug_mode = 'Y' THEN
10927: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10928: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10929: -- reset curr function
10930: pa_debug.Reset_Curr_Function();
10931: END IF;
10932: RAISE;

Line 10930: pa_debug.Reset_Curr_Function();

10926: IF l_debug_mode = 'Y' THEN
10927: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
10928: pa_debug.write('IS_PRI_FCST_REV_PT_ATTACHED: ' || l_module_name,pa_debug.g_err_stage,5);
10929: -- reset curr function
10930: pa_debug.Reset_Curr_Function();
10931: END IF;
10932: RAISE;
10933: END IS_PRI_FCST_REV_PT_ATTACHED;
10934:

Line 11022: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',

11018:
11019: BEGIN
11020:
11021: IF l_debug_mode = 'Y' THEN
11022: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',
11023: p_debug_mode => P_PA_debug_mode );
11024: END IF;
11025:
11026: x_msg_count := 0;

Line 11023: p_debug_mode => P_PA_debug_mode );

11019: BEGIN
11020:
11021: IF l_debug_mode = 'Y' THEN
11022: pa_debug.set_curr_function( p_function => 'GET_CURR_WORKING_VERSION_IDS',
11023: p_debug_mode => P_PA_debug_mode );
11024: END IF;
11025:
11026: x_msg_count := 0;
11027: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11031: IF P_PA_debug_mode = 'Y' THEN

11027: x_return_status := FND_API.G_RET_STS_SUCCESS;
11028:
11029: -- Validate that the input parameters are not null
11030: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11031: IF P_PA_debug_mode = 'Y' THEN
11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11034:
11035: pa_debug.g_err_stage:='project_id = '||p_project_id;

Line 11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;

11028:
11029: -- Validate that the input parameters are not null
11030: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11031: IF P_PA_debug_mode = 'Y' THEN
11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11034:
11035: pa_debug.g_err_stage:='project_id = '||p_project_id;
11036: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

Line 11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11029: -- Validate that the input parameters are not null
11030: IF P_fin_plan_type_id IS NULL OR P_project_id IS NULL THEN
11031: IF P_PA_debug_mode = 'Y' THEN
11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11034:
11035: pa_debug.g_err_stage:='project_id = '||p_project_id;
11036: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11037:

Line 11035: pa_debug.g_err_stage:='project_id = '||p_project_id;

11031: IF P_PA_debug_mode = 'Y' THEN
11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11034:
11035: pa_debug.g_err_stage:='project_id = '||p_project_id;
11036: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11037:
11038: END IF;
11039:

Line 11036: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11032: pa_debug.g_err_stage:='fin_plan_type_id = '||p_fin_plan_type_id;
11033: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11034:
11035: pa_debug.g_err_stage:='project_id = '||p_project_id;
11036: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11037:
11038: END IF;
11039:
11040:

Line 11047: IF P_PA_debug_mode = 'Y' THEN

11043: p_token1 => l_token_name,
11044: p_value1 => l_mod_name);
11045:
11046:
11047: IF P_PA_debug_mode = 'Y' THEN
11048: pa_debug.g_err_stage:='Invalid Arguments Passed';
11049: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11050: END IF;
11051: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11048: pa_debug.g_err_stage:='Invalid Arguments Passed';

11044: p_value1 => l_mod_name);
11045:
11046:
11047: IF P_PA_debug_mode = 'Y' THEN
11048: pa_debug.g_err_stage:='Invalid Arguments Passed';
11049: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11050: END IF;
11051: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11052: END IF;

Line 11049: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11045:
11046:
11047: IF P_PA_debug_mode = 'Y' THEN
11048: pa_debug.g_err_stage:='Invalid Arguments Passed';
11049: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11050: END IF;
11051: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11052: END IF;
11053:

Line 11054: IF P_PA_debug_mode = 'Y' THEN

11050: END IF;
11051: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11052: END IF;
11053:
11054: IF P_PA_debug_mode = 'Y' THEN
11055: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11056: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11057: END IF;
11058:

Line 11055: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';

11051: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11052: END IF;
11053:
11054: IF P_PA_debug_mode = 'Y' THEN
11055: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11056: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11057: END IF;
11058:
11059: BEGIN

Line 11056: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11052: END IF;
11053:
11054: IF P_PA_debug_mode = 'Y' THEN
11055: pa_debug.g_err_stage:= 'Entering GET_CURR_WORKING_VERSION_IDS';
11056: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11057: END IF;
11058:
11059: BEGIN
11060: SELECT fin_plan_preference_code

Line 11068: IF P_PA_debug_mode = 'Y' THEN

11064: AND project_id = p_project_id
11065: AND fin_plan_type_id = p_fin_plan_type_id;
11066: EXCEPTION
11067: WHEN NO_DATA_FOUND THEN
11068: IF P_PA_debug_mode = 'Y' THEN
11069: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11070: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11071: END IF;
11072: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11069: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';

11065: AND fin_plan_type_id = p_fin_plan_type_id;
11066: EXCEPTION
11067: WHEN NO_DATA_FOUND THEN
11068: IF P_PA_debug_mode = 'Y' THEN
11069: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11070: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11071: END IF;
11072: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11073: END;

Line 11070: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11066: EXCEPTION
11067: WHEN NO_DATA_FOUND THEN
11068: IF P_PA_debug_mode = 'Y' THEN
11069: pa_debug.g_err_stage:='No data found while getting fin_plan_preference_code ';
11070: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11071: END IF;
11072: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11073: END;
11074:

Line 11092: IF P_PA_debug_mode = 'Y' THEN

11088: ,x_msg_count => l_msg_count
11089: ,x_msg_data => l_msg_data);
11090:
11091: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11092: IF P_PA_debug_mode = 'Y' THEN
11093: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11094: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11095: END IF;
11096: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11093: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';

11089: ,x_msg_data => l_msg_data);
11090:
11091: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11092: IF P_PA_debug_mode = 'Y' THEN
11093: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11094: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11095: END IF;
11096: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11097: END IF;

Line 11094: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11090:
11091: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11092: IF P_PA_debug_mode = 'Y' THEN
11093: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: COST context';
11094: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11095: END IF;
11096: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11097: END IF;
11098: END IF;

Line 11110: IF P_PA_debug_mode = 'Y' THEN

11106: ,x_return_status => l_return_status
11107: ,x_msg_count => l_msg_count
11108: ,x_msg_data => l_msg_data);
11109: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11110: IF P_PA_debug_mode = 'Y' THEN
11111: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11112: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11113: END IF;
11114: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11111: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';

11107: ,x_msg_count => l_msg_count
11108: ,x_msg_data => l_msg_data);
11109: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11110: IF P_PA_debug_mode = 'Y' THEN
11111: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11112: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11113: END IF;
11114: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11115: END IF;

Line 11112: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11108: ,x_msg_data => l_msg_data);
11109: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11110: IF P_PA_debug_mode = 'Y' THEN
11111: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: REV context';
11112: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11113: END IF;
11114: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11115: END IF;
11116: END IF;

Line 11128: IF P_PA_debug_mode = 'Y' THEN

11124: ,x_msg_count => l_msg_count
11125: ,x_msg_data => l_msg_data);
11126:
11127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11128: IF P_PA_debug_mode = 'Y' THEN
11129: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11130: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11131: END IF;
11132: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11129: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';

11125: ,x_msg_data => l_msg_data);
11126:
11127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11128: IF P_PA_debug_mode = 'Y' THEN
11129: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11130: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11131: END IF;
11132: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11133: END IF;

Line 11130: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11126:
11127: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11128: IF P_PA_debug_mode = 'Y' THEN
11129: pa_debug.g_err_stage:= 'Error in Get_Curr_Working_Version_Info: ALL context';
11130: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11131: END IF;
11132: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11133: END IF;
11134:

Line 11138: IF P_PA_debug_mode = 'Y' THEN

11134:
11135:
11136: END IF;
11137:
11138: IF P_PA_debug_mode = 'Y' THEN
11139: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11141: pa_debug.reset_curr_function;
11142: END IF;

Line 11139: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';

11135:
11136: END IF;
11137:
11138: IF P_PA_debug_mode = 'Y' THEN
11139: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11141: pa_debug.reset_curr_function;
11142: END IF;
11143: EXCEPTION

Line 11140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11136: END IF;
11137:
11138: IF P_PA_debug_mode = 'Y' THEN
11139: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11141: pa_debug.reset_curr_function;
11142: END IF;
11143: EXCEPTION
11144: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 11141: pa_debug.reset_curr_function;

11137:
11138: IF P_PA_debug_mode = 'Y' THEN
11139: pa_debug.g_err_stage:= 'Exiting GET_CURR_WORKING_VERSION_IDS';
11140: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11141: pa_debug.reset_curr_function;
11142: END IF;
11143: EXCEPTION
11144: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11145: l_msg_count := FND_MSG_PUB.count_msg;

Line 11161: IF P_PA_DEBUG_MODE = 'Y' THEN

11157: ELSE
11158: x_msg_count := l_msg_count;
11159: END IF;
11160: x_return_status := FND_API.G_RET_STS_ERROR;
11161: IF P_PA_DEBUG_MODE = 'Y' THEN
11162: pa_debug.reset_curr_function;
11163: END IF;
11164: RETURN;
11165:

Line 11162: pa_debug.reset_curr_function;

11158: x_msg_count := l_msg_count;
11159: END IF;
11160: x_return_status := FND_API.G_RET_STS_ERROR;
11161: IF P_PA_DEBUG_MODE = 'Y' THEN
11162: pa_debug.reset_curr_function;
11163: END IF;
11164: RETURN;
11165:
11166: WHEN Others THEN

Line 11173: IF P_PA_DEBUG_MODE = 'Y' THEN

11169: x_msg_data := SQLERRM;
11170:
11171: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11172: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11173: IF P_PA_DEBUG_MODE = 'Y' THEN
11174: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11175: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11176: pa_debug.reset_curr_function;
11177: END IF;

Line 11174: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

11170:
11171: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11172: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11173: IF P_PA_DEBUG_MODE = 'Y' THEN
11174: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11175: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11176: pa_debug.reset_curr_function;
11177: END IF;
11178: RAISE;

Line 11175: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11171: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11172: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11173: IF P_PA_DEBUG_MODE = 'Y' THEN
11174: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11175: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11176: pa_debug.reset_curr_function;
11177: END IF;
11178: RAISE;
11179:

Line 11176: pa_debug.reset_curr_function;

11172: ,p_procedure_name => 'GET_CURR_WORKING_VERSION_IDS');
11173: IF P_PA_DEBUG_MODE = 'Y' THEN
11174: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11175: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11176: pa_debug.reset_curr_function;
11177: END IF;
11178: RAISE;
11179:
11180: END GET_CURR_WORKING_VERSION_IDS;

Line 11236: IF P_PA_DEBUG_MODE = 'Y' THEN

11232:
11233:
11234: BEGIN
11235:
11236: IF P_PA_DEBUG_MODE = 'Y' THEN
11237: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11238: p_debug_mode => P_PA_debug_mode );
11239: END IF;
11240: x_msg_count := 0;

Line 11237: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',

11233:
11234: BEGIN
11235:
11236: IF P_PA_DEBUG_MODE = 'Y' THEN
11237: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11238: p_debug_mode => P_PA_debug_mode );
11239: END IF;
11240: x_msg_count := 0;
11241: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11238: p_debug_mode => P_PA_debug_mode );

11234: BEGIN
11235:
11236: IF P_PA_DEBUG_MODE = 'Y' THEN
11237: pa_debug.set_curr_function( p_function => 'GET_PROJ_IMPACT_AMOUNTS',
11238: p_debug_mode => P_PA_debug_mode );
11239: END IF;
11240: x_msg_count := 0;
11241: x_return_status := FND_API.G_RET_STS_SUCCESS;
11242:

Line 11246: IF P_PA_DEBUG_MODE = 'Y' THEN

11242:
11243: -- See if all the input parameters passed are invalid
11244: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11245: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11246: IF P_PA_DEBUG_MODE = 'Y' THEN
11247: pa_debug.g_err_stage:='Invalid Arguments Passed';
11248: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11249: END IF;
11250:

Line 11247: pa_debug.g_err_stage:='Invalid Arguments Passed';

11243: -- See if all the input parameters passed are invalid
11244: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11245: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11246: IF P_PA_DEBUG_MODE = 'Y' THEN
11247: pa_debug.g_err_stage:='Invalid Arguments Passed';
11248: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11249: END IF;
11250:
11251:

Line 11248: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11244: IF nvl(p_all_budget_version_id,-1) = -1 AND nvl(p_cost_budget_version_id,-1) = -1
11245: AND nvl(p_rev_budget_version_id,-1) = -1 THEN
11246: IF P_PA_DEBUG_MODE = 'Y' THEN
11247: pa_debug.g_err_stage:='Invalid Arguments Passed';
11248: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11249: END IF;
11250:
11251:
11252: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 11267: IF P_PA_debug_mode = 'Y' THEN

11263: --p_version_type should be either COST or REVENUE if not null
11264: IF p_version_type IS NOT NULL AND
11265: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11266:
11267: IF P_PA_debug_mode = 'Y' THEN
11268: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11269: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11270: END IF;
11271:

Line 11268: pa_debug.g_err_stage:='p_version_type = '||p_version_type;

11264: IF p_version_type IS NOT NULL AND
11265: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11266:
11267: IF P_PA_debug_mode = 'Y' THEN
11268: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11269: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11270: END IF;
11271:
11272:

Line 11269: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11265: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11266:
11267: IF P_PA_debug_mode = 'Y' THEN
11268: pa_debug.g_err_stage:='p_version_type = '||p_version_type;
11269: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11270: END IF;
11271:
11272:
11273: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 11279: IF P_PA_debug_mode = 'Y' THEN

11275: p_token1 => l_token_name,
11276: p_value1 => l_mod_name);
11277:
11278:
11279: IF P_PA_debug_mode = 'Y' THEN
11280: pa_debug.g_err_stage:='Invalid Arguments Passed';
11281: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11282: END IF;
11283: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11280: pa_debug.g_err_stage:='Invalid Arguments Passed';

11276: p_value1 => l_mod_name);
11277:
11278:
11279: IF P_PA_debug_mode = 'Y' THEN
11280: pa_debug.g_err_stage:='Invalid Arguments Passed';
11281: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11282: END IF;
11283: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11284:

Line 11281: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11277:
11278:
11279: IF P_PA_debug_mode = 'Y' THEN
11280: pa_debug.g_err_stage:='Invalid Arguments Passed';
11281: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11282: END IF;
11283: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11284:
11285: END IF;

Line 11288: IF P_PA_debug_mode = 'Y' THEN

11284:
11285: END IF;
11286: */
11287:
11288: IF P_PA_debug_mode = 'Y' THEN
11289: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11290: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11291: END IF;
11292:

Line 11289: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';

11285: END IF;
11286: */
11287:
11288: IF P_PA_debug_mode = 'Y' THEN
11289: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11290: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11291: END IF;
11292:
11293: /* l_budget_version_id is used to get margin_derived_from_code.

Line 11290: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11286: */
11287:
11288: IF P_PA_debug_mode = 'Y' THEN
11289: pa_debug.g_err_stage:= 'Entering GET_PROJ_IMPACT_AMOUNTS';
11290: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11291: END IF;
11292:
11293: /* l_budget_version_id is used to get margin_derived_from_code.
11294: This is derived if an 'ALL' version exists or if both 'cost' and revenue' versions exist because

Line 11310: IF P_PA_DEBUG_MODE = 'Y' THEN

11306: FROM pa_proj_fp_options pfo
11307: WHERE pfo.fin_plan_version_id=l_budget_version_id ;
11308: EXCEPTION
11309: WHEN NO_DATA_FOUND THEN
11310: IF P_PA_DEBUG_MODE = 'Y' THEN
11311: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11312: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11313: END IF;
11314: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11311: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';

11307: WHERE pfo.fin_plan_version_id=l_budget_version_id ;
11308: EXCEPTION
11309: WHEN NO_DATA_FOUND THEN
11310: IF P_PA_DEBUG_MODE = 'Y' THEN
11311: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11312: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11313: END IF;
11314: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11315: END;

Line 11312: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11308: EXCEPTION
11309: WHEN NO_DATA_FOUND THEN
11310: IF P_PA_DEBUG_MODE = 'Y' THEN
11311: pa_debug.g_err_stage:='No Data Found while fetching margin_derived_from_code';
11312: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11313: END IF;
11314: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11315: END;
11316: END IF;

Line 11348: IF P_PA_DEBUG_MODE = 'Y' THEN

11344: FROM pa_budget_versions
11345: WHERE budget_version_id = decode(nvl(p_cost_budget_version_id,-1),-1,p_all_budget_version_id,p_cost_budget_version_id);
11346: EXCEPTION
11347: WHEN NO_DATA_FOUND THEN
11348: IF P_PA_DEBUG_MODE = 'Y' THEN
11349: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11350: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11351: END IF;
11352: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11349: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';

11345: WHERE budget_version_id = decode(nvl(p_cost_budget_version_id,-1),-1,p_all_budget_version_id,p_cost_budget_version_id);
11346: EXCEPTION
11347: WHEN NO_DATA_FOUND THEN
11348: IF P_PA_DEBUG_MODE = 'Y' THEN
11349: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11350: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11351: END IF;
11352: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11353: END;

Line 11350: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11346: EXCEPTION
11347: WHEN NO_DATA_FOUND THEN
11348: IF P_PA_DEBUG_MODE = 'Y' THEN
11349: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Cost/All version type';
11350: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11351: END IF;
11352: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11353: END;
11354: END IF;

Line 11367: IF P_PA_DEBUG_MODE = 'Y' THEN

11363: FROM pa_budget_versions
11364: WHERE budget_version_id = decode(nvl(p_rev_budget_version_id,-1),-1,p_all_budget_version_id,p_rev_budget_version_id);
11365: EXCEPTION
11366: WHEN NO_DATA_FOUND THEN
11367: IF P_PA_DEBUG_MODE = 'Y' THEN
11368: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11369: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11370: END IF;
11371: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11368: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';

11364: WHERE budget_version_id = decode(nvl(p_rev_budget_version_id,-1),-1,p_all_budget_version_id,p_rev_budget_version_id);
11365: EXCEPTION
11366: WHEN NO_DATA_FOUND THEN
11367: IF P_PA_DEBUG_MODE = 'Y' THEN
11368: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11369: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11370: END IF;
11371: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11372: END;

Line 11369: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11365: EXCEPTION
11366: WHEN NO_DATA_FOUND THEN
11367: IF P_PA_DEBUG_MODE = 'Y' THEN
11368: pa_debug.g_err_stage:='No data found while fetching quantity and amounts. Context: Rev/All version type';
11369: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11370: END IF;
11371: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11372: END;
11373: END IF;

Line 11408: IF P_PA_debug_mode = 'Y' THEN

11404: END IF;
11405: END IF;
11406:
11407:
11408: IF P_PA_debug_mode = 'Y' THEN
11409: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11410: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11411: pa_debug.reset_curr_function;
11412: END IF;

Line 11409: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';

11405: END IF;
11406:
11407:
11408: IF P_PA_debug_mode = 'Y' THEN
11409: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11410: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11411: pa_debug.reset_curr_function;
11412: END IF;
11413: EXCEPTION

Line 11410: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11406:
11407:
11408: IF P_PA_debug_mode = 'Y' THEN
11409: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11410: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11411: pa_debug.reset_curr_function;
11412: END IF;
11413: EXCEPTION
11414: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 11411: pa_debug.reset_curr_function;

11407:
11408: IF P_PA_debug_mode = 'Y' THEN
11409: pa_debug.g_err_stage:= 'Exiting GET_PROJ_IMPACT_AMOUNTS';
11410: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11411: pa_debug.reset_curr_function;
11412: END IF;
11413: EXCEPTION
11414: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11415: l_msg_count := FND_MSG_PUB.count_msg;

Line 11432: IF P_PA_DEBUG_MODE = 'Y' THEN

11428: x_msg_count := l_msg_count;
11429: END IF;
11430: x_return_status := FND_API.G_RET_STS_ERROR;
11431:
11432: IF P_PA_DEBUG_MODE = 'Y' THEN
11433: pa_debug.reset_curr_function;
11434: END IF;
11435: RETURN;
11436:

Line 11433: pa_debug.reset_curr_function;

11429: END IF;
11430: x_return_status := FND_API.G_RET_STS_ERROR;
11431:
11432: IF P_PA_DEBUG_MODE = 'Y' THEN
11433: pa_debug.reset_curr_function;
11434: END IF;
11435: RETURN;
11436:
11437: WHEN Others THEN

Line 11444: IF P_PA_DEBUG_MODE = 'Y' THEN

11440: x_msg_data := SQLERRM;
11441:
11442: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11443: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11444: IF P_PA_DEBUG_MODE = 'Y' THEN
11445: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11446: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11447: pa_debug.reset_curr_function;
11448: END IF;

Line 11445: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

11441:
11442: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11443: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11444: IF P_PA_DEBUG_MODE = 'Y' THEN
11445: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11446: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11447: pa_debug.reset_curr_function;
11448: END IF;
11449: RAISE;

Line 11446: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11442: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11443: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11444: IF P_PA_DEBUG_MODE = 'Y' THEN
11445: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11446: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11447: pa_debug.reset_curr_function;
11448: END IF;
11449: RAISE;
11450:

Line 11447: pa_debug.reset_curr_function;

11443: ,p_procedure_name => 'GET_PROJ_IMPACT_AMOUNTS');
11444: IF P_PA_DEBUG_MODE = 'Y' THEN
11445: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11446: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11447: pa_debug.reset_curr_function;
11448: END IF;
11449: RAISE;
11450:
11451:

Line 11517: IF P_PA_DEBUG_MODE = 'Y' THEN

11513: -- End of variables used for debugging purpose
11514:
11515: BEGIN
11516:
11517: IF P_PA_DEBUG_MODE = 'Y' THEN
11518: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11519: p_debug_mode => P_PA_debug_mode );
11520: END IF;
11521: x_msg_count := 0;

Line 11518: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',

11514:
11515: BEGIN
11516:
11517: IF P_PA_DEBUG_MODE = 'Y' THEN
11518: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11519: p_debug_mode => P_PA_debug_mode );
11520: END IF;
11521: x_msg_count := 0;
11522: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 11519: p_debug_mode => P_PA_debug_mode );

11515: BEGIN
11516:
11517: IF P_PA_DEBUG_MODE = 'Y' THEN
11518: pa_debug.set_curr_function( p_function => 'GET_SUMMARY_AMOUNTS',
11519: p_debug_mode => P_PA_debug_mode );
11520: END IF;
11521: x_msg_count := 0;
11522: x_return_status := FND_API.G_RET_STS_SUCCESS;
11523:

Line 11526: IF P_PA_debug_mode = 'Y' THEN

11522: x_return_status := FND_API.G_RET_STS_SUCCESS;
11523:
11524: -- Check for business rules violations
11525:
11526: IF P_PA_debug_mode = 'Y' THEN
11527: pa_debug.g_err_stage:='Validating input parameters';
11528: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11529: END IF;
11530:

Line 11527: pa_debug.g_err_stage:='Validating input parameters';

11523:
11524: -- Check for business rules violations
11525:
11526: IF P_PA_debug_mode = 'Y' THEN
11527: pa_debug.g_err_stage:='Validating input parameters';
11528: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11529: END IF;
11530:
11531: -- Check if p_context or project id is NULL

Line 11528: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11524: -- Check for business rules violations
11525:
11526: IF P_PA_debug_mode = 'Y' THEN
11527: pa_debug.g_err_stage:='Validating input parameters';
11528: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11529: END IF;
11530:
11531: -- Check if p_context or project id is NULL
11532: IF p_context IS NULL OR p_project_id IS NULL THEN

Line 11534: IF P_PA_debug_mode = 'Y' THEN

11530:
11531: -- Check if p_context or project id is NULL
11532: IF p_context IS NULL OR p_project_id IS NULL THEN
11533:
11534: IF P_PA_debug_mode = 'Y' THEN
11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11537:
11538: pa_debug.g_err_stage:='project_id = '||p_project_id;

Line 11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11531: -- Check if p_context or project id is NULL
11532: IF p_context IS NULL OR p_project_id IS NULL THEN
11533:
11534: IF P_PA_debug_mode = 'Y' THEN
11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11537:
11538: pa_debug.g_err_stage:='project_id = '||p_project_id;
11539: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11532: IF p_context IS NULL OR p_project_id IS NULL THEN
11533:
11534: IF P_PA_debug_mode = 'Y' THEN
11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11537:
11538: pa_debug.g_err_stage:='project_id = '||p_project_id;
11539: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11540:

Line 11538: pa_debug.g_err_stage:='project_id = '||p_project_id;

11534: IF P_PA_debug_mode = 'Y' THEN
11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11537:
11538: pa_debug.g_err_stage:='project_id = '||p_project_id;
11539: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11540:
11541: END IF;
11542:

Line 11539: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11535: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11536: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11537:
11538: pa_debug.g_err_stage:='project_id = '||p_project_id;
11539: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11540:
11541: END IF;
11542:
11543:

Line 11550: IF P_PA_debug_mode = 'Y' THEN

11546: p_token1 => l_token_name,
11547: p_value1 => l_mod_name);
11548:
11549:
11550: IF P_PA_debug_mode = 'Y' THEN
11551: pa_debug.g_err_stage:='Invalid Arguments Passed';
11552: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11553: END IF;
11554: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11551: pa_debug.g_err_stage:='Invalid Arguments Passed';

11547: p_value1 => l_mod_name);
11548:
11549:
11550: IF P_PA_debug_mode = 'Y' THEN
11551: pa_debug.g_err_stage:='Invalid Arguments Passed';
11552: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11553: END IF;
11554: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11555:

Line 11552: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11548:
11549:
11550: IF P_PA_debug_mode = 'Y' THEN
11551: pa_debug.g_err_stage:='Invalid Arguments Passed';
11552: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11553: END IF;
11554: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11555:
11556: END IF;

Line 11565: IF P_PA_debug_mode = 'Y' THEN

11561: --p_version_type should be either COST or REVENUE if not null
11562: IF p_version_type IS NOT NULL AND
11563: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11564:
11565: IF P_PA_debug_mode = 'Y' THEN
11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11568:
11569: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11562: IF p_version_type IS NOT NULL AND
11563: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11564:
11565: IF P_PA_debug_mode = 'Y' THEN
11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11568:
11569: pa_debug.g_err_stage:='p_context = '||p_context;
11570: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11563: p_version_type NOT IN ('COST', 'REVENUE','ALL') THEN
11564:
11565: IF P_PA_debug_mode = 'Y' THEN
11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11568:
11569: pa_debug.g_err_stage:='p_context = '||p_context;
11570: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11571:

Line 11569: pa_debug.g_err_stage:='p_context = '||p_context;

11565: IF P_PA_debug_mode = 'Y' THEN
11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11568:
11569: pa_debug.g_err_stage:='p_context = '||p_context;
11570: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11571:
11572: END IF;
11573:

Line 11570: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11566: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11567: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11568:
11569: pa_debug.g_err_stage:='p_context = '||p_context;
11570: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11571:
11572: END IF;
11573:
11574:

Line 11581: IF P_PA_debug_mode = 'Y' THEN

11577: p_token1 => l_token_name,
11578: p_value1 => l_mod_name);
11579:
11580:
11581: IF P_PA_debug_mode = 'Y' THEN
11582: pa_debug.g_err_stage:='Invalid Arguments Passed';
11583: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11584: END IF;
11585: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11582: pa_debug.g_err_stage:='Invalid Arguments Passed';

11578: p_value1 => l_mod_name);
11579:
11580:
11581: IF P_PA_debug_mode = 'Y' THEN
11582: pa_debug.g_err_stage:='Invalid Arguments Passed';
11583: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11584: END IF;
11585: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11586:

Line 11583: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11579:
11580:
11581: IF P_PA_debug_mode = 'Y' THEN
11582: pa_debug.g_err_stage:='Invalid Arguments Passed';
11583: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11584: END IF;
11585: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11586:
11587: END IF;

Line 11597: IF P_PA_debug_mode = 'Y' THEN

11593: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN
11594: IF (p_ci_id IS NULL)
11595: THEN
11596:
11597: IF P_PA_debug_mode = 'Y' THEN
11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11600:
11601: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;

11594: IF (p_ci_id IS NULL)
11595: THEN
11596:
11597: IF P_PA_debug_mode = 'Y' THEN
11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11600:
11601: pa_debug.g_err_stage:='p_context = '||p_context;
11602: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11595: THEN
11596:
11597: IF P_PA_debug_mode = 'Y' THEN
11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11600:
11601: pa_debug.g_err_stage:='p_context = '||p_context;
11602: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11603:

Line 11601: pa_debug.g_err_stage:='p_context = '||p_context;

11597: IF P_PA_debug_mode = 'Y' THEN
11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11600:
11601: pa_debug.g_err_stage:='p_context = '||p_context;
11602: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11603:
11604: END IF;
11605:

Line 11602: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11598: pa_debug.g_err_stage:='Ci_id = '||p_ci_id;
11599: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11600:
11601: pa_debug.g_err_stage:='p_context = '||p_context;
11602: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11603:
11604: END IF;
11605:
11606:

Line 11613: IF P_PA_debug_mode = 'Y' THEN

11609: p_token1 => l_token_name,
11610: p_value1 => l_mod_name);
11611:
11612:
11613: IF P_PA_debug_mode = 'Y' THEN
11614: pa_debug.g_err_stage:='Invalid Arguments Passed';
11615: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11616: END IF;
11617: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11614: pa_debug.g_err_stage:='Invalid Arguments Passed';

11610: p_value1 => l_mod_name);
11611:
11612:
11613: IF P_PA_debug_mode = 'Y' THEN
11614: pa_debug.g_err_stage:='Invalid Arguments Passed';
11615: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11616: END IF;
11617: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11618:

Line 11615: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11611:
11612:
11613: IF P_PA_debug_mode = 'Y' THEN
11614: pa_debug.g_err_stage:='Invalid Arguments Passed';
11615: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11616: END IF;
11617: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11618:
11619: END IF;

Line 11625: IF P_PA_debug_mode = 'Y' THEN

11621: ELSIF p_context = PA_FP_CONSTANTS_PKG.G_PLAN_TYPE_CWV_AMOUNTS THEN
11622: IF (p_fin_plan_type_id IS NULL)
11623: THEN
11624:
11625: IF P_PA_debug_mode = 'Y' THEN
11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11628:
11629: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;

11622: IF (p_fin_plan_type_id IS NULL)
11623: THEN
11624:
11625: IF P_PA_debug_mode = 'Y' THEN
11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11628:
11629: pa_debug.g_err_stage:='p_context = '||p_context;
11630: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11623: THEN
11624:
11625: IF P_PA_debug_mode = 'Y' THEN
11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11628:
11629: pa_debug.g_err_stage:='p_context = '||p_context;
11630: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11631:

Line 11629: pa_debug.g_err_stage:='p_context = '||p_context;

11625: IF P_PA_debug_mode = 'Y' THEN
11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11628:
11629: pa_debug.g_err_stage:='p_context = '||p_context;
11630: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11631:
11632: END IF;
11633:

Line 11630: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11626: pa_debug.g_err_stage:='Fin_plan_type_id = '||p_fin_plan_type_id;
11627: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11628:
11629: pa_debug.g_err_stage:='p_context = '||p_context;
11630: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11631:
11632: END IF;
11633:
11634:

Line 11641: IF P_PA_debug_mode = 'Y' THEN

11637: p_token1 => l_token_name,
11638: p_value1 => l_mod_name);
11639:
11640:
11641: IF P_PA_debug_mode = 'Y' THEN
11642: pa_debug.g_err_stage:='Invalid Arguments Passed';
11643: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11644: END IF;
11645: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11642: pa_debug.g_err_stage:='Invalid Arguments Passed';

11638: p_value1 => l_mod_name);
11639:
11640:
11641: IF P_PA_debug_mode = 'Y' THEN
11642: pa_debug.g_err_stage:='Invalid Arguments Passed';
11643: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11644: END IF;
11645: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11646:

Line 11643: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11639:
11640:
11641: IF P_PA_debug_mode = 'Y' THEN
11642: pa_debug.g_err_stage:='Invalid Arguments Passed';
11643: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11644: END IF;
11645: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11646:
11647: END IF;

Line 11651: IF P_PA_debug_mode = 'Y' THEN

11647: END IF;
11648:
11649: END IF;
11650:
11651: IF P_PA_debug_mode = 'Y' THEN
11652: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11653: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11654: END IF;
11655:

Line 11652: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';

11648:
11649: END IF;
11650:
11651: IF P_PA_debug_mode = 'Y' THEN
11652: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11653: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11654: END IF;
11655:
11656: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN

Line 11653: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11649: END IF;
11650:
11651: IF P_PA_debug_mode = 'Y' THEN
11652: pa_debug.g_err_stage:= 'Entering GET_SUMMARY_AMOUNTS';
11653: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11654: END IF;
11655:
11656: IF p_context = PA_FP_CONSTANTS_PKG.G_CI_VERSION_AMOUNTS THEN
11657: Pa_Fp_Control_Items_Utils.GET_CI_VERSIONS(P_ci_id => p_ci_id,

Line 11666: IF P_PA_debug_mode = 'Y' THEN

11662: x_msg_data => l_msg_data,
11663: X_msg_count => l_msg_count);
11664:
11665: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11666: IF P_PA_debug_mode = 'Y' THEN
11667: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11668: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11669: END IF;
11670: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11667: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';

11663: X_msg_count => l_msg_count);
11664:
11665: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11666: IF P_PA_debug_mode = 'Y' THEN
11667: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11668: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11669: END IF;
11670: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11671: END IF;

Line 11668: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11664:
11665: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11666: IF P_PA_debug_mode = 'Y' THEN
11667: pa_debug.g_err_stage:= 'Error in GET_CI_VERSIONS';
11668: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11669: END IF;
11670: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11671: END IF;
11672:

Line 11693: IF P_PA_debug_mode = 'Y' THEN

11689: ,x_msg_data => l_msg_data
11690: ,X_msg_count => l_msg_count);
11691:
11692: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11693: IF P_PA_debug_mode = 'Y' THEN
11694: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11695: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11696: END IF;
11697: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11694: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';

11690: ,X_msg_count => l_msg_count);
11691:
11692: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11693: IF P_PA_debug_mode = 'Y' THEN
11694: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11695: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11696: END IF;
11697: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11698: END IF;

Line 11695: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11691:
11692: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11693: IF P_PA_debug_mode = 'Y' THEN
11694: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11695: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11696: END IF;
11697: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11698: END IF;
11699: ELSIF p_context = PA_FP_CONSTANTS_PKG.G_PLAN_TYPE_CWV_AMOUNTS THEN

Line 11710: IF P_PA_debug_mode = 'Y' THEN

11706: ,x_msg_data => l_msg_data
11707: ,X_msg_count => l_msg_count);
11708:
11709: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11710: IF P_PA_debug_mode = 'Y' THEN
11711: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11712: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11713: END IF;
11714: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11711: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';

11707: ,X_msg_count => l_msg_count);
11708:
11709: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11710: IF P_PA_debug_mode = 'Y' THEN
11711: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11712: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11713: END IF;
11714: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11715: END IF;

Line 11712: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11708:
11709: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11710: IF P_PA_debug_mode = 'Y' THEN
11711: pa_debug.g_err_stage:= 'Error in GET_CURR_WORKING_VERSION_IDS';
11712: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11713: END IF;
11714: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11715: END IF;
11716:

Line 11741: IF P_PA_debug_mode = 'Y' THEN

11737: ,x_msg_data => l_msg_data
11738: ,X_msg_count => l_msg_count);
11739:
11740: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11741: IF P_PA_debug_mode = 'Y' THEN
11742: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11743: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11744: END IF;
11745: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;

Line 11742: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';

11738: ,X_msg_count => l_msg_count);
11739:
11740: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11741: IF P_PA_debug_mode = 'Y' THEN
11742: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11743: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11744: END IF;
11745: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11746: END IF;

Line 11743: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11739:
11740: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
11741: IF P_PA_debug_mode = 'Y' THEN
11742: pa_debug.g_err_stage:= 'Error in GET_PROJ_IMPACT_AMOUNTS';
11743: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11744: END IF;
11745: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
11746: END IF;
11747: END IF;

Line 11751: IF P_PA_debug_mode = 'Y' THEN

11747: END IF;
11748: END IF;
11749:
11750:
11751: IF P_PA_debug_mode = 'Y' THEN
11752: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11753: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11754:
11755: pa_debug.reset_curr_function;

Line 11752: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';

11748: END IF;
11749:
11750:
11751: IF P_PA_debug_mode = 'Y' THEN
11752: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11753: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11754:
11755: pa_debug.reset_curr_function;
11756: END IF;

Line 11753: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11749:
11750:
11751: IF P_PA_debug_mode = 'Y' THEN
11752: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11753: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11754:
11755: pa_debug.reset_curr_function;
11756: END IF;
11757: EXCEPTION

Line 11755: pa_debug.reset_curr_function;

11751: IF P_PA_debug_mode = 'Y' THEN
11752: pa_debug.g_err_stage:= 'Exiting GET_SUMMARY_AMOUNTS';
11753: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11754:
11755: pa_debug.reset_curr_function;
11756: END IF;
11757: EXCEPTION
11758: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN
11759: l_msg_count := FND_MSG_PUB.count_msg;

Line 11776: IF P_PA_DEBUG_MODE = 'Y' THEN

11772: x_msg_count := l_msg_count;
11773: END IF;
11774: x_return_status := FND_API.G_RET_STS_ERROR;
11775:
11776: IF P_PA_DEBUG_MODE = 'Y' THEN
11777: pa_debug.reset_curr_function;
11778: END IF;
11779: RETURN;
11780:

Line 11777: pa_debug.reset_curr_function;

11773: END IF;
11774: x_return_status := FND_API.G_RET_STS_ERROR;
11775:
11776: IF P_PA_DEBUG_MODE = 'Y' THEN
11777: pa_debug.reset_curr_function;
11778: END IF;
11779: RETURN;
11780:
11781: WHEN Others THEN

Line 11788: IF P_PA_DEBUG_MODE = 'Y' THEN

11784: x_msg_data := SQLERRM;
11785:
11786: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11787: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11788: IF P_PA_DEBUG_MODE = 'Y' THEN
11789: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11790: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11791: pa_debug.reset_curr_function;
11792: END IF;

Line 11789: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

11785:
11786: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11787: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11788: IF P_PA_DEBUG_MODE = 'Y' THEN
11789: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11790: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11791: pa_debug.reset_curr_function;
11792: END IF;
11793: RAISE;

Line 11790: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

11786: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
11787: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11788: IF P_PA_DEBUG_MODE = 'Y' THEN
11789: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11790: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11791: pa_debug.reset_curr_function;
11792: END IF;
11793: RAISE;
11794:

Line 11791: pa_debug.reset_curr_function;

11787: ,p_procedure_name => 'GET_SUMMARY_AMOUNTS');
11788: IF P_PA_DEBUG_MODE = 'Y' THEN
11789: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
11790: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
11791: pa_debug.reset_curr_function;
11792: END IF;
11793: RAISE;
11794:
11795:

Line 11846: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

11842: l_delete_ok VARCHAR2(1);
11843:
11844: BEGIN
11845:
11846: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11847:
11848: -- Input Paramter Validations
11849: IF P_PA_debug_mode = 'Y' THEN
11850: pa_debug.g_err_stage:='Validating input parameters';

Line 11849: IF P_PA_debug_mode = 'Y' THEN

11845:
11846: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11847:
11848: -- Input Paramter Validations
11849: IF P_PA_debug_mode = 'Y' THEN
11850: pa_debug.g_err_stage:='Validating input parameters';
11851: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11852: END IF;
11853:

Line 11850: pa_debug.g_err_stage:='Validating input parameters';

11846: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11847:
11848: -- Input Paramter Validations
11849: IF P_PA_debug_mode = 'Y' THEN
11850: pa_debug.g_err_stage:='Validating input parameters';
11851: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11852: END IF;
11853:
11854: IF (p_bill_rate_sch_id IS NULL)

Line 11851: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11847:
11848: -- Input Paramter Validations
11849: IF P_PA_debug_mode = 'Y' THEN
11850: pa_debug.g_err_stage:='Validating input parameters';
11851: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11852: END IF;
11853:
11854: IF (p_bill_rate_sch_id IS NULL)
11855: THEN

Line 11856: IF P_PA_debug_mode = 'Y' THEN

11852: END IF;
11853:
11854: IF (p_bill_rate_sch_id IS NULL)
11855: THEN
11856: IF P_PA_debug_mode = 'Y' THEN
11857: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11858: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11859: END IF;
11860: END IF;

Line 11857: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';

11853:
11854: IF (p_bill_rate_sch_id IS NULL)
11855: THEN
11856: IF P_PA_debug_mode = 'Y' THEN
11857: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11858: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11859: END IF;
11860: END IF;
11861:

Line 11858: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11854: IF (p_bill_rate_sch_id IS NULL)
11855: THEN
11856: IF P_PA_debug_mode = 'Y' THEN
11857: pa_debug.g_err_stage:='p_bill_rate_sch_id is NULL';
11858: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11859: END IF;
11860: END IF;
11861:
11862: BEGIN

Line 11908: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');

11904: l_delete_ok VARCHAR2(1);
11905:
11906: BEGIN
11907:
11908: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11909:
11910: -- Input Paramter Validations
11911: IF P_PA_debug_mode = 'Y' THEN
11912: pa_debug.g_err_stage:='Validating input parameters';

Line 11911: IF P_PA_debug_mode = 'Y' THEN

11907:
11908: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11909:
11910: -- Input Paramter Validations
11911: IF P_PA_debug_mode = 'Y' THEN
11912: pa_debug.g_err_stage:='Validating input parameters';
11913: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11914: END IF;
11915:

Line 11912: pa_debug.g_err_stage:='Validating input parameters';

11908: l_debug_mode := NVL(FND_PROFILE.value('PA_DEBUG_MODE'),'N');
11909:
11910: -- Input Paramter Validations
11911: IF P_PA_debug_mode = 'Y' THEN
11912: pa_debug.g_err_stage:='Validating input parameters';
11913: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11914: END IF;
11915:
11916: IF (p_ind_rate_sch_id IS NULL)

Line 11913: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11909:
11910: -- Input Paramter Validations
11911: IF P_PA_debug_mode = 'Y' THEN
11912: pa_debug.g_err_stage:='Validating input parameters';
11913: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11914: END IF;
11915:
11916: IF (p_ind_rate_sch_id IS NULL)
11917: THEN

Line 11918: IF P_PA_debug_mode = 'Y' THEN

11914: END IF;
11915:
11916: IF (p_ind_rate_sch_id IS NULL)
11917: THEN
11918: IF P_PA_debug_mode = 'Y' THEN
11919: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11920: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11921: END IF;
11922: END IF;

Line 11919: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';

11915:
11916: IF (p_ind_rate_sch_id IS NULL)
11917: THEN
11918: IF P_PA_debug_mode = 'Y' THEN
11919: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11920: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11921: END IF;
11922: END IF;
11923:

Line 11920: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11916: IF (p_ind_rate_sch_id IS NULL)
11917: THEN
11918: IF P_PA_debug_mode = 'Y' THEN
11919: pa_debug.g_err_stage:='p_ind_rate_sch_id is NULL';
11920: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11921: END IF;
11922: END IF;
11923:
11924: BEGIN

Line 11970: IF P_PA_DEBUG_MODE = 'Y' THEN

11966: l_currency_code VARCHAR2(30);
11967: is_valid_flag VARCHAR2(30);
11968:
11969: BEGIN
11970: IF P_PA_DEBUG_MODE = 'Y' THEN
11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11972: p_debug_mode => P_PA_DEBUG_MODE );
11973:
11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';

Line 11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',

11967: is_valid_flag VARCHAR2(30);
11968:
11969: BEGIN
11970: IF P_PA_DEBUG_MODE = 'Y' THEN
11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11972: p_debug_mode => P_PA_DEBUG_MODE );
11973:
11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

Line 11972: p_debug_mode => P_PA_DEBUG_MODE );

11968:
11969: BEGIN
11970: IF P_PA_DEBUG_MODE = 'Y' THEN
11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11972: p_debug_mode => P_PA_DEBUG_MODE );
11973:
11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11976:

Line 11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';

11970: IF P_PA_DEBUG_MODE = 'Y' THEN
11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11972: p_debug_mode => P_PA_DEBUG_MODE );
11973:
11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11976:
11977: -- Checking, if the input parameters are null
11978: pa_debug.g_err_stage:='Validating Input Parameters';

Line 11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

11971: pa_debug.set_curr_function( p_function => 'Validate_Uncheck_MC_Flag',
11972: p_debug_mode => P_PA_DEBUG_MODE );
11973:
11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11976:
11977: -- Checking, if the input parameters are null
11978: pa_debug.g_err_stage:='Validating Input Parameters';
11979: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11978: pa_debug.g_err_stage:='Validating Input Parameters';

11974: pa_debug.g_err_stage:='Entering Validate_Uncheck_MC_Flag';
11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11976:
11977: -- Checking, if the input parameters are null
11978: pa_debug.g_err_stage:='Validating Input Parameters';
11979: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11980: END IF;
11981:
11982: IF p_project_id IS NULL OR p_context IS NULL THEN

Line 11979: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11975: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
11976:
11977: -- Checking, if the input parameters are null
11978: pa_debug.g_err_stage:='Validating Input Parameters';
11979: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11980: END IF;
11981:
11982: IF p_project_id IS NULL OR p_context IS NULL THEN
11983: IF P_PA_debug_mode = 'Y' THEN

Line 11983: IF P_PA_debug_mode = 'Y' THEN

11979: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11980: END IF;
11981:
11982: IF p_project_id IS NULL OR p_context IS NULL THEN
11983: IF P_PA_debug_mode = 'Y' THEN
11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986:
11987: pa_debug.g_err_stage:='p_context = '||p_context;

Line 11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

11980: END IF;
11981:
11982: IF p_project_id IS NULL OR p_context IS NULL THEN
11983: IF P_PA_debug_mode = 'Y' THEN
11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986:
11987: pa_debug.g_err_stage:='p_context = '||p_context;
11988: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

Line 11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11981:
11982: IF p_project_id IS NULL OR p_context IS NULL THEN
11983: IF P_PA_debug_mode = 'Y' THEN
11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986:
11987: pa_debug.g_err_stage:='p_context = '||p_context;
11988: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11989:

Line 11987: pa_debug.g_err_stage:='p_context = '||p_context;

11983: IF P_PA_debug_mode = 'Y' THEN
11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986:
11987: pa_debug.g_err_stage:='p_context = '||p_context;
11988: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11989:
11990: END IF;
11991:

Line 11988: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11984: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
11985: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11986:
11987: pa_debug.g_err_stage:='p_context = '||p_context;
11988: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
11989:
11990: END IF;
11991:
11992: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 11998: IF P_PA_DEBUG_MODE = 'Y' THEN

11994: p_token1 => l_token_name,
11995: p_value1 => l_mod_name);
11996:
11997:
11998: IF P_PA_DEBUG_MODE = 'Y' THEN
11999: pa_debug.g_err_stage:='Invalid Arguments Passed';
12000: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12001: pa_debug.reset_err_stack;
12002: END IF;

Line 11999: pa_debug.g_err_stage:='Invalid Arguments Passed';

11995: p_value1 => l_mod_name);
11996:
11997:
11998: IF P_PA_DEBUG_MODE = 'Y' THEN
11999: pa_debug.g_err_stage:='Invalid Arguments Passed';
12000: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12001: pa_debug.reset_err_stack;
12002: END IF;
12003: RAISE INVALID_ARG_EXC;

Line 12000: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

11996:
11997:
11998: IF P_PA_DEBUG_MODE = 'Y' THEN
11999: pa_debug.g_err_stage:='Invalid Arguments Passed';
12000: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12001: pa_debug.reset_err_stack;
12002: END IF;
12003: RAISE INVALID_ARG_EXC;
12004: ELSE

Line 12001: pa_debug.reset_err_stack;

11997:
11998: IF P_PA_DEBUG_MODE = 'Y' THEN
11999: pa_debug.g_err_stage:='Invalid Arguments Passed';
12000: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12001: pa_debug.reset_err_stack;
12002: END IF;
12003: RAISE INVALID_ARG_EXC;
12004: ELSE
12005: IF p_context = 'FINPLAN' AND p_budget_version_id IS NULL THEN

Line 12012: IF P_PA_DEBUG_MODE = 'Y' THEN

12008: p_token1 => l_token_name,
12009: p_value1 => l_mod_name);
12010:
12011:
12012: IF P_PA_DEBUG_MODE = 'Y' THEN
12013: pa_debug.g_err_stage:='Invalid Arguments Passed';
12014: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12015: pa_debug.reset_err_stack;
12016: END IF;

Line 12013: pa_debug.g_err_stage:='Invalid Arguments Passed';

12009: p_value1 => l_mod_name);
12010:
12011:
12012: IF P_PA_DEBUG_MODE = 'Y' THEN
12013: pa_debug.g_err_stage:='Invalid Arguments Passed';
12014: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12015: pa_debug.reset_err_stack;
12016: END IF;
12017: RAISE INVALID_ARG_EXC;

Line 12014: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12010:
12011:
12012: IF P_PA_DEBUG_MODE = 'Y' THEN
12013: pa_debug.g_err_stage:='Invalid Arguments Passed';
12014: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12015: pa_debug.reset_err_stack;
12016: END IF;
12017: RAISE INVALID_ARG_EXC;
12018: END IF;

Line 12015: pa_debug.reset_err_stack;

12011:
12012: IF P_PA_DEBUG_MODE = 'Y' THEN
12013: pa_debug.g_err_stage:='Invalid Arguments Passed';
12014: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12015: pa_debug.reset_err_stack;
12016: END IF;
12017: RAISE INVALID_ARG_EXC;
12018: END IF;
12019: END IF;

Line 12021: IF P_PA_DEBUG_MODE = 'Y' THEN

12017: RAISE INVALID_ARG_EXC;
12018: END IF;
12019: END IF;
12020:
12021: IF P_PA_DEBUG_MODE = 'Y' THEN
12022: pa_debug.g_err_stage:='Input Parameters validation done';
12023: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12024: END IF;
12025:

Line 12022: pa_debug.g_err_stage:='Input Parameters validation done';

12018: END IF;
12019: END IF;
12020:
12021: IF P_PA_DEBUG_MODE = 'Y' THEN
12022: pa_debug.g_err_stage:='Input Parameters validation done';
12023: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12024: END IF;
12025:
12026: -- Getting the project currency code

Line 12023: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12019: END IF;
12020:
12021: IF P_PA_DEBUG_MODE = 'Y' THEN
12022: pa_debug.g_err_stage:='Input Parameters validation done';
12023: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12024: END IF;
12025:
12026: -- Getting the project currency code
12027: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 12027: IF P_PA_DEBUG_MODE = 'Y' THEN

12023: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12024: END IF;
12025:
12026: -- Getting the project currency code
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Getting the project currency code';
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:='Getting the project currency code';

12024: END IF;
12025:
12026: -- Getting the project currency code
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Getting the project currency code';
12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:
12032: SELECT project_currency_code

Line 12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12025:
12026: -- Getting the project currency code
12027: IF P_PA_DEBUG_MODE = 'Y' THEN
12028: pa_debug.g_err_stage:='Getting the project currency code';
12029: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12030: END IF;
12031:
12032: SELECT project_currency_code
12033: INTO l_currency_code

Line 12037: IF P_PA_DEBUG_MODE = 'Y' THEN

12033: INTO l_currency_code
12034: FROM pa_projects_all
12035: WHERE project_id = p_project_id;
12036:
12037: IF P_PA_DEBUG_MODE = 'Y' THEN
12038: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12040: END IF;
12041:

Line 12038: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;

12034: FROM pa_projects_all
12035: WHERE project_id = p_project_id;
12036:
12037: IF P_PA_DEBUG_MODE = 'Y' THEN
12038: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12040: END IF;
12041:
12042: IF p_context = 'WORKPLAN' THEN

Line 12039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);

12035: WHERE project_id = p_project_id;
12036:
12037: IF P_PA_DEBUG_MODE = 'Y' THEN
12038: pa_debug.g_err_stage:='Project Currency Code: ' || l_currency_code;
12039: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level3);
12040: END IF;
12041:
12042: IF p_context = 'WORKPLAN' THEN
12043: BEGIN

Line 12073: IF P_PA_DEBUG_MODE = 'Y' THEN

12069: is_valid_flag := 'Y';
12070: END;
12071: END IF;
12072:
12073: IF P_PA_DEBUG_MODE = 'Y' THEN
12074: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12076: END IF;
12077:

Line 12074: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;

12070: END;
12071: END IF;
12072:
12073: IF P_PA_DEBUG_MODE = 'Y' THEN
12074: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12076: END IF;
12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN

Line 12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

12071: END IF;
12072:
12073: IF P_PA_DEBUG_MODE = 'Y' THEN
12074: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12076: END IF;
12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN
12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';

Line 12078: IF P_PA_DEBUG_MODE = 'Y' THEN

12074: pa_debug.g_err_stage:='Value returned: ' || is_valid_flag;
12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12076: END IF;
12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN
12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12081: pa_debug.reset_curr_function;
12082: END IF;

Line 12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';

12075: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12076: END IF;
12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN
12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12081: pa_debug.reset_curr_function;
12082: END IF;
12083: RETURN is_valid_flag;

Line 12080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);

12076: END IF;
12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN
12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12081: pa_debug.reset_curr_function;
12082: END IF;
12083: RETURN is_valid_flag;
12084:

Line 12081: pa_debug.reset_curr_function;

12077:
12078: IF P_PA_DEBUG_MODE = 'Y' THEN
12079: pa_debug.g_err_stage:='Leaving Validate_Uncheck_MC_Flag';
12080: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level2);
12081: pa_debug.reset_curr_function;
12082: END IF;
12083: RETURN is_valid_flag;
12084:
12085: EXCEPTION

Line 12089: IF P_PA_DEBUG_MODE = 'Y' THEN

12085: EXCEPTION
12086: WHEN OTHERS THEN
12087: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12088: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12089: IF P_PA_DEBUG_MODE = 'Y' THEN
12090: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12091: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12092: pa_debug.reset_curr_function;
12093: END IF;

Line 12090: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;

12086: WHEN OTHERS THEN
12087: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12088: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12089: IF P_PA_DEBUG_MODE = 'Y' THEN
12090: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12091: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12092: pa_debug.reset_curr_function;
12093: END IF;
12094: RAISE;

Line 12091: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);

12087: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12088: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12089: IF P_PA_DEBUG_MODE = 'Y' THEN
12090: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12091: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12092: pa_debug.reset_curr_function;
12093: END IF;
12094: RAISE;
12095: END Validate_Uncheck_MC_Flag;

Line 12092: pa_debug.reset_curr_function;

12088: ,p_procedure_name => 'Validate_Uncheck_MC_Flag');
12089: IF P_PA_DEBUG_MODE = 'Y' THEN
12090: pa_debug.g_err_stage:='Unexpected Error ' || SQLERRM;
12091: pa_debug.write(l_mod_name,pa_debug.g_err_stage,l_debug_level5);
12092: pa_debug.reset_curr_function;
12093: END IF;
12094: RAISE;
12095: END Validate_Uncheck_MC_Flag;
12096:

Line 12129: IF P_PA_DEBUG_MODE = 'Y' THEN

12125: WHERE project_id = p_project_id;
12126: project_info_rec project_info_cur%ROWTYPE;
12127: BEGIN
12128: -- Set curr function
12129: IF P_PA_DEBUG_MODE = 'Y' THEN
12130: pa_debug.set_curr_function(
12131: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12132: ,p_debug_mode => P_PA_DEBUG_MODE );
12133:

Line 12130: pa_debug.set_curr_function(

12126: project_info_rec project_info_cur%ROWTYPE;
12127: BEGIN
12128: -- Set curr function
12129: IF P_PA_DEBUG_MODE = 'Y' THEN
12130: pa_debug.set_curr_function(
12131: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12132: ,p_debug_mode => P_PA_DEBUG_MODE );
12133:
12134: -- Validate input parameters

Line 12132: ,p_debug_mode => P_PA_DEBUG_MODE );

12128: -- Set curr function
12129: IF P_PA_DEBUG_MODE = 'Y' THEN
12130: pa_debug.set_curr_function(
12131: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12132: ,p_debug_mode => P_PA_DEBUG_MODE );
12133:
12134: -- Validate input parameters
12135: pa_debug.g_err_stage:='Validating input parameters';
12136: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

Line 12135: pa_debug.g_err_stage:='Validating input parameters';

12131: p_function =>'PA_FIN_PLAN_UTILS.Check_delete_txn_cur_ok'
12132: ,p_debug_mode => P_PA_DEBUG_MODE );
12133:
12134: -- Validate input parameters
12135: pa_debug.g_err_stage:='Validating input parameters';
12136: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12137: END IF;
12138:
12139: IF (p_project_id IS NULL) OR

Line 12136: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

12132: ,p_debug_mode => P_PA_DEBUG_MODE );
12133:
12134: -- Validate input parameters
12135: pa_debug.g_err_stage:='Validating input parameters';
12136: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12137: END IF;
12138:
12139: IF (p_project_id IS NULL) OR
12140: (p_context IS NULL) OR

Line 12145: IF P_PA_DEBUG_MODE = 'Y' THEN

12141: (p_context = 'FINPLAN' AND nvl(p_fin_plan_version_id, -99) = -99) OR
12142: (p_txn_currency_code IS NULL)
12143: THEN
12144:
12145: IF P_PA_DEBUG_MODE = 'Y' THEN
12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;

Line 12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

12142: (p_txn_currency_code IS NULL)
12143: THEN
12144:
12145: IF P_PA_DEBUG_MODE = 'Y' THEN
12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12143: THEN
12144:
12145: IF P_PA_DEBUG_MODE = 'Y' THEN
12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12151:

Line 12149: pa_debug.g_err_stage:='p_context = '||p_context;

12145: IF P_PA_DEBUG_MODE = 'Y' THEN
12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12151:
12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12146: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12147: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12151:
12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;
12153: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12154:

Line 12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_id;

12148:
12149: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12151:
12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_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_txn_currency_code = '||p_txn_currency_code;
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: pa_debug.g_err_stage:='p_context = '||p_context;
12150: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12151:
12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_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_txn_currency_code = '||p_txn_currency_code;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157: END IF;

Line 12155: pa_debug.g_err_stage:='p_txn_currency_code = '||p_txn_currency_code;

12151:
12152: pa_debug.g_err_stage:='p_fin_plan_version_id = '||p_fin_plan_version_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_txn_currency_code = '||p_txn_currency_code;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157: END IF;
12158:
12159: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

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_fin_plan_version_id = '||p_fin_plan_version_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_txn_currency_code = '||p_txn_currency_code;
12156: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12157: END IF;
12158:
12159: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12160: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12222: IF P_PA_DEBUG_MODE = 'Y' THEN

12218: END IF;
12219:
12220: END IF; -- p_context
12221:
12222: IF P_PA_DEBUG_MODE = 'Y' THEN
12223: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12224: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12225:
12226: -- reset curr function

Line 12223: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';

12219:
12220: END IF; -- p_context
12221:
12222: IF P_PA_DEBUG_MODE = 'Y' THEN
12223: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12224: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12225:
12226: -- reset curr function
12227: pa_debug.reset_curr_function();

Line 12224: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);

12220: END IF; -- p_context
12221:
12222: IF P_PA_DEBUG_MODE = 'Y' THEN
12223: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12224: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12225:
12226: -- reset curr function
12227: pa_debug.reset_curr_function();
12228: END IF;

Line 12227: pa_debug.reset_curr_function();

12223: pa_debug.g_err_stage:='Exiting Check_delete_txn_cur_ok';
12224: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,3);
12225:
12226: -- reset curr function
12227: pa_debug.reset_curr_function();
12228: END IF;
12229: RETURN l_delete_ok_flag;
12230:
12231: EXCEPTION

Line 12237: IF P_PA_DEBUG_MODE = 'Y' THEN

12233:
12234: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12235: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12236:
12237: IF P_PA_DEBUG_MODE = 'Y' THEN
12238: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12239: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12240:
12241: -- reset curr function

Line 12238: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

12234: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12235: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12236:
12237: IF P_PA_DEBUG_MODE = 'Y' THEN
12238: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12239: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12240:
12241: -- reset curr function
12242: pa_debug.Reset_Curr_Function();

Line 12239: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);

12235: ,p_procedure_name => 'Check_delete_txn_cur_ok');
12236:
12237: IF P_PA_DEBUG_MODE = 'Y' THEN
12238: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12239: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12240:
12241: -- reset curr function
12242: pa_debug.Reset_Curr_Function();
12243: END IF;

Line 12242: pa_debug.Reset_Curr_Function();

12238: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12239: pa_debug.write('Check_delete_txn_cur_ok: ' || l_module_name,pa_debug.g_err_stage,5);
12240:
12241: -- reset curr function
12242: pa_debug.Reset_Curr_Function();
12243: END IF;
12244: RAISE;
12245: END Check_delete_txn_cur_ok;
12246:

Line 12259: IF P_PA_DEBUG_MODE = 'Y' THEN

12255: IS
12256: l_amounts_exist_flag VARCHAR2(1) := 'N';
12257: BEGIN
12258: -- Set curr function
12259: IF P_PA_DEBUG_MODE = 'Y' THEN
12260: pa_debug.set_curr_function(
12261: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12262: ,p_debug_mode => P_PA_DEBUG_MODE );
12263:

Line 12260: pa_debug.set_curr_function(

12256: l_amounts_exist_flag VARCHAR2(1) := 'N';
12257: BEGIN
12258: -- Set curr function
12259: IF P_PA_DEBUG_MODE = 'Y' THEN
12260: pa_debug.set_curr_function(
12261: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12262: ,p_debug_mode => P_PA_DEBUG_MODE );
12263:
12264: -- Validate input parameters

Line 12262: ,p_debug_mode => P_PA_DEBUG_MODE );

12258: -- Set curr function
12259: IF P_PA_DEBUG_MODE = 'Y' THEN
12260: pa_debug.set_curr_function(
12261: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_wp'
12262: ,p_debug_mode => P_PA_DEBUG_MODE );
12263:
12264: -- Validate input parameters
12265:
12266: pa_debug.g_err_stage:='Validating input parameters';

Line 12266: pa_debug.g_err_stage:='Validating input parameters';

12262: ,p_debug_mode => P_PA_DEBUG_MODE );
12263:
12264: -- Validate input parameters
12265:
12266: pa_debug.g_err_stage:='Validating input parameters';
12267: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12268: END IF;
12269:
12270: IF (p_project_id IS NULL)

Line 12267: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);

12263:
12264: -- Validate input parameters
12265:
12266: pa_debug.g_err_stage:='Validating input parameters';
12267: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12268: END IF;
12269:
12270: IF (p_project_id IS NULL)
12271: THEN

Line 12273: IF P_PA_DEBUG_MODE = 'Y' THEN

12269:
12270: IF (p_project_id IS NULL)
12271: THEN
12272:
12273: IF P_PA_DEBUG_MODE = 'Y' THEN
12274: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12275: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12276: END IF;
12277:

Line 12274: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

12270: IF (p_project_id IS NULL)
12271: THEN
12272:
12273: IF P_PA_DEBUG_MODE = 'Y' THEN
12274: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12275: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12276: END IF;
12277:
12278: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12275: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);

12271: THEN
12272:
12273: IF P_PA_DEBUG_MODE = 'Y' THEN
12274: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12275: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12276: END IF;
12277:
12278: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12279: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12303: IF P_PA_DEBUG_MODE = 'Y' THEN

12299: l_amounts_exist_flag := 'N';
12300: End;
12301:
12302:
12303: IF P_PA_DEBUG_MODE = 'Y' THEN
12304: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12305: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12306:
12307: -- reset curr function

Line 12304: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';

12300: End;
12301:
12302:
12303: IF P_PA_DEBUG_MODE = 'Y' THEN
12304: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12305: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12306:
12307: -- reset curr function
12308: pa_debug.reset_curr_function();

Line 12305: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);

12301:
12302:
12303: IF P_PA_DEBUG_MODE = 'Y' THEN
12304: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12305: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12306:
12307: -- reset curr function
12308: pa_debug.reset_curr_function();
12309: END IF;

Line 12308: pa_debug.reset_curr_function();

12304: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_wp';
12305: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,3);
12306:
12307: -- reset curr function
12308: pa_debug.reset_curr_function();
12309: END IF;
12310: RETURN l_amounts_exist_flag;
12311:
12312: EXCEPTION

Line 12318: IF P_PA_DEBUG_MODE = 'Y' THEN

12314:
12315: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12316: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12317:
12318: IF P_PA_DEBUG_MODE = 'Y' THEN
12319: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12320: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12321:
12322: -- reset curr function

Line 12319: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

12315: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12316: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12317:
12318: IF P_PA_DEBUG_MODE = 'Y' THEN
12319: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12320: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12321:
12322: -- reset curr function
12323: pa_debug.Reset_Curr_Function();

Line 12320: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);

12316: ,p_procedure_name => 'check_if_amounts_exist_for_wp');
12317:
12318: IF P_PA_DEBUG_MODE = 'Y' THEN
12319: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12320: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12321:
12322: -- reset curr function
12323: pa_debug.Reset_Curr_Function();
12324: END IF;

Line 12323: pa_debug.Reset_Curr_Function();

12319: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12320: pa_debug.write('check_if_amounts_exist_for_wp: ' || l_module_name,pa_debug.g_err_stage,5);
12321:
12322: -- reset curr function
12323: pa_debug.Reset_Curr_Function();
12324: END IF;
12325: RAISE;
12326: END check_if_amounts_exist_for_wp;
12327:

Line 12340: IF P_PA_DEBUG_MODE = 'Y' THEN

12336: IS
12337: l_task_assignments_exist_flag VARCHAR2(1);
12338: BEGIN
12339: -- Set curr function
12340: IF P_PA_DEBUG_MODE = 'Y' THEN
12341: pa_debug.set_curr_function(
12342: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12343: ,p_debug_mode => P_PA_DEBUG_MODE );
12344:

Line 12341: pa_debug.set_curr_function(

12337: l_task_assignments_exist_flag VARCHAR2(1);
12338: BEGIN
12339: -- Set curr function
12340: IF P_PA_DEBUG_MODE = 'Y' THEN
12341: pa_debug.set_curr_function(
12342: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12343: ,p_debug_mode => P_PA_DEBUG_MODE );
12344:
12345: -- Validate input parameters

Line 12343: ,p_debug_mode => P_PA_DEBUG_MODE );

12339: -- Set curr function
12340: IF P_PA_DEBUG_MODE = 'Y' THEN
12341: pa_debug.set_curr_function(
12342: p_function =>'PA_FIN_PLAN_UTILS.check_if_task_asgmts_exist'
12343: ,p_debug_mode => P_PA_DEBUG_MODE );
12344:
12345: -- Validate input parameters
12346:
12347: pa_debug.g_err_stage:='Validating input parameters';

Line 12347: pa_debug.g_err_stage:='Validating input parameters';

12343: ,p_debug_mode => P_PA_DEBUG_MODE );
12344:
12345: -- Validate input parameters
12346:
12347: pa_debug.g_err_stage:='Validating input parameters';
12348: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12349: END IF;
12350:
12351: IF (p_project_id IS NULL)

Line 12348: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);

12344:
12345: -- Validate input parameters
12346:
12347: pa_debug.g_err_stage:='Validating input parameters';
12348: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12349: END IF;
12350:
12351: IF (p_project_id IS NULL)
12352: THEN

Line 12354: IF P_PA_DEBUG_MODE = 'Y' THEN

12350:
12351: IF (p_project_id IS NULL)
12352: THEN
12353:
12354: IF P_PA_DEBUG_MODE = 'Y' THEN
12355: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12356: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12357: END IF;
12358:

Line 12355: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

12351: IF (p_project_id IS NULL)
12352: THEN
12353:
12354: IF P_PA_DEBUG_MODE = 'Y' THEN
12355: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12356: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12357: END IF;
12358:
12359: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12356: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);

12352: THEN
12353:
12354: IF P_PA_DEBUG_MODE = 'Y' THEN
12355: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12356: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12357: END IF;
12358:
12359: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12360: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12385: IF P_PA_DEBUG_MODE = 'Y' THEN

12381: l_task_assignments_exist_flag := 'N';
12382: End;
12383:
12384:
12385: IF P_PA_DEBUG_MODE = 'Y' THEN
12386: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12387: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12388:
12389: -- reset curr function

Line 12386: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';

12382: End;
12383:
12384:
12385: IF P_PA_DEBUG_MODE = 'Y' THEN
12386: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12387: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12388:
12389: -- reset curr function
12390: pa_debug.reset_curr_function();

Line 12387: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);

12383:
12384:
12385: IF P_PA_DEBUG_MODE = 'Y' THEN
12386: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12387: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12388:
12389: -- reset curr function
12390: pa_debug.reset_curr_function();
12391: END IF;

Line 12390: pa_debug.reset_curr_function();

12386: pa_debug.g_err_stage:='Exiting check_if_task_asgmts_exist';
12387: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,3);
12388:
12389: -- reset curr function
12390: pa_debug.reset_curr_function();
12391: END IF;
12392: RETURN l_task_assignments_exist_flag;
12393:
12394: EXCEPTION

Line 12400: IF P_PA_DEBUG_MODE = 'Y' THEN

12396:
12397: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12398: ,p_procedure_name => 'check_if_task_asgmts_exist');
12399:
12400: IF P_PA_DEBUG_MODE = 'Y' THEN
12401: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12402: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12403:
12404: -- reset curr function

Line 12401: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

12397: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12398: ,p_procedure_name => 'check_if_task_asgmts_exist');
12399:
12400: IF P_PA_DEBUG_MODE = 'Y' THEN
12401: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12402: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12403:
12404: -- reset curr function
12405: pa_debug.Reset_Curr_Function();

Line 12402: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);

12398: ,p_procedure_name => 'check_if_task_asgmts_exist');
12399:
12400: IF P_PA_DEBUG_MODE = 'Y' THEN
12401: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12402: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12403:
12404: -- reset curr function
12405: pa_debug.Reset_Curr_Function();
12406: END IF;

Line 12405: pa_debug.Reset_Curr_Function();

12401: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12402: pa_debug.write('check_if_task_asgmts_exist: ' || l_module_name,pa_debug.g_err_stage,5);
12403:
12404: -- reset curr function
12405: pa_debug.Reset_Curr_Function();
12406: END IF;
12407: RAISE;
12408: END check_if_task_asgmts_exist;
12409:

Line 12424: IF P_PA_DEBUG_MODE = 'Y' THEN

12420: IS
12421: l_amounts_exist_flag VARCHAR2(1) := 'N';
12422: BEGIN
12423: -- Set curr function
12424: IF P_PA_DEBUG_MODE = 'Y' THEN
12425: pa_debug.set_curr_function(
12426: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12427: ,p_debug_mode => P_PA_DEBUG_MODE );
12428:

Line 12425: pa_debug.set_curr_function(

12421: l_amounts_exist_flag VARCHAR2(1) := 'N';
12422: BEGIN
12423: -- Set curr function
12424: IF P_PA_DEBUG_MODE = 'Y' THEN
12425: pa_debug.set_curr_function(
12426: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12427: ,p_debug_mode => P_PA_DEBUG_MODE );
12428:
12429: -- Validate input parameters

Line 12427: ,p_debug_mode => P_PA_DEBUG_MODE );

12423: -- Set curr function
12424: IF P_PA_DEBUG_MODE = 'Y' THEN
12425: pa_debug.set_curr_function(
12426: p_function =>'PA_FIN_PLAN_UTILS.check_if_amounts_exist_for_fp'
12427: ,p_debug_mode => P_PA_DEBUG_MODE );
12428:
12429: -- Validate input parameters
12430:
12431: pa_debug.g_err_stage:='Validating input parameters';

Line 12431: pa_debug.g_err_stage:='Validating input parameters';

12427: ,p_debug_mode => P_PA_DEBUG_MODE );
12428:
12429: -- Validate input parameters
12430:
12431: pa_debug.g_err_stage:='Validating input parameters';
12432: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12433: END IF;
12434:
12435: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)

Line 12432: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);

12428:
12429: -- Validate input parameters
12430:
12431: pa_debug.g_err_stage:='Validating input parameters';
12432: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12433: END IF;
12434:
12435: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12436: THEN

Line 12438: IF P_PA_DEBUG_MODE = 'Y' THEN

12434:
12435: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12436: THEN
12437:
12438: IF P_PA_DEBUG_MODE = 'Y' THEN
12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12441:
12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;

Line 12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;

12435: IF (p_project_id IS NULL) OR (p_fin_plan_type_id IS NULL)
12436: THEN
12437:
12438: IF P_PA_DEBUG_MODE = 'Y' THEN
12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12441:
12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12443: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

Line 12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12436: THEN
12437:
12438: IF P_PA_DEBUG_MODE = 'Y' THEN
12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12441:
12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12443: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12444: END IF;

Line 12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;

12438: IF P_PA_DEBUG_MODE = 'Y' THEN
12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12441:
12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12443: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12444: END IF;
12445:
12446: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',

Line 12443: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12439: pa_debug.g_err_stage:='p_project_id = '||p_project_id;
12440: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12441:
12442: pa_debug.g_err_stage:='p_fin_plan_type_id = '||p_fin_plan_type_id;
12443: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12444: END IF;
12445:
12446: PA_UTILS.ADD_MESSAGE( p_app_short_name => 'PA',
12447: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 12471: IF P_PA_DEBUG_MODE = 'Y' THEN

12467: l_amounts_exist_flag := 'N';
12468: End;
12469:
12470:
12471: IF P_PA_DEBUG_MODE = 'Y' THEN
12472: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12473: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12474:
12475: -- reset curr function

Line 12472: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';

12468: End;
12469:
12470:
12471: IF P_PA_DEBUG_MODE = 'Y' THEN
12472: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12473: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12474:
12475: -- reset curr function
12476: pa_debug.reset_curr_function();

Line 12473: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);

12469:
12470:
12471: IF P_PA_DEBUG_MODE = 'Y' THEN
12472: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12473: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12474:
12475: -- reset curr function
12476: pa_debug.reset_curr_function();
12477: END IF;

Line 12476: pa_debug.reset_curr_function();

12472: pa_debug.g_err_stage:='Exiting check_if_amounts_exist_for_fp';
12473: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,3);
12474:
12475: -- reset curr function
12476: pa_debug.reset_curr_function();
12477: END IF;
12478: RETURN l_amounts_exist_flag;
12479:
12480: EXCEPTION

Line 12486: IF P_PA_DEBUG_MODE = 'Y' THEN

12482:
12483: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12484: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12485:
12486: IF P_PA_DEBUG_MODE = 'Y' THEN
12487: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12488: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12489:
12490: -- reset curr function

Line 12487: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

12483: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
12484: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12485:
12486: IF P_PA_DEBUG_MODE = 'Y' THEN
12487: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12488: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12489:
12490: -- reset curr function
12491: pa_debug.Reset_Curr_Function();

Line 12488: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);

12484: ,p_procedure_name => 'check_if_amounts_exist_for_fp');
12485:
12486: IF P_PA_DEBUG_MODE = 'Y' THEN
12487: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12488: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12489:
12490: -- reset curr function
12491: pa_debug.Reset_Curr_Function();
12492: END IF;

Line 12491: pa_debug.Reset_Curr_Function();

12487: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12488: pa_debug.write('check_if_amounts_exist_for_fp: ' || l_module_name,pa_debug.g_err_stage,5);
12489:
12490: -- reset curr function
12491: pa_debug.Reset_Curr_Function();
12492: END IF;
12493: RAISE;
12494: END check_if_amounts_exist_for_fp;
12495:

Line 12547: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

12543: l_targ_ci_request_id pa_budget_versions.request_id%TYPE;
12544:
12545: BEGIN
12546:
12547: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
12548:
12549: x_msg_count := 0;
12550: x_return_status := FND_API.G_RET_STS_SUCCESS;
12551:

Line 12553: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,

12549: x_msg_count := 0;
12550: x_return_status := FND_API.G_RET_STS_SUCCESS;
12551:
12552: IF l_debug_mode = 'Y' THEN
12553: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
12554: p_debug_mode => l_debug_mode );
12555: END IF;
12556: IF l_debug_mode = 'Y' THEN
12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

Line 12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

12553: PA_DEBUG.Set_Curr_Function( p_function => l_module_name,
12554: p_debug_mode => l_debug_mode );
12555: END IF;
12556: IF l_debug_mode = 'Y' THEN
12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12558: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12559: pa_debug.g_err_stage := 'Validating input parameters';
12560: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12561: END IF;

Line 12558: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12554: p_debug_mode => l_debug_mode );
12555: END IF;
12556: IF l_debug_mode = 'Y' THEN
12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12558: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12559: pa_debug.g_err_stage := 'Validating input parameters';
12560: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12561: END IF;
12562:

Line 12559: pa_debug.g_err_stage := 'Validating input parameters';

12555: END IF;
12556: IF l_debug_mode = 'Y' THEN
12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12558: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12559: pa_debug.g_err_stage := 'Validating input parameters';
12560: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12561: END IF;
12562:
12563: IF p_calling_context = 'BUDGET' THEN

Line 12560: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12556: IF l_debug_mode = 'Y' THEN
12557: pa_debug.g_err_stage := 'Entering into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12558: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12559: pa_debug.g_err_stage := 'Validating input parameters';
12560: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12561: END IF;
12562:
12563: IF p_calling_context = 'BUDGET' THEN
12564: IF p_budget_version_id IS NULL AND

Line 12568: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;

12564: IF p_budget_version_id IS NULL AND
12565: p_plan_processing_code IS NULL THEN
12566:
12567: IF l_debug_mode = 'Y' THEN
12568: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12569: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12570:
12571: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12572: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

Line 12569: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12565: p_plan_processing_code IS NULL THEN
12566:
12567: IF l_debug_mode = 'Y' THEN
12568: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12569: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12570:
12571: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12572: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12573: END IF;

Line 12571: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;

12567: IF l_debug_mode = 'Y' THEN
12568: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12569: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12570:
12571: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12572: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12573: END IF;
12574:
12575: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 12572: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12568: pa_debug.g_err_stage:='p_budget_version_id: '|| p_budget_version_id ;
12569: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12570:
12571: pa_debug.g_err_stage:='p_plan_processing_code: '|| p_plan_processing_code ;
12572: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12573: END IF;
12574:
12575: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
12576: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 12585: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;

12581: IF p_source_ci_id_tbl.COUNT = 0 AND
12582: p_target_ci_id IS NULL THEN
12583:
12584: IF l_debug_mode = 'Y' THEN
12585: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12586: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12587:
12588: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12589: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

Line 12586: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12582: p_target_ci_id IS NULL THEN
12583:
12584: IF l_debug_mode = 'Y' THEN
12585: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12586: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12587:
12588: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12589: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12590: END IF;

Line 12588: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;

12584: IF l_debug_mode = 'Y' THEN
12585: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12586: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12587:
12588: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12589: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12590: END IF;
12591:
12592: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

Line 12589: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12585: pa_debug.g_err_stage:='p_source_ci_id_tbl.COUNT: '|| p_source_ci_id_tbl.COUNT ;
12586: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12587:
12588: pa_debug.g_err_stage:='p_target_ci_id: '|| p_target_ci_id ;
12589: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12590: END IF;
12591:
12592: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
12593: p_msg_name => 'PA_FP_INV_PARAM_PASSED');

Line 12836: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';

12832: END;
12833: END IF; -- p_calling_context
12834:
12835: IF l_debug_mode = 'Y' THEN
12836: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12837: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12838:
12839: pa_debug.reset_curr_function();
12840: END IF;

Line 12837: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);

12833: END IF; -- p_calling_context
12834:
12835: IF l_debug_mode = 'Y' THEN
12836: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12837: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12838:
12839: pa_debug.reset_curr_function();
12840: END IF;
12841: EXCEPTION

Line 12839: pa_debug.reset_curr_function();

12835: IF l_debug_mode = 'Y' THEN
12836: pa_debug.g_err_stage := 'Leaving into pa.plsql.pa_fin_plan_utils.return_and_vldt_plan_prc_code';
12837: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level3);
12838:
12839: pa_debug.reset_curr_function();
12840: END IF;
12841: EXCEPTION
12842:
12843: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 12862: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';

12858: END IF;
12859: x_return_status := FND_API.G_RET_STS_ERROR;
12860:
12861: IF l_debug_mode = 'Y' THEN
12862: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12863: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12864:
12865: -- reset curr function
12866: pa_debug.reset_curr_function();

Line 12863: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12859: x_return_status := FND_API.G_RET_STS_ERROR;
12860:
12861: IF l_debug_mode = 'Y' THEN
12862: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12863: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12864:
12865: -- reset curr function
12866: pa_debug.reset_curr_function();
12867: END IF;

Line 12866: pa_debug.reset_curr_function();

12862: pa_debug.g_err_stage:='Invalid Arguments Passed Or called api raised an error';
12863: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12864:
12865: -- reset curr function
12866: pa_debug.reset_curr_function();
12867: END IF;
12868: RETURN;
12869: WHEN OTHERS THEN
12870: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;

Line 12878: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

12874: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'pa_fin_plan_utils'
12875: ,p_procedure_name => 'return_and_vldt_plan_prc_code');
12876:
12877: IF l_debug_mode = 'Y' THEN
12878: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12879: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12880: -- reset curr function
12881: pa_debug.Reset_Curr_Function();
12882: END IF;

Line 12879: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);

12875: ,p_procedure_name => 'return_and_vldt_plan_prc_code');
12876:
12877: IF l_debug_mode = 'Y' THEN
12878: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12879: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12880: -- reset curr function
12881: pa_debug.Reset_Curr_Function();
12882: END IF;
12883: RAISE;

Line 12881: pa_debug.Reset_Curr_Function();

12877: IF l_debug_mode = 'Y' THEN
12878: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
12879: pa_debug.write( l_module_name,pa_debug.g_err_stage,l_debug_level5);
12880: -- reset curr function
12881: pa_debug.Reset_Curr_Function();
12882: END IF;
12883: RAISE;
12884:
12885: END return_and_vldt_plan_prc_code;

Line 12900: IF P_PA_DEBUG_MODE = 'Y' THEN

12896: l_exists VARCHAR2(1);
12897:
12898: BEGIN
12899:
12900: IF P_PA_DEBUG_MODE = 'Y' THEN
12901: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');
12902: END IF;
12903:
12904: /* Changes for FP.M, Tracking Bug No - 3619687. Making a check if the plan version/type is

Line 12901: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');

12897:
12898: BEGIN
12899:
12900: IF P_PA_DEBUG_MODE = 'Y' THEN
12901: pa_debug.init_err_stack ('pa_fin_plan_utils.Is_source_for_generation_options');
12902: END IF;
12903:
12904: /* Changes for FP.M, Tracking Bug No - 3619687. Making a check if the plan version/type is
12905: a source of generation fot other plan types*/

Line 13025: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

13021: l_project_id pa_projects_all.project_id%TYPE;
13022:
13023:
13024: BEGIN
13025: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13026:
13027: x_msg_count := 0;
13028: x_return_status := FND_API.G_RET_STS_SUCCESS;
13029:

Line 13031: PA_DEBUG.Set_Curr_Function(p_function => l_module_name,

13027: x_msg_count := 0;
13028: x_return_status := FND_API.G_RET_STS_SUCCESS;
13029:
13030: IF l_debug_mode = 'Y' THEN
13031: PA_DEBUG.Set_Curr_Function(p_function => l_module_name,
13032: p_debug_mode => l_debug_mode );
13033: END IF;
13034:
13035: IF l_debug_mode = 'Y' THEN

Line 13036: pa_debug.g_err_stage:='Entering return_struct_ver_info';

13032: p_debug_mode => l_debug_mode );
13033: END IF;
13034:
13035: IF l_debug_mode = 'Y' THEN
13036: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13037: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13038: pa_debug.g_err_stage:='Validating input parameters';
13039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13040: END IF;

Line 13037: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

13033: END IF;
13034:
13035: IF l_debug_mode = 'Y' THEN
13036: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13037: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13038: pa_debug.g_err_stage:='Validating input parameters';
13039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13040: END IF;
13041:

Line 13038: pa_debug.g_err_stage:='Validating input parameters';

13034:
13035: IF l_debug_mode = 'Y' THEN
13036: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13037: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13038: pa_debug.g_err_stage:='Validating input parameters';
13039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13040: END IF;
13041:
13042: IF p_budget_version_id IS NULL THEN

Line 13039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

13035: IF l_debug_mode = 'Y' THEN
13036: pa_debug.g_err_stage:='Entering return_struct_ver_info';
13037: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13038: pa_debug.g_err_stage:='Validating input parameters';
13039: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13040: END IF;
13041:
13042: IF p_budget_version_id IS NULL THEN
13043: IF l_debug_mode = 'Y' THEN

Line 13044: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';

13040: END IF;
13041:
13042: IF p_budget_version_id IS NULL THEN
13043: IF l_debug_mode = 'Y' THEN
13044: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';
13045: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13046: END IF;
13047: pa_utils.add_message(p_app_short_name => 'PA',
13048: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 13045: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13041:
13042: IF p_budget_version_id IS NULL THEN
13043: IF l_debug_mode = 'Y' THEN
13044: pa_debug.g_err_stage := 'p_budget_version_id is passed as null';
13045: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13046: END IF;
13047: pa_utils.add_message(p_app_short_name => 'PA',
13048: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
13049: p_token1 => 'PROCEDURENAME',

Line 13056: pa_debug.g_err_stage := 'Deriving project_id';

13052: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13053: END IF;
13054:
13055: IF l_debug_mode = 'Y' THEN
13056: pa_debug.g_err_stage := 'Deriving project_id';
13057: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13058: END IF;
13059:
13060: BEGIN

Line 13057: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13053: END IF;
13054:
13055: IF l_debug_mode = 'Y' THEN
13056: pa_debug.g_err_stage := 'Deriving project_id';
13057: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13058: END IF;
13059:
13060: BEGIN
13061: SELECT project_id

Line 13068: pa_debug.g_err_stage := 'Invalid budget_version_id passed';

13064: WHERE budget_version_id = p_budget_version_id;
13065: EXCEPTION
13066: WHEN NO_DATA_FOUND THEN
13067: IF l_debug_mode = 'Y' THEN
13068: pa_debug.g_err_stage := 'Invalid budget_version_id passed';
13069: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13070: END IF;
13071: pa_utils.add_message(p_app_short_name => 'PA',
13072: p_msg_name => 'PA_FP_INV_PARAM_PASSED',

Line 13069: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13065: EXCEPTION
13066: WHEN NO_DATA_FOUND THEN
13067: IF l_debug_mode = 'Y' THEN
13068: pa_debug.g_err_stage := 'Invalid budget_version_id passed';
13069: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13070: END IF;
13071: pa_utils.add_message(p_app_short_name => 'PA',
13072: p_msg_name => 'PA_FP_INV_PARAM_PASSED',
13073: p_token1 => 'PROCEDURENAME',

Line 13080: pa_debug.g_err_stage := 'Getting structure version id';

13076: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13077: END;
13078:
13079: IF l_debug_mode = 'Y' THEN
13080: pa_debug.g_err_stage := 'Getting structure version id';
13081: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13082: END IF;
13083:
13084: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);

Line 13081: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13077: END;
13078:
13079: IF l_debug_mode = 'Y' THEN
13080: pa_debug.g_err_stage := 'Getting structure version id';
13081: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13082: END IF;
13083:
13084: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);
13085: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);

Line 13088: pa_debug.g_err_stage := 'Values returned->';

13084: x_struct_version_id := pa_planning_element_utils.get_fin_struct_id(l_project_id,p_budget_version_id);
13085: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);
13086:
13087: IF l_debug_mode = 'Y' THEN
13088: pa_debug.g_err_stage := 'Values returned->';
13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;

Line 13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13085: x_struct_status_flag := PA_PROJECT_STRUCTURE_UTILS.Check_Struc_Ver_Published(l_project_id, x_struct_version_id);
13086:
13087: IF l_debug_mode = 'Y' THEN
13088: pa_debug.g_err_stage := 'Values returned->';
13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

Line 13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;

13086:
13087: IF l_debug_mode = 'Y' THEN
13088: pa_debug.g_err_stage := 'Values returned->';
13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13094: END IF;

Line 13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13087: IF l_debug_mode = 'Y' THEN
13088: pa_debug.g_err_stage := 'Values returned->';
13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13094: END IF;
13095:

Line 13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;

13088: pa_debug.g_err_stage := 'Values returned->';
13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13094: END IF;
13095:
13096: IF l_debug_mode = 'Y' THEN

Line 13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);

13089: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13090: pa_debug.g_err_stage := 'x_struct_version_id-> ' || x_struct_version_id;
13091: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13092: pa_debug.g_err_stage := 'x_struct_status_flag-> ' || x_struct_status_flag;
13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13094: END IF;
13095:
13096: IF l_debug_mode = 'Y' THEN
13097: pa_debug.g_err_stage:='Leaving return_struct_ver_info';

Line 13097: pa_debug.g_err_stage:='Leaving return_struct_ver_info';

13093: pa_debug.write(l_module_name, pa_debug.g_err_stage, l_debug_level3);
13094: END IF;
13095:
13096: IF l_debug_mode = 'Y' THEN
13097: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13098: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13099: pa_debug.reset_curr_function;
13100: END IF;
13101:

Line 13098: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);

13094: END IF;
13095:
13096: IF l_debug_mode = 'Y' THEN
13097: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13098: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13099: pa_debug.reset_curr_function;
13100: END IF;
13101:
13102: EXCEPTION

Line 13099: pa_debug.reset_curr_function;

13095:
13096: IF l_debug_mode = 'Y' THEN
13097: pa_debug.g_err_stage:='Leaving return_struct_ver_info';
13098: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
13099: pa_debug.reset_curr_function;
13100: END IF;
13101:
13102: EXCEPTION
13103: WHEN PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc THEN

Line 13115: pa_debug.reset_curr_function;

13111: ,p_data => l_data
13112: ,p_msg_index_out => l_msg_index_out);
13113: END IF;
13114: IF l_debug_mode = 'Y' THEN
13115: pa_debug.reset_curr_function;
13116: END IF;
13117: WHEN OTHERS THEN
13118: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPWAUB'
13119: ,p_procedure_name => 'return_struct_ver_info');

Line 13122: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

13118: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PAFPWAUB'
13119: ,p_procedure_name => 'return_struct_ver_info');
13120:
13121: IF l_debug_mode = 'Y' THEN
13122: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13123: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13124: END IF;
13125: IF l_debug_mode = 'Y' THEN
13126: pa_debug.reset_curr_function;

Line 13123: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);

13119: ,p_procedure_name => 'return_struct_ver_info');
13120:
13121: IF l_debug_mode = 'Y' THEN
13122: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13123: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13124: END IF;
13125: IF l_debug_mode = 'Y' THEN
13126: pa_debug.reset_curr_function;
13127: END IF;

Line 13126: pa_debug.reset_curr_function;

13122: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13123: pa_debug.write(l_module_name,pa_debug.g_err_stage,5);
13124: END IF;
13125: IF l_debug_mode = 'Y' THEN
13126: pa_debug.reset_curr_function;
13127: END IF;
13128: RAISE;
13129: END return_struct_ver_info;
13130:

Line 13246: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');

13242: l_approved_fin_plan_type_id pa_fin_plan_types_b.fin_plan_type_id%TYPE;
13243:
13244: BEGIN
13245:
13246: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13247: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13248: l_debug_mode := NVL(l_debug_mode, 'Y');
13249: IF P_PA_DEBUG_MODE = 'Y' THEN
13250: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);

Line 13247: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);

13243:
13244: BEGIN
13245:
13246: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13247: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13248: l_debug_mode := NVL(l_debug_mode, 'Y');
13249: IF P_PA_DEBUG_MODE = 'Y' THEN
13250: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13251: END IF;

Line 13249: IF P_PA_DEBUG_MODE = 'Y' THEN

13245:
13246: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13247: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13248: l_debug_mode := NVL(l_debug_mode, 'Y');
13249: IF P_PA_DEBUG_MODE = 'Y' THEN
13250: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13251: END IF;
13252:
13253:

Line 13250: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);

13246: pa_debug.set_err_stack('PA_FIN_PLAN_UTILS.create_draft_budget_wrp');
13247: fnd_profile.get('PA_DEBUG_MODE',l_debug_mode);
13248: l_debug_mode := NVL(l_debug_mode, 'Y');
13249: IF P_PA_DEBUG_MODE = 'Y' THEN
13250: pa_debug.set_process('create_draft_budget_wrp: ' || 'PLSQL','LOG',l_debug_mode);
13251: END IF;
13252:
13253:
13254:

Line 13267: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;

13263:
13264: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
13265:
13266: IF l_debug_mode = 'Y' THEN
13267: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;
13268: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);
13269: END IF;
13270: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13271:

Line 13268: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);

13264: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
13265:
13266: IF l_debug_mode = 'Y' THEN
13267: pa_debug.g_err_stage := 'Get_Appr_Cost_Plan_Type_Info API returned error' ;
13268: pa_debug.write(l_module_name,pa_debug.g_err_stage,l_debug_level5);
13269: END IF;
13270: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
13271:
13272: -- The Get_Appr_Cost_Plan_Type_Info api got executed successfully.

Line 13454: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';

13450: RAISE FND_API.G_EXC_ERROR;
13451: END IF;
13452: END IF;
13453:
13454: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13455: IF P_PA_DEBUG_MODE = 'Y' THEN
13456: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13457: END IF;
13458: pa_debug.reset_err_stack;

Line 13455: IF P_PA_DEBUG_MODE = 'Y' THEN

13451: END IF;
13452: END IF;
13453:
13454: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13455: IF P_PA_DEBUG_MODE = 'Y' THEN
13456: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13457: END IF;
13458: pa_debug.reset_err_stack;
13459:

Line 13456: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);

13452: END IF;
13453:
13454: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13455: IF P_PA_DEBUG_MODE = 'Y' THEN
13456: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13457: END IF;
13458: pa_debug.reset_err_stack;
13459:
13460: EXCEPTION

Line 13458: pa_debug.reset_err_stack;

13454: pa_debug.g_err_stage:='Exiting create_draft_budget_wrp';
13455: IF P_PA_DEBUG_MODE = 'Y' THEN
13456: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,3);
13457: END IF;
13458: pa_debug.reset_err_stack;
13459:
13460: EXCEPTION
13461:
13462: WHEN Invalid_Arg_Exc THEN

Line 13487: pa_debug.g_err_stage:='Invalid Arguments Passed';

13483: END IF;
13484:
13485: p_return_status := FND_API.G_RET_STS_ERROR;
13486:
13487: pa_debug.g_err_stage:='Invalid Arguments Passed';
13488: IF P_PA_DEBUG_MODE = 'Y' THEN
13489: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13490: END IF;
13491:

Line 13488: IF P_PA_DEBUG_MODE = 'Y' THEN

13484:
13485: p_return_status := FND_API.G_RET_STS_ERROR;
13486:
13487: pa_debug.g_err_stage:='Invalid Arguments Passed';
13488: IF P_PA_DEBUG_MODE = 'Y' THEN
13489: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13490: END IF;
13491:
13492: pa_debug.reset_err_stack;

Line 13489: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);

13485: p_return_status := FND_API.G_RET_STS_ERROR;
13486:
13487: pa_debug.g_err_stage:='Invalid Arguments Passed';
13488: IF P_PA_DEBUG_MODE = 'Y' THEN
13489: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13490: END IF;
13491:
13492: pa_debug.reset_err_stack;
13493:

Line 13492: pa_debug.reset_err_stack;

13488: IF P_PA_DEBUG_MODE = 'Y' THEN
13489: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13490: END IF;
13491:
13492: pa_debug.reset_err_stack;
13493:
13494: RAISE;
13495:
13496: WHEN Others THEN

Line 13505: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;

13501:
13502: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
13503: ,p_procedure_name => 'create_draft_budget_wrp');
13504:
13505: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13506: IF P_PA_DEBUG_MODE = 'Y' THEN
13507: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13508: END IF;
13509:

Line 13506: IF P_PA_DEBUG_MODE = 'Y' THEN

13502: FND_MSG_PUB.add_exc_msg( p_pkg_name => 'PA_FIN_PLAN_UTILS'
13503: ,p_procedure_name => 'create_draft_budget_wrp');
13504:
13505: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13506: IF P_PA_DEBUG_MODE = 'Y' THEN
13507: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13508: END IF;
13509:
13510: pa_debug.reset_err_stack;

Line 13507: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);

13503: ,p_procedure_name => 'create_draft_budget_wrp');
13504:
13505: pa_debug.g_err_stage:='Unexpected Error'||SQLERRM;
13506: IF P_PA_DEBUG_MODE = 'Y' THEN
13507: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13508: END IF;
13509:
13510: pa_debug.reset_err_stack;
13511:

Line 13510: pa_debug.reset_err_stack;

13506: IF P_PA_DEBUG_MODE = 'Y' THEN
13507: pa_debug.write('create_draft_budget_wrp: ' || l_module_name,pa_debug.g_err_stage,5);
13508: END IF;
13509:
13510: pa_debug.reset_err_stack;
13511:
13512: RAISE FND_API.G_EXC_UNEXPECTED_ERROR;
13513:
13514: