184: l_stmt varchar2(2000);
185:
186: BEGIN
187: -- truncate the table first to remove any data for the same session
188: execute immediate 'delete from BSC_PMA_MIG_TMP_OBJ_LIST';
189:
190: if(p_process_id is not null and pFetchMode = '1') then
191: -- get the configuration from bsc_db_loader_process
192: -- need to fetch indicators
203: CLOSE cv;
204:
205: --now put the data in the temp table
206: FORALL i IN l_obj_list.FIRST..l_obj_list.LAST
207: INSERT INTO BSC_PMA_MIG_TMP_OBJ_LIST VALUES l_obj_list(i);
208: elsif(p_process_id is not null and pFetchMode = '2') then
209: -- get the configuration from bsc_db_loader_process
210: -- need to fetch tabs
211: l_stmt:= 'Select DISTINCT K.TAB_ID, K.NAME
221: CLOSE cv;
222:
223: --now put the data in the temp table
224: FORALL i IN l_obj_list.FIRST..l_obj_list.LAST
225: INSERT INTO BSC_PMA_MIG_TMP_OBJ_LIST VALUES l_obj_list(i);
226: end if;
227:
228: END;
229: