The following lines contain the word 'select', 'insert', 'update' or 'delete':
procedure INSERT_ROW(
x_billing_rule_line_id IN NUMBER ,
x_billing_rule_header_id IN NUMBER ,
x_client_code IN VARCHAR2 ,
x_client_number IN VARCHAR2 ,
x_service_agreement_line_id IN NUMBER ,
x_inventory_item_id IN NUMBER ,
x_billing_source_id IN NUMBER ,
x_creation_date IN DATE ,
x_created_by IN NUMBER,
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER ,
x_last_update_login IN NUMBER
) AS
BEGIN
INSERT INTO mtl_billing_rule_lines
( billing_rule_line_id,
billing_rule_header_id ,
client_code ,
client_number ,
service_agreement_line_id ,
inventory_item_id,
billing_source_id ,
creation_date ,
created_by ,
last_update_date ,
last_updated_by ,
last_update_login
)
VALUES
( x_billing_rule_line_id,
x_billing_rule_header_id ,
x_client_code ,
x_client_number ,
x_service_agreement_line_id ,
x_inventory_item_id ,
x_billing_source_id ,
x_last_update_date , -- x_creation_date ,
x_last_updated_by ,--x_created_by ,
x_last_update_date ,
x_last_updated_by ,
x_last_update_login
);
END INSERT_ROW;
procedure UPDATE_ROW(
x_billing_rule_line_id IN NUMBER ,
x_billing_rule_header_id IN NUMBER ,
x_client_code IN VARCHAR2 ,
x_client_number IN VARCHAR2 ,
x_service_agreement_line_id IN NUMBER ,
x_inventory_item_id IN NUMBER ,
x_billing_source_id IN NUMBER ,
x_creation_date IN DATE ,
x_created_by IN NUMBER,
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER ,
x_last_update_login IN NUMBER
) AS
l_billing_rule_line_id NUMBER;
INSERT INTO mtl_billing_rule_lines
( billing_rule_line_id,
billing_rule_header_id ,
client_code ,
client_number ,
service_agreement_line_id ,
inventory_item_id,
billing_source_id ,
creation_date ,
created_by ,
last_update_date ,
last_updated_by ,
last_update_login
)
VALUES
( x_billing_rule_line_id,
x_billing_rule_header_id ,
x_client_code ,
x_client_number ,
x_service_agreement_line_id ,
x_inventory_item_id,
x_billing_source_id,
x_last_update_date, -- x_creation_date ,
x_last_updated_by, --x_created_by ,
x_last_update_date ,
x_last_updated_by ,
x_last_update_login
);
update mtl_billing_rule_lines set
billing_rule_header_id = x_billing_rule_header_id,
client_code = x_client_code,
client_number = x_client_number,
service_agreement_line_id = x_service_agreement_line_id,
billing_source_id = x_billing_source_id,
last_update_date = x_last_update_date,
last_updated_by = x_last_updated_by,
last_update_login = x_last_update_login
where billing_rule_line_id = x_billing_rule_line_id;
END UPDATE_ROW;
procedure DELETE_ROW (
x_billing_rule_line_id in NUMBER
) is
BEGIN
delete from mtl_billing_rule_lines
where billing_rule_line_id = x_billing_rule_line_id;
end DELETE_ROW;
x_last_update_date IN DATE,
x_last_updated_by IN NUMBER ,
x_last_update_login IN NUMBER
) AS
l_billing_rule_line_id NUMBER;
cursor c is SELECT
billing_rule_line_id,
billing_rule_header_id ,
client_code ,
client_number ,
service_agreement_line_id ,
inventory_item_id,
billing_source_id ,
creation_date ,
created_by ,
last_update_date ,
last_updated_by ,
last_update_login
from mtl_billing_rule_lines
where billing_rule_line_id = x_billing_rule_line_id
for update of billing_rule_line_id nowait;
fnd_message.set_name('FND', 'FORM_RECORD_DELETED');