DBA Data[Home] [Help]

APPS.CN_COLLECTION_GEN dependencies on CN_UTILS

Line 170: code IN OUT NOCOPY cn_utils.code_type,

166:
167: PROCEDURE call_start_debug(
168: procedure_name IN cn_obj_procedures_v.NAME%TYPE,
169: x_event_id IN cn_events.event_id%TYPE,
170: code IN OUT NOCOPY cn_utils.code_type,
171: x_org_id IN NUMBER)
172: IS
173:
174: x_event_name cn_lookups.lookup_code%TYPE := 'CUSTOM';

Line 178: cn_utils.set_org_id(x_org_id);

174: x_event_name cn_lookups.lookup_code%TYPE := 'CUSTOM';
175:
176: BEGIN
177:
178: cn_utils.set_org_id(x_org_id);
179:
180: cn_utils.appendcr(code);
181:
182: cn_utils.appindcr(code, 'x_proc_audit_id := NULL; -- Will get a value in the call below FOR TESTING');

Line 180: cn_utils.appendcr(code);

176: BEGIN
177:
178: cn_utils.set_org_id(x_org_id);
179:
180: cn_utils.appendcr(code);
181:
182: cn_utils.appindcr(code, 'x_proc_audit_id := NULL; -- Will get a value in the call below FOR TESTING');
183:
184: IF (x_event_id = cn_global.inv_event_id) THEN

Line 182: cn_utils.appindcr(code, 'x_proc_audit_id := NULL; -- Will get a value in the call below FOR TESTING');

178: cn_utils.set_org_id(x_org_id);
179:
180: cn_utils.appendcr(code);
181:
182: cn_utils.appindcr(code, 'x_proc_audit_id := NULL; -- Will get a value in the call below FOR TESTING');
183:
184: IF (x_event_id = cn_global.inv_event_id) THEN
185: x_event_name := 'INV';
186:

Line 207: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION ENABLE PARALLEL DML'';');

203:
204: IF(x_event_id > 0)
205: THEN
206: IF CN_COLLECTION_GEN.isParallelEnabled THEN
207: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION ENABLE PARALLEL DML'';');
208: END IF;
209: END IF;
210:
211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');

Line 211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');

207: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION ENABLE PARALLEL DML'';');
208: END IF;
209: END IF;
210:
211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');
212: cn_utils.indent(code, 5);
213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');

Line 212: cn_utils.indent(code, 5);

208: END IF;
209: END IF;
210:
211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');
212: cn_utils.indent(code, 5);
213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');

Line 214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');

210:
211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');
212: cn_utils.indent(code, 5);
213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');

Line 215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');

211: cn_utils.appindcr(code, 'cn_message_pkg.begin_batch(');
212: cn_utils.indent(code, 5);
213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:

Line 216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');

212: cn_utils.indent(code, 5);
213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:
220: cn_utils.unindent(code, 5);

Line 217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');

213:
214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:
220: cn_utils.unindent(code, 5);
221:

Line 218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');

214: cn_utils.appindcr(code, ' x_parent_proc_audit_id => dummy_num');
215: cn_utils.appindcr(code, ',x_process_audit_id => x_proc_audit_id');
216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:
220: cn_utils.unindent(code, 5);
221:
222: cn_utils.appindcr(code, 'x_col_audit_id := x_proc_audit_id;');

Line 220: cn_utils.unindent(code, 5);

