549: -- This is for mrc call. which takes varchar2.
550: lc_request_id := g_request_id;
551: -- Also assign the global variable in auto_accounting package so that it does
552: -- not call mrc engine from auto_accounting.
553: l_called_from := ARP_AUTO_ACCOUNTING.g_called_from;
554: ARP_AUTO_ACCOUNTING.g_called_from := 'AR_INVOICE_API';
555:
556: FOR ar_trx_header_rec IN ar_trx_header_c
557: LOOP
550: lc_request_id := g_request_id;
551: -- Also assign the global variable in auto_accounting package so that it does
552: -- not call mrc engine from auto_accounting.
553: l_called_from := ARP_AUTO_ACCOUNTING.g_called_from;
554: ARP_AUTO_ACCOUNTING.g_called_from := 'AR_INVOICE_API';
555:
556: FOR ar_trx_header_rec IN ar_trx_header_c
557: LOOP
558: l_tax_error_flag := 'N';
820: THEN
821: ar_invoice_utils.debug('calling autoaccounting for REC');
822: END IF;
823:
824: arp_auto_accounting.do_autoaccounting(
825: 'I',
826: 'REC',
827: null,
828: null,
903: THEN
904: ar_invoice_utils.debug ('calling autoaccounting for ALL (except REC)' );
905: END IF;
906:
907: arp_auto_accounting.do_autoaccounting(
908: 'I',
909: 'ALL',
910: null,
911: null,
926:
927: IF pg_debug = 'Y'
928: THEN
929: ar_invoice_utils.debug ('No. of Rows failed ' || l_num_failed_dist_rows);
930: ar_invoice_utils.debug ('returning from arp_auto_accounting.do_autoaccounting(-)' );
931: END IF;
932:
933: IF l_num_failed_dist_rows > 0
934: OR l_etax_error_count > 0
1093: END IF;
1094: END;
1095: END IF;
1096:
1097: ARP_AUTO_ACCOUNTING.g_called_from := l_called_from;
1098:
1099: EXCEPTION
1100: WHEN OTHERS
1101: THEN