DBA Data[Home] [Help]

APPS.PA_FIN_PLAN_PVT dependencies on PA_UTILS

Line 74: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

70: /* CHECK FOR BUSINESS RULES VIOLATIONS */
71: /* check for null budget_version_id */
72: if p_budget_version_id is NULL then
73: x_return_status := FND_API.G_RET_STS_ERROR;
74: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
75: p_msg_name => 'PA_FP_NO_PLAN_VERSION');
76: end if;
77: /* check to see if the budget version we're updating has */
78: /* been updated by someone else already */

Line 89: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

85: if x_return_status = FND_API.G_RET_STS_ERROR then
86: IF P_PA_DEBUG_MODE = 'Y' THEN
87: pa_debug.write_file('lock_unlock_version: ' || 'record version number error ');
88: END IF;
89: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
90: p_msg_name => l_error_msg_code);
91: end if;
92:
93: /* if we do not have a person_id, make sure that we have a valid user_id */

Line 105: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

101: x_resource_id => l_resource_id,
102: x_resource_name => l_resource_name);
103: if l_person_id is null then
104: x_return_status := FND_API.G_RET_STS_ERROR;
105: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
106: p_msg_name => 'PA_FP_BAD_USER_ID');
107: end if; -- error with p_user_id
108: else
109: l_person_id := p_person_id;

Line 125: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

121: --Irrespective of the action, if the locked_by_person_id and l_person_id
122: --are different, an error should be thrown. AMG UT2
123: if not ( nvl(bv_rec.locked_by_person_id,l_person_id) = l_person_id ) then
124: x_return_status := FND_API.G_RET_STS_ERROR;
125: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
126: p_msg_name => 'PA_FP_LOCKED_BY_USER',
127: p_token1 => 'USERNAME',
128: p_value1 => pa_fin_plan_utils.get_person_name(bv_rec.locked_by_person_id));
129: end if;

Line 382: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

378: IF P_PA_DEBUG_MODE = 'Y' THEN
379: pa_debug.write_file('Baseline_FinPlan: ' || 'BUSINESS RULE VIOLATION: Check_Record_Version_Number failed');
380: END IF;
381: x_return_status := FND_API.G_RET_STS_ERROR;
382: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
383: p_msg_name => l_error_msg_code);
384: end if;
385: end if;
386:

Line 484: PA_UTILS.ADD_MESSAGE

480: pa_debug.g_err_stage:= 'budget lines with rejection codes EXIST in ar version';
481: pa_debug.write(l_module_name,pa_debug.g_err_stage,3);
482: END IF;
483:
484: PA_UTILS.ADD_MESSAGE
485: (p_app_short_name => 'PA',
486: p_msg_name => 'PA_FP_AR_BV_REJ_CODES_EXIST');
487:
488:

Line 521: v_emp_id := pa_utils.GetEmpIdFromUser(pa_budget_wf.g_baselined_by_user_id);

517: p_err_code => x_err_code, --l_return_status, Bug 2691822.
518: p_err_stage => l_err_stage,
519: p_err_stack => l_msg_data);
520: If l_workflow_is_used = 'T' Then
521: v_emp_id := pa_utils.GetEmpIdFromUser(pa_budget_wf.g_baselined_by_user_id);
522: end if;
523: --dbms_output.put_line('PA_CLIENT_EXTN_BUDGET_WF.Budget_Wf_Is_Used executed');
524: -- Verify budget rules if indicated
525: -- This API call is different from in PA_BUDGET_CORE.baseline

Line 554: PA_UTILS.Add_Message(p_app_short_name => 'PA',

550:
551: if (l_err_msg_count > 0 ) then
552: if (l_warnings_only_flag = 'N') then
553: /*
554: PA_UTILS.Add_Message(p_app_short_name => 'PA',
555: p_msg_name => x_err_code);
556: */
557:
558: x_return_status := FND_API.G_RET_STS_ERROR;

Line 588: PA_UTILS.Add_Message(p_app_short_name => 'PA',

584: x_err_code,
585: x_err_stage,
586: x_err_stack);
587: if (x_err_code <> 0) then
588: PA_UTILS.Add_Message(p_app_short_name => 'PA',
589: p_msg_name => x_err_code);
590:
591: x_return_status := FND_API.G_RET_STS_ERROR;
592: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 611: PA_UTILS.Add_Message(p_app_short_name => 'PA',

607: x_err_code,
608: x_err_stage,
609: x_err_stack);
610: if (x_err_code <> 0) then
611: PA_UTILS.Add_Message(p_app_short_name => 'PA',
612: p_msg_name => x_err_code);
613:
614: x_return_status := FND_API.G_RET_STS_ERROR;
615: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 636: PA_UTILS.Add_Message(p_app_short_name => 'PA',

632: x_err_code,
633: x_err_stage,
634: x_err_stack);
635: if (x_err_code <> 0) then
636: PA_UTILS.Add_Message(p_app_short_name => 'PA',
637: p_msg_name => x_err_code);
638:
639: x_return_status := FND_API.G_RET_STS_ERROR;
640: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 733: PA_UTILS.Add_Message(p_app_short_name => 'PA',

729: x_err_stack =>x_err_stack);
730: -- if oracle or application error, return
731:
732: if (x_err_code <> 0) then
733: PA_UTILS.Add_Message(p_app_short_name => 'PA',
734: p_msg_name => x_err_code);
735:
736: x_return_status := FND_API.G_RET_STS_ERROR;
737: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 761: PA_UTILS.Add_Message(p_app_short_name => 'PA',

757: X_err_stack => x_err_stack);
758: -- if oracle or application error, return.
759:
760: if (x_err_code <> 0) then
761: PA_UTILS.Add_Message(p_app_short_name => 'PA',
762: p_msg_name => x_err_code);
763:
764: x_return_status := FND_API.G_RET_STS_ERROR;
765: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 812: PA_UTILS.Add_Message(p_app_short_name => 'PA',

808: x_msg_data => l_msg_data);
809: /* PA_FIN_PLAN_PUB.Copy_Version may have generated errors */
810: --dbms_output.put_line('PA_FIN_PLAN_PUB.Copy_Version executed');
811: if x_return_status <> FND_API.G_RET_STS_SUCCESS then -- bug 2691822
812: PA_UTILS.Add_Message(p_app_short_name => 'PA',
813: p_msg_name => x_err_code);
814:
815: x_return_status := FND_API.G_RET_STS_ERROR;
816: x_msg_count := FND_MSG_PUB.Count_Msg;

Line 904: PA_UTILS.Add_Message(p_app_short_name => 'PA',

900: from pa_projects_all
901: where project_id = p_project_id;
902:
903: if (v_project_start_date is null ) or (v_project_completion_date is null) then
904: PA_UTILS.Add_Message(p_app_short_name => 'PA',
905: p_msg_name => 'PA_BU_NO_PROJ_END_DATE');
906: end if;
907:
908: update pa_budget_lines

Line 942: PA_UTILS.Add_Message(p_app_short_name => 'PA',

938: -- Check that rows should be updated only if the task start or end
939: -- dates are different from the budget start and end dates
940:
941: if (bl_rec.start_date is null) or (bl_rec.completion_date is null) then
942: PA_UTILS.Add_Message(p_app_short_name => 'PA',
943: p_msg_name => 'PA_BU_NO_TASK_PROJ_DATE');
944: else
945: update pa_budget_lines
946: set start_date = bl_rec.start_date,

Line 986: PA_UTILS.ADD_MESSAGE(p_app_short_name => PA_FP_CONSTANTS_PKG.G_PERIOD_TYPE_PA,

982: p_new_version_id => l_target_version_id,
983: x_return_status => l_return_status,
984: x_msg_code => l_error_msg_code);
985: IF l_return_status <> FND_API.G_RET_STS_SUCCESS then
986: PA_UTILS.ADD_MESSAGE(p_app_short_name => PA_FP_CONSTANTS_PKG.G_PERIOD_TYPE_PA,
987: p_msg_name => l_error_msg_code);
988:
989: RAISE pa_fin_plan_pub.rollback_on_error;
990: END IF;

Line 1395: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

1391: if x_return_status = FND_API.G_RET_STS_ERROR then
1392: IF P_PA_DEBUG_MODE = 'Y' THEN
1393: pa_debug.write_file('Submit_Current_Working_FinPlan: ' || 'record version number error ');
1394: END IF;
1395: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
1396: p_msg_name => l_error_msg_code);
1397: end if;
1398:
1399: ----- IF THERE ARE ANY BUSINESS RULES VIOLATIONS, DO NOT PROCEED ----

Line 1563: v_emp_id := pa_utils.GetEmpIdFromUser(pa_budget_wf.g_baselined_by_user_id);

1559: --dbms_output.put_line('PA_CLIENT_EXTN_BUDGET_WF.Budget_Wf_Is_Used: RETURNED ERRORS');
1560: raise pa_fin_plan_pvt.check_wf_error;
1561: else
1562: If l_workflow_is_used = 'T' Then
1563: v_emp_id := pa_utils.GetEmpIdFromUser(pa_budget_wf.g_baselined_by_user_id);
1564:
1565: PA_BUDGET_WF.START_BUDGET_WF
1566: (p_draft_version_id => p_budget_version_id,
1567: p_project_id => p_project_id,

Line 2263: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',

2259: IF P_PA_DEBUG_MODE = 'Y' THEN
2260: pa_debug.write('CREATE_DRAFT: ' || g_module_name,pa_debug.g_err_stage,5);
2261: END IF;
2262:
2263: PA_UTILS.ADD_MESSAGE(p_app_short_name=> 'PA',
2264: p_msg_name => 'PA_BU_BASE_RES_LIST_EXISTS');
2265: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
2266: END IF;
2267: END IF;

Line 3037: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

3033: pa_debug.g_err_stage:= 'fin_plan_version_id = '|| p_fin_plan_version_id;
3034: pa_debug.write('CREATE_FINPLAN_LINES: ' || g_module_name,pa_debug.g_err_stage,5);
3035: END IF;
3036:
3037: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
3038: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
3039:
3040: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
3041: END IF;

Line 3849: PA_UTILS.ADD_MESSAGE

3845: FETCH l_fin_plan_type_id_csr INTO x_fin_plan_type_id;
3846:
3847: IF(l_fin_plan_type_id_csr%NOTFOUND) THEN
3848:
3849: PA_UTILS.ADD_MESSAGE
3850: (p_app_short_name => 'PA',
3851: p_msg_name => 'PA_FP_INVALID_PLAN_TYPE',
3852: p_token1 => 'PLAN_TYPE',
3853: p_value1 => p_fin_plan_type_id);

Line 3877: PA_UTILS.ADD_MESSAGE

3873:
3874: x_fin_plan_type_id := fetch_plan_type_id(p_fin_plan_type_name);
3875: IF(x_fin_plan_type_id IS NULL) THEN
3876:
3877: PA_UTILS.ADD_MESSAGE
3878: (p_app_short_name => 'PA',
3879: p_msg_name => 'PA_FP_INVALID_PLAN_TYPE',
3880: p_token1 => 'PLAN_TYPE',
3881: p_value1 => p_fin_plan_type_name);

Line 3901: PA_UTILS.ADD_MESSAGE

3897:
3898:
3899: ELSE
3900:
3901: PA_UTILS.ADD_MESSAGE
3902: (p_app_short_name => 'PA',
3903: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
3904:
3905: x_return_status := FND_API.G_RET_STS_ERROR;

Line 4039: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',

4035: IF l_debug_mode = 'Y' THEN
4036: pa_debug.write('Delete_wp_options Project Id is null: ' || g_module_name,pa_debug.g_err_stage,5);
4037: END IF;
4038:
4039: PA_UTILS.ADD_MESSAGE(p_app_short_name => 'PA',
4040: p_msg_name => 'PA_FP_INV_PARAM_PASSED');
4041:
4042: RAISE PA_FP_CONSTANTS_PKG.Invalid_Arg_Exc;
4043: