DBA Data[Home] [Help]

APPS.FTE_DIST_DWNLD_PKG SQL Statements

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

Line: 1667

select fte_mile_dlf_file_s.nextval
from   dual;
Line: 2031

select flm.origin_id,
       flm.destination_id
from   fte_location_mileages flm;
Line: 2037

select wr.region_id,
       wr.state_code,
       wr.country_code
from   wsh_regions wr
where  region_id = cp_region_id;
Line: 2062

select wrtl.region_id,
       wrtl.postal_code_from,
       wrtl.city,
       wrtl.state,
       null,
       wrtl.country
from   wsh_regions_v wrtl
where  wrtl.region_id = cp_region_id;
Line: 2076

select count(origin_id)
from   fte_location_mileages;
Line: 2081

select flp.location_id
from   fte_location_parameters flp
where  flp.include_mileage_flag = cp_enabled_flag_y;
Line: 2088

select wrl.location_id,
       wrl.region_id
from   wsh_region_locations wrl
where  wrl.location_id = cp_location_id
and    wrl.region_type = cp_region_type;
Line: 2097

select fmtc.column_id,
       fmtc.column_type,
       fmtc.start_position,
       fmtc.length,
       fmtc.column_delimiter,
       fmtc.column_sequence
from   fte_mile_template_columns fmtc
where  fmtc.template_id = cp_template_id
order by fmtc.column_sequence;
Line: 2110

select fmca.column_attribute_id,
       fmca.code,
       fmca.attribute_delimiter,
       fmca.space_padding,
       fmca.sequence_id,
       fmca.length
from   fte_mile_column_attributes fmca
where  fmca.column_id = cp_column_id
and    fmca.enabled_flag = cp_enabled_flag
order by fmca.sequence_id;
Line: 2125

select fmca.column_attribute_id,
       fmca.code,
       fmca.attribute_delimiter,
       fmca.space_padding,
       fmca.sequence_id,
       fmca.length
from   fte_mile_column_attributes fmca
where  fmca.column_id = cp_column_id
and    fmca.enabled_flag = cp_enabled_flag
and    fmca.sequence_id = cp_seq_id;
Line: 2138

select region_type
from   wsh_regions
where  region_id = cp_region_id;
Line: 2143

select region_id,
       region_type
from   wsh_regions
where  parent_region_id = cp_region_id;
Line: 2149

select location_id
from   wsh_region_locations
where  region_id = cp_region_id;
Line: 2154

select include_mileage_flag
from   fte_location_parameters
where  location_id = cp_location_id;
Line: 2237

   l_column_id_tab.DELETE;
Line: 2238

   l_column_type_tab.DELETE;
Line: 2239

   l_column_start_position_tab.DELETE;
Line: 2240

   l_column_length_tab.DELETE;
Line: 2241

   l_column_delimiter_tab.DELETE;
Line: 2242

   l_column_sequence_id_tab.DELETE;
Line: 2244

   l_odattr_column_attr_id_tab.DELETE;
Line: 2245

   l_odattr_code_tab.DELETE;
Line: 2246

   l_odattr_attr_delimiter_tab.DELETE;
Line: 2247

   l_odattr_space_padding_tab.DELETE;
Line: 2248

   l_odattr_sequence_id_tab.DELETE;
Line: 2249

   l_odattr_length_tab.DELETE;
Line: 2251

   l_retdis_column_attr_id_tab.DELETE;
Line: 2252

   l_retdis_code_tab.DELETE;
Line: 2253

   l_retdis_attr_delimiter_tab.DELETE;
Line: 2254

   l_retdis_space_padding_tab.DELETE;
Line: 2255

   l_retdis_sequence_id_tab.DELETE;
Line: 2256

   l_retdis_length_tab.DELETE;
Line: 2258

   l_rettim_column_attr_id_tab.DELETE;
Line: 2259

   l_rettim_code_tab.DELETE;
Line: 2260

   l_rettim_attr_delimiter_tab.DELETE;
Line: 2261

   l_rettim_space_padding_tab.DELETE;
Line: 2262

   l_rettim_sequence_id_tab.DELETE;
Line: 2263

   l_rettim_length_tab.DELETE;
Line: 3227

               l_sub_regions_tab.DELETE;
Line: 3228

               l_sub_region_type_tab.DELETE;
Line: 3282

                           l_parent_sub_regions_tab.DELETE;
Line: 3299

                     l_sub_par_cont_tab.DELETE;
Line: 3316

               l_match_locations_tab.DELETE;
Line: 3383

        l_origin_region_id.DELETE;
Line: 3384

        l_origin_location_id.DELETE;
Line: 3387

        l_tmp_orig_reg.DELETE;