216: cn_utils.appindcr(code, ',x_request_id => fnd_global.conc_request_id');
217: cn_utils.appindcr(code, ',x_process_type => '''|| x_event_name ||'''');
218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:
220: cn_utils.unindent(code, 5);
221:
222: cn_utils.appindcr(code, 'x_col_audit_id := x_proc_audit_id;');
223:
224: --Condition added to fix bug 6203234

Line 222: cn_utils.appindcr(code, 'x_col_audit_id := x_proc_audit_id;');

218: cn_utils.appindcr(code, ',p_org_id => x_org_id );');
219:
220: cn_utils.unindent(code, 5);
221:
222: cn_utils.appindcr(code, 'x_col_audit_id := x_proc_audit_id;');
223:
224: --Condition added to fix bug 6203234
225: -- Fix for bug 8371984
226: IF(x_event_id > 0)

Line 229: --cn_utils.record_process_start('COL', '''Collection run for process '' || x_proc_audit_id', 'x_col_audit_id', code);

225: -- Fix for bug 8371984
226: IF(x_event_id > 0)
227: THEN
228: null;
229: --cn_utils.record_process_start('COL', '''Collection run for process '' || x_proc_audit_id', 'x_col_audit_id', code);
230: END IF;
231:
232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');
233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');

Line 232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');

228: null;
229: --cn_utils.record_process_start('COL', '''Collection run for process '' || x_proc_audit_id', 'x_col_audit_id', code);
230: END IF;
231:
232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');
233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');
234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');
235: cn_utils.appendcr(code);
236:

Line 233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');

229: --cn_utils.record_process_start('COL', '''Collection run for process '' || x_proc_audit_id', 'x_col_audit_id', code);
230: END IF;
231:
232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');
233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');
234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');
235: cn_utils.appendcr(code);
236:
237: cn_utils.unset_org_id();

Line 234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');

230: END IF;
231:
232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');
233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');
234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');
235: cn_utils.appendcr(code);
236:
237: cn_utils.unset_org_id();
238:

Line 235: cn_utils.appendcr(code);

231:
232: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || '>>'');');
233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');
234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');
235: cn_utils.appendcr(code);
236:
237: cn_utils.unset_org_id();
238:
239: END call_start_debug;

Line 237: cn_utils.unset_org_id();

233: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || '>>'');');
234: cn_utils.appindcr(code, 'MO_GLOBAL.SET_POLICY_CONTEXT (''S'','||x_org_id||');');
235: cn_utils.appendcr(code);
236:
237: cn_utils.unset_org_id();
238:
239: END call_start_debug;
240:
241:

Line 255: code IN OUT NOCOPY cn_utils.code_type,

251: procedure_name cn_obj_procedures_v.NAME%TYPE,
252: x_module_id cn_modules.module_id%TYPE,
253: x_repository_id cn_repositories.repository_id%TYPE,
254: x_event_id cn_events.event_id%TYPE,
255: code IN OUT NOCOPY cn_utils.code_type,
256: x_org_id IN NUMBER) IS
257:
258: x_row_count NUMBER;
259:

Line 262: cn_utils.set_org_id(x_org_id);

258: x_row_count NUMBER;
259:
260: BEGIN
261:
262: cn_utils.set_org_id(x_org_id);
263:
264: cn_utils.appendcr(code);
265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');
266: cn_utils.appendcr(code);

Line 264: cn_utils.appendcr(code);

260: BEGIN
261:
262: cn_utils.set_org_id(x_org_id);
263:
264: cn_utils.appendcr(code);
265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');
266: cn_utils.appendcr(code);
267: cn_utils.unset_org_id();
268: cn_debug.print_msg('call_notify >>', 1);

Line 265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');

261:
262: cn_utils.set_org_id(x_org_id);
263:
264: cn_utils.appendcr(code);
265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');
266: cn_utils.appendcr(code);
267: cn_utils.unset_org_id();
268: cn_debug.print_msg('call_notify >>', 1);
269: fnd_file.put_line(fnd_file.Log, 'call_notify >>');

Line 266: cn_utils.appendcr(code);

262: cn_utils.set_org_id(x_org_id);
263:
264: cn_utils.appendcr(code);
265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');
266: cn_utils.appendcr(code);
267: cn_utils.unset_org_id();
268: cn_debug.print_msg('call_notify >>', 1);
269: fnd_file.put_line(fnd_file.Log, 'call_notify >>');
270:

Line 267: cn_utils.unset_org_id();

263:
264: cn_utils.appendcr(code);
265: cn_utils.appendcr(code, '--******** NOTIFY PROCESS ********-- ');
266: cn_utils.appendcr(code);
267: cn_utils.unset_org_id();
268: cn_debug.print_msg('call_notify >>', 1);
269: fnd_file.put_line(fnd_file.Log, 'call_notify >>');
270:
271: -- Translate the incoming period_names into period_ids. AE 02-28-96

Line 274: cn_utils.set_org_id(x_org_id);

270:
271: -- Translate the incoming period_names into period_ids. AE 02-28-96
272: -- We had to do this because AOL only passes VARCHAR2 input parms.
273:
274: cn_utils.set_org_id(x_org_id);
275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');

Line 275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');

271: -- Translate the incoming period_names into period_ids. AE 02-28-96
272: -- We had to do this because AOL only passes VARCHAR2 input parms.
273:
274: cn_utils.set_org_id(x_org_id);
275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');

Line 276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');

272: -- We had to do this because AOL only passes VARCHAR2 input parms.
273:
274: cn_utils.set_org_id(x_org_id);
275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );

Line 277: cn_utils.appindcr(code, 'SELECT period_id ');

273:
274: cn_utils.set_org_id(x_org_id);
275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');

Line 278: cn_utils.appindcr(code, ' INTO x_start_period_id ');

274: cn_utils.set_org_id(x_org_id);
275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:

Line 279: cn_utils.appindcr(code, ' FROM cn_periods ');

275: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': Call notify process begin.'');');
276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);

Line 280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );

276: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Call notify process begin.'');');
277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');

Line 281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');

277: cn_utils.appindcr(code, 'SELECT period_id ');
278: cn_utils.appindcr(code, ' INTO x_start_period_id ');
279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');

Line 283: cn_utils.appendcr(code);

279: cn_utils.appindcr(code, ' FROM cn_periods ');
280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );

Line 284: cn_utils.appindcr(code, 'SELECT period_id ');

280: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');

Line 285: cn_utils.appindcr(code, ' INTO x_end_period_id ');

281: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);

Line 286: cn_utils.appindcr(code, ' FROM cn_periods ');

282:
283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);
290: cn_utils.unset_org_id();

Line 287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );

283: cn_utils.appendcr(code);
284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);
290: cn_utils.unset_org_id();
291:

Line 288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');

284: cn_utils.appindcr(code, 'SELECT period_id ');
285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);
290: cn_utils.unset_org_id();
291:
292: -- Generate the call statement

Line 289: cn_utils.appendcr(code);

285: cn_utils.appindcr(code, ' INTO x_end_period_id ');
286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);
290: cn_utils.unset_org_id();
291:
292: -- Generate the call statement
293: cn_debug.print_msg('call_notify: Generating CALL statement.', 1);

Line 290: cn_utils.unset_org_id();

286: cn_utils.appindcr(code, ' FROM cn_periods ');
287: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
288: cn_utils.appindcr(code, 'AND org_id = '||x_org_id||' ;');
289: cn_utils.appendcr(code);
290: cn_utils.unset_org_id();
291:
292: -- Generate the call statement
293: cn_debug.print_msg('call_notify: Generating CALL statement.', 1);
294: fnd_file.put_line(fnd_file.Log, 'call_notify: Generating CALL statement.');

Line 296: cn_utils.set_org_id(x_org_id);

292: -- Generate the call statement
293: cn_debug.print_msg('call_notify: Generating CALL statement.', 1);
294: fnd_file.put_line(fnd_file.Log, 'call_notify: Generating CALL statement.');
295:
296: cn_utils.set_org_id(x_org_id);
297: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': entering notify.'');');
298: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': entering notify.'');');
299:
300: IF (x_event_id = cn_global.inv_event_id) THEN

Line 297: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': entering notify.'');');

293: cn_debug.print_msg('call_notify: Generating CALL statement.', 1);
294: fnd_file.put_line(fnd_file.Log, 'call_notify: Generating CALL statement.');
295:
296: cn_utils.set_org_id(x_org_id);
297: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': entering notify.'');');
298: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': entering notify.'');');
299:
300: IF (x_event_id = cn_global.inv_event_id) THEN
301: cn_utils.appindcr(code, 'cn_notify_invoices.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

Line 298: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': entering notify.'');');

294: fnd_file.put_line(fnd_file.Log, 'call_notify: Generating CALL statement.');
295:
296: cn_utils.set_org_id(x_org_id);
297: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': entering notify.'');');
298: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': entering notify.'');');
299:
300: IF (x_event_id = cn_global.inv_event_id) THEN
301: cn_utils.appindcr(code, 'cn_notify_invoices.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
302:

Line 301: cn_utils.appindcr(code, 'cn_notify_invoices.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

297: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': entering notify.'');');
298: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': entering notify.'');');
299:
300: IF (x_event_id = cn_global.inv_event_id) THEN
301: cn_utils.appindcr(code, 'cn_notify_invoices.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
302:
303: ELSIF (x_event_id = cn_global.pmt_event_id) THEN
304: cn_utils.appindcr(code, 'cn_notify_payments.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
305:

Line 304: cn_utils.appindcr(code, 'cn_notify_payments.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

300: IF (x_event_id = cn_global.inv_event_id) THEN
301: cn_utils.appindcr(code, 'cn_notify_invoices.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
302:
303: ELSIF (x_event_id = cn_global.pmt_event_id) THEN
304: cn_utils.appindcr(code, 'cn_notify_payments.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
305:
306: ELSIF (x_event_id = cn_global.cbk_event_id) THEN
307: cn_utils.appindcr(code, 'cn_notify_clawbacks.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
308:

Line 307: cn_utils.appindcr(code, 'cn_notify_clawbacks.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

303: ELSIF (x_event_id = cn_global.pmt_event_id) THEN
304: cn_utils.appindcr(code, 'cn_notify_payments.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
305:
306: ELSIF (x_event_id = cn_global.cbk_event_id) THEN
307: cn_utils.appindcr(code, 'cn_notify_clawbacks.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
308:
309: ELSIF (x_event_id = cn_global.wo_event_id) THEN
310: cn_utils.appindcr(code, 'cn_notify_writeoffs.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
311:

Line 310: cn_utils.appindcr(code, 'cn_notify_writeoffs.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

306: ELSIF (x_event_id = cn_global.cbk_event_id) THEN
307: cn_utils.appindcr(code, 'cn_notify_clawbacks.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
308:
309: ELSIF (x_event_id = cn_global.wo_event_id) THEN
310: cn_utils.appindcr(code, 'cn_notify_writeoffs.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
311:
312: ELSIF (x_event_id = cn_global.ord_event_id) THEN
313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);

Line 313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');

309: ELSIF (x_event_id = cn_global.wo_event_id) THEN
310: cn_utils.appindcr(code, 'cn_notify_writeoffs.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
311:
312: ELSIF (x_event_id = cn_global.ord_event_id) THEN
313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');

Line 314: cn_utils.indent(code, 8);

310: cn_utils.appindcr(code, 'cn_notify_writeoffs.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
311:
312: ELSIF (x_event_id = cn_global.ord_event_id) THEN
313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');

Line 315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');

311:
312: ELSIF (x_event_id = cn_global.ord_event_id) THEN
313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');

Line 316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');

312: ELSIF (x_event_id = cn_global.ord_event_id) THEN
313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');

Line 317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');

313: cn_utils.appindcr(code, 'cn_notify_orders.regular_col_notify(');
314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');

Line 318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');

314: cn_utils.indent(code, 8);
315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);

Line 319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');

315: cn_utils.appindcr(code, ' x_start_period => x_start_period_id');
316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);
323:

Line 320: cn_utils.appindcr(code, ',debug_level => debug_level');

316: cn_utils.appindcr(code, ',x_end_period => x_end_period_id');
317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);
323:
324: ELSIF (x_event_id = cn_global.aia_event_id) THEN

Line 321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');

317: cn_utils.appindcr(code, ',x_adj_flag => ''N''');
318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);
323:
324: ELSIF (x_event_id = cn_global.aia_event_id) THEN
325: cn_utils.appindcr(code, 'cn_notify_aia.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

Line 322: cn_utils.unindent(code, 8);

318: cn_utils.appindcr(code, ',parent_proc_audit_id => x_proc_audit_id');
319: cn_utils.appindcr(code, ',debug_pipe => debug_pipe');
320: cn_utils.appindcr(code, ',debug_level => debug_level');
321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);
323:
324: ELSIF (x_event_id = cn_global.aia_event_id) THEN
325: cn_utils.appindcr(code, 'cn_notify_aia.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
326: ELSIF (x_event_id = cn_global.aia_om_event_id) THEN

Line 325: cn_utils.appindcr(code, 'cn_notify_aia.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

321: cn_utils.appindcr(code, ',x_org_id => '||x_org_id ||' );');
322: cn_utils.unindent(code, 8);
323:
324: ELSIF (x_event_id = cn_global.aia_event_id) THEN
325: cn_utils.appindcr(code, 'cn_notify_aia.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
326: ELSIF (x_event_id = cn_global.aia_om_event_id) THEN
327: cn_utils.appindcr(code, 'cn_notify_aia_om.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
328:
329: END IF;

Line 327: cn_utils.appindcr(code, 'cn_notify_aia_om.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

323:
324: ELSIF (x_event_id = cn_global.aia_event_id) THEN
325: cn_utils.appindcr(code, 'cn_notify_aia.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
326: ELSIF (x_event_id = cn_global.aia_om_event_id) THEN
327: cn_utils.appindcr(code, 'cn_notify_aia_om.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
328:
329: END IF;
330: cn_utils.appendcr(code);
331: cn_utils.unset_org_id();

Line 330: cn_utils.appendcr(code);

326: ELSIF (x_event_id = cn_global.aia_om_event_id) THEN
327: cn_utils.appindcr(code, 'cn_notify_aia_om.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
328:
329: END IF;
330: cn_utils.appendcr(code);
331: cn_utils.unset_org_id();
332:
333: cn_debug.print_msg('call_notify <<', 1);
334: fnd_file.put_line(fnd_file.Log, 'call_notify <<');

Line 331: cn_utils.unset_org_id();

327: cn_utils.appindcr(code, 'cn_notify_aia_om.notify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
328:
329: END IF;
330: cn_utils.appendcr(code);
331: cn_utils.unset_org_id();
332:
333: cn_debug.print_msg('call_notify <<', 1);
334: fnd_file.put_line(fnd_file.Log, 'call_notify <<');
335:

Line 336: cn_utils.set_org_id(x_org_id);

332:
333: cn_debug.print_msg('call_notify <<', 1);
334: fnd_file.put_line(fnd_file.Log, 'call_notify <<');
335:
336: cn_utils.set_org_id(x_org_id);
337: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': exit from notify and start collection run.'');');
338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');
339:
340: IF (x_event_id = cn_global.ord_event_id) THEN

Line 337: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': exit from notify and start collection run.'');');

333: cn_debug.print_msg('call_notify <<', 1);
334: fnd_file.put_line(fnd_file.Log, 'call_notify <<');
335:
336: cn_utils.set_org_id(x_org_id);
337: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': exit from notify and start collection run.'');');
338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');
339:
340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');

Line 338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');

334: fnd_file.put_line(fnd_file.Log, 'call_notify <<');
335:
336: cn_utils.set_org_id(x_org_id);
337: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': exit from notify and start collection run.'');');
338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');
339:
340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');

Line 341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');

337: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': exit from notify and start collection run.'');');
338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');
339:
340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');

Line 342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');

338: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': exit from notify and start collection run.'');');
339:
340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');

Line 343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');

339:
340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');

Line 344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');

340: IF (x_event_id = cn_global.ord_event_id) THEN
341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');
348: cn_utils.appendcr(code);

Line 345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');

341: cn_utils.appendcr(code, '--******** COLLECT AJUSTMENTS (NEGATE IN API) ********-- ');
342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');
348: cn_utils.appendcr(code);
349:

Line 346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');

342: cn_utils.appindcr(code, '-- This will negate those adjusted trx in the API table');
343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');
348: cn_utils.appendcr(code);
349:
350: END IF;

Line 347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');

343: cn_utils.appindcr(code, 'cn_not_trx_grp.col_adjustments(p_api_version => 1.0,');
344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');
348: cn_utils.appendcr(code);
349:
350: END IF;
351:

Line 348: cn_utils.appendcr(code);

344: cn_utils.appindcr(code, ' x_return_status => x_return_status,');
345: cn_utils.appindcr(code, ' x_msg_count => x_msg_count,');
346: cn_utils.appindcr(code, ' x_msg_data => x_msg_data,');
347: cn_utils.appindcr(code, ' p_org_id => '||x_org_id ||');');
348: cn_utils.appendcr(code);
349:
350: END IF;
351:
352: cn_utils.appendcr(code);

Line 352: cn_utils.appendcr(code);

348: cn_utils.appendcr(code);
349:
350: END IF;
351:
352: cn_utils.appendcr(code);
353:
354: cn_utils.unset_org_id();
355:
356: EXCEPTION

Line 354: cn_utils.unset_org_id();

350: END IF;
351:
352: cn_utils.appendcr(code);
353:
354: cn_utils.unset_org_id();
355:
356: EXCEPTION
357: WHEN NO_DATA_FOUND THEN
358: cn_debug.print_msg('call_notify: in exception handler for NO_DATA_FOUND', 1);

Line 378: code IN OUT NOCOPY cn_utils.code_type,

374: procedure_name cn_obj_procedures_v.NAME%TYPE,
375: x_module_id cn_modules.module_id%TYPE,
376: x_repository_id cn_repositories.repository_id%TYPE,
377: x_event_id cn_events.event_id%TYPE,
378: code IN OUT NOCOPY cn_utils.code_type,
379: x_org_id IN NUMBER)
380: IS
381:
382: x_row_count NUMBER;

Line 388: cn_utils.set_org_id(x_org_id);

384: BEGIN
385:
386: l_org_id := x_org_id;
387:
388: cn_utils.set_org_id(x_org_id);
389:
390: cn_utils.appendcr(code);
391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');
392: cn_utils.appendcr(code);

Line 390: cn_utils.appendcr(code);

386: l_org_id := x_org_id;
387:
388: cn_utils.set_org_id(x_org_id);
389:
390: cn_utils.appendcr(code);
391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');
392: cn_utils.appendcr(code);
393: cn_utils.unset_org_id();
394:

Line 391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');

387:
388: cn_utils.set_org_id(x_org_id);
389:
390: cn_utils.appendcr(code);
391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');
392: cn_utils.appendcr(code);
393: cn_utils.unset_org_id();
394:
395: cn_debug.print_msg('call_identify >>', 1);

Line 392: cn_utils.appendcr(code);

388: cn_utils.set_org_id(x_org_id);
389:
390: cn_utils.appendcr(code);
391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');
392: cn_utils.appendcr(code);
393: cn_utils.unset_org_id();
394:
395: cn_debug.print_msg('call_identify >>', 1);
396: fnd_file.put_line(fnd_file.Log, 'call_identify >>');

Line 393: cn_utils.unset_org_id();

389:
390: cn_utils.appendcr(code);
391: cn_utils.appendcr(code, '--******** IDENTIFY PROCESS ********-- ');
392: cn_utils.appendcr(code);
393: cn_utils.unset_org_id();
394:
395: cn_debug.print_msg('call_identify >>', 1);
396: fnd_file.put_line(fnd_file.Log, 'call_identify >>');
397:

Line 398: cn_utils.set_org_id(x_org_id);

394:
395: cn_debug.print_msg('call_identify >>', 1);
396: fnd_file.put_line(fnd_file.Log, 'call_identify >>');
397:
398: cn_utils.set_org_id(x_org_id);
399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');

Line 399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');

395: cn_debug.print_msg('call_identify >>', 1);
396: fnd_file.put_line(fnd_file.Log, 'call_identify >>');
397:
398: cn_utils.set_org_id(x_org_id);
399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');

Line 400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');

396: fnd_file.put_line(fnd_file.Log, 'call_identify >>');
397:
398: cn_utils.set_org_id(x_org_id);
399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');

Line 401: cn_utils.appendcr(code);

397:
398: cn_utils.set_org_id(x_org_id);
399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );

Line 402: cn_utils.appindcr(code, 'SELECT period_id ');

398: cn_utils.set_org_id(x_org_id);
399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');

Line 403: cn_utils.appindcr(code, ' INTO x_start_period_id ');

399: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': start identify process.'');');
400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);

Line 404: cn_utils.appindcr(code, ' FROM cn_periods ');

400: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start identify process.'');');
401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:

Line 405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );

401: cn_utils.appendcr(code);
402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');

Line 406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');

402: cn_utils.appindcr(code, 'SELECT period_id ');
403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');

Line 407: cn_utils.appendcr(code);

403: cn_utils.appindcr(code, ' INTO x_start_period_id ');
404: cn_utils.appindcr(code, ' FROM cn_periods ');
405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');

Line 409: cn_utils.appindcr(code, 'SELECT period_id ');

405: cn_utils.appindcr(code, 'WHERE period_name = x_start_period_name' );
406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');

Line 410: cn_utils.appindcr(code, ' INTO x_end_period_id ');

406: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);

Line 411: cn_utils.appindcr(code, ' FROM cn_periods ');

407: cn_utils.appendcr(code);
408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);
415: cn_utils.unset_org_id();

Line 412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );

408:
409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);
415: cn_utils.unset_org_id();
416:

Line 413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');

409: cn_utils.appindcr(code, 'SELECT period_id ');
410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);
415: cn_utils.unset_org_id();
416:
417: -- Generate the call statement

Line 414: cn_utils.appendcr(code);

410: cn_utils.appindcr(code, ' INTO x_end_period_id ');
411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);
415: cn_utils.unset_org_id();
416:
417: -- Generate the call statement
418: cn_debug.print_msg('call_identify: Generating CALL statement.', 1);

Line 415: cn_utils.unset_org_id();

411: cn_utils.appindcr(code, ' FROM cn_periods ');
412: cn_utils.appindcr(code, 'WHERE period_name = x_end_period_name' );
413: cn_utils.appindcr(code, 'AND org_id = '||X_org_id||' ;');
414: cn_utils.appendcr(code);
415: cn_utils.unset_org_id();
416:
417: -- Generate the call statement
418: cn_debug.print_msg('call_identify: Generating CALL statement.', 1);
419: fnd_file.put_line(fnd_file.Log, 'call_identify: Generating CALL statement.');

Line 421: cn_utils.set_org_id(x_org_id);

417: -- Generate the call statement
418: cn_debug.print_msg('call_identify: Generating CALL statement.', 1);
419: fnd_file.put_line(fnd_file.Log, 'call_identify: Generating CALL statement.');
420:
421: cn_utils.set_org_id(x_org_id);
422: cn_utils.appindcr(code, 'cn_ram_adjustments_pkg.identify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
423: cn_utils.appendcr(code);
424: cn_utils.unset_org_id();
425:

Line 422: cn_utils.appindcr(code, 'cn_ram_adjustments_pkg.identify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

418: cn_debug.print_msg('call_identify: Generating CALL statement.', 1);
419: fnd_file.put_line(fnd_file.Log, 'call_identify: Generating CALL statement.');
420:
421: cn_utils.set_org_id(x_org_id);
422: cn_utils.appindcr(code, 'cn_ram_adjustments_pkg.identify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
423: cn_utils.appendcr(code);
424: cn_utils.unset_org_id();
425:
426: cn_debug.print_msg('call_identify <<', 1);

Line 423: cn_utils.appendcr(code);

419: fnd_file.put_line(fnd_file.Log, 'call_identify: Generating CALL statement.');
420:
421: cn_utils.set_org_id(x_org_id);
422: cn_utils.appindcr(code, 'cn_ram_adjustments_pkg.identify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
423: cn_utils.appendcr(code);
424: cn_utils.unset_org_id();
425:
426: cn_debug.print_msg('call_identify <<', 1);
427: fnd_file.put_line(fnd_file.Log, 'call_identify <<');

Line 424: cn_utils.unset_org_id();

420:
421: cn_utils.set_org_id(x_org_id);
422: cn_utils.appindcr(code, 'cn_ram_adjustments_pkg.identify(x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
423: cn_utils.appendcr(code);
424: cn_utils.unset_org_id();
425:
426: cn_debug.print_msg('call_identify <<', 1);
427: fnd_file.put_line(fnd_file.Log, 'call_identify <<');
428:

Line 429: cn_utils.set_org_id(x_org_id);

425:
426: cn_debug.print_msg('call_identify <<', 1);
427: fnd_file.put_line(fnd_file.Log, 'call_identify <<');
428:
429: cn_utils.set_org_id(x_org_id);
430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');
431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');
432: cn_utils.appendcr(code);
433:

Line 430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');

426: cn_debug.print_msg('call_identify <<', 1);
427: fnd_file.put_line(fnd_file.Log, 'call_identify <<');
428:
429: cn_utils.set_org_id(x_org_id);
430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');
431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');
432: cn_utils.appendcr(code);
433:
434: cn_utils.unset_org_id();

Line 431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');

427: fnd_file.put_line(fnd_file.Log, 'call_identify <<');
428:
429: cn_utils.set_org_id(x_org_id);
430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');
431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');
432: cn_utils.appendcr(code);
433:
434: cn_utils.unset_org_id();
435: EXCEPTION

Line 432: cn_utils.appendcr(code);

428:
429: cn_utils.set_org_id(x_org_id);
430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');
431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');
432: cn_utils.appendcr(code);
433:
434: cn_utils.unset_org_id();
435: EXCEPTION
436:

Line 434: cn_utils.unset_org_id();

430: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name || ': end identify process.'');');
431: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end identify process.'');');
432: cn_utils.appendcr(code);
433:
434: cn_utils.unset_org_id();
435: EXCEPTION
436:
437: WHEN NO_DATA_FOUND
438: THEN

Line 459: code IN OUT NOCOPY cn_utils.code_type,

455: procedure_name cn_obj_procedures_v.NAME%TYPE,
456: x_module_id cn_modules.module_id%TYPE,
457: x_repository_id cn_repositories.repository_id%TYPE,
458: x_event_id cn_events.event_id%TYPE,
459: code IN OUT NOCOPY cn_utils.code_type,
460: x_org_id IN NUMBER)
461: IS
462:
463: x_row_count NUMBER;

Line 467: cn_utils.set_org_id(x_org_id);

463: x_row_count NUMBER;
464:
465: BEGIN
466:
467: cn_utils.set_org_id(x_org_id);
468:
469: cn_utils.appendcr(code);
470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');
471: cn_utils.appendcr(code);

Line 469: cn_utils.appendcr(code);

465: BEGIN
466:
467: cn_utils.set_org_id(x_org_id);
468:
469: cn_utils.appendcr(code);
470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');
471: cn_utils.appendcr(code);
472: cn_utils.unset_org_id();
473:

Line 470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');

466:
467: cn_utils.set_org_id(x_org_id);
468:
469: cn_utils.appendcr(code);
470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');
471: cn_utils.appendcr(code);
472: cn_utils.unset_org_id();
473:
474: cn_debug.print_msg('call_negate >>', 1);

Line 471: cn_utils.appendcr(code);

467: cn_utils.set_org_id(x_org_id);
468:
469: cn_utils.appendcr(code);
470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');
471: cn_utils.appendcr(code);
472: cn_utils.unset_org_id();
473:
474: cn_debug.print_msg('call_negate >>', 1);
475: fnd_file.put_line(fnd_file.Log, 'call_negate >>');

Line 472: cn_utils.unset_org_id();

468:
469: cn_utils.appendcr(code);
470: cn_utils.appendcr(code, '--******** NEGATE PROCESS ********-- ');
471: cn_utils.appendcr(code);
472: cn_utils.unset_org_id();
473:
474: cn_debug.print_msg('call_negate >>', 1);
475: fnd_file.put_line(fnd_file.Log, 'call_negate >>');
476:

Line 477: cn_utils.set_org_id(x_org_id);

473:
474: cn_debug.print_msg('call_negate >>', 1);
475: fnd_file.put_line(fnd_file.Log, 'call_negate >>');
476:
477: cn_utils.set_org_id(x_org_id);
478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');
479: cn_utils.appendcr(code);
480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');

Line 478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');

474: cn_debug.print_msg('call_negate >>', 1);
475: fnd_file.put_line(fnd_file.Log, 'call_negate >>');
476:
477: cn_utils.set_org_id(x_org_id);
478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');
479: cn_utils.appendcr(code);
480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||

Line 479: cn_utils.appendcr(code);

475: fnd_file.put_line(fnd_file.Log, 'call_negate >>');
476:
477: cn_utils.set_org_id(x_org_id);
478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');
479: cn_utils.appendcr(code);
480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');

Line 480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||

476:
477: cn_utils.set_org_id(x_org_id);
478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');
479: cn_utils.appendcr(code);
480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);

Line 482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||

478: cn_utils.appindcr(code, 'x_ram_negate_profile := CN_SYSTEM_PARAMETERS.value(''CN_RAM_NEGATE'','|| x_org_id ||');');
479: cn_utils.appendcr(code);
480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');

Line 484: cn_utils.appendcr(code);

480: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| procedure_name ||
481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );

Line 485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');

481: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');

Line 486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');

482: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||
483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');

Line 487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');

483: ': Profile OSC: Negate during Revenue Adjustments Collection = '' || x_ram_negate_profile);');
484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');

Line 488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );

484: cn_utils.appendcr(code);
485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');

Line 489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');

485: cn_utils.appindcr(code, 'IF x_ram_negate_profile = ''Y'' THEN ');
486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');

Line 490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');

486: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': start negate process.'');');
487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);

Line 491: cn_utils.appindcr(code, 'ELSE');

487: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': start negate process.'');');
488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');

Line 492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');

488: cn_utils.appindcr(code, ' cn_ram_adjustments_pkg.negate(debug_pipe, debug_level,'||x_org_id||');' );
489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');

Line 493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');

489: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': end negate process.'');');
490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');

Line 494: cn_utils.appendcr(code);

490: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': end negate process.'');');
491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');

Line 495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');

491: cn_utils.appindcr(code, 'ELSE');
492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');

Line 496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');

492: cn_utils.appindcr(code, ' cn_message_pkg.debug('''|| procedure_name || ': skip negate process.'');');
493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');

Line 497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');

493: cn_utils.appindcr(code, ' fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': skip negate process.'');');
494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');

Line 498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');

494: cn_utils.appendcr(code);
495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);

Line 499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');

495: cn_utils.appindcr(code, ' UPDATE cn_trx_lines ctl');
496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');

Line 500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');

496: cn_utils.appindcr(code, ' SET negated_flag = ''Y''');
497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);

Line 501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');

497: cn_utils.appindcr(code, ' WHERE ctl.adjusted_flag = ''Y'' and');
498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);
505: cn_utils.unset_org_id();

Line 502: cn_utils.appendcr(code);

498: cn_utils.appindcr(code, ' ctl.negated_flag = ''N'' and');
499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);
505: cn_utils.unset_org_id();
506:

Line 503: cn_utils.appindcr(code, 'END IF;');

499: cn_utils.appindcr(code, ' ctl.collected_flag = ''N'' and');
500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);
505: cn_utils.unset_org_id();
506:
507: cn_debug.print_msg('call_negate <<', 1);

Line 504: cn_utils.appendcr(code);

500: cn_utils.appindcr(code, ' ctl.event_id = cn_global.inv_event_id');
501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);
505: cn_utils.unset_org_id();
506:
507: cn_debug.print_msg('call_negate <<', 1);
508: fnd_file.put_line(fnd_file.Log, 'call_negate <<');

Line 505: cn_utils.unset_org_id();

501: cn_utils.appindcr(code, ' AND ctl.org_id = '||x_org_id||' ;');
502: cn_utils.appendcr(code);
503: cn_utils.appindcr(code, 'END IF;');
504: cn_utils.appendcr(code);
505: cn_utils.unset_org_id();
506:
507: cn_debug.print_msg('call_negate <<', 1);
508: fnd_file.put_line(fnd_file.Log, 'call_negate <<');
509:

Line 534: code IN OUT NOCOPY cn_utils.code_type,

530:
531: PROCEDURE local_variables (
532: procedure_name VARCHAR2,
533: x_event_id cn_events.event_id%TYPE,
534: code IN OUT NOCOPY cn_utils.code_type,
535: x_org_id IN NUMBER) IS
536: BEGIN
537:
538:

Line 545: cn_utils.set_org_id(x_org_id);

541:
542: cn_debug.print_msg('local_variables>>', 1);
543: fnd_file.put_line(fnd_file.Log, 'local_variables>>');
544:
545: cn_utils.set_org_id(x_org_id);
546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');

Line 546: cn_utils.indent(code, 1);

542: cn_debug.print_msg('local_variables>>', 1);
543: fnd_file.put_line(fnd_file.Log, 'local_variables>>');
544:
545: cn_utils.set_org_id(x_org_id);
546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');

Line 547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');

543: fnd_file.put_line(fnd_file.Log, 'local_variables>>');
544:
545: cn_utils.set_org_id(x_org_id);
546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');

Line 548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');

544:
545: cn_utils.set_org_id(x_org_id);
546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');

Line 549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');

545: cn_utils.set_org_id(x_org_id);
546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');

Line 550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');

546: cn_utils.indent(code, 1);
547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');

Line 551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');

547: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');

Line 552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');

548: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;');
549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');

Line 553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');

549: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');

Line 554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');

550: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');

Line 555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');

551: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');

Line 556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');

552: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');

Line 557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');

553: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);');
554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');

Line 558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');

554: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);');
555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');

Line 559: cn_utils.appindcr(code, 'x_rowid ROWID;');

555: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;');
556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');

Line 560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');

556: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');

Line 561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');

557: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;');
558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');

Line 562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');

558: cn_utils.appindcr(code, 'x_adj_batch_id NUMBER;');
559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');

Line 563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');

559: cn_utils.appindcr(code, 'x_rowid ROWID;');
560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');

Line 564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');

560: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);');
561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');

Line 565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');

561: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;');
562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');

Line 566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');

562: cn_utils.appindcr(code, 'dummy_num NUMBER ;');
563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');

Line 567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');

563: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);');
564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');

Line 568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');

564: cn_utils.appindcr(code, 'x_msg_count NUMBER;');
565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');

Line 569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');

565: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);');
566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:

Line 570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');

566: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);

Line 571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');

567: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');

Line 572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');

568: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
569: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');

Line 574: cn_utils.appendcr(code);

570: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');

Line 575: cn_utils.appindcr(code, 'CURSOR batches IS');

571: cn_utils.appindcr(code, 'x_ram_negate_profile VARCHAR2(1);');
572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');

Line 576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');

