DBA Data[Home] [Help]

APPS.HXC_GENERIC_RETRIEVAL_PKG SQL Statements

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

Line: 43

   t_timecard_deleted              DBMS_SQL.varchar2_table;
Line: 94

   t_detail_deleted                DBMS_SQL.varchar2_table;
Line: 122

      SELECT hxc_transactions_s.NEXTVAL
        FROM SYS.DUAL;
Line: 127

      SELECT /*+ INDEX_FFS(TXD HXC_TRANSACTION_DETAILS_PK) */
             hxc_transaction_details_s.NEXTVAL
        FROM hxc_transaction_details txd
       WHERE ROWNUM <= p_max;
Line: 134

   PROCEDURE insert_query (p_query LONG
/*PROFILER(457): LONG (advise: migrate to LOB) is Oracle 7.0 (deprecated in 8.1.5) */
                                       , p_type VARCHAR2)
   IS
      PRAGMA AUTONOMOUS_TRANSACTION;
Line: 140

      DELETE FROM hxc_debug_text
            WHERE process = 'RETRIEVAL' AND TYPE = p_type;
Line: 143

      INSERT INTO hxc_debug_text
                  (process, TYPE, text
                  )
           VALUES ('RETRIEVAL', p_type, p_query
                  );
Line: 150

   END insert_query;
