6304: THEN
6305:
6306: for perrec in c_actions(pactid, stperson, endperson) loop
6307:
6308: select pay_assignment_actions_s.nextval
6309: into l_lockingactid
6310: from dual;
6311:
6312: if l_temp_person_id is null then
6345: ** If terminated people are not selected
6346: ******************************************/
6347: for asgrec in c_actions_prev(pactid, stperson, endperson) loop
6348:
6349: select pay_assignment_actions_s.nextval
6350: into l_lockingactid
6351: from dual;
6352:
6353: if l_temp_person_id is null then