DBA Data[Home] [Help]

APPS.GR_DOCUMENT_RTK_PKG SQL Statements

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

Line: 3

PROCEDURE Insert_Row
	   			 (p_commit IN VARCHAR2,
				  p_called_by_form IN VARCHAR2,
				  p_document_code IN VARCHAR2,
				  p_location_segment_qualifier IN VARCHAR2,
				  p_location_segment_value IN VARCHAR2,
				  p_parent_segment_id IN NUMBER,
				  p_created_by IN NUMBER,
				  p_creation_date IN DATE,
				  p_last_updated_by IN NUMBER,
				  p_last_update_date IN DATE,
				  p_last_update_login IN NUMBER,
				  x_rowid OUT NOCOPY VARCHAR2,
				  x_return_status OUT NOCOPY VARCHAR2,
				  x_oracle_error OUT NOCOPY NUMBER,
				  x_msg_data OUT NOCOPY VARCHAR2)
	IS
/*   Alpha Variables */

L_RETURN_STATUS VARCHAR2(1) := 'S';
Line: 44

   SAVEPOINT Insert_Row;
Line: 75

   INSERT INTO gr_document_rtk
   		  	     (document_code,
				  location_segment_qualifier,
				  location_segment_value,
				  parent_segment_id,
				  created_by,
				  creation_date,
				  last_updated_by,
				  last_update_date,
				  last_update_login)
          VALUES
		         (p_document_code,
				  p_location_segment_qualifier,
				  p_location_segment_value,
				  p_parent_segment_id,
				  p_created_by,
				  p_creation_date,
				  p_last_updated_by,
				  p_last_update_date,
				  p_last_update_login);
Line: 96

/*   Now get the row id of the inserted record */

   Check_Primary_Key
   	   	   		 (p_document_code,
				  'F',
				  l_rowid,
				  l_key_exists);
Line: 119

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 134

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 149

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 153

                           'GR_NO_RECORD_INSERTED');
Line: 164

      ROLLBACK TO SAVEPOINT Insert_Row;
Line: 179

END Insert_Row;
Line: 181

PROCEDURE Update_Row
	   			 (p_commit IN VARCHAR2,
				  p_called_by_form IN VARCHAR2,
				  p_rowid IN VARCHAR2,
				  p_document_code IN VARCHAR2,
				  p_location_segment_qualifier IN VARCHAR2,
				  p_location_segment_value IN VARCHAR2,
				  p_parent_segment_id IN NUMBER,
				  p_created_by IN NUMBER,
				  p_creation_date IN DATE,
				  p_last_updated_by IN NUMBER,
				  p_last_update_date IN DATE,
				  p_last_update_login IN NUMBER,
				  x_return_status OUT NOCOPY VARCHAR2,
				  x_oracle_error OUT NOCOPY NUMBER,
				  x_msg_data OUT NOCOPY VARCHAR2)
   IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 217

   SAVEPOINT Update_Row;
Line: 236

      UPDATE gr_document_rtk
      SET	 document_code				  	 = p_document_code,
			 location_segment_qualifier	     = p_location_segment_qualifier,
			 location_segment_value	  		 = p_location_segment_value,
			 parent_segment_id	  			 = p_parent_segment_id,
			 created_by						 = p_created_by,
			 creation_date					 = p_creation_date,
			 last_updated_by				 = p_last_updated_by,
			 last_update_date				 = p_last_update_date,
			 last_update_login				 = p_last_update_login
	  WHERE  rowid = p_rowid;
Line: 261

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 276

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 280

                           'GR_NO_RECORD_INSERTED');
Line: 291

      ROLLBACK TO SAVEPOINT Update_Row;
Line: 306

END Update_Row;
Line: 318

				  p_last_updated_by IN NUMBER,
				  p_last_update_date IN DATE,
				  p_last_update_login IN NUMBER,
				  x_return_status OUT NOCOPY VARCHAR2,
				  x_oracle_error OUT NOCOPY NUMBER,
				  x_msg_data OUT NOCOPY VARCHAR2)
   IS

/*  Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 345

   SELECT	*
   FROM		gr_document_rtk
   WHERE	rowid = p_rowid
   FOR UPDATE NOWAIT;
Line: 420

PROCEDURE Delete_Row
	   			 (p_commit IN VARCHAR2,
				  p_called_by_form IN VARCHAR2,
				  p_rowid IN VARCHAR2,
				  p_document_code IN VARCHAR2,
				  p_location_segment_qualifier IN VARCHAR2,
				  p_location_segment_value IN VARCHAR2,
				  p_parent_segment_id IN NUMBER,
				  p_created_by IN NUMBER,
				  p_creation_date IN DATE,
				  p_last_updated_by IN NUMBER,
				  p_last_update_date IN DATE,
				  p_last_update_login IN NUMBER,
				  x_return_status OUT NOCOPY VARCHAR2,
				  x_oracle_error OUT NOCOPY NUMBER,
				  x_msg_data OUT NOCOPY VARCHAR2)
   IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 458

   SAVEPOINT Delete_Row;
Line: 480

   DELETE FROM gr_document_rtk
   WHERE  	   rowid = p_rowid;
Line: 492

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 502

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 517

      ROLLBACK TO SAVEPOINT Delete_Row;
Line: 533

END Delete_Row;
Line: 535

PROCEDURE Delete_Rows
	             (p_commit IN VARCHAR2,
				  p_called_by_form IN VARCHAR2,
	              p_document_code IN VARCHAR2,
				  x_return_status OUT NOCOPY VARCHAR2,
				  x_oracle_error OUT NOCOPY NUMBER,
				  x_msg_data OUT NOCOPY VARCHAR2)
  IS

/*   Alpha Variables */

L_RETURN_STATUS	  VARCHAR2(1) := 'S';
Line: 560

   SAVEPOINT Delete_Rows;
Line: 566

   DELETE FROM gr_document_rtk
   WHERE 	   document_code = p_document_code;
Line: 576

      ROLLBACK TO SAVEPOINT Delete_Rows;
Line: 591

END Delete_Rows;
Line: 620

   SELECT	av.location_segment_id
   FROM		ar_location_values av
   WHERE	location_segment_qualifier = p_location_segment_qualifier
   AND		location_segment_value = p_location_segment_value
   AND		parent_segment_id = p_parent_segment_id;
Line: 759

   SELECT dr.rowid
   FROM	  gr_document_rtk dr
   WHERE  dr.document_code = p_document_code;