DBA Data[Home] [Help]

APPS.ARP_CR_ICR_PKG SQL Statements

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

Line: 8

   |  Dummy constants for use in update and lock operations |
   +--------------------------------------------------------*/
--
  AR_TEXT_DUMMY   CONSTANT VARCHAR2(10) := '~~!@#$*&^';
Line: 17

   |  Package global variable to hold the parsed update cursor.    |
   |  This allows the cursors to be reused without being reparsed. |
   +---------------------------------------------------------------*/
--
  pg_cursor1  integer := '';
Line: 30

  pg_program_update_date        date;
Line: 31

  pg_last_updated_by            number;
Line: 32

  pg_last_update_date           date;
Line: 33

  pg_last_update_login          number;
Line: 39

 |    insert_p                                                               |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    This function inserts a row into AR_INTERIM_CASH_RECEIPTS              |
 |									     |
 | SCOPE - PUBLIC                                                            |
 |									     |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED - NONE                            |
 |                                                                           |
 | ARGUMENTS  : IN:                     				     |
 |                    p_icr_rec - ICR Record structure                       |
 |              OUT:                                                         |
 |                    p_icr_id - ICR Id   of inserted ICR row                |
 |                    p_row_id - Row Id   of inserted ICR row                |
 |                                                                           |
 | RETURNS    : NONE                    				     |
 |                                                                           |
 | NOTES - This is an overloaded procedure                                   |
 |                                                                           |
 | MODIFICATION HISTORY - Created by Ganesh Vaidee - 04/25/95		     |
 |                                                                           |
 +===========================================================================*/
PROCEDURE insert_p( p_row_id  OUT NOCOPY VARCHAR2,
                    p_cr_id  OUT NOCOPY ar_interim_cash_receipts.cash_receipt_id%TYPE,
                    p_icr_rec 	IN ar_interim_cash_receipts%ROWTYPE ) IS
l_cr_id    ar_interim_cash_receipts.cash_receipt_id%TYPE;
Line: 67

    arp_standard.debug( 'arp_cr_icr_pkg.insert_p()+' );
Line: 69

    arp_cr_icr_pkg.insert_p( p_icr_rec, l_cr_id );
Line: 71

    SELECT ROWID
    INTO   l_row_id
    FROM   ar_interim_cash_receipts
    WHERE  cash_receipt_id = l_cr_id;
Line: 79

    arp_standard.debug( 'arp_cr_icr_pkg.insert_p()-' );
Line: 83

	    arp_standard.debug( 'EXCEPTION: arp_cr_icr_pkg.insert_p' );
Line: 89

 |    insert_p                                                               |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    This function inserts a row into AR_INTERIM_CASH_RECEIPTS              |
 |									     |
 | SCOPE - PUBLIC                                                            |
 |									     |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED - NONE                            |
 |                                                                           |
 | ARGUMENTS  : IN:                     				     |
 |                    p_icr_rec - ICR Record structure                       |
 |              OUT:                                                         |
 |                    p_.at_id - ICR Id   of inserted ICR row                |
 |                                                                           |
 | RETURNS    : NONE                    				     |
 |                                                                           |
 | NOTES - This is an overloaded procedure                                   |
 |                                                                           |
 | MODIFICATION HISTORY - Created by Ganesh Vaidee - 04/25/95		     |
 |                                                                           |
 | 10/28/98     K.Murphy  Cross Currency Lockbox.                            |
 |                        Added amount_applied and trans_to_receipt_rate     |
 |                        as created columns.                                |
 | 05/01/02     D.Jancis  Enh 2074200:  Added application_notes              |
 | 12-24-02   K.Dhaliwal          Bug 2707190 Added                          |
 |                                application_ref_type,customer_reference and|
 |                                customer_reason.                           |
 +===========================================================================*/
PROCEDURE insert_p( p_icr_rec 	IN ar_interim_cash_receipts%ROWTYPE,
       p_icr_id OUT NOCOPY ar_interim_cash_receipts.cash_receipt_id%TYPE ) IS
