DBA Data[Home] [Help]

APPS.XLA_CMP_TAB_PKG SQL Statements

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

Line: 28

|                                when selecting the TAT sources:        |
|                                Introduced local variables so that OUT |
|                                params are assigned at the end.        |
|                             build_implementations:                    |
|                                removed condition on compile status    |
|                                when selecting the TAT sources:        |
|                             build_global_temp_table                   |
|                                removed condition on compile status    |
|                               when selecting the TAT sources:         |
|    30-JUL-04 A.Quaglia      changed message tokens                    |
|    18-MAI-05 K.Boussema     added the column dummy_rowid in GT tables |
|                                to fix bug 4344773                     |
|    10-MAR-2006 Jorge Larre  Bug 5088359                               |
|       Add ORDER BY xsb.source_code to the selects that retrieve the   |
|       sources to build the interface table to be in sync with the     |
|       select that retrieves the source to build the compiled package. |
|    11-AUG-2006 Jorge Larre  Bug 5318196                               |
|       a)In procedure write_online_tab (C_TMPL_TAB_WRITE_PROC_IMPL)    |
|         the determination of the new index for inserting a new row in |
|         g_array_xla_tab must be done with COUNT + 1 instead of COUNT. |
|         The loop that uses l_watermark must be begin with FIRST       |
|         instead of 0.                                                 |
|       b)In procedure read_online_tab (C_TMPL_TAB_READ_PROC_IMPL)      |
|         the loop that uses l_watermark must be begin with FIRST       |
|         instead of 0.                                                 |
|    15-AUG-2006 Jorge Larre  Bug 5318196                               |
|       a)In procedure write_online_tab (C_TMPL_TAB_WRITE_PROC_IMPL)    |
|         the array may be empty, so we must use a variable to store    |
|         the value of FIRST and nullify it with 1. New variable:       |
|         l_start.                                                      |
|       b)In procedure read_online_tab (C_TMPL_TAB_READ_PROC_IMPL)      |
|         the array may be empty, so we must use a variable to store    |
|         the value of FIRST and nullify it with 1. New variable:       |
|         l_start.                                                      |
+======================================================================*/

   --
   -- Private exceptions
   --

   le_fatal_error                   EXCEPTION;
Line: 236

ON COMMIT DELETE ROWS';
Line: 660

'      g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE;
Line: 911

      g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE;
Line: 946

      g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE;
Line: 1148

            g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE(i);
Line: 1192

         SELECT xte.msg_data
           BULK COLLECT
           INTO l_table_of_row_errors
           FROM xla_tab_errors_gt xte
          WHERE xte.base_rowid = l_row_base_rowid;
Line: 1242

      g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE;
Line: 1277

      g_array_xla_tab$OBJECT_NAME_AFFIX$.DELETE;
Line: 1594

   IF NOT remove_deleted_tats
             (
                p_application_id => p_application_id
             )
   THEN
      IF (C_LEVEL_ERROR >= g_log_level) THEN
         trace
         (p_module => l_log_module
         ,p_msg      => 'remove_deleted_tats failed, aborting...'
         ,p_level    => C_LEVEL_ERROR);
Line: 1666

   UPDATE xla_tab_acct_types_b xtat
      SET xtat.compile_status_code =
             xla_cmp_common_pkg.G_COMPILE_STATUS_CODE_COMPILED
    WHERE xtat.application_id      = p_application_id
      AND xtat.enabled_flag        =  'Y'
      AND xtat.compile_status_code IS NOT NULL;
Line: 2346

           SELECT DISTINCT  xsb.source_code
                           ,xsb.source_type_code
                           ,xsb.enabled_flag
                           ,xsb.datatype_code
             FROM xla_tab_acct_types_b   xtat
                 ,xla_tab_acct_type_srcs xtsrc
                 ,xla_sources_b          xsb
            WHERE xtat.application_id      = g_application_info.application_id
              AND NVL( xtat.object_name_affix
                      ,LPAD('A',32, 'A')
                     )
                  = NVL( g_all_object_name_affixes(affix_index)
                        ,LPAD('A',32, 'A')
                       )
              AND xtat.enabled_flag        =  'Y'
              AND xtsrc.account_type_code  = xtat.account_type_code
              AND xsb.application_id       = xtsrc.source_application_id
              AND xsb.source_code          = xtsrc.source_code
              AND xsb.source_type_code     = xtsrc.source_type_code
	      ORDER BY xsb.source_code
         )
      LOOP
         IF (C_LEVEL_STATEMENT >= g_log_level) THEN
            trace
               ( p_module   => l_log_module
                ,p_msg      => 'Source code: ' || source_rec.source_code
                ,p_level    => C_LEVEL_STATEMENT);