572: --cn_utils.appindcr(code, 'X_org_id NUMBER;');
573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');

Line 577: cn_utils.appindcr(code, ' FROM cn_trx_lines');

573:
574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');

Line 578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');

574: cn_utils.appendcr(code);
575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');

Line 579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');

575: cn_utils.appindcr(code, 'CURSOR batches IS');
576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);

Line 580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');

576: cn_utils.appindcr(code, ' SELECT DISTINCT adj_batch_id');
577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:

Line 581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');

577: cn_utils.appindcr(code, ' FROM cn_trx_lines');
578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:
585: cn_utils.unindent(code, 1);

Line 582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');

578: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' AND');
579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:
585: cn_utils.unindent(code, 1);
586: cn_utils.unset_org_id();

Line 583: cn_utils.appendcr(code);

579: cn_utils.appindcr(code, ' negated_flag = ''Y'' AND');
580: cn_utils.appindcr(code, ' collected_flag = ''N'' AND');
581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:
585: cn_utils.unindent(code, 1);
586: cn_utils.unset_org_id();
587:

Line 585: cn_utils.unindent(code, 1);

581: cn_utils.appindcr(code, ' event_id = cn_global.inv_event_id AND ');
582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:
585: cn_utils.unindent(code, 1);
586: cn_utils.unset_org_id();
587:
588: cn_debug.print_msg('local_variables<<', 1);
589: fnd_file.put_line(fnd_file.Log, 'local_variables<<');

Line 586: cn_utils.unset_org_id();

582: cn_utils.appindcr(code, ' org_id = '||x_org_id||' ;');
583: cn_utils.appendcr(code);
584:
585: cn_utils.unindent(code, 1);
586: cn_utils.unset_org_id();
587:
588: cn_debug.print_msg('local_variables<<', 1);
589: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
590:

Line 596: cn_utils.set_org_id(x_org_id);

592:
593: cn_debug.print_msg('local_variables>>', 1);
594: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
595:
596: cn_utils.set_org_id(x_org_id);
597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');

Line 597: cn_utils.indent(code, 1);

593: cn_debug.print_msg('local_variables>>', 1);
594: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
595:
596: cn_utils.set_org_id(x_org_id);
597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97

Line 598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');

594: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
595:
596: cn_utils.set_org_id(x_org_id);
597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');

Line 599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');

595:
596: cn_utils.set_org_id(x_org_id);
597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');

Line 600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');

596: cn_utils.set_org_id(x_org_id);
597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');

Line 601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97

597: cn_utils.indent(code, 1);
598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');

Line 602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');

598: cn_utils.appindcr(code, 'trx_count NUMBER := 0;');
599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96

Line 603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');

599: cn_utils.appindcr(code, 'trx_line_count NUMBER := 0;');
600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96

Line 604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');

600: cn_utils.appindcr(code, 'trx_sales_line_count NUMBER := 0;');
601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95

Line 605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');

601: cn_utils.appindcr(code, 'trx_update_count NUMBER := 0;'); --JC 02-13-97
602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');

Line 606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96

602: cn_utils.appindcr(code, 'trx_line_update_count NUMBER := 0;');
603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96

Line 607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96

603: cn_utils.appindcr(code, 'trx_sales_line_update_count NUMBER := 0;');
604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');

Line 608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95

604: cn_utils.appindcr(code, 'comm_lines_api_count NUMBER := 0;');
605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');

Line 609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');

605: cn_utils.appindcr(code, 'comm_lines_api_update_count NUMBER := 0;');
606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96

Line 610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96

606: cn_utils.appindcr(code, 'x_start_period_id NUMBER(15);'); --AE 02-28-96
607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96

Line 611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');

607: cn_utils.appindcr(code, 'x_end_period_id NUMBER(15);'); --AE 02-28-96
608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96

Line 612: cn_utils.appindcr(code, 'x_rowid ROWID;');

608: cn_utils.appindcr(code, 'x_col_audit_id NUMBER;'); --AE 08-01-95
609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99

Line 613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96

609: cn_utils.appindcr(code, 'x_proc_audit_id NUMBER;');
610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99

Line 614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96

610: cn_utils.appindcr(code, 'x_conc_program_id NUMBER;'); --AE 01-18-96
611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99

Line 615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96

611: cn_utils.appindcr(code, 'x_batch_id NUMBER;');
612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');

Line 616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99

612: cn_utils.appindcr(code, 'x_rowid ROWID;');
613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');

Line 617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99

613: cn_utils.appindcr(code, 'debug_pipe VARCHAR2(30);'); --AE 02-28-96
614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');

Line 618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99

614: cn_utils.appindcr(code, 'debug_level NUMBER := 1 ;'); --AE 02-28-96
615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');

Line 619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');

615: cn_utils.appindcr(code, 'dummy_num NUMBER ;'); --JC 01-27-96
616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');

Line 620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');

616: cn_utils.appindcr(code, 'x_return_status VARCHAR2(1);'); --DM 11-03-99
617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');

Line 621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');

617: cn_utils.appindcr(code, 'x_msg_count NUMBER;'); --DM 11-03-99
618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');
625: cn_utils.appendcr(code);

Line 622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');

618: cn_utils.appindcr(code, 'x_msg_data VARCHAR(2000);'); --DM 11-03-99
619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');
625: cn_utils.appendcr(code);
626:

Line 623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');

619: cn_utils.appindcr(code, 'x_created_by NUMBER := to_number(fnd_global.user_id);');
620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');
625: cn_utils.appendcr(code);
626:
627:

Line 624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');

620: cn_utils.appindcr(code, 'x_creation_date DATE := sysdate;');
621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');
625: cn_utils.appendcr(code);
626:
627:
628: -- Change made to fix bug 6203234

Line 625: cn_utils.appendcr(code);

621: cn_utils.appindcr(code, 'x_last_updated_by NUMBER := to_number(fnd_global.user_id);');
622: cn_utils.appindcr(code, 'x_last_update_date DATE := sysdate;');
623: cn_utils.appindcr(code, 'x_last_update_login NUMBER := to_number(fnd_global.login_id);');
624: --cn_utils.appindcr(code, 'X_org_id NUMBER ;');
625: cn_utils.appendcr(code);
626:
627:
628: -- Change made to fix bug 6203234
629: -- Fix for bug 8371984

Line 633: cn_utils.appindcr(code, 'CURSOR batches IS');

629: -- Fix for bug 8371984
630: -- if(x_event_id < 0)
631: -- then
632: IF (x_event_id = cn_global.aia_event_id or x_event_id = cn_global.aia_om_event_id) THEN
633: cn_utils.appindcr(code, 'CURSOR batches IS');
634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );

Line 634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');

630: -- if(x_event_id < 0)
631: -- then
632: IF (x_event_id = cn_global.aia_event_id or x_event_id = cn_global.aia_om_event_id) THEN
633: cn_utils.appindcr(code, 'CURSOR batches IS');
634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );

Line 635: cn_utils.appindcr(code, ' FROM cn_not_trx');

631: -- then
632: IF (x_event_id = cn_global.aia_event_id or x_event_id = cn_global.aia_om_event_id) THEN
633: cn_utils.appindcr(code, 'CURSOR batches IS');
634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );

Line 636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');

632: IF (x_event_id = cn_global.aia_event_id or x_event_id = cn_global.aia_om_event_id) THEN
633: cn_utils.appindcr(code, 'CURSOR batches IS');
634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');

Line 637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );

633: cn_utils.appindcr(code, 'CURSOR batches IS');
634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE

Line 638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );

634: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');

Line 639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );

635: cn_utils.appindcr(code, ' FROM cn_not_trx');
636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');

Line 640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');

636: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
637: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');

Line 642: cn_utils.appindcr(code, 'CURSOR batches IS');

638: cn_utils.appindcr(code, ' AND trunc(processed_date) >= (select start_date from cn_periods where period_name = x_start_period_name) ' );
639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );

Line 643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');

639: cn_utils.appindcr(code, ' AND trunc(processed_date) <= (select end_date from cn_periods where period_name = x_end_period_name) ' );
640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');

Line 644: cn_utils.appindcr(code, ' FROM cn_not_trx');

640: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;

Line 645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');

641: ELSE
642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);

Line 646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );

642: cn_utils.appindcr(code, 'CURSOR batches IS');
643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);
650: cn_utils.unindent(code, 1);

Line 647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');

643: cn_utils.appindcr(code, ' SELECT DISTINCT batch_id');
644: cn_utils.appindcr(code, ' FROM cn_not_trx');
645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);
650: cn_utils.unindent(code, 1);
651: cn_utils.unset_org_id();

Line 649: cn_utils.appendcr(code);

645: cn_utils.appindcr(code, ' WHERE collected_flag = ''N''');
646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);
650: cn_utils.unindent(code, 1);
651: cn_utils.unset_org_id();
652: -- end if;
653: cn_debug.print_msg('local_variables<<', 1);

Line 650: cn_utils.unindent(code, 1);

646: cn_utils.appindcr(code, ' AND event_id = ' || x_event_id );
647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);
650: cn_utils.unindent(code, 1);
651: cn_utils.unset_org_id();
652: -- end if;
653: cn_debug.print_msg('local_variables<<', 1);
654: fnd_file.put_line(fnd_file.Log, 'local_variables<<');

Line 651: cn_utils.unset_org_id();

647: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||' ;');
648: END IF;
649: cn_utils.appendcr(code);
650: cn_utils.unindent(code, 1);
651: cn_utils.unset_org_id();
652: -- end if;
653: cn_debug.print_msg('local_variables<<', 1);
654: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
655: END IF; -- IF (procedure_name = 'cn_collect_ram')

Line 657: cn_utils.unset_org_id;

653: cn_debug.print_msg('local_variables<<', 1);
654: fnd_file.put_line(fnd_file.Log, 'local_variables<<');
655: END IF; -- IF (procedure_name = 'cn_collect_ram')
656:
657: cn_utils.unset_org_id;
658:
659: END local_variables;
660: -- Procedure Name
661: -- who

Line 669: code IN OUT NOCOPY cn_utils.code_type,

665: -- 17-NOV-93 Devesh Khatu Created
666:
667: PROCEDURE who (
668: procedure_name cn_obj_procedures_v.NAME%TYPE,
669: code IN OUT NOCOPY cn_utils.code_type,
670: x_org_id IN NUMBER) IS
671: BEGIN
672: -- The who code has been temporarily commented out since the who package
673: -- is yet to be implemented.

Line 678: cn_utils.set_org_id(x_org_id);

674:
675: cn_debug.print_msg('who>>', 1);
676: fnd_file.put_line(fnd_file.Log, 'who>>');
677:
678: cn_utils.set_org_id(x_org_id);
679: cn_utils.appindcr(code, '-- who.set_program_name(''' || procedure_name || ''');');
680: cn_utils.appendcr(code);
681: cn_utils.unset_org_id();
682:

Line 679: cn_utils.appindcr(code, '-- who.set_program_name(''' || procedure_name || ''');');

675: cn_debug.print_msg('who>>', 1);
676: fnd_file.put_line(fnd_file.Log, 'who>>');
677:
678: cn_utils.set_org_id(x_org_id);
679: cn_utils.appindcr(code, '-- who.set_program_name(''' || procedure_name || ''');');
680: cn_utils.appendcr(code);
681: cn_utils.unset_org_id();
682:
683: cn_debug.print_msg('who<<', 1);

Line 680: cn_utils.appendcr(code);

676: fnd_file.put_line(fnd_file.Log, 'who>>');
677:
678: cn_utils.set_org_id(x_org_id);
679: cn_utils.appindcr(code, '-- who.set_program_name(''' || procedure_name || ''');');
680: cn_utils.appendcr(code);
681: cn_utils.unset_org_id();
682:
683: cn_debug.print_msg('who<<', 1);
684: fnd_file.put_line(fnd_file.Log, 'who<<');

Line 681: cn_utils.unset_org_id();

677:
678: cn_utils.set_org_id(x_org_id);
679: cn_utils.appindcr(code, '-- who.set_program_name(''' || procedure_name || ''');');
680: cn_utils.appendcr(code);
681: cn_utils.unset_org_id();
682:
683: cn_debug.print_msg('who<<', 1);
684: fnd_file.put_line(fnd_file.Log, 'who<<');
685:

Line 699: code IN OUT NOCOPY cn_utils.code_type,

695: PROCEDURE proc_exception (
696: x_procedure_name cn_obj_procedures_v.NAME%TYPE,
697: savepoint_name VARCHAR2,
698: location VARCHAR2,
699: code IN OUT NOCOPY cn_utils.code_type,
700: x_org_id IN NUMBER)
701: IS
702: BEGIN
703:

Line 704: cn_utils.set_org_id(x_org_id);

700: x_org_id IN NUMBER)
701: IS
702: BEGIN
703:
704: cn_utils.set_org_id(x_org_id);
705: cn_utils.unindent(code, 1);
706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN

Line 705: cn_utils.unindent(code, 1);

701: IS
702: BEGIN
703:
704: cn_utils.set_org_id(x_org_id);
705: cn_utils.unindent(code, 1);
706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');

Line 706: cn_utils.appindcr(code, 'EXCEPTION');

702: BEGIN
703:
704: cn_utils.set_org_id(x_org_id);
705: cn_utils.unindent(code, 1);
706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');

Line 707: cn_utils.indent(code, 1);

703:
704: cn_utils.set_org_id(x_org_id);
705: cn_utils.unindent(code, 1);
706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');
711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');

Line 709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');

705: cn_utils.unindent(code, 1);
706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');
711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');
712: ELSE
713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');

Line 710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');

706: cn_utils.appindcr(code, 'EXCEPTION');
707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');
711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');
712: ELSE
713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');
714: END IF;

Line 711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');

707: cn_utils.indent(code, 1);
708: IF (savepoint_name IS NOT NULL) THEN
709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');
711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');
712: ELSE
713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');
714: END IF;
715:

Line 713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');

709: cn_utils.appindcr(code, 'WHEN OTHERS THEN ROLLBACK TO ' || savepoint_name || ';');
710: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Rollback.'');');
711: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log,''' || x_procedure_name || ': Rollback.'');');
712: ELSE
713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');
714: END IF;
715:
716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');