Line: 236

 EXISTS ( select 1 from hxc_time_attribute_usages usage,
                        hxc_time_attributes att
          where usage.time_building_Block_id  = detail_block.time_building_block_id AND
                usage.time_building_block_ovn = detail_block.object_version_number
          and
                att.time_attribute_id = usage.time_attribute_id and
                att.';
Line: 245

 EXISTS ( select 1 from hxc_time_attribute_usages usage,
                        hxc_time_attributes att
          where usage.time_building_Block_id  = timecard_block.time_building_block_id AND
                usage.time_building_block_ovn = timecard_block.object_version_number
          and
                att.time_attribute_id = usage.time_attribute_id and
                att.';
Line: 514

         SELECT        rr.retrieval_range_id, rr.range_start, rr.range_stop
                  FROM hxc_retrieval_ranges rr
                 WHERE rr.retrieval_process_id = p_process_id
                   AND rr.transaction_id = 0
                   AND (   rr.where_clause = g_params.p_where_clause
                        OR rr.where_clause IS NULL
                       )
              ORDER BY rr.seq
         FOR UPDATE OF transaction_id NOWAIT;
Line: 594

            SELECT TYPE
              FROM hxc_debug_text
             WHERE process = p_range;
Line: 608

	SELECT DISTINCT tbb.resource_id
	FROM   hxc_latest_details tbb
	WHERE  tbb.last_update_date > :p_since_date ';
Line: 614

	SELECT DISTINCT tbb.resource_id
	FROM   hxc_latest_details tbb
	WHERE  tbb.last_update_date > :p_since_date ';
Line: 788

         insert_query (l_dynamic_sql, 'RANGE');
Line: 791

      PROCEDURE insert_rr_resources (
         p_resource_list   IN              DBMS_SQL.number_table,
         p_rr_id           IN OUT NOCOPY   NUMBER
      )
      IS
         CURSOR csr_get_rr_id
         IS
            SELECT hxc_retrieval_ranges_s.NEXTVAL
              FROM DUAL;
Line: 806

            l_proc := g_package || '.insert_rr_resources';
Line: 819

            INSERT INTO hxc_retrieval_range_resources
                        (retrieval_range_id, resource_id
                        )
                 VALUES (l_rr_id, p_resource_list (rrx)
                        );
Line: 829

      END insert_rr_resources;
Line: 836

            SELECT 'x'
              FROM hxc_retrieval_ranges rr
             WHERE rr.retrieval_process_id = p_process_id
               AND (   rr.where_clause IS NULL
                    OR rr.where_clause = g_params.p_where_clause
                   )
               AND rr.transaction_id = 0;
Line: 846

            SELECT 'x'
              FROM hxc_transactions tx
             WHERE tx.status = 'IN PROGRESS'
               AND tx.TYPE = 'RETRIEVAL'
               AND tx.transaction_process_id = p_process_id
               AND EXISTS (SELECT 'y'
                             FROM hxc_retrieval_ranges rr
                            WHERE rr.transaction_id = tx.transaction_id
                             AND (   rr.where_clause IS NULL
                                      OR rr.where_clause = g_params.p_where_clause)
                            );
Line: 959

                     hr_utility.TRACE ('Inserting rows');
Line: 1021

                        insert_rr_resources (p_resource_list      => t_resource_id,
                                             p_rr_id              => l_rr_id
                                            );
Line: 1052

                        t_resource_id.DELETE;
Line: 1064

                     INSERT INTO hxc_retrieval_ranges
                                 (retrieval_range_id,
                                  retrieval_process_id,
                                  range_start, range_stop,
                                  seq, transaction_id, where_clause,
                                  unique_params, conc_request_id
                                 )
                          VALUES (t_rr_id (rrx),
                                  t_retrieval_process_id (rrx),
                                  t_range_start (rrx), t_range_stop (rrx),
                                  t_seq (rrx), 0, t_where_clause (rrx),
                                  g_params.p_unique_params, g_conc_request_id
                                 );
Line: 1080

                     hr_utility.TRACE ('After bulk insert');
Line: 1113

               UPDATE hxc_retrieval_ranges rr
                  SET rr.transaction_id =
                                    hxc_generic_retrieval_pkg.g_transaction_id,
                      rr.conc_request_id = g_conc_request_id
                WHERE rr.retrieval_range_id = r_range.retrieval_range_id;
Line: 1301

         SELECT TO_CHAR (time_building_block_id) tbb_id,
                TO_CHAR (object_version_number) tbb_ovn
           FROM hxc_retrieval_range_blks;
Line: 1306

      l_select_from           VARCHAR2 (250)
         := '
SELECT /*+ ordered */
       tbb_latest.time_building_block_id,
       tbb_latest.object_version_number insert_latest
FROM    hxc_retrieval_ranges rr
,       hxc_retrieval_range_resources rrr
,       hxc_latest_details tbb_latest ';
Line: 1323

        tbb_latest.last_update_date >= :p_since_date ';
Line: 1339

AND NOT EXISTS (select ''x''
			FROM	hxc_transaction_details txd
			,	hxc_transactions tx
			WHERE	tx.transaction_process_id	= :p_process_id
			AND	tx.type				= ''RETRIEVAL''
			AND	tx.status			= ''SUCCESS''
			AND	tx.transaction_id		= txd.transaction_id
			AND	txd.status			= ''SUCCESS''
		AND	txd.time_building_block_id	= tbb_latest.time_building_block_id
		AND     txd.time_building_block_ovn     = tbb_latest.object_version_number) ';
Line: 1395

            hr_utility.TRACE ('About to delete rows');
Line: 1398

         DELETE FROM hxc_retrieval_range_blks;
Line: 1411

                  l_select_from
               || l_where
               || l_not_exists
               || l_app_set
               || l_ret_criteria_clause;
Line: 1421

                     l_select_from
                  || l_where
                  || l_day_ex
                  || l_not_exists
                  || l_app_set
                  || l_ret_criteria_clause;
Line: 1430

                     l_select_from
                  || l_where
                  || l_day_in
                  || l_not_exists
                  || l_app_set
                  || l_ret_criteria_clause;
Line: 1458

         insert_query (l_ret_range_query, 'RET_RANGE_BLKS');
Line: 1537

                  INSERT INTO hxc_retrieval_range_blks
                              (time_building_block_id, object_version_number
                              )
                       VALUES (t_tbb_id (rrx), t_tbb_ovn (rrx)
                              );
Line: 1542

               t_tbb_id.DELETE;
Line: 1543

               t_tbb_ovn.DELETE;
Line: 1582

         SELECT time_building_block_id || ':' || max_ovn ovn
           FROM hxc_max_ovn;
Line: 1587

         SELECT   /*+ ORDERED INDEX(TXD) INDEX(TX) USE_NL(TXD, TX) */
                  txd.time_building_block_id,
                  NVL (MAX (txd.time_building_block_ovn), 0)
             FROM hxc_retrieval_range_blks rrb,
                  hxc_transaction_details txd,
                  hxc_transactions tx
            WHERE tx.transaction_process_id = p_retrieval_process_id
              AND tx.TYPE = 'RETRIEVAL'
              AND tx.status = 'SUCCESS'
              AND tx.transaction_id = txd.transaction_id
              AND txd.status = 'SUCCESS'
              AND rrb.time_building_block_id = txd.time_building_block_id
              AND rrb.object_version_number > txd.time_building_block_ovn
         GROUP BY txd.time_building_block_id;
Line: 1609

              SELECT   txd.time_building_block_id,
                       NVL (MAX (txd.time_building_block_ovn), 0)
                  FROM hxc_transaction_details txd, hxc_transactions tx
                 WHERE tx.transaction_process_id = p_retrieval_process_id
                   AND tx.TYPE = 'RETRIEVAL'
                   AND tx.status = 'SUCCESS'
                   AND tx.transaction_id = txd.transaction_id
                   AND txd.status = 'SUCCESS'
                   AND EXISTS (
                          SELECT 'x'
                            FROM hxc_latest_details tbb_det
                           WHERE tbb_det.start_time <= p_end_date
                             AND tbb_det.stop_time >= p_start_date
                             AND tbb_det.last_update_date > p_since_date
                             AND tbb_det.time_building_block_id =
                                                         txd.time_building_block_id
                             AND tbb_det.object_version_number >
                                                        txd.time_building_block_ovn
                             AND tbb_det.resource_id BETWEEN l_pkg_range_start
                                                         AND l_pkg_range_stop)
         GROUP BY txd.time_building_block_id;
Line: 1633

              SELECT   txd.time_building_block_id,
                       NVL (MAX (txd.time_building_block_ovn), 0)
                  FROM hxc_transaction_details txd, hxc_transactions tx
                 WHERE tx.transaction_process_id = p_retrieval_process_id
                   AND tx.TYPE = 'RETRIEVAL'
                   AND tx.status = 'SUCCESS'
                   AND tx.transaction_id = txd.transaction_id
                   AND txd.status = 'SUCCESS'
                   AND EXISTS (
                          SELECT 'x'
                            FROM hxc_latest_details tbb_det
                           WHERE tbb_det.time_building_block_id =
                                                         txd.time_building_block_id
                             AND tbb_det.last_update_date > p_since_date
                             AND tbb_det.object_version_number >
                                                        txd.time_building_block_ovn
                             AND tbb_det.resource_id BETWEEN l_pkg_range_start
                                                         AND l_pkg_range_stop)
         GROUP BY txd.time_building_block_id;
Line: 1673

      DELETE FROM hxc_max_ovn;
Line: 1704

                  INSERT INTO hxc_max_ovn
                              (time_building_block_id, max_ovn
                              )
                       VALUES (t_max_ovn_bb_id (x), t_max_ovn (x)
                              );
Line: 1709

               t_max_ovn_bb_id.DELETE;
Line: 1710

               t_max_ovn.DELETE;
Line: 1740

                     INSERT INTO hxc_max_ovn
                                 (time_building_block_id, max_ovn
                                 )
                          VALUES (t_max_ovn_bb_id (x), t_max_ovn (x)
                                 );
Line: 1745

                  t_max_ovn_bb_id.DELETE;
Line: 1746

                  t_max_ovn.DELETE;
Line: 1777

                     hr_utility.TRACE ('inserting');
Line: 1781

                     INSERT INTO hxc_max_ovn
                                 (time_building_block_id, max_ovn
                                 )
                          VALUES (t_max_ovn_bb_id (x), t_max_ovn (x)
                                 );
Line: 1786

                  t_max_ovn_bb_id.DELETE;
Line: 1787

                  t_max_ovn.DELETE;
Line: 1874

      IF (p_mode = 'I')                                 -- insert transactions
      THEN
-- check to see if header already inserted
         IF (hxc_generic_retrieval_pkg.g_transaction_id IS NOT NULL)
         THEN
            IF g_debug
            THEN
               hr_utility.set_location ('Processing ' || l_proc, 7);
Line: 1885

            UPDATE hxc_transactions
               SET status = p_status,
                   exception_description = p_description
             WHERE transaction_id = hxc_generic_retrieval_pkg.g_transaction_id;
Line: 1907

            INSERT INTO hxc_transactions
                        (transaction_id,
                         transaction_process_id, transaction_date,
                         transaction_code,
                         TYPE, status, exception_description
                        )
                 VALUES (hxc_generic_retrieval_pkg.g_transaction_id,
                         p_transaction_process_id, SYSDATE,
                         NVL (g_params.p_transaction_code,
                              TO_CHAR (SYSDATE, 'DD/MM/YYYY')
                             ),
                         'RETRIEVAL', p_status, p_description
                        );
Line: 1951

               INSERT INTO hxc_transaction_details
                           (transaction_detail_id,
                            time_building_block_id,
                            time_building_block_ovn,
                            transaction_id,
                            status,
                            exception_description
                           )
                    VALUES (hxc_generic_retrieval_pkg.t_tx_error_transaction_id
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_bb_id
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_bb_ovn
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.g_transaction_id,
                            hxc_generic_retrieval_pkg.t_tx_error_status
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_exception
                                                                     (tx_error)
                           );
Line: 1973

            hxc_generic_retrieval_pkg.t_tx_error_transaction_id.DELETE;
Line: 1974

            hxc_generic_retrieval_pkg.t_tx_error_bb_id.DELETE;
Line: 1975

            hxc_generic_retrieval_pkg.t_tx_error_bb_ovn.DELETE;
Line: 1976

            hxc_generic_retrieval_pkg.t_tx_error_status.DELETE;
Line: 1977

            hxc_generic_retrieval_pkg.t_tx_error_exception.DELETE;
Line: 1984

      ELSIF (p_mode = 'U')                              -- update transactions
      THEN
         IF g_debug
         THEN
            hr_utility.set_location ('Processing ' || l_proc, 110);
Line: 1998

         INSERT INTO hxc_transactions
                     (transaction_id, transaction_process_id,
                      transaction_date, TYPE, status,
                      exception_description
                     )
              VALUES (l_tx_id, p_transaction_process_id,
                      SYSDATE, 'RETRIEVAL_STATUS_UPDATE', p_status,
                      p_description
                     );
Line: 2012

            UPDATE hxc_transactions
               SET status = p_status
             WHERE transaction_id = hxc_generic_retrieval_pkg.g_transaction_id;
Line: 2018

            UPDATE hxc_transactions
               SET status = p_status,
                   exception_description = p_description
             WHERE transaction_id = hxc_generic_retrieval_pkg.g_transaction_id;
Line: 2049

               INSERT INTO hxc_transaction_details
                           (transaction_detail_id,
                            time_building_block_id,
                            time_building_block_ovn,
                            transaction_id,
                            status,
                            exception_description
                           )
                    VALUES (hxc_generic_retrieval_pkg.t_tx_time_transaction_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_time_bb_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_time_bb_ovn
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.g_transaction_id,
                            hxc_generic_retrieval_pkg.t_tx_time_status
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_time_exception
                                                                    (tx_detail)
                           );
Line: 2091

               INSERT INTO hxc_transaction_details
                           (transaction_detail_id,
                            time_building_block_id,
                            time_building_block_ovn,
                            transaction_id,
                            status,
                            exception_description
                           )
                    VALUES (hxc_generic_retrieval_pkg.t_tx_day_transaction_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_day_bb_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_day_bb_ovn
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.g_transaction_id,
                            hxc_generic_retrieval_pkg.t_tx_day_status
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_day_exception
                                                                    (tx_detail)
                           );
Line: 2133

               INSERT INTO hxc_transaction_details
                           (transaction_detail_id,
                            time_building_block_id,
                            time_building_block_ovn,
                            transaction_id,
                            status,
                            exception_description
                           )
                    VALUES (hxc_generic_retrieval_pkg.t_tx_detail_transaction_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_detail_bb_id
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_detail_bb_ovn
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.g_transaction_id,
                            hxc_generic_retrieval_pkg.t_tx_detail_status
                                                                    (tx_detail),
                            hxc_generic_retrieval_pkg.t_tx_detail_exception
                                                                    (tx_detail)
                           );
Line: 2189

               INSERT INTO hxc_transaction_details
                           (transaction_detail_id,
                            time_building_block_id,
                            time_building_block_ovn,
                            transaction_id,
                            status,
                            exception_description
                           )
                    VALUES (hxc_generic_retrieval_pkg.t_tx_error_transaction_id
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_bb_id
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_bb_ovn
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.g_transaction_id,
                            hxc_generic_retrieval_pkg.t_tx_error_status
                                                                     (tx_error),
                            hxc_generic_retrieval_pkg.t_tx_error_exception
                                                                     (tx_error)
                           );
Line: 2211

            hxc_generic_retrieval_pkg.t_tx_error_transaction_id.DELETE;
Line: 2212

            hxc_generic_retrieval_pkg.t_tx_error_bb_id.DELETE;
Line: 2213

            hxc_generic_retrieval_pkg.t_tx_error_bb_ovn.DELETE;
Line: 2214

            hxc_generic_retrieval_pkg.t_tx_error_status.DELETE;
Line: 2215

            hxc_generic_retrieval_pkg.t_tx_error_exception.DELETE;
Line: 2259

         SELECT -1, rtr.time_recipient_id, rtr.mapping_id
           FROM hxc_retrieval_processes rtr
          WHERE rtr.NAME = 'BEE Retrieval Process';
Line: 2265

         SELECT rtr.retrieval_process_id, rtr.time_recipient_id,
                rtr.mapping_id
           FROM hxc_retrieval_processes rtr
          WHERE rtr.NAME = p_retrieval_process;
Line: 2352

            t_bb (l_ind).time_deleted := t_timecard_deleted (x);
Line: 2370

            t_bb (l_ind).detail_deleted := t_detail_deleted (x);
Line: 2441

         t_timecard_bb_id.DELETE;
Line: 2442

         t_timecard_ovn.DELETE;
Line: 2443

         t_timecard_max_ovn.DELETE;
Line: 2444

         t_timecard_start_time.DELETE;
Line: 2445

         t_timecard_stop_time.DELETE;
Line: 2446

         t_timecard_comment_text.DELETE;
Line: 2447

         t_timecard_deleted.DELETE;
Line: 2448

         t_day_bb_id.DELETE;
Line: 2449

         t_day_start_time.DELETE;
Line: 2450

         t_day_stop_time.DELETE;
Line: 2451

         t_day_ovn.DELETE;
Line: 2452

         t_day_max_ovn.DELETE;
Line: 2453

         t_detail_bb_id.DELETE;
Line: 2454

         t_detail_parent_id.DELETE;
Line: 2455

         t_detail_resource_type.DELETE;
Line: 2456

         t_detail_resource_id.DELETE;
Line: 2457

         t_detail_comment_text.DELETE;
Line: 2458

         t_detail_start_time.DELETE;
Line: 2459

         t_detail_stop_time.DELETE;
Line: 2460

         t_detail_measure.DELETE;
Line: 2461

         t_detail_scope.DELETE;
Line: 2462

         t_detail_type.DELETE;
Line: 2463

         t_detail_ovn.DELETE;
Line: 2464

         t_detail_deleted.DELETE;
Line: 2465

         t_detail_max_ovn.DELETE;
Line: 2466

         t_detail_uom.DELETE;
Line: 2467

         t_detail_date_from.DELETE;
Line: 2468

         t_detail_date_to.DELETE;
Line: 2469

         t_detail_approval_status.DELETE;
Line: 2470

         t_detail_approval_style_id.DELETE;
Line: 2471

         t_detail_ta_id.DELETE;
Line: 2472

         t_detail_bld_blk_info_type_id.DELETE;
Line: 2473

         t_detail_attribute1.DELETE;
Line: 2474

         t_detail_attribute2.DELETE;
Line: 2475

         t_detail_attribute3.DELETE;
Line: 2476

         t_detail_attribute4.DELETE;
Line: 2477

         t_detail_attribute5.DELETE;
Line: 2478

         t_detail_attribute6.DELETE;
Line: 2479

         t_detail_attribute7.DELETE;
Line: 2480

         t_detail_attribute8.DELETE;
Line: 2481

         t_detail_attribute9.DELETE;
Line: 2482

         t_detail_attribute10.DELETE;
Line: 2483

         t_detail_attribute11.DELETE;
Line: 2484

         t_detail_attribute12.DELETE;
Line: 2485

         t_detail_attribute13.DELETE;
Line: 2486

         t_detail_attribute14.DELETE;
Line: 2487

         t_detail_attribute15.DELETE;
Line: 2488

         t_detail_attribute16.DELETE;
Line: 2489

         t_detail_attribute17.DELETE;
Line: 2490

         t_detail_attribute18.DELETE;
Line: 2491

         t_detail_attribute19.DELETE;
Line: 2492

         t_detail_attribute20.DELETE;
Line: 2493

         t_detail_attribute21.DELETE;
Line: 2494

         t_detail_attribute22.DELETE;
Line: 2495

         t_detail_attribute23.DELETE;
Line: 2496

         t_detail_attribute24.DELETE;
Line: 2497

         t_detail_attribute25.DELETE;
Line: 2498

         t_detail_attribute26.DELETE;
Line: 2499

         t_detail_attribute27.DELETE;
Line: 2500

         t_detail_attribute28.DELETE;
Line: 2501

         t_detail_attribute29.DELETE;
Line: 2502

         t_detail_attribute30.DELETE;
Line: 2503

         t_detail_attribute_category.DELETE;
Line: 3830

         SELECT COUNT (*)
           FROM hxc_time_building_blocks
          WHERE SCOPE = 'TIMECARD';
Line: 3836

    SELECT value
    FROM nls_session_parameters
    WHERE parameter = 'NLS_NUMERIC_CHARACTERS';
Line: 3999

               hxc_generic_retrieval_pkg.t_detail_bld_blks (l_bld_blk_index).deleted :=
                                                   t_bb (p_cnt).detail_deleted;
Line: 4540

                             c_tab            => t_detail_deleted,
                             cnt              => l_max_array_size,
                             lower_bound      => 1
                            );
Line: 4594

                             c_tab            => t_timecard_deleted,
                             cnt              => l_max_array_size,
                             lower_bound      => 1
                            );
Line: 4834

                                c_tab         => t_detail_deleted
                               );
Line: 4870

                                c_tab         => t_timecard_deleted
                               );
Line: 4922

      l_prefs.DELETE;
Line: 4923

      l_ret_rules.DELETE;
Line: 4924

      l_rtr_outcomes.DELETE;
Line: 5019

            t_time_bld_blk_info.DELETE;
Line: 5033

            t_day_bld_blk_info.DELETE;
Line: 5052

            t_detail_bld_blk_info.DELETE;
Line: 5060

            IF (    t_bb (cnt).detail_deleted = 'Y'
                AND t_bb (cnt).detail_max_ovn = 0
               )
            THEN
               l_day_retrieve := FALSE;
Line: 5093

                             p_bb_deleted             => t_bb (cnt).time_deleted,
                             p_bb_start_time          => t_bb (cnt).day_start_time,
                             p_bb_stop_time           => t_bb (cnt).day_stop_time,
                             p_bb_id                  => t_bb (cnt).detail_bb_id,
                             p_bb_ovn                 => t_bb (cnt).detail_ovn,
                             p_process                => g_params.p_process,
                             p_prefs                  => l_prefs,
                             p_ret_rules              => l_ret_rules,
                             p_rtr_outcomes           => l_rtr_outcomes,
                             p_tc_bb_id               => t_bb (cnt).time_bb_id,
                             p_tc_bb_ovn              => t_bb (cnt).time_ovn,
                             p_timecard_retrieve      => l_timecard_retrieve,
                             p_day_retrieve           => l_day_retrieve,
                             p_tc_locked              => l_tc_locked,
                             p_tc_first_lock          => l_tc_first_lock,
                             p_bb_skipped_reason      => l_bb_skipped_reason
                            );
Line: 5111

            END IF;                         -- chk deleted and not transferred
Line: 5117

			l_bb_skipped_reason := 'Block DELETED and Not Transferred earlier';
Line: 5330

      t_bb.DELETE;
Line: 5339

         hxc_generic_retrieval_utils.g_resources.DELETE;
Line: 5344

                         (p_mode                        => 'I'       -- Insert
                                                              ,
                          p_transaction_process_id      => g_retrieval_process_id,
                          p_status                      => 'WARNINGS',
                          p_description                 => 'HXC_0012_GNRET_NO_TIMECARDS'
                         );
Line: 5356

         t_bb.DELETE;
Line: 5357

         hxc_generic_retrieval_utils.g_resources.DELETE;
Line: 5362

                         (p_mode                        => 'I'       -- Insert
                                                              ,
                          p_transaction_process_id      => g_retrieval_process_id,
                          p_status                      => 'WARNINGS',
                          p_description                 => 'HXC_0013_GNRET_NO_BLD_BLKS'
                         );
Line: 5372

                         (p_mode                        => 'I'       -- Insert
                                                              ,
                          p_transaction_process_id      => g_retrieval_process_id,
                          p_status                      => 'WARNINGS',
                          p_description                 => 'HXC_0013_GNRET_NO_BLD_BLKS'
                         );
Line: 5385

                         (p_mode                        => 'I'       -- Insert
                                                              ,
                          p_transaction_process_id      => g_retrieval_process_id,
                          p_status                      => 'WARNINGS',
                          p_description                 => SUBSTR (SQLERRM,
                                                                   1,
                                                                   2000
                                                                  )
                         );
Line: 5417

         SELECT 'x'
           FROM hxc_tmp_bld_blks;
Line: 5422

         SELECT   /*+ ORDERED  INDEX(TBB) INDEX(DAY) USE_NL(TBB, DAY) */
                  tbb.time_building_block_id, tbb.object_version_number,
                  tbb.parent_building_block_id, tbb.resource_type,
                  tbb.resource_id, tbb.comment_text,
                  DECODE (tbb.TYPE,
                          'MEASURE', DAY.start_time,
                          tbb.start_time
                         ),
                  DECODE (tbb.TYPE, 'MEASURE', DAY.stop_time, tbb.stop_time),
                  DECODE (tbb.TYPE,
                          'MEASURE', tbb.measure,
                          (tbb.stop_time - tbb.start_time
                          ) * 24
                         ),
                  tbb.SCOPE, tbb.TYPE,
                  DECODE (tbb.TYPE, 'MEASURE', tbb.unit_of_measure, 'HOURS'),
                  tbb.date_from, tbb.date_to, tbb.approval_status,
                  tbb.approval_style_id
             FROM hxc_tmp_bld_blks tmp,
                  hxc_time_building_blocks tbb,
                  hxc_time_building_blocks DAY
            WHERE tbb.time_building_block_id = tmp.time_building_block_id
              AND tbb.object_version_number = tmp.time_building_block_ovn
              AND DAY.time_building_block_id = tbb.parent_building_block_id
              AND DAY.object_version_number = tbb.parent_building_block_ovn
         ORDER BY tmp.seq;
Line: 5451

         SELECT   /*+ ORDERED  INDEX(TAU) INDEX(TA) USE_NL(TAU, TA) */
                  tmp.time_building_block_id, ta.bld_blk_info_type_id,
                  ta.attribute_category, ta.attribute1, ta.attribute2,
                  ta.attribute3, ta.attribute4, ta.attribute5, ta.attribute6,
                  ta.attribute7, ta.attribute8, ta.attribute9, ta.attribute10,
                  ta.attribute11, ta.attribute12, ta.attribute13,
                  ta.attribute14, ta.attribute15, ta.attribute16,
                  ta.attribute17, ta.attribute18, ta.attribute19,
                  ta.attribute20, ta.attribute21, ta.attribute22,
                  ta.attribute23, ta.attribute24, ta.attribute25,
                  ta.attribute26, ta.attribute27, ta.attribute28,
                  ta.attribute29, ta.attribute30
             FROM hxc_tmp_bld_blks tmp,
                  hxc_time_attribute_usages tau,
                  hxc_time_attributes ta
            WHERE tau.time_building_block_id = tmp.time_building_block_id
              AND tau.time_building_block_ovn = tmp.time_building_block_ovn
              AND ta.time_attribute_id = tau.time_attribute_id
         ORDER BY tmp.seq;
Line: 5697

               INSERT INTO hxc_tmp_bld_blks
                           (seq, time_building_block_id,
                            time_building_block_ovn
                           )
                    VALUES (t_old_detail_seq (x), t_old_detail_bb_id (x),
                            t_old_detail_ovn (x)
                           );
Line: 5949

            t_bb.DELETE;
Line: 5950

            t_old_bb_id.DELETE;
Line: 5951

            t_old_att_bb_id.DELETE;
Line: 5952

            t_old_parent_id.DELETE;
Line: 5953

            t_old_resource_type.DELETE;
Line: 5954

            t_old_resource_id.DELETE;
Line: 5955

            t_old_comment_text.DELETE;
Line: 5956

            t_old_start_time.DELETE;
Line: 5957

            t_old_stop_time.DELETE;
Line: 5958

            t_old_measure.DELETE;
Line: 5959

            t_old_scope.DELETE;
Line: 5960

            t_old_type.DELETE;
Line: 5961

            t_old_uom.DELETE;
Line: 5962

            t_old_date_from.DELETE;
Line: 5963

            t_old_date_to.DELETE;
Line: 5964

            t_old_approval_status.DELETE;
Line: 5965

            t_old_approval_style_id.DELETE;
Line: 5966

            t_old_bld_blk_info_type_id.DELETE;
Line: 5967

            t_old_attribute1.DELETE;
Line: 5968

            t_old_attribute2.DELETE;
Line: 5969

            t_old_attribute3.DELETE;
Line: 5970

            t_old_attribute4.DELETE;
Line: 5971

            t_old_attribute5.DELETE;
Line: 5972

            t_old_attribute6.DELETE;
Line: 5973

            t_old_attribute7.DELETE;
Line: 5974

            t_old_attribute8.DELETE;
Line: 5975

            t_old_attribute9.DELETE;
Line: 5976

            t_old_attribute10.DELETE;
Line: 5977

            t_old_attribute11.DELETE;
Line: 5978

            t_old_attribute12.DELETE;
Line: 5979

            t_old_attribute13.DELETE;
Line: 5980

            t_old_attribute14.DELETE;
Line: 5981

            t_old_attribute15.DELETE;
Line: 5982

            t_old_attribute16.DELETE;
Line: 5983

            t_old_attribute17.DELETE;
Line: 5984

            t_old_attribute18.DELETE;
Line: 5985

            t_old_attribute19.DELETE;
Line: 5986

            t_old_attribute20.DELETE;
Line: 5987

            t_old_attribute21.DELETE;
Line: 5988

            t_old_attribute22.DELETE;
Line: 5989

            t_old_attribute23.DELETE;
Line: 5990

            t_old_attribute24.DELETE;
Line: 5991

            t_old_attribute25.DELETE;
Line: 5992

            t_old_attribute26.DELETE;
Line: 5993

            t_old_attribute27.DELETE;
Line: 5994

            t_old_attribute28.DELETE;
Line: 5995

            t_old_attribute29.DELETE;
Line: 5996

            t_old_attribute30.DELETE;
Line: 6091

         SELECT 'Y'
           FROM hxc_debug
          WHERE process = 'RETRIEVAL' AND TRUNC (debug_date) =
                                                              TRUNC (SYSDATE);
Line: 6155

SELECT /*+ ordered use_nl( tbb
             detail_block detail_usage detail_att
             day_block timecard_block
             detail_max_ovn ) */ ';
Line: 6159

         l_incremental_select    VARCHAR2 (1860)
            := '
	timecard_block.time_building_block_id
,	timecard_block.object_version_number
,	day_block.time_building_block_id
,	day_block.object_version_number
,	day_block.start_time
,	day_block.stop_time
,	detail_block.time_building_block_id
,	detail_block.object_version_number
,	detail_block.parent_building_block_id
,	detail_block.resource_type
,	detail_block.resource_id
,	detail_block.comment_text
,	detail_block.start_time
,	detail_block.stop_time
,	detail_block.measure
,	detail_block.scope
,	detail_block.type
,	detail_att.time_attribute_id
,	detail_att.bld_blk_info_type_id
,	detail_att.attribute1
,	detail_att.attribute2
,	detail_att.attribute3
,	detail_att.attribute4
,	detail_att.attribute5
,	detail_att.attribute6
,	detail_att.attribute7
,	detail_att.attribute8
,	detail_att.attribute9
,	detail_att.attribute10
,	detail_att.attribute11
,	detail_att.attribute12
,	detail_att.attribute13
,	detail_att.attribute14
,	detail_att.attribute15
,	detail_att.attribute16
,	detail_att.attribute17
,	detail_att.attribute18
,	detail_att.attribute19
,	detail_att.attribute20
,	detail_att.attribute21
,	detail_att.attribute22
,	detail_att.attribute23
,	detail_att.attribute24
,	detail_att.attribute25
,	detail_att.attribute26
,	detail_att.attribute27
,	detail_att.attribute28
,	detail_att.attribute29
,	detail_att.attribute30
,	detail_block.date_from
,	detail_block.date_to
,	detail_block.approval_status
,	detail_block.approval_style_id
,	DECODE ( detail_block.date_to, hr_general.end_of_time, ''N'', ''Y'' )
,	detail_att.attribute_category
,       1
,       1
,       NVL(detail_max_ovn.max_ovn, 0)
,	detail_block.unit_of_measure
,	timecard_block.start_time
,	timecard_block.stop_time
,       timecard_block.comment_text
,	DECODE ( timecard_block.date_to, hr_general.end_of_time, ''N'', ''Y'' ) ';
Line: 6224

         l_select                VARCHAR2 (1945)
            := '
