The following lines contain the word 'select', 'insert', 'update' or 'delete':
Select decode(x_Process,'PLSQL','PLSQL','SQL','SQL','REPORT',
'REPORT','FORM','FORM','PLSQL'),
decode(x_Write_File,'LOG','LOG','OUT','OUT','LOG')
Into G_Process, G_WriteFile
From dual;
Select decode(G_WriteFile,'LOG',FND_FILE.LOG,FND_FILE.OUTPUT )
Into G_WriteFileID
From dual;
G_Function_Stack.delete(G_Function_Counter);