Line 716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');

712: ELSE
713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');
714: END IF;
715:
716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');

Line 717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');

713: cn_utils.appindcr(code, 'WHEN OTHERS THEN ');
714: END IF;
715:
716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');

Line 718: cn_utils.appendcr(code);

714: END IF;
715:
716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);

Line 720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');

716: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');

Line 721: cn_utils.appindcr(code, ' SQLERRM);');

717: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': In exception handler ' || location ||'.'');');
718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

Line 722: cn_utils.appendcr(code);

718: cn_utils.appendcr(code);
719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);

Line 723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');

719:
720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:

Line 724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');

720: cn_utils.appindcr(code, 'cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, SQLCODE,');
721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');

Line 725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

721: cn_utils.appindcr(code, ' SQLERRM);');
722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');
729: cn_utils.appendcr(code);

Line 726: cn_utils.appendcr(code);

722: cn_utils.appendcr(code);
723: cn_utils.appindcr(code, 'cn_message_pkg.debug(sqlcode ||'''||' '||'''||sqlerrm);');
724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');
729: cn_utils.appendcr(code);
730: cn_utils.unset_org_id();

Line 728: cn_utils.appindcr(code, 'app_exception.raise_exception;');

724: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, sqlcode ||'''||' '||'''||sqlerrm);');
725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');
729: cn_utils.appendcr(code);
730: cn_utils.unset_org_id();
731:
732: END proc_exception;

Line 729: cn_utils.appendcr(code);

725: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');
729: cn_utils.appendcr(code);
730: cn_utils.unset_org_id();
731:
732: END proc_exception;
733:

Line 730: cn_utils.unset_org_id();

726: cn_utils.appendcr(code);
727:
728: cn_utils.appindcr(code, 'app_exception.raise_exception;');
729: cn_utils.appendcr(code);
730: cn_utils.unset_org_id();
731:
732: END proc_exception;
733:
734: -- Procedure Name

Line 751: spec_code IN OUT NOCOPY cn_utils.code_type,

747: x_module_id cn_modules.module_id%TYPE, --AE 01-26-96
748: x_repository_id cn_repositories.repository_id%TYPE,
749: x_event_id cn_events.event_id%TYPE,
750: x_generic BOOLEAN,
751: spec_code IN OUT NOCOPY cn_utils.code_type,
752: body_code IN OUT NOCOPY cn_utils.code_type,
753: x_org_id IN NUMBER)
754: IS
755:

Line 752: body_code IN OUT NOCOPY cn_utils.code_type,

748: x_repository_id cn_repositories.repository_id%TYPE,
749: x_event_id cn_events.event_id%TYPE,
750: x_generic BOOLEAN,
751: spec_code IN OUT NOCOPY cn_utils.code_type,
752: body_code IN OUT NOCOPY cn_utils.code_type,
753: x_org_id IN NUMBER)
754: IS
755:
756: BEGIN

Line 763: cn_utils.set_org_id(X_org_id);

759:
760: cn_debug.print_msg('pkg_proc_init>>', 1);
761: fnd_file.put_line(fnd_file.Log, 'pkg_proc_init>>');
762:
763: cn_utils.set_org_id(X_org_id);
764: cn_utils.proc_init(x_procedure_name, x_description, x_parameter_list,
765: 'P', NULL, x_package_id, x_repository_id, spec_code, body_code);
766:
767: -- Generate code for declaring local variables

Line 764: cn_utils.proc_init(x_procedure_name, x_description, x_parameter_list,

760: cn_debug.print_msg('pkg_proc_init>>', 1);
761: fnd_file.put_line(fnd_file.Log, 'pkg_proc_init>>');
762:
763: cn_utils.set_org_id(X_org_id);
764: cn_utils.proc_init(x_procedure_name, x_description, x_parameter_list,
765: 'P', NULL, x_package_id, x_repository_id, spec_code, body_code);
766:
767: -- Generate code for declaring local variables
768: local_variables(x_procedure_name, x_event_id, body_code,l_org_id);

Line 770: cn_utils.set_org_id(X_org_id);

766:
767: -- Generate code for declaring local variables
768: local_variables(x_procedure_name, x_event_id, body_code,l_org_id);
769:
770: cn_utils.set_org_id(X_org_id);
771: cn_utils.proc_begin(x_procedure_name, 'Y', body_code);
772:
773: -- Generate code to update who information
774: -- who(x_procedure_name, body_code);

Line 771: cn_utils.proc_begin(x_procedure_name, 'Y', body_code);

767: -- Generate code for declaring local variables
768: local_variables(x_procedure_name, x_event_id, body_code,l_org_id);
769:
770: cn_utils.set_org_id(X_org_id);
771: cn_utils.proc_begin(x_procedure_name, 'Y', body_code);
772:
773: -- Generate code to update who information
774: -- who(x_procedure_name, body_code);
775:

Line 790: cn_utils.unset_org_id();

786: -- package, is used.
787: IF NOT x_generic THEN
788:
789: -- Insert any User Code specified for the 'Pre-Notification' location
790: cn_utils.unset_org_id();
791:
792: cn_collection_custom_gen.Generate_User_Code(
793: p_table_map_id => x_table_map_id,
794: p_location_name => 'Pre-Notification',

Line 806: cn_utils.unset_org_id();

802: END IF;
803:
804: ELSIF (x_event_id = cn_global.aia_event_id or x_event_id = cn_global.aia_om_event_id) THEN
805: -- Insert any User Code specified for the 'Pre-Notification' location
806: cn_utils.unset_org_id();
807:
808: cn_collection_custom_gen.Generate_User_Code(
809: p_table_map_id => x_table_map_id,
810: p_location_name => 'Pre-Notification',

Line 816: cn_utils.unset_org_id();

812: X_ORG_ID => X_ORG_ID);
813:
814: call_notify(x_package_id, x_procedure_name, x_module_id,x_repository_id, x_event_id, body_code,X_ORG_ID);
815: ELSE
816: cn_utils.unset_org_id();
817: cn_collection_custom_gen.insert_cn_not_trx (
818: x_table_map_id => x_table_map_id,
819: x_event_id => x_event_id,
820: code => body_code,

Line 826: cn_utils.unset_org_id();

822: END IF;
823:
824:
825: -- Insert any User Code specified for the 'Post-Notification' location
826: cn_utils.unset_org_id();
827: cn_collection_custom_gen.Generate_User_Code(
828: p_table_map_id => x_table_map_id,
829: p_location_name => 'Post-Notification',
830: code => body_code,

Line 837: cn_utils.set_org_id(X_org_id);

833: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
834: call_negate(x_package_id, x_procedure_name, x_module_id,x_repository_id, x_event_id, body_code,X_org_id);
835: END IF;
836:
837: cn_utils.set_org_id(X_org_id);
838: cn_utils.appendcr(body_code, '--******** COLLECT PROCESS ********-- ');
839: cn_utils.appendcr(body_code);
840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');
841:

Line 838: cn_utils.appendcr(body_code, '--******** COLLECT PROCESS ********-- ');

834: call_negate(x_package_id, x_procedure_name, x_module_id,x_repository_id, x_event_id, body_code,X_org_id);
835: END IF;
836:
837: cn_utils.set_org_id(X_org_id);
838: cn_utils.appendcr(body_code, '--******** COLLECT PROCESS ********-- ');
839: cn_utils.appendcr(body_code);
840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');
841:
842: /* -- Generate code to record start of the collection

Line 839: cn_utils.appendcr(body_code);

835: END IF;
836:
837: cn_utils.set_org_id(X_org_id);
838: cn_utils.appendcr(body_code, '--******** COLLECT PROCESS ********-- ');
839: cn_utils.appendcr(body_code);
840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');
841:
842: /* -- Generate code to record start of the collection
843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);

Line 840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');

836:
837: cn_utils.set_org_id(X_org_id);
838: cn_utils.appendcr(body_code, '--******** COLLECT PROCESS ********-- ');
839: cn_utils.appendcr(body_code);
840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');
841:
842: /* -- Generate code to record start of the collection
843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);
844:

Line 843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);

839: cn_utils.appendcr(body_code);
840: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': start collection process.'');');
841:
842: /* -- Generate code to record start of the collection
843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);
844:
845: cn_utils.appindcr(body_code, 'x_col_audit_id := x_proc_audit_id;'); --AE 08-10-95
846: cn_utils.appendcr(body_code); */ -- JC 01-26-97
847:

Line 845: cn_utils.appindcr(body_code, 'x_col_audit_id := x_proc_audit_id;'); --AE 08-10-95

841:
842: /* -- Generate code to record start of the collection
843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);
844:
845: cn_utils.appindcr(body_code, 'x_col_audit_id := x_proc_audit_id;'); --AE 08-10-95
846: cn_utils.appendcr(body_code); */ -- JC 01-26-97
847:
848: cn_utils.appindcr(body_code, 'x_conc_program_id := fnd_global.conc_program_id;'); --AE 01-18-96
849:

Line 846: cn_utils.appendcr(body_code); */ -- JC 01-26-97

842: /* -- Generate code to record start of the collection
843: cn_utils.record_process_start('COL', '''Collection run''', 'NULL', body_code);
844:
845: cn_utils.appindcr(body_code, 'x_col_audit_id := x_proc_audit_id;'); --AE 08-10-95
846: cn_utils.appendcr(body_code); */ -- JC 01-26-97
847:
848: cn_utils.appindcr(body_code, 'x_conc_program_id := fnd_global.conc_program_id;'); --AE 01-18-96
849:
850: --Condition added to fix bug 6203234

Line 848: cn_utils.appindcr(body_code, 'x_conc_program_id := fnd_global.conc_program_id;'); --AE 01-18-96

844:
845: cn_utils.appindcr(body_code, 'x_col_audit_id := x_proc_audit_id;'); --AE 08-10-95
846: cn_utils.appendcr(body_code); */ -- JC 01-26-97
847:
848: cn_utils.appindcr(body_code, 'x_conc_program_id := fnd_global.conc_program_id;'); --AE 01-18-96
849:
850: --Condition added to fix bug 6203234
851: -- Fix for bug 8371984
852: --IF(x_event_id < 0)

Line 854: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': entering cursor Batches loop.'');');

850: --Condition added to fix bug 6203234
851: -- Fix for bug 8371984
852: --IF(x_event_id < 0)
853: --THEN
854: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': entering cursor Batches loop.'');');
855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');
856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');

Line 855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');

851: -- Fix for bug 8371984
852: --IF(x_event_id < 0)
853: --THEN
854: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': entering cursor Batches loop.'');');
855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');
856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');
859: cn_utils.appendcr(body_code);

Line 856: cn_utils.appendcr(body_code);

852: --IF(x_event_id < 0)
853: --THEN
854: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': entering cursor Batches loop.'');');
855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');
856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');
859: cn_utils.appendcr(body_code);
860: cn_utils.indent(body_code, 1);

Line 858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');

854: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| x_procedure_name || ': entering cursor Batches loop.'');');
855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');
856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');
859: cn_utils.appendcr(body_code);
860: cn_utils.indent(body_code, 1);
861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process

Line 859: cn_utils.appendcr(body_code);

855: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': entering cursor Batches loop.'');');
856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');
859: cn_utils.appendcr(body_code);
860: cn_utils.indent(body_code, 1);
861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');

Line 860: cn_utils.indent(body_code, 1);

856: cn_utils.appendcr(body_code);
857:
858: cn_utils.appindcr(body_code, 'FOR b IN batches LOOP');
859: cn_utils.appendcr(body_code);
860: cn_utils.indent(body_code, 1);
861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');
864: cn_utils.appendcr(body_code);

Line 863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');

859: cn_utils.appendcr(body_code);
860: cn_utils.indent(body_code, 1);
861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');
864: cn_utils.appendcr(body_code);
865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');

Line 864: cn_utils.appendcr(body_code);

860: cn_utils.indent(body_code, 1);
861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');
864: cn_utils.appendcr(body_code);
865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');
868: cn_utils.appendcr(body_code);

Line 865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);

861:
862: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM identify process
863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');
864: cn_utils.appendcr(body_code);
865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');
868: cn_utils.appendcr(body_code);
869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);

Line 867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');

863: cn_utils.appindcr(body_code, 'x_adj_batch_id := b.adj_batch_id;');
864: cn_utils.appendcr(body_code);
865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');
868: cn_utils.appendcr(body_code);
869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);
870: END IF;
871:

Line 868: cn_utils.appendcr(body_code);

864: cn_utils.appendcr(body_code);
865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');
868: cn_utils.appendcr(body_code);
869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);
870: END IF;
871:
872: cn_utils.appindcr(body_code, 'BEGIN');

Line 869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);

865: cn_utils.record_process_start('COL', '''RAM Adjustments Collection run for batch '' || x_adj_batch_id', 'x_col_audit_id', body_code);
866: ELSE
867: cn_utils.appindcr(body_code, 'x_batch_id := b.batch_id;');
868: cn_utils.appendcr(body_code);
869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);
870: END IF;
871:
872: cn_utils.appindcr(body_code, 'BEGIN');
873: cn_utils.indent(body_code, 1);

