47: IF p_eam_request_rec.wip_entity_name IS NOT NULL AND
48: (p_eam_request_rec.wip_entity_id IS NULL OR p_eam_request_rec.wip_entity_id = FND_API.G_MISS_NUM) THEN
49:
50: SELECT wip_entity_id into x_eam_request_rec.wip_entity_id
51: FROM WIP_ENTITIES we
52: WHERE we.organization_id = x_eam_request_rec.organization_id
53: AND we.wip_entity_name = p_eam_request_rec.wip_entity_name;
54: END IF;
55: