2246: retcode := 0;
2247: --Added for R12 payment security check begin.
2248: l_has_access := cn_payment_security_pvt.get_security_access(cn_payment_security_pvt.g_type_wksht, cn_payment_security_pvt.g_access_wksht_create);
2249: --Get the salesrep batch size from profile option.
2250: l_batch_sz := nvl(fnd_profile.value('CN_PMT_SRP_BATCH_SIZE'),251);
2251: fnd_file.put_line(fnd_file.log,'Batch size : ' ||l_batch_sz);
2252:
2253: IF l_batch_sz < 1
2254: THEN
4129: l_error_count NUMBER := 0;
4130: l_warning_count NUMBER := 0;
4131: mysysdate CONSTANT DATE := SYSDATE;
4132: l_request_id NUMBER := 0;
4133: l_sleep_time NUMBER := to_number(nvl(fnd_profile.VALUE('CN_SLEEP_TIME'), '20'));
4134: duration NUMBER(7, 1);
4135: errmsg VARCHAR2(4000) := '';
4136: err_num NUMBER := NULL;
4137: l_org_id cn_payruns.org_id%TYPE;
4378: BEGIN
4379: fnd_file.put_line(fnd_file.log, 'Input Parameters Payrun_Name =' || p_name);
4380: l_has_access := cn_payment_security_pvt.get_security_access(cn_payment_security_pvt.g_type_wksht, cn_payment_security_pvt.g_access_payrun_refresh);
4381: --Get the salesrep batch size from profile option.
4382: l_batch_sz := nvl(fnd_profile.value('CN_PMT_SRP_BATCH_SIZE'),251);
4383: fnd_file.put_line(fnd_file.log, 'Batch Size =' || to_char(l_batch_sz));
4384:
4385: IF l_batch_sz < 1
4386: THEN