DBA Data[Home] [Help]

APPS.MTH_PROCESS_TXN_PKG dependencies on MTH_UTIL_PKG

Line 46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);

42: v_msg VARCHAR2(300);
43: l_count NUMBER;
44: BEGIN
45:
46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);
47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);

Line 47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);

43: l_count NUMBER;
44: BEGIN
45:
46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);
47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);

Line 48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);

44: BEGIN
45:
46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);
47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);

Line 49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);

45:
46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);
47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);

Line 50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);

46: mth_util_pkg.initialize_debug('Concurrent Program "Process/Reprocess Transactions"', l_execution_id);
47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);

Line 51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);

47: mth_util_pkg.log_msg('Process/Reprocess Transactions start', mth_util_pkg.G_DBG_PROC_FUN_START);
48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);

Line 52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);

48: mth_util_pkg.log_msg('p_mode = ' || p_mode , mth_util_pkg.G_DBG_MAIN_PARAM);
49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
56:

Line 53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);

49: mth_util_pkg.log_msg('p_source = ' || p_source , mth_util_pkg.G_DBG_MAIN_PARAM);
50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
56:
57: IF (p_mode = 'RECAL') THEN

Line 54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);

50: mth_util_pkg.log_msg('p_from_tz = ' || p_from_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
56:
57: IF (p_mode = 'RECAL') THEN
58:

Line 55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);

