1055: IF(l_count > 0) THEN
1056: raise_application_error(-20000, 'IBY_20560#', FALSE);
1057: END IF;
1058:
1059: iby_fipayments_pkg.checkInstrId(i_payeeinstrid);
1060:
1061: IF (c_trxnmid%ISOPEN) THEN
1062: CLOSE c_trxnmid;
1063: END IF;
1081: LOOP
1082: /**
1083: * Check if the payer has registered the instrument.
1084: */
1085: iby_fipayments_pkg.checkInstrId(i_payerinstrid(j));
1086:
1087: /**
1088: * Check if there is already a request with same payee id
1089: * tangible id and request type.
1087: /**
1088: * Check if there is already a request with same payee id
1089: * tangible id and request type.
1090: */
1091: IF (iby_fipayments_pkg.requestExists(i_payeeid, i_tangibleid(j), NULL, i_reqtype)) THEN
1092: raise_application_error(-20000, 'IBY_20560#', FALSE);
1093: END IF;
1094:
1095: o_trxnid(j) := iby_transactioncc_pkg.getTID(i_payeeid, i_tangibleid(j));
1320:
1321: -- Check if payer has registered the instrument
1322:
1323: IF ( NVL(i_payerinstrid,0) <> 0) THEN
1324: iby_fipayments_pkg.checkInstrId(i_payerinstrid);
1325: END IF;
1326:
1327: -- Get the master payeeid for the given payee
1328: iby_accppmtmthd_pkg.getMPayeeId(i_payeeid, l_mpayeeid);