DBA Data[Home] [Help]

APPS.ARP_PROCESS_BATCH SQL Statements

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

Line: 47

   SELECT count(*)
   INTO   l_count
   FROM   ra_batches
   --WHERE  batch_source_id = p_batch_source_id
   WHERE  name = p_name;
Line: 79

 |    Validates that a batch to be deleted contains no transactions.	     |
 |                                                                           |
 | SCOPE - PUBLIC                                                            |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED                                   |
 |    arp_util.debug                                                         |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |		      p_batch_id	 				     |
 |              OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     05-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE ar_empty_batch ( p_batch_id IN number ) IS

   l_count number := 0;
Line: 109

   SELECT count(*)
   INTO   l_count
   FROM   ra_customer_trx
   WHERE  batch_id = p_batch_id;
Line: 138

 |    val_insert_batch			                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    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                                                      |
 |     05-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE val_insert_batch ( p_batch_rec IN ra_batches%rowtype ) IS


BEGIN

   arp_util.debug('arp_process_batch.val_insert_batch()+');
Line: 173

   arp_util.debug('arp_process_batch.val_insert_batch()-');
Line: 177

        arp_util.debug('EXCEPTION:  arp_process_batch.val_insert_batch()');
Line: 180

        arp_util.debug('------ parameters for val_insert_batch() -------');
Line: 190

 |    val_update_batch			                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Does validation that is required when a batch is updated.		     |
 |                                                                           |
 | SCOPE - PRIVATE                                                           |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED                                   |
 |    arp_util.debug                                                         |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |		      p_batch_rec					     |
 |              OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     05-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE val_update_batch ( p_batch_rec IN ra_batches%rowtype ) IS


BEGIN

   arp_util.debug('arp_process_batchval_update_batch()+');
Line: 222

   arp_util.debug('arp_process_batch.val_update_batch()-');
Line: 226

        arp_util.debug('EXCEPTION:  arp_process_batch.val_update_batch()');
Line: 229

        arp_util.debug('------ parameters for val_update_batch() -------');
Line: 239

 |    val_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_rec					     |
 |              OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     05-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE val_delete_batch ( p_batch_rec IN ra_batches%rowtype ) IS


BEGIN

   arp_util.debug('arp_process_batch.val_delete_batch()+');
Line: 274

   arp_util.debug('arp_process_batch.val_delete_batch()-');
Line: 278

        arp_util.debug('EXCEPTION:  arp_process_batch.val_delete_batch()');
Line: 281

        arp_util.debug('------ parameters for val_delete_batch() -------');
Line: 291

 |    insert_batch							     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Inserts a record into ra_batches.					     |
 |                                                                           |
 | SCOPE - PRIVATE                                                           |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED                                   |
 |    arp_util.debug                                                         |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |		      p_form_name					     |
 |		      p_form_version					     |
 |		      p_batch_rec					     |
 |              OUT:                                                         |
 |                    P_batch_id					     |
 |          IN/ OUT:							     |
 |                    p_name						     |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     13-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE insert_batch(
               p_form_name              IN varchar2,
               p_form_version           IN number,
               p_batch_rec		ra_batches%rowtype,
               p_batch_id              OUT NOCOPY ra_batches.batch_id%type,
               p_name               IN OUT NOCOPY ra_batches.name%type)
                   IS

BEGIN

      arp_util.debug('arp_process_batch.insert_batch()+');
Line: 343

      arp_process_batch.val_insert_batch(p_batch_rec);
Line: 346

       |  Call the table handler to insert the batch |
       +---------------------------------------------*/

      arp_tbat_pkg.insert_p( p_batch_rec,
                             p_batch_id,
                             p_name);
Line: 353

      arp_util.debug('arp_process_batch.insert_batch()-');
Line: 362

        arp_util.debug('EXCEPTION:  arp_process_batch.insert_batch()');
Line: 365

        arp_util.debug('---------- parameters for insert_batch() ---------');