Line: 3039

           SELECT DISTINCT  xsb.source_code
                           ,xsb.source_type_code
                           ,xsb.enabled_flag
                           ,xsb.datatype_code
             FROM xla_tab_acct_types_b   xtat
                 ,xla_tab_acct_type_srcs xtsrc
                 ,xla_sources_b          xsb
            WHERE xtat.application_id      = g_application_info.application_id
              AND NVL( xtat.object_name_affix
                      ,LPAD('A',32, 'A')
                     )
                  = NVL( g_all_object_name_affixes(affix_index)
                        ,LPAD('A',32, 'A')
                       )
              AND xtat.enabled_flag        = 'Y'
              AND xtsrc.account_type_code  = xtat.account_type_code
              AND xsb.application_id       = xtsrc.source_application_id
              AND xsb.source_code          = xtsrc.source_code
              AND xsb.source_type_code     = xtsrc.source_type_code
	      ORDER BY xsb.source_code
         )
      LOOP
         IF (C_LEVEL_STATEMENT >= g_log_level) THEN
            trace
               ( p_module   => l_log_module
                ,p_msg      => 'Source code: ' || source_rec.source_code
                ,p_level    => C_LEVEL_STATEMENT);
Line: 3633

   SELECT DISTINCT xsb.source_code
                  ,xsb.datatype_code
   BULK COLLECT
     INTO l_table_of_sources
         ,l_table_of_source_datatypes
     FROM xla_tab_acct_types_b   xtat
         ,xla_tab_acct_type_srcs xtsrc
         ,xla_sources_b          xsb
    WHERE xtat.application_id      = g_application_info.application_id
      AND NVL( xtat.object_name_affix
              ,LPAD('A',32, 'A')
             )
          = NVL( p_object_name_affix
                ,LPAD('A',32, 'A')
               )
      AND xtat.enabled_flag        =  'Y'
      AND xtat.compile_status_code =
             xla_cmp_common_pkg.G_COMPILE_STATUS_CODE_COMPILED
      AND xtsrc.account_type_code  = xtat.account_type_code
      AND xsb.application_id       = xtsrc.source_application_id
      AND xsb.source_code          = xtsrc.source_code
      AND xsb.source_type_code     = xtsrc.source_type_code
      AND xsb.source_type_code     = 'S' --only seeded sources
   ORDER BY xsb.source_code;
Line: 3778

        SELECT DISTINCT xsb.source_code
                       ,xsb.source_type_code
                       ,xsb.enabled_flag
                       ,xsb.datatype_code
          FROM xla_tab_acct_types_b   xtat
              ,xla_tab_acct_type_srcs xtsrc
              ,xla_sources_b          xsb
         WHERE xtat.application_id      = g_application_info.application_id
           AND NVL( xtat.object_name_affix
                   ,LPAD('A',32, 'A')
                  )
               = NVL( p_object_name_affix
                     ,LPAD('A',32, 'A')
                    )
           AND xtat.enabled_flag        = 'Y'
           AND xtsrc.account_type_code  = xtat.account_type_code
           AND xsb.application_id       = xtsrc.source_application_id
           AND xsb.source_code          = xtsrc.source_code
           AND xsb.source_type_code     = xtsrc.source_type_code
	   ORDER BY xsb.source_code
      )
   LOOP
      IF (C_LEVEL_STATEMENT >= g_log_level) THEN
         trace
            ( p_module   => l_log_module
             ,p_msg      => 'Source code: ' || source_rec.source_code
             ,p_level    => C_LEVEL_STATEMENT);
Line: 4154

   SELECT DISTINCT xtat.object_name_affix
     BULK COLLECT
     INTO g_all_object_name_affixes
     FROM xla_tab_acct_types_b xtat
    WHERE xtat.application_id      =  g_application_info.application_id
      AND xtat.enabled_flag        =  'Y'
   ORDER BY NVL(xtat.object_name_affix, ' ');
Line: 4192

   SELECT DISTINCT xtat.object_name_affix
     BULK COLLECT
     INTO g_compiled_object_name_affixes
     FROM xla_tab_acct_types_b xtat
    WHERE xtat.application_id      =  g_application_info.application_id
      AND xtat.compile_status_code
             = xla_cmp_common_pkg.G_COMPILE_STATUS_CODE_COMPILED
   ORDER BY NVL(xtat.object_name_affix, ' ');
Line: 4247

FUNCTION remove_deleted_tats
             (
                p_application_id IN NUMBER
             )
RETURN BOOLEAN
IS

l_return_value               BOOLEAN;
Line: 4258

      l_log_module := C_DEFAULT_MODULE||'.remove_deleted_tats';
Line: 4270

   DELETE
     FROM xla_tab_acct_types_b xtat
    WHERE xtat.application_id      = p_application_id
      AND xtat.compile_status_code =
             xla_cmp_common_pkg.G_COMPILE_STATUS_CODE_DELETE;
Line: 4281

                        || ' row(s) deleted from xla_tab_acct_types_b'
         ,p_level    => C_LEVEL_STATEMENT);
Line: 4303

      (p_location => 'xla_cmp_tab_pkg.remove_deleted_tats');
Line: 4305

END remove_deleted_tats;
Line: 4369

   SELECT xtat.object_name_affix
     INTO l_object_name_affix
     FROM xla_tab_acct_types_b xtat
    WHERE xtat.application_id      =  g_application_info.application_id
      AND xtat.account_type_code   =  p_account_type_code
      AND xtat.enabled_flag        =  'Y'
   ORDER BY NVL(xtat.object_name_affix, ' ');
Line: 4537

       ,select_comb_from_view   => NULL
       )
   THEN
      l_fatal_error_message := 'FND_FLEX_KEYVAL.validate_ccid failed';