165:
166:
167: write_to_log('l_req_data : '||l_req_data);
168:
169: MO_GLOBAL.set_policy_context('S',p_operating_unit);
170:
171: if l_req_data is not null and l_req_data = '1' then
172:
173:
197: end if;
198:
199:
200:
201: FND_REQUEST.set_org_id(mo_global.get_current_org_id); --MOAC- Concurrent request
202:
203: --P_REPORT_TEMPLATE_NAME <-> value set 'OKL_XDO_REP_TEMPLATE' <-> stores the template code (in ID column)
204: --P_REPORT_LANGUAGE <-> value set 'OKL_XDO_REP_LANGUAGE' <-> stores language code e.g 'en' (in ID column)
205: --P_REPORT_FORMAT <-> value set 'OKL_XDO_REP_FORMAT' <-> stores format code e.g 'RTF' (in ID column)
367: WRITE_TO_LOG('Sequence Number : '||l_seq_next);
368:
369: -- mark records for processing
370:
371: l_org_id := mo_global.get_current_org_id();
372: WRITE_TO_LOG('org id:: '||l_org_id);
373:
374:
375: INSERT INTO OKL_PARALLEL_PROCESSES
505:
506: -- l_req_counter = number of workers used ?
507: write_to_log('Worker # :'||j||' l_req_data : '||l_req_data||' l_req_counter : '||l_req_counter);
508: if l_req_counter < (p_num_processes+1) then
509: FND_REQUEST.set_org_id(mo_global.get_current_org_id); --MOAC- Concurrent request
510:
511:
512: request_id := FND_REQUEST.SUBMIT_REQUEST(
513: application => 'OKL',