Line: 3388

        l_tmp_orig_loc.DELETE;
Line: 3605

      l_parent_regions_tab.DELETE;
Line: 3606

      l_match_region_id.DELETE;
Line: 3607

      l_sub_par_cont_tab.DELETE;
Line: 3608

      l_match_locations_tab.DELETE;
Line: 3609

      l_destination_region_id.DELETE;
Line: 3610

      l_destination_location_id.DELETE;
Line: 3611

      l_tmp_dest_reg.DELETE;
Line: 3612

      l_tmp_dest_loc.DELETE;
Line: 3654

               l_sub_regions_tab.DELETE;
Line: 3655

               l_sub_region_type_tab.DELETE;
Line: 3708

                           l_parent_sub_regions_tab.DELETE;
Line: 3725

                     l_sub_par_cont_tab.DELETE;
Line: 3741

               l_match_locations_tab.DELETE;
Line: 3805

        l_destination_region_id.DELETE;
Line: 3806

        l_destination_location_id.DELETE;
Line: 3809

        l_tmp_dest_reg.DELETE;
Line: 3810

        l_tmp_dest_loc.DELETE;
Line: 3984

       l_reg_code_region_id_tab.DELETE;
Line: 3985

       l_reg_code_state_tab.DELETE;
Line: 3986

       l_reg_code_country_tab.DELETE;
Line: 4096

       l_reg_code_region_id_tab.DELETE;
Line: 4097

       l_reg_code_state_tab.DELETE;
Line: 4098

       l_reg_code_country_tab.DELETE;
Line: 4179

   l_origin_region_id.DELETE;
Line: 4193

   l_destination_region_id.DELETE;
Line: 4206

   l_od_check_tab.DELETE;
Line: 4318

      l_remove_idx_tab.DELETE;
Line: 4319

      l_distance_tab_origin_id_tab.DELETE;
Line: 4320

      l_distance_tab_distance_id_tab.DELETE;
Line: 4357

            l_od_pair_tab.DELETE(l_remove_idx_tab(jjk));
Line: 4371

   insert into fte_mile_download_files(DOWNLOAD_FILE_ID,
                                       FILE_NAME,
                                       DOWNLOAD_FILE_EXTENSION,
                                       TEMPLATE_ID,
                                       DOWNLOAD_DATE,
                                       UPLOAD_ID,
                                       UPLOAD_DATE,
                                       IDENTIFIER_TYPE,
                                       CREATION_DATE,
                                       CREATED_BY,
                                       LAST_UPDATE_DATE,
                                       LAST_UPDATED_BY,
                                       LAST_UPDATE_LOGIN,
                                       PROGRAM_APPLICATION_ID,
                                       PROGRAM_ID,
                                       PROGRAM_UPDATE_DATE,
                                       REQUEST_ID)
                                values(FTE_MILE_DOWNLOAD_FILES_S.NEXTVAL,
                                       substr(p_file_name,1,8),
                                       p_file_extension,
                                       p_template_id,
                                       null,
                                       null,
                                       null,
                                       p_distance_profile,
                                       sysdate,
                                       fnd_global.user_id,
                                       sysdate,
                                       fnd_global.user_id,
                                       fnd_global.login_id,
                                       null,
                                       null,
                                       null,
                                       null)
                             RETURNING DOWNLOAD_FILE_ID INTO l_download_file_id;
Line: 4814

            WSH_DEBUG_SV.log(l_module_name,'insert into fte_mile_download_lines - line number = ',l_line_ctr);
Line: 4816

         insert into fte_mile_download_lines(DOWNLOAD_FILE_ID,
                                             LINE_NUMBER,
                                             ORIGIN_ID,
                                             DESTINATION_ID,
                                             CREATION_DATE,
                                             CREATED_BY,
                                             LAST_UPDATE_DATE,
                                             LAST_UPDATED_BY,
                                             LAST_UPDATE_LOGIN,
                                             PROGRAM_APPLICATION_ID,
                                             PROGRAM_ID,
                                             PROGRAM_UPDATE_DATE,
                                             REQUEST_ID)
                                      values(l_download_file_id,
                                             l_line_ctr,
                                             l_od_pair_tab(axe1).origin_id,
                                             l_od_pair_tab(axe1).destination_id,
                                             sysdate,
                                             fnd_global.user_id,
                                             sysdate,
                                             fnd_global.user_id,
                                             fnd_global.login_id,
                                             null,
                                             null,
                                             null,
                                             null);
Line: 4860

      WSH_DEBUG_SV.logmsg(l_module_name,'If we are here then all has gone well update the fte_mile_download_files table with the download date');
Line: 4863

   update fte_mile_download_files
   set download_date = sysdate
   where download_file_id = l_download_file_id;