The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT start_date, end_date, auto_trx_numbering_flag, copy_doc_number_flag
INTO l_start_date, l_end_date, l_auto_trx_numbering_flag, l_copy_doc_number_flag
FROM RA_BATCH_SOURCES
WHERE batch_source_id = p_batch_source_id
AND nvl(status, 'A') = 'A'
AND batch_source_type = 'INV';
SELECT 'Y'
INTO l_currency_valid
FROM FND_CURRENCIES_VL cur
WHERE CURRENCY_CODE = p_currency_code
AND p_issue_date BETWEEN nvl(cur.START_DATE_ACTIVE, p_issue_date)
AND nvl(cur.END_DATE_ACTIVE, p_issue_date)
AND ENABLED_FLAG = 'Y'
AND CURRENCY_FLAG = 'Y';
SELECT 'Y'
INTO l_Receipt_Method_valid
FROM AR_RECEIPT_METHODS rm
WHERE rm.receipt_method_id = p_receipt_method_id
AND p_issue_date BETWEEN nvl(rm.start_date , p_issue_date)
AND nvl(rm.end_date , p_issue_date);
| Does validation that is required when a new batch is inserted. |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_batch_rec |
| OUT: |
| None |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE validate_batch ( p_batch_rec IN ra_batches%rowtype ) IS
BEGIN
IF PG_DEBUG in ('Y', 'C') THEN
arp_util.debug('ARP_PROCESS_BR_BATCHES.validate_batch()+');
| validate_delete_batch |
| |
| DESCRIPTION |
| Does validation that is required when a batch is deleted. |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_batch_id |
| OUT: |
| None |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE validate_delete_batch ( p_batch_id IN ra_batches.batch_id%type ) IS
BEGIN
IF PG_DEBUG in ('Y', 'C') THEN
arp_util.debug('ARP_PROCESS_BR_BATCHES.validate_delete_batch()+');
arp_util.debug('ARP_PROCESS_BR_BATCHES.validate_delete_batch()-');
arp_util.debug('EXCEPTION: arp_process_batch.validate_delete_batch()');
arp_util.debug('validate_delete_batch: ' || '');
arp_util.debug('------ parameters for validate_delete_batch() -------');
arp_util.debug('validate_delete_batch: ' || 'p_batch_id = '|| p_batch_id);
END validate_delete_batch;
| validate_selection |
| |
| DESCRIPTION |
| Does validation that is required when Selection Criteria are inserted |
| or updated |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_sel_rec |
| OUT: |
| None |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE validate_selection ( p_sel_rec IN ar_selection_criteria%rowtype,
p_issue_date IN ra_batches.issue_date%type ) IS
BEGIN
IF PG_DEBUG in ('Y', 'C') THEN
arp_util.debug('ARP_PROCESS_BR_BATCHES.validate_selection()+');
arp_util.debug('ARP_PROCESS_BR_BATCHES.validate_selection()-');
arp_util.debug('EXCEPTION: arp_process_batch.validate_selection()');
arp_util.debug('validate_selection: ' || '');
arp_util.debug('------ parameters for validate_selection() -------');
arp_selection_criteria_pkg.display_selection_rec(p_sel_rec);
END validate_selection;
| Is_Selection_Entered |
| |
| DESCRIPTION |
| This function determines if Selection Criteria have been entered or not|
| |
+===========================================================================*/
FUNCTION Is_Selection_Entered (p_sel_rec IN ar_selection_criteria%rowtype ) RETURN BOOLEAN IS
BEGIN
IF PG_DEBUG in ('Y', 'C') THEN
arp_util.debug('ARP_PROCESS_BR_BATCHES.Is_Selection_Entered()');
arp_util.debug('EXCEPTION: arp_process_batches.Is_Selection_Entered ()');
arp_util.debug('Is_Selection_Entered: ' || '');
arp_util.debug('Is_Selection_Entered: ' || '------ parameters for validate_selection() -------');
arp_selection_criteria_pkg.display_selection_rec(p_sel_rec);
END Is_Selection_Entered;
| insert_batch |
| |
| DESCRIPTION |
| Cover for calling the batch entity handler insert_batch |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_form_name |
| p_form_version |
| p_batch_source_id |
| p_batch_date |
| p_gl_date |
| p_type |
| p_currency_code |
| p_comments |
| p_attribute_category |
| p_attribute1 - 15 |
| p_issue_date |
| p_maturity_date |
| p_special_instructions |
| p_batch_process_status |
| p_due_date_low |
| p_due_date_high |
| p_trx_date_low |
| p_trx_date_high |
| p_cust_trx_type_id |
| p_receipt_method_id |
| p_bank_branch_id |
| p_trx_number_low |
| p_trx_number_high |
| p_customer_class_code |
| p_customer_category_code |
| p_customer_id |
| p_site_use_id |
| OUT: |
| p_batch_id |
| p_selection_criteria_id |
| IN OUT: |
| p_name |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE insert_batch (
p_form_name IN varchar2 ,
p_form_version IN number ,
p_batch_source_id IN ra_batches.batch_source_id%TYPE ,
p_batch_date IN ra_batches.batch_date%TYPE ,
p_gl_date IN ra_batches.gl_date%TYPE ,
p_TYPE IN ra_batches.TYPE%TYPE ,
p_currency_code IN ra_batches.currency_code%TYPE ,
p_comments IN ra_batches.comments%TYPE ,
p_attribute_category IN ra_batches.attribute_category%TYPE ,
p_attribute1 IN ra_batches.attribute1%TYPE ,
p_attribute2 IN ra_batches.attribute2%TYPE ,
p_attribute3 IN ra_batches.attribute3%TYPE ,
p_attribute4 IN ra_batches.attribute4%TYPE ,
p_attribute5 IN ra_batches.attribute5%TYPE ,
p_attribute6 IN ra_batches.attribute6%TYPE ,
p_attribute7 IN ra_batches.attribute7%TYPE ,
p_attribute8 IN ra_batches.attribute8%TYPE ,
p_attribute9 IN ra_batches.attribute9%TYPE ,
p_attribute10 IN ra_batches.attribute10%TYPE ,
p_attribute11 IN ra_batches.attribute11%TYPE ,
p_attribute12 IN ra_batches.attribute12%TYPE ,
p_attribute13 IN ra_batches.attribute13%TYPE ,
p_attribute14 IN ra_batches.attribute14%TYPE ,
p_attribute15 IN ra_batches.attribute15%TYPE ,
p_issue_date IN ra_batches.issue_date%TYPE ,
p_maturity_date IN ra_batches.maturity_date%TYPE ,
p_special_instructions IN ra_batches.special_instructions%TYPE ,
p_batch_process_status IN ra_batches.batch_process_status%TYPE ,
p_due_date_low IN ar_selection_criteria.due_date_low%TYPE ,
p_due_date_high IN ar_selection_criteria.due_date_high%TYPE,
p_trx_date_low IN ar_selection_criteria.trx_date_low%TYPE ,
p_trx_date_high IN ar_selection_criteria.trx_date_high%TYPE,
p_cust_trx_TYPE_id IN ar_selection_criteria.cust_trx_TYPE_id%TYPE ,
p_receipt_method_id IN ar_selection_criteria.receipt_method_id%TYPE ,
p_bank_branch_id IN ar_selection_criteria.bank_branch_id%TYPE ,
p_trx_number_low IN ar_selection_criteria.trx_number_low%TYPE ,
p_trx_number_high IN ar_selection_criteria.trx_number_high%TYPE ,
p_customer_class_code IN ar_selection_criteria.customer_class_code%TYPE ,
p_customer_category_code IN ar_selection_criteria.customer_category_code%TYPE,
p_customer_id IN ar_selection_criteria.customer_id%TYPE ,
p_site_use_id IN ar_selection_criteria.site_use_id%TYPE ,
p_selection_criteria_id OUT NOCOPY ra_batches.selection_criteria_id%TYPE ,
p_batch_id OUT NOCOPY ra_batches.batch_id%TYPE ,
p_name IN OUT NOCOPY ra_batches.name%TYPE )
IS
l_batch_rec ra_batches%rowtype ;
l_sel_rec ar_selection_criteria%rowtype ;
l_sel_id ar_selection_criteria.selection_criteria_id%type;
arp_util.debug('arp_process_br_batch.insert_batch()+');
l_batch_rec.selection_criteria_id := null ;
| Call Table Handler to insert the batch |
+---------------------------------------------------------------*/
arp_tbat_pkg.insert_p (l_batch_rec, p_batch_id, p_name);
| Selection Criteria Information |
+---------------------------------------------------------------*/
l_sel_rec.due_date_low := p_due_date_low ;
p_selection_criteria_id := NULL ;
IF (Is_Selection_Entered (l_sel_rec)) THEN
/*-------------------------------------------------------------+
| Do required validation for the selection criteria |
+-------------------------------------------------------------*/
ARP_PROCESS_BR_BATCHES.validate_selection (l_sel_rec, p_issue_date);
| Call Table Handler to insert the selection |
+-------------------------------------------------------------*/
arp_selection_criteria_pkg.insert_p (l_sel_rec, p_selection_criteria_id);
| Update the Batch information with the Selection Criteria ID |
+-------------------------------------------------------------*/
UPDATE RA_BATCHES
SET selection_criteria_id = p_selection_criteria_id
WHERE batch_id = p_batch_id;
arp_util.debug('ARP_PROCESS_BR_BATCHES.insert_batch()-');
arp_util.debug('EXCEPTION : ARP_PROCESS_BR_BATCHES.insert_batch');
arp_util.debug('p_selection_criteria_id : ' || p_selection_criteria_id);
| update_batch |
| |
| DESCRIPTION |
| Call the table handlers of RA_BATCHES and AR_SELECTION_CRITERIA |
| to update BR Batch information |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_form_name |
| p_form_version |
| p_batch_id |
| p_name |
| p_batch_source_id |
| p_batch_date |
| p_gl_date |
| p_type |
| p_currency_code |
| p_comments |
| p_attribute_category |
| p_attribute1 - 15 |
| p_issue_date |
| p_maturity_date |
| p_special_instructions |
| p_batch_process_status |
| p_due_date_low |
| p_due_date_high |
| p_trx_date_low |
| p_trx_date_high |
| p_cust_trx_type_id |
| p_receipt_method_id |
| p_bank_branch_id |
| p_trx_number_low |
| p_trx_number_high |
| p_customer_class_code |
| p_customer_category_code |
| p_customer_id |
| p_site_use_id |
| |
| IN OUT NOCOPY : |
| p_selection_criteria_id |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE update_batch (
p_form_name IN varchar2 ,
p_form_version IN number ,
p_batch_id IN ra_batches.batch_id%TYPE ,
p_name IN ra_batches.name%TYPE ,
p_batch_source_id IN ra_batches.batch_source_id%TYPE ,
p_batch_date IN ra_batches.batch_date%TYPE ,
p_gl_date IN ra_batches.gl_date%TYPE ,
p_TYPE IN ra_batches.TYPE%TYPE ,
p_currency_code IN ra_batches.currency_code%TYPE ,
p_comments IN ra_batches.comments%TYPE ,
p_attribute_category IN ra_batches.attribute_category%TYPE ,
p_attribute1 IN ra_batches.attribute1%TYPE ,
p_attribute2 IN ra_batches.attribute2%TYPE ,
p_attribute3 IN ra_batches.attribute3%TYPE ,
p_attribute4 IN ra_batches.attribute4%TYPE ,
p_attribute5 IN ra_batches.attribute5%TYPE ,
p_attribute6 IN ra_batches.attribute6%TYPE ,
p_attribute7 IN ra_batches.attribute7%TYPE ,
p_attribute8 IN ra_batches.attribute8%TYPE ,
p_attribute9 IN ra_batches.attribute9%TYPE ,
p_attribute10 IN ra_batches.attribute10%TYPE ,
p_attribute11 IN ra_batches.attribute11%TYPE ,
p_attribute12 IN ra_batches.attribute12%TYPE ,
p_attribute13 IN ra_batches.attribute13%TYPE ,
p_attribute14 IN ra_batches.attribute14%TYPE ,
p_attribute15 IN ra_batches.attribute15%TYPE ,
p_issue_date IN ra_batches.issue_date%TYPE ,
p_maturity_date IN ra_batches.maturity_date%TYPE ,
p_special_instructions IN ra_batches.special_instructions%TYPE ,
p_batch_process_status IN ra_batches.batch_process_status%TYPE ,
p_request_id IN ra_batches.request_id%TYPE ,
p_due_date_low IN ar_selection_criteria.due_date_low%TYPE ,
p_due_date_high IN ar_selection_criteria.due_date_high%TYPE,
p_trx_date_low IN ar_selection_criteria.trx_date_low%TYPE ,
p_trx_date_high IN ar_selection_criteria.trx_date_high%TYPE,
p_cust_trx_TYPE_id IN ar_selection_criteria.cust_trx_TYPE_id%TYPE ,
p_receipt_method_id IN ar_selection_criteria.receipt_method_id%TYPE ,
p_bank_branch_id IN ar_selection_criteria.bank_branch_id%TYPE ,
p_trx_number_low IN ar_selection_criteria.trx_number_low%TYPE ,
p_trx_number_high IN ar_selection_criteria.trx_number_high%TYPE ,
p_customer_class_code IN ar_selection_criteria.customer_class_code%TYPE ,
p_customer_category_code IN ar_selection_criteria.customer_category_code%TYPE,
p_customer_id IN ar_selection_criteria.customer_id%TYPE ,
p_site_use_id IN ar_selection_criteria.site_use_id%TYPE ,
p_selection_criteria_id IN OUT NOCOPY ar_selection_criteria.selection_criteria_id%TYPE)
IS
l_batch_rec ra_batches%rowtype;
l_sel_rec ar_selection_criteria%rowtype;
arp_util.debug('ARP_PROCESS_BR_BATCHES.update_batch()+');
l_batch_rec.selection_criteria_id := p_selection_criteria_id ;
| Call Table Handler to update the batch |
+---------------------------------------------------------------*/
arp_tbat_pkg.update_p (l_batch_rec, p_batch_id);
UPDATE ra_batches
SET request_id = p_request_id
WHERE batch_id = p_batch_id;
| Selection Criteria Information |
+---------------------------------------------------------------*/
IF (p_selection_criteria_id IS NOT NULL)
THEN
arp_selection_criteria_pkg.set_to_dummy(l_sel_rec);
IF (Is_Selection_Entered (l_sel_rec))
THEN
/*-------------------------------------------------------------+
| Do required validation for the selection criteria |
+-------------------------------------------------------------*/
ARP_PROCESS_BR_BATCHES.validate_selection (l_sel_rec, p_issue_date);
IF (p_selection_criteria_id IS NULL)
THEN
/*-------------------------------------------------------------+
| Call Table Handler to insert the selection |
+-------------------------------------------------------------*/
arp_selection_criteria_pkg.insert_p ( l_sel_rec, p_selection_criteria_id);
| Update the Batch information with the Selection Criteria ID |
+-------------------------------------------------------------*/
UPDATE RA_BATCHES
SET selection_criteria_id = p_selection_criteria_id
WHERE batch_id = p_batch_id;
| Call Table Handler to update the selection |
+-------------------------------------------------------------*/
arp_selection_criteria_pkg.update_p (l_sel_rec, p_selection_criteria_id);
arp_util.debug('ARP_PROCESS_BR_BATCHES.update_batch()-');
arp_util.debug('EXCEPTION : ARP_PROCESS_BR_BATCHES.update_batch');
arp_util.debug('update_batch: ' || 'p_batch_source_id : ' || p_batch_source_id);
arp_util.debug('update_batch: ' || 'p_batch_date : ' || p_batch_date);
arp_util.debug('update_batch: ' || 'p_gl_date : ' || p_gl_date);
arp_util.debug('update_batch: ' || 'p_type : ' || p_type);
arp_util.debug('update_batch: ' || 'p_currency_code : ' || p_currency_code);
arp_util.debug('update_batch: ' || 'p_comments : ' || p_comments);
arp_util.debug('update_batch: ' || 'p_attribute_category : ' || p_attribute_category);
arp_util.debug('update_batch: ' || 'p_attribute1 : ' || p_attribute1);
arp_util.debug('update_batch: ' || 'p_attribute2 : ' || p_attribute2);
arp_util.debug('update_batch: ' || 'p_attribute3 : ' || p_attribute3);
arp_util.debug('update_batch: ' || 'p_attribute4 : ' || p_attribute4);
arp_util.debug('update_batch: ' || 'p_attribute5 : ' || p_attribute5);
arp_util.debug('update_batch: ' || 'p_attribute6 : ' || p_attribute6);
arp_util.debug('update_batch: ' || 'p_attribute7 : ' || p_attribute7);
arp_util.debug('update_batch: ' || 'p_attribute8 : ' || p_attribute8);
arp_util.debug('update_batch: ' || 'p_attribute9 : ' || p_attribute9);
arp_util.debug('update_batch: ' || 'p_attribute10 : ' || p_attribute10);
arp_util.debug('update_batch: ' || 'p_attribute11 : ' || p_attribute11);
arp_util.debug('update_batch: ' || 'p_attribute12 : ' || p_attribute12);
arp_util.debug('update_batch: ' || 'p_attribute13 : ' || p_attribute13);
arp_util.debug('update_batch: ' || 'p_attribute14 : ' || p_attribute14);
arp_util.debug('update_batch: ' || 'p_attribute15 : ' || p_attribute15);
arp_util.debug('update_batch: ' || 'p_issue_date : ' || p_issue_date);
arp_util.debug('update_batch: ' || 'p_maturity_date : ' || p_maturity_date);
arp_util.debug('update_batch: ' || 'p_special_instructions : ' || p_special_instructions);
arp_util.debug('update_batch: ' || 'p_batch_process_status : ' || p_batch_process_status);
arp_util.debug('update_batch: ' || 'p_name : ' || p_name);
arp_util.debug('update_batch: ' || 'p_selection_criteria_id : ' || p_selection_criteria_id);
arp_util.debug('update_batch: ' || 'p_due_date_low : ' || p_due_date_low);
arp_util.debug('update_batch: ' || 'p_due_date_high : ' || p_due_date_high);
arp_util.debug('update_batch: ' || 'p_trx_date_low : ' || p_trx_date_low);
arp_util.debug('update_batch: ' || 'p_trx_date_high : ' || p_trx_date_high);
arp_util.debug('update_batch: ' || 'p_cust_trx_type_id : ' || p_cust_trx_type_id);
arp_util.debug('update_batch: ' || 'p_receipt_method_id : ' || p_receipt_method_id);
arp_util.debug('update_batch: ' || 'p_bank_branch_id : ' || p_bank_branch_id);
arp_util.debug('update_batch: ' || 'p_trx_number_low : ' || p_trx_number_low);
arp_util.debug('update_batch: ' || 'p_trx_number_high : ' || p_trx_number_high);
arp_util.debug('update_batch: ' || 'p_customer_class_code : ' || p_customer_class_code);
arp_util.debug('update_batch: ' || 'p_customer_category_code: ' || p_customer_category_code);
arp_util.debug('update_batch: ' || 'p_customer_id : ' || p_customer_id);
arp_util.debug('update_batch: ' || 'p_site_use_id : ' || p_site_use_id);
END Update_Batch;
| delete_batch |
| |
| DESCRIPTION |
| |
| Call the table handlers of RA_BATCHES and AR_SELECTION_CRITERIA |
| to delete BR Batch information |
| |
| SCOPE - PRIVATE |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_form_name |
| p_form_version |
| p_batch_id |
| OUT: |
| None |
| IN OUT: |
| None |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
+===========================================================================*/
PROCEDURE delete_batch (
p_form_name IN varchar2 ,
p_form_version IN number ,
p_batch_id IN ra_batches.batch_id%TYPE ,
p_selection_criteria_id IN ar_selection_criteria.selection_criteria_id%TYPE)
IS
BEGIN
arp_util.debug('ARP_PROCESS_BR_BATCHES.delete_batch()+');
ARP_PROCESS_BR_BATCHES.validate_delete_batch (p_batch_id);
| Delete the selection Criteria if they exist |
+---------------------------------------------------------------*/
IF (p_selection_criteria_id IS NOT NULL)
THEN
arp_selection_criteria_pkg.delete_p (p_selection_criteria_id);
| Call Table Handler to delete the batch |
+---------------------------------------------------------------*/
arp_tbat_pkg.delete_p (p_batch_id);
arp_util.debug('ARP_PROCESS_BR_BATCHES.delete_batch()-');
arp_util.debug('EXCEPTION : ARP_PROCESS_BR_BATCHES.delete_batch');
arp_util.debug('p_selection_criteria_id : '|| p_selection_criteria_id);
| Call the table handlers of RA_BATCHES and AR_SELECTION_CRITERIA |
| to lock BR Batch information |
| |
| SCOPE - |
| |
| EXETERNAL PROCEDURES/FUNCTIONS ACCESSED |
| arp_util.debug |
| |
| ARGUMENTS : IN: |
| p_form_name |
| p_form_version |
| p_batch_id |
| p_name |
| p_batch_source_id |
| p_batch_date |
| p_gl_date |
| p_type |
| p_currency_code |
| p_comments |
| p_attribute_category |
| p_attribute1 - 15 |
| p_issue_date |
| p_maturity_date |
| p_special_instructions |
| p_batch_process_status |
| p_selection_criteria_id |
| p_due_date_low |
| p_due_date_high |
| p_trx_date_low |
| p_trx_date_high |
| p_cust_trx_type_id |
| p_receipt_method_id |
| p_bank_branch_id |
| p_trx_number_low |
| p_trx_number_high |
| p_customer_class_code |
| p_customer_category_code |
| p_customer_id |
| p_site_use_id |
| OUT: |
| None |
| IN OUT: |
| None |
| |
| RETURNS : NONE |
| |
| NOTES |
| |
| MODIFICATION HISTORY |
| 17-APR-2000 Tien Tran Created |
| |
| |
+===========================================================================*/
PROCEDURE lock_compare_batch (
p_form_name IN varchar2 ,
p_form_version IN number ,
p_batch_id IN ra_batches.batch_id%TYPE ,
p_name IN ra_batches.name%TYPE ,
p_batch_source_id IN ra_batches.batch_source_id%TYPE ,
p_batch_date IN ra_batches.batch_date%TYPE ,
p_gl_date IN ra_batches.gl_date%TYPE ,
p_TYPE IN ra_batches.TYPE%TYPE ,
p_currency_code IN ra_batches.currency_code%TYPE ,
p_comments IN ra_batches.comments%TYPE ,
p_attribute_category IN ra_batches.attribute_category%TYPE,
p_attribute1 IN ra_batches.attribute1%TYPE ,
p_attribute2 IN ra_batches.attribute2%TYPE ,
p_attribute3 IN ra_batches.attribute3%TYPE ,
p_attribute4 IN ra_batches.attribute4%TYPE ,
p_attribute5 IN ra_batches.attribute5%TYPE ,
p_attribute6 IN ra_batches.attribute6%TYPE ,
p_attribute7 IN ra_batches.attribute7%TYPE ,
p_attribute8 IN ra_batches.attribute8%TYPE ,
p_attribute9 IN ra_batches.attribute9%TYPE ,
p_attribute10 IN ra_batches.attribute10%TYPE ,
p_attribute11 IN ra_batches.attribute11%TYPE ,
p_attribute12 IN ra_batches.attribute12%TYPE ,
p_attribute13 IN ra_batches.attribute13%TYPE ,
p_attribute14 IN ra_batches.attribute14%TYPE ,
p_attribute15 IN ra_batches.attribute15%TYPE ,
p_issue_date IN ra_batches.issue_date%TYPE ,
p_maturity_date IN ra_batches.maturity_date%TYPE ,
p_special_instructions IN ra_batches.special_instructions%TYPE ,
p_batch_process_status IN ra_batches.batch_process_status%TYPE ,
p_selection_criteria_id IN ar_selection_criteria.selection_criteria_id%TYPE,
p_due_date_low IN ar_selection_criteria.due_date_low%TYPE ,
p_due_date_high IN ar_selection_criteria.due_date_high%TYPE ,
p_trx_date_low IN ar_selection_criteria.trx_date_low%TYPE ,
p_trx_date_high IN ar_selection_criteria.trx_date_high%TYPE ,
p_cust_trx_TYPE_id IN ar_selection_criteria.cust_trx_TYPE_id%TYPE ,
p_receipt_method_id IN ar_selection_criteria.receipt_method_id%TYPE ,
p_bank_branch_id IN ar_selection_criteria.bank_branch_id%TYPE ,
p_trx_number_low IN ar_selection_criteria.trx_number_low%TYPE ,
p_trx_number_high IN ar_selection_criteria.trx_number_high%TYPE ,
p_customer_class_code IN ar_selection_criteria.customer_class_code%TYPE ,
p_customer_category_code IN ar_selection_criteria.customer_category_code%TYPE,
p_customer_id IN ar_selection_criteria.customer_id%TYPE ,
p_site_use_id IN ar_selection_criteria.site_use_id%TYPE )
IS
l_batch_rec ra_batches%rowtype ;
l_sel_rec ar_selection_criteria%rowtype;
| Call Table Handler to lock the Selection Criteria if they exist|
+---------------------------------------------------------------*/
IF (p_selection_criteria_id IS NOT NULL)
THEN
ARP_SELECTION_CRITERIA_PKG.set_to_dummy(l_sel_rec);
l_sel_rec.selection_criteria_id := p_selection_criteria_id;
arp_selection_criteria_pkg.display_selection_rec (l_sel_rec);
ARP_SELECTION_CRITERIA_PKG.lock_compare_p(l_sel_rec,p_selection_criteria_id);
l_batch_rec.selection_criteria_id := p_selection_criteria_id ;
select org_id into l_org_id from ra_batches where batch_id=p_br_id;
SELECT org_id
INTO l_org_id
FROM RA_BATCH_SOURCES
WHERE batch_source_id = p_batch_source_id;