l_icr_id    ar_interim_cash_receipts.cash_receipt_id%TYPE;
Line: 121

      arp_standard.debug( '>>>>>>>> arp_cr_icr_pkg.insert_p' );
Line: 123

      SELECT ar_cash_receipts_s.nextval
      INTO   l_icr_id
      FROM   dual;
Line: 127

      INSERT INTO  ar_interim_cash_receipts (
		   cash_receipt_id,
 		   amount,
                   amount_applied,
                   trans_to_receipt_rate,
		   factor_discount_amount,
 		   created_by,
 		   creation_date,
 		   currency_code,
 		   last_updated_by,
 		   last_update_date,
 		   receipt_method_id,
 		   remit_bank_acct_use_id,
 		   batch_id,
 		   comments,
 		   customer_trx_id,
 		   exchange_date,
 		   exchange_rate,
 		   exchange_rate_type,
 		   gl_date,
 		   gl_posted_date,
		   anticipated_clearing_date,
 		   last_update_login,
 		   payment_schedule_id,
 		   pay_from_customer,
 		   program_application_id,
 		   program_id,
 		   program_update_date,
 		   receipt_date,
 		   receipt_number,
 		   request_id,
 		   site_use_id,
 		   special_type,
 		   status,
 		   type,
 		   ussgl_transaction_code,
                   attribute_category,
                   attribute1,
                   attribute2,
                   attribute3,
                   attribute4,
                   attribute5,
                   attribute6,
                   attribute7,
                   attribute8,
                   attribute9,
                   attribute10,
                   attribute11,
                   attribute12,
                   attribute13,
                   attribute14,
                   attribute15,
 		   ussgl_transaction_code_context,
 		   customer_bank_account_id,
		   customer_bank_branch_id,
 		   doc_sequence_id,
 		   doc_sequence_value,
                   application_notes,
                   application_ref_type,
                   customer_reference,
                   customer_reason,
                   org_id,
		   automatch_set_id,
		   autoapply_flag
 		 )
       VALUES (
                   l_icr_id,
                   p_icr_rec.amount,
                   p_icr_rec.amount_applied,
                   p_icr_rec.trans_to_receipt_rate,
		   p_icr_rec.factor_discount_amount,
                   arp_global.created_by,
                   arp_global.creation_date,
                   p_icr_rec.currency_code,
                   arp_global.last_updated_by,
                   arp_global.last_update_date,
                   p_icr_rec.receipt_method_id,
                   p_icr_rec.remit_bank_acct_use_id,
                   p_icr_rec.batch_id,
                   p_icr_rec.comments,
                   p_icr_rec.customer_trx_id,
                   p_icr_rec.exchange_date,
                   p_icr_rec.exchange_rate,
                   p_icr_rec.exchange_rate_type,
                   p_icr_rec.gl_date,
                   p_icr_rec.gl_posted_date,
		   p_icr_rec.anticipated_clearing_date,
                   arp_global.last_update_login,
                   p_icr_rec.payment_schedule_id,
                   p_icr_rec.pay_from_customer,
                   arp_global.program_application_id,
                   arp_global.program_id,
                   arp_global.program_update_date,
                   p_icr_rec.receipt_date,
                   p_icr_rec.receipt_number,
                   p_icr_rec.request_id,
                   p_icr_rec.site_use_id,
                   p_icr_rec.special_type,
                   p_icr_rec.status,
                   p_icr_rec.type,
                   p_icr_rec.ussgl_transaction_code,
                   p_icr_rec.attribute_category,
                   p_icr_rec.attribute1,
                   p_icr_rec.attribute2,
                   p_icr_rec.attribute3,
                   p_icr_rec.attribute4,
                   p_icr_rec.attribute5,
                   p_icr_rec.attribute6,
                   p_icr_rec.attribute7,
                   p_icr_rec.attribute8,
                   p_icr_rec.attribute9,
                   p_icr_rec.attribute10,
                   p_icr_rec.attribute11,
                   p_icr_rec.attribute12,
                   p_icr_rec.attribute13,
                   p_icr_rec.attribute14,
                   p_icr_rec.attribute15,
                   p_icr_rec.ussgl_transaction_code_context,
                   p_icr_rec.customer_bank_account_id,
		   p_icr_rec.customer_bank_branch_id,
                   p_icr_rec.doc_sequence_id,
                   p_icr_rec.doc_sequence_value,
                   p_icr_rec.application_notes,
                   p_icr_rec.application_ref_type,
                   p_icr_rec.customer_reference,
                   p_icr_rec.customer_reason,
                   arp_standard.sysparm.org_id,
		   p_icr_rec.automatch_set_id,
		   p_icr_rec.autoapply_flag
                 );
Line: 259

    arp_standard.debug( '<<<<<<<< arp_cr_icr_pkg.insert_p' );
Line: 262

	    arp_standard.debug( 'EXCEPTION: arp_cr_icr_pkg.insert_p' );
Line: 268

 |    const_icr_update_stmt                                                  |
 |                                                                           |
 | DESCRIPTION                                                               |
 |                                                                           |
 | SCOPE - PUBLIC                                                            |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED - NONE                            |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |              OUT:                                                         |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 |                                                                           |
 | MODIFICATION HISTORY - Created by Ganesh Vaidee - 04/25/95                |
 | 10/28/98     K.Murphy  Cross Currency Lockbox.                            |
 |                        Added amount_applied and trans_to_receipt_rate     |
 |                        as updated columns.                                |
 | 05/01/02     D.Jancis  Enh 2074220: added application_notes               |
 |                                                                           |
 | 12-24-02   K.Dhaliwal          Bug 2707190 Added                          |
 |                                application_ref_type,customer_reference and|
 |                                customer_reason.                           |
 +===========================================================================*/
--
PROCEDURE construct_icr_update_stmt( update_text OUT NOCOPY varchar2) IS
--
BEGIN
   arp_standard.debug('arp_cr_icr_pkg.construct_icr_update_stmt()+');
