[Home] [Help]
196: is
197: begin
198: if(p_flag is not null)
199: then
200: if not EAM_COMMON_UTILITIES_PVT.validate_boolean_flag(p_flag)
201: then
202: fnd_message.set_name('EAM', p_msg);
203: fnd_msg_pub.add;
204: RAISE FND_API.G_EXC_ERROR;
397: RAISE FND_API.G_EXC_ERROR;
398: end if;
399:
400: -- validate default dept id
401: if (p_default_department_id is not null and not eam_common_utilities_pvt.validate_department_id(p_default_department_id, p_organization_id)) then
402: fnd_message.set_name('EAM', 'EAM_PAR_INVALID_DEPT_ID');
403: fnd_msg_pub.add;
404: RAISE FND_API.G_EXC_ERROR;
405: end if;
651: RAISE FND_API.G_EXC_ERROR;
652: end if;
653:
654: -- validate default dept id
655: if (p_default_department_id is not null and not eam_common_utilities_pvt.validate_department_id(p_default_department_id, p_organization_id)) then
656: fnd_message.set_name('EAM', 'EAM_PAR_INVALID_DEPT_ID');
657: fnd_msg_pub.add;
658: RAISE FND_API.G_EXC_ERROR;
659: end if;