SELECT /*+ ordered use_nl(
             detail_block detail_usage detail_att
             day_block timecard_block
             detail_max_ovn ) */
	timecard_block.time_building_block_id
,	timecard_block.object_version_number
,	day_block.time_building_block_id
,	day_block.object_version_number
,	day_block.start_time
,	day_block.stop_time
,	detail_block.time_building_block_id
,	detail_block.object_version_number
,	detail_block.parent_building_block_id
,	detail_block.resource_type
,	detail_block.resource_id
,	detail_block.comment_text
,	detail_block.start_time
,	detail_block.stop_time
,	detail_block.measure
,	detail_block.scope
,	detail_block.type
,	detail_att.time_attribute_id
,	detail_att.bld_blk_info_type_id
,	detail_att.attribute1
,	detail_att.attribute2
,	detail_att.attribute3
,	detail_att.attribute4
,	detail_att.attribute5
,	detail_att.attribute6
,	detail_att.attribute7
,	detail_att.attribute8
,	detail_att.attribute9
,	detail_att.attribute10
,	detail_att.attribute11
,	detail_att.attribute12
,	detail_att.attribute13
,	detail_att.attribute14
,	detail_att.attribute15
,	detail_att.attribute16
,	detail_att.attribute17
,	detail_att.attribute18
,	detail_att.attribute19
,	detail_att.attribute20
,	detail_att.attribute21
,	detail_att.attribute22
,	detail_att.attribute23
,	detail_att.attribute24
,	detail_att.attribute25
,	detail_att.attribute26
,	detail_att.attribute27
,	detail_att.attribute28
,	detail_att.attribute29
,	detail_att.attribute30
,	detail_block.date_from
,	detail_block.date_to
,	detail_block.approval_status
,	detail_block.approval_style_id
,	DECODE ( detail_block.date_to, hr_general.end_of_time, ''N'', ''Y'' )
,	detail_att.attribute_category
,       1
,       1
,	detail_block.object_version_number -1
,	detail_block.unit_of_measure
,	timecard_block.start_time
,	timecard_block.stop_time
,       timecard_block.comment_text
,	DECODE ( timecard_block.date_to, hr_general.end_of_time, ''N'', ''Y'' ) ';
Line: 6304

	(select /*+ no_merge ordered */
        time_building_block_id,
	object_version_number
from 	Hxc_latest_details tbb_latest
where	tbb_latest.resource_id BETWEEN :p_lower_range and :p_upper_range
and     tbb_latest.approval_status <> ''ERROR''
AND	NOT EXISTS (select ''x''
			FROM	hxc_transaction_details txd
			,	hxc_transactions tx
			WHERE	tx.transaction_process_id	= :p_process_id
			AND	tx.type				= ''RETRIEVAL''
			AND	tx.status			= ''SUCCESS''
			AND	tx.transaction_id		= txd.transaction_id
			AND	txd.status			= ''SUCCESS''
		AND	txd.time_building_block_id	= tbb_latest.time_building_block_id
		AND     txd.time_building_block_ovn     = tbb_latest.object_version_number
		)
';
Line: 6325

	 	(select /*+ no_merge ordered */
	         tbb_latest.time_building_block_id,
	 	tbb_latest.object_version_number
	 from 	hxc_retrieval_ranges rr,
	         hxc_retrieval_range_resources rrr,
	         hxc_latest_details tbb_latest
	 where	rr.retrieval_range_id = :p_rr_id AND
	         rr.retrieval_range_id = rrr.retrieval_range_id AND
	         tbb_latest.resource_id = rrr.resource_id AND
	         tbb_latest.last_update_date > :p_since_date
	         AND tbb_latest.approval_status <> ''ERROR''
	 AND	NOT EXISTS (select ''x''
	 			FROM	hxc_transaction_details txd
	 			,	hxc_transactions tx
	 			WHERE	tx.transaction_process_id	= :p_process_id
	 			AND	tx.type				= ''RETRIEVAL''
	 			AND	tx.status			= ''SUCCESS''
	 			AND	tx.transaction_id		= txd.transaction_id
	 			AND	txd.status			= ''SUCCESS''
	 		AND	txd.time_building_block_id	= tbb_latest.time_building_block_id
	 		AND     txd.time_building_block_ovn     = tbb_latest.object_version_number
	 		)
';
Line: 6374

                SELECT  /*+ no_unnest */ MAX ( tovn.object_version_number )
                FROM    hxc_time_building_blocks tovn
                WHERE   tovn.time_building_block_id = timecard_block.time_building_block_id ) ';
Line: 6383

                SELECT   /*+ no_unnest */ MAX ( tovn.object_version_number )
                FROM    hxc_time_building_blocks tovn
                WHERE   tovn.time_building_block_id = timecard_block.time_building_block_id )
AND
        timecard_block.start_time
        BETWEEN :p_start_date AND :p_end_date AND
        timecard_block.stop_time
        BETWEEN :p_start_date AND :p_end_date ';
Line: 6397

                SELECT   /*+ no_unnest */ MAX ( tovn.object_version_number )
		FROM    hxc_time_building_blocks tovn
                WHERE   tovn.time_building_block_id = timecard_block.time_building_block_id )
        AND
        :p_start_date   <=      timecard_block.stop_time   AND
        :p_end_date     >=      timecard_block.start_time ';
Line: 6411

                SELECT  /*+ no_unnest */ MAX ( dyovn.object_version_number )
		FROM    hxc_time_building_blocks dyovn
                WHERE   dyovn.time_building_block_id = day_block.time_building_block_id ) ';
Line: 6512

            l_time_store_query := l_select || l_rerun || l_order_by;
Line: 6575

                     || l_incremental_select
                     || l_incremental_from
                     || l_time_store_query
                     || l_not_exists
                     || l_latest_double_check
                     || l_order_by;