Line: 298

   update_text :=
 'update ar_interim_cash_receipts
   SET    amount =
               decode(:amount,
                      :ar_number_dummy, amount,
                                        :amount),
          amount_applied =
               decode(:amount_applied,
                      :ar_number_dummy, amount_applied,
                                        :amount_applied),
          trans_to_receipt_rate =
               decode(:trans_to_receipt_rate,
                      :ar_number_dummy, trans_to_receipt_rate,
                                        :trans_to_receipt_rate),
          factor_discount_amount =
               decode(:factor_discount_amount,
                      :ar_number_dummy, factor_discount_amount,
                                        :factor_discount_amount),
          anticipated_clearing_date =
               decode(:anticipated_clearing_date,
                      :ar_date_dummy, anticipated_clearing_date,
                                        :anticipated_clearing_date),
          customer_bank_branch_id =
               decode(:customer_bank_branch_id,
                      :ar_number_dummy, customer_bank_branch_id,
                                        :customer_bank_branch_id),
           currency_code =
               decode(:currency_code,
                      :ar_text_dummy,  currency_code,
                                        :currency_code),
          last_updated_by    = :pg_last_updated_by,
          last_update_date   = :pg_last_update_date,
          receipt_method_id =
               decode(:receipt_method_id,
                      :ar_number_dummy, receipt_method_id,
                                        :receipt_method_id),
          remit_bank_acct_use_id =
               decode(:remit_bank_acct_use_id,
                      :ar_number_dummy, remit_bank_acct_use_id,
                                        :remit_bank_acct_use_id),
          batch_id =
               decode(:batch_id,
                      :ar_number_dummy, batch_id,
                                        :batch_id),
          comments =
               decode(:comments,
                      :ar_text_dummy, comments,
                                        :comments),
           customer_trx_id =
               decode(:customer_trx_id,
                      :ar_number_dummy,  customer_trx_id,
                                        :customer_trx_id),
          exchange_date =
               decode(:exchange_date,
                      :ar_date_dummy, exchange_date,
                                        :exchange_date),
          exchange_rate =
               decode(:exchange_rate,
                      :ar_number_dummy, exchange_rate,
                                        :exchange_rate),
          exchange_rate_type =
               decode(:exchange_rate_type,
                      :ar_text_dummy, exchange_rate_type,
                                        :exchange_rate_type),
          gl_date =
               decode(:gl_date,
                      :ar_date_dummy, gl_date,
                                        :gl_date),
          gl_posted_date =
               decode(:gl_posted_date,
                      :ar_date_dummy, gl_posted_date,
                                        :gl_posted_date),
          last_update_login  = :pg_last_update_login,

          payment_schedule_id =
               decode(:payment_schedule_id,
                      :ar_number_dummy, payment_schedule_id,
                                        :payment_schedule_id),
          pay_from_customer =
               decode(:pay_from_customer,
                      :ar_number_dummy,  pay_from_customer,
                                        :pay_from_customer),
          program_application_id =
                     NVL( :pg_program_application_id,
                           program_application_id),
          program_id =
                     NVL( :pg_program_id,
                           program_id),
          program_update_date =
                     NVL( :pg_program_update_date,
                           program_update_date),
          receipt_date =
               decode(:receipt_date,
                      :ar_date_dummy, receipt_date,
                                        :receipt_date),
          receipt_number =
               decode(:receipt_number,
                      :ar_text_dummy, receipt_number,
                                        :receipt_number),
          request_id =
                     NVL( :pg_request_id,
                           request_id),
          site_use_id =
               decode(:site_use_id,
                      :ar_number_dummy, site_use_id,
                                        :site_use_id),
          special_type =
               decode(:special_type,
                      :ar_text_dummy, special_type,
					:special_type ),
          status =
               decode(:status,
                      :ar_text_dummy, status,
                                        :status),
          type =
               decode(:type,
                      :ar_text_dummy, type,
                                        :type),
          ussgl_transaction_code =
               decode(:ussgl_transaction_code,
                      :ar_text_dummy, ussgl_transaction_code,
                                        :ussgl_transaction_code),
         attribute_category =
               decode(:attribute_category,
                      :ar_text_dummy, attribute_category,
                                        :attribute_category),
          attribute1 =
               decode(:attribute1,
                      :ar_text_dummy,   attribute1,
                                        :attribute1),
          attribute2 =
               decode(:attribute2,
                      :ar_text_dummy,   attribute2,
                                        :attribute2),
          attribute3 =
               decode(:attribute3,
                      :ar_text_dummy,   attribute3,
                                        :attribute3),
          attribute4 =
               decode(:attribute4,
                      :ar_text_dummy,   attribute4,
                                        :attribute4),
          attribute5 =
               decode(:attribute5,
                      :ar_text_dummy,   attribute5,
                                        :attribute5),
          attribute6 =
               decode(:attribute6,
                      :ar_text_dummy,   attribute6,
                                        :attribute6),
          attribute7 =
               decode(:attribute7,
                      :ar_text_dummy,   attribute7,
                                        :attribute7),
          attribute8 =
               decode(:attribute8,
                      :ar_text_dummy,   attribute8,
                                        :attribute8),
          attribute9 =
               decode(:attribute9,
                      :ar_text_dummy,   attribute9,
                                        :attribute9),
          attribute10 =
               decode(:attribute10,
                      :ar_text_dummy,   attribute10,
                                        :attribute10),
          attribute11 =
               decode(:attribute11,
                      :ar_text_dummy,   attribute11,
                                        :attribute11),
          attribute12 =
               decode(:attribute12,
                      :ar_text_dummy,   attribute12,
                                        :attribute12),
          attribute13 =
               decode(:attribute13,
                      :ar_text_dummy,   attribute13,
                                        :attribute13),
          attribute14 =
               decode(:attribute14,
                      :ar_text_dummy,   attribute14,
                                        :attribute14),
          attribute15 =
               decode(:attribute15,
                      :ar_text_dummy,   attribute15,
                                        :attribute15),
          ussgl_transaction_code_context =
               decode(:ussgl_transaction_code_context,
                      :ar_text_dummy, ussgl_transaction_code_context,
                                        :ussgl_transaction_code_context),
          customer_bank_account_id =
               decode(:customer_bank_account_id,
                      :ar_number_dummy, customer_bank_account_id,
                                        :customer_bank_account_id),
          doc_sequence_id =
               decode(:doc_sequence_id,
                      :ar_number_dummy, doc_sequence_id,
                                        :doc_sequence_id),
          doc_sequence_value =
               decode(:doc_sequence_value,
                      :ar_number_dummy, doc_sequence_value,
                                        :doc_sequence_value),
          application_notes =
               decode(:application_notes,
                      :ar_text_dummy, application_notes,
                                       :application_notes) ,

           application_ref_type =
               decode(:application_ref_type,
                      :ar_text_dummy, application_ref_type,
                                       :application_ref_type),
           customer_reference =
               decode(:customer_reference,
                      :ar_text_dummy, customer_reference,
                                       :customer_reference),
           customer_reason =
               decode(:customer_reason,
                      :ar_text_dummy, customer_reason,
                                       :customer_reason),
           automatch_set_id =
               decode(:automatch_set_id,
                      :ar_number_dummy, automatch_set_id,
                                       :automatch_set_id),
           autoapply_flag =
               decode(:autoapply_flag,
                      :ar_flag_dummy, autoapply_flag,
                                       :autoapply_flag)
                                       ';
Line: 527

   arp_standard.debug('arp_cr_icr_pkg.construct_icr_update_stmt()-');
Line: 531

        arp_standard.debug('EXCEPTION: arp_cr_icr_pkg .construct_icr_update_stmt()');
Line: 555

 |                        as updated columns.                                |
 | 05/01/02     D.Jancis  ENH 2074220: added application_notes               |
 |                                                                           |
 | 12-24-02   K.Dhaliwal          Bug 2707190 Added                          |
 |                                application_ref_type,customer_reference and|
 |                                customer_reason.                           |
 +===========================================================================*/
--
PROCEDURE bind_icr_variables(p_update_cursor  IN integer,
                              p_icr_rec   IN ar_interim_cash_receipts%rowtype)
IS
--
BEGIN
--
   arp_standard.debug('arp_cr_icr_pkg.bind_icr_variables()+');
Line: 576

   dbms_sql.bind_variable(p_update_cursor, ':ar_text_dummy',
                          AR_TEXT_DUMMY);
Line: 579

   dbms_sql.bind_variable(p_update_cursor, ':ar_flag_dummy',
                          AR_FLAG_DUMMY);
Line: 582

   dbms_sql.bind_variable(p_update_cursor, ':ar_number_dummy',
                          AR_NUMBER_DUMMY);
Line: 585

   dbms_sql.bind_variable(p_update_cursor, ':ar_date_dummy',
                          AR_DATE_DUMMY);
Line: 593

   dbms_sql.bind_variable(p_update_cursor, ':pg_request_id',
                          pg_request_id);
Line: 596

   dbms_sql.bind_variable(p_update_cursor, ':pg_program_application_id',
                          pg_program_application_id);
Line: 599

   dbms_sql.bind_variable(p_update_cursor, ':pg_program_id',
                          pg_program_id);
Line: 602

   dbms_sql.bind_variable(p_update_cursor, ':pg_program_update_date',
                          pg_program_update_date);
Line: 605

   dbms_sql.bind_variable(p_update_cursor, ':pg_last_updated_by',
                          pg_last_updated_by);
Line: 608

   dbms_sql.bind_variable(p_update_cursor, ':pg_last_update_date',
                          pg_last_update_date);
Line: 611

   dbms_sql.bind_variable(p_update_cursor, ':pg_last_update_login',
                          pg_last_update_login);
Line: 619

   dbms_sql.bind_variable(p_update_cursor, ':amount',
                          p_icr_rec.amount);
Line: 622

   dbms_sql.bind_variable(p_update_cursor, ':amount_applied',
                          p_icr_rec.amount_applied);
Line: 625

   dbms_sql.bind_variable(p_update_cursor, ':trans_to_receipt_rate',
                          p_icr_rec.trans_to_receipt_rate);
Line: 628

   dbms_sql.bind_variable(p_update_cursor, ':factor_discount_amount',
                          p_icr_rec.factor_discount_amount);
Line: 631

   dbms_sql.bind_variable(p_update_cursor, ':anticipated_clearing_date',
                          p_icr_rec.anticipated_clearing_date);
Line: 634

   dbms_sql.bind_variable(p_update_cursor, ':customer_bank_branch_id',
                          p_icr_rec.customer_bank_branch_id);
Line: 637

   dbms_sql.bind_variable(p_update_cursor, ':currency_code',
                          p_icr_rec.currency_code);
Line: 640

   dbms_sql.bind_variable(p_update_cursor, ':receipt_method_id',
                          p_icr_rec.receipt_method_id);
Line: 643

   dbms_sql.bind_variable(p_update_cursor, ':remit_bank_acct_use_id',
                          p_icr_rec.remit_bank_acct_use_id);
Line: 646

   dbms_sql.bind_variable(p_update_cursor, ':batch_id',
                          p_icr_rec.batch_id);
Line: 649

   dbms_sql.bind_variable(p_update_cursor, ':comments',
                          p_icr_rec.comments);
Line: 652

   dbms_sql.bind_variable(p_update_cursor, ':customer_trx_id',
                          p_icr_rec.customer_trx_id);
Line: 655

   dbms_sql.bind_variable(p_update_cursor, ':exchange_date',
                          p_icr_rec.exchange_date);
Line: 658

   dbms_sql.bind_variable(p_update_cursor, ':exchange_rate',
                          p_icr_rec.exchange_rate);
Line: 661

   dbms_sql.bind_variable(p_update_cursor, ':exchange_rate_type',
                          p_icr_rec.exchange_rate_type);
Line: 664

   dbms_sql.bind_variable(p_update_cursor, ':gl_date',
                          p_icr_rec.gl_date);
Line: 667

   dbms_sql.bind_variable(p_update_cursor, ':gl_posted_date',
                          p_icr_rec.gl_posted_date);
Line: 670

   dbms_sql.bind_variable(p_update_cursor, ':payment_schedule_id',
                          p_icr_rec.payment_schedule_id);
Line: 673

   dbms_sql.bind_variable(p_update_cursor, ':pay_from_customer',
                          p_icr_rec.pay_from_customer);
Line: 676

   dbms_sql.bind_variable(p_update_cursor, ':receipt_date',
                          p_icr_rec.receipt_date);
Line: 679

   dbms_sql.bind_variable(p_update_cursor, ':receipt_number',
                          p_icr_rec.receipt_number);
Line: 682

   dbms_sql.bind_variable(p_update_cursor, ':site_use_id',
                          p_icr_rec.site_use_id);
Line: 685

   dbms_sql.bind_variable(p_update_cursor, ':special_type',
                          p_icr_rec.special_type);
Line: 688

   dbms_sql.bind_variable(p_update_cursor, ':status',
                          p_icr_rec.status);
Line: 691

   dbms_sql.bind_variable(p_update_cursor, ':type',
                          p_icr_rec.type);
Line: 694

   dbms_sql.bind_variable(p_update_cursor, ':ussgl_transaction_code',
                          p_icr_rec.ussgl_transaction_code);
Line: 697

   dbms_sql.bind_variable(p_update_cursor, ':attribute_category',
                          p_icr_rec.attribute_category);
Line: 700

   dbms_sql.bind_variable(p_update_cursor, ':attribute1',
                          p_icr_rec.attribute1);
Line: 703

   dbms_sql.bind_variable(p_update_cursor, ':attribute2',
                          p_icr_rec.attribute2);
Line: 706

   dbms_sql.bind_variable(p_update_cursor, ':attribute3',
                          p_icr_rec.attribute3);
Line: 709

   dbms_sql.bind_variable(p_update_cursor, ':attribute4',
                          p_icr_rec.attribute4);
Line: 712

   dbms_sql.bind_variable(p_update_cursor, ':attribute5',
                          p_icr_rec.attribute5);
Line: 715

   dbms_sql.bind_variable(p_update_cursor, ':attribute6',
                          p_icr_rec.attribute6);
Line: 718

   dbms_sql.bind_variable(p_update_cursor, ':attribute7',
                          p_icr_rec.attribute7);
Line: 721

   dbms_sql.bind_variable(p_update_cursor, ':attribute8',
                          p_icr_rec.attribute8);
Line: 724

   dbms_sql.bind_variable(p_update_cursor, ':attribute9',
                          p_icr_rec.attribute9);
Line: 727

   dbms_sql.bind_variable(p_update_cursor, ':attribute10',
                          p_icr_rec.attribute10);
Line: 730

   dbms_sql.bind_variable(p_update_cursor, ':attribute11',
                          p_icr_rec.attribute11);
Line: 733

   dbms_sql.bind_variable(p_update_cursor, ':attribute12',
                          p_icr_rec.attribute12);
Line: 736

   dbms_sql.bind_variable(p_update_cursor, ':attribute13',
                          p_icr_rec.attribute13);
Line: 739

   dbms_sql.bind_variable(p_update_cursor, ':attribute14',
                          p_icr_rec.attribute14);
Line: 742

   dbms_sql.bind_variable(p_update_cursor, ':attribute15',
                          p_icr_rec.attribute15);
Line: 745

   dbms_sql.bind_variable(p_update_cursor, ':ussgl_transaction_code_context',
                          p_icr_rec.ussgl_transaction_code_context);
Line: 748

   dbms_sql.bind_variable(p_update_cursor, ':customer_bank_account_id',
                          p_icr_rec.customer_bank_account_id);
Line: 751

   dbms_sql.bind_variable(p_update_cursor, ':doc_sequence_id',
                          p_icr_rec.doc_sequence_id);
Line: 754

   dbms_sql.bind_variable(p_update_cursor, ':doc_sequence_value',
                          p_icr_rec.doc_sequence_value);
Line: 758

   dbms_sql.bind_variable(p_update_cursor, ':application_notes',
                          p_icr_rec.application_notes);
Line: 762

   dbms_sql.bind_variable(p_update_cursor, ':application_ref_type',
                          p_icr_rec.application_ref_type);
Line: 765

   dbms_sql.bind_variable(p_update_cursor, ':customer_reference',
                          p_icr_rec.customer_reference);
Line: 768

   dbms_sql.bind_variable(p_update_cursor, ':customer_reason',
                          p_icr_rec.customer_reason);
Line: 773

   dbms_sql.bind_variable(p_update_cursor, ':automatch_set_id',
                          p_icr_rec.automatch_set_id);
Line: 778

   dbms_sql.bind_variable(p_update_cursor, ':autoapply_flag',
                          p_icr_rec.autoapply_flag);
Line: 796

PROCEDURE generic_update(p_update_cursor IN OUT NOCOPY integer,
                         p_where_clause      IN varchar2,
                         p_where1            IN number,
                         p_icr_rec IN ar_interim_cash_receipts%ROWTYPE)
IS
--
   l_count             number;
Line: 803

   l_update_statement  varchar2(20000);
Line: 806

   arp_standard.debug('arp_cr_icr_pkg.generic_update()+');
Line: 809

   |  If this update statement has not already been parsed,       |
   |  construct the statement and parse it.                       |
   |  Otherwise, use the already parsed statement and rebind its  |
   |  variables.                                                  |
   +--------------------------------------------------------------*/
--
   if (p_update_cursor is null)
   then
--
         p_update_cursor := dbms_sql.open_cursor;
Line: 821

          |  Construct the update statement |
          +---------------------------------*/
--
         arp_cr_icr_pkg.construct_icr_update_stmt(l_update_statement);
Line: 826

         l_update_statement := l_update_statement || p_where_clause;
Line: 828

   arp_standard.debug('after l_update_statement');
Line: 833

         dbms_sql.parse(p_update_cursor,
                        l_update_statement,
                        dbms_sql.v7);
Line: 841

   arp_cr_icr_pkg.bind_icr_variables(p_update_cursor, p_icr_rec);
