714: open c_get_attributes(l_timecard_id,l_timecard_ovn);
715: fetch c_get_attributes into l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id;
716: close c_get_attributes;
717:
718: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
719: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
720: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
721: end if;
722:
715: fetch c_get_attributes into l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id;
716: close c_get_attributes;
717:
718: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
719: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
720: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
721: end if;
722:
723: SELECT hxc_approval_item_key_s.nextval
716: close c_get_attributes;
717:
718: if l_user_id <> fnd_global.user_id OR l_resp_id <>fnd_global.resp_id
719: OR l_resp_appl_id <> fnd_global.resp_appl_id OR l_sec_grp_id <>fnd_global.security_group_id then
720: fnd_global.APPS_INITIALIZE(l_user_id,l_resp_id,l_resp_appl_id,l_sec_grp_id);
721: end if;
722:
723: SELECT hxc_approval_item_key_s.nextval
724: INTO l_item_key