DBA Data[Home] [Help]

APPS.IGF_AW_COA_GROUP_PKG SQL Statements

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

Line: 21

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER,
    x_coa_grp_desc                      IN     VARCHAR2
  ) AS
--
--    Created By : adhawan
--    Created On : 30-NOV-2000
--    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_AW_COA_GROUP_ALL
      WHERE    rowid = x_rowid;
Line: 49

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

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

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

    new_references.last_update_date                  := x_last_update_date;
Line: 78

    new_references.last_updated_by                   := x_last_updated_by;
Line: 79

    new_references.last_update_login                 := x_last_update_login;
Line: 107

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

      SELECT   rowid
      FROM     igf_aw_coa_group_all
      WHERE    upper(coa_code) = upper(x_coa_code)
      AND      ci_cal_type = x_ci_cal_type
      AND      ci_sequence_number = x_ci_sequence_number
      FOR UPDATE NOWAIT;
Line: 197

      SELECT   rowid
      FROM     igf_aw_coa_group_all
      WHERE   ((ci_cal_type = x_cal_type) AND
               (ci_sequence_number = x_sequence_number));
Line: 233

    x_last_update_date                  IN     DATE,
    x_last_updated_by                   IN     NUMBER,
    x_last_update_login                 IN     NUMBER,
    x_coa_grp_desc                      IN     VARCHAR2
  ) AS

--
--    Created By : adhawan
--    Created On : 30-NOV-2000
--    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)
--

BEGIN

    set_column_values (
      p_action,
      x_rowid,
      x_coa_code,
      x_ci_cal_type,
      x_ci_sequence_number,
      x_rule_order,
      x_s_rule_call_cd,
      x_rul_sequence_number,
      x_pell_coa,
      x_pell_alt_exp,
      x_creation_date,
      x_created_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      x_coa_grp_desc
    );
Line: 270

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

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

    ELSIF (p_action = 'DELETE') THEN
      -- Call all the procedures related to Before Delete.
      check_child_existance;
Line: 289

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

    ELSIF (p_action = 'VALIDATE_DELETE') THEN
      check_child_existance;
Line: 308

PROCEDURE insert_row (
    x_rowid                             IN OUT NOCOPY VARCHAR2,
    x_coa_code                          IN     VARCHAR2,
    x_ci_cal_type                       IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_rule_order                        IN     NUMBER,
    x_s_rule_call_cd                    IN     VARCHAR2,
    x_rul_sequence_number               IN     NUMBER,
    x_pell_coa                          IN     NUMBER,
    x_pell_alt_exp                      IN     NUMBER,
    x_coa_grp_desc                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS

--
--    Created By : adhawan
--    Created On : 30-NOV-2000
--    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 c IS
      SELECT   rowid
      FROM     igf_aw_coa_group_all
      WHERE    coa_code                          = x_coa_code
      AND      ci_cal_type                       = x_ci_cal_type
      AND      ci_sequence_number                = x_ci_sequence_number;
Line: 339

    x_last_update_date      DATE;
Line: 340

    x_last_updated_by       NUMBER;
Line: 341

    x_last_update_login     NUMBER;
Line: 348

    x_last_update_date := SYSDATE;
Line: 350

      x_last_updated_by := 1;
Line: 351

      x_last_update_login := 0;
Line: 353

      x_last_updated_by := fnd_global.user_id;
Line: 354

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

      x_last_update_login := fnd_global.login_id;
Line: 358

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

      p_action                            => 'INSERT',
      x_rowid                             => x_rowid,
      x_coa_code                          => x_coa_code,
      x_ci_cal_type                       => x_ci_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      x_rule_order                        => x_rule_order,
      x_s_rule_call_cd                    => x_s_rule_call_cd,
      x_rul_sequence_number               => x_rul_sequence_number,
      x_pell_coa                          => x_pell_coa,
      x_pell_alt_exp                      => x_pell_alt_exp,
      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_coa_grp_desc                      => x_coa_grp_desc
    );
