DBA Data[Home] [Help]

APPS.IGF_GR_RFMS_DISB_PKG SQL Statements

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

Line: 29

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_ed_use_flags                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 12-JAN-2001
  ||  Purpose : Initialises the Old and New references for the columns of the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */

    CURSOR cur_old_ref_values IS
      SELECT   *
      FROM     IGF_GR_RFMS_DISB_ALL
      WHERE    rowid = x_rowid;
Line: 57

    IF ((cur_old_ref_values%NOTFOUND) AND (p_action NOT IN ('INSERT', 'VALIDATE_INSERT'))) THEN
      CLOSE cur_old_ref_values;
Line: 59

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 84

    IF (p_action = 'UPDATE') THEN
      new_references.creation_date                   := old_references.creation_date;
Line: 92

    new_references.last_update_date                  := x_last_update_date;
Line: 93

    new_references.last_updated_by                   := x_last_updated_by;
Line: 94

    new_references.last_update_login                 := x_last_update_login;
Line: 143

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 154

      fnd_message.set_name ('FND', 'FORM_RECORD_DELETED');
Line: 175

      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE    rfmd_id = x_rfmd_id
      FOR UPDATE NOWAIT;
Line: 211

      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE    disb_ref_num = x_disb_ref_num
      AND      origination_id = x_origination_id
      AND      ((l_rowid IS NULL) OR (rowid <> l_rowid));
Line: 247

      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE   ((rfmb_id = x_rfmb_id));
Line: 282

      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE   ((origination_id = x_origination_id));
Line: 325

    x_last_update_date                  IN     DATE    ,
    x_last_updated_by                   IN     NUMBER  ,
    x_last_update_login                 IN     NUMBER  ,
    x_ed_use_flags                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 12-JAN-2001
  ||  Purpose : Initialises the columns, Checks Constraints, Calls the
  ||            Trigger Handlers for the table, before any DML operation.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_rfmd_id,
      x_origination_id,
      x_disb_ref_num,
      x_disb_dt,
      x_disb_amt,
      x_db_cr_flag,
      x_disb_ack_act_status,
      x_disb_status_dt,
      x_accpt_disb_dt,
      x_disb_accpt_amt,
      x_accpt_db_cr_flag,
      x_disb_ytd_amt,
      x_pymt_prd_start_dt,
      x_accpt_pymt_prd_start_dt,
      x_edit_code,
      x_rfmb_id,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_ed_use_flags
    );
Line: 369

    IF (p_action = 'INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation(
             new_references.rfmd_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 381

    ELSIF (p_action = 'UPDATE') THEN
      -- Call all the procedures related to Before Update.
      check_uniqueness;
Line: 385

    ELSIF (p_action = 'VALIDATE_INSERT') THEN
      -- Call all the procedures related to Before Insert.
      IF ( get_pk_for_validation (
             new_references.rfmd_id
           )
         ) THEN
        fnd_message.set_name('IGS','IGS_GE_RECORD_ALREADY_EXISTS');
Line: 396

    ELSIF (p_action = 'VALIDATE_UPDATE') THEN
      check_uniqueness;
Line: 403

  PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_rfmd_id                           IN OUT NOCOPY NUMBER,
    x_origination_id                    IN     VARCHAR2,
    x_disb_ref_num                      IN     VARCHAR2,
    x_disb_dt                           IN     DATE,
    x_disb_amt                          IN     NUMBER,
    x_db_cr_flag                        IN     VARCHAR2,
    x_disb_ack_act_status               IN     VARCHAR2,
    x_disb_status_dt                    IN     DATE,
    x_accpt_disb_dt                     IN     DATE,
    x_disb_accpt_amt                    IN     NUMBER,
    x_accpt_db_cr_flag                  IN     VARCHAR2,
    x_disb_ytd_amt                      IN     NUMBER,
    x_pymt_prd_start_dt                 IN     DATE,
    x_accpt_pymt_prd_start_dt           IN     DATE,
    x_edit_code                         IN     VARCHAR2,
    x_rfmb_id                           IN     NUMBER,
    x_mode                              IN     VARCHAR2,
    x_ed_use_flags                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 12-JAN-2001
  ||  Purpose : Handles the INSERT DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c IS
      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE    rfmd_id                           = x_rfmd_id;
Line: 438

    x_last_update_date           DATE;
Line: 439

    x_last_updated_by            NUMBER;
Line: 440

    x_last_update_login          NUMBER;
Line: 444

    x_program_update_date        DATE;
Line: 451

    x_last_update_date := SYSDATE;
Line: 453

      x_last_updated_by := 1;
Line: 454

      x_last_update_login := 0;
Line: 456

      x_last_updated_by := fnd_global.user_id;
Line: 457

      IF (x_last_updated_by IS NULL) THEN
        x_last_updated_by := -1;
Line: 460

      x_last_update_login := fnd_global.login_id;
Line: 461

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 472

        x_program_update_date    := NULL;
Line: 474

        x_program_update_date    := SYSDATE;
Line: 482

		SELECT igf_gr_rfms_disb_s.nextval INTO x_rfmd_id FROM dual;
Line: 485

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_rfmd_id                           => x_rfmd_id,
      x_origination_id                    => x_origination_id,
      x_disb_ref_num                      => x_disb_ref_num,
      x_disb_dt                           => x_disb_dt,
      x_disb_amt                          => x_disb_amt,
      x_db_cr_flag                        => x_db_cr_flag,
      x_disb_ack_act_status               => x_disb_ack_act_status,
      x_disb_status_dt                    => x_disb_status_dt,
      x_accpt_disb_dt                     => x_accpt_disb_dt,
      x_disb_accpt_amt                    => x_disb_accpt_amt,
      x_accpt_db_cr_flag                  => x_accpt_db_cr_flag,
      x_disb_ytd_amt                      => x_disb_ytd_amt,
      x_pymt_prd_start_dt                 => x_pymt_prd_start_dt,
      x_accpt_pymt_prd_start_dt           => x_accpt_pymt_prd_start_dt,
      x_edit_code                         => x_edit_code,
      x_rfmb_id                           => x_rfmb_id,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login,
      x_ed_use_flags                      => x_ed_use_flags

    );
