DBA Data[Home] [Help]

APPS.HXC_CREATE_FLEX_MAPPINGS SQL Statements

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

Line: 9

FUNCTION check_delete_info_type(p_info_type_basis VARCHAR2)
          return NUMBER is

cursor c_delete(p_info_type_basis in VARCHAR2) is
  select bbi.bld_blk_info_type_id
    from hxc_mapping_comp_usages mcu,
         hxc_mapping_components mc,
         hxc_bld_blk_info_types bbi
   where mcu.mapping_component_id = mc.mapping_component_id
     and mc.bld_blk_info_type_id = bbi.bld_blk_info_type_id
     and upper(bld_blk_info_type) like '%'||p_info_type_basis||'%';
Line: 25

  open c_delete(p_info_type_basis);
Line: 26

  fetch c_delete into l_bld_blk_info_type_id;
Line: 28

  if c_delete%NOTFOUND then
     l_bld_blk_info_type_id := NULL;
Line: 32

  close c_delete;
Line: 36

END check_delete_info_type;
Line: 43

  SELECT 'Y'
    from hxc_mapping_comp_usages u,
         hxc_mappings m
   where m.name = p_name
     and u.mapping_id = m.mapping_id
     and u.mapping_component_id in
         (select c2.mapping_component_id
            from hxc_mapping_components c1,
                 hxc_mapping_components c2
           where c1.mapping_component_id = p_id
             and c2.segment = c1.segment
             and c2.field_name = c1.field_name
             and c2.bld_blk_info_type_id = c1.bld_blk_info_type_id
             and c2.mapping_component_id <> c1.mapping_component_id);
Line: 61

  select 'Y'
    from hxc_mappings m, hxc_mapping_comp_usages u, hxc_mapping_components c
   where m.mapping_id = u.mapping_id
     and m.name = p_name
     and u.mapping_component_id = c.mapping_component_id
     and c.field_name =
           (select field_name
              from hxc_mapping_components c1
             where c1.mapping_component_id = p_id);
Line: 111

  select mapping_id
    from hxc_mappings m
   where m.name = p_mapping_process_name;
Line: 152

   select mc.mapping_component_id
     from hxc_mapping_components mc,

          hxc_bld_blk_info_types bbit
    where upper(bbit.bld_blk_info_type) like '%'||upper(p_info_type_basis)||'%'
      and bbit.bld_blk_info_type_id = mc.bld_blk_info_type_id;
Line: 199

   select mc.mapping_component_id
     from hxc_mapping_components mc,
          hxc_bld_blk_info_types bbit
    where upper(bbit.bld_blk_info_type) like '%'||upper(p_info_type_basis)||'%'
      and bbit.bld_blk_info_type_id = mc.bld_blk_info_type_id;
Line: 216

      DELETE from hxc_mapping_comp_usages
       where mapping_component_id = map_rec.mapping_component_id;
Line: 225

    DELETE from HXC_MAPPING_COMPONENTS
     where mapping_component_id = map_rec.mapping_component_id;
Line: 239

   select bbu.bld_blk_info_type_usage_id
     from hxc_bld_blk_info_type_usages bbu,
          hxc_bld_blk_info_types bbit
    where upper(bbit.bld_blk_info_type) like '%'||upper(p_info_type_basis)||'%'
      and bbit.bld_blk_info_type_id = bbu.bld_blk_info_type_id;
Line: 249

    DELETE from HXC_BLD_BLK_INFO_TYPE_USAGES
     where bld_blk_info_type_usage_id = usage_rec.bld_blk_info_type_usage_id;
Line: 264

   select bld_blk_info_type
     from hxc_bld_blk_info_types
    where upper(bld_blk_info_Type) like '%'||upper(p_flex_context_basis)||'%';
Line: 279

       FND_FLEX_DSC_API.delete_context(
           APPL_SHORT_NAME => p_appl_short_name,
           FLEXFIELD_NAME => p_flexfield_name,
           CONTEXT => context_rec.bld_blk_info_type);
Line: 296

  DELETE from HXC_BLD_BLK_INFO_TYPES
   where upper(bld_blk_info_type) like '%'||upper(p_bld_blk_info_type_basis)||'%';
Line: 310

        select c.descriptive_flex_context_code, c.descriptive_flex_context_name
          from fnd_descr_flex_contexts_vl c,
               fnd_application a
         where c.descriptive_flexfield_name = p_flex_name
           and a.application_short_name = p_appl_short_name
           and a.application_id = c.application_id
           and c.descriptive_flex_context_code <> 'Global Data Elements';
