1187: END IF;
1188:
1189: SELECT wip_entity_id
1190: INTO x_wip_entity_id
1191: FROM wip_entities
1192: WHERE organization_id = p_org_id
1193: AND wip_entity_name = p_wip_entity_name;
1194:
1195: RETURN x_wip_entity_id;
1218: END IF;
1219:
1220: SELECT wip_entity_name
1221: INTO x_wip_entity_name
1222: FROM wip_entities
1223: WHERE organization_id = p_org_id
1224: AND wip_entity_id = p_wip_entity_id;
1225:
1226: RETURN x_wip_entity_name;