765: open c_get_attributes(l_timecard_id,l_timecard_ovn);
766: fetch c_get_attributes into l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id;
767: close c_get_attributes;
768:
769: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
770: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
771: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
772: end if;
773:
766: fetch c_get_attributes into l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id;
767: close c_get_attributes;
768:
769: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
770: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
771: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
772: end if;
773:
774: SELECT hxc_approval_item_key_s.nextval
767: close c_get_attributes;
768:
769: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
770: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
771: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
772: end if;
773:
774: SELECT hxc_approval_item_key_s.nextval
775: INTO l_item_key