DBA Data[Home] [Help]

APPS.GL_CASH_CLR_ACCT_ANAL_RPT_PKG SQL Statements

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

Line: 29

    SELECT MAX(CASE gps.period_name
                    WHEN period_from_param THEN gps.effective_period_num END)
          ,MAX(CASE gps.period_name
                    WHEN period_to_param THEN gps.effective_period_num END)
    INTO   gn_effective_period_num_from
          ,gn_effective_period_num_to
    FROM   gl_period_statuses gps
    WHERE gps.ledger_id = ledger_id_param
    AND   gps.application_id = 200
    AND   gps.period_name IN (period_from_param, period_to_param);
Line: 43

        'SELECT
                aca.check_number    doc_num
               ,gjl.effective_date  line_effective_date
               ,gjh.description     jrnl_desc
               ,xal.accounted_dr    jrnl_line_dr
               ,xal.accounted_cr    jrnl_line_cr
         FROM
                gl_je_lines               gjl
               ,gl_import_references      gir
               ,gl_je_headers             gjh
               ,xla_ae_lines              xal
               ,xla_ae_headers            xah
               ,xla_transaction_entities  xte
               ,ap_checks_all             aca
               ,gl_period_statuses        gps
         WHERE
             gjl.ledger_id = :ledger_id_param
         AND gjl.code_combination_id = :ccid
         AND gps.ledger_id = gjl.ledger_id
         AND gjl.period_name = gps.period_name
         AND gps.effective_period_num
             BETWEEN :gn_effective_period_num_from
                 AND :gn_effective_period_num_to
         AND gps.application_id = 200
         AND gjl.status = ''P''
         AND gjh.je_header_id = gjl.je_header_id
         AND gjh.je_source = ''Payables''
         AND gir.je_header_id = gjh.je_header_id
         AND gir.je_line_num = gjl.je_line_num
         AND gir.gl_sl_link_id = xal.gl_sl_link_id
         AND gir.gl_sl_link_table = xal.gl_sl_link_table
         AND xal.application_id = 200
         AND xah.ae_header_id = xal.ae_header_id
         AND xah.application_id = xal.application_id
         AND xte.entity_id = xah.entity_id
         AND xte.application_id = xah.application_id
         AND aca.check_id = xte.source_id_int_1
         AND aca.status_lookup_code NOT IN (''CLEARED'',''RECONCILED'')
         ORDER BY doc_num';
Line: 85

       'SELECT
               NVL(SUM(NVL(xal.accounted_dr,0)),0) jrnl_line_dr
              ,NVL(SUM(NVL(xal.accounted_cr,0)),0) jrnl_line_cr
        FROM
               gl_je_lines                   gjl
              ,gl_import_references          gir
              ,gl_je_headers                 gjh
              ,xla_ae_lines                  xal
              ,xla_ae_headers                xah
              ,xla_transaction_entities      xte
              ,ap_checks_all                 aca
              ,gl_period_statuses            gps
        WHERE
            gjl.ledger_id = :ledger_id_param
        AND gjl.code_combination_id = :ccid
        AND gps.ledger_id = gjl.ledger_id
        AND gjl.period_name = gps.period_name
        AND gps.effective_period_num
            BETWEEN :gn_effective_period_num_from
                AND :gn_effective_period_num_to
        AND gps.application_id = 200
        AND gjl.status = ''P''
        AND gjh.je_header_id = gjl.je_header_id
        AND gjh.je_source = ''Payables''
        AND gir.je_header_id = gjh.je_header_id
        AND gir.je_line_num = gjl.je_line_num
        AND gir.gl_sl_link_id = xal.gl_sl_link_id
        AND gir.gl_sl_link_table = xal.gl_sl_link_table
        AND xal.application_id = 200
        AND xah.ae_header_id = xal.ae_header_id
        AND xah.application_id = xal.application_id
        AND xte.entity_id = xah.entity_id
        AND xte.application_id = xah.application_id
        AND aca.check_id = xte.source_id_int_1
        AND aca.status_lookup_code NOT IN (''CLEARED'',''RECONCILED'')';
Line: 125

        'SELECT
                 gjb.name               batch_name
                ,gjl.effective_date     line_effective_date
                ,gjh.name               jrnl_name
                ,gjl.accounted_dr       jrnl_line_dr
                ,gjl.accounted_cr       jrnl_line_cr
         FROM
                 gl_je_lines            gjl
                ,gl_je_headers          gjh
                ,gl_je_batches          gjb
                ,gl_period_statuses     gps
         WHERE
                gjl.ledger_id = :ledger_id_param
         AND    gjl.code_combination_id = :ccid
         AND    gps.ledger_id = gjl.ledger_id
         AND    gjl.period_name = gps.period_name
         AND    gps.effective_period_num
                BETWEEN :gn_effective_period_num_from
                    AND :gn_effective_period_num_to
         AND    gjl.status            =''P''
         AND    gjb.je_batch_id       = gjh.je_batch_id
         AND    gjh.je_header_id      = gjl.je_header_id
         AND    UPPER(gjh.je_source)  = ''MANUAL''
         AND    gjl.gl_sl_link_id IS NULL
         AND    gps.application_id = 200
         /*Added this code to pick only unreconciled transactions in Cash Management*/
         --As part of bug 9166199
         AND     NOT EXISTS (SELECT ''X''
                            FROM   ce_statement_reconcils_all csra
                            WHERE  csra.je_header_id =  gjh.je_header_id
                            AND    csra.reference_id = gjl.je_line_num
                            AND    csra.status_flag = ''M''
                            AND    csra.current_record_flag = ''Y''
                            AND    csra.REFERENCE_TYPE = ''JE_LINE''
                            )
         ORDER BY
                  batch_name
                 ,jrnl_name';
Line: 166

        'SELECT
                NVL(SUM(NVL(gjl.accounted_dr,0)),0) jrnl_line_dr
               ,NVL(SUM(NVL(gjl.accounted_cr,0)),0) jrnl_line_cr
         FROM
                gl_je_lines            gjl
               ,gl_je_headers          gjh
               ,gl_je_batches          gjb
               ,gl_period_statuses     gps
         WHERE
               gjl.ledger_id = :ledger_id_param
         AND   gjl.code_combination_id = :ccid
         AND   gps.ledger_id = gjl.ledger_id
         AND   gjl.period_name = gps.period_name
         AND   gps.effective_period_num
               BETWEEN :gn_effective_period_num_from
                   AND :gn_effective_period_num_to
         AND   gps.application_id = 200
         AND   gjl.status            =''P''
         AND   gjb.je_batch_id       = gjh.je_batch_id
         AND   gjh.je_header_id      = gjl.je_header_id
         AND   UPPER(gjh.je_source)  = ''MANUAL''
         AND   gps.application_id = 200
         AND   gjl.gl_sl_link_id IS NULL
         /*Added this code to pick only unreconciled transactions in Cash Management*/
         --As part of bug 9166199
         AND     NOT EXISTS (SELECT ''X''
                            FROM   ce_statement_reconcils_all csra
                            WHERE  csra.je_header_id =  gjh.je_header_id
                            AND    csra.reference_id = gjl.je_line_num
                            AND    csra.status_flag = ''M''
                            AND    csra.current_record_flag = ''Y''
                            AND    csra.REFERENCE_TYPE = ''JE_LINE''
                            )'  ;
Line: 204

        'SELECT
                aca.check_number    doc_num
               ,gjl.effective_date  line_effective_date
               ,gjh.description     jrnl_desc
               ,xal.accounted_dr    jrnl_line_dr
               ,xal.accounted_cr    jrnl_line_cr
         FROM
                gl_je_lines                   gjl
               ,gl_import_references          gir
               ,gl_je_headers                 gjh
               ,xla_ae_lines                  xal
               ,xla_ae_headers                xah
               ,xla_transaction_entities      xte
               ,ap_checks_all                 aca
               ,gl_period_statuses            gps
         WHERE
               gjl.ledger_id = :ledger_id_param
         AND   gjl.code_combination_id = :ccid
         AND   gps.ledger_id = gjl.ledger_id
         AND   gjl.period_name = gps.period_name
         AND   gps.effective_period_num
               BETWEEN :gn_effective_period_num_from
                   AND :gn_effective_period_num_to
         AND   gps.application_id = 200
         AND   gjl.status = ''P''
         AND   gjh.je_header_id = gjl.je_header_id
         AND   gjh.je_source = ''Payables''
         AND   gir.je_header_id = gjh.je_header_id
         AND   gir.je_line_num = gjl.je_line_num
         AND   gir.gl_sl_link_id = xal.gl_sl_link_id
         AND   gir.gl_sl_link_table = xal.gl_sl_link_table
         AND   xal.application_id = 200
         AND   xah.ae_header_id = xal.ae_header_id
         AND   xah.application_id = xal.application_id
         AND   xte.entity_id = xah.entity_id
         AND   xte.application_id = xah.application_id
         AND   aca.check_id = xte.source_id_int_1
         AND   aca.status_lookup_code IN (''CLEARED'',''RECONCILED'')
         ORDER BY doc_num';
Line: 246

        'SELECT
                NVL(SUM(NVL(xal.accounted_dr,0)),0) jrnl_line_dr
               ,NVL(SUM(NVL(xal.accounted_cr,0)),0) jrnl_line_cr
         FROM
               gl_je_lines                   gjl
              ,gl_import_references          gir
              ,gl_je_headers                 gjh
              ,xla_ae_lines                  xal
              ,xla_ae_headers                xah
              ,xla_transaction_entities      xte
              ,ap_checks_all                 aca
              ,gl_period_statuses            gps
        WHERE
              gjl.ledger_id = :ledger_id_param
         AND  gjl.code_combination_id = :ccid
         AND  gps.ledger_id = gjl.ledger_id
         AND  gjl.period_name = gps.period_name
         AND  gps.effective_period_num
              BETWEEN :gn_effective_period_num_from
                  AND :gn_effective_period_num_to
         AND  gps.application_id = 200
         AND  gjl.status = ''P''
         AND  gjh.je_header_id = gjl.je_header_id
         AND  gjh.je_source = ''Payables''
         AND  gir.je_header_id = gjh.je_header_id
         AND  gir.je_line_num = gjl.je_line_num
         AND  gir.gl_sl_link_id = xal.gl_sl_link_id
         AND  gir.gl_sl_link_table = xal.gl_sl_link_table
         AND  xal.application_id = 200
         AND  xah.ae_header_id = xal.ae_header_id
         AND  xah.application_id = xal.application_id
         AND  xte.entity_id = xah.entity_id
         AND  xte.application_id = xah.application_id
         AND  aca.check_id = xte.source_id_int_1
         AND  aca.status_lookup_code IN (''CLEARED'',''RECONCILED'')';
Line: 290

      SELECT gas.name data_access_set_name
      FROM   gl_access_sets gas
      WHERE  gas.access_set_id = data_access_set_id_param;
Line: 305

      SELECT gll.name ledger_name
      FROM   gl_ledgers gll
      WHERE  gll.ledger_id = ledger_id_param;