310: l_to_step := p_to_step;
311: l_from_step := p_from_step;
312: end if;
313:
314: if l_from_step = WIP_CONSTANTS.TOMOVE then
315: l_add_where_clause := ' and operation_seq_num > :3 ';
316: else
317: l_add_where_clause := ' and operation_seq_num >= :3 ';
318: end if;
316: else
317: l_add_where_clause := ' and operation_seq_num >= :3 ';
318: end if;
319:
320: if l_to_step = WIP_CONSTANTS.QUEUE then
321: l_add_where_clause := l_add_where_clause || ' and operation_seq_num < :4 ';
322: else
323: l_add_where_clause := l_add_where_clause || ' and operation_seq_num <= :4 ';
324: end if;