Line: 512

    INSERT INTO igf_gr_rfms_disb_all (
      rfmd_id,
      origination_id,
      disb_ref_num,
      disb_dt,
      disb_amt,
      db_cr_flag,
      disb_ack_act_status,
      disb_status_dt,
      accpt_disb_dt,
      disb_accpt_amt,
      accpt_db_cr_flag,
      disb_ytd_amt,
      pymt_prd_start_dt,
      accpt_pymt_prd_start_dt,
      edit_code,
      rfmb_id,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      request_id,
      program_id,
      program_application_id,
      program_update_date ,
      org_id,
      ed_use_flags
    ) VALUES (
      new_references.rfmd_id,
      new_references.origination_id,
      new_references.disb_ref_num,
      new_references.disb_dt,
      new_references.disb_amt,
      new_references.db_cr_flag,
      new_references.disb_ack_act_status,
      new_references.disb_status_dt,
      new_references.accpt_disb_dt,
      new_references.disb_accpt_amt,
      new_references.accpt_db_cr_flag,
      new_references.disb_ytd_amt,
      new_references.pymt_prd_start_dt,
      new_references.accpt_pymt_prd_start_dt,
      new_references.edit_code,
      new_references.rfmb_id,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login ,
      x_request_id,
      x_program_id,
      x_program_application_id,
      x_program_update_date,
      l_org_id,
      new_references.ed_use_flags
    );
Line: 578

  END insert_row;
Line: 611

      SELECT
        origination_id,
        disb_ref_num,
        disb_dt,
        disb_amt,
        db_cr_flag,
        disb_ack_act_status,
        disb_status_dt,
        accpt_disb_dt,
        disb_accpt_amt,
        accpt_db_cr_flag,
        disb_ytd_amt,
        pymt_prd_start_dt,
        accpt_pymt_prd_start_dt,
        edit_code,
        rfmb_id,
        ed_use_flags
      FROM  igf_gr_rfms_disb_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 639

      fnd_message.set_name('FND', 'FORM_RECORD_DELETED');
Line: 677

  PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_rfmd_id                           IN     NUMBER,
    x_origination_id                    IN     VARCHAR2,
    x_disb_ref_num                      IN     VARCHAR2,
    x_disb_dt                           IN     DATE,
    x_disb_amt                          IN     NUMBER,
    x_db_cr_flag                        IN     VARCHAR2,
    x_disb_ack_act_status               IN     VARCHAR2,
    x_disb_status_dt                    IN     DATE,
    x_accpt_disb_dt                     IN     DATE,
    x_disb_accpt_amt                    IN     NUMBER,
    x_accpt_db_cr_flag                  IN     VARCHAR2,
    x_disb_ytd_amt                      IN     NUMBER,
    x_pymt_prd_start_dt                 IN     DATE,
    x_accpt_pymt_prd_start_dt           IN     DATE,
    x_edit_code                         IN     VARCHAR2,
    x_rfmb_id                           IN     NUMBER,
    x_mode                              IN     VARCHAR2,
    x_ed_use_flags                      IN     VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 12-JAN-2001
  ||  Purpose : Handles the UPDATE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    x_last_update_date           DATE ;
Line: 708

    x_last_updated_by            NUMBER;
Line: 709

    x_last_update_login          NUMBER;
Line: 713

    x_program_update_date        DATE;
Line: 717

    x_last_update_date := SYSDATE;
Line: 719

      x_last_updated_by := 1;
Line: 720

      x_last_update_login := 0;
Line: 722

      x_last_updated_by := fnd_global.user_id;
Line: 723

      IF x_last_updated_by IS NULL THEN
        x_last_updated_by := -1;
Line: 726

      x_last_update_login := fnd_global.login_id;
Line: 727

      IF (x_last_update_login IS NULL) THEN
        x_last_update_login := -1;
Line: 737

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_rfmd_id                           => x_rfmd_id,
      x_origination_id                    => x_origination_id,
      x_disb_ref_num                      => x_disb_ref_num,
      x_disb_dt                           => x_disb_dt,
      x_disb_amt                          => x_disb_amt,
      x_db_cr_flag                        => x_db_cr_flag,
      x_disb_ack_act_status               => x_disb_ack_act_status,
      x_disb_status_dt                    => x_disb_status_dt,
      x_accpt_disb_dt                     => x_accpt_disb_dt,
      x_disb_accpt_amt                    => x_disb_accpt_amt,
      x_accpt_db_cr_flag                  => x_accpt_db_cr_flag,
      x_disb_ytd_amt                      => x_disb_ytd_amt,
      x_pymt_prd_start_dt                 => x_pymt_prd_start_dt,
      x_accpt_pymt_prd_start_dt           => x_accpt_pymt_prd_start_dt,
      x_edit_code                         => x_edit_code,
      x_rfmb_id                           => x_rfmb_id,
      x_creation_date                     => x_last_update_date,
      x_created_by                        => x_last_updated_by,
      x_last_update_date                  => x_last_update_date,
      x_last_updated_by                   => x_last_updated_by,
      x_last_update_login                 => x_last_update_login,
      x_ed_use_flags                      => x_ed_use_flags
    );
Line: 771

        x_program_update_date := old_references.program_update_date;
Line: 773

        x_program_update_date := SYSDATE;
Line: 777

    UPDATE igf_gr_rfms_disb_all
      SET
        origination_id                    = new_references.origination_id,
        disb_ref_num                      = new_references.disb_ref_num,
        disb_dt                           = new_references.disb_dt,
        disb_amt                          = new_references.disb_amt,
        db_cr_flag                        = new_references.db_cr_flag,
        disb_ack_act_status               = new_references.disb_ack_act_status,
        disb_status_dt                    = new_references.disb_status_dt,
        accpt_disb_dt                     = new_references.accpt_disb_dt,
        disb_accpt_amt                    = new_references.disb_accpt_amt,
        accpt_db_cr_flag                  = new_references.accpt_db_cr_flag,
        disb_ytd_amt                      = new_references.disb_ytd_amt,
        pymt_prd_start_dt                 = new_references.pymt_prd_start_dt,
        accpt_pymt_prd_start_dt           = new_references.accpt_pymt_prd_start_dt,
        edit_code                         = new_references.edit_code,
        rfmb_id                           = new_references.rfmb_id,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login ,
        request_id                        = x_request_id,
        program_id                        = x_program_id,
        program_application_id            = x_program_application_id,
        program_update_date               = x_program_update_date,
        ed_use_flags                      = new_references.ed_use_flags
      WHERE rowid = x_rowid;
Line: 808

  END update_row;
Line: 835

  ||  Purpose : Adds a row if there is no existing row, otherwise updates existing row in the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
    CURSOR c1 IS
      SELECT   rowid
      FROM     igf_gr_rfms_disb_all
      WHERE    rfmd_id                           = x_rfmd_id;
Line: 853

      insert_row (
        x_rowid,
        x_rfmd_id,
        x_origination_id,
        x_disb_ref_num,
        x_disb_dt,
        x_disb_amt,
        x_db_cr_flag,
        x_disb_ack_act_status,
        x_disb_status_dt,
        x_accpt_disb_dt,
        x_disb_accpt_amt,
        x_accpt_db_cr_flag,
        x_disb_ytd_amt,
        x_pymt_prd_start_dt,
        x_accpt_pymt_prd_start_dt,
        x_edit_code,
        x_rfmb_id,
        x_mode,
        x_ed_use_flags
      );
Line: 878

    update_row (
      x_rowid,
      x_rfmd_id,
      x_origination_id,
      x_disb_ref_num,
      x_disb_dt,
      x_disb_amt,
      x_db_cr_flag,
      x_disb_ack_act_status,
      x_disb_status_dt,
      x_accpt_disb_dt,
      x_disb_accpt_amt,
      x_accpt_db_cr_flag,
      x_disb_ytd_amt,
      x_pymt_prd_start_dt,
      x_accpt_pymt_prd_start_dt,
      x_edit_code,
      x_rfmb_id,
      x_mode,
      x_ed_use_flags
    );
Line: 903

  PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS
  /*
  ||  Created By : avenkatr
  ||  Created On : 12-JAN-2001
  ||  Purpose : Handles the DELETE DML logic for the table.
  ||  Known limitations, enhancements or remarks :
  ||  Change History :
  ||  Who             When            What
  ||  (reverse chronological order - newest change first)
  */
  BEGIN

    before_dml (
      p_action => 'DELETE',
      x_rowid => x_rowid
    );
Line: 922

    DELETE FROM igf_gr_rfms_disb_all
    WHERE rowid = x_rowid;
Line: 929

  END delete_row;