The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT
DISTINCT ctl.customer_trx_id,
ct.trx_number
FROM
ra_customer_trx ct,
ra_customer_trx_lines ctl
WHERE
ctl.autorule_complete_flag = 'N'
AND ct.customer_trx_id = ctl.customer_trx_id
AND ct.complete_flag = 'Y';
select org_id
into l_org_id
from ar_system_parameters;
l_req_status_tab.DELETE;
select org_id
into l_org_id
from ar_system_parameters;
when crediting invoices with rules. The procedure will delete
all non-posted REV/UNEARN/UNBILL lines (non-model ones). It will
then call the arp_credit_memo_module.credit_transactions function
to rebuild them (correctly) based on the invoice's distributions. */
PROCEDURE build_credit_distributions (errbuf OUT NOCOPY VARCHAR2,
retcode OUT NOCOPY NUMBER,
p_customer_trx_id IN NUMBER,
p_prev_trx_id IN NUMBER) AS
l_failure_count NUMBER;