210: --* : p_loc The location *--
211: --* : p_msg The message that has to be written to the log file *--
212: --* Global Vars : None *--
213: --* Called from : None *--
214: --* Calls : fnd_file.put_line *--
215: --* Tables Used : None *--
216: --* Logic : Call fnd_file.put_line with the message as a parameter *--
217: --****************************************************************************************--
218: PROCEDURE log_msg
212: --* Global Vars : None *--
213: --* Called from : None *--
214: --* Calls : fnd_file.put_line *--
215: --* Tables Used : None *--
216: --* Logic : Call fnd_file.put_line with the message as a parameter *--
217: --****************************************************************************************--
218: PROCEDURE log_msg
219: (
220: p_ModuleName IN VARCHAR2,
241: /*
242: PROCEDURE log_write
243: IS
244: BEGIN
245: fnd_file.put_line (fnd_file.log, '*********************Log Messages**********************');
246: FOR l_Counter IN 1..g_MaxLogMessages LOOP
247: fnd_file.put_line(fnd_file.log, g_LogMessages(l_Counter));
248: END LOOP;
249: fnd_file.put_line (fnd_file.log, '*******************************************************');
243: IS
244: BEGIN
245: fnd_file.put_line (fnd_file.log, '*********************Log Messages**********************');
246: FOR l_Counter IN 1..g_MaxLogMessages LOOP
247: fnd_file.put_line(fnd_file.log, g_LogMessages(l_Counter));
248: END LOOP;
249: fnd_file.put_line (fnd_file.log, '*******************************************************');
250: fnd_file.put_line (fnd_file.log, ' ');
251: END;
245: fnd_file.put_line (fnd_file.log, '*********************Log Messages**********************');
246: FOR l_Counter IN 1..g_MaxLogMessages LOOP
247: fnd_file.put_line(fnd_file.log, g_LogMessages(l_Counter));
248: END LOOP;
249: fnd_file.put_line (fnd_file.log, '*******************************************************');
250: fnd_file.put_line (fnd_file.log, ' ');
251: END;
252: */
253:
246: FOR l_Counter IN 1..g_MaxLogMessages LOOP
247: fnd_file.put_line(fnd_file.log, g_LogMessages(l_Counter));
248: END LOOP;
249: fnd_file.put_line (fnd_file.log, '*******************************************************');
250: fnd_file.put_line (fnd_file.log, ' ');
251: END;
252: */
253:
254: --****************************************************************************************--
258: --* Parameters : p_msg The message that has to be written to the output file *--
259: --* Global Vars : None *--
260: --* Called from : write_report_header *--
261: --* : write_report_for_a_receipt *--
262: --* Calls : fnd_file.put_line *--
263: --* Tables Used : None *--
264: --* Logic : Call fnd_file.put_line with the message as a parameter *--
265: --****************************************************************************************--
266: PROCEDURE output
260: --* Called from : write_report_header *--
261: --* : write_report_for_a_receipt *--
262: --* Calls : fnd_file.put_line *--
263: --* Tables Used : None *--
264: --* Logic : Call fnd_file.put_line with the message as a parameter *--
265: --****************************************************************************************--
266: PROCEDURE output
267: (
268: p_msg IN VARCHAR2
267: (
268: p_msg IN VARCHAR2
269: ) IS
270: BEGIN
271: fnd_file.put_line(fnd_file.output, p_msg);
272: END output;
273:
274: --****************************************************************************************--
275: --* Name : error *--
280: --* : p_msg The message that has to be written to the log file *--
281: --* : p_loc The location of error *--
282: --* Global Vars : g_SUCCESS *--
283: --* Called from : To be filled in *--
284: --* Calls : fnd_file.put_line *--
285: --* Tables Used : None *--
286: --* Logic : Call fnd_file.put_line with the message as a parameter *--
287: --****************************************************************************************--
288: PROCEDURE error
282: --* Global Vars : g_SUCCESS *--
283: --* Called from : To be filled in *--
284: --* Calls : fnd_file.put_line *--
285: --* Tables Used : None *--
286: --* Logic : Call fnd_file.put_line with the message as a parameter *--
287: --****************************************************************************************--
288: PROCEDURE error
289: (
290: p_error_type IN NUMBER, --ERROR or WARNING
318: /*
319: PROCEDURE error_write
320: IS
321: BEGIN
322: fnd_file.put_line (fnd_file.log, '*****************Error Messages************************');
323: FOR l_Counter IN 1..g_MaxErrorMessages LOOP
324: fnd_file.put_line(fnd_file.log, g_ErrorMessages(l_Counter));
325: END LOOP;
326: fnd_file.put_line (fnd_file.log, '*******************************************************');
320: IS
321: BEGIN
322: fnd_file.put_line (fnd_file.log, '*****************Error Messages************************');
323: FOR l_Counter IN 1..g_MaxErrorMessages LOOP
324: fnd_file.put_line(fnd_file.log, g_ErrorMessages(l_Counter));
325: END LOOP;
326: fnd_file.put_line (fnd_file.log, '*******************************************************');
327: fnd_file.put_line (fnd_file.log, ' ');
328: END;
322: fnd_file.put_line (fnd_file.log, '*****************Error Messages************************');
323: FOR l_Counter IN 1..g_MaxErrorMessages LOOP
324: fnd_file.put_line(fnd_file.log, g_ErrorMessages(l_Counter));
325: END LOOP;
326: fnd_file.put_line (fnd_file.log, '*******************************************************');
327: fnd_file.put_line (fnd_file.log, ' ');
328: END;
329: */
330: --****************************************************************************************--
323: FOR l_Counter IN 1..g_MaxErrorMessages LOOP
324: fnd_file.put_line(fnd_file.log, g_ErrorMessages(l_Counter));
325: END LOOP;
326: fnd_file.put_line (fnd_file.log, '*******************************************************');
327: fnd_file.put_line (fnd_file.log, ' ');
328: END;
329: */
330: --****************************************************************************************--
331: --* Name : debug_msg *--
345: --* : get_receipt_txn_code *--
346: --* : pay_debit_memos *--
347: --* : process_receipts *--
348: --* : main *--
349: --* Calls : fnd_file.put_line *--
350: --* Tables Used : None *--
351: --* Global Vars : g_debug READ *--
352: --* : FND_FILE.LOG READ *--
353: --* : g_DebugTbl READ *--
348: --* : main *--
349: --* Calls : fnd_file.put_line *--
350: --* Tables Used : None *--
351: --* Global Vars : g_debug READ *--
352: --* : FND_FILE.LOG READ *--
353: --* : g_DebugTbl READ *--
354: --* : g_CurDebugProcs READ *--
355: --* Logic : Call fnd_file.put_line with the message as a parameter. *--
356: --* : The message will be displayed only if the debug flag is on *--
351: --* Global Vars : g_debug READ *--
352: --* : FND_FILE.LOG READ *--
353: --* : g_DebugTbl READ *--
354: --* : g_CurDebugProcs READ *--
355: --* Logic : Call fnd_file.put_line with the message as a parameter. *--
356: --* : The message will be displayed only if the debug flag is on *--
357: --* : The package name, module name and the intendation string are used *--
358: --* : from the global variable called g_DebugTbl. The procedures *--
359: --* : debug_init and debug_exit inserts and modifies this table *--
394: PROCEDURE debug_write
395: IS
396: BEGIN
397: IF (g_debug = 'Y') THEN
398: fnd_file.put_line (fnd_file.log, '*****************Debug Messages************************');
399: FOR l_Counter IN 1..g_MaxDebugMessages LOOP
400: fnd_file.put_line(fnd_file.log, g_DebugMessages(l_Counter));
401: END LOOP;
402: fnd_file.put_line (fnd_file.log, '*******************************************************');
396: BEGIN
397: IF (g_debug = 'Y') THEN
398: fnd_file.put_line (fnd_file.log, '*****************Debug Messages************************');
399: FOR l_Counter IN 1..g_MaxDebugMessages LOOP
400: fnd_file.put_line(fnd_file.log, g_DebugMessages(l_Counter));
401: END LOOP;
402: fnd_file.put_line (fnd_file.log, '*******************************************************');
403: fnd_file.put_line (fnd_file.log, ' ');
404: END IF;
398: fnd_file.put_line (fnd_file.log, '*****************Debug Messages************************');
399: FOR l_Counter IN 1..g_MaxDebugMessages LOOP
400: fnd_file.put_line(fnd_file.log, g_DebugMessages(l_Counter));
401: END LOOP;
402: fnd_file.put_line (fnd_file.log, '*******************************************************');
403: fnd_file.put_line (fnd_file.log, ' ');
404: END IF;
405: END;
406: */
399: FOR l_Counter IN 1..g_MaxDebugMessages LOOP
400: fnd_file.put_line(fnd_file.log, g_DebugMessages(l_Counter));
401: END LOOP;
402: fnd_file.put_line (fnd_file.log, '*******************************************************');
403: fnd_file.put_line (fnd_file.log, ' ');
404: END IF;
405: END;
406: */
407: