DBA Data[Home] [Help]

APPS.CN_NOTIFY_WRITEOFFS SQL Statements

The following lines contain the word 'select', 'insert', 'update' or 'delete':

Line: 28

    CURSOR batch_size IS SELECT system_batch_size FROM cn_repositories WHERE org_id = x_org_id;
Line: 42

    cn_process_audits_pkg.insert_row(x_rowid, x_proc_audit_id, NULL,
      'NOT', 'Notification run', NULL, NULL, NULL, NULL, NULL, SYSDATE, NULL, x_org_id);
Line: 56

    INSERT INTO cn_not_trx (
	   not_trx_id,
	   batch_id,
	   notified_date,
	   processed_date,
	   notification_run_id,
	   collected_flag,
	   row_id,
	   source_trx_id,
	   source_doc_type,
	   event_id,
       org_id)
    SELECT
	   cn_not_trx_s.NEXTVAL,
	   FLOOR(cn_not_trx_s.CURRVAL/l_sys_batch_size),
	   SYSDATE,
	   aa.gl_date,					--AE 02-22-96
	   x_proc_audit_id,
	   'N',
	   aa.rowid,
	   aa.adjustment_id,
	   'AR',
	   cn_global.wo_event_id,
	   x_org_id
      FROM ar_adjustments aa,
	   cn_repositories cr
     WHERE aa.type in ('LINE', 'INVOICE')               --AE 02-22-96
       AND aa.status = 'A'                              --AE 02-23-96
       AND aa.line_adjusted is not NULL 		--AE 02-06-96
       AND aa.gl_date BETWEEN x_start_date AND x_end_date
       AND aa.posting_control_id <> -3		--AE 02-22-96
       AND aa.set_of_books_id = cr.set_of_books_id	--AE 02-21-96
       AND cr.repository_id = 100			--AE 02-21-96
       AND aa.org_id = x_org_id
       AND cr.org_id = aa.org_id
       AND NOT EXISTS (
	       SELECT 1
		 FROM cn_not_trx
		WHERE source_trx_id = aa.adjustment_id
		  AND event_id= cn_global.wo_event_id
          AND org_id = x_org_id) ;
Line: 101

    cn_process_audits_pkg.update_row(x_proc_audit_id, NULL, SYSDATE, 0,
      'Finished notification run: Notified ' || x_trx_count || ' writeoffs.');
Line: 106

      cn_message_pkg.debug('notify_writeoffs: No rows inserted into CN_NOT_TRX. Possible reason: Transactions have not been posted to GL or they have already been collected.');
Line: 107

      fnd_file.put_line(fnd_file.Log, 'notify_writeoffs: No rows inserted into CN_NOT_TRX. Possible reason: Transactions have not been posted to GL or they have already been collected.');
Line: 133

    cn_process_audits_pkg.update_row(X_proc_audit_id, NULL, SYSDATE, SQLCODE,
      SQLERRM);