34: FII_AR_SIC_CODE_M_C.g_push_date_range1 := nvl(l_from_date,
35: EDW_COLLECTION_UTIL.G_local_last_push_start_date - EDW_COLLECTION_UTIL.g_offset);
36: FII_AR_SIC_CODE_M_C.g_push_date_range2 := nvl(l_to_date,EDW_COLLECTION_UTIL.G_local_curr_push_start_date);
37: if g_debug_flag = 'Y' then
38: edw_log.put_line( 'The collection range is from '||
39: to_char(FII_AR_SIC_CODE_M_C.g_push_date_range1,'MM/DD/YYYY HH24:MI:SS')||' to '||
40: to_char(FII_AR_SIC_CODE_M_C.g_push_date_range2,'MM/DD/YYYY HH24:MI:SS'));
41: edw_log.put_line(' ');
42: end if;
37: if g_debug_flag = 'Y' then
38: edw_log.put_line( 'The collection range is from '||
39: to_char(FII_AR_SIC_CODE_M_C.g_push_date_range1,'MM/DD/YYYY HH24:MI:SS')||' to '||
40: to_char(FII_AR_SIC_CODE_M_C.g_push_date_range2,'MM/DD/YYYY HH24:MI:SS'));
41: edw_log.put_line(' ');
42: end if;
43:
44: -- -----------------------------------------------------------------------------
45: -- Start of Collection , Developer Customizable Section
44: -- -----------------------------------------------------------------------------
45: -- Start of Collection , Developer Customizable Section
46: -- -----------------------------------------------------------------------------
47: if g_debug_flag = 'Y' then
48: edw_log.put_line(' ');
49: edw_log.put_line('Pushing data');
50: end if;
51:
52: l_temp_date := sysdate;
45: -- Start of Collection , Developer Customizable Section
46: -- -----------------------------------------------------------------------------
47: if g_debug_flag = 'Y' then
48: edw_log.put_line(' ');
49: edw_log.put_line('Pushing data');
50: end if;
51:
52: l_temp_date := sysdate;
53:
57:
58: l_duration := sysdate - l_temp_date;
59:
60: if g_debug_flag = 'Y' then
61: edw_log.put_line('Process Time: '||edw_log.duration(l_duration));
62: edw_log.put_line(' ');
63: end if;
64: -- ---------------------------------------------------------------------------
65: -- END OF Collection , Developer Customizable Section
58: l_duration := sysdate - l_temp_date;
59:
60: if g_debug_flag = 'Y' then
61: edw_log.put_line('Process Time: '||edw_log.duration(l_duration));
62: edw_log.put_line(' ');
63: end if;
64: -- ---------------------------------------------------------------------------
65: -- END OF Collection , Developer Customizable Section
66: -- ---------------------------------------------------------------------------
84: l_date2 DATE;
85: l_rows_inserted NUMBER :=0;
86: BEGIN
87: if g_debug_flag = 'Y' then
88: edw_log.put_line('Starting Push_EDW_SICM_SIC_LSTG');
89: end if;
90: l_date1 := p_from_date;
91: l_date2 := p_to_date;
92: Insert Into
127:
128: l_rows_inserted := sql%rowcount;
129: g_row_count := g_row_count + l_rows_inserted ;
130: if g_debug_flag = 'Y' then
131: edw_log.put_line('Commiting records for EDW_SICM_SIC_LSTG');
132: end if;
133: commit;
134:
135:
133: commit;
134:
135:
136: if g_debug_flag = 'Y' then
137: edw_log.put_line('Completed Push_EDW_SICM_SIC_LSTG');
138: end if;
139: Exception When others then
140: raise;
141: commit;