DBA Data[Home] [Help]

APPS.PAY_SF_BUS SQL Statements

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

Line: 13

Procedure chk_non_updateable_args
(p_rec in pay_sf_shd.g_rec_type
) is
  --
  -- Cursor to disallow update if a formula has been generated from
  -- this shadow formula.
  --
  cursor csr_disallow_update is
  select null
  from   pay_template_core_objects tco
  where  tco.core_object_type = pay_tco_shd.g_sf_lookup_type
  and    tco.shadow_object_id = p_rec.formula_id;
Line: 26

  l_proc  varchar2(72) := g_package||'chk_non_updateable_args';
Line: 49

  open csr_disallow_update;
Line: 50

  fetch csr_disallow_update into l_disallow;
Line: 51

  if csr_disallow_update%found then
    hr_utility.set_location(l_proc, 25);
Line: 53

    close csr_disallow_update;
Line: 57

  close csr_disallow_update;
Line: 107

End chk_non_updateable_args;
Line: 119

  select null
  from   fnd_territories ft
  where  ft.territory_code = p_legislation_code;
Line: 179

    select null
    from   pay_shadow_formulas sf
    where  sf.template_type = 'T'
    and    upper(sf.formula_name) = upper(p_formula_name)
    and
    (
     (sf.legislation_code is null and sf.business_group_id is null) or
     (p_legislation_code is null and p_business_group_id is null) or
     (sf.legislation_code = p_legislation_code) or
     (sf.business_group_id = p_business_group_id) or
     (p_legislation_code = (select legislation_code from per_business_groups_perf
                            where business_group_id = sf.business_group_id))
    );
Line: 197

  select null
  from   pay_shadow_formulas sf
  where  sf.template_type = 'U'
  and    upper(sf.formula_name) = upper(p_formula_name)
  and    sf.business_group_id = p_business_group_id;
Line: 339

Procedure chk_delete
  (p_formula_id in     number
  ) is
  --
  -- Cursors to check for rows referencing the template.
  --
  cursor csr_element_types is
  select null
  from   pay_shadow_element_types pset
  where  pset.payroll_formula_id = p_formula_id;
Line: 352

  select null
  from   pay_shadow_input_values psiv
  where  psiv.formula_id = p_formula_id;
Line: 357

  select null
  from   pay_template_core_objects tco
  where  tco.core_object_type = pay_tco_shd.g_sf_lookup_type
  and    tco.shadow_object_id = p_formula_id;
Line: 363

  select null
  from   pay_template_ff_usages tfu
  where  tfu.formula_id = p_formula_id;
Line: 367

  l_proc  varchar2(72) := g_package||'chk_delete';
Line: 413

    fnd_message.set_name('PAY', 'PAY_50103_SF_INVALID_DELETE');
Line: 418

End chk_delete;
Line: 422

Procedure insert_validate
(p_effective_date in date
,p_rec in pay_sf_shd.g_rec_type
) is
--
  l_proc  varchar2(72) := g_package||'insert_validate';
Line: 454

End insert_validate;
Line: 459

Procedure update_validate
(p_effective_date in date
,p_rec in pay_sf_shd.g_rec_type
) is
--
  l_proc  varchar2(72) := g_package||'update_validate';
Line: 471

  chk_non_updateable_args(p_rec);
Line: 474

End update_validate;
Line: 479

Procedure delete_validate(p_rec in pay_sf_shd.g_rec_type) is
--
  l_proc  varchar2(72) := g_package||'delete_validate';
Line: 488

  chk_delete(p_rec.formula_id);
Line: 491

End delete_validate;