DBA Data[Home] [Help]

APPS.HR_ASSIGNMENT_ATT SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 13

procedure update_asg
  (p_validate                     in     boolean  default false
  ,p_effective_date               in     date
  ,p_attribute_update_mode        in     varchar2
  ,p_assignment_id                in     number
  ,p_object_version_number        in out nocopy number
  ,p_supervisor_id                in     number   default hr_api.g_number
  ,p_supervisor_assignment_id     in     number   default hr_api.g_number
  ,p_assignment_number            in     varchar2 default hr_api.g_varchar2
  ,p_change_reason                in     varchar2 default hr_api.g_varchar2
  ,p_comments                     in     varchar2 default hr_api.g_varchar2
  ,p_date_probation_end           in     date     default hr_api.g_date
  ,p_default_code_comb_id         in     number   default hr_api.g_number
  ,p_frequency                    in     varchar2 default hr_api.g_varchar2
  ,p_internal_address_line        in     varchar2 default hr_api.g_varchar2
  ,p_manager_flag                 in     varchar2 default hr_api.g_varchar2
  ,p_normal_hours                 in     number   default hr_api.g_number
  ,p_perf_review_period           in     number   default hr_api.g_number
  ,p_perf_review_period_frequency in     varchar2 default hr_api.g_varchar2
  ,p_probation_period             in     number   default hr_api.g_number
  ,p_probation_unit               in     varchar2 default hr_api.g_varchar2
  ,p_sal_review_period            in     number   default hr_api.g_number
  ,p_sal_review_period_frequency  in     varchar2 default hr_api.g_varchar2
  ,p_set_of_books_id              in     number   default hr_api.g_number
  ,p_source_type                  in     varchar2 default hr_api.g_varchar2
  ,p_time_normal_finish           in     varchar2 default hr_api.g_varchar2
  ,p_time_normal_start            in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute_category       in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute1               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute2               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute3               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute4               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute5               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute6               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute7               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute8               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute9               in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute10              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute11              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute12              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute13              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute14              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute15              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute16              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute17              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute18              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute19              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute20              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute21              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute22              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute23              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute24              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute25              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute26              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute27              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute28              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute29              in     varchar2 default hr_api.g_varchar2
  ,p_ass_attribute30              in     varchar2 default hr_api.g_varchar2
  ,p_title                        in     varchar2 default hr_api.g_varchar2
  ,p_project_title                in     varchar2 default hr_api.g_varchar2
  ,p_vendor_assignment_number     in     varchar2 default hr_api.g_varchar2
  ,p_vendor_employee_number       in     varchar2 default hr_api.g_varchar2
  ,p_vendor_id                    in     number default hr_api.g_number
  ,p_assignment_type              in     varchar2
  ,p_comment_id                      out nocopy number
  ,p_effective_start_date            out nocopy date
  ,p_effective_end_date              out nocopy date
  ,p_no_managers_warning             out nocopy boolean
  ,p_other_manager_warning           out nocopy boolean
  )  is
  l_proc                     varchar2(72)  := g_package||'update_asg';
Line: 89

  l_datetrack_update_mode    varchar2(30);
Line: 91

  l_update                   boolean;
Line: 92

  l_update_override          boolean;
Line: 93

  l_update_change_insert     boolean;
Line: 119

    select 1
    from   per_all_assignments_f asg
    where  asg.assignment_id = p_assignment_id
    and    asg.effective_end_date >= c_lck_start_date
    for    update nowait;
Line: 126

  select
   asg.object_version_number
  ,asg.supervisor_id
  -- Assignment Security
  ,asg.supervisor_assignment_id

  ,asg.assignment_number
  ,asg.change_reason
  ,asg.date_probation_end
  ,asg.default_code_comb_id
  ,asg.frequency
  ,asg.internal_address_line
  ,asg.manager_flag
  ,asg.normal_hours
  ,asg.perf_review_period
  ,asg.perf_review_period_frequency
  ,asg.probation_period
  ,asg.probation_unit
  ,asg.sal_review_period
  ,asg.sal_review_period_frequency
  ,asg.set_of_books_id
  ,asg.source_type
  ,asg.time_normal_finish
  ,asg.time_normal_start
  ,asg.ass_attribute_category
  ,asg.ass_attribute1
  ,asg.ass_attribute2
  ,asg.ass_attribute3
  ,asg.ass_attribute4
  ,asg.ass_attribute5
  ,asg.ass_attribute6
  ,asg.ass_attribute7
  ,asg.ass_attribute8
  ,asg.ass_attribute9
  ,asg.ass_attribute10
  ,asg.ass_attribute11
  ,asg.ass_attribute12
  ,asg.ass_attribute13
  ,asg.ass_attribute14
  ,asg.ass_attribute15
  ,asg.ass_attribute16
  ,asg.ass_attribute17
  ,asg.ass_attribute18
  ,asg.ass_attribute19
  ,asg.ass_attribute20
  ,asg.ass_attribute21
  ,asg.ass_attribute22
  ,asg.ass_attribute23
  ,asg.ass_attribute24
  ,asg.ass_attribute25
  ,asg.ass_attribute26
  ,asg.ass_attribute27
  ,asg.ass_attribute28
  ,asg.ass_attribute29
  ,asg.ass_attribute30
  ,asg.title
  ,asg.effective_start_date
  ,asg.effective_end_date
  ,hc.comment_text
  ,asg.project_title
  ,asg.vendor_assignment_number
  ,asg.vendor_employee_number
  ,asg.vendor_id
  from  hr_comments hc
  ,     per_all_assignments_f asg
  where asg.assignment_id=p_assignment_id
  and   asg.effective_end_date >= l_constant_effective_date
  and   hc.comment_id(+) = asg.comment_id
  order by asg.effective_end_date asc;
Line: 197

  select
   asg.object_version_number
  ,asg.supervisor_id
  -- Assignment Security
  ,asg.supervisor_assignment_id
  ,asg.assignment_number
  ,asg.change_reason
  ,asg.date_probation_end
  ,asg.default_code_comb_id
  ,asg.frequency
  ,asg.internal_address_line
  ,asg.manager_flag
  ,asg.normal_hours
  ,asg.perf_review_period
  ,asg.perf_review_period_frequency
  ,asg.probation_period
  ,asg.probation_unit
  ,asg.sal_review_period
  ,asg.sal_review_period_frequency
  ,asg.set_of_books_id
  ,asg.source_type
  ,asg.time_normal_finish
  ,asg.time_normal_start
  ,asg.ass_attribute_category
  ,asg.ass_attribute1
  ,asg.ass_attribute2
  ,asg.ass_attribute3
  ,asg.ass_attribute4
  ,asg.ass_attribute5
  ,asg.ass_attribute6
  ,asg.ass_attribute7
  ,asg.ass_attribute8
  ,asg.ass_attribute9
  ,asg.ass_attribute10
  ,asg.ass_attribute11
  ,asg.ass_attribute12
  ,asg.ass_attribute13
  ,asg.ass_attribute14
  ,asg.ass_attribute15
  ,asg.ass_attribute16
  ,asg.ass_attribute17
  ,asg.ass_attribute18
  ,asg.ass_attribute19
  ,asg.ass_attribute20
  ,asg.ass_attribute21
  ,asg.ass_attribute22
  ,asg.ass_attribute23
  ,asg.ass_attribute24
  ,asg.ass_attribute25
  ,asg.ass_attribute26
  ,asg.ass_attribute27
  ,asg.ass_attribute28
  ,asg.ass_attribute29
  ,asg.ass_attribute30
  ,asg.title
  ,asg.effective_start_date
  ,asg.effective_end_date
  ,hc.comment_text
  ,asg.project_title
  ,asg.vendor_assignment_number
  ,asg.vendor_employee_number
  ,asg.vendor_id
  from  hr_comments hc
  ,     per_all_assignments_f asg
  where asg.assignment_id=p_assignment_id
  and   asg.effective_end_date < l_constant_effective_date
  and   hc.comment_id(+) = asg.comment_id
  order by asg.effective_end_date desc;