Line: 326

  insert into hxc_pref_definitions
  (PREF_DEFINITION_ID,
   CODE,
   DESCRIPTIVE_FLEXFIELD_NAME)
  select
   hxc_pref_definitions_s.nextval,
   context_rec.descriptive_flex_context_code,
   p_flex_name
  from dual
  where not exists(
    select 'Y'
      from hxc_pref_definitions
     where code = context_rec.descriptive_flex_context_code
       and descriptive_flexfield_name = p_flex_name);
Line: 358

  select pet.element_type_id
    from pay_element_types_f pet,
         pay_element_type_rules per
   where per.element_set_id = p_element_set_id
     and per.include_or_exclude = 'I'
     and per.element_type_id = pet.element_type_id
     and multiple_entries_allowed_flag = 'Y'
     and p_effective_date between effective_start_date and effective_end_date;
Line: 392

    l_bld_blk_info_type_id := check_delete_info_type(l_basis_string);
Line: 431

    l_bld_blk_info_type_id := check_delete_info_type(l_key_flex_code);
Line: 506

  select substr(id_flex_structure_code,1,20) into l_prefix
    from fnd_id_flex_structures
   where id_flex_code = p_flex_code
     and id_flex_num = p_flex_num;
Line: 527

  select 'Y'
    from fnd_id_flex_segments
   where id_flex_code = p_id_flex_code
     and id_flex_num = p_id_flex_num
     and segment_name = p_seg_name
     and application_id = p_application_id;
Line: 598

   select mapping_component_id,
	  object_version_number
     into p_mp_id,
	  p_ovn
     from hxc_mapping_components
    where field_name = p_field_name
      and name = p_name
      and segment = p_segment;
Line: 615

  FUNCTION update_allowed
            (p_map_comp_id in HXC_MAPPING_COMPONENTS.MAPPING_COMPONENT_ID%TYPE) RETURN BOOLEAN is

  l_dummy VARCHAR2(2);
Line: 626

   select 'Y'
     into l_dummy
    from hxc_mapping_comp_usages
   where mapping_component_id = p_map_comp_id
     and rownum =1;
Line: 638

  END update_allowed;
Line: 667

  elsif (update_allowed(l_mapping_component_id)) then
      hxc_mapping_component_api.update_mapping_component(
            p_validate => FALSE,
            p_mapping_component_id => l_mapping_component_id,
            p_object_version_number => l_ovn,
            p_name => p_name,
            p_field_name => p_field_name,
            p_bld_blk_info_type_id => p_bld_blk_info_type_id,
            p_segment => p_segment);
Line: 690

   select bld_blk_info_type_id
     from HXC_BLD_BLK_INFO_TYPES
    where bld_blk_info_type = p_info_type;
Line: 710

   insert into HXC_BLD_BLK_INFO_TYPES(
            bld_blk_info_type_id,
            legislation_code,
            descriptive_flexfield_name,
            bld_blk_info_type,
            multiple_occurences_flag,
            created_by,
            creation_date,
            last_updated_by,
            last_update_date,
            last_update_login,
            object_version_number)
   select
            HXC_BLD_BLK_INFO_TYPES_S.NEXTVAL,
            p_legislation_code,
            p_flexfield_name,
            p_bld_blk_info_type,
            'N',
            0,
            sysdate,
            0,
            sysdate,
            0,
            1
   from     sys.dual;
Line: 750

   insert into HXC_BLD_BLK_INFO_TYPE_USAGES(
            bld_blk_info_type_usage_id,
            building_block_category,
            bld_blk_info_type_id,
            created_by,
            creation_date,
            last_updated_by,
            last_update_date,
            last_update_login,
            object_version_number)
   select
            hxc_bld_blk_info_type_usages_s.nextval,
            p_category,
            l_bld_blk_info_type_id,
            0,
            sysdate,
            0,
            sysdate,
            0,
            1
   from     sys.dual
   where not exists(
            select 'Y'
              from hxc_bld_blk_info_type_usages
             where bld_blk_info_type_id = l_bld_blk_info_type_id);
Line: 788

      select fdfc.DESCRIPTIVE_FLEX_CONTEXT_CODE
        from fnd_descr_flex_contexts fdfc
       where descriptive_flexfield_name = p_flex_name
         and fdfc.descriptive_flex_context_code <> 'Global Data Elements'
         and not exists (
              select 'Y'
                from hxc_bld_blk_info_types bbi
               where bbi.bld_blk_info_type = fdfc.descriptive_flex_context_code
                 );