Line 872: cn_utils.appindcr(body_code, 'BEGIN');

868: cn_utils.appendcr(body_code);
869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);
870: END IF;
871:
872: cn_utils.appindcr(body_code, 'BEGIN');
873: cn_utils.indent(body_code, 1);
874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');
875: cn_utils.appendcr(body_code);
876: --END IF;

Line 873: cn_utils.indent(body_code, 1);

869: cn_utils.record_process_start('COL', '''Collection run for batch '' || x_batch_id', 'x_col_audit_id', body_code);
870: END IF;
871:
872: cn_utils.appindcr(body_code, 'BEGIN');
873: cn_utils.indent(body_code, 1);
874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');
875: cn_utils.appendcr(body_code);
876: --END IF;
877: cn_utils.unset_org_id();

Line 874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');

870: END IF;
871:
872: cn_utils.appindcr(body_code, 'BEGIN');
873: cn_utils.indent(body_code, 1);
874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');
875: cn_utils.appendcr(body_code);
876: --END IF;
877: cn_utils.unset_org_id();
878: cn_debug.print_msg('pkg_proc_init<<', 1);

Line 875: cn_utils.appendcr(body_code);

871:
872: cn_utils.appindcr(body_code, 'BEGIN');
873: cn_utils.indent(body_code, 1);
874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');
875: cn_utils.appendcr(body_code);
876: --END IF;
877: cn_utils.unset_org_id();
878: cn_debug.print_msg('pkg_proc_init<<', 1);
879: fnd_file.put_line(fnd_file.Log, 'pkg_proc_init<<');

Line 877: cn_utils.unset_org_id();

873: cn_utils.indent(body_code, 1);
874: cn_utils.appindcr(body_code, 'SAVEPOINT start_transaction;');
875: cn_utils.appendcr(body_code);
876: --END IF;
877: cn_utils.unset_org_id();
878: cn_debug.print_msg('pkg_proc_init<<', 1);
879: fnd_file.put_line(fnd_file.Log, 'pkg_proc_init<<');
880:
881:

Line 901: code IN OUT NOCOPY cn_utils.code_type,

897: x_module_id cn_modules.module_id%TYPE,
898: x_repository_id cn_repositories.repository_id%TYPE,
899: x_generic BOOLEAN,
900: x_event_id cn_events.event_id%TYPE,
901: code IN OUT NOCOPY cn_utils.code_type,
902: x_org_id IN NUMBER) IS
903:
904: BEGIN
905:

Line 965: cn_utils.set_org_id(X_org_id);

961:
962: ELSE -- Receivables package
963: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM Collection
964:
965: cn_utils.set_org_id(X_org_id);
966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');

Line 966: cn_utils.appendcr(code);

962: ELSE -- Receivables package
963: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM Collection
964:
965: cn_utils.set_org_id(X_org_id);
966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);

Line 967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');

963: IF (x_event_id = cn_global.ram_event_id) THEN -- RAM Collection
964:
965: cn_utils.set_org_id(X_org_id);
966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');

Line 968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');

964:
965: cn_utils.set_org_id(X_org_id);
966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');

Line 969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');

965: cn_utils.set_org_id(X_org_id);
966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');

Line 970: cn_utils.appendcr(code);

966: cn_utils.appendcr(code);
967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');

Line 971: cn_utils.appindcr(code, 'UPDATE cn_trx ');

967: cn_utils.appendcr(code, '--******** UPDATE CN_TRX CN_TRX_LINES ********-- ');
968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');

Line 972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');

968: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');

Line 973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');

969: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': update CN_TRX and CN_TRX_LINES.''); ');
970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');

Line 974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');

970: cn_utils.appendcr(code);
971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');

Line 975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');

971: cn_utils.appindcr(code, 'UPDATE cn_trx ');
972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');

Line 976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');

972: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');

Line 977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');

973: cn_utils.appindcr(code, ' WHERE trx_id IN (SELECT trx_id from cn_trx_lines ');
974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);

Line 978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');

974: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');

Line 979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');

975: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');

Line 980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');

976: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');

Line 981: cn_utils.appendcr(code);

977: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);

Line 982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');

978: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');

Line 983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');

979: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||')');
980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');

Line 984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');

980: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');

Line 985: cn_utils.appendcr(code);

981: cn_utils.appendcr(code);
982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');

Line 986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');

982: cn_utils.appindcr(code, 'trx_update_count := SQL%ROWCOUNT; ');
983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');

Line 987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');

983: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');

Line 988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');

984: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_update_count || '' records in cn_trx.''); ');
985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');

Line 989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');

985: cn_utils.appendcr(code);
986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');

Line 990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');

986: cn_utils.appindcr(code, 'UPDATE cn_trx_lines ');
987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);

Line 991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');

987: cn_utils.appindcr(code, ' SET adj_collection_run_id = x_proc_audit_id ');
988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');

Line 992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');

988: cn_utils.appindcr(code, ' WHERE adjusted_flag = ''Y'' ');
989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');

Line 993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');

989: cn_utils.appindcr(code, ' AND negated_flag = ''Y'' ');
990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');

Line 994: cn_utils.appendcr(code);

990: cn_utils.appindcr(code, ' AND collected_flag = ''N'' ');
991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);

Line 995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');

991: cn_utils.appindcr(code, ' AND event_id = cn_global.inv_event_id ');
992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);
999: cn_utils.indent(code, 1);

Line 996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');

992: cn_utils.appindcr(code, ' AND adj_batch_id = x_adj_batch_id ');
993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);
999: cn_utils.indent(code, 1);
1000:

Line 997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');

993: cn_utils.appindcr(code, ' AND org_id = '||x_org_id||';');
994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);
999: cn_utils.indent(code, 1);
1000:
1001: ELSE -- Regular Receivables Collection

Line 998: cn_utils.appendcr(code);

994: cn_utils.appendcr(code);
995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);
999: cn_utils.indent(code, 1);
1000:
1001: ELSE -- Regular Receivables Collection
1002:

Line 999: cn_utils.indent(code, 1);

995: cn_utils.appindcr(code, 'trx_line_update_count := SQL%ROWCOUNT; ');
996: cn_utils.appindcr(code, 'cn_message_pkg.debug(''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
997: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, ''' || x_procedure_name || ': Updated '' || trx_line_update_count || '' records in cn_trx_lines.''); ');
998: cn_utils.appendcr(code);
999: cn_utils.indent(code, 1);
1000:
1001: ELSE -- Regular Receivables Collection
1002:
1003: -- Call procedure to generate code for updating trx headers

Line 1004: cn_utils.unset_org_id();

1000:
1001: ELSE -- Regular Receivables Collection
1002:
1003: -- Call procedure to generate code for updating trx headers
1004: cn_utils.unset_org_id();
1005: cn_collection_ar_gen.insert_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1006:
1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');

Line 1007: cn_utils.set_org_id(X_org_id);

1003: -- Call procedure to generate code for updating trx headers
1004: cn_utils.unset_org_id();
1005: cn_collection_ar_gen.insert_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1006:
1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');
1009: cn_utils.appendcr(code);
1010: cn_utils.indent(code, 1);
1011: cn_utils.unset_org_id();

Line 1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');

1004: cn_utils.unset_org_id();
1005: cn_collection_ar_gen.insert_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1006:
1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');
1009: cn_utils.appendcr(code);
1010: cn_utils.indent(code, 1);
1011: cn_utils.unset_org_id();
1012:

Line 1009: cn_utils.appendcr(code);

1005: cn_collection_ar_gen.insert_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1006:
1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');
1009: cn_utils.appendcr(code);
1010: cn_utils.indent(code, 1);
1011: cn_utils.unset_org_id();
1012:
1013: -- Generate code to update headers foreign key columns

Line 1010: cn_utils.indent(code, 1);

1006:
1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');
1009: cn_utils.appendcr(code);
1010: cn_utils.indent(code, 1);
1011: cn_utils.unset_org_id();
1012:
1013: -- Generate code to update headers foreign key columns
1014: cn_collection_ar_gen.update_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);

Line 1011: cn_utils.unset_org_id();

1007: cn_utils.set_org_id(X_org_id);
1008: cn_utils.appindcr(code, 'IF (trx_count <> 0) THEN -- Any New Transactions?');
1009: cn_utils.appendcr(code);
1010: cn_utils.indent(code, 1);
1011: cn_utils.unset_org_id();
1012:
1013: -- Generate code to update headers foreign key columns
1014: cn_collection_ar_gen.update_trx(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1015:

Line 1027: cn_utils.unset_org_id();

1023: cn_collection_ar_gen.update_lines(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1024:
1025: END IF; --IF (x_event_id = cn_global.ram_event_id)
1026:
1027: cn_utils.unset_org_id();
1028: -- Generate code to insert into sales lines --AE 11-16-95
1029: cn_collection_ar_gen.insert_sales_lines(x_procedure_name, x_module_id, x_event_id, code,X_org_id);
1030:
1031: -- Generate code to update sales_lines

Line 1067: cn_utils.set_org_id(X_org_id);

1063: code => code,
1064: X_ORG_ID => X_ORG_ID);
1065:
1066: IF (x_event_id <> cn_global.ram_event_id) THEN
1067: cn_utils.set_org_id(X_org_id);
1068: cn_utils.unindent(code, 1);
1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');
1070: cn_utils.appendcr(code);
1071: END IF;

Line 1068: cn_utils.unindent(code, 1);

1064: X_ORG_ID => X_ORG_ID);
1065:
1066: IF (x_event_id <> cn_global.ram_event_id) THEN
1067: cn_utils.set_org_id(X_org_id);
1068: cn_utils.unindent(code, 1);
1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');
1070: cn_utils.appendcr(code);
1071: END IF;
1072: END IF;

Line 1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');

1065:
1066: IF (x_event_id <> cn_global.ram_event_id) THEN
1067: cn_utils.set_org_id(X_org_id);
1068: cn_utils.unindent(code, 1);
1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');
1070: cn_utils.appendcr(code);
1071: END IF;
1072: END IF;
1073: cn_utils.unset_org_id();

Line 1070: cn_utils.appendcr(code);

1066: IF (x_event_id <> cn_global.ram_event_id) THEN
1067: cn_utils.set_org_id(X_org_id);
1068: cn_utils.unindent(code, 1);
1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');
1070: cn_utils.appendcr(code);
1071: END IF;
1072: END IF;
1073: cn_utils.unset_org_id();
1074:

Line 1073: cn_utils.unset_org_id();

1069: cn_utils.appindcr(code, 'END IF; -- Any New Transactions?');
1070: cn_utils.appendcr(code);
1071: END IF;
1072: END IF;
1073: cn_utils.unset_org_id();
1074:
1075: cn_debug.print_msg('collect_stmts<<', 1);
1076: fnd_file.put_line(fnd_file.Log, 'collect_stmts<<');
1077:

Line 1094: code IN OUT NOCOPY cn_utils.code_type,

1090: PROCEDURE pkg_proc_end (
1091: x_table_map_id cn_table_maps.table_map_id%TYPE,
1092: x_procedure_name cn_objects.NAME%TYPE,
1093: x_event_id cn_events.event_id%TYPE,
1094: code IN OUT NOCOPY cn_utils.code_type,
1095: x_org_id IN NUMBER) IS
1096: BEGIN
1097:
1098: cn_debug.print_msg('pkg_proc_end>>', 1);

Line 1100: cn_utils.set_org_id(x_org_id);