Line: 380

 |    update_batch			                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Updates a ra_batches record					     |
 |                                                                           |
 | SCOPE - PRIVATE                                                           |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED                                   |
 |    arp_util.debug                                                         |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |		      p_form_name					     |
 |		      p_form_version					     |
 |                    p_batch_rec					     |
 |              OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     13-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE update_batch(
                p_form_name	      IN varchar2,
                p_form_version        IN number,
                p_batch_id            IN ra_batches.batch_id%type,
                p_batch_rec	      IN ra_batches%rowtype ) IS



BEGIN

      arp_util.debug('arp_process_batch.update_batch()+');
Line: 432

      arp_process_batch.val_update_batch(p_batch_rec);
Line: 436

        |  call the table-handler to update the batch record  |
        +-----------------------------------------------------*/

      arp_tbat_pkg.update_p( p_batch_rec,
                             p_batch_id);
Line: 442

      arp_util.debug('arp_process_batch.update_batch()-');
Line: 451

        arp_util.debug('EXCEPTION:  arp_process_batch.update_batch()');
Line: 454

        arp_util.debug('---------- parameters for update_batch() ---------');
Line: 469

 |    delete_batch			                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Deletes records from ra_batches					     |
 |                                                                           |
 | SCOPE - PRIVATE                                                           |
 |                                                                           |
 | EXETERNAL PROCEDURES/FUNCTIONS ACCESSED                                   |
 |    arp_util.debug                                                         |
 |                                                                           |
 | ARGUMENTS  : IN:                                                          |
 |		      p_form_name					     |
 |		      p_form_version					     |
 |		      p_batch_id					     |
 |              OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     13-JUL-95  Charlie Tomberg     Created                                |
 |                                                                           |
 +===========================================================================*/


PROCEDURE delete_batch(p_form_name		IN varchar2,
                       p_form_version		IN number,
                       p_batch_id		IN ra_batches.batch_id%type,
                       p_batch_rec		IN ra_batches%rowtype) IS

BEGIN

   arp_util.debug('arp_process_batch.delete_batch()+');
Line: 516

      arp_process_batch.val_delete_batch(p_batch_rec);
Line: 519

       |  call the table-handler to delete the batch record  |
       +-----------------------------------------------------*/

      arp_tbat_pkg.delete_p( p_batch_id );
Line: 524

      arp_util.debug('arp_process_batch.delete_batch()-');
Line: 533

        arp_util.debug('EXCEPTION:  arp_process_batch.delete_batch()');
Line: 536

        arp_util.debug('---------- parameters for delete_batch() ---------');
Line: 551

 |    insert_batch_cover                                                     |
 |                                                                           |
 | 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_status                                               |
 |                    p_type                                                 |
 |                    p_currency_code                                        |
 |                    p_exchange_rate_type                                   |
 |                    p_exchange_date                                        |
 |                    p_exchange_rate                                        |
 |                    p_control_count                                        |
 |                    p_control_amount                                       |
 |                    p_comments                                             |
 |                    p_set_of_books_id                                      |
 |                    p_purged_children_flag                                 |
 |                    p_attribute_category                                   |
 |                    p_attribute1 - 15                                      |
 |              OUT:                                                         |
 |                    p_batch_id                                             |
 |          IN  OUT:                                                         |
 |                    p_name                                                 |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     10-NOV-95  Subash C            Created                                |
 |                                                                           |
 +===========================================================================*/

