The following lines contain the word 'select', 'insert', 'update' or 'delete':
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT payment_id,
payee_party_id,
payee_le_registration_num,
payment_instruction_id,
payment_amount,
internal_bank_account_id,
int_bank_account_name,
int_bank_acct_agency_loc_code
FROM iby_payments_all
WHERE payment_instruction_id = p_instruction_id
AND payment_status = 'INSTRUCTION_CREATED';
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
SELECT document_type
INTO l_invoice_type FROM IBY_DOCS_PAYABLE_ALL
WHERE calling_app_doc_unique_ref2 = l_iby_docs_rec.calling_app_doc_unique_ref2
AND payment_id = l_iby_pmt_rec.payment_id
AND calling_app_id=200
AND UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP');
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT payment_id,
payment_instruction_id,
payee_party_id,
payee_le_registration_num,
payment_amount,
internal_bank_account_id,
int_bank_account_name,
int_bank_acct_agency_loc_code
FROM iby_payments_all
WHERE
payment_instruction_id = p_instruction_id
AND payment_status = 'INSTRUCTION_CREATED';
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT payment_id,
payment_instruction_id,
payment_amount,
internal_bank_account_id,
int_bank_account_name,
int_bank_acct_agency_loc_code
FROM iby_payments_all
WHERE payment_instruction_id = p_instruction_id
AND payment_status = 'INSTRUCTION_CREATED';
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
SELECT document_type
INTO l_invoice_type FROM IBY_DOCS_PAYABLE_ALL
WHERE calling_app_doc_unique_ref2 = l_iby_docs_rec.calling_app_doc_unique_ref2
AND payment_id = l_iby_pmt_rec.payment_id
AND calling_app_id=200
AND UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP');
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT payment_id,
payment_instruction_id,
payee_party_id,
payee_le_registration_num,
payment_amount,
internal_bank_account_id,
int_bank_account_name,
int_bank_acct_agency_loc_code
FROM iby_payments_all
WHERE payment_instruction_id = p_instruction_id
AND payment_status = 'INSTRUCTION_CREATED';
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
SELECT document_type
INTO l_invoice_type FROM IBY_DOCS_PAYABLE_ALL
WHERE calling_app_doc_unique_ref2 = l_iby_docs_rec.calling_app_doc_unique_ref2
AND payment_id = l_iby_pmt_rec.payment_id
AND calling_app_id=200
AND UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP');
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
SELECT org_id,
payment_reason_code
FROM iby_pay_instructions_all
WHERE
payment_instruction_id = p_instruction_id;
SELECT pmts.payment_id,
pmts.payment_instruction_id,
pmts.payee_party_id,
pmts.payee_le_registration_num,
pmts.payment_amount,
pmts.internal_bank_account_id,
pmts.int_bank_account_name,
pmts.int_bank_acct_agency_loc_code,
pmts.external_bank_account_id,
ext_ba.bank_account_name ext_bank_account_name,
iby_ext_bankacct_pub.Uncipher_Bank_Number (ext_ba.bank_account_num,
ext_ba.ba_num_sec_segment_id,
iby_utility_pvt.get_view_param('SYS_KEY'),
baek.subkey_cipher_text,
baes.segment_cipher_text,
baes.encoding_scheme,
ext_ba.ba_mask_setting,
ext_ba.ba_unmask_length) ext_bank_account_number,
pmts.ext_branch_number,
pmts.ext_bank_account_type
FROM iby_payments_all pmts,
iby_ext_bank_accounts ext_ba,
IBY_SYS_SECURITY_SUBKEYS baek,
IBY_SECURITY_SEGMENTS baes
WHERE
pmts.payment_instruction_id = p_instruction_id
AND pmts.payment_status = 'INSTRUCTION_CREATED'
AND pmts.external_bank_account_id = ext_ba.ext_bank_account_id(+)
AND ext_ba.ba_num_sec_segment_id = baes.sec_segment_id(+)
AND baes.sec_subkey_id = baek.sec_subkey_id(+);
SELECT calling_app_doc_unique_ref2
FROM iby_docs_payable_all
WHERE
payment_id = p_pmt_id
AND
calling_app_id=200
AND
UPPER(payment_function) IN ('PAYABLES_DISB','EMPLOYEE_EXP')
AND document_status = 'PAYMENT_CREATED';
delete from FV_TP_TS_AMT_DATA where payment_instruction_id = p_instruction_id;
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insertIntoErrorTable(l_docErrorRec, l_docErrorTab);
IBY_VALIDATIONSETS_PUB.insert_transaction_errors('N',l_docErrorTab);