Line: 386

    INSERT INTO igf_aw_coa_group(
      coa_code,
      ci_cal_type,
      ci_sequence_number,
      creation_date,
      created_by,
      last_update_date,
      last_updated_by,
      last_update_login,
      org_id,
      coa_grp_desc
    ) VALUES (
      new_references.coa_code,
      new_references.ci_cal_type,
      new_references.ci_sequence_number,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_date,
      x_last_updated_by,
      x_last_update_login,
      l_org_id,
      new_references.coa_grp_desc
    );
Line: 418

END insert_row;
Line: 445

      SELECT
        coa_grp_desc
      FROM  igf_aw_coa_group_all
      WHERE rowid = x_rowid
      FOR UPDATE NOWAIT;
Line: 457

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

PROCEDURE update_row (
    x_rowid                             IN     VARCHAR2,
    x_coa_code                          IN     VARCHAR2,
    x_ci_cal_type                       IN     VARCHAR2,
    x_ci_sequence_number                IN     NUMBER,
    x_rule_order                        IN     NUMBER,
    x_s_rule_call_cd                    IN     VARCHAR2,
    x_rul_sequence_number               IN     NUMBER,
    x_pell_coa                          IN     NUMBER,
    x_pell_alt_exp                      IN     NUMBER,
    x_coa_grp_desc                      IN     VARCHAR2,
    x_mode                              IN     VARCHAR2
  ) AS

--
--    Created By : adhawan
--    Created On : 30-NOV-2000
--    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)
--

    x_last_update_date           DATE ;
Line: 505

    x_last_updated_by            NUMBER;
Line: 506

    x_last_update_login          NUMBER;
Line: 510

    x_last_update_date := SYSDATE;
Line: 512

      x_last_updated_by := 1;
Line: 513

      x_last_update_login := 0;
Line: 515

      x_last_updated_by := fnd_global.user_id;
Line: 516

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

      x_last_update_login := fnd_global.login_id;
Line: 520

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

      p_action                            => 'UPDATE',
      x_rowid                             => x_rowid,
      x_coa_code                          => x_coa_code,
      x_ci_cal_type                       => x_ci_cal_type,
      x_ci_sequence_number                => x_ci_sequence_number,
      x_rule_order                        => x_rule_order,
      x_s_rule_call_cd                    => x_s_rule_call_cd,
      x_rul_sequence_number               => x_rul_sequence_number,
      x_pell_coa                          => x_pell_coa,
      x_pell_alt_exp                      => x_pell_alt_exp,
      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_coa_grp_desc                      => x_coa_grp_desc
    );
Line: 548

    UPDATE igf_aw_coa_group_all
      SET
        coa_grp_desc                      = new_references.coa_grp_desc,
        last_update_date                  = x_last_update_date,
        last_updated_by                   = x_last_updated_by,
        last_update_login                 = x_last_update_login
      WHERE rowid = x_rowid;
Line: 560

END update_row;
Line: 588

      SELECT   rowid
      FROM     igf_aw_coa_group_all
      WHERE    coa_code                          = x_coa_code
      AND      ci_cal_type                       = x_ci_cal_type
      AND      ci_sequence_number                = x_ci_sequence_number;
Line: 601

      insert_row (
        x_rowid,
        x_coa_code,
        x_ci_cal_type,
        x_ci_sequence_number,
        x_rule_order,
        x_s_rule_call_cd,
        x_rul_sequence_number,
        x_pell_coa,
        x_pell_alt_exp,
        x_coa_grp_desc,
        x_mode
      );
Line: 618

    update_row (
        x_rowid,
        x_coa_code,
        x_ci_cal_type,
        x_ci_sequence_number,
        x_rule_order,
        x_s_rule_call_cd,
        x_rul_sequence_number,
        x_pell_coa,
        x_pell_alt_exp,
        x_coa_grp_desc,
        x_mode
      );
Line: 635

PROCEDURE delete_row (
    x_rowid IN VARCHAR2
  ) AS

--
--    Created By : adhawan
--    Created On : 30-NOV-2000
--    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)
--

BEGIN

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

    DELETE FROM igf_aw_coa_group_all
    WHERE rowid = x_rowid;
Line: 663

END delete_row;