Line: 758

      hr_assignment_api.update_cwk_asg
      (p_effective_date               => l_effective_date
      ,p_datetrack_update_mode        => l_datetrack_update_mode
      ,p_assignment_id                => p_assignment_id
      ,p_object_version_number        => l_asg_rec.object_version_number
--      ,p_assignment_category          => l_asg_rec.assignment_category
      ,p_assignment_number            => l_asg_rec.assignment_number
      ,p_change_reason                => l_asg_rec.change_reason
      ,p_comments                     => l_comments
      ,p_default_code_comb_id         => l_asg_rec.default_code_comb_id
      ,p_frequency                    => l_asg_rec.frequency
      ,p_internal_address_line        => l_asg_rec.internal_address_line
      ,p_manager_flag                 => l_asg_rec.manager_flag
      ,p_normal_hours                 => l_asg_rec.normal_hours
      ,p_set_of_books_id              => l_asg_rec.set_of_books_id
      ,p_source_type                  => l_asg_rec.source_type
      ,p_supervisor_id                => l_asg_rec.supervisor_id

      ,p_time_normal_finish           => l_asg_rec.time_normal_finish
      ,p_time_normal_start            => l_asg_rec.time_normal_start
      ,p_title                        => l_asg_rec.title
      ,p_project_title                => l_asg_rec.project_title
      ,p_vendor_assignment_number     => l_asg_rec.vendor_assignment_number
      ,p_vendor_employee_number       => l_asg_rec.vendor_employee_number
      ,p_vendor_id                    => l_asg_rec.vendor_id
      --,p_assignment_status_type_id    => l_asg_rec.assignment_status_type_id
      ,p_attribute_category       => l_asg_rec.ass_attribute_category
      ,p_attribute1               => l_asg_rec.ass_attribute1
      ,p_attribute2               => l_asg_rec.ass_attribute2
      ,p_attribute3               => l_asg_rec.ass_attribute3
      ,p_attribute4               => l_asg_rec.ass_attribute4
      ,p_attribute5               => l_asg_rec.ass_attribute5
      ,p_attribute6               => l_asg_rec.ass_attribute6
      ,p_attribute7               => l_asg_rec.ass_attribute7
      ,p_attribute8               => l_asg_rec.ass_attribute8
      ,p_attribute9               => l_asg_rec.ass_attribute9
      ,p_attribute10              => l_asg_rec.ass_attribute10
      ,p_attribute11              => l_asg_rec.ass_attribute11
      ,p_attribute12              => l_asg_rec.ass_attribute12
      ,p_attribute13              => l_asg_rec.ass_attribute13
      ,p_attribute14              => l_asg_rec.ass_attribute14
      ,p_attribute15              => l_asg_rec.ass_attribute15
      ,p_attribute16              => l_asg_rec.ass_attribute16
      ,p_attribute17              => l_asg_rec.ass_attribute17
      ,p_attribute18              => l_asg_rec.ass_attribute18
      ,p_attribute19              => l_asg_rec.ass_attribute19
      ,p_attribute20              => l_asg_rec.ass_attribute20
      ,p_attribute21              => l_asg_rec.ass_attribute21
      ,p_attribute22              => l_asg_rec.ass_attribute22
      ,p_attribute23              => l_asg_rec.ass_attribute23
      ,p_attribute24              => l_asg_rec.ass_attribute24
      ,p_attribute25              => l_asg_rec.ass_attribute25
      ,p_attribute26              => l_asg_rec.ass_attribute26
      ,p_attribute27              => l_asg_rec.ass_attribute27
      ,p_attribute28              => l_asg_rec.ass_attribute28
      ,p_attribute29              => l_asg_rec.ass_attribute29
      ,p_attribute30              => l_asg_rec.ass_attribute30

      -- Assignment Security
      ,p_supervisor_assignment_id     => l_asg_rec.supervisor_assignment_id

      ,p_org_now_no_manager_warning   => l_org_now_no_manager_warning
      ,p_effective_start_date         => l_effective_start_date
      ,p_effective_end_date           => l_effective_end_date
      ,p_comment_id                   => l_comment_id
      ,p_no_managers_warning          => l_no_managers_warning
      ,p_other_manager_warning        => l_other_manager_warning
      ,p_soft_coding_keyflex_id       => l_soft_coding_keyflex_id
      ,p_concatenated_segments        => l_concatenated_segments
      ,p_hourly_salaried_warning      => l_hourly_salaried_warning
      );
