The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT product_version
INTO ProductVersion
FROM fnd_product_installations
WHERE application_id = 101;
SELECT average_balances_flag
INTO ABFlag
FROM gl_system_usages;
SELECT start_date, end_date
INTO PeriodStartDate, PeriodEndDate
FROM gl_period_statuses
WHERE period_name = PeriodName
AND application_id = 101
AND ledger_id = LedgerId;
SELECT period_name
INTO PeriodName
FROM gl_date_period_map
WHERE accounting_date = AccountingDate
AND period_set_name = PeriodSetName
AND period_type = PeriodType;
SELECT greatest(least(sysdate, end_date), start_date)
INTO AccountingDate
FROM gl_period_statuses
WHERE application_id = 101
AND ledger_id = LedgerId
AND period_name = PeriodName;
SELECT rg_report_requests_s.nextval
INTO new_sequence_number
FROM dual;
SELECT count(*)
INTO rec_returned
FROM rg_report_requests
WHERE report_set_id = cur_report_set_id
AND report_request_id <> cur_report_request_id
AND sequence = new_sequence;
PROCEDURE Insert_Row(X_Rowid IN OUT NOCOPY VARCHAR2,
X_Application_Id NUMBER,
X_Report_Request_Id NUMBER,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Last_Update_Login NUMBER,
X_Creation_Date DATE,
X_Created_By NUMBER,
X_Report_Id NUMBER,
X_Sequence NUMBER,
X_Form_Submission_Flag VARCHAR2,
X_Concurrent_Request_Id NUMBER,
X_Report_Set_Id NUMBER,
X_Content_Set_Id NUMBER,
X_Row_Order_Id NUMBER,
X_Exceptions_Flag VARCHAR2,
X_Rounding_Option VARCHAR2,
X_Output_Option VARCHAR2,
X_Ledger_Id NUMBER,
X_Alc_Ledger_Currency VARCHAR2,
X_Report_Display_Set_Id NUMBER,
X_Id_Flex_Code VARCHAR2,
X_Structure_Id NUMBER,
X_Segment_Override VARCHAR2,
X_Override_Alc_Ledger_Currency VARCHAR2,
X_Period_Name VARCHAR2,
X_Accounting_Date DATE,
X_Unit_Of_Measure_Id VARCHAR2,
X_Context VARCHAR2,
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_Attribute11 VARCHAR2,
X_Attribute12 VARCHAR2,
X_Attribute13 VARCHAR2,
X_Attribute14 VARCHAR2,
X_Attribute15 VARCHAR2,
X_Runtime_Option_Context VARCHAR2
) IS
CURSOR C IS SELECT rowid FROM RG_REPORT_REQUESTS
WHERE report_request_id = X_Report_Request_Id;
INSERT INTO RG_REPORT_REQUESTS(
application_id,
report_request_id,
last_update_date,
last_updated_by,
last_update_login,
creation_date,
created_by,
report_id,
sequence,
form_submission_flag,
concurrent_request_id,
report_set_id,
content_set_id,
row_order_id,
exceptions_flag,
rounding_option,
output_option,
ledger_id,
alc_ledger_currency,
report_display_set_id,
id_flex_code,
structure_id,
segment_override,
override_alc_ledger_currency,
period_name,
accounting_date,
unit_of_measure_id,
context,
attribute1,
attribute2,
attribute3,
attribute4,
attribute5,
attribute6,
attribute7,
attribute8,
attribute9,
attribute10,
attribute11,
attribute12,
attribute13,
attribute14,
attribute15,
runtime_option_context
) VALUES (
X_Application_Id,
X_Report_Request_Id,
X_Last_Update_Date,
X_Last_Updated_By,
X_Last_Update_Login,
X_Creation_Date,
X_Created_By,
X_Report_Id,
X_Sequence,
X_Form_Submission_Flag,
X_Concurrent_Request_Id,
X_Report_Set_Id,
X_Content_Set_Id,
X_Row_Order_Id,
X_Exceptions_Flag,
X_Rounding_Option,
X_Output_Option,
X_Ledger_Id,
X_Alc_Ledger_Currency,
X_Report_Display_Set_Id,
X_Id_Flex_Code,
X_Structure_Id,
X_Segment_Override,
X_Override_Alc_Ledger_Currency,
X_Period_Name,
X_Accounting_Date,
X_Unit_Of_Measure_Id,
X_Context,
X_Attribute1,
X_Attribute2,
X_Attribute3,
X_Attribute4,
X_Attribute5,
X_Attribute6,
X_Attribute7,
X_Attribute8,
X_Attribute9,
X_Attribute10,
X_Attribute11,
X_Attribute12,
X_Attribute13,
X_Attribute14,
X_Attribute15,
X_Runtime_Option_Context
);
END Insert_Row;
SELECT *
FROM RG_REPORT_REQUESTS
WHERE rowid = X_Rowid
FOR UPDATE of Report_Request_Id NOWAIT;
FND_MESSAGE.Set_Name('FND', 'FORM_RECORD_DELETED');
PROCEDURE Update_Row(X_Rowid VARCHAR2,
X_Application_Id NUMBER,
X_Report_Request_Id NUMBER,
X_Last_Update_Date DATE,
X_Last_Updated_By NUMBER,
X_Last_Update_Login NUMBER,
X_Report_Id NUMBER,
X_Sequence NUMBER,
X_Form_Submission_Flag VARCHAR2,
X_Concurrent_Request_Id NUMBER,
X_Report_Set_Id NUMBER,
X_Content_Set_Id NUMBER,
X_Row_Order_Id NUMBER,
X_Exceptions_Flag VARCHAR2,
X_Rounding_Option VARCHAR2,
X_Output_Option VARCHAR2,
X_Ledger_Id NUMBER,
X_Alc_Ledger_Currency VARCHAR2,
X_Report_Display_Set_Id NUMBER,
X_Id_Flex_Code VARCHAR2,
X_Structure_Id NUMBER,
X_Segment_Override VARCHAR2,
X_Override_Alc_Ledger_Currency VARCHAR2,
X_Period_Name VARCHAR2,
X_Accounting_Date DATE,
X_Unit_Of_Measure_Id VARCHAR2,
X_Context VARCHAR2,
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_Attribute11 VARCHAR2,
X_Attribute12 VARCHAR2,
X_Attribute13 VARCHAR2,
X_Attribute14 VARCHAR2,
X_Attribute15 VARCHAR2,
X_Runtime_Option_Context VARCHAR2
) IS
BEGIN
UPDATE RG_REPORT_REQUESTS
SET
application_id = X_Application_Id,
report_request_id = X_Report_Request_Id,
last_update_date = X_Last_Update_Date,
last_updated_by = X_Last_Updated_By,
last_update_login = X_Last_Update_Login,
report_id = X_Report_Id,
sequence = X_Sequence,
form_submission_flag = X_Form_Submission_Flag,
concurrent_request_id = X_Concurrent_Request_Id,
report_set_id = X_Report_Set_Id,
content_set_id = X_Content_Set_Id,
row_order_id = X_Row_Order_Id,
exceptions_flag = X_Exceptions_Flag,
rounding_option = X_Rounding_Option,
output_option = X_Output_Option,
ledger_id = X_Ledger_Id,
alc_ledger_currency = X_Alc_Ledger_Currency,
report_display_set_id = X_Report_Display_Set_Id,
id_flex_code = X_Id_Flex_Code,
structure_id = X_Structure_Id,
segment_override = X_Segment_Override,
override_alc_ledger_currency = X_Override_Alc_Ledger_Currency,
period_name = X_Period_Name,
accounting_date = X_Accounting_Date,
unit_of_measure_id = X_Unit_Of_Measure_Id,
context = X_Context,
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,
attribute11 = X_Attribute11,
attribute12 = X_Attribute12,
attribute13 = X_Attribute13,
attribute14 = X_Attribute14,
attribute15 = X_Attribute15,
runtime_option_context = X_Runtime_Option_Context
WHERE rowid = X_rowid;
END Update_Row;
PROCEDURE Delete_Row(X_Rowid VARCHAR2) IS
BEGIN
DELETE FROM RG_REPORT_REQUESTS
WHERE rowid = X_Rowid;
END Delete_Row;