541: -- This is for mrc call. which takes varchar2.
542: lc_request_id := g_request_id;
543: -- Also assign the global variable in auto_accounting package so that it does
544: -- not call mrc engine from auto_accounting.
545: ARP_AUTO_ACCOUNTING.g_called_from := 'AR_INVOICE_API';
546:
547: FOR ar_trx_header_rec IN ar_trx_header_c
548: LOOP
549: l_tax_error_flag := 'N';
806: THEN
807: ar_invoice_utils.debug('calling autoaccounting for REC');
808: END IF;
809:
810: arp_auto_accounting.do_autoaccounting(
811: 'I',
812: 'REC',
813: null,
814: null,
855: THEN
856: ar_invoice_utils.debug ('calling autoaccounting for ALL (except REC)' );
857: END IF;
858:
859: arp_auto_accounting.do_autoaccounting(
860: 'I',
861: 'ALL',
862: null,
863: null,
878:
879: IF pg_debug = 'Y'
880: THEN
881: ar_invoice_utils.debug ('No. of Rows failed ' || l_num_failed_dist_rows);
882: ar_invoice_utils.debug ('returning from arp_auto_accounting.do_autoaccounting(-)' );
883: END IF;
884:
885: IF l_num_failed_dist_rows > 0
886: OR l_etax_error_count > 0