1096: BEGIN
1097:
1098: cn_debug.print_msg('pkg_proc_end>>', 1);
1099: fnd_file.put_line(fnd_file.Log, 'pkg_proc_end>>');
1100: cn_utils.set_org_id(x_org_id);
1101: -- Generate code to record success or failure of batch
1102: -- Fix for bug 8371984
1103: --IF(x_event_id < 0)
1104: --THEN

Line 1106: cn_utils.record_process_success('''Finished collection run for batch '' || x_adj_batch_id', code);

1102: -- Fix for bug 8371984
1103: --IF(x_event_id < 0)
1104: --THEN
1105: IF (x_event_id = cn_global.ram_event_id) THEN
1106: cn_utils.record_process_success('''Finished collection run for batch '' || x_adj_batch_id', code);
1107: ELSE
1108: cn_utils.record_process_success('''Finished collection run for batch '' || x_batch_id', code);
1109: END IF;
1110:

Line 1108: cn_utils.record_process_success('''Finished collection run for batch '' || x_batch_id', code);

1104: --THEN
1105: IF (x_event_id = cn_global.ram_event_id) THEN
1106: cn_utils.record_process_success('''Finished collection run for batch '' || x_adj_batch_id', code);
1107: ELSE
1108: cn_utils.record_process_success('''Finished collection run for batch '' || x_batch_id', code);
1109: END IF;
1110:
1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');

Line 1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');

1107: ELSE
1108: cn_utils.record_process_success('''Finished collection run for batch '' || x_batch_id', code);
1109: END IF;
1110:
1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');
1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);

Line 1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');

1108: cn_utils.record_process_success('''Finished collection run for batch '' || x_batch_id', code);
1109: END IF;
1110:
1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');
1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);
1116:

Line 1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

1109: END IF;
1110:
1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');
1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);
1116:
1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);

Line 1114: cn_utils.appindcr(code, 'COMMIT;');

1110:
1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');
1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);
1116:
1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);
1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);

Line 1115: cn_utils.appendcr(code);

1111: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name || ': inside loop<<'');');
1112: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name || ': inside loop<<'');');
1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);
1116:
1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);
1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);
1119:

Line 1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);

1113: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1114: cn_utils.appindcr(code, 'COMMIT;');
1115: cn_utils.appendcr(code);
1116:
1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);
1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);
1119:
1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');

Line 1120: cn_utils.unindent(code, 1);

1116:
1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);
1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);
1119:
1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');
1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);

Line 1121: cn_utils.appindcr(code, 'END;');

1117: -- cn_utils.record_process_exception(x_procedure_name, 'start_transaction', code);
1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);
1119:
1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');
1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);
1125: --END IF;

Line 1122: cn_utils.unindent(code, 1);

1118: -- proc_exception(x_procedure_name, 'start_transaction', 'inside the loop', code);
1119:
1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');
1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);
1125: --END IF;
1126: cn_utils.unset_org_id();

Line 1123: cn_utils.appindcr(code, 'END LOOP;');

1119:
1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');
1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);
1125: --END IF;
1126: cn_utils.unset_org_id();
1127: --+

Line 1124: cn_utils.appendcr(code);

1120: cn_utils.unindent(code, 1);
1121: cn_utils.appindcr(code, 'END;');
1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);
1125: --END IF;
1126: cn_utils.unset_org_id();
1127: --+
1128: -- Insert any User Code specified for the 'Post-Collection' location

Line 1126: cn_utils.unset_org_id();

1122: cn_utils.unindent(code, 1);
1123: cn_utils.appindcr(code, 'END LOOP;');
1124: cn_utils.appendcr(code);
1125: --END IF;
1126: cn_utils.unset_org_id();
1127: --+
1128: -- Insert any User Code specified for the 'Post-Collection' location
1129: --+
1130: cn_collection_custom_gen.Generate_User_Code(

Line 1136: cn_utils.set_org_id(x_org_id);

1132: p_location_name => 'Post-Collection',
1133: code => code,
1134: X_ORG_ID => X_ORG_ID);
1135:
1136: cn_utils.set_org_id(x_org_id);
1137: cn_utils.appindcr(code, 'COMMIT;');
1138:
1139: IF(x_event_id > 0)
1140: THEN

Line 1137: cn_utils.appindcr(code, 'COMMIT;');

1133: code => code,
1134: X_ORG_ID => X_ORG_ID);
1135:
1136: cn_utils.set_org_id(x_org_id);
1137: cn_utils.appindcr(code, 'COMMIT;');
1138:
1139: IF(x_event_id > 0)
1140: THEN
1141: IF CN_COLLECTION_GEN.isparallelenabled THEN

Line 1142: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION DISABLE PARALLEL DML'';');