PROCEDURE insert_batch_cover(
  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_status                 IN ra_batches.status%type,
  p_type                   IN ra_batches.type%type,
  p_currency_code          IN ra_batches.currency_code%type,
  p_exchange_rate_type     IN ra_batches.exchange_rate_type%type,
  p_exchange_date          IN ra_batches.exchange_date%type,
  p_exchange_rate          IN ra_batches.exchange_rate%type,
  p_control_count          IN ra_batches.control_count%type,
  p_control_amount         IN ra_batches.control_amount%type,
  p_comments               IN ra_batches.comments%type,
  p_set_of_books_id        IN ra_batches.set_of_books_id%type,
  p_purged_children_flag   IN ra_batches.purged_children_flag%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_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;
Line: 634

    arp_util.debug('arp_process_batch.insert_batch_cover()+');
Line: 668

    arp_process_batch.insert_batch(p_form_name,
                                   p_form_version,
                                   l_batch_rec,
                                   l_batch_id,
                                   l_name);
Line: 677

    arp_util.debug('arp_process_batch.insert_batch_cover()-');
Line: 681

    arp_util.debug('EXCEPTION : arp_process_batch.insert_batch_cover');
Line: 718

 |    update_batch_cover                                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Cover for calling the batch entity handler update_batch                |
 |                                                                           |
 | 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_status                                               |
 |                    p_type                                                 |
 |                    p_currency_code                                        |
 |                    p_exchange_rate_type                                   |
 |                    p_exchange_date                                        |
 |                    p_exchange_rate                                        |
 |                    p_control_count                                        |
 |                    p_control_amount                                       |
 |                    p_comments                                             |
 |                    p_set_of_books_id                                      |
 |                    p_purged_children_flag                                 |
 |                    p_attribute_category                                   |
 |                    p_attribute1 - 15                                      |
 |              OUT:                                                         |
 |                    None                                                   |
 |          IN  OUT:                                                         |
 |                    None                                                   |
 |                                                                           |
 | RETURNS    : NONE                                                         |
 |                                                                           |
 | NOTES                                                                     |
 |                                                                           |
 | MODIFICATION HISTORY                                                      |
 |     10-NOV-95  Subash C            Created                                |
 |                                                                           |
 +===========================================================================*/

PROCEDURE update_batch_cover(
  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_status                 IN ra_batches.status%type,
  p_type                   IN ra_batches.type%type,
  p_currency_code          IN ra_batches.currency_code%type,
  p_exchange_rate_type     IN ra_batches.exchange_rate_type%type,
  p_exchange_date          IN ra_batches.exchange_date%type,
  p_exchange_rate          IN ra_batches.exchange_rate%type,
  p_control_count          IN ra_batches.control_count%type,
  p_control_amount         IN ra_batches.control_amount%type,
  p_comments               IN ra_batches.comments%type,
  p_set_of_books_id        IN ra_batches.set_of_books_id%type,
  p_purged_children_flag   IN ra_batches.purged_children_flag%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)
IS
  l_batch_rec   ra_batches%rowtype;
Line: 802

    arp_util.debug('arp_process_batch.update_batch_cover()+');
Line: 839

    arp_process_batch.update_batch(p_form_name,
                                   p_form_version,
                                   p_batch_id,
                                   l_batch_rec);
Line: 844

    arp_util.debug('arp_process_batch.update_batch_cover()-');
Line: 848

    arp_util.debug('EXCEPTION : arp_process_batch.update_batch_cover');
Line: 888

 |    delete_batch_cover                                                     |
 |                                                                           |
 | DESCRIPTION                                                               |
 |    Cover for calling the batch entity handler delete_batch                |
 |                                                                           |
 | 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                                                      |
 |     10-NOV-95  Subash C            Created                                |
 |                                                                           |
 +===========================================================================*/

PROCEDURE delete_batch_cover(
  p_form_name              IN varchar2,
  p_form_version           IN number,
  p_batch_id               IN ra_batches.batch_id%type)
IS
  l_batch_rec     ra_batches%rowtype;
Line: 923

    arp_util.debug('arp_process_batch.delete_batch_cover()+');
Line: 928

    arp_process_batch.delete_batch(p_form_name,
                                   p_form_version,
                                   p_batch_id,
                                   l_batch_rec);
Line: 933

    arp_util.debug('arp_process_batch.delete_batch_cover()-');
Line: 937

    arp_util.debug('EXCEPTION : arp_process_batch.delete_batch_cover');