Line: 842

       FND_FLEX_DSC_API.delete_context(
           APPL_SHORT_NAME => p_appl_short_name,
           FLEXFIELD_NAME => p_flexfield_name,
           CONTEXT => 'Dummy '||initcap(p_context_name)||' Context');
Line: 1098

       select max(to_number(substrB(DESCRIPTIVE_FLEX_CONTEXT_CODE,
                                    instr(DESCRIPTIVE_FLEX_CONTEXT_CODE,'-')+2)))
         FROM fnd_descr_flex_contexts_vl
        WHERE descriptive_flexfield_name = 'OTC Information Types'
          AND application_id = 809
          AND  substrB(DESCRIPTIVE_FLEX_CONTEXT_CODE,0,
                       instr(DESCRIPTIVE_FLEX_CONTEXT_CODE,'-')-2)
               =substrB(DESCRIPTIVE_FLEX_CONTEXT_name,0,
                        instr(DESCRIPTIVE_FLEX_CONTEXT_name,'-')-2)||'C';
Line: 1212

                    FND_FLEX_DSC_API.delete_context
                       (APPL_SHORT_NAME => p_otc_appl_short_name,
                        FLEXFIELD_NAME => p_otc_flex_name,
                        CONTEXT => substr(p_context_prefix||' - '||l_contexts.context_code(l_context_index),1,30));
Line: 1306

                        fnd_flex_dsc_api.delete_context
                           (appl_short_name=> p_otc_appl_short_name,
                            flexfield_name=> p_otc_flex_name,
                            CONTEXT=> l_sequence_code
                            );
Line: 1409

         FND_FLEX_DSC_API.delete_context
            (APPL_SHORT_NAME => p_otc_appl_short_name,
             FLEXFIELD_NAME => p_otc_flex_name,
             CONTEXT => substr(p_context_prefix||' - GLOBAL',1,30)
             );
Line: 1465

   select hat.alias_type_id
     from hxc_alias_types hat
    where reference_object = p_alias_context_code;
Line: 1470

   select fdfc.descriptive_flex_context_name
from  fnd_descr_flex_contexts_vl fdfc
where  application_id = 809
   and DESCRIPTIVE_FLEXFIELD_NAME = 'OTC Aliases'
   and fdfc.descriptive_flex_context_code = p_alias_context_code;
Line: 1477

  select pet.element_name, pet.element_type_id, pet.reporting_name
    from pay_element_types_f pet,
         pay_element_type_rules per
   where per.element_set_id = p_element_set_id
     and per.include_or_exclude = 'I'
     and per.element_type_id = pet.element_type_id
     and multiple_entries_allowed_flag = 'Y'
     and p_effective_date between effective_start_date and effective_end_date;
Line: 1488

   select 'Y', alias_definition_id
     from hxc_alias_definitions
    where alias_definition_name = p_an_name
      and business_group_id = p_bg_id;
Line: 1496

   select 'Y'
     from hxc_alias_values
    where alias_definition_id = p_an_id
      and attribute1 = to_char(p_ele_type_id);
Line: 1503

  select display_sequence, name, input_value_id, mandatory_flag
    from pay_input_values_f
   where element_type_id = p_element_type_id
     and p_effective_date between effective_start_date and effective_end_date
order by display_sequence, name;
Line: 1516

select count(*)
  from hxc_alias_values
 where alias_definition_id = p_an_id
 AND (alias_value_name like '% ~ '||p_ele_rep_name or alias_value_name = p_ele_rep_name);
Line: 1674

   SELECT element_set_name, business_group_id
     INTO l_element_set_name, l_bg_id
     FROM pay_element_sets
    WHERE element_set_id = p_element_set_id;
Line: 1877

       FND_FLEX_DSC_API.delete_context(
           APPL_SHORT_NAME => l_appl_short_name,
           FLEXFIELD_NAME => l_flexfield_name,
           CONTEXT => 'ELEMENT - '|| ele_rec.element_type_id);
Line: 2120

   If the context exists, delete it and recreate otherwise just create it
*/

     if FND_FLEX_DSC_API.context_exists(
          P_APPL_SHORT_NAME => l_appl_short_name,
          P_FLEXFIELD_NAME => l_flexfield_name,
          P_CONTEXT_CODE => l_key_flex_code||' - '
                            ||to_char(l_key_structure_list(l_structure_count))
        ) then
       FND_FLEX_DSC_API.delete_context(
           APPL_SHORT_NAME => l_appl_short_name,
           FLEXFIELD_NAME => l_flexfield_name,
           CONTEXT => l_key_flex_code||' - '
                            ||to_char(l_key_structure_list(l_structure_count)));