DBA Data[Home] [Help]

APPS.GL_RECURRING_HEADERS_PKG SQL Statements

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

Line: 14

      SELECT 'found'
      FROM   gl_recurring_headers head
      WHERE  head.LEDGER_ID	= x_ledger_id
      AND    head.RECURRING_BATCH_ID	= x_recurring_batch_id
      AND    TRUNC( sysdate )
               BETWEEN  NVL( head.START_DATE_ACTIVE, TRUNC( sysdate ) )
               AND      NVL( head.END_DATE_ACTIVE, TRUNC( sysdate ) );
Line: 55

      SELECT 'Duplicate'
      FROM   gl_recurring_headers h
      WHERE  upper( h.name) = upper( x_name )
      AND    h.recurring_batch_id = x_batchid
      AND    ( x_rowid is NULL
               OR
               h.rowid <> x_rowid );
Line: 93

      SELECT GL_RECURRING_HEADERS_S.NEXTVAL
      FROM   dual;
Line: 125

  PROCEDURE delete_rows( x_batch_id    NUMBER ) IS

    CURSOR c_header IS
      SELECT    h.RECURRING_HEADER_ID
      FROM      GL_RECURRING_HEADERS h
      WHERE     h.RECURRING_BATCH_ID = x_batch_id;
Line: 142

      DELETE
      FROM   GL_RECURRING_LINE_CALC_RULES
      WHERE  RECURRING_HEADER_ID = header_id;
Line: 146

      DELETE
      FROM   GL_RECURRING_LINES
      WHERE  RECURRING_HEADER_ID = header_id;
Line: 154

    DELETE
    FROM    GL_RECURRING_HEADERS
    WHERE   RECURRING_BATCH_ID = x_batch_id;
Line: 164

        'GL_RECURRING_HEADERS_PKG.delete_rows');
Line: 167

  END delete_rows;
Line: 171

PROCEDURE Insert_Row(X_Rowid                        IN OUT NOCOPY VARCHAR2,
                     X_Recurring_Header_Id          IN OUT NOCOPY NUMBER,
                     X_Last_Update_Date                    DATE,
                     X_Last_Updated_By                     NUMBER,
                     X_Ledger_Id                           NUMBER,
                     X_Name                                VARCHAR2,
                     X_Je_Category_Name                    VARCHAR2,
                     X_Enabled_Flag                        VARCHAR2,
                     X_Allocation_Flag                     VARCHAR2,
                     X_Currency_Code                       VARCHAR2,
                     X_Currency_Conversion_Type            VARCHAR2,
                     X_Creation_Date                       DATE,
                     X_Created_By                          NUMBER,
                     X_Last_Update_Login                   NUMBER,
                     X_Recurring_Batch_Id                  NUMBER,
                     X_Period_Type                         VARCHAR2,
                     X_Last_Executed_Period_Name           VARCHAR2,
                     X_Last_Executed_Date                  DATE,
                     X_Start_Date_Active                   DATE,
                     X_End_Date_Active                     DATE,
                     X_Attribute1                          VARCHAR2,
                     X_Attribute2                          VARCHAR2,
                     X_Attribute3                          VARCHAR2,
                     X_Attribute4                          VARCHAR2,
                     X_Attribute5                          VARCHAR2,
                     X_Attribute6                          VARCHAR2,
                     X_Attribute7                          VARCHAR2,
                     X_Attribute8                          VARCHAR2,
                     X_Attribute9                          VARCHAR2,
                     X_Attribute10                         VARCHAR2,
                     X_Context                             VARCHAR2
 ) IS

   CURSOR C IS
     SELECT rowid
       FROM GL_RECURRING_HEADERS
      WHERE recurring_header_id = X_Recurring_Header_Id;
Line: 210

      SELECT gl_recurring_headers_s.nextval
        FROM dual;
