DBA Data[Home] [Help]

APPS.PSA_GVTMB SQL Statements

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

Line: 38

  PROCEDURE check_and_insert
  (
    p_program_name IN VARCHAR2,
    p_errbuf       OUT NOCOPY VARCHAR2,
    p_retcode      OUT NOCOPY NUMBER
  )
  IS
    l_module_name                VARCHAR2(200);
Line: 50

    l_module_name := g_module_name || 'check_and_insert';
Line: 78

          log ('Inserting Program '||p_program_name||' into request_group');
Line: 110

  PROCEDURE insert_into_request_group
  (
    p_errbuf  OUT NOCOPY VARCHAR2,
    p_retcode OUT NOCOPY NUMBER
  )
  IS
    l_module_name                VARCHAR2(200);
Line: 120

    l_module_name := g_module_name || 'insert_into_request_group';
Line: 129

      log ('Calling check_and_insert with '||l_program_name);
Line: 130

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 140

      log ('Calling check_and_insert with '||l_program_name);
Line: 141

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 151

      log ('Calling check_and_insert with '||l_program_name);
Line: 152

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 162

      log ('Calling check_and_insert with '||l_program_name);
Line: 163

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 173

      log ('Calling check_and_insert with '||l_program_name);
Line: 174

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 184

      log ('Calling check_and_insert with '||l_program_name);
Line: 185

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 197

      log ('Calling check_and_insert with '||l_program_name);
Line: 198

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 209

      log ('Calling check_and_insert with '||l_program_name);
Line: 210

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 220

      log ('Calling check_and_insert with '||l_program_name);
Line: 221

      check_and_insert
      (
        p_program_name => l_program_name,
        p_errbuf       => p_errbuf,
        p_retcode      => p_retcode
      );
Line: 256

        UPDATE fnd_columns
           SET flexfield_usage_code = 'K'
         WHERE table_id = (SELECT table_id
                             FROM fnd_tables
                            WHERE application_id = 101
                              AND table_name = 'GL_CODE_COMBINATIONS')
                              AND column_name  LIKE 'SEGMENT_ATTRIBUTE%';
Line: 263

        log ('Updated '||SQL%ROWCOUNT||' rows');
Line: 268

          l_location := 'update_fnd_columns';
Line: 276

        UPDATE fnd_flex_value_sets
           SET format_type = 'C'
         WHERE flex_value_set_name LIKE 'Reporting Attribute:%'
           AND format_type = 'V';
Line: 280

        log ('Updated '||SQL%ROWCOUNT||' rows');
Line: 285

          l_location := 'update_fnd_flex_value_sets';
Line: 314

    UPDATE gl_lookups
       SET enabled_flag = 'Y'
     WHERE lookup_type = 'ACCOUNT TYPE'
       AND lookup_code IN ('C', 'D');
Line: 319

    log ('Updated '||SQL%ROWCOUNT||' rows');
Line: 321

    UPDATE fnd_lookups
       SET enabled_flag = 'Y'
     WHERE lookup_type = 'ACCOUNT_TYPE'
       AND lookup_code IN ('C', 'D');
Line: 352

    log ('Inserting '||p_lookup_type||':'||p_lookup_code);
Line: 354

    INSERT INTO fnd_lookup_values
    (
      lookup_type,
      language,
      lookup_code,
      meaning,
      description,
      enabled_flag,
      start_date_active,
      end_date_active,
      created_by,
      creation_date,
      last_updated_by,
      last_update_date,
      last_update_login,
      source_lang,
      security_group_id,
      view_application_id
    )
    SELECT p_lookup_type,
           'US',
           p_lookup_code,
           p_lookup_meaning,
           p_lookup_desc,
           'Y',
           NULL,
           NULL,
           0,
           sysdate,
           0,
           sysdate,
           0,
           'US',
           0,
           0
      FROM sys.dual
     WHERE NOT EXISTS (SELECT 1
                         FROM fnd_lookup_values
                        WHERE lookup_type = p_lookup_type
                          AND language = 'US'
                          AND lookup_code = p_lookup_code
                          AND security_group_id = 0
                          AND view_application_id = 0);
Line: 398

  log ('Inserted '||SQL%ROWCOUNT||' rows');
Line: 409

  PROCEDURE insert_fnd_lookups
  (
    p_errbuf  OUT NOCOPY VARCHAR2,
    p_retcode OUT NOCOPY NUMBER
  )
  IS
    l_module_name                VARCHAR2(200);
Line: 418

    l_module_name := g_module_name || 'insert_fnd_lookups';
Line: 425

      log ('Inserting lookup value Fund');
Line: 437

      log ('Inserting lookup value Revenue');
Line: 450

      log ('Inserting lookup value Fund Balance');
Line: 463

      log ('Inserting lookup value Net Revenue');
Line: 476

      log ('Inserting lookup value Order');
Line: 489

      log ('Inserting lookup value Agent');
Line: 502

      log ('Inserting lookup value Agent');
Line: 515

      log ('Inserting lookup value Agent');
Line: 556

    SELECT industry
      INTO l_industry_value
      FROM fnd_product_installations
     WHERE application_id=101;
Line: 592

    UPDATE fnd_product_installations a
       SET a.industry = 'G'
     WHERE a.application_id in (SELECT application_id
                                  FROM fnd_application
                                 WHERE application_short_name IN ('FND',
                                                                  'SYSADMIN',
                                                                  'SQLGL',
                                                                  'SQLAP',
                                                                  'PO',
                                                                  'AR'));
Line: 628

      log('Calling insert_into_request_group');
Line: 629

      insert_into_request_group (p_errbuf, p_retcode);
Line: 639

      insert_fnd_lookups (p_errbuf, p_retcode);