Line: 6590

                     || l_incremental_select
                     || l_incremental_from
                     || l_time_store_query
                     || p_where_clause_blk
                     || p_where_clause_att
                     || l_not_exists
                     || l_latest_double_check
                     || l_order_by;
Line: 6604

                     || l_incremental_select
                     || l_inline_view_range
                     || l_inline_day
                     || l_app_set
                     || p_where_clause_blk
                     || l_noloop_from
                     || l_time_store_query
                     || p_where_clause_att
                     || l_not_exists
                     || l_order_by;
Line: 6622

                     l_select
                  || l_from
                  || l_time_store_query
                  || l_app_set
                  || p_where_clause_blk
                  || p_where_clause_att
                  || l_order_by;
Line: 6645

            SELECT transaction_id
              FROM hxc_transactions tx
             WHERE transaction_process_id = p_process_id
               AND status = 'IN PROGRESS';
Line: 6656

            SELECT 'x'
              FROM hxc_retrieval_ranges rr
             WHERE rr.transaction_id = p_transaction_id
               AND (   rr.where_clause = p_where_clause
                    OR (p_where_clause IS NULL AND rr.where_clause IS NULL)
                   )
               AND (   rr.unique_params = p_unique_params
                    OR (p_unique_params IS NULL AND rr.unique_params IS NULL
                       )
                   );
Line: 6669

            SELECT TO_CHAR (SYSDATE, 'HH24:MI:SS DD-MON-YY')
              FROM hxc_retrieval_ranges
             WHERE transaction_id = p_transaction_id;
Line: 6818

            SELECT 'x'
              FROM hxc_data_sets hds
             WHERE hds.start_date <= p_end_date
               AND hds.end_date >= p_start_date
               AND hds.status IN
                      ('OFF_LINE', 'RESTORE_IN_PROGRESS',
                       'BACKUP_IN_PROGRESS');
Line: 6875

            SELECT   mpc.bld_blk_info_type_id, UPPER (mpc.field_name),
                     mpc.SEGMENT, bbit.bld_blk_info_type CONTEXT,
                     bbitu.building_block_category CATEGORY
                FROM hxc_bld_blk_info_type_usages bbitu,
                     hxc_bld_blk_info_types bbit,
                     hxc_mapping_components mpc,
                     hxc_mapping_comp_usages mcu,
                     hxc_mappings MAP
               WHERE MAP.mapping_id = p_mapping_id
                 AND mcu.mapping_id = MAP.mapping_id
                 AND mpc.mapping_component_id = mcu.mapping_component_id
                 AND bbit.bld_blk_info_type_id = mpc.bld_blk_info_type_id
                 AND bbitu.bld_blk_info_type_id = bbit.bld_blk_info_type_id
            ORDER BY 1, 2, 3;
Line: 6960

         hxc_generic_retrieval_pkg.t_detail_bld_blks.DELETE;
Line: 6961

         hxc_generic_retrieval_pkg.t_old_detail_bld_blks.DELETE;
Line: 6962

         hxc_generic_retrieval_pkg.t_detail_attributes.DELETE;
Line: 6963

         hxc_generic_retrieval_pkg.t_old_detail_attributes.DELETE;
Line: 6964

         hxc_generic_retrieval_pkg.t_time_bld_blks.DELETE;
Line: 6965

         t_old_detail_seq.DELETE;
Line: 6966

         t_old_detail_bb_id.DELETE;
Line: 6967

         t_old_detail_ovn.DELETE;
Line: 6968

         hxc_generic_retrieval_pkg.t_tx_time_bb_id.DELETE;
Line: 6969

         hxc_generic_retrieval_pkg.t_tx_time_bb_ovn.DELETE;
Line: 6970

         hxc_generic_retrieval_pkg.t_tx_time_transaction_id.DELETE;
Line: 6971

         hxc_generic_retrieval_pkg.t_tx_time_status.DELETE;
Line: 6972

         hxc_generic_retrieval_pkg.t_tx_time_exception.DELETE;
Line: 6973

         hxc_generic_retrieval_pkg.t_tx_day_bb_id.DELETE;
Line: 6974

         hxc_generic_retrieval_pkg.t_tx_day_parent_id.DELETE;
Line: 6975

         hxc_generic_retrieval_pkg.t_tx_day_bb_ovn.DELETE;
Line: 6976

         hxc_generic_retrieval_pkg.t_tx_day_transaction_id.DELETE;
Line: 6977

         hxc_generic_retrieval_pkg.t_tx_day_status.DELETE;
Line: 6978

         hxc_generic_retrieval_pkg.t_tx_day_exception.DELETE;
Line: 6979

         hxc_generic_retrieval_pkg.t_tx_detail_bb_id.DELETE;
Line: 6980

         hxc_generic_retrieval_pkg.t_tx_detail_parent_id.DELETE;
Line: 6981

         hxc_generic_retrieval_pkg.t_tx_detail_bb_ovn.DELETE;
Line: 6982

         hxc_generic_retrieval_pkg.t_tx_detail_transaction_id.DELETE;
Line: 6983

         hxc_generic_retrieval_pkg.t_tx_detail_status.DELETE;
Line: 6984

         hxc_generic_retrieval_pkg.t_tx_detail_exception.DELETE;
Line: 6985

         t_bb.DELETE;
Line: 6987

         hxc_generic_retrieval_utils.g_resources.DELETE;
Line: 6989

	 hxc_generic_retrieval_pkg.g_detail_skipped.DELETE;
Line: 6995

            g_field_mappings_table.DELETE;
Line: 7021

            SELECT DISTINCT application_set_id
                       FROM hxc_application_set_comps_v
                      WHERE time_recipient_id IN
                                              (p_ret_tr_id_1, p_ret_tr_id_2);
Line: 7028

            SELECT tr.time_recipient_id
              FROM hxc_time_recipients tr
             WHERE tr.application_id = p_application_id;
Line: 7131

               SELECT TO_NUMBER (l_since_date)
                 INTO l_since_date
                 FROM DUAL;
Line: 7368

               SELECT rp.retrieval_process_id
                 INTO l_ret_id
                 FROM hxc_retrieval_processes rp
                WHERE rp.NAME = 'BEE Retrieval Process';
Line: 7452

                          (p_mode                        => 'I'      -- Insert
                                                               ,
                           p_transaction_process_id      => g_retrieval_process_id,
                           p_status                      => 'IN PROGRESS',
                           p_description                 => ''
                          );
Line: 7512

         insert_query (l_dynamic_query, 'QUERY');
Line: 7613

                           (p_mode                        => 'I'     -- Insert
                                                                ,
                            p_transaction_process_id      => g_retrieval_process_id,
                            p_status                      => 'ERRORS',
                            p_description                 => SUBSTR (SQLERRM,
                                                                     1,
                                                                     2000
                                                                    )
                           );