Line: 851

        dbms_sql.bind_variable(p_update_cursor, ':where_1',
                          p_where1);
Line: 856

   l_count := dbms_sql.execute(p_update_cursor);
Line: 858

   arp_standard.debug( to_char(l_count) || ' rows updated');
Line: 862

    |  Raise the NO_DATA_FOUND exception if no rows were updated |
    +------------------------------------------------------------*/
--
   if (l_count = 0)
   then raise NO_DATA_FOUND;
Line: 871

   arp_standard.debug('arp_cr_icr_pkg.generic_update()-');
Line: 875

        arp_standard.debug('EXCEPTION:  arp_cr_icr_pkg.generic_update()
');
Line: 877

        arp_standard.debug(l_update_statement);
Line: 959

PROCEDURE update_p( p_icr_rec IN ar_interim_cash_receipts%ROWTYPE,
                    p_cash_receipt_id IN
                           ar_interim_cash_receipts.cash_receipt_id%TYPE) IS
--
BEGIN
--
   arp_standard.debug('arp_cr_icr_pkg.update_p()+  ');
Line: 968

   arp_cr_icr_pkg.generic_update( pg_cursor1,
                              ' WHERE cash_receipt_id = :where_1',
                               p_cash_receipt_id,
                               p_icr_rec);
Line: 973

   arp_standard.debug('arp_cr_icr_pkg.update_p()-  ' ||
                      to_char(sysdate, 'HH:MI:SS'));
Line: 979

        arp_standard.debug('EXCEPTION:  arp_cr_icr_pkg.update_p()');
Line: 985

 |    delete_p                                                               |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    This function deletes a row into AR_INTERIM_CASH_RECEIPTS              |
 |                                                                           |
 | SCOPE - PUBLIC                                                            |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED - NONE                            |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |                  p_icr_id - ICR Id   to delete a row from ICR table       |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY - Created by Ganesh Vaidee - 04/25/95                |
 |                                                                           |
 +===========================================================================*/
PROCEDURE delete_p(
	p_icr_id IN ar_interim_cash_receipts.cash_receipt_id%TYPE ) IS
BEGIN
    arp_standard.debug( '>>>>>>>> arp_cr_icr_pkg.delete_p' );
Line: 1009

    DELETE FROM ar_interim_cash_receipts
    WHERE cash_receipt_id = p_icr_id;
Line: 1012

    arp_standard.debug( '<<<<<<<< arp_cr_icr_pkg.delete_p' );
Line: 1015

	    arp_standard.debug( 'EXCEPTION: arp_cr_icr_pkg.delete_p' );
Line: 1045

    SELECT cash_receipt_id
    INTO   l_icr_id
    FROM  ar_interim_cash_receipts
    WHERE cash_receipt_id = p_icr_id
    FOR UPDATE OF STATUS;
Line: 1063

    SELECT cash_receipt_id
    INTO   l_icr_id
    FROM  ar_interim_cash_receipts
    WHERE cash_receipt_id = p_icr_id
    FOR UPDATE OF STATUS NOWAIT;
Line: 1104

    SELECT *
    INTO   p_icr_rec
    FROM   ar_interim_cash_receipts
    WHERE  cash_receipt_id = p_icr_id;
Line: 1124

    SELECT *
    INTO   p_icr_rec
    FROM  ar_interim_cash_receipts
    WHERE cash_receipt_id = p_icr_rec.cash_receipt_id
    FOR UPDATE OF STATUS;
Line: 1148

    SELECT *
    INTO   p_icr_rec
    FROM  ar_interim_cash_receipts
    WHERE cash_receipt_id = p_icr_rec.cash_receipt_id
    FOR UPDATE OF STATUS NOWAIT;
Line: 1181

  pg_program_update_date    :=  arp_global.program_update_date;
Line: 1182

  pg_last_updated_by        :=  arp_global.last_updated_by;
Line: 1183

  pg_last_update_date       :=  arp_global.last_update_date;
Line: 1184

  pg_last_update_login      :=  arp_global.last_update_login;