The following lines contain the word 'select', 'insert', 'update' or 'delete':
INSERT INTO bsc_kpi_measure_weights
( indicator
, kpi_measure_id
, weight
, creation_date
, created_by
, last_update_date
, last_updated_by
, last_update_login
)
VALUES
( p_kpi_measure_weights_rec.objective_id
, p_kpi_measure_weights_rec.kpi_measure_id
, p_kpi_measure_weights_rec.weight
, NVL(p_kpi_measure_weights_rec.creation_date, SYSDATE)
, NVL(p_kpi_measure_weights_rec.created_by, FND_GLOBAL.USER_ID)
, NVL(p_kpi_measure_weights_rec.last_update_date, SYSDATE)
, NVL(p_kpi_measure_weights_rec.last_updated_by, FND_GLOBAL.USER_ID)
, NVL(p_kpi_measure_weights_rec.last_update_login, FND_GLOBAL.LOGIN_ID)
);
PROCEDURE Update_Kpi_Measure_Weights (
p_commit IN VARCHAR2 := FND_API.G_FALSE
, p_kpi_measure_weights_rec IN BSC_KPI_MEASURE_WEIGHTS_PUB.kpi_measure_weights_rec
, x_return_status OUT NOCOPY VARCHAR2
, x_msg_count OUT NOCOPY NUMBER
, x_msg_data OUT NOCOPY VARCHAR2
)
IS
l_kpi_measure_weights_rec BSC_KPI_MEASURE_WEIGHTS_PUB.kpi_measure_weights_rec;
SAVEPOINT BscKpiMeasureWeightPvt_Update;
IF(p_kpi_measure_weights_rec.last_update_date IS NULL) THEN
l_kpi_measure_weights_rec.last_update_date := SYSDATE;
l_kpi_measure_weights_rec.last_update_date := p_kpi_measure_weights_rec.last_update_date;
IF (p_kpi_measure_weights_rec.last_updated_by IS NULL) THEN
l_kpi_measure_weights_rec.last_updated_by := FND_GLOBAL.USER_ID;
l_kpi_measure_weights_rec.last_updated_by := p_kpi_measure_weights_rec.last_updated_by;
IF (p_kpi_measure_weights_rec.last_update_login IS NULL) THEN
l_kpi_measure_weights_rec.last_update_login := FND_GLOBAL.LOGIN_ID;
l_kpi_measure_weights_rec.last_update_login := p_kpi_measure_weights_rec.last_update_login;
UPDATE bsc_kpi_measure_weights
SET weight = l_kpi_measure_weights_rec.weight
, last_updated_by = l_kpi_measure_weights_rec.last_updated_by
, last_update_date = l_kpi_measure_weights_rec.last_update_date
, last_update_login = l_kpi_measure_weights_rec.last_update_login
WHERE indicator = l_kpi_measure_weights_rec.objective_id
AND kpi_measure_id = l_kpi_measure_weights_rec.kpi_measure_id;
ROLLBACK TO BscKpiMeasureWeightPvt_Update;
ROLLBACK TO BscKpiMeasureWeightPvt_Update;
ROLLBACK TO BscKpiMeasureWeightPvt_Update;
x_msg_data := x_msg_data || ' -> BSC_KPI_MEASURE_WEIGHTS_PVT.Update_Kpi_Measure_Weights ';
x_msg_data := SQLERRM || ' at BSC_KPI_MEASURE_WEIGHTS_PVT.Update_Kpi_Measure_Weights ';
ROLLBACK TO BscKpiMeasureWeightPvt_Update;
x_msg_data := x_msg_data || ' -> BSC_KPI_MEASURE_WEIGHTS_PVT.Update_Kpi_Measure_Weights ';
x_msg_data := SQLERRM || ' at BSC_KPI_MEASURE_WEIGHTS_PVT.Update_Kpi_Measure_Weights ';
END Update_Kpi_Measure_Weights;
SAVEPOINT BscKpiMeasureWeightPvt_Delete;
DELETE FROM bsc_kpi_measure_weights
WHERE indicator = p_objective_id
AND kpi_measure_id = p_kpi_measure_id;
ROLLBACK TO BscKpiMeasureWeightPvt_Delete;
ROLLBACK TO BscKpiMeasureWeightPvt_Delete;
ROLLBACK TO BscKpiMeasureWeightPvt_Delete;
ROLLBACK TO BscKpiMeasureWeightPvt_Delete;
DELETE FROM bsc_kpi_measure_weights
WHERE indicator = p_objective_id;
SELECT
indicator
, kpi_measure_id
, weight
, creation_date
, created_by
, last_update_date
, last_updated_by
, last_update_login
INTO
x_kpi_measure_weights_rec.objective_id
, x_kpi_measure_weights_rec.kpi_measure_id
, x_kpi_measure_weights_rec.weight
, x_kpi_measure_weights_rec.creation_date
, x_kpi_measure_weights_rec.created_by
, x_kpi_measure_weights_rec.last_update_date
, x_kpi_measure_weights_rec.last_updated_by
, x_kpi_measure_weights_rec.last_update_login
FROM bsc_kpi_measure_weights
WHERE indicator = p_objective_id
AND kpi_measure_id = p_kpi_measure_id;