Line: 7751

                         (p_mode                        => 'I'       -- Insert
                                                              ,
                          p_transaction_process_id      => g_retrieval_process_id,
                          p_status                      => 'ERRORS',
                          p_description                 => SUBSTR (SQLERRM,
                                                                   1,
                                                                   2000
                                                                  )
                         );
Line: 7780

  PROCEDURE delete_retrieval_ranges (p_transaction_id IN hxc_transactions.transaction_id%TYPE)
  IS
  PRAGMA AUTONOMOUS_TRANSACTION;
Line: 7785

       DELETE FROM HXC_RETRIEVAL_RANGE_RESOURCES
       WHERE RETRIEVAL_RANGE_ID IN
           ( SELECT RETRIEVAL_RANGE_ID
             FROM HXC_RETRIEVAL_RANGES
             WHERE CONC_REQUEST_ID = g_conc_request_id
	     AND   TRANSACTION_ID = p_transaction_id);
Line: 7792

       DELETE FROM HXC_RETRIEVAL_RANGES
       WHERE  CONC_REQUEST_ID = g_conc_request_id
       AND    TRANSACTION_ID = p_transaction_id;
Line: 7797

  END delete_retrieval_ranges;
Line: 7818

   PROCEDURE update_transaction_status (
      p_process                 hxc_retrieval_processes.NAME%TYPE,
      p_status                  hxc_transactions.status%TYPE,
      p_exception_description   hxc_transactions.exception_description%TYPE,
      p_rollback                BOOLEAN DEFAULT FALSE
   )
   IS
-- going to call the chk_retrieval_process procedure - do not need mapping id
      l_process_id            hxc_retrieval_processes.retrieval_process_id%TYPE;
Line: 7844

         l_proc := g_package || 'update_transaction_status';
Line: 7845

         hr_utility.TRACE ('In Update Transaction Status');
Line: 7874

                DELETE FROM hxc_bee_pref_adj_lines
                   WHERE detail_bb_id = t_tx_detail_bb_id(i)
                     AND batch_source = DECODE(g_params.p_process,
                                              'BEE Retrieval Process', 'OTM',
                                              'Apply Schedule Rules' , 'Time Store')
                     AND t_tx_detail_status(i) = 'ERRORS'                         ;
Line: 7888

         audit_transaction (p_mode                        => 'U'     -- update
                                                                ,
                            p_transaction_process_id      => l_process_id,
                            p_status                      => p_status,
                            p_description                 => p_exception_description,
                            p_rollback                    => p_rollback
                           );
Line: 7910

         INSERT INTO hxc_transactions
                     (transaction_id, transaction_process_id,
                      transaction_date, TYPE, status,
                      exception_description
                     )
              VALUES (l_tx_id, l_process_id,
                      SYSDATE, 'RETRIEVAL_STATUS_UPDATE', p_status,
                      p_exception_description
                     );
Line: 7920

         UPDATE hxc_transactions
            SET status = p_status,
                exception_description = p_exception_description
          WHERE transaction_id = hxc_generic_retrieval_pkg.g_transaction_id;
Line: 7952

                  INSERT INTO hxc_transaction_details
                              (transaction_detail_id,
                               time_building_block_id,
                               time_building_block_ovn,
                               transaction_id,
                               status,
                               exception_description
                              )
                       VALUES (hxc_generic_retrieval_pkg.t_tx_time_transaction_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_time_bb_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_time_bb_ovn
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.g_transaction_id,
                               hxc_generic_retrieval_pkg.t_tx_time_status
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_time_exception
                                                                    (tx_detail)
                              );
Line: 7994

                  INSERT INTO hxc_transaction_details
                              (transaction_detail_id,
                               time_building_block_id,
                               time_building_block_ovn,
                               transaction_id,
                               status,
                               exception_description
                              )
                       VALUES (hxc_generic_retrieval_pkg.t_tx_day_transaction_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_day_bb_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_day_bb_ovn
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.g_transaction_id,
                               hxc_generic_retrieval_pkg.t_tx_day_status
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_day_exception
                                                                    (tx_detail)
                              );
Line: 8036

                  INSERT INTO hxc_transaction_details
                              (transaction_detail_id,
                               time_building_block_id,
                               time_building_block_ovn,
                               transaction_id,
                               status,
                               exception_description
                              )
                       VALUES (hxc_generic_retrieval_pkg.t_tx_detail_transaction_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_detail_bb_id
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_detail_bb_ovn
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.g_transaction_id,
                               hxc_generic_retrieval_pkg.t_tx_detail_status
                                                                    (tx_detail),
                               hxc_generic_retrieval_pkg.t_tx_detail_exception
                                                                    (tx_detail)
                              );
Line: 8092

                  INSERT INTO hxc_transaction_details
                              (transaction_detail_id,
                               time_building_block_id,
                               time_building_block_ovn,
                               transaction_id,
                               status,
                               exception_description
                              )
                       VALUES (hxc_generic_retrieval_pkg.t_tx_error_transaction_id
                                                                     (tx_error),
                               hxc_generic_retrieval_pkg.t_tx_error_bb_id
                                                                     (tx_error),
                               hxc_generic_retrieval_pkg.t_tx_error_bb_ovn
                                                                     (tx_error),
                               hxc_generic_retrieval_pkg.g_transaction_id,
                               hxc_generic_retrieval_pkg.t_tx_error_status
                                                                     (tx_error),
                               hxc_generic_retrieval_pkg.t_tx_error_exception
                                                                     (tx_error)
                              );
Line: 8114

               hxc_generic_retrieval_pkg.t_tx_error_transaction_id.DELETE;
Line: 8115

               hxc_generic_retrieval_pkg.t_tx_error_bb_id.DELETE;
Line: 8116

               hxc_generic_retrieval_pkg.t_tx_error_bb_ovn.DELETE;
Line: 8117

               hxc_generic_retrieval_pkg.t_tx_error_status.DELETE;
Line: 8118

               hxc_generic_retrieval_pkg.t_tx_error_exception.DELETE;
Line: 8136

            UPDATE hxc_retrieval_ranges
               SET transaction_id = -1
             WHERE retrieval_process_id = l_process_id AND transaction_id = -1;
Line: 8153

	-- DO NOT DELETE FOR 'IN PROGRESS' TRANSACTIONS
        THEN
               IF g_debug
               THEN
                       hr_utility.TRACE ('g_conc_request_id is ' || g_conc_request_id);
Line: 8160

               delete_retrieval_ranges (hxc_generic_retrieval_pkg.g_transaction_id);
Line: 8259

         hr_utility.TRACE ('Leaving Update Transaction Status');
Line: 8261

   END update_transaction_status;