Line: 230

  INSERT INTO GL_RECURRING_HEADERS(
          recurring_header_id,
          last_update_date,
          last_updated_by,
          ledger_id,
          name,
          je_category_name,
          enabled_flag,
          allocation_flag,
          currency_code,
          currency_conversion_type,
          creation_date,
          created_by,
          last_update_login,
          recurring_batch_id,
          period_type,
          last_executed_period_name,
          last_executed_date,
          start_date_active,
          end_date_active,
          attribute1,
          attribute2,
          attribute3,
          attribute4,
          attribute5,
          attribute6,
          attribute7,
          attribute8,
          attribute9,
          attribute10,
          context
         ) VALUES (
          X_Recurring_Header_Id,
          X_Last_Update_Date,
          X_Last_Updated_By,
          X_Ledger_Id,
          X_Name,
          X_Je_Category_Name,
          X_Enabled_Flag,
          X_Allocation_Flag,
          X_Currency_Code,
          X_Currency_Conversion_Type,
          X_Creation_Date,
          X_Created_By,
          X_Last_Update_Login,
          X_Recurring_Batch_Id,
          X_Period_Type,
          X_Last_Executed_Period_Name,
          X_Last_Executed_Date,
          X_Start_Date_Active,
          X_End_Date_Active,
          X_Attribute1,
          X_Attribute2,
          X_Attribute3,
          X_Attribute4,
          X_Attribute5,
          X_Attribute6,
          X_Attribute7,
          X_Attribute8,
          X_Attribute9,
          X_Attribute10,
          X_Context

  );
Line: 302

END Insert_Row;
Line: 334

      SELECT *
      FROM   GL_RECURRING_HEADERS
      WHERE  rowid = X_Rowid
      FOR UPDATE OF Recurring_Header_Id NOWAIT;
Line: 435

PROCEDURE Update_Row(X_Rowid                               VARCHAR2,
                     X_Recurring_Header_Id                 NUMBER,
                     X_Last_Update_Date                    DATE,
                     X_Last_Updated_By                     NUMBER,
                     X_Ledger_Id                           NUMBER,
                     X_Name                                VARCHAR2,
                     X_Je_Category_Name                    VARCHAR2,
                     X_Enabled_Flag                        VARCHAR2,
                     X_Allocation_Flag                     VARCHAR2,
                     X_Currency_Code                       VARCHAR2,
                     X_Currency_Conversion_Type            VARCHAR2,
                     X_Last_Update_Login                   NUMBER,
                     X_Recurring_Batch_Id                  NUMBER,
                     X_Period_Type                         VARCHAR2,
                     X_Last_Executed_Period_Name           VARCHAR2,
                     X_Last_Executed_Date                  DATE,
                     X_Start_Date_Active                   DATE,
                     X_End_Date_Active                     DATE,
                     X_Attribute1                          VARCHAR2,
                     X_Attribute2                          VARCHAR2,
                     X_Attribute3                          VARCHAR2,
                     X_Attribute4                          VARCHAR2,
                     X_Attribute5                          VARCHAR2,
                     X_Attribute6                          VARCHAR2,
                     X_Attribute7                          VARCHAR2,
                     X_Attribute8                          VARCHAR2,
                     X_Attribute9                          VARCHAR2,
                     X_Attribute10                         VARCHAR2,
                     X_Context                             VARCHAR2
--                   Currency_Changed           IN OUT NOCOPY VARCHAR2
) IS

func_curr   VARCHAR2(15);
Line: 474

  UPDATE GL_RECURRING_HEADERS
  SET
    recurring_header_id                       =    X_Recurring_Header_Id,
    last_update_date                          =    X_Last_Update_Date,
    last_updated_by                           =    X_Last_Updated_By,
    ledger_id                                 =    X_Ledger_Id,
    name                                      =    X_Name,
    je_category_name                          =    X_Je_Category_Name,
    enabled_flag                              =    X_Enabled_Flag,
    allocation_flag                           =    X_Allocation_Flag,
    currency_code                             =    X_Currency_Code,
    currency_conversion_type                  =    X_Currency_Conversion_Type,
    last_update_login                         =    X_Last_Update_Login,
    recurring_batch_id                        =    X_Recurring_Batch_Id,
    period_type                               =    X_Period_Type,
    last_executed_period_name                 =    X_Last_Executed_Period_Name,
    last_executed_date                        =    X_Last_Executed_Date,
    start_date_active                         =    X_Start_Date_Active,
    end_date_active                           =    X_End_Date_Active,
    attribute1                                =    X_Attribute1,
    attribute2                                =    X_Attribute2,
    attribute3                                =    X_Attribute3,
    attribute4                                =    X_Attribute4,
    attribute5                                =    X_Attribute5,
    attribute6                                =    X_Attribute6,
    attribute7                                =    X_Attribute7,
    attribute8                                =    X_Attribute8,
    attribute9                                =    X_Attribute9,
    attribute10                               =    X_Attribute10,
    context                                   =    X_Context
  WHERE rowid = X_rowid;
Line: 510

END Update_Row;
Line: 514

PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
  DELETE
    FROM GL_RECURRING_HEADERS
   WHERE  rowid = X_Rowid;
Line: 523

END Delete_Row;