51: mth_util_pkg.log_msg('p_to_tz = ' || p_to_tz , mth_util_pkg.G_DBG_MAIN_PARAM);
52: mth_util_pkg.log_msg('p_plant_pk_key = ' || p_plant_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
53: mth_util_pkg.log_msg('p_equipment_pk_key = ' || p_equipment_pk_key , mth_util_pkg.G_DBG_MAIN_PARAM);
54: mth_util_pkg.log_msg('p_recal_from_date_str = ' || p_recal_from_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
55: mth_util_pkg.log_msg('p_recal_to_date_str = ' || p_recal_to_date_str, mth_util_pkg.G_DBG_MAIN_PARAM);
56:
57: IF (p_mode = 'RECAL') THEN
58:
59: l_recal_from_date := fnd_date.canonical_to_date(p_recal_from_date_str);

Line 62: mth_util_pkg.log_msg('l_recal_from_date = ' || fnd_date.date_to_canonical(l_recal_from_date), mth_util_pkg.G_DBG_MAIN_PARAM);

58:
59: l_recal_from_date := fnd_date.canonical_to_date(p_recal_from_date_str);
60: l_recal_to_date := nvl(fnd_date.canonical_to_date(p_recal_to_date_str),sysdate);
61:
62: mth_util_pkg.log_msg('l_recal_from_date = ' || fnd_date.date_to_canonical(l_recal_from_date), mth_util_pkg.G_DBG_MAIN_PARAM);
63: mth_util_pkg.log_msg('l_recal_to_date = ' || fnd_date.date_to_canonical(l_recal_to_date), mth_util_pkg.G_DBG_MAIN_PARAM);
64:
65: END IF;
66:

Line 63: mth_util_pkg.log_msg('l_recal_to_date = ' || fnd_date.date_to_canonical(l_recal_to_date), mth_util_pkg.G_DBG_MAIN_PARAM);

59: l_recal_from_date := fnd_date.canonical_to_date(p_recal_from_date_str);
60: l_recal_to_date := nvl(fnd_date.canonical_to_date(p_recal_to_date_str),sysdate);
61:
62: mth_util_pkg.log_msg('l_recal_from_date = ' || fnd_date.date_to_canonical(l_recal_from_date), mth_util_pkg.G_DBG_MAIN_PARAM);
63: mth_util_pkg.log_msg('l_recal_to_date = ' || fnd_date.date_to_canonical(l_recal_to_date), mth_util_pkg.G_DBG_MAIN_PARAM);
64:
65: END IF;
66:
67: --Validations

Line 70: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

66:
67: --Validations
68: IF (p_mode NOT IN ('INIT','INCR','RECAL') ) THEN
69: v_msg:=fnd_message.get_string('MTH','MTH_INCORRECT_MODE');
70: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
71: p_retcode := 2;
72: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
73: END IF;
74:

Line 77: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

73: END IF;
74:
75: IF( p_source NOT IN ('CSVO','CSVS','CSVSO','TAG') ) THEN
76: v_msg:=fnd_message.get_string('MTH','MTH_INCORRECT_SOURCE');
77: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
78: p_retcode := 2;
79: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
80: END IF;
81:

Line 95: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

91: END IF;
92:
93: IF l_count < 1 THEN
94: v_msg:=fnd_message.get_string('MTH','MTH_SITE_MIS_ERR');
95: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
96: RAISE MTH_PROCESS_TXN_PKG.RAISE_ERROR;
97: END IF;
98:
99:

Line 110: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

106: END IF;
107:
108: IF l_count < 1 THEN
109: v_msg:=fnd_message.get_string('MTH','MTH_EQUIP_MIS_ERR');
110: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
111: RAISE MTH_PROCESS_TXN_PKG.RAISE_ERROR;
112: END IF;
113:
114: IF (l_recal_from_date IS NULL) THEN

Line 116: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

112: END IF;
113:
114: IF (l_recal_from_date IS NULL) THEN
115: v_msg:=fnd_message.get_string('MTH','MTH_NULL_RECAL_FROM_DATE');
116: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
117: p_retcode := 2;
118: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
119: END IF;
120:

Line 123: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

119: END IF;
120:
121: IF (l_recal_from_date > l_recal_to_date) THEN
122: v_msg:=fnd_message.get_string('MTH','MTH_RECAL_FROM_DATE');
123: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
124: p_retcode := 2;
125: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
126: END IF;
127:

Line 130: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);

126: END IF;
127:
128: IF (p_source = 'TAG') THEN
129: v_msg:=fnd_message.get_string('MTH','MTH_ROUTE_IN_RECAL_MODE');
130: mth_util_pkg.log_msg(v_msg,mth_util_pkg.G_DBG_USER_ERROR);
131: p_retcode := 2;
132: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
133: END IF;
134:

Line 179: mth_util_pkg.log_msg('Call for tag route recalculation to be added later',mth_util_pkg.G_DBG_USER_ERROR);

175: raise MTH_PROCESS_TXN_PKG.RAISE_ERROR;
176: END IF;
177:
178: IF (p_source = 'TAG') THEN
179: mth_util_pkg.log_msg('Call for tag route recalculation to be added later',mth_util_pkg.G_DBG_USER_ERROR);
180: ELSE
181: IF (p_source IN ('CSVS','CSVSO') ) THEN
182:
183: MTH_PROCESS_STATUS_PKG.PROCESS_STATUS( p_mode,

Line 559: mth_util_pkg.log_msg('process_transactions end', mth_util_pkg.G_DBG_PROC_FUN_END);

555: ELSE
556: p_retcode := l_retcode;
557: END IF;
558:
559: mth_util_pkg.log_msg('process_transactions end', mth_util_pkg.G_DBG_PROC_FUN_END);
560:
561: EXCEPTION
562: WHEN MTH_PROCESS_TXN_PKG.VALIDATION_ERR THEN
563: ROLLBACK;

Line 565: mth_util_pkg.log_msg('Exception VALIDATION_ERR in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);

561: EXCEPTION
562: WHEN MTH_PROCESS_TXN_PKG.VALIDATION_ERR THEN
563: ROLLBACK;
564: p_retcode := 1;
565: mth_util_pkg.log_msg('Exception VALIDATION_ERR in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
566:
567: WHEN MTH_PROCESS_TXN_PKG.RAISE_ERROR THEN
568: ROLLBACK;
569: p_retcode := 2;

Line 570: mth_util_pkg.log_msg('Exception RAISE_ERROR in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);

566:
567: WHEN MTH_PROCESS_TXN_PKG.RAISE_ERROR THEN
568: ROLLBACK;
569: p_retcode := 2;
570: mth_util_pkg.log_msg('Exception RAISE_ERROR in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
571:
572:
573: WHEN OTHERS THEN
574: ROLLBACK;

Line 576: mth_util_pkg.log_msg('Exception OTHERS in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);

572:
573: WHEN OTHERS THEN
574: ROLLBACK;
575: p_retcode := 2;
576: mth_util_pkg.log_msg('Exception OTHERS in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
577: mth_util_pkg.log_msg('An unexpected error occurred. Given below is the associated technical information.', mth_util_pkg.G_DBG_USER_ERROR);
578: mth_util_pkg.log_msg(substr(sqlerrm,1,300), mth_util_pkg.G_DBG_USER_ERROR);
579: mth_util_pkg.log_msg(sqlcode, mth_util_pkg.G_DBG_USER_ERROR);
580: p_err_buff := substr(sqlerrm,1,240);

Line 577: mth_util_pkg.log_msg('An unexpected error occurred. Given below is the associated technical information.', mth_util_pkg.G_DBG_USER_ERROR);

573: WHEN OTHERS THEN
574: ROLLBACK;
575: p_retcode := 2;
576: mth_util_pkg.log_msg('Exception OTHERS in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
577: mth_util_pkg.log_msg('An unexpected error occurred. Given below is the associated technical information.', mth_util_pkg.G_DBG_USER_ERROR);
578: mth_util_pkg.log_msg(substr(sqlerrm,1,300), mth_util_pkg.G_DBG_USER_ERROR);
579: mth_util_pkg.log_msg(sqlcode, mth_util_pkg.G_DBG_USER_ERROR);
580: p_err_buff := substr(sqlerrm,1,240);
581:

Line 578: mth_util_pkg.log_msg(substr(sqlerrm,1,300), mth_util_pkg.G_DBG_USER_ERROR);

574: ROLLBACK;
575: p_retcode := 2;
576: mth_util_pkg.log_msg('Exception OTHERS in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
577: mth_util_pkg.log_msg('An unexpected error occurred. Given below is the associated technical information.', mth_util_pkg.G_DBG_USER_ERROR);
578: mth_util_pkg.log_msg(substr(sqlerrm,1,300), mth_util_pkg.G_DBG_USER_ERROR);
579: mth_util_pkg.log_msg(sqlcode, mth_util_pkg.G_DBG_USER_ERROR);
580: p_err_buff := substr(sqlerrm,1,240);
581:
582: END process_transactions;

Line 579: mth_util_pkg.log_msg(sqlcode, mth_util_pkg.G_DBG_USER_ERROR);

575: p_retcode := 2;
576: mth_util_pkg.log_msg('Exception OTHERS in process_transactions', mth_util_pkg.G_DBG_EXCEPTION);
577: mth_util_pkg.log_msg('An unexpected error occurred. Given below is the associated technical information.', mth_util_pkg.G_DBG_USER_ERROR);
578: mth_util_pkg.log_msg(substr(sqlerrm,1,300), mth_util_pkg.G_DBG_USER_ERROR);
579: mth_util_pkg.log_msg(sqlcode, mth_util_pkg.G_DBG_USER_ERROR);
580: p_err_buff := substr(sqlerrm,1,240);
581:
582: END process_transactions;
583: