23: Retcode:=0;
24: l_from_date :=to_date(p_from_date,'YYYY/MM/DD HH24:MI:SS');
25: l_to_date :=to_date(p_to_date, 'YYYY/MM/DD HH24:MI:SS');
26:
27: IF (Not EDW_COLLECTION_UTIL.setup(l_dimension_name)) THEN
28: errbuf := fnd_message.get;
29:
30: /* Added by S.Bhattal, 21-NOV-01 */
31: RAISE_APPLICATION_ERROR (-20000, 'Error in SETUP: ' || errbuf);
32:
33: Return;
34: END IF;
35:
36: FII_TIME_M_C.g_push_date_range1 := nvl(l_from_date,EDW_COLLECTION_UTIL.G_local_last_push_start_date - EDW_COLLECTION_UTIL.g_offset);
37:
38: FII_TIME_M_C.g_push_date_range2 := nvl(l_to_date,EDW_COLLECTION_UTIL.G_local_curr_push_start_date);
39:
40: edw_log.put_line(' ');
34: END IF;
35:
36: FII_TIME_M_C.g_push_date_range1 := nvl(l_from_date,EDW_COLLECTION_UTIL.G_local_last_push_start_date - EDW_COLLECTION_UTIL.g_offset);
37:
38: FII_TIME_M_C.g_push_date_range2 := nvl(l_to_date,EDW_COLLECTION_UTIL.G_local_curr_push_start_date);
39:
40: edw_log.put_line(' ');
41: edw_log.put_line('Pushing GL calendar and Enterprise calendar');
42:
73: edw_log.put_line('Process Time: '||edw_log.duration(l_duration));
74:
75: g_rows_inserted:=g_rows_inserted+rows_inserted;
76:
77: EDW_COLLECTION_UTIL.wrapup(TRUE, g_rows_inserted, null,
78: FII_TIME_M_C.g_push_date_range1, FII_TIME_M_C.g_push_date_range2);
79:
80: commit;
81:
86: l_exception_msg := Retcode || ':' || Errbuf;
87: FII_TIME_M_C.g_exception_msg := l_exception_msg;
88: rollback;
89:
90: EDW_COLLECTION_UTIL.wrapup(FALSE, 0, FII_TIME_M_C.g_exception_msg,
91: FII_TIME_M_C.g_push_date_range1, FII_TIME_M_C.g_push_date_range2);
92:
93: END Push;
94: