DBA Data[Home] [Help]

APPS.PAY_SET_BUS SQL Statements

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

Line: 24

  select pet.business_group_id
  ,      pet.legislation_code
  ,      pet.template_type
  ,      pet.base_processing_priority
  from   pay_element_templates pet
  where  pet.template_id = p_template_id;
Line: 53

Procedure chk_non_updateable_args
(p_rec in pay_set_shd.g_rec_type
) is
  --
  -- Cursor to disallow update if a core element has been generated from
  -- this shadow element.
  --
  cursor csr_disallow_update is
  select null
  from   pay_template_core_objects tco
  where  (tco.core_object_type = pay_tco_shd.g_set_lookup_type or
          tco.core_object_type = pay_tco_shd.g_spr_lookup_type)
  and    tco.shadow_object_id = p_rec.element_type_id;
Line: 67

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

  open csr_disallow_update;
Line: 91

  fetch csr_disallow_update into l_disallow;
Line: 92

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

    close csr_disallow_update;
Line: 98

  close csr_disallow_update;
Line: 120

End chk_non_updateable_args;
Line: 131

  select null
  from   pay_element_templates pet
  where  pet.template_id = p_template_id;
Line: 565

    select null
    from   pay_shadow_element_types pset
    where  pset.template_id = p_template_id
    and    upper(nvl(pset.element_name, hr_api.g_varchar2)) =
           upper(nvl(p_element_name, hr_api.g_varchar2));
Line: 575

    select null
    from   pay_shadow_element_types pset
    ,      pay_element_templates    pet
    where  upper(pset.element_name) = upper(p_element_name)
    and    pet.template_id  = pset.template_id
    and    pet.template_type = 'U'
    and    pet.business_group_id = p_business_group_id;
Line: 730

  select null
  from   fnd_currencies fc
  where  upper(fc.currency_code) = upper(p_input_currency_code)
  and    fc.enabled_flag = 'Y'
  and    fc.currency_flag = 'Y';
Line: 776

  select null
  from   fnd_currencies fc
  where  upper(fc.currency_code) = upper(p_output_currency_code)
  and    fc.enabled_flag = 'Y'
  and    fc.currency_flag = 'Y';
Line: 830

  select null
  from   pay_shadow_formulas sf
  where  sf.formula_id = p_payroll_formula_id
  and    sf.template_type = 'T'
  and    nvl(sf.formula_type_name,pay_sf_shd.g_payroll_formula_type) = pay_sf_shd.g_payroll_formula_type
  and    ((sf.legislation_code is null and sf.business_group_id is null) or
          sf.legislation_code = p_legislation_code or
          sf.business_group_id = p_business_group_id);
Line: 843

  select null
  from   pay_shadow_formulas sf
  where  sf.formula_id = p_payroll_formula_id
  and    sf.template_type = 'U'
  and    nvl(sf.formula_type_name,pay_sf_shd.g_payroll_formula_type) = pay_sf_shd.g_payroll_formula_type
  and    sf.business_group_id = p_business_group_id
  and    not exists
         (select null
          from   pay_shadow_element_types pset
          where  pset.payroll_formula_id = p_payroll_formula_id
          and    pset.template_id <> p_template_id);
Line: 908

  select null
  from pay_template_exclusion_rules ter
  where ter.exclusion_rule_id = p_exclusion_rule_id
  and   ter.template_id = p_template_id;
Line: 1032

Procedure chk_delete
  (p_element_type_id     in     number
  ) is
  --
  -- Cursors to check for rows referencing the element.
  --
  cursor csr_input_values is
  select null
  from   pay_shadow_input_values psiv
  where  psiv.element_type_id = p_element_type_id;
Line: 1044

  select null
  from   pay_template_core_objects tco
  where  (tco.core_object_type = pay_tco_shd.g_set_lookup_type or
          tco.core_object_type = pay_tco_shd.g_spr_lookup_type)
  and    tco.shadow_object_id = p_element_type_id;
Line: 1051

  select null
  from   pay_shadow_formula_rules sfr
  where  sfr.shadow_element_type_id = p_element_type_id or
         sfr.element_type_id = p_element_type_id;
Line: 1057

  select null
  from   pay_shadow_sub_classi_rules ssr
  where  ssr.element_type_id = p_element_type_id;
Line: 1062

  select null
  from   pay_shadow_iterative_rules sir
  where  sir.element_type_id = p_element_type_id;
Line: 1067

  select null
  from   pay_shadow_ele_type_usages seu
  where  seu.element_type_id = p_element_type_id;
Line: 1072

  select null
  from   pay_shadow_gu_bal_exclusions sgb
  where  sgb.source_id = p_element_type_id;
Line: 1077

  select null
  from   pay_template_ff_usages tfu
  where  tfu.object_id = p_element_type_id;
Line: 1081

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

    fnd_message.set_name('PAY', 'PAY_50138_SET_INVALID_DELETE');
Line: 1167

End chk_delete;
Line: 1171

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

End insert_validate;
Line: 1298

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

  chk_non_updateable_args(p_rec);
Line: 1420

End update_validate;
Line: 1425

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

  chk_delete(p_rec.element_type_id);
Line: 1436

End delete_validate;