The following lines contain the word 'select', 'insert', 'update' or 'delete':
INSERT INTO bsc_sys_periods
( periodicity_id
, year
, period_id
, start_date
, end_date
, start_period
, end_period
, created_by
, creation_date
, last_updated_by
, last_update_date
, last_update_login
)VALUES
(
p_Period_Record.Periodicity_Id
, l_Fiscal_Year
, i
, l_Start_Date
, l_End_Date
, l_Start_Period
, l_End_Period
, NVL(p_Period_Record.Created_By,FND_GLOBAL.USER_ID)
, NVL(p_Period_Record.Creation_Date,SYSDATE)
, NVL(p_Period_Record.Last_Updated_By,FND_GLOBAL.USER_ID)
, NVL(p_Period_Record.Last_Update_Date,SYSDATE)
, NVL(p_Period_Record.Last_Update_Login,FND_GLOBAL.LOGIN_ID)
);
PROCEDURE Update_Periods
( p_Api_Version IN NUMBER
, p_Commit IN VARCHAR2 := FND_API.G_FALSE
, p_Period_Record IN BSC_PERIODS_PUB.Period_Record
, x_Return_Status OUT NOCOPY VARCHAR2
, x_Msg_Count OUT NOCOPY NUMBER
, x_Msg_Data OUT NOCOPY VARCHAR2
)IS
l_System_Stage bsc_sys_init.property_value%TYPE;
SAVEPOINT UpdatePeriodsPVTSP;
BSC_PERIODICITY_PVT.Delete_Periods
( p_Api_Version => p_Api_Version
, p_Commit => p_Commit
, p_Period_Record => p_Period_Record
, x_Return_Status => x_Return_Status
, x_Msg_Count => x_Msg_Count
, x_Msg_Data => x_Msg_Data
);
ROLLBACK TO UpdatePeriodsPVTSP;
x_msg_data := x_msg_data||' -> BSC_PERIODICITY_PVT.Update_Periods ';
x_msg_data := SQLERRM||' at BSC_PERIODICITY_PVT.Update_Periods ';
ROLLBACK TO UpdatePeriodsPVTSP;
x_msg_data := x_msg_data||' -> BSC_PERIODICITY_PVT.Update_Periods ';
x_msg_data := SQLERRM||' at BSC_PERIODICITY_PVT.Update_Periods ';
END Update_Periods;
PROCEDURE Delete_Periods
( p_Api_Version IN NUMBER
, p_Commit IN VARCHAR2 := FND_API.G_FALSE
, p_Period_Record IN BSC_PERIODS_PUB.Period_Record
, x_Return_Status OUT NOCOPY VARCHAR2
, x_Msg_Count OUT NOCOPY NUMBER
, x_Msg_Data OUT NOCOPY VARCHAR2
)IS
BEGIN
SAVEPOINT DeletePeriodsPVTSP;
DELETE bsc_sys_periods
WHERE periodicity_id = p_Period_Record.Periodicity_Id;
DELETE bsc_sys_periods_tl
WHERE periodicity_id = p_Period_Record.Periodicity_Id;
ROLLBACK TO DeletePeriodsPVTSP;
x_msg_data := x_msg_data||' -> BSC_PERIODICITY_PVT.Delete_Periods ';
x_msg_data := SQLERRM||' at BSC_PERIODICITY_PVT.Delete_Periods ';
ROLLBACK TO DeletePeriodsPVTSP;
x_msg_data := x_msg_data||' -> BSC_PERIODICITY_PVT.Delete_Periods ';
x_msg_data := SQLERRM||' at BSC_PERIODICITY_PVT.Delete_Periods ';
END Delete_Periods;