348: * owning organization since the resource could an expense which
349: * is incurred by the project organization.
350: * Hence, we are checking for both.
351: * Called By :
352: * Calls Prog : PA_HR_ORG_UTILS.Check_OrgName_Or_Id
353: *****************************************************************************/
354: PROCEDURE Validate_Organization
355: (p_organization_name IN VARCHAR2,
356: p_organization_id IN NUMBER,
367: x_error_msg_code := Null;
368: -- validate the organization and assign the id to the global record.
369: /*****************************************************************
370: * We are going to make use of an existing procedure
371: * PA_HR_ORG_UTILS.Check_OrgName_Or_Id, which will take in the
372: * Organization ID and organization name and will check for null
373: * for either of the fields and will accordingly derive the Organization_id.
374: ********************************************************************/
375: IF (p_organization_id IS NOT NULL) OR
374: ********************************************************************/
375: IF (p_organization_id IS NOT NULL) OR
376: ( p_organization_name IS NOT NULL)
377: THEN
378: PA_HR_ORG_UTILS.Check_OrgName_Or_Id(
379: p_organization_id,
380: p_organization_name,
381: PA_STARTUP.G_Check_ID_Flag,
382: l_organization_id,