The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT A.cust_trx_line_gl_dist_id gl_dist_id,
A.code_combination_id rev_ccid,
B.mf_receivables_ccid mf_ccid,
B.prev_mf_receivables_ccid prev_mf_ccid
FROM ra_cust_trx_line_gl_dist_all A,
psa_mf_trx_dist_all B
WHERE A.cust_trx_line_gl_dist_id = B.cust_trx_line_gl_dist_id
AND A.customer_trx_id = g_cust_trx_id;
(SELECT 1 FROM ra_customer_trx_lines_all x
WHERE x.customer_trx_line_id = A.customer_trx_line_id
AND NVL(extended_amount,0) <> 0);
SELECT A.rowid row_id
FROM ra_customer_trx_all A,
ra_cust_trx_types_all B
WHERE A.customer_trx_id = g_cust_trx_id
AND A.cust_trx_type_id = B.cust_trx_type_id
And (B.type = 'INV' OR B.type = 'DM')
FOR UPDATE;
SELECT code_combination_id
INTO g_receivables_ccid
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = g_cust_trx_id
AND account_class = 'REC'
AND account_set_flag = 'N';
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null, l_exception_error);
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null, l_exception_error);
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null, l_exception_error);
SELECT cust_trx_line_gl_dist_id,
code_combination_id
FROM ra_cust_trx_line_gl_dist_all y
WHERE customer_trx_id = g_cust_trx_id
AND account_class <> 'REC'
AND NOT EXISTS ( SELECT 'x'
FROM psa_mf_trx_dist_all psa
WHERE psa.cust_trx_line_gl_dist_id = y.cust_trx_line_gl_dist_id
);
( SELECT 1 FROM ra_customer_trx_lines_all x
WHERE x.customer_trx_line_id = y.customer_trx_line_id
AND NVL(extended_amount, 0) <> 0);
-- Delete existing records if any
--
Delete FROM psa_mf_trx_dist_all
WHERE cust_trx_line_gl_dist_id In
(SELECT cust_trx_line_gl_dist_id
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = g_cust_trx_id)
AND posting_control_id IS NULL;
' Generate_trx_dist --> delete from psa_mf_trx_dist_all -->'
|| SQL%ROWCOUNT);
-- Insert into psa_mf_trx_dist_all table
--
PSA_MFAR_TRANSACTION_COVER_PKG.INSERT_ROW
(X_ROWID => l_rowid,
X_CUST_TRX_LINE_GL_DIST_ID => l_trx_gl_dist_rec.cust_trx_line_gl_dist_id,
X_RECEIVABLES_CCID => l_ccid,
X_PREV_MF_RECEIVABLES_CCID => l_ccid,
X_MODE => 'R');
' Generate_trx_dist --> PSA_MFAR_TRANSACTION_COVER_PKG.INSERT_ROW ');
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null, p_error_message);
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null, p_error_message);
SELECT complete_flag
FROM ra_customer_trx_all
WHERE customer_trx_id = g_cust_trx_id;
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION', g_cust_trx_id, Null,
l_exception_error);
SELECT count(cust_trx_line_gl_dist_id) core_count
FROM ra_cust_trx_line_gl_dist_all
WHERE customer_trx_id = g_cust_trx_id
AND account_class <> 'REC';
SELECT count(B.cust_trx_line_gl_dist_id) mf_dist_count
FROM ra_cust_trx_line_gl_dist_all A,
psa_mf_trx_dist_all B
WHERE A.cust_trx_line_gl_dist_id = B.cust_trx_line_gl_dist_id
AND A.customer_trx_id = g_cust_trx_id;
DELETE FROM psa_mf_trx_dist_all
WHERE cust_trx_line_gl_dist_id Not In
( SELECT cust_trx_line_gl_dist_id FROM ra_cust_trx_line_gl_dist_all );
' Transaction_modified --> delete psa_mf_trx_dist_all --> '
|| SQL%ROWCOUNT);
PSA_MFAR_UTILS.INSERT_DISTRIBUTIONS_LOG (g_run_id, 'TRANSACTION',
g_cust_trx_id, Null,l_exception_error);