1138:
1139: IF(x_event_id > 0)
1140: THEN
1141: IF CN_COLLECTION_GEN.isparallelenabled THEN
1142: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION DISABLE PARALLEL DML'';');
1143: END IF;
1144: -- Fix for bug 8371984
1145: -- cn_utils.record_process_success('''Finished collection run for batch '' || x_proc_audit_id', code);
1146: null;

Line 1145: -- cn_utils.record_process_success('''Finished collection run for batch '' || x_proc_audit_id', code);

1141: IF CN_COLLECTION_GEN.isparallelenabled THEN
1142: cn_utils.appindcr(code, 'EXECUTE IMMEDIATE ''ALTER SESSION DISABLE PARALLEL DML'';');
1143: END IF;
1144: -- Fix for bug 8371984
1145: -- cn_utils.record_process_success('''Finished collection run for batch '' || x_proc_audit_id', code);
1146: null;
1147: END IF;
1148:
1149: cn_utils.appendcr(code);

Line 1149: cn_utils.appendcr(code);

1145: -- cn_utils.record_process_success('''Finished collection run for batch '' || x_proc_audit_id', code);
1146: null;
1147: END IF;
1148:
1149: cn_utils.appendcr(code);
1150:
1151: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;'); --AE 08-01-95
1152:
1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');

Line 1151: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;'); --AE 08-01-95

1147: END IF;
1148:
1149: cn_utils.appendcr(code);
1150:
1151: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;'); --AE 08-01-95
1152:
1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');
1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');
1155:

Line 1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');

1149: cn_utils.appendcr(code);
1150:
1151: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;'); --AE 08-01-95
1152:
1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');
1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');
1155:
1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1157: cn_utils.appendcr(code);

Line 1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');

1150:
1151: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;'); --AE 08-01-95
1152:
1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');
1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');
1155:
1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1157: cn_utils.appendcr(code);
1158:

Line 1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

1152:
1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');
1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');
1155:
1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1157: cn_utils.appendcr(code);
1158:
1159: -- cn_utils.proc_end(x_procedure_name, 'Y', code);
1160:

Line 1157: cn_utils.appendcr(code);

1153: cn_utils.appindcr(code, 'cn_message_pkg.debug('''|| x_procedure_name ||'<<'');');
1154: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, '''|| x_procedure_name ||'<<'');');
1155:
1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1157: cn_utils.appendcr(code);
1158:
1159: -- cn_utils.proc_end(x_procedure_name, 'Y', code);
1160:
1161: --proc_exception(x_procedure_name, NULL, 'outside the loop', code);

Line 1159: -- cn_utils.proc_end(x_procedure_name, 'Y', code);

1155:
1156: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1157: cn_utils.appendcr(code);
1158:
1159: -- cn_utils.proc_end(x_procedure_name, 'Y', code);
1160:
1161: --proc_exception(x_procedure_name, NULL, 'outside the loop', code);
1162:
1163: IF (x_event_id = cn_global.aia_om_event_id) THEN

Line 1164: cn_utils.unindent(code, 1);

1160:
1161: --proc_exception(x_procedure_name, NULL, 'outside the loop', code);
1162:
1163: IF (x_event_id = cn_global.aia_om_event_id) THEN
1164: cn_utils.unindent(code, 1);
1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');

Line 1165: cn_utils.appindcr(code, 'exception when others then');

1161: --proc_exception(x_procedure_name, NULL, 'outside the loop', code);
1162:
1163: IF (x_event_id = cn_global.aia_om_event_id) THEN
1164: cn_utils.unindent(code, 1);
1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');

Line 1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );

1162:
1163: IF (x_event_id = cn_global.aia_om_event_id) THEN
1164: cn_utils.unindent(code, 1);
1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

Line 1167: cn_utils.appendcr(code, 'retcode := 2;' );

1163: IF (x_event_id = cn_global.aia_om_event_id) THEN
1164: cn_utils.unindent(code, 1);
1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');

Line 1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');

1164: cn_utils.unindent(code, 1);
1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

Line 1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');

1165: cn_utils.appindcr(code, 'exception when others then');
1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1173: cn_utils.appendcr(code);

Line 1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );

1166: cn_utils.appendcr(code, 'errbuf := SQLCODE||'' ''||SQLERRM;' );
1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1173: cn_utils.appendcr(code);
1174: END IF;

Line 1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');

1167: cn_utils.appendcr(code, 'retcode := 2;' );
1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1173: cn_utils.appendcr(code);
1174: END IF;
1175:

Line 1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

1168: cn_utils.appindcr(code, 'cn_message_pkg.debug(SQLCODE||'' ''||SQLERRM);');
1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1173: cn_utils.appendcr(code);
1174: END IF;
1175:
1176: -- Generate end of procedure statement

Line 1173: cn_utils.appendcr(code);

1169: cn_utils.appindcr(code, 'fnd_file.put_line(fnd_file.Log, SQLCODE||'' ''||SQLERRM);');
1170: cn_utils.appindcr(code, 'cn_notify_aia_om.notify_failed_trx(x_batch_id,x_start_period_id, x_end_period_id, debug_pipe, debug_level,x_org_id);' );
1171: cn_utils.appindcr(code, 'x_proc_audit_id := x_col_audit_id;');
1172: cn_utils.appindcr(code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1173: cn_utils.appendcr(code);
1174: END IF;
1175:
1176: -- Generate end of procedure statement
1177: cn_utils.appendcr(code);

Line 1177: cn_utils.appendcr(code);

1173: cn_utils.appendcr(code);
1174: END IF;
1175:
1176: -- Generate end of procedure statement
1177: cn_utils.appendcr(code);
1178: cn_utils.unindent(code, 1);
1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');
1180: cn_utils.appendcr(code);
1181: cn_utils.unset_org_id();

Line 1178: cn_utils.unindent(code, 1);

1174: END IF;
1175:
1176: -- Generate end of procedure statement
1177: cn_utils.appendcr(code);
1178: cn_utils.unindent(code, 1);
1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');
1180: cn_utils.appendcr(code);
1181: cn_utils.unset_org_id();
1182:

Line 1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');

1175:
1176: -- Generate end of procedure statement
1177: cn_utils.appendcr(code);
1178: cn_utils.unindent(code, 1);
1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');
1180: cn_utils.appendcr(code);
1181: cn_utils.unset_org_id();
1182:
1183: cn_debug.print_msg('pkg_proc_end<<', 1);

Line 1180: cn_utils.appendcr(code);

1176: -- Generate end of procedure statement
1177: cn_utils.appendcr(code);
1178: cn_utils.unindent(code, 1);
1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');
1180: cn_utils.appendcr(code);
1181: cn_utils.unset_org_id();
1182:
1183: cn_debug.print_msg('pkg_proc_end<<', 1);
1184: fnd_file.put_line(fnd_file.Log, 'pkg_proc_end<<');

Line 1181: cn_utils.unset_org_id();

1177: cn_utils.appendcr(code);
1178: cn_utils.unindent(code, 1);
1179: cn_utils.appindcr(code, 'END ' ||x_procedure_name || ';');
1180: cn_utils.appendcr(code);
1181: cn_utils.unset_org_id();
1182:
1183: cn_debug.print_msg('pkg_proc_end<<', 1);
1184: fnd_file.put_line(fnd_file.Log, 'pkg_proc_end<<');
1185:

Line 1206: spec_code IN OUT NOCOPY cn_utils.code_type,

1202: module_id cn_modules.module_id%TYPE,
1203: repository_id cn_repositories.repository_id%TYPE,
1204: event_id cn_events.event_id%TYPE,
1205: x_generic BOOLEAN,
1206: spec_code IN OUT NOCOPY cn_utils.code_type,
1207: body_code IN OUT NOCOPY cn_utils.code_type,
1208: x_org_id IN NUMBER) IS
1209:
1210: -- Declare and initialize procedure variables

Line 1207: body_code IN OUT NOCOPY cn_utils.code_type,

1203: repository_id cn_repositories.repository_id%TYPE,
1204: event_id cn_events.event_id%TYPE,
1205: x_generic BOOLEAN,
1206: spec_code IN OUT NOCOPY cn_utils.code_type,
1207: body_code IN OUT NOCOPY cn_utils.code_type,
1208: x_org_id IN NUMBER) IS
1209:
1210: -- Declare and initialize procedure variables
1211:

Line 1281: spec_code IN OUT NOCOPY cn_utils.code_type,

1277: package_id cn_obj_packages_v.package_id%TYPE,
1278: module_id cn_modules.module_id%TYPE,
1279: repository_id cn_repositories.repository_id%TYPE,
1280: event_id cn_events.event_id%TYPE,
1281: spec_code IN OUT NOCOPY cn_utils.code_type,
1282: body_code IN OUT NOCOPY cn_utils.code_type,
1283: x_org_id IN NUMBER) IS
1284:
1285: -- Declare and initialize procedure variables

Line 1282: body_code IN OUT NOCOPY cn_utils.code_type,

1278: module_id cn_modules.module_id%TYPE,
1279: repository_id cn_repositories.repository_id%TYPE,
1280: event_id cn_events.event_id%TYPE,
1281: spec_code IN OUT NOCOPY cn_utils.code_type,
1282: body_code IN OUT NOCOPY cn_utils.code_type,
1283: x_org_id IN NUMBER) IS
1284:
1285: -- Declare and initialize procedure variables
1286:

Line 1303: cn_utils.set_org_id(X_org_id);

1299: fnd_file.put_line(fnd_file.Log, 'null_proc>>');
1300:
1301: -- Generate procedure definition, boilerplate text, local variables etc.
1302:
1303: cn_utils.set_org_id(X_org_id);
1304: cn_utils.proc_init(procedure_name, description, parameter_list,
1305: 'P', NULL, package_id, repository_id, spec_code, body_code);
1306:
1307: -- generate local variables.

Line 1304: cn_utils.proc_init(procedure_name, description, parameter_list,

1300:
1301: -- Generate procedure definition, boilerplate text, local variables etc.
1302:
1303: cn_utils.set_org_id(X_org_id);
1304: cn_utils.proc_init(procedure_name, description, parameter_list,
1305: 'P', NULL, package_id, repository_id, spec_code, body_code);
1306:
1307: -- generate local variables.
1308: cn_utils.indent(body_code, 1);

Line 1308: cn_utils.indent(body_code, 1);

1304: cn_utils.proc_init(procedure_name, description, parameter_list,
1305: 'P', NULL, package_id, repository_id, spec_code, body_code);
1306:
1307: -- generate local variables.
1308: cn_utils.indent(body_code, 1);
1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97

Line 1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');

1305: 'P', NULL, package_id, repository_id, spec_code, body_code);
1306:
1307: -- generate local variables.
1308: cn_utils.indent(body_code, 1);
1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');

Line 1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');

1306:
1307: -- generate local variables.
1308: cn_utils.indent(body_code, 1);
1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);

Line 1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97

1307: -- generate local variables.
1308: cn_utils.indent(body_code, 1);
1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);

Line 1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97

1308: cn_utils.indent(body_code, 1);
1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);
1316:

Line 1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');

1309: cn_utils.appindcr(body_code, 'x_proc_audit_id NUMBER := NULL ;');
1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);
1316:
1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);

Line 1314: cn_utils.appendcr(body_code);

1310: cn_utils.appindcr(body_code, 'x_col_audit_id NUMBER;');
1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);
1316:
1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);
1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);

Line 1315: cn_utils.unindent(body_code, 1);

1311: cn_utils.appindcr(body_code, 'debug_pipe VARCHAR2(30);'); --J.C 02-FEB-97
1312: cn_utils.appindcr(body_code, 'debug_level NUMBER := 1 ;'); --J.C 02-FEB-97
1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);
1316:
1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);
1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);
1319:

Line 1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);

1313: cn_utils.appindcr(body_code, 'dummy_num NUMBER ;');
1314: cn_utils.appendcr(body_code);
1315: cn_utils.unindent(body_code, 1);
1316:
1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);
1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);
1319:
1320: cn_utils.set_org_id(X_org_id);
1321: cn_utils.appindcr(body_code, 'NULL;');

Line 1320: cn_utils.set_org_id(X_org_id);

1316:
1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);
1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);
1319:
1320: cn_utils.set_org_id(X_org_id);
1321: cn_utils.appindcr(body_code, 'NULL;');
1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');

Line 1321: cn_utils.appindcr(body_code, 'NULL;');

1317: cn_utils.proc_begin(procedure_name, 'Y', body_code);
1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);
1319:
1320: cn_utils.set_org_id(X_org_id);
1321: cn_utils.appindcr(body_code, 'NULL;');
1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');

Line 1322: cn_utils.appendcr(body_code);

1318: call_start_debug(procedure_name, event_id, body_code,X_org_id);
1319:
1320: cn_utils.set_org_id(X_org_id);
1321: cn_utils.appindcr(body_code, 'NULL;');
1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');

Line 1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');

1320: cn_utils.set_org_id(X_org_id);
1321: cn_utils.appindcr(body_code, 'NULL;');
1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

Line 1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');

1321: cn_utils.appindcr(body_code, 'NULL;');
1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1329: cn_utils.appendcr(body_code);

Line 1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');

1322: cn_utils.appendcr(body_code);
1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1329: cn_utils.appendcr(body_code);
1330:

Line 1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');

1323:
1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1329: cn_utils.appendcr(body_code);
1330:
1331:

Line 1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');

1324: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name || ': Nothing is being collected.'');');
1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1329: cn_utils.appendcr(body_code);
1330:
1331:
1332: -- Generate procedure end.

Line 1329: cn_utils.appendcr(body_code);

1325: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name || ': Nothing is being collected.'');');
1326: cn_utils.appindcr(body_code, 'cn_message_pkg.debug('''|| procedure_name ||'<<'');');
1327: cn_utils.appindcr(body_code, 'fnd_file.put_line(fnd_file.Log, '''|| procedure_name ||'<<'');');
1328: cn_utils.appindcr(body_code, 'cn_message_pkg.end_batch(x_proc_audit_id);');
1329: cn_utils.appendcr(body_code);
1330:
1331:
1332: -- Generate procedure end.
1333: -- Generate end of procedure statement

Line 1334: cn_utils.appendcr(body_code);

1330:
1331:
1332: -- Generate procedure end.
1333: -- Generate end of procedure statement
1334: cn_utils.appendcr(body_code);
1335: cn_utils.unindent(body_code, 1);
1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');
1337: cn_utils.appendcr(body_code);
1338: cn_utils.unset_org_id();

Line 1335: cn_utils.unindent(body_code, 1);

1331:
1332: -- Generate procedure end.
1333: -- Generate end of procedure statement
1334: cn_utils.appendcr(body_code);
1335: cn_utils.unindent(body_code, 1);
1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');
1337: cn_utils.appendcr(body_code);
1338: cn_utils.unset_org_id();
1339:

Line 1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');

1332: -- Generate procedure end.
1333: -- Generate end of procedure statement
1334: cn_utils.appendcr(body_code);
1335: cn_utils.unindent(body_code, 1);
1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');
1337: cn_utils.appendcr(body_code);
1338: cn_utils.unset_org_id();
1339:
1340: cn_debug.print_msg('null_proc<<', 1);

Line 1337: cn_utils.appendcr(body_code);

1333: -- Generate end of procedure statement
1334: cn_utils.appendcr(body_code);
1335: cn_utils.unindent(body_code, 1);
1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');
1337: cn_utils.appendcr(body_code);
1338: cn_utils.unset_org_id();
1339:
1340: cn_debug.print_msg('null_proc<<', 1);
1341: fnd_file.put_line(fnd_file.Log, 'null_proc<<');

Line 1338: cn_utils.unset_org_id();

1334: cn_utils.appendcr(body_code);
1335: cn_utils.unindent(body_code, 1);
1336: cn_utils.appindcr(body_code, 'END ' || procedure_name || ';');
1337: cn_utils.appendcr(body_code);
1338: cn_utils.unset_org_id();
1339:
1340: cn_debug.print_msg('null_proc<<', 1);
1341: fnd_file.put_line(fnd_file.Log, 'null_proc<<');
1342:

Line 1371: := cn_utils.get_repository(X_MODULE_ID,x_org_id);

1367: l_package_body_id cn_obj_packages_v.package_id%TYPE;
1368: l_package_spec_desc cn_obj_packages_v.description%TYPE;
1369: l_package_body_desc cn_obj_packages_v.description%TYPE;
1370: l_repository_id cn_repositories.repository_id%TYPE
1371: := cn_utils.get_repository(X_MODULE_ID,x_org_id);
1372: l_spec_code cn_utils.code_type;
1373: l_body_code cn_utils.code_type;
1374: l_event_id cn_events.event_id%TYPE
1375: := cn_utils.get_event(x_module_id,x_org_id);

Line 1372: l_spec_code cn_utils.code_type;

1368: l_package_spec_desc cn_obj_packages_v.description%TYPE;
1369: l_package_body_desc cn_obj_packages_v.description%TYPE;
1370: l_repository_id cn_repositories.repository_id%TYPE
1371: := cn_utils.get_repository(X_MODULE_ID,x_org_id);
1372: l_spec_code cn_utils.code_type;
1373: l_body_code cn_utils.code_type;
1374: l_event_id cn_events.event_id%TYPE
1375: := cn_utils.get_event(x_module_id,x_org_id);
1376:

Line 1373: l_body_code cn_utils.code_type;

1369: l_package_body_desc cn_obj_packages_v.description%TYPE;
1370: l_repository_id cn_repositories.repository_id%TYPE
1371: := cn_utils.get_repository(X_MODULE_ID,x_org_id);
1372: l_spec_code cn_utils.code_type;
1373: l_body_code cn_utils.code_type;
1374: l_event_id cn_events.event_id%TYPE
1375: := cn_utils.get_event(x_module_id,x_org_id);
1376:
1377: BEGIN

Line 1375: := cn_utils.get_event(x_module_id,x_org_id);

1371: := cn_utils.get_repository(X_MODULE_ID,x_org_id);
1372: l_spec_code cn_utils.code_type;
1373: l_body_code cn_utils.code_type;
1374: l_event_id cn_events.event_id%TYPE
1375: := cn_utils.get_event(x_module_id,x_org_id);
1376:
1377: BEGIN
1378:
1379:

Line 1393: -- Note: pkg_init calls delete_module in cn_utils to delete current mod.

1389: fnd_file.put_line(fnd_file.Log, 'collection_pkg_code>>');
1390:
1391: --+
1392: -- Define package in Commissions dictionary, initialize code etc.
1393: -- Note: pkg_init calls delete_module in cn_utils to delete current mod.
1394: -- Note: l_package_type can be left NULL - it's not actually used.
1395: --+
1396:
1397: cn_utils.set_org_id(x_org_id);

Line 1397: cn_utils.set_org_id(x_org_id);

1393: -- Note: pkg_init calls delete_module in cn_utils to delete current mod.
1394: -- Note: l_package_type can be left NULL - it's not actually used.
1395: --+
1396:
1397: cn_utils.set_org_id(x_org_id);
1398:
1399: cn_utils.pkg_init(x_module_id, x_package_name, x_org_append, l_package_type,
1400: l_package_spec_id, l_package_body_id, l_package_spec_desc,
1401: l_package_body_desc, l_spec_code, l_body_code);

Line 1399: cn_utils.pkg_init(x_module_id, x_package_name, x_org_append, l_package_type,

1395: --+
1396:
1397: cn_utils.set_org_id(x_org_id);
1398:
1399: cn_utils.pkg_init(x_module_id, x_package_name, x_org_append, l_package_type,
1400: l_package_spec_id, l_package_body_id, l_package_spec_desc,
1401: l_package_body_desc, l_spec_code, l_body_code);
1402:
1403: IF x_collect_flag = 'YES' THEN

Line 1415: cn_utils.set_org_id(X_org_id);

1411: END IF;
1412:
1413: -- Generate end package statements, dump code into cn_objects
1414:
1415: cn_utils.set_org_id(X_org_id);
1416: cn_utils.pkg_end(x_package_name, l_package_spec_id, l_package_body_id,
1417: l_spec_code, l_body_code);
1418:
1419: cn_utils.unset_org_id();

Line 1416: cn_utils.pkg_end(x_package_name, l_package_spec_id, l_package_body_id,

1412:
1413: -- Generate end package statements, dump code into cn_objects
1414:
1415: cn_utils.set_org_id(X_org_id);
1416: cn_utils.pkg_end(x_package_name, l_package_spec_id, l_package_body_id,
1417: l_spec_code, l_body_code);
1418:
1419: cn_utils.unset_org_id();
1420: cn_debug.print_msg('collection_pkg_code<<', 1);

Line 1419: cn_utils.unset_org_id();

1415: cn_utils.set_org_id(X_org_id);
1416: cn_utils.pkg_end(x_package_name, l_package_spec_id, l_package_body_id,
1417: l_spec_code, l_body_code);
1418:
1419: cn_utils.unset_org_id();
1420: cn_debug.print_msg('collection_pkg_code<<', 1);
1421: fnd_file.put_line(fnd_file.Log, 'collection_pkg_code<<');
1422:
1423: END collection_pkg_code;