Line: 831

    hr_assignment_api.update_emp_asg
      (p_effective_date               => l_effective_date
      ,p_datetrack_update_mode        => l_datetrack_update_mode
      ,p_assignment_id                => p_assignment_id
      ,p_object_version_number        => l_asg_rec.object_version_number
      ,p_supervisor_id                => l_asg_rec.supervisor_id
      ,p_assignment_number            => l_asg_rec.assignment_number
      ,p_change_reason                => l_asg_rec.change_reason
      ,p_comments                     => l_comments
      ,p_date_probation_end           => l_asg_rec.date_probation_end
      ,p_default_code_comb_id         => l_asg_rec.default_code_comb_id
      ,p_frequency                    => l_asg_rec.frequency
      ,p_internal_address_line        => l_asg_rec.internal_address_line
      ,p_manager_flag                 => l_asg_rec.manager_flag
      ,p_normal_hours                 => l_asg_rec.normal_hours
      ,p_perf_review_period           => l_asg_rec.perf_review_period
      ,p_perf_review_period_frequency => l_asg_rec.perf_review_period_frequency
      ,p_probation_period             => l_asg_rec.probation_period
      ,p_probation_unit               => l_asg_rec.probation_unit
      ,p_sal_review_period            => l_asg_rec.sal_review_period
      ,p_sal_review_period_frequency  => l_asg_rec.sal_review_period_frequency
      ,p_set_of_books_id              => l_asg_rec.set_of_books_id
      ,p_source_type                  => l_asg_rec.source_type
      ,p_time_normal_finish           => l_asg_rec.time_normal_finish
      ,p_time_normal_start            => l_asg_rec.time_normal_start
      ,p_ass_attribute_category       => l_asg_rec.ass_attribute_category
      ,p_ass_attribute1               => l_asg_rec.ass_attribute1
      ,p_ass_attribute2               => l_asg_rec.ass_attribute2
      ,p_ass_attribute3               => l_asg_rec.ass_attribute3
      ,p_ass_attribute4               => l_asg_rec.ass_attribute4
      ,p_ass_attribute5               => l_asg_rec.ass_attribute5
      ,p_ass_attribute6               => l_asg_rec.ass_attribute6
      ,p_ass_attribute7               => l_asg_rec.ass_attribute7
      ,p_ass_attribute8               => l_asg_rec.ass_attribute8
      ,p_ass_attribute9               => l_asg_rec.ass_attribute9
      ,p_ass_attribute10              => l_asg_rec.ass_attribute10
      ,p_ass_attribute11              => l_asg_rec.ass_attribute11
      ,p_ass_attribute12              => l_asg_rec.ass_attribute12
      ,p_ass_attribute13              => l_asg_rec.ass_attribute13
      ,p_ass_attribute14              => l_asg_rec.ass_attribute14
      ,p_ass_attribute15              => l_asg_rec.ass_attribute15
      ,p_ass_attribute16              => l_asg_rec.ass_attribute16
      ,p_ass_attribute17              => l_asg_rec.ass_attribute17
      ,p_ass_attribute18              => l_asg_rec.ass_attribute18
      ,p_ass_attribute19              => l_asg_rec.ass_attribute19
      ,p_ass_attribute20              => l_asg_rec.ass_attribute20
      ,p_ass_attribute21              => l_asg_rec.ass_attribute21
      ,p_ass_attribute22              => l_asg_rec.ass_attribute22
      ,p_ass_attribute23              => l_asg_rec.ass_attribute23
      ,p_ass_attribute24              => l_asg_rec.ass_attribute24
      ,p_ass_attribute25              => l_asg_rec.ass_attribute25
      ,p_ass_attribute26              => l_asg_rec.ass_attribute26
      ,p_ass_attribute27              => l_asg_rec.ass_attribute27
      ,p_ass_attribute28              => l_asg_rec.ass_attribute28
      ,p_ass_attribute29              => l_asg_rec.ass_attribute29
      ,p_ass_attribute30              => l_asg_rec.ass_attribute30
      ,p_title                        => l_asg_rec.title
      ,p_soft_coding_keyflex_id       => l_soft_coding_keyflex_id
      ,p_comment_id                   => l_comment_id
      ,p_effective_start_date         => l_effective_start_date
      ,p_effective_end_date           => l_effective_end_date
      ,p_concatenated_segments        => l_concatenated_segments
      ,p_no_managers_warning          => l_no_managers_warning
      ,p_other_manager_warning        => l_other_manager_warning
      -- Assignment Security
      ,p_supervisor_assignment_id     => l_asg_rec.supervisor_assignment_id
      );
Line: 904

        l_datetrack_update_mode := hr_api.g_correction;
Line: 934

    savepoint update_asg;
Line: 950

  if p_attribute_update_mode = 'ATTRIBUTE_UPDATE' then
    -- ------------------------------------------------------------------------
    -- step 1: as we are performing an ATTRIBUTE_UPDATE we must determine
    --         the initial datetrack mode to use (UPDATE, CORRECTION or
    --         UPDATE_CHANGE_INSERT)
    --
    --    1.1 - call the assignment datetrack find_dt_upd_modes to determine
    --          all possible allowed datetrack update modes
    --    1.2 - determine the actual datetrack mode to use
    --          the logic is as follows;
Line: 970

      ,p_update               => l_update
      ,p_update_override      => l_update_override
      ,p_update_change_insert => l_update_change_insert);
Line: 974

    if l_update then
      -- we can do an update
      l_datetrack_update_mode := hr_api.g_update;
Line: 977

    elsif l_update_change_insert then
      -- we can do an update change insert
      l_datetrack_update_mode := hr_api.g_update_change_insert;
Line: 983

      l_datetrack_update_mode := hr_api.g_correction;
Line: 993

  elsif p_attribute_update_mode = 'ATTRIBUTE_CORRECTION' then
    -- set lock start date to start of time and the datetrack mode
    -- to CORRECTION
    l_lck_start_date := hr_api.g_sot;
Line: 997

    l_datetrack_update_mode := hr_api.g_correction;
Line: 1082

  if p_attribute_update_mode = 'ATTRIBUTE_CORRECTION' then
    -- reset the parameter statuses
    hr_dt_attribute_support.reset_parameter_statuses;
Line: 1170

    rollback to update_asg;
Line: 1192

end update_asg;
Line: 1199

procedure update_asg_criteria
  (p_validate                     in     boolean  default false
  ,p_effective_date               in     date
  ,p_attribute_update_mode        in     varchar2
  ,p_assignment_id                in     number
  ,p_object_version_number        in out nocopy number
  ,p_grade_id                     in     number   default hr_api.g_number
  ,p_position_id                  in     number   default hr_api.g_number
  ,p_job_id                       in     number   default hr_api.g_number
  ,p_payroll_id                   in     number   default hr_api.g_number
  ,p_location_id                  in     number   default hr_api.g_number
  ,p_special_ceiling_step_id      in out nocopy number
  ,p_organization_id              in     number   default hr_api.g_number
  ,p_pay_basis_id                 in     number   default hr_api.g_number
  ,p_employment_category          in     varchar2 default hr_api.g_varchar2
  ,p_assignment_type              in     varchar2
  ,p_effective_start_date            out nocopy date
  ,p_effective_end_date              out nocopy date
  ,p_no_managers_warning             out nocopy boolean
  ,p_other_manager_warning           out nocopy boolean
  ,p_spp_delete_warning              out nocopy boolean
  ,p_entries_changed_warning         out nocopy varchar2
  ,p_tax_district_changed_warning    out nocopy boolean
  )  is
  l_proc                     varchar2(72)  := g_package||'update_asg_criteria';
Line: 1229

  l_datetrack_update_mode    varchar2(30);
Line: 1231

  l_update                   boolean;
Line: 1232

  l_update_override          boolean;
Line: 1233

  l_update_change_insert     boolean;
Line: 1260

    select 1
    from   per_all_assignments_f asg
    where  asg.assignment_id = p_assignment_id
    and    asg.effective_end_date >= c_lck_start_date
    for    update nowait;
Line: 1267

  select
   asg.object_version_number
  ,asg.grade_id
  ,asg.position_id
  ,asg.job_id
  ,asg.payroll_id
  ,asg.location_id
  ,asg.special_ceiling_step_id
  ,asg.organization_id
  ,asg.pay_basis_id
  ,asg.employment_category
  ,asg.effective_start_date
  ,asg.effective_end_date
  from  per_all_assignments_f asg
  where asg.assignment_id=p_assignment_id
  and   asg.effective_end_date >= l_constant_effective_date
  order by asg.effective_end_date asc;
Line: 1286

  select
   asg.object_version_number
  ,asg.grade_id
  ,asg.position_id
  ,asg.job_id
  ,asg.payroll_id
  ,asg.location_id
  ,asg.special_ceiling_step_id
  ,asg.organization_id
  ,asg.pay_basis_id
  ,asg.employment_category
  ,asg.effective_start_date
  ,asg.effective_end_date
  from  per_all_assignments_f asg
  where asg.assignment_id=p_assignment_id
  and   asg.effective_end_date < l_constant_effective_date
  order by asg.effective_end_date desc;
Line: 1313

  l_spp_delete_warning         boolean;
Line: 1318

  l_api_spp_delete_warning     boolean := false;
Line: 1449

      hr_assignment_api.update_cwk_asg_criteria
      (p_effective_date               => l_effective_date
      ,p_datetrack_update_mode        => l_datetrack_update_mode
      ,p_assignment_id                => p_assignment_id
      ,p_object_version_number        => l_asg_rec.object_version_number
      ,p_grade_id                     => l_asg_rec.grade_id
      ,p_position_id                  => l_asg_rec.position_id
      ,p_job_id                       => l_asg_rec.job_id
      ,p_location_id                  => l_asg_rec.location_id
      ,p_organization_id              => l_asg_rec.organization_id
      ,p_pay_basis_id                 => l_asg_rec.pay_basis_id
      ,p_people_group_name            => l_group_name
      ,p_effective_start_date         => l_effective_start_date
      ,p_effective_end_date           => l_effective_end_date
      ,p_people_group_id              => l_people_group_id
      ,p_org_now_no_manager_warning   => l_no_managers_warning
      ,p_other_manager_warning        => l_other_manager_warning
      ,p_spp_delete_warning           => l_spp_delete_warning
      ,p_entries_changed_warning      => l_entries_changed_warning
      ,p_tax_district_changed_warning => l_tax_district_changed_warning
      );
Line: 1472

    hr_assignment_api.update_emp_asg_criteria
      (p_effective_date               => l_effective_date
      ,p_datetrack_update_mode        => l_datetrack_update_mode
      ,p_assignment_id                => p_assignment_id
      ,p_object_version_number        => l_asg_rec.object_version_number
      ,p_grade_id                     => l_asg_rec.grade_id
      ,p_position_id                  => l_asg_rec.position_id
      ,p_job_id                       => l_asg_rec.job_id
      ,p_payroll_id                   => l_asg_rec.payroll_id
      ,p_location_id                  => l_asg_rec.location_id
      ,p_special_ceiling_step_id      => l_asg_rec.special_ceiling_step_id
      ,p_organization_id              => l_asg_rec.organization_id
      ,p_pay_basis_id                 => l_asg_rec.pay_basis_id
      ,p_employment_category          => l_asg_rec.employment_category
      ,p_effective_start_date         => l_effective_start_date
      ,p_effective_end_date           => l_effective_end_date
      ,p_people_group_id              => l_people_group_id
      ,p_group_name                   => l_group_name
      ,p_org_now_no_manager_warning   => l_no_managers_warning
      ,p_other_manager_warning        => l_other_manager_warning
      ,p_spp_delete_warning           => l_spp_delete_warning
      ,p_entries_changed_warning      => l_entries_changed_warning
      ,p_tax_district_changed_warning => l_tax_district_changed_warning
      );
Line: 1502

        l_datetrack_update_mode := hr_api.g_correction;
Line: 1516

      if l_spp_delete_warning and not l_api_spp_delete_warning then
        l_api_spp_delete_warning:=l_spp_delete_warning;
Line: 1542

    savepoint update_asg_criteria;
Line: 1558

  if p_attribute_update_mode = 'ATTRIBUTE_UPDATE' then
    -- ------------------------------------------------------------------------
    -- step 1: as we are performing an ATTRIBUTE_UPDATE we must determine
    --         the initial datetrack mode to use (UPDATE, CORRECTION or
    --         UPDATE_CHANGE_INSERT)
    --
    --    1.1 - call the assignment datetrack find_dt_upd_modes to determine
    --          all possible allowed datetrack update modes
    --    1.2 - determine the actual datetrack mode to use
    --          the logic is as follows;
Line: 1578

      ,p_update               => l_update
      ,p_update_override      => l_update_override
      ,p_update_change_insert => l_update_change_insert);
Line: 1582

    if l_update then
      -- we can do an update
      l_datetrack_update_mode := hr_api.g_update;
Line: 1585

    elsif l_update_change_insert then
      -- we can do an update change insert
      l_datetrack_update_mode := hr_api.g_update_change_insert;
Line: 1591

      l_datetrack_update_mode := hr_api.g_correction;
Line: 1601

  elsif p_attribute_update_mode = 'ATTRIBUTE_CORRECTION' then
    -- set lock start date to start of time and the datetrack mode
    -- to CORRECTION
    l_lck_start_date := hr_api.g_sot;
Line: 1605

    l_datetrack_update_mode := hr_api.g_correction;
Line: 1639

  if p_attribute_update_mode = 'ATTRIBUTE_CORRECTION' then
    -- reset the parameter statuses
    hr_dt_attribute_support.reset_parameter_statuses;
Line: 1669

  p_spp_delete_warning       := l_api_spp_delete_warning;
Line: 1680

    rollback to update_asg_criteria;
Line: 1690

    p_spp_delete_warning       := l_api_spp_delete_warning;
Line: 1703

    p_spp_delete_warning       := null;
Line: 1707

end update_asg_criteria;