410: begin
411:
412: select resource_id
413: into l_res_id
414: from wip_operation_resources
415: where organization_id = p_org_id
416: and wip_entity_id = p_wip_id
417: and operation_seq_num = p_op_seq
418: and resource_seq_num = p_res_seq;
433: begin
434:
435: select resource_seq_num
436: into l_res_seq
437: from wip_operation_resources
438: where organization_id = p_org_id
439: and wip_entity_id = p_wip_id
440: and operation_seq_num = p_op_seq
441: and resource_id = p_res_id