405: SELECT 1 FROM hr_positions_f
406: WHERE information6 = to_char(c_position_id); -- Bug 4576746
407:
408: l_child_exists BOOLEAN;
409: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
410: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
411: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
412: l_ovn per_position_extra_info.object_version_number%type;
413: l_information_type per_position_extra_info.information_type%type;
406: WHERE information6 = to_char(c_position_id); -- Bug 4576746
407:
408: l_child_exists BOOLEAN;
409: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
410: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
411: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
412: l_ovn per_position_extra_info.object_version_number%type;
413: l_information_type per_position_extra_info.information_type%type;
414: l_session_date fnd_sessions.effective_date%type;
407:
408: l_child_exists BOOLEAN;
409: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
410: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
411: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
412: l_ovn per_position_extra_info.object_version_number%type;
413: l_information_type per_position_extra_info.information_type%type;
414: l_session_date fnd_sessions.effective_date%type;
415: cursor c_get_session_date is
408: l_child_exists BOOLEAN;
409: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
410: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
411: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
412: l_ovn per_position_extra_info.object_version_number%type;
413: l_information_type per_position_extra_info.information_type%type;
414: l_session_date fnd_sessions.effective_date%type;
415: cursor c_get_session_date is
416: select trunc(effective_date) session_date
409: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
410: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
411: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
412: l_ovn per_position_extra_info.object_version_number%type;
413: l_information_type per_position_extra_info.information_type%type;
414: l_session_date fnd_sessions.effective_date%type;
415: cursor c_get_session_date is
416: select trunc(effective_date) session_date
417: from fnd_sessions
550: and pos.position_id = c_position_id
551: and c_effective_date between pos.effective_start_date and
552: pos.effective_end_date;
553:
554: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
555: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
556: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
557: l_ovn per_position_extra_info.object_version_number%type;
558: l_information_type per_position_extra_info.information_type%type;
551: and c_effective_date between pos.effective_start_date and
552: pos.effective_end_date;
553:
554: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
555: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
556: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
557: l_ovn per_position_extra_info.object_version_number%type;
558: l_information_type per_position_extra_info.information_type%type;
559: l_session_date fnd_sessions.effective_date%type;
552: pos.effective_end_date;
553:
554: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
555: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
556: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
557: l_ovn per_position_extra_info.object_version_number%type;
558: l_information_type per_position_extra_info.information_type%type;
559: l_session_date fnd_sessions.effective_date%type;
560: cursor c_get_session_date is
553:
554: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
555: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
556: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
557: l_ovn per_position_extra_info.object_version_number%type;
558: l_information_type per_position_extra_info.information_type%type;
559: l_session_date fnd_sessions.effective_date%type;
560: cursor c_get_session_date is
561: select trunc(effective_date) session_date
554: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
555: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
556: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
557: l_ovn per_position_extra_info.object_version_number%type;
558: l_information_type per_position_extra_info.information_type%type;
559: l_session_date fnd_sessions.effective_date%type;
560: cursor c_get_session_date is
561: select trunc(effective_date) session_date
562: from fnd_sessions
627: Cursor c_pos_ei(p_position_id in NUMBER,
628: p_information_type in VARCHAR2) is
629: select position_extra_info_id,
630: object_version_number
631: from per_position_extra_info
632: where position_id = p_position_id
633: and information_type = p_information_type;
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
630: object_version_number
631: from per_position_extra_info
632: where position_id = p_position_id
633: and information_type = p_information_type;
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
636: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
637: l_ovn per_position_extra_info.object_version_number%type;
638: l_information_type per_position_extra_info.information_type%type;
631: from per_position_extra_info
632: where position_id = p_position_id
633: and information_type = p_information_type;
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
636: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
637: l_ovn per_position_extra_info.object_version_number%type;
638: l_information_type per_position_extra_info.information_type%type;
639: BEGIN
632: where position_id = p_position_id
633: and information_type = p_information_type;
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
636: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
637: l_ovn per_position_extra_info.object_version_number%type;
638: l_information_type per_position_extra_info.information_type%type;
639: BEGIN
640: -- Update/Create Position group1 Extra Info
633: and information_type = p_information_type;
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
636: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
637: l_ovn per_position_extra_info.object_version_number%type;
638: l_information_type per_position_extra_info.information_type%type;
639: BEGIN
640: -- Update/Create Position group1 Extra Info
641: --
634: l_pos_cre_extra_info_id per_position_extra_info.position_extra_info_id%type;
635: l_extra_info_id per_position_extra_info.position_extra_info_id%type;
636: l_pos_cre_ovn per_position_extra_info.object_version_number%type;
637: l_ovn per_position_extra_info.object_version_number%type;
638: l_information_type per_position_extra_info.information_type%type;
639: BEGIN
640: -- Update/Create Position group1 Extra Info
641: --
642: -- EIT GHR_US_POS_GRP1