DBA Data[Home] [Help]

APPS.MSC_ATP_PF dependencies on MSC_SCH_WB

Line 232: msc_sch_wb.atp_debug('*********Begin procedure Add_PF_Bucketed_Demands ********');

228: l_return_status VARCHAR2(1);
229:
230: BEGIN
231: IF PG_DEBUG in ('Y', 'C') THEN
232: msc_sch_wb.atp_debug('*********Begin procedure Add_PF_Bucketed_Demands ********');
233: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'demand_source_type = ' ||p_atp_rec.demand_source_type);--cmro
234: END IF;
235:
236: -- Initializing API return code

Line 233: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'demand_source_type = ' ||p_atp_rec.demand_source_type);--cmro

229:
230: BEGIN
231: IF PG_DEBUG in ('Y', 'C') THEN
232: msc_sch_wb.atp_debug('*********Begin procedure Add_PF_Bucketed_Demands ********');
233: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'demand_source_type = ' ||p_atp_rec.demand_source_type);--cmro
234: END IF;
235:
236: -- Initializing API return code
237: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 267: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Calc_Bucketed_Demands_Info');

263: );
264:
265: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
266: IF PG_DEBUG in ('Y', 'C') THEN
267: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Calc_Bucketed_Demands_Info');
268: END IF;
269: x_return_status := FND_API.G_RET_STS_ERROR;
270: return;
271: END IF;

Line 287: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

283: l_return_status
284: );
285: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
286: IF PG_DEBUG in ('Y', 'C') THEN
287: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
288: END IF;
289: x_return_status := FND_API.G_RET_STS_ERROR;
290: return;
291: END IF;

Line 308: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

304: l_return_status
305: );
306: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
307: IF PG_DEBUG in ('Y', 'C') THEN
308: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
309: END IF;
310: x_return_status := FND_API.G_RET_STS_ERROR;
311: return;
312: END IF;

Line 316: msc_sch_wb.atp_debug('*********End of procedure Add_PF_Bucketed_Demands ********');

312: END IF;
313: END IF;
314:
315: IF PG_DEBUG in ('Y', 'C') THEN
316: msc_sch_wb.atp_debug('*********End of procedure Add_PF_Bucketed_Demands ********');
317: END IF;
318:
319: EXCEPTION
320: WHEN OTHERS THEN

Line 322: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

318:
319: EXCEPTION
320: WHEN OTHERS THEN
321: IF PG_DEBUG in ('Y', 'C') THEN
322: msc_sch_wb.atp_debug('Add_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
323: END IF;
324: x_return_status := FND_API.G_RET_STS_ERROR;
325:
326: END Add_PF_Bucketed_Demands;

Line 344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');

340: -- local variables
341:
342: BEGIN
343: IF PG_DEBUG in ('Y', 'C') THEN
344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');
345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));

Line 345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));

341:
342: BEGIN
343: IF PG_DEBUG in ('Y', 'C') THEN
344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');
345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));
349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));

Line 346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));

342: BEGIN
343: IF PG_DEBUG in ('Y', 'C') THEN
344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');
345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));
349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));
350: END IF;

Line 347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));

343: IF PG_DEBUG in ('Y', 'C') THEN
344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');
345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));
349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));
350: END IF;
351:

Line 348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));

344: msc_sch_wb.atp_debug('*********Begin procedure Calc_Bucketed_Demands_Info ********');
345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));
349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));
350: END IF;
351:
352: -- Initializing API return code

Line 349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));

345: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date = ' ||to_char(p_req_date));
346: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
347: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Qty = ' ||to_char(p_req_qty));
348: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Req Date Qty = ' ||to_char(p_req_date_qty));
349: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'ATF Date Qty = ' ||to_char(p_atf_date_qty));
350: END IF;
351:
352: -- Initializing API return code
353: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');

428: END IF;
429: END IF;
430:
431: IF PG_DEBUG in ('Y', 'C') THEN
432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');
433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));

Line 433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);

429: END IF;
430:
431: IF PG_DEBUG in ('Y', 'C') THEN
432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');
433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');

Line 434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));

430:
431: IF PG_DEBUG in ('Y', 'C') THEN
432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');
433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);

Line 435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));

431: IF PG_DEBUG in ('Y', 'C') THEN
432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');
433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));

Line 436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));

432: msc_sch_wb.atp_debug('************** Bucketed Demands *************');
433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));

Line 437: msc_sch_wb.atp_debug('* ');

433: msc_sch_wb.atp_debug('* Add member item bucketed demand = ' ||x_bucketed_demands_rec.insert_mem_bd);
434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));

Line 438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);

434: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(x_bucketed_demands_rec.mem_bd_date));
435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');

Line 439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));

435: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(x_bucketed_demands_rec.mem_bd_qty));
436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');
443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');

Line 440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));

436: msc_sch_wb.atp_debug('* Member Display Flag = ' ||to_char(x_bucketed_demands_rec.mem_display_flag));
437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');
443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');
444: END IF;

Line 441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));

437: msc_sch_wb.atp_debug('* ');
438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');
443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');
444: END IF;
445:

Line 442: msc_sch_wb.atp_debug('***********************************************');

438: msc_sch_wb.atp_debug('* Add family item bucketed demand = ' ||x_bucketed_demands_rec.insert_pf_bd);
439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');
443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');
444: END IF;
445:
446: EXCEPTION

Line 443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');

439: msc_sch_wb.atp_debug('* Family Item BD Date = ' ||to_char(x_bucketed_demands_rec.pf_bd_date));
440: msc_sch_wb.atp_debug('* Family Item BD Qty = ' ||to_char(x_bucketed_demands_rec.pf_bd_qty));
441: msc_sch_wb.atp_debug('* Pf Display Flag = ' ||to_char(x_bucketed_demands_rec.pf_display_flag));
442: msc_sch_wb.atp_debug('***********************************************');
443: msc_sch_wb.atp_debug('*********End of procedure Calc_Bucketed_Demands_Info ********');
444: END IF;
445:
446: EXCEPTION
447: WHEN OTHERS THEN

Line 449: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

445:
446: EXCEPTION
447: WHEN OTHERS THEN
448: IF PG_DEBUG in ('Y', 'C') THEN
449: msc_sch_wb.atp_debug('Calc_Bucketed_Demands_Info: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
450: END IF;
451: x_return_status := FND_API.G_RET_STS_ERROR;
452:
453: END Calc_Bucketed_Demands_Info;

Line 476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');

472: l_update_pf_bd VARCHAR2(1) := 'N';
473:
474: BEGIN
475: IF PG_DEBUG in ('Y', 'C') THEN
476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');
477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));

Line 477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));

473:
474: BEGIN
475: IF PG_DEBUG in ('Y', 'C') THEN
476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');
477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));

Line 478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));

474: BEGIN
475: IF PG_DEBUG in ('Y', 'C') THEN
476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');
477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));
482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));

Line 479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));

475: IF PG_DEBUG in ('Y', 'C') THEN
476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');
477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));
482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
483: END IF;

Line 480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));

476: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Bucketed_Demands ********');
477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));
482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
483: END IF;
484:

Line 481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));

477: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));
482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
483: END IF;
484:
485: -- Initializing API return code

Line 482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));

478: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
479: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_demand_date = ' ||to_char(p_demand_date));
480: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
481: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_old_demand_date_qty = ' ||to_char(p_old_demand_date_qty));
482: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
483: END IF;
484:
485: -- Initializing API return code
486: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');

490: l_mem_bd_qty := p_new_demand_date_qty;
491:
492: l_update_pf_bd := 'D';
493: IF PG_DEBUG in ('Y', 'C') THEN
494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');
495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');

Line 495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));

491:
492: l_update_pf_bd := 'D';
493: IF PG_DEBUG in ('Y', 'C') THEN
494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');
495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');
499: msc_sch_wb.atp_debug('*************************************');

Line 496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));

492: l_update_pf_bd := 'D';
493: IF PG_DEBUG in ('Y', 'C') THEN
494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');
495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');
499: msc_sch_wb.atp_debug('*************************************');
500: END IF;

Line 497: msc_sch_wb.atp_debug('* ');

493: IF PG_DEBUG in ('Y', 'C') THEN
494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');
495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');
499: msc_sch_wb.atp_debug('*************************************');
500: END IF;
501: ELSE

Line 498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');

494: msc_sch_wb.atp_debug('********* New Bucketed Demands ********');
495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');
499: msc_sch_wb.atp_debug('*************************************');
500: END IF;
501: ELSE
502: l_update_mem_bd := 'Y';

Line 499: msc_sch_wb.atp_debug('*************************************');

495: msc_sch_wb.atp_debug('* Member Item BD Date = ' ||to_char(p_demand_date));
496: msc_sch_wb.atp_debug('* Member Item BD Qty = ' ||to_char(l_mem_bd_qty));
497: msc_sch_wb.atp_debug('* ');
498: msc_sch_wb.atp_debug('* Family Item BD Qty = 0');
499: msc_sch_wb.atp_debug('*************************************');
500: END IF;
501: ELSE
502: l_update_mem_bd := 'Y';
503: l_mem_bd_qty := null;

Line 509: msc_sch_wb.atp_debug('************ New Bucketed Demands **************');

505: l_update_pf_bd := 'Y';
506: l_pf_bd_decrement_qty := GREATEST(nvl(p_old_demand_date_qty, 0)
507: - nvl(p_new_demand_date_qty, 0), 0);
508: IF PG_DEBUG in ('Y', 'C') THEN
509: msc_sch_wb.atp_debug('************ New Bucketed Demands **************');
510: msc_sch_wb.atp_debug('* Decremented Previous Family Item BD by ' ||to_char(l_pf_bd_decrement_qty));
511: msc_sch_wb.atp_debug('**************************************************');
512: END IF;
513: END IF;

Line 510: msc_sch_wb.atp_debug('* Decremented Previous Family Item BD by ' ||to_char(l_pf_bd_decrement_qty));

506: l_pf_bd_decrement_qty := GREATEST(nvl(p_old_demand_date_qty, 0)
507: - nvl(p_new_demand_date_qty, 0), 0);
508: IF PG_DEBUG in ('Y', 'C') THEN
509: msc_sch_wb.atp_debug('************ New Bucketed Demands **************');
510: msc_sch_wb.atp_debug('* Decremented Previous Family Item BD by ' ||to_char(l_pf_bd_decrement_qty));
511: msc_sch_wb.atp_debug('**************************************************');
512: END IF;
513: END IF;
514:

Line 511: msc_sch_wb.atp_debug('**************************************************');

507: - nvl(p_new_demand_date_qty, 0), 0);
508: IF PG_DEBUG in ('Y', 'C') THEN
509: msc_sch_wb.atp_debug('************ New Bucketed Demands **************');
510: msc_sch_wb.atp_debug('* Decremented Previous Family Item BD by ' ||to_char(l_pf_bd_decrement_qty));
511: msc_sch_wb.atp_debug('**************************************************');
512: END IF;
513: END IF;
514:
515: IF l_update_mem_bd = 'Y' THEN

Line 542: msc_sch_wb.atp_debug('*********End of procedure Update_PF_Bucketed_Demands ********');

538: and plan_id = p_plan_id;
539: END IF;
540:
541: IF PG_DEBUG in ('Y', 'C') THEN
542: msc_sch_wb.atp_debug('*********End of procedure Update_PF_Bucketed_Demands ********');
543: END IF;
544:
545: EXCEPTION
546: WHEN OTHERS THEN

Line 548: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

544:
545: EXCEPTION
546: WHEN OTHERS THEN
547: IF PG_DEBUG in ('Y', 'C') THEN
548: msc_sch_wb.atp_debug('Update_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
549: END IF;
550: x_return_status := FND_API.G_RET_STS_ERROR;
551:
552: END Update_PF_Bucketed_Demands;

Line 580: msc_sch_wb.atp_debug('*********Begin procedure Increment_Bucketed_Demands_Qty ********');

576: l_return_status VARCHAR2(1);
577:
578: BEGIN
579: IF PG_DEBUG in ('Y', 'C') THEN
580: msc_sch_wb.atp_debug('*********Begin procedure Increment_Bucketed_Demands_Qty ********');
581: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_plan_id = ' ||to_char(p_plan_id));
582: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
583: END IF;
584:

Line 581: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_plan_id = ' ||to_char(p_plan_id));

577:
578: BEGIN
579: IF PG_DEBUG in ('Y', 'C') THEN
580: msc_sch_wb.atp_debug('*********Begin procedure Increment_Bucketed_Demands_Qty ********');
581: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_plan_id = ' ||to_char(p_plan_id));
582: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
583: END IF;
584:
585: -- Initializing API return code

Line 582: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));

578: BEGIN
579: IF PG_DEBUG in ('Y', 'C') THEN
580: msc_sch_wb.atp_debug('*********Begin procedure Increment_Bucketed_Demands_Qty ********');
581: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_plan_id = ' ||to_char(p_plan_id));
582: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
583: END IF;
584:
585: -- Initializing API return code
586: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 616: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Calc_Bucketed_Demands_Info');

612: );
613:
614: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
615: IF PG_DEBUG in ('Y', 'C') THEN
616: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Calc_Bucketed_Demands_Info');
617: END IF;
618: x_return_status := FND_API.G_RET_STS_ERROR;
619: return;
620: END IF;

Line 624: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Deleting member item bucketed demand...');

620: END IF;
621:
622: IF nvl(l_bucketed_demands_rec.mem_bd_qty, 0) = 0 THEN
623: IF PG_DEBUG in ('Y', 'C') THEN
624: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Deleting member item bucketed demand...');
625: END IF;
626: delete msc_alloc_demands
627: where parent_demand_id = p_parent_demand_id
628: and inventory_item_id = p_atp_rec.request_item_id

Line 644: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Member item bucketed demand not found. Inserting now...');

640: and plan_id = p_plan_id;
641:
642: IF SQL%NOTFOUND THEN
643: IF PG_DEBUG in ('Y', 'C') THEN
644: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Member item bucketed demand not found. Inserting now...');
645: END IF;
646: Insert_Bucketed_Demand(
647: p_atp_rec,
648: p_plan_id,

Line 659: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Insert_Bucketed_Demand');

655: l_return_status
656: );
657: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
658: IF PG_DEBUG in ('Y', 'C') THEN
659: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Insert_Bucketed_Demand');
660: END IF;
661: x_return_status := FND_API.G_RET_STS_ERROR;
662: return;
663: END IF;

Line 669: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Deleting family item bucketed demand...');

665: END IF;
666:
667: IF nvl(l_bucketed_demands_rec.pf_bd_qty,0) = 0 THEN
668: IF PG_DEBUG in ('Y', 'C') THEN
669: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Deleting family item bucketed demand...');
670: END IF;
671: delete msc_alloc_demands
672: where parent_demand_id = p_parent_demand_id
673: and inventory_item_id = p_atp_rec.inventory_item_id

Line 689: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Family item bucketed demand not found. Inserting now...');

685: and plan_id = p_plan_id;
686:
687: IF SQL%NOTFOUND THEN
688: IF PG_DEBUG in ('Y', 'C') THEN
689: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: Family item bucketed demand not found. Inserting now...');
690: END IF;
691: Insert_Bucketed_Demand(
692: p_atp_rec,
693: p_plan_id,

Line 704: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Insert_Bucketed_Demand');

700: l_return_status
701: );
702: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
703: IF PG_DEBUG in ('Y', 'C') THEN
704: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occured in procedure Insert_Bucketed_Demand');
705: END IF;
706: x_return_status := FND_API.G_RET_STS_ERROR;
707: return;
708: END IF;

Line 713: msc_sch_wb.atp_debug('*********End of procedure Increment_Bucketed_Demands_Qty ********');

709: END IF;
710: END IF;
711:
712: IF PG_DEBUG in ('Y', 'C') THEN
713: msc_sch_wb.atp_debug('*********End of procedure Increment_Bucketed_Demands_Qty ********');
714: END IF;
715:
716: EXCEPTION
717: WHEN OTHERS THEN

Line 719: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

715:
716: EXCEPTION
717: WHEN OTHERS THEN
718: IF PG_DEBUG in ('Y', 'C') THEN
719: msc_sch_wb.atp_debug('Increment_Bucketed_Demands_Qty: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
720: END IF;
721: x_return_status := FND_API.G_RET_STS_ERROR;
722:
723: END Increment_Bucketed_Demands_Qty;

Line 759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');

755: l_atf_date_qty NUMBER; --bug3397904
756:
757: BEGIN
758: IF PG_DEBUG in ('Y', 'C') THEN
759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');
760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));

Line 760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));

756:
757: BEGIN
758: IF PG_DEBUG in ('Y', 'C') THEN
759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');
760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));

Line 761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));

757: BEGIN
758: IF PG_DEBUG in ('Y', 'C') THEN
759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');
760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));

Line 762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));

758: IF PG_DEBUG in ('Y', 'C') THEN
759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');
760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));

Line 763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));

759: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bucketed_Demands ********');
760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));

Line 764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));

760: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));
768: END IF;

Line 765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));

761: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));
768: END IF;
769:

Line 766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));

762: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_old_demand_date = ' ||to_char(p_old_demand_date));
763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));
768: END IF;
769:
770: -- Initializing API return code

Line 767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));

763: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date = ' ||to_char(p_new_demand_date));
764: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_demand_qty = ' ||to_char(p_demand_qty));
765: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_new_demand_date_qty = ' ||to_char(p_new_demand_date_qty));
766: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date = ' ||to_char(p_atf_date));
767: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'p_atf_date_qty = ' ||to_char(p_atf_date_qty));
768: END IF;
769:
770: -- Initializing API return code
771: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 781: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to move bucketed demand dates. Update qtys');

777: --This condition was before for override case
778: --now checking by flag as now both dates can be different.
779: /*
780: IF PG_DEBUG in ('Y', 'C') THEN
781: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to move bucketed demand dates. Update qtys');
782: END IF;
783: IF (p_atf_date_qty is NULL) THEN
784: IF PG_DEBUG in ('Y', 'C') THEN
785: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to update qtys');

Line 785: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to update qtys');

781: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to move bucketed demand dates. Update qtys');
782: END IF;
783: IF (p_atf_date_qty is NULL) THEN
784: IF PG_DEBUG in ('Y', 'C') THEN
785: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: No need to update qtys');
786: END IF;
787: ELSIF p_old_demand_date <= p_atf_date THEN
788: update msc_alloc_demands
789: set allocated_quantity = p_demand_qty,

Line 796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');

792: and demand_date <= p_atf_date
793: and plan_id = p_plan_id;
794:
795: IF PG_DEBUG in ('Y', 'C') THEN
796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
798: msc_sch_wb.atp_debug('* ');
799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
800: msc_sch_wb.atp_debug('*********************************************');

Line 797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));

793: and plan_id = p_plan_id;
794:
795: IF PG_DEBUG in ('Y', 'C') THEN
796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
798: msc_sch_wb.atp_debug('* ');
799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
800: msc_sch_wb.atp_debug('*********************************************');
801: END IF;

Line 798: msc_sch_wb.atp_debug('* ');

794:
795: IF PG_DEBUG in ('Y', 'C') THEN
796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
798: msc_sch_wb.atp_debug('* ');
799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
800: msc_sch_wb.atp_debug('*********************************************');
801: END IF;
802: ELSE

Line 799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));

795: IF PG_DEBUG in ('Y', 'C') THEN
796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
798: msc_sch_wb.atp_debug('* ');
799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
800: msc_sch_wb.atp_debug('*********************************************');
801: END IF;
802: ELSE
803: update msc_alloc_demands

Line 800: msc_sch_wb.atp_debug('*********************************************');

796: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
797: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
798: msc_sch_wb.atp_debug('* ');
799: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
800: msc_sch_wb.atp_debug('*********************************************');
801: END IF;
802: ELSE
803: update msc_alloc_demands
804: set allocated_quantity = nvl(p_atf_date_qty, 0),

Line 818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');

814: and demand_date > p_atf_date
815: and plan_id = p_plan_id;
816:
817: IF PG_DEBUG in ('Y', 'C') THEN
818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
820: msc_sch_wb.atp_debug('* ');
821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
822: msc_sch_wb.atp_debug('*********************************************');

Line 819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));

815: and plan_id = p_plan_id;
816:
817: IF PG_DEBUG in ('Y', 'C') THEN
818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
820: msc_sch_wb.atp_debug('* ');
821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
822: msc_sch_wb.atp_debug('*********************************************');
823: END IF;

Line 820: msc_sch_wb.atp_debug('* ');

816:
817: IF PG_DEBUG in ('Y', 'C') THEN
818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
820: msc_sch_wb.atp_debug('* ');
821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
822: msc_sch_wb.atp_debug('*********************************************');
823: END IF;
824: END IF;*/

Line 821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));

817: IF PG_DEBUG in ('Y', 'C') THEN
818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
820: msc_sch_wb.atp_debug('* ');
821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
822: msc_sch_wb.atp_debug('*********************************************');
823: END IF;
824: END IF;*/
825: IF (p_new_demand_date <= p_atf_date) AND

Line 822: msc_sch_wb.atp_debug('*********************************************');

818: msc_sch_wb.atp_debug('********* New Bucketed Demand Qtys ********');
819: msc_sch_wb.atp_debug('* Member Item BD Qty = ' || nvl(p_atf_date_qty, 0));
820: msc_sch_wb.atp_debug('* ');
821: msc_sch_wb.atp_debug('* Family Item BD Qty = ' || (p_demand_qty - nvl(p_atf_date_qty, 0)));
822: msc_sch_wb.atp_debug('*********************************************');
823: END IF;
824: END IF;*/
825: IF (p_new_demand_date <= p_atf_date) AND
826: (NVL(p_atf_date_qty,p_demand_qty) >= p_demand_qty) THEN

Line 834: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Inside IF');

830: l_mem_bd_date := p_new_demand_date;
831: l_mem_bd_qty := p_demand_qty;
832:
833: IF PG_DEBUG in ('Y', 'C') THEN
834: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Inside IF');
835: END IF;
836:
837: ELSIF (p_new_demand_date <= p_atf_date) AND (p_atf_date_qty > 0) THEN
838:

Line 850: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: p_new_demand_date <= p_atf_date');

846: l_pf_bd_date := p_atf_date + 1;
847: l_pf_bd_qty := p_demand_qty - p_atf_date_qty;
848:
849: IF PG_DEBUG in ('Y', 'C') THEN
850: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: p_new_demand_date <= p_atf_date');
851: END IF;
852:
853: ELSIF (p_new_demand_date <= p_atf_date) THEN
854:

Line 872: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: inside else');

868: l_pf_bd_date := p_new_demand_date;
869: l_pf_bd_qty := p_demand_qty - p_atf_date_qty;
870:
871: IF PG_DEBUG in ('Y', 'C') THEN
872: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: inside else');
873: END IF;
874: END IF;
875:
876: IF PG_DEBUG in ('Y', 'C') THEN

Line 877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');

873: END IF;
874: END IF;
875:
876: IF PG_DEBUG in ('Y', 'C') THEN
877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));

Line 878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);

874: END IF;
875:
876: IF PG_DEBUG in ('Y', 'C') THEN
877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');

Line 879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));

875:
876: IF PG_DEBUG in ('Y', 'C') THEN
877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);

Line 880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));

876: IF PG_DEBUG in ('Y', 'C') THEN
877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));

Line 881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));

877: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));

Line 882: msc_sch_wb.atp_debug('* ');

878: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));

Line 883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);

879: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
887: msc_sch_wb.atp_debug('*************************************');

Line 884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));

880: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
887: msc_sch_wb.atp_debug('*************************************');
888: END IF;

Line 885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));

881: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
887: msc_sch_wb.atp_debug('*************************************');
888: END IF;
889:

Line 886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));

882: msc_sch_wb.atp_debug('* ');
883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
887: msc_sch_wb.atp_debug('*************************************');
888: END IF;
889:
890: IF l_update_mem_bd = 'Y' THEN

Line 887: msc_sch_wb.atp_debug('*************************************');

883: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
884: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
885: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
886: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
887: msc_sch_wb.atp_debug('*************************************');
888: END IF;
889:
890: IF l_update_mem_bd = 'Y' THEN
891: update msc_alloc_demands

Line 906: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Member item bucketed demand not found. Inserting now...');

902: and plan_id = p_plan_id;
903:
904: IF (SQL%NOTFOUND) and (nvl(l_mem_bd_qty, 0) > 0) and (l_atp_rec.inventory_item_id is NOT NULL) THEN
905: IF PG_DEBUG in ('Y', 'C') THEN
906: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Member item bucketed demand not found. Inserting now...');
907: END IF;
908: l_atp_rec.quantity_ordered := p_demand_qty;
909: l_atp_rec.requested_ship_date := p_new_demand_date;
910: Insert_Bucketed_Demand(

Line 923: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

919: l_return_status
920: );
921: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
922: IF PG_DEBUG in ('Y', 'C') THEN
923: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
924: END IF;
925: x_return_status := FND_API.G_RET_STS_ERROR;
926: return;
927: END IF;

Line 947: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Family item bucketed demand not found. Inserting now...');

943: and plan_id = p_plan_id;
944:
945: IF (SQL%NOTFOUND) and (nvl(l_pf_bd_qty, 0) > 0) and (l_atp_rec.inventory_item_id is NOT NULL) THEN
946: IF PG_DEBUG in ('Y', 'C') THEN
947: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Family item bucketed demand not found. Inserting now...');
948: END IF;
949: l_atp_rec.quantity_ordered := p_demand_qty;
950: l_atp_rec.requested_ship_date := p_new_demand_date;
951: Insert_Bucketed_Demand(

Line 964: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

960: l_return_status
961: );
962: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
963: IF PG_DEBUG in ('Y', 'C') THEN
964: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
965: END IF;
966: x_return_status := FND_API.G_RET_STS_ERROR;
967: return;
968: END IF;

Line 983: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Move_PF_Bd_Dates');

979: l_return_status
980: );
981: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
982: IF PG_DEBUG in ('Y', 'C') THEN
983: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Move_PF_Bd_Dates');
984: END IF;
985: x_return_status := FND_API.G_RET_STS_ERROR;
986: return;
987: END IF;

Line 994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');

990: l_new_demand_date_qty := p_new_demand_date_qty - nvl(p_bkwd_pass_atf_date_qty,0); --bug3397904
991: l_atf_date_qty := p_atf_date_qty - nvl(p_bkwd_pass_atf_date_qty,0); --bug3397904
992:
993: IF PG_DEBUG in ('Y', 'C') THEN --bug3397904 start
994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));
996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));
997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));
998: msc_sch_wb.atp_debug('* ');

Line 995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));

991: l_atf_date_qty := p_atf_date_qty - nvl(p_bkwd_pass_atf_date_qty,0); --bug3397904
992:
993: IF PG_DEBUG in ('Y', 'C') THEN --bug3397904 start
994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));
996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));
997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));
998: msc_sch_wb.atp_debug('* ');
999: END IF; --bug3397904 end

Line 996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));

992:
993: IF PG_DEBUG in ('Y', 'C') THEN --bug3397904 start
994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));
996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));
997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));
998: msc_sch_wb.atp_debug('* ');
999: END IF; --bug3397904 end
1000: IF p_new_demand_date <= p_atf_date THEN

Line 997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));

993: IF PG_DEBUG in ('Y', 'C') THEN --bug3397904 start
994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));
996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));
997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));
998: msc_sch_wb.atp_debug('* ');
999: END IF; --bug3397904 end
1000: IF p_new_demand_date <= p_atf_date THEN
1001: /* Move member item's bucketed demand*/

Line 998: msc_sch_wb.atp_debug('* ');

994: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
995: msc_sch_wb.atp_debug('* Backward pass atf date qty = ' ||to_char(p_bkwd_pass_atf_date_qty));
996: msc_sch_wb.atp_debug('* l_new_demand_date_qty = ' ||to_char(l_new_demand_date_qty));
997: msc_sch_wb.atp_debug('* l_atf_date_qty = ' ||to_char(l_atf_date_qty));
998: msc_sch_wb.atp_debug('* ');
999: END IF; --bug3397904 end
1000: IF p_new_demand_date <= p_atf_date THEN
1001: /* Move member item's bucketed demand*/
1002: l_update_mem_bd := 'Y';

Line 1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');

1035:
1036: l_mem_bd_qty := l_mem_bd_qty + p_bkwd_pass_atf_date_qty; --bug3397904
1037:
1038: IF PG_DEBUG in ('Y', 'C') THEN
1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));

Line 1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);

1036: l_mem_bd_qty := l_mem_bd_qty + p_bkwd_pass_atf_date_qty; --bug3397904
1037:
1038: IF PG_DEBUG in ('Y', 'C') THEN
1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');

Line 1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));

1037:
1038: IF PG_DEBUG in ('Y', 'C') THEN
1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);

Line 1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));

1038: IF PG_DEBUG in ('Y', 'C') THEN
1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));

Line 1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));

1039: msc_sch_wb.atp_debug('********* Bucketed Demands ********');
1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));

Line 1044: msc_sch_wb.atp_debug('* ');

1040: msc_sch_wb.atp_debug('* Update member item bucketed demand = ' ||l_update_mem_bd);
1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));

Line 1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);

1041: msc_sch_wb.atp_debug('* l_mem_bd_date = ' ||to_char(l_mem_bd_date));
1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
1049: msc_sch_wb.atp_debug('*************************************');

Line 1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));

1042: msc_sch_wb.atp_debug('* l_mem_bd_qty = ' ||to_char(l_mem_bd_qty));
1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
1049: msc_sch_wb.atp_debug('*************************************');
1050: END IF;

Line 1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));

1043: msc_sch_wb.atp_debug('* l_mem_display_flag = ' ||to_char(l_mem_display_flag));
1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
1049: msc_sch_wb.atp_debug('*************************************');
1050: END IF;
1051:

Line 1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));

1044: msc_sch_wb.atp_debug('* ');
1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
1049: msc_sch_wb.atp_debug('*************************************');
1050: END IF;
1051:
1052: IF l_update_mem_bd = 'Y' THEN

Line 1049: msc_sch_wb.atp_debug('*************************************');

1045: msc_sch_wb.atp_debug('* Update family item bucketed demand = ' ||l_update_pf_bd);
1046: msc_sch_wb.atp_debug('* l_pf_bd_date = ' ||to_char(l_pf_bd_date));
1047: msc_sch_wb.atp_debug('* l_pf_bd_qty = ' ||to_char(l_pf_bd_qty));
1048: msc_sch_wb.atp_debug('* l_pf_display_flag = ' ||to_char(l_pf_display_flag));
1049: msc_sch_wb.atp_debug('*************************************');
1050: END IF;
1051:
1052: IF l_update_mem_bd = 'Y' THEN
1053: update msc_alloc_demands

Line 1068: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Member item bucketed demand not found. Inserting now...');

1064: and plan_id = p_plan_id;
1065:
1066: IF (SQL%NOTFOUND) and (nvl(l_mem_bd_qty, 0) > 0) and (l_atp_rec.inventory_item_id is NOT NULL) THEN
1067: IF PG_DEBUG in ('Y', 'C') THEN
1068: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Member item bucketed demand not found. Inserting now...');
1069: END IF;
1070: l_atp_rec.quantity_ordered := p_demand_qty;
1071: l_atp_rec.requested_ship_date := p_new_demand_date;
1072: Insert_Bucketed_Demand(

Line 1086: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

1082: l_return_status
1083: );
1084: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1085: IF PG_DEBUG in ('Y', 'C') THEN
1086: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
1087: END IF;
1088: x_return_status := FND_API.G_RET_STS_ERROR;
1089: return;
1090: END IF;

Line 1116: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Family item bucketed demand not found. Inserting now...');

1112: and plan_id = p_plan_id;
1113:
1114: IF (SQL%NOTFOUND) and (nvl(l_pf_bd_qty, 0) > 0) and (l_atp_rec.inventory_item_id is NOT NULL) THEN
1115: IF PG_DEBUG in ('Y', 'C') THEN
1116: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: Family item bucketed demand not found. Inserting now...');
1117: END IF;
1118: l_atp_rec.quantity_ordered := p_demand_qty;
1119: l_atp_rec.requested_ship_date := p_new_demand_date;
1120: Insert_Bucketed_Demand(

Line 1133: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');

1129: l_return_status
1130: );
1131: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1132: IF PG_DEBUG in ('Y', 'C') THEN
1133: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occured in procedure Insert_Bucketed_Demand');
1134: END IF;
1135: x_return_status := FND_API.G_RET_STS_ERROR;
1136: return;
1137: END IF;

Line 1143: msc_sch_wb.atp_debug('*********End of procedure Move_PF_Bucketed_Demands ********');

1139: END IF;
1140: END IF;
1141: END IF;
1142: IF PG_DEBUG in ('Y', 'C') THEN
1143: msc_sch_wb.atp_debug('*********End of procedure Move_PF_Bucketed_Demands ********');
1144: END IF;
1145:
1146: EXCEPTION
1147: WHEN OTHERS THEN

Line 1149: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1145:
1146: EXCEPTION
1147: WHEN OTHERS THEN
1148: IF PG_DEBUG in ('Y', 'C') THEN
1149: msc_sch_wb.atp_debug('Move_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1150: END IF;
1151: x_return_status := FND_API.G_RET_STS_ERROR;
1152:
1153: END Move_PF_Bucketed_Demands;

Line 1170: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bd_Dates ********');

1166: -- local variables
1167:
1168: BEGIN
1169: IF PG_DEBUG in ('Y', 'C') THEN
1170: msc_sch_wb.atp_debug('*********Begin procedure Move_PF_Bd_Dates ********');
1171: END IF;
1172:
1173: -- Initializing API return code
1174: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1217: msc_sch_wb.atp_debug('*********End of procedure Move_PF_Bd_Dates ********');

1213: and plan_id = p_plan_id;
1214: END IF;
1215:
1216: IF PG_DEBUG in ('Y', 'C') THEN
1217: msc_sch_wb.atp_debug('*********End of procedure Move_PF_Bd_Dates ********');
1218: END IF;
1219:
1220: EXCEPTION
1221: WHEN OTHERS THEN

Line 1223: msc_sch_wb.atp_debug('Move_PF_Bd_Dates: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1219:
1220: EXCEPTION
1221: WHEN OTHERS THEN
1222: IF PG_DEBUG in ('Y', 'C') THEN
1223: msc_sch_wb.atp_debug('Move_PF_Bd_Dates: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1224: END IF;
1225: x_return_status := FND_API.G_RET_STS_ERROR;
1226:
1227: END Move_PF_Bd_Dates;

Line 1249: msc_sch_wb.atp_debug('*********Begin procedure Insert_Bucketed_Demand ********');

1245: l_sysdate date := sysdate;
1246:
1247: BEGIN
1248: IF PG_DEBUG in ('Y', 'C') THEN
1249: msc_sch_wb.atp_debug('*********Begin procedure Insert_Bucketed_Demand ********');
1250: END IF;
1251:
1252: -- Initializing API return code
1253: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1320: msc_sch_wb.atp_debug('Insert_Bucketed_Demand: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1316:
1317: EXCEPTION
1318: WHEN OTHERS THEN
1319: IF PG_DEBUG in ('Y', 'C') THEN
1320: msc_sch_wb.atp_debug('Insert_Bucketed_Demand: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1321: END IF;
1322: x_return_status := FND_API.G_RET_STS_ERROR;
1323:
1324: END Insert_Bucketed_Demand;

Line 1339: msc_sch_wb.atp_debug('*********Begin procedure Find_PF_Bucketed_Demands ********');

1335: -- local variables
1336:
1337: BEGIN
1338: IF PG_DEBUG in ('Y', 'C') THEN
1339: msc_sch_wb.atp_debug('*********Begin procedure Find_PF_Bucketed_Demands ********');
1340: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'mem_item_id = ' ||to_char(p_bucketed_demands_rec.mem_item_id));
1341: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
1342: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
1343: END IF;

Line 1340: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'mem_item_id = ' ||to_char(p_bucketed_demands_rec.mem_item_id));

1336:
1337: BEGIN
1338: IF PG_DEBUG in ('Y', 'C') THEN
1339: msc_sch_wb.atp_debug('*********Begin procedure Find_PF_Bucketed_Demands ********');
1340: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'mem_item_id = ' ||to_char(p_bucketed_demands_rec.mem_item_id));
1341: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
1342: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
1343: END IF;
1344:

Line 1341: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));

1337: BEGIN
1338: IF PG_DEBUG in ('Y', 'C') THEN
1339: msc_sch_wb.atp_debug('*********Begin procedure Find_PF_Bucketed_Demands ********');
1340: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'mem_item_id = ' ||to_char(p_bucketed_demands_rec.mem_item_id));
1341: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
1342: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
1343: END IF;
1344:
1345: -- Initializing API return code

Line 1342: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));

1338: IF PG_DEBUG in ('Y', 'C') THEN
1339: msc_sch_wb.atp_debug('*********Begin procedure Find_PF_Bucketed_Demands ********');
1340: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'mem_item_id = ' ||to_char(p_bucketed_demands_rec.mem_item_id));
1341: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_plan_id = ' ||to_char(p_plan_id));
1342: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'p_parent_demand_id = ' ||to_char(p_parent_demand_id));
1343: END IF;
1344:
1345: -- Initializing API return code
1346: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1364: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'pf_item_id = ' ||to_char(p_bucketed_demands_rec.pf_item_id));

1360: p_bucketed_demands_rec.mem_bd_qty := 0;
1361: p_bucketed_demands_rec.mem_bd_date := null;
1362: END;
1363: IF PG_DEBUG in ('Y', 'C') THEN
1364: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'pf_item_id = ' ||to_char(p_bucketed_demands_rec.pf_item_id));
1365: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Date = ' ||to_char(p_bucketed_demands_rec.mem_bd_date));
1366: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Qty = ' ||to_char(p_bucketed_demands_rec.mem_bd_qty));
1367: END IF;
1368:

Line 1365: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Date = ' ||to_char(p_bucketed_demands_rec.mem_bd_date));

1361: p_bucketed_demands_rec.mem_bd_date := null;
1362: END;
1363: IF PG_DEBUG in ('Y', 'C') THEN
1364: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'pf_item_id = ' ||to_char(p_bucketed_demands_rec.pf_item_id));
1365: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Date = ' ||to_char(p_bucketed_demands_rec.mem_bd_date));
1366: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Qty = ' ||to_char(p_bucketed_demands_rec.mem_bd_qty));
1367: END IF;
1368:
1369: BEGIN

Line 1366: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Qty = ' ||to_char(p_bucketed_demands_rec.mem_bd_qty));

1362: END;
1363: IF PG_DEBUG in ('Y', 'C') THEN
1364: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'pf_item_id = ' ||to_char(p_bucketed_demands_rec.pf_item_id));
1365: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Date = ' ||to_char(p_bucketed_demands_rec.mem_bd_date));
1366: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Member item BD Qty = ' ||to_char(p_bucketed_demands_rec.mem_bd_qty));
1367: END IF;
1368:
1369: BEGIN
1370: SELECT allocated_quantity,

Line 1385: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Date = ' ||to_char(p_bucketed_demands_rec.pf_bd_date));

1381: p_bucketed_demands_rec.pf_bd_qty := 0;
1382: p_bucketed_demands_rec.pf_bd_date := null;
1383: END;
1384: IF PG_DEBUG in ('Y', 'C') THEN
1385: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Date = ' ||to_char(p_bucketed_demands_rec.pf_bd_date));
1386: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Qty = ' ||to_char(p_bucketed_demands_rec.pf_bd_qty));
1387: msc_sch_wb.atp_debug('*********End of procedure Find_PF_Bucketed_Demands ********');
1388: END IF;
1389:

Line 1386: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Qty = ' ||to_char(p_bucketed_demands_rec.pf_bd_qty));

1382: p_bucketed_demands_rec.pf_bd_date := null;
1383: END;
1384: IF PG_DEBUG in ('Y', 'C') THEN
1385: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Date = ' ||to_char(p_bucketed_demands_rec.pf_bd_date));
1386: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Qty = ' ||to_char(p_bucketed_demands_rec.pf_bd_qty));
1387: msc_sch_wb.atp_debug('*********End of procedure Find_PF_Bucketed_Demands ********');
1388: END IF;
1389:
1390: EXCEPTION

Line 1387: msc_sch_wb.atp_debug('*********End of procedure Find_PF_Bucketed_Demands ********');

1383: END;
1384: IF PG_DEBUG in ('Y', 'C') THEN
1385: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Date = ' ||to_char(p_bucketed_demands_rec.pf_bd_date));
1386: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Family item BD Qty = ' ||to_char(p_bucketed_demands_rec.pf_bd_qty));
1387: msc_sch_wb.atp_debug('*********End of procedure Find_PF_Bucketed_Demands ********');
1388: END IF;
1389:
1390: EXCEPTION
1391: WHEN OTHERS THEN

Line 1393: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1389:
1390: EXCEPTION
1391: WHEN OTHERS THEN
1392: IF PG_DEBUG in ('Y', 'C') THEN
1393: msc_sch_wb.atp_debug('Find_PF_Bucketed_Demands: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1394: END IF;
1395: x_return_status := FND_API.G_RET_STS_ERROR;
1396:
1397: END Find_PF_Bucketed_Demands;

Line 1424: msc_sch_wb.atp_debug('*********Begin procedure Add_PF_Rollup_Supplies ********');

1420: l_sysdate date := sysdate;
1421:
1422: BEGIN
1423: IF PG_DEBUG in ('Y', 'C') THEN
1424: msc_sch_wb.atp_debug('*********Begin procedure Add_PF_Rollup_Supplies ********');
1425: END IF;
1426:
1427: -- Initializing API return code
1428: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');

1470: NVL(MSC_ATP_PVT.G_PARTNER_ID,-1), -- Bug 3558125
1471: NVL(MSC_ATP_PVT.G_PARTNER_SITE_ID,-1) -- Bug 3558125
1472: );
1473: IF PG_DEBUG in ('Y', 'C') THEN
1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));

Line 1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');

1471: NVL(MSC_ATP_PVT.G_PARTNER_SITE_ID,-1) -- Bug 3558125
1472: );
1473: IF PG_DEBUG in ('Y', 'C') THEN
1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1479: msc_sch_wb.atp_debug('**************************************');

Line 1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));

1472: );
1473: IF PG_DEBUG in ('Y', 'C') THEN
1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1479: msc_sch_wb.atp_debug('**************************************');
1480: END IF;

Line 1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));

1473: IF PG_DEBUG in ('Y', 'C') THEN
1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1479: msc_sch_wb.atp_debug('**************************************');
1480: END IF;
1481: ELSE

Line 1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));

1474: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1479: msc_sch_wb.atp_debug('**************************************');
1480: END IF;
1481: ELSE
1482: INSERT INTO MSC_ALLOC_SUPPLIES(

Line 1479: msc_sch_wb.atp_debug('**************************************');

1475: msc_sch_wb.atp_debug('* Add rollup supply for member item ');
1476: msc_sch_wb.atp_debug('* Member Item Id = ' ||to_char(p_member_item_id));
1477: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1478: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1479: msc_sch_wb.atp_debug('**************************************');
1480: END IF;
1481: ELSE
1482: INSERT INTO MSC_ALLOC_SUPPLIES(
1483: PLAN_ID,

Line 1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');

1521: NVL(MSC_ATP_PVT.G_PARTNER_ID,-1), -- Bug 3558125
1522: NVL(MSC_ATP_PVT.G_PARTNER_SITE_ID,-1) -- Bug 3558125
1523: );
1524: IF PG_DEBUG in ('Y', 'C') THEN
1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));

Line 1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');

1522: NVL(MSC_ATP_PVT.G_PARTNER_SITE_ID,-1) -- Bug 3558125
1523: );
1524: IF PG_DEBUG in ('Y', 'C') THEN
1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1530: msc_sch_wb.atp_debug('**************************************');

Line 1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));

1523: );
1524: IF PG_DEBUG in ('Y', 'C') THEN
1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1530: msc_sch_wb.atp_debug('**************************************');
1531: END IF;

Line 1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));

1524: IF PG_DEBUG in ('Y', 'C') THEN
1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1530: msc_sch_wb.atp_debug('**************************************');
1531: END IF;
1532: END IF;

Line 1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));

1525: msc_sch_wb.atp_debug('*********** Rollup Supply **********');
1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1530: msc_sch_wb.atp_debug('**************************************');
1531: END IF;
1532: END IF;
1533:

Line 1530: msc_sch_wb.atp_debug('**************************************');

1526: msc_sch_wb.atp_debug('* Add rollup supply for family item ');
1527: msc_sch_wb.atp_debug('* Family Item Id = ' ||to_char(p_family_item_id));
1528: msc_sch_wb.atp_debug('* Qty = ' ||to_char(p_order_quantity));
1529: msc_sch_wb.atp_debug('* Date = ' ||to_char(p_schedule_date));
1530: msc_sch_wb.atp_debug('**************************************');
1531: END IF;
1532: END IF;
1533:
1534: IF PG_DEBUG in ('Y', 'C') THEN

Line 1535: msc_sch_wb.atp_debug('*********End of procedure Add_PF_Rollup_Supplies ********');

1531: END IF;
1532: END IF;
1533:
1534: IF PG_DEBUG in ('Y', 'C') THEN
1535: msc_sch_wb.atp_debug('*********End of procedure Add_PF_Rollup_Supplies ********');
1536: END IF;
1537:
1538: EXCEPTION
1539: WHEN OTHERS THEN

Line 1541: msc_sch_wb.atp_debug('Add_PF_Rollup_Supplies: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1537:
1538: EXCEPTION
1539: WHEN OTHERS THEN
1540: IF PG_DEBUG in ('Y', 'C') THEN
1541: msc_sch_wb.atp_debug('Add_PF_Rollup_Supplies: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1542: END IF;
1543: x_return_status := FND_API.G_RET_STS_ERROR;
1544:
1545: END Add_PF_Rollup_Supplies;

Line 1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');

1563: l_sysdate date := sysdate;
1564:
1565: BEGIN
1566: IF PG_DEBUG in ('Y', 'C') THEN
1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');
1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));

Line 1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));

1564:
1565: BEGIN
1566: IF PG_DEBUG in ('Y', 'C') THEN
1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');
1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));

Line 1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));

1565: BEGIN
1566: IF PG_DEBUG in ('Y', 'C') THEN
1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');
1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));

Line 1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));

1566: IF PG_DEBUG in ('Y', 'C') THEN
1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');
1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));
1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));

Line 1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));

1567: msc_sch_wb.atp_debug('*********Begin procedure Update_PF_Rollup_Supplies ********');
1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));
1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));
1575: END IF;

Line 1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));

1568: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_plan_id ='||to_char(p_plan_id));
1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));
1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));
1575: END IF;
1576:

Line 1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));

1569: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_parent_transaction_id ='||to_char(p_parent_transaction_id));
1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));
1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));
1575: END IF;
1576:
1577: -- Initializing API return code

Line 1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));

1570: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1571: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1572: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_date ='||to_char(p_date));
1573: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_quantity ='||to_char(p_quantity));
1574: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'p_atf_date ='||to_char(p_atf_date));
1575: END IF;
1576:
1577: -- Initializing API return code
1578: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1617: msc_sch_wb.atp_debug('*********End of procedure Update_PF_Rollup_Supplies ********');

1613: AND parent_transaction_id = p_parent_transaction_id;
1614: END IF;
1615:
1616: IF PG_DEBUG in ('Y', 'C') THEN
1617: msc_sch_wb.atp_debug('*********End of procedure Update_PF_Rollup_Supplies ********');
1618: END IF;
1619:
1620: EXCEPTION
1621: WHEN OTHERS THEN

Line 1623: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1619:
1620: EXCEPTION
1621: WHEN OTHERS THEN
1622: IF PG_DEBUG in ('Y', 'C') THEN
1623: msc_sch_wb.atp_debug('Update_PF_Rollup_Supplies: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1624: END IF;
1625: x_return_status := FND_API.G_RET_STS_ERROR;
1626:
1627: END Update_PF_Rollup_Supplies;

Line 1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');

1657: l_rows_proc NUMBER := 0;
1658:
1659: BEGIN
1660: IF PG_DEBUG in ('Y', 'C') THEN
1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');
1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));

Line 1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));

1658:
1659: BEGIN
1660: IF PG_DEBUG in ('Y', 'C') THEN
1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');
1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));

Line 1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));

1659: BEGIN
1660: IF PG_DEBUG in ('Y', 'C') THEN
1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');
1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));

Line 1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro

1660: IF PG_DEBUG in ('Y', 'C') THEN
1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');
1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));

Line 1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));

1661: msc_sch_wb.atp_debug('*** Begin Add_PF_Stealing_Supply_Details Procedure ***');
1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));

Line 1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));

1662: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_plan_id ='||to_char(p_plan_id));
1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));

Line 1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));

1663: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_identifier ='||to_char(p_identifier));
1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);

Line 1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));

1664: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_demand_source_type ='||to_char(p_demand_source_type));--cmro
1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);

Line 1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));

1665: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_item_id ='||to_char(p_mem_item_id));
1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));

Line 1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));

1666: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_item_id ='||to_char(p_pf_item_id));
1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));
1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));

Line 1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);

1667: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_organization_id = ' ||to_char(p_organization_id));
1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));
1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));
1675: END IF;

Line 1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);

1668: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_instance_id = ' ||to_char(p_sr_instance_id));
1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));
1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));
1675: END IF;
1676:

Line 1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));

1669: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_mem_stealing_quantity ='||to_char(p_mem_stealing_quantity));
1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));
1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));
1675: END IF;
1676:
1677: -- Initializing API return code

Line 1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));

1670: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_pf_stealing_quantity ='||to_char(p_pf_stealing_quantity));
1671: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stealing_demand_class = '||p_stealing_demand_class);
1672: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_stolen_demand_class = ' ||p_stolen_demand_class);
1673: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_ship_date = ' ||to_char(p_ship_date));
1674: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'p_atf_date = ' ||to_char(p_atf_date));
1675: END IF;
1676:
1677: -- Initializing API return code
1678: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1692: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stealing Info');

1688: --SELECT msc_supplies_s.nextval into p_transaction_id from dual;
1689:
1690: IF p_mem_stealing_quantity > 0 THEN
1691: IF PG_DEBUG in ('Y', 'C') THEN
1692: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stealing Info');
1693: END IF;
1694:
1695: -- Add Member item
1696: INSERT INTO MSC_ALLOC_SUPPLIES

Line 1720: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stolen Info');

1716: l_rows_proc := SQL%ROWCOUNT;
1717:
1718: -- Next add the Stolen Data.
1719: IF PG_DEBUG in ('Y', 'C') THEN
1720: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stolen Info');
1721: END IF;
1722:
1723: INSERT INTO MSC_ALLOC_SUPPLIES
1724: (plan_id, inventory_item_id, organization_id, sr_instance_id,

Line 1745: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stealing Info');

1741: END IF;
1742:
1743: IF (l_pf_stealing_rec_date is not null) and (p_pf_stealing_quantity > 0) THEN
1744: IF PG_DEBUG in ('Y', 'C') THEN
1745: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stealing Info');
1746: END IF;
1747:
1748: IF p_transaction_id is not null THEN --bug3555084
1749:

Line 1794: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stolen Info');

1790: END IF;
1791: --bug3555084 end
1792: -- Next add the Stolen Data.
1793: IF PG_DEBUG in ('Y', 'C') THEN
1794: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'before insert into msc_alloc_supplies-Stolen Info');
1795: END IF;
1796:
1797: INSERT INTO MSC_ALLOC_SUPPLIES
1798: (plan_id, inventory_item_id, organization_id, sr_instance_id,

Line 1818: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'Total Rows inserted ' || l_rows_proc);

1814: l_rows_proc := l_rows_proc + SQL%ROWCOUNT;
1815: END IF;
1816:
1817: IF PG_DEBUG in ('Y', 'C') THEN
1818: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'Total Rows inserted ' || l_rows_proc);
1819: END IF;
1820:
1821: EXCEPTION
1822: WHEN OTHERS THEN

Line 1824: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1820:
1821: EXCEPTION
1822: WHEN OTHERS THEN
1823: IF PG_DEBUG in ('Y', 'C') THEN
1824: msc_sch_wb.atp_debug('Add_PF_Stealing_Supply_Details: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1825: END IF;
1826: x_return_status := FND_API.G_RET_STS_ERROR;
1827:
1828: END Add_PF_Stealing_Supply_Details;

Line 1862: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf');

1858: l_return_status VARCHAR2(1);
1859:
1860: BEGIN
1861: IF PG_DEBUG in ('Y', 'C') THEN
1862: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf');
1863: END IF;
1864:
1865: -- Initializing API return code
1866: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 1887: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods_Summ');

1883: l_return_status
1884: );
1885: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1886: IF PG_DEBUG in ('Y', 'C') THEN
1887: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods_Summ');
1888: END IF;
1889: x_return_status := FND_API.G_RET_STS_ERROR;
1890: return;
1891: END IF;

Line 1912: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods');

1908: l_return_status
1909: );
1910: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1911: IF PG_DEBUG in ('Y', 'C') THEN
1912: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods');
1913: END IF;
1914: x_return_status := FND_API.G_RET_STS_ERROR;
1915: return;
1916: END IF;

Line 1935: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds_Summ');

1931: l_return_status
1932: );
1933: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1934: IF PG_DEBUG in ('Y', 'C') THEN
1935: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds_Summ');
1936: END IF;
1937: x_return_status := FND_API.G_RET_STS_ERROR;
1938: return;
1939: END IF;

Line 1954: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds');

1950: l_return_status
1951: );
1952: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
1953: IF PG_DEBUG in ('Y', 'C') THEN
1954: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds');
1955: END IF;
1956: x_return_status := FND_API.G_RET_STS_ERROR;
1957: return;
1958: END IF;

Line 1964: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

1960: END IF; -- ODS/PDS
1961: EXCEPTION
1962: WHEN OTHERS THEN
1963: IF PG_DEBUG in ('Y', 'C') THEN
1964: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
1965: END IF;
1966: x_return_status := FND_API.G_RET_STS_ERROR;
1967:
1968: END Get_Mat_Avail_Pf;

Line 1997: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Dtls');

1993: ) IS
1994: l_return_status VARCHAR2(1);
1995: BEGIN
1996: IF PG_DEBUG in ('Y', 'C') THEN
1997: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Dtls');
1998: END IF;
1999:
2000: -- Initializing API return code
2001: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2025: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods_Dtls');

2021: l_return_status
2022: );
2023: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
2024: IF PG_DEBUG in ('Y', 'C') THEN
2025: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Ods_Dtls');
2026: END IF;
2027: x_return_status := FND_API.G_RET_STS_ERROR;
2028: return;
2029: END IF;

Line 2045: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds_Dtls');

2041: l_return_status
2042: );
2043: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
2044: IF PG_DEBUG in ('Y', 'C') THEN
2045: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occured in procedure Get_Mat_Avail_Pf_Pds_Dtls');
2046: END IF;
2047: x_return_status := FND_API.G_RET_STS_ERROR;
2048: return;
2049: END IF;

Line 2054: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

2050: END IF; -- ODS/PDS
2051: EXCEPTION
2052: WHEN OTHERS THEN
2053: IF PG_DEBUG in ('Y', 'C') THEN
2054: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
2055: END IF;
2056: x_return_status := FND_API.G_RET_STS_ERROR;
2057:
2058: END Get_Mat_Avail_Pf_Dtls;

Line 2079: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods_Summ');

2075: ) IS
2076:
2077: BEGIN
2078: IF PG_DEBUG in ('Y', 'C') THEN
2079: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods_Summ');
2080: END IF;
2081:
2082: -- Initializing API return code
2083: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2148: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

2144: order by SD_DATE; --4698199
2145: EXCEPTION
2146: WHEN OTHERS THEN
2147: IF PG_DEBUG in ('Y', 'C') THEN
2148: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
2149: END IF;
2150: x_return_status := FND_API.G_RET_STS_ERROR;
2151:
2152: END Get_Mat_Avail_Pf_Ods_Summ;

Line 2178: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods');

2174: l_sysdate date := sysdate;
2175:
2176: BEGIN
2177: IF PG_DEBUG in ('Y', 'C') THEN
2178: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods');
2179: END IF;
2180:
2181: -- Initializing API return code
2182: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2407: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

2403:
2404: EXCEPTION
2405: WHEN OTHERS THEN
2406: IF PG_DEBUG in ('Y', 'C') THEN
2407: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
2408: END IF;
2409: x_return_status := FND_API.G_RET_STS_ERROR;
2410:
2411: END Get_Mat_Avail_Pf_Ods;

Line 2439: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds_Summ');

2435: ) IS
2436:
2437: BEGIN
2438: IF PG_DEBUG in ('Y', 'C') THEN
2439: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds_Summ');
2440: END IF;
2441:
2442: -- Initializing API return code
2443: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2513: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

2509:
2510: EXCEPTION
2511: WHEN OTHERS THEN
2512: IF PG_DEBUG in ('Y', 'C') THEN
2513: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
2514: END IF;
2515: x_return_status := FND_API.G_RET_STS_ERROR;
2516:
2517: END Get_Mat_Avail_Pf_Pds_Summ;

Line 2543: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds');

2539: ) IS
2540:
2541: BEGIN
2542: IF PG_DEBUG in ('Y', 'C') THEN
2543: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds');
2544: END IF;
2545:
2546: -- Initializing API return code
2547: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 2597: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

2593:
2594: EXCEPTION
2595: WHEN OTHERS THEN
2596: IF PG_DEBUG in ('Y', 'C') THEN
2597: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
2598: END IF;
2599: x_return_status := FND_API.G_RET_STS_ERROR;
2600:
2601: END Get_Mat_Avail_Pf_Pds;

Line 2631: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods_Dtls');

2627: l_sysdate DATE := sysdate;
2628:
2629: BEGIN
2630: IF PG_DEBUG in ('Y', 'C') THEN
2631: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Ods_Dtls');
2632: END IF;
2633:
2634: -- Initializing API return code
2635: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 3037: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

3033:
3034: EXCEPTION
3035: WHEN OTHERS THEN
3036: IF PG_DEBUG in ('Y', 'C') THEN
3037: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Ods_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
3038: END IF;
3039: x_return_status := FND_API.G_RET_STS_ERROR;
3040:
3041: END Get_Mat_Avail_Pf_Ods_Dtls;

Line 3077: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds_Dtls');

3073: l_sysdate DATE := sysdate;
3074:
3075: BEGIN
3076: IF PG_DEBUG in ('Y', 'C') THEN
3077: msc_sch_wb.atp_debug('Begin Get_Mat_Avail_Pf_Pds_Dtls');
3078: END IF;
3079:
3080: -- Initializing API return code
3081: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 3279: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

3275:
3276: EXCEPTION
3277: WHEN OTHERS THEN
3278: IF PG_DEBUG in ('Y', 'C') THEN
3279: msc_sch_wb.atp_debug('Get_Mat_Avail_Pf_Pds_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
3280: END IF;
3281: x_return_status := FND_API.G_RET_STS_ERROR;
3282:
3283: END Get_Mat_Avail_Pf_Pds_Dtls;

Line 3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');

3299: ) IS
3300: l_alloc_percent NUMBER;
3301: BEGIN
3302: IF PG_DEBUG in ('Y', 'C') THEN
3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');
3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);

Line 3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);

3300: l_alloc_percent NUMBER;
3301: BEGIN
3302: IF PG_DEBUG in ('Y', 'C') THEN
3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');
3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);

Line 3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);

3301: BEGIN
3302: IF PG_DEBUG in ('Y', 'C') THEN
3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');
3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);

Line 3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);

3302: IF PG_DEBUG in ('Y', 'C') THEN
3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');
3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);

Line 3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);

3303: msc_sch_wb.atp_debug('******* Begin Set_Alloc_Rule_Variables **********');
3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);
3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);

Line 3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);

3304: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_member_id: ' || p_member_id);
3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);
3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);
3312: END IF;

Line 3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);

3305: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_family_id: ' || p_family_id);
3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);
3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);
3312: END IF;
3313:

Line 3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);

3306: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_instance_id: ' || p_instance_id);
3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);
3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);
3312: END IF;
3313:
3314: -- Initializing API return code

Line 3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);

3307: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_org_id: ' || p_org_id);
3308: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_demand_class: ' || p_demand_class);
3309: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: p_atf_date: ' || p_atf_date);
3310: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_ALLOCATION_METHOD: ' || MSC_ATP_PVT.G_ALLOCATION_METHOD);
3311: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: G_HIERARCHY_PROFILE: ' || MSC_AATP_PVT.G_HIERARCHY_PROFILE);
3312: END IF;
3313:
3314: -- Initializing API return code
3315: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 3338: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Determine whether rule exist for member item within ATF');

3334: ELSE use allocation rule from family within ATF
3335: - Always use allocation rule from family outside ATF
3336: */
3337: IF PG_DEBUG in ('Y', 'C') THEN
3338: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Determine whether rule exist for member item within ATF');
3339: END IF;
3340:
3341: IF MSC_AATP_PVT.G_HIERARCHY_PROFILE = 1 THEN
3342: BEGIN

Line 3361: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Alloc Rule not found at member level');

3357: END IF;
3358: EXCEPTION
3359: WHEN NO_DATA_FOUND THEN
3360: IF PG_DEBUG in ('Y', 'C') THEN
3361: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Alloc Rule not found at member level');
3362: END IF;
3363: MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF := 'N';
3364: END;
3365: ELSE

Line 3385: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Alloc Rule not found for member within ATF');

3381: END IF;
3382: EXCEPTION
3383: WHEN NO_DATA_FOUND THEN
3384: IF PG_DEBUG in ('Y', 'C') THEN
3385: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Alloc Rule not found for member within ATF');
3386: END IF;
3387: MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF := 'N';
3388: END;
3389: END IF;

Line 3392: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Always use rule for family item outside ATF');

3388: END;
3389: END IF;
3390:
3391: IF PG_DEBUG in ('Y', 'C') THEN
3392: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Always use rule for family item outside ATF');
3393: END IF;
3394: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF := 'Y';
3395: END IF;
3396:

Line 3398: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_MEM_RULE_WITHIN_ATF = ' || MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF);

3394: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF := 'Y';
3395: END IF;
3396:
3397: IF PG_DEBUG in ('Y', 'C') THEN
3398: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_MEM_RULE_WITHIN_ATF = ' || MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF);
3399: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_PF_RULE_OUTSIDE_ATF = ' || MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
3400: END IF;
3401:
3402: EXCEPTION

Line 3399: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_PF_RULE_OUTSIDE_ATF = ' || MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);

3395: END IF;
3396:
3397: IF PG_DEBUG in ('Y', 'C') THEN
3398: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_MEM_RULE_WITHIN_ATF = ' || MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF);
3399: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'G_PF_RULE_OUTSIDE_ATF = ' || MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
3400: END IF;
3401:
3402: EXCEPTION
3403: WHEN OTHERS THEN

Line 3405: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

3401:
3402: EXCEPTION
3403: WHEN OTHERS THEN
3404: IF PG_DEBUG in ('Y', 'C') THEN
3405: msc_sch_wb.atp_debug('Set_Alloc_Rule_Variables: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
3406: END IF;
3407: x_return_status := FND_API.G_RET_STS_ERROR;
3408:
3409: END Set_Alloc_Rule_Variables;

Line 3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');

3438: ) IS
3439:
3440: BEGIN
3441: IF PG_DEBUG in ('Y', 'C') THEN
3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');
3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);

Line 3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);

3439:
3440: BEGIN
3441: IF PG_DEBUG in ('Y', 'C') THEN
3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');
3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);

Line 3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);

3440: BEGIN
3441: IF PG_DEBUG in ('Y', 'C') THEN
3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');
3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);
3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);

Line 3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);

3441: IF PG_DEBUG in ('Y', 'C') THEN
3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');
3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);
3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);
3449: END IF;

Line 3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);

3442: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf **********');
3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);
3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);
3449: END IF;
3450:

Line 3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);

3443: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_member_id: ' || p_member_id);
3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);
3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);
3449: END IF;
3450:
3451: -- Initializing API return code

Line 3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);

3444: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_family_id: ' || p_family_id);
3445: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_instance_id: ' || p_instance_id);
3446: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_plan_id: ' || p_plan_id);
3447: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_demand_class: ' || p_demand_class);
3448: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: p_level_id: ' || p_level_id);
3449: END IF;
3450:
3451: -- Initializing API return code
3452: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 3875: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

3871: order by SD_DATE; --4698199
3872: EXCEPTION
3873: WHEN OTHERS THEN
3874: IF PG_DEBUG in ('Y', 'C') THEN
3875: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
3876: END IF;
3877: x_return_status := FND_API.G_RET_STS_ERROR;
3878:
3879: END Item_Alloc_Avail_Pf;

Line 3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');

3902: ) IS
3903:
3904: BEGIN
3905: IF PG_DEBUG in ('Y', 'C') THEN
3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');
3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);

Line 3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);

3903:
3904: BEGIN
3905: IF PG_DEBUG in ('Y', 'C') THEN
3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');
3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);

Line 3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);

3904: BEGIN
3905: IF PG_DEBUG in ('Y', 'C') THEN
3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');
3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);
3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);

Line 3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);

3905: IF PG_DEBUG in ('Y', 'C') THEN
3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');
3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);
3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);
3913: END IF;

Line 3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);

3906: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Unalloc **********');
3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);
3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);
3913: END IF;
3914:

Line 3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);

3907: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_member_id: ' || p_member_id);
3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);
3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);
3913: END IF;
3914:
3915: -- Initializing API return code

Line 3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);

3908: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_family_id: ' || p_family_id);
3909: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_instance_id: ' || p_instance_id);
3910: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_plan_id: ' || p_plan_id);
3911: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_demand_class: ' || p_demand_class);
3912: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: p_level_id: ' || p_level_id);
3913: END IF;
3914:
3915: -- Initializing API return code
3916: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 4343: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

4339:
4340: EXCEPTION
4341: WHEN OTHERS THEN
4342: IF PG_DEBUG in ('Y', 'C') THEN
4343: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Unalloc: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
4344: END IF;
4345: x_return_status := FND_API.G_RET_STS_ERROR;
4346:
4347: END Item_Alloc_Avail_Pf_Unalloc;

Line 4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');

4387: l_sysdate DATE := sysdate;
4388:
4389: BEGIN
4390: IF PG_DEBUG in ('Y', 'C') THEN
4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');
4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);

Line 4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);

4388:
4389: BEGIN
4390: IF PG_DEBUG in ('Y', 'C') THEN
4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');
4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);

Line 4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);

4389: BEGIN
4390: IF PG_DEBUG in ('Y', 'C') THEN
4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');
4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);

Line 4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);

4390: IF PG_DEBUG in ('Y', 'C') THEN
4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');
4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);

Line 4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);

4391: msc_sch_wb.atp_debug('******* Begin Item_Alloc_Avail_Pf_Dtls **********');
4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);

Line 4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);

4392: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);

Line 4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);

4393: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);

Line 4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);

4394: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_member_id: ' || p_sr_member_id);
4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);
4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);

Line 4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);

4395: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_sr_family_id: ' || p_sr_family_id);
4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);
4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);
4403: END IF;

Line 4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);

4396: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);
4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);
4403: END IF;
4404:

Line 4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);

4397: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);
4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);
4403: END IF;
4404:
4405: -- Initializing API return code

Line 4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);

4398: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_demand_class: ' || p_demand_class);
4399: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_level_id: ' || p_level_id);
4400: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_identifier: ' || p_identifier);
4401: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_scenario_id: ' || p_scenario_id);
4402: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: p_uom_code: ' || p_uom_code);
4403: END IF;
4404:
4405: -- Initializing API return code
4406: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5314: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5310: ;
5311: EXCEPTION
5312: WHEN OTHERS THEN
5313: IF PG_DEBUG in ('Y', 'C') THEN
5314: msc_sch_wb.atp_debug('Item_Alloc_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5315: END IF;
5316: x_return_status := FND_API.G_RET_STS_ERROR;
5317:
5318: END Item_Alloc_Avail_Pf_Dtls;

Line 5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');

5335: ) IS
5336:
5337: BEGIN
5338: IF PG_DEBUG in ('Y', 'C') THEN
5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');
5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);

Line 5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);

5336:
5337: BEGIN
5338: IF PG_DEBUG in ('Y', 'C') THEN
5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');
5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);
5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);

Line 5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);

5337: BEGIN
5338: IF PG_DEBUG in ('Y', 'C') THEN
5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');
5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);
5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);
5345: END IF;

Line 5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);

5338: IF PG_DEBUG in ('Y', 'C') THEN
5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');
5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);
5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);
5345: END IF;
5346:

Line 5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);

5339: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf **********');
5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);
5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);
5345: END IF;
5346:
5347: -- Initializing API return code

Line 5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);

5340: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_member_id: ' || p_member_id);
5341: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_family_id: ' || p_family_id);
5342: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_instance_id: ' || p_instance_id);
5343: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: p_plan_id: ' || p_plan_id);
5344: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf p_demand_class: ' || p_demand_class);
5345: END IF;
5346:
5347: -- Initializing API return code
5348: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5389: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5385:
5386: EXCEPTION
5387: WHEN OTHERS THEN
5388: IF PG_DEBUG in ('Y', 'C') THEN
5389: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5390: END IF;
5391: x_return_status := FND_API.G_RET_STS_ERROR;
5392:
5393: END Item_Prealloc_Avail_Pf;

Line 5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');

5411: ) IS
5412:
5413: BEGIN
5414: IF PG_DEBUG in ('Y', 'C') THEN
5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');
5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);

Line 5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);

5412:
5413: BEGIN
5414: IF PG_DEBUG in ('Y', 'C') THEN
5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');
5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);
5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);

Line 5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);

5413: BEGIN
5414: IF PG_DEBUG in ('Y', 'C') THEN
5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');
5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);
5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);
5421: END IF;

Line 5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);

5414: IF PG_DEBUG in ('Y', 'C') THEN
5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');
5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);
5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);
5421: END IF;
5422:

Line 5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);

5415: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Summ **********');
5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);
5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);
5421: END IF;
5422:
5423: -- Initializing API return code

Line 5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);

5416: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_member_id: ' || p_member_id);
5417: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_family_id: ' || p_family_id);
5418: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_instance_id: ' || p_instance_id);
5419: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: p_plan_id: ' || p_plan_id);
5420: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ p_demand_class: ' || p_demand_class);
5421: END IF;
5422:
5423: -- Initializing API return code
5424: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5492: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5488:
5489: EXCEPTION
5490: WHEN OTHERS THEN
5491: IF PG_DEBUG in ('Y', 'C') THEN
5492: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5493: END IF;
5494: x_return_status := FND_API.G_RET_STS_ERROR;
5495:
5496: END Item_Prealloc_Avail_Pf_Summ;

Line 5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');

5522: l_null_date DATE; --bug3814584
5523: l_return_status VARCHAR2(1);
5524: BEGIN
5525: IF PG_DEBUG in ('Y', 'C') THEN
5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');
5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);

Line 5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);

5523: l_return_status VARCHAR2(1);
5524: BEGIN
5525: IF PG_DEBUG in ('Y', 'C') THEN
5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');
5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);

Line 5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);

5524: BEGIN
5525: IF PG_DEBUG in ('Y', 'C') THEN
5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');
5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);
5532: END IF;

Line 5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);

5525: IF PG_DEBUG in ('Y', 'C') THEN
5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');
5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);
5532: END IF;
5533:

Line 5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);

5526: msc_sch_wb.atp_debug('******* Begin Item_Prealloc_Avail_Pf_Dtls **********');
5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);
5532: END IF;
5533:
5534: -- Initializing API return code

Line 5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);

5527: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_member_id: ' || p_member_id);
5528: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_family_id: ' || p_family_id);
5529: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_instance_id: ' || p_instance_id);
5530: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: p_plan_id: ' || p_plan_id);
5531: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls p_demand_class: ' || p_demand_class);
5532: END IF;
5533:
5534: -- Initializing API return code
5535: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5743: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: ' || 'Error occured in procedure Populate_Original_Demand_Qty');

5739: );
5740:
5741: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
5742: IF PG_DEBUG in ('Y', 'C') THEN
5743: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: ' || 'Error occured in procedure Populate_Original_Demand_Qty');
5744: END IF;
5745: x_return_status := FND_API.G_RET_STS_ERROR;
5746: return;
5747: END IF;

Line 5752: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5748:
5749: EXCEPTION
5750: WHEN OTHERS THEN
5751: IF PG_DEBUG in ('Y', 'C') THEN
5752: msc_sch_wb.atp_debug('Item_Prealloc_Avail_Pf_Dtls: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5753: END IF;
5754: x_return_status := FND_API.G_RET_STS_ERROR;
5755:
5756: END Item_Prealloc_Avail_Pf_Dtls;

Line 5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');

5773: ) IS
5774:
5775: BEGIN
5776: IF PG_DEBUG in ('Y', 'C') THEN
5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');
5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);
5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);
5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);
5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);

Line 5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);

5774:
5775: BEGIN
5776: IF PG_DEBUG in ('Y', 'C') THEN
5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');
5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);
5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);
5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);
5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);
5782: END IF;

Line 5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);

5775: BEGIN
5776: IF PG_DEBUG in ('Y', 'C') THEN
5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');
5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);
5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);
5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);
5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);
5782: END IF;
5783:

Line 5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);

5776: IF PG_DEBUG in ('Y', 'C') THEN
5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');
5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);
5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);
5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);
5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);
5782: END IF;
5783:
5784: -- Initializing API return code

Line 5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);

5777: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf **********');
5778: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_member_id: ' || p_member_id);
5779: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_family_id: ' || p_family_id);
5780: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_instance_id: ' || p_instance_id);
5781: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: p_plan_id: ' || p_plan_id);
5782: END IF;
5783:
5784: -- Initializing API return code
5785: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5842: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5838:
5839: EXCEPTION
5840: WHEN OTHERS THEN
5841: IF PG_DEBUG in ('Y', 'C') THEN
5842: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5843: END IF;
5844: x_return_status := FND_API.G_RET_STS_ERROR;
5845:
5846: END Get_Forward_Mat_Pf;

Line 5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');

5864: ) IS
5865:
5866: BEGIN
5867: IF PG_DEBUG in ('Y', 'C') THEN
5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');
5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);
5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);
5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);
5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);

Line 5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);

5865:
5866: BEGIN
5867: IF PG_DEBUG in ('Y', 'C') THEN
5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');
5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);
5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);
5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);
5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);
5873: END IF;

Line 5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);

5866: BEGIN
5867: IF PG_DEBUG in ('Y', 'C') THEN
5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');
5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);
5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);
5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);
5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);
5873: END IF;
5874:

Line 5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);

5867: IF PG_DEBUG in ('Y', 'C') THEN
5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');
5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);
5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);
5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);
5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);
5873: END IF;
5874:
5875: -- Initializing API return code

Line 5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);

5868: msc_sch_wb.atp_debug('******* Begin Get_Forward_Mat_Pf_Summ **********');
5869: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_member_id: ' || p_member_id);
5870: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_family_id: ' || p_family_id);
5871: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_instance_id: ' || p_instance_id);
5872: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: p_plan_id: ' || p_plan_id);
5873: END IF;
5874:
5875: -- Initializing API return code
5876: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 5953: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

5949:
5950: EXCEPTION
5951: WHEN OTHERS THEN
5952: IF PG_DEBUG in ('Y', 'C') THEN
5953: msc_sch_wb.atp_debug('Get_Forward_Mat_Pf_Summ: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
5954: END IF;
5955: x_return_status := FND_API.G_RET_STS_ERROR;
5956:
5957: END Get_Forward_Mat_Pf_Summ;

Line 5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');

5987: l_return_status VARCHAR2(1);
5988: BEGIN
5989:
5990: IF PG_DEBUG in ('Y', 'C') THEN
5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');
5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);

Line 5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);

5988: BEGIN
5989:
5990: IF PG_DEBUG in ('Y', 'C') THEN
5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');
5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);

Line 5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);

5989:
5990: IF PG_DEBUG in ('Y', 'C') THEN
5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');
5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);

Line 5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);

5990: IF PG_DEBUG in ('Y', 'C') THEN
5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');
5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294

Line 5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);

5991: msc_sch_wb.atp_debug('******* Begin Insert_SD_Into_Details_Temp **********');
5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);

Line 5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);

5992: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_type: ' || p_type);
5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);

Line 5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);

5993: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_member_id: ' || p_member_id);
5994: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_family_id: ' || p_family_id);
5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);

Line 5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);

5995: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_member_id: ' || p_sr_member_id);
5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);

Line 6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);

5996: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_sr_family_id: ' || p_sr_family_id);
5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);

Line 6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);

5997: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_id: ' || p_org_id);
5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);

Line 6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);

5998: --bug3671294
5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);

Line 6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);

5999: --msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_inv_item_name: ' || p_inv_item_name);
6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);

Line 6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);

6000: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_org_code: ' || p_org_code);
6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);
6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);

Line 6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);

6001: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_instance_id: ' || p_instance_id);
6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);
6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);
6009: END IF;

Line 6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);

6002: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_plan_id: ' || p_plan_id);
6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);
6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);
6009: END IF;
6010:

Line 6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);

6003: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_itf: ' || p_itf);
6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);
6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);
6009: END IF;
6010:
6011: -- initialize API return status to success

Line 6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);

6004: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_level_id: ' || p_level_id);
6005: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_session_id: ' || p_session_id);
6006: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_record_type: ' || p_record_type);
6007: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_scenario_id: ' || p_scenario_id);
6008: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: p_uom_code: ' || p_uom_code);
6009: END IF;
6010:
6011: -- initialize API return status to success
6012: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7274: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: ' || 'Error code:' || to_char(sqlcode));

7270:
7271: EXCEPTION
7272: WHEN OTHERS THEN
7273: IF PG_DEBUG in ('Y', 'C') THEN
7274: msc_sch_wb.atp_debug('Insert_SD_Into_Details_Temp: ' || 'Error code:' || to_char(sqlcode));
7275: END IF;
7276: x_return_status := FND_API.G_RET_STS_ERROR;
7277:
7278: END Insert_SD_Into_Details_Temp;

Line 7296: msc_sch_wb.atp_debug('********** Begin Populate_Original_Demand_Qty Procedure **********');

7292: -- local variables
7293: BEGIN
7294:
7295: IF PG_DEBUG in ('Y', 'C') THEN
7296: msc_sch_wb.atp_debug('********** Begin Populate_Original_Demand_Qty Procedure **********');
7297: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_table: '|| to_char(p_table));
7298: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_session_id: '|| to_char(p_session_id));
7299: END IF;
7300:

Line 7297: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_table: '|| to_char(p_table));

7293: BEGIN
7294:
7295: IF PG_DEBUG in ('Y', 'C') THEN
7296: msc_sch_wb.atp_debug('********** Begin Populate_Original_Demand_Qty Procedure **********');
7297: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_table: '|| to_char(p_table));
7298: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_session_id: '|| to_char(p_session_id));
7299: END IF;
7300:
7301: -- Initializing API return code

Line 7298: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_session_id: '|| to_char(p_session_id));

7294:
7295: IF PG_DEBUG in ('Y', 'C') THEN
7296: msc_sch_wb.atp_debug('********** Begin Populate_Original_Demand_Qty Procedure **********');
7297: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_table: '|| to_char(p_table));
7298: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'p_session_id: '|| to_char(p_session_id));
7299: END IF;
7300:
7301: -- Initializing API return code
7302: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7373: msc_sch_wb.atp_debug('**********End Populate_Original_Demand_Qty Procedure************');

7369:
7370: END IF;
7371:
7372: IF PG_DEBUG in ('Y', 'C') THEN
7373: msc_sch_wb.atp_debug('**********End Populate_Original_Demand_Qty Procedure************');
7374: END IF;
7375:
7376: EXCEPTION
7377: WHEN OTHERS THEN

Line 7379: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

7375:
7376: EXCEPTION
7377: WHEN OTHERS THEN
7378: IF PG_DEBUG in ('Y', 'C') THEN
7379: msc_sch_wb.atp_debug('Populate_Original_Demand_Qty: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
7380: END IF;
7381: x_return_status := FND_API.G_RET_STS_ERROR;
7382:
7383: END Populate_Original_Demand_Qty;

Line 7419: msc_sch_wb.atp_debug('********** Begin PF_Atp_Consume Procedure **********');

7415:
7416: BEGIN
7417:
7418: IF PG_DEBUG in ('Y', 'C') THEN
7419: msc_sch_wb.atp_debug('********** Begin PF_Atp_Consume Procedure **********');
7420: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_consumption_type: '|| to_char(p_consumption_type));
7421: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_atf_date: '|| to_char(p_atf_date));
7422: END IF;
7423:

Line 7420: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_consumption_type: '|| to_char(p_consumption_type));

7416: BEGIN
7417:
7418: IF PG_DEBUG in ('Y', 'C') THEN
7419: msc_sch_wb.atp_debug('********** Begin PF_Atp_Consume Procedure **********');
7420: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_consumption_type: '|| to_char(p_consumption_type));
7421: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_atf_date: '|| to_char(p_atf_date));
7422: END IF;
7423:
7424: -- Initializing API return code

Line 7421: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_atf_date: '|| to_char(p_atf_date));

7417:
7418: IF PG_DEBUG in ('Y', 'C') THEN
7419: msc_sch_wb.atp_debug('********** Begin PF_Atp_Consume Procedure **********');
7420: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_consumption_type: '|| to_char(p_consumption_type));
7421: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'p_atf_date: '|| to_char(p_atf_date));
7422: END IF;
7423:
7424: -- Initializing API return code
7425: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7570: msc_sch_wb.atp_debug('**********End PF_Atp_Consume Procedure************');

7566: END LOOP;
7567: END IF;
7568:
7569: IF PG_DEBUG in ('Y', 'C') THEN
7570: msc_sch_wb.atp_debug('**********End PF_Atp_Consume Procedure************');
7571: END IF;
7572:
7573: EXCEPTION
7574: WHEN OTHERS THEN

Line 7576: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

7572:
7573: EXCEPTION
7574: WHEN OTHERS THEN
7575: IF PG_DEBUG in ('Y', 'C') THEN
7576: msc_sch_wb.atp_debug('PF_Atp_Consume: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
7577: END IF;
7578: x_return_status := FND_API.G_RET_STS_ERROR;
7579:
7580: END PF_Atp_Consume;

Line 7608: msc_sch_wb.atp_debug('**********Begin PF_Atp_Alloc_Consume Procedure************');

7604:
7605:
7606: BEGIN
7607: IF PG_DEBUG in ('Y', 'C') THEN
7608: msc_sch_wb.atp_debug('**********Begin PF_Atp_Alloc_Consume Procedure************');
7609: END IF;
7610:
7611: -- Initializing API return code
7612: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7623: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'after extend : ' || p_atp_dc_tab(p_atp_dc_tab.FIRST));

7619: x_dc_start_index.EXTEND;
7620: x_dc_end_index.EXTEND;
7621:
7622: IF PG_DEBUG in ('Y', 'C') THEN
7623: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'after extend : ' || p_atp_dc_tab(p_atp_dc_tab.FIRST));
7624: END IF;
7625:
7626: x_dc_list_tab(1) := p_atp_dc_tab(p_atp_dc_tab.FIRST);
7627: x_dc_start_index(1) := 1;

Line 7629: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'after assign : ' || x_dc_list_tab(1));

7625:
7626: x_dc_list_tab(1) := p_atp_dc_tab(p_atp_dc_tab.FIRST);
7627: x_dc_start_index(1) := 1;
7628: IF PG_DEBUG in ('Y', 'C') THEN
7629: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'after assign : ' || x_dc_list_tab(1));
7630: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(1));
7631: END IF;
7632:
7633: FOR i in 1..p_atp_dc_tab.COUNT LOOP

Line 7630: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(1));

7626: x_dc_list_tab(1) := p_atp_dc_tab(p_atp_dc_tab.FIRST);
7627: x_dc_start_index(1) := 1;
7628: IF PG_DEBUG in ('Y', 'C') THEN
7629: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'after assign : ' || x_dc_list_tab(1));
7630: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(1));
7631: END IF;
7632:
7633: FOR i in 1..p_atp_dc_tab.COUNT LOOP
7634: IF PG_DEBUG in ('Y', 'C') THEN

Line 7635: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'index : ' || i);

7631: END IF;
7632:
7633: FOR i in 1..p_atp_dc_tab.COUNT LOOP
7634: IF PG_DEBUG in ('Y', 'C') THEN
7635: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'index : ' || i);
7636: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab(x_dc_list_tab.COUNT));
7637: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'p_atp_dc_tab : ' || p_atp_dc_tab(i));
7638: END IF;
7639:

Line 7636: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab(x_dc_list_tab.COUNT));

7632:
7633: FOR i in 1..p_atp_dc_tab.COUNT LOOP
7634: IF PG_DEBUG in ('Y', 'C') THEN
7635: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'index : ' || i);
7636: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab(x_dc_list_tab.COUNT));
7637: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'p_atp_dc_tab : ' || p_atp_dc_tab(i));
7638: END IF;
7639:
7640: -- If demand class changes, re-initialize these variables.

Line 7637: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'p_atp_dc_tab : ' || p_atp_dc_tab(i));

7633: FOR i in 1..p_atp_dc_tab.COUNT LOOP
7634: IF PG_DEBUG in ('Y', 'C') THEN
7635: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'index : ' || i);
7636: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab(x_dc_list_tab.COUNT));
7637: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'p_atp_dc_tab : ' || p_atp_dc_tab(i));
7638: END IF;
7639:
7640: -- If demand class changes, re-initialize these variables.
7641: IF p_atp_dc_tab(i) <> x_dc_list_tab(x_dc_list_tab.COUNT) THEN

Line 7644: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'inside IF');

7640: -- If demand class changes, re-initialize these variables.
7641: IF p_atp_dc_tab(i) <> x_dc_list_tab(x_dc_list_tab.COUNT) THEN
7642: x_dc_end_index(x_dc_end_index.COUNT) := i - 1;
7643: IF PG_DEBUG in ('Y', 'C') THEN
7644: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'inside IF');
7645: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));
7646: END IF;
7647: x_dc_list_tab.EXTEND;
7648: x_dc_start_index.EXTEND;

Line 7645: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));

7641: IF p_atp_dc_tab(i) <> x_dc_list_tab(x_dc_list_tab.COUNT) THEN
7642: x_dc_end_index(x_dc_end_index.COUNT) := i - 1;
7643: IF PG_DEBUG in ('Y', 'C') THEN
7644: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'inside IF');
7645: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));
7646: END IF;
7647: x_dc_list_tab.EXTEND;
7648: x_dc_start_index.EXTEND;
7649: x_dc_end_index.EXTEND;

Line 7657: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(x_dc_start_index.COUNT));

7653: x_dc_end_index(x_dc_end_index.COUNT) := i;
7654: END IF;
7655:
7656: IF PG_DEBUG in ('Y', 'C') THEN
7657: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(x_dc_start_index.COUNT));
7658: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));
7659: END IF;
7660: -- Do backward consumption only when neg bucket and current index
7661: -- greater l_fw_nullifying_bucket_index.

Line 7658: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));

7654: END IF;
7655:
7656: IF PG_DEBUG in ('Y', 'C') THEN
7657: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'start index : ' || x_dc_start_index(x_dc_start_index.COUNT));
7658: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'end index : ' || x_dc_end_index(x_dc_end_index.COUNT));
7659: END IF;
7660: -- Do backward consumption only when neg bucket and current index
7661: -- greater l_fw_nullifying_bucket_index.
7662: IF (p_atp_qty(i) < 0 AND i > l_fw_nullifying_bucket_index) THEN

Line 7688: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'before forward consumption');

7684: END LOOP;
7685: END IF;
7686:
7687: IF PG_DEBUG in ('Y', 'C') THEN
7688: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'before forward consumption');
7689: END IF;
7690:
7691: -- forward consumption when neg atp quantity occurs
7692: IF (p_atp_qty(i) < 0 ) THEN

Line 7695: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward consumption : ' || i || ':' || j);

7691: -- forward consumption when neg atp quantity occurs
7692: IF (p_atp_qty(i) < 0 ) THEN
7693: j := i + 1;
7694: IF PG_DEBUG in ('Y', 'C') THEN
7695: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward consumption : ' || i || ':' || j);
7696: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward : ' || p_atp_dc_tab.COUNT);
7697: END IF;
7698:
7699: IF j < p_atp_dc_tab.COUNT THEN

Line 7696: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward : ' || p_atp_dc_tab.COUNT);

7692: IF (p_atp_qty(i) < 0 ) THEN
7693: j := i + 1;
7694: IF PG_DEBUG in ('Y', 'C') THEN
7695: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward consumption : ' || i || ':' || j);
7696: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in forward : ' || p_atp_dc_tab.COUNT);
7697: END IF;
7698:
7699: IF j < p_atp_dc_tab.COUNT THEN
7700: IF PG_DEBUG in ('Y', 'C') THEN

Line 7701: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in j : ' || p_atp_dc_tab.COUNT);

7697: END IF;
7698:
7699: IF j < p_atp_dc_tab.COUNT THEN
7700: IF PG_DEBUG in ('Y', 'C') THEN
7701: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'in j : ' || p_atp_dc_tab.COUNT);
7702: END IF;
7703: WHILE (p_atp_dc_tab(j) = x_dc_list_tab(x_dc_list_tab.COUNT)) LOOP
7704: IF ((p_atp_period(i) <= p_atf_date) and (p_atp_period(j) > p_atf_date)) THEN
7705: -- exit loop when crossing time fence

Line 7737: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'DC:start:end - ' || x_dc_list_tab(i) || ':' ||

7733: x_dc_end_index(x_dc_end_index.count) := p_atp_dc_tab.count;
7734:
7735: IF PG_DEBUG in ('Y', 'C') THEN
7736: FOR i in 1..x_dc_list_tab.COUNT LOOP
7737: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'DC:start:end - ' || x_dc_list_tab(i) || ':' ||
7738: x_dc_start_index(i) || ':' ||
7739: x_dc_end_index(i));
7740: END LOOP;
7741:

Line 7742: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab.COUNT);

7738: x_dc_start_index(i) || ':' ||
7739: x_dc_end_index(i));
7740: END LOOP;
7741:
7742: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'x_dc_list_tab : ' || x_dc_list_tab.COUNT);
7743: END IF;
7744:
7745: -- this for loop will do atp consume on each dc
7746: FOR j in 1..x_dc_list_tab.COUNT LOOP

Line 7753: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'inside accumulation : ' || i);

7749: p_atp_qty(x_dc_start_index(j)) := 0;
7750: END IF;
7751: FOR i in (x_dc_start_index(j) + 1)..x_dc_end_index(j) LOOP
7752: IF PG_DEBUG in ('Y', 'C') THEN
7753: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'inside accumulation : ' || i);
7754: END IF;
7755: --Bug 3919388 (Cum is decreasing)
7756: p_atp_qty(i) := GREATEST(p_atp_qty(i), 0) + GREATEST(p_atp_qty(i-1),0);
7757: END LOOP;

Line 7761: msc_sch_wb.atp_debug('**********End PF_Atp_Alloc_Consume Procedure************');

7757: END LOOP;
7758: END LOOP; --FOR i in 1..x_dc_list_tab.COUNT LOOP
7759:
7760: IF PG_DEBUG in ('Y', 'C') THEN
7761: msc_sch_wb.atp_debug('**********End PF_Atp_Alloc_Consume Procedure************');
7762: END IF;
7763:
7764: EXCEPTION
7765: WHEN OTHERS THEN

Line 7767: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

7763:
7764: EXCEPTION
7765: WHEN OTHERS THEN
7766: IF PG_DEBUG in ('Y', 'C') THEN
7767: msc_sch_wb.atp_debug('PF_Atp_Alloc_Consume: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
7768: END IF;
7769: x_return_status := FND_API.G_RET_STS_ERROR;
7770:
7771: END PF_Atp_Alloc_Consume;

Line 7793: msc_sch_wb.atp_debug('PROCEDURE Get_Period_Data_From_Sd_Temp');

7789:
7790: BEGIN
7791:
7792: IF PG_DEBUG in ('Y', 'C') THEN
7793: msc_sch_wb.atp_debug('PROCEDURE Get_Period_Data_From_Sd_Temp');
7794: END IF;
7795:
7796: -- Initializing API return code
7797: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 7924: msc_sch_wb.atp_debug('Get_Period_Data_From_Sd_Temp: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

7920:
7921: EXCEPTION
7922: WHEN OTHERS THEN
7923: IF PG_DEBUG in ('Y', 'C') THEN
7924: msc_sch_wb.atp_debug('Get_Period_Data_From_Sd_Temp: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
7925: END IF;
7926: x_return_status := FND_API.G_RET_STS_ERROR;
7927:
7928: END Get_Period_Data_From_Sd_Temp;

Line 7947: msc_sch_wb.atp_debug('PROCEDURE Get_Unalloc_Data_From_Sd_Temp');

7943:
7944: BEGIN
7945:
7946: IF PG_DEBUG in ('Y', 'C') THEN
7947: msc_sch_wb.atp_debug('PROCEDURE Get_Unalloc_Data_From_Sd_Temp');
7948: END IF;
7949:
7950: -- initialize API return status to success
7951: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8084: msc_sch_wb.atp_debug('Get_Unalloc_Data_From_Sd_Temp: ' || 'Error code:' || to_char(sqlcode));

8080:
8081: EXCEPTION
8082: WHEN OTHERS THEN
8083: IF PG_DEBUG in ('Y', 'C') THEN
8084: msc_sch_wb.atp_debug('Get_Unalloc_Data_From_Sd_Temp: ' || 'Error code:' || to_char(sqlcode));
8085: END IF;
8086: x_return_status := FND_API.G_RET_STS_ERROR;
8087:
8088: END Get_Unalloc_Data_From_Sd_Temp;

Line 8110: msc_sch_wb.atp_debug('PROCEDURE Get_Period_From_Details_Temp');

8106:
8107: BEGIN
8108:
8109: IF PG_DEBUG in ('Y', 'C') THEN
8110: msc_sch_wb.atp_debug('PROCEDURE Get_Period_From_Details_Temp');
8111: END IF;
8112:
8113: -- initialize API return status to success
8114: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8459: msc_sch_wb.atp_debug('Get_Period_From_Details_Temp: ' || 'Error code:' || to_char(sqlcode));

8455:
8456: EXCEPTION
8457: WHEN OTHERS THEN
8458: IF PG_DEBUG in ('Y', 'C') THEN
8459: msc_sch_wb.atp_debug('Get_Period_From_Details_Temp: ' || 'Error code:' || to_char(sqlcode));
8460: END IF;
8461: x_return_status := FND_API.G_RET_STS_ERROR;
8462:
8463: END Get_Period_From_Details_Temp;

Line 8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');

8478: l_pf_atp_item_id NUMBER;
8479:
8480: BEGIN
8481: IF PG_DEBUG in ('Y', 'C') THEN
8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');
8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));

Line 8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));

8479:
8480: BEGIN
8481: IF PG_DEBUG in ('Y', 'C') THEN
8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');
8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8487: END IF;

Line 8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));

8480: BEGIN
8481: IF PG_DEBUG in ('Y', 'C') THEN
8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');
8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8487: END IF;
8488:

Line 8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));

8481: IF PG_DEBUG in ('Y', 'C') THEN
8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');
8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8487: END IF;
8488:
8489: SELECT DECODE(i2.bom_item_type,

Line 8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));

8482: msc_sch_wb.atp_debug('*********Begin function Get_Pf_Atp_Item_Id ********');
8483: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8484: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8485: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8486: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8487: END IF;
8488:
8489: SELECT DECODE(i2.bom_item_type,
8490: 5, DECODE(i2.atp_flag,

Line 8511: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'PF Item Id = ' ||to_char(l_pf_atp_item_id));

8507: AND i2.sr_instance_id = i1.sr_instance_id
8508: AND i2.plan_id = i1.plan_id;
8509:
8510: IF PG_DEBUG in ('Y', 'C') THEN
8511: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'PF Item Id = ' ||to_char(l_pf_atp_item_id));
8512: msc_sch_wb.atp_debug('*********End function Get_Pf_Atp_Item_Id ********');
8513: END IF;
8514:
8515: return l_pf_atp_item_id;

Line 8512: msc_sch_wb.atp_debug('*********End function Get_Pf_Atp_Item_Id ********');

8508: AND i2.plan_id = i1.plan_id;
8509:
8510: IF PG_DEBUG in ('Y', 'C') THEN
8511: msc_sch_wb.atp_debug('Get_Pf_Atp_Item_Id: ' || 'PF Item Id = ' ||to_char(l_pf_atp_item_id));
8512: msc_sch_wb.atp_debug('*********End function Get_Pf_Atp_Item_Id ********');
8513: END IF;
8514:
8515: return l_pf_atp_item_id;
8516:

Line 8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');

8534: l_atf_date DATE;
8535:
8536: BEGIN
8537: IF PG_DEBUG in ('Y', 'C') THEN
8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');
8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);
8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);
8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);
8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);

Line 8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);

8535:
8536: BEGIN
8537: IF PG_DEBUG in ('Y', 'C') THEN
8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');
8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);
8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);
8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);
8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);
8543: END IF;

Line 8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);

8536: BEGIN
8537: IF PG_DEBUG in ('Y', 'C') THEN
8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');
8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);
8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);
8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);
8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);
8543: END IF;
8544:

Line 8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);

8537: IF PG_DEBUG in ('Y', 'C') THEN
8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');
8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);
8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);
8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);
8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);
8543: END IF;
8544:
8545: SELECT i.aggregate_time_fence_date

Line 8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);

8538: msc_sch_wb.atp_debug('Begin Get_Atf_Date');
8539: msc_sch_wb.atp_debug('Get_Atf_Date : p_instance_id = ' || p_instance_id);
8540: msc_sch_wb.atp_debug('Get_Atf_Date : p_inventory_item_id = ' || p_inventory_item_id);
8541: msc_sch_wb.atp_debug('Get_Atf_Date : p_organization_id = ' || p_organization_id);
8542: msc_sch_wb.atp_debug('Get_Atf_Date : p_plan_id = ' || p_plan_id);
8543: END IF;
8544:
8545: SELECT i.aggregate_time_fence_date
8546: INTO l_atf_date

Line 8554: msc_sch_wb.atp_debug('Get_Atf_Date : ATF Date = ' || l_atf_date);

8550: AND i.organization_id = p_organization_id
8551: AND i.sr_inventory_item_id = p_inventory_item_id;
8552:
8553: IF PG_DEBUG in ('Y', 'C') THEN
8554: msc_sch_wb.atp_debug('Get_Atf_Date : ATF Date = ' || l_atf_date);
8555: END IF;
8556:
8557: return l_atf_date;
8558:

Line 8580: msc_sch_wb.atp_debug('Begin Get_Atf_Days');

8576: l_atf_days NUMBER;
8577:
8578: BEGIN
8579: IF PG_DEBUG in ('Y', 'C') THEN
8580: msc_sch_wb.atp_debug('Begin Get_Atf_Days');
8581: msc_sch_wb.atp_debug('Get_Atf_Days : p_instance_id = ' || p_instance_id);
8582: msc_sch_wb.atp_debug('Get_Atf_Days : p_inventory_item_id = ' || p_inventory_item_id);
8583: msc_sch_wb.atp_debug('Get_Atf_Days : p_organization_id = ' || p_organization_id);
8584: END IF;

Line 8581: msc_sch_wb.atp_debug('Get_Atf_Days : p_instance_id = ' || p_instance_id);

8577:
8578: BEGIN
8579: IF PG_DEBUG in ('Y', 'C') THEN
8580: msc_sch_wb.atp_debug('Begin Get_Atf_Days');
8581: msc_sch_wb.atp_debug('Get_Atf_Days : p_instance_id = ' || p_instance_id);
8582: msc_sch_wb.atp_debug('Get_Atf_Days : p_inventory_item_id = ' || p_inventory_item_id);
8583: msc_sch_wb.atp_debug('Get_Atf_Days : p_organization_id = ' || p_organization_id);
8584: END IF;
8585:

Line 8582: msc_sch_wb.atp_debug('Get_Atf_Days : p_inventory_item_id = ' || p_inventory_item_id);

8578: BEGIN
8579: IF PG_DEBUG in ('Y', 'C') THEN
8580: msc_sch_wb.atp_debug('Begin Get_Atf_Days');
8581: msc_sch_wb.atp_debug('Get_Atf_Days : p_instance_id = ' || p_instance_id);
8582: msc_sch_wb.atp_debug('Get_Atf_Days : p_inventory_item_id = ' || p_inventory_item_id);
8583: msc_sch_wb.atp_debug('Get_Atf_Days : p_organization_id = ' || p_organization_id);
8584: END IF;
8585:
8586: SELECT DECODE(r.aggregate_time_fence_code,

Line 8583: msc_sch_wb.atp_debug('Get_Atf_Days : p_organization_id = ' || p_organization_id);

8579: IF PG_DEBUG in ('Y', 'C') THEN
8580: msc_sch_wb.atp_debug('Begin Get_Atf_Days');
8581: msc_sch_wb.atp_debug('Get_Atf_Days : p_instance_id = ' || p_instance_id);
8582: msc_sch_wb.atp_debug('Get_Atf_Days : p_inventory_item_id = ' || p_inventory_item_id);
8583: msc_sch_wb.atp_debug('Get_Atf_Days : p_organization_id = ' || p_organization_id);
8584: END IF;
8585:
8586: SELECT DECODE(r.aggregate_time_fence_code,
8587: 1, NULL,

Line 8615: msc_sch_wb.atp_debug('Get_Atf_Days : ATF Days = ' || l_atf_days);

8611: AND r.sr_instance_id = tp.sr_instance_id
8612: AND r.rule_id = NVL(i2.atp_rule_id, tp.default_atp_rule_id);
8613:
8614: IF PG_DEBUG in ('Y', 'C') THEN
8615: msc_sch_wb.atp_debug('Get_Atf_Days : ATF Days = ' || l_atf_days);
8616: END IF;
8617:
8618: return l_atf_days;
8619:

Line 8623: msc_sch_wb.atp_debug('Get_Atf_Days : ATF Days = ' || l_atf_days);

8619:
8620: EXCEPTION
8621: WHEN NO_DATA_FOUND THEN
8622: IF PG_DEBUG in ('Y', 'C') THEN
8623: msc_sch_wb.atp_debug('Get_Atf_Days : ATF Days = ' || l_atf_days);
8624: END IF;
8625: return null;
8626:
8627: END Get_Atf_Days;

Line 8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');

8646:
8647:
8648: BEGIN
8649: IF PG_DEBUG in ('Y', 'C') THEN
8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');
8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));

Line 8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));

8647:
8648: BEGIN
8649: IF PG_DEBUG in ('Y', 'C') THEN
8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');
8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8655: END IF;

Line 8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));

8648: BEGIN
8649: IF PG_DEBUG in ('Y', 'C') THEN
8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');
8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8655: END IF;
8656:

Line 8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));

8649: IF PG_DEBUG in ('Y', 'C') THEN
8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');
8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8655: END IF;
8656:
8657: -- Initializing API return code

Line 8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));

8650: msc_sch_wb.atp_debug('*********Begin procedure Get_Family_Item_Info ********');
8651: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_instance_id = ' ||to_char(p_instance_id));
8652: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_plan_id = ' ||to_char(p_plan_id));
8653: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_inventory_item_id = ' ||to_char(p_inventory_item_id));
8654: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'p_organization_id = ' ||to_char(p_organization_id));
8655: END IF;
8656:
8657: -- Initializing API return code
8658: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 8693: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));

8689: AND i2.sr_instance_id = i1.sr_instance_id
8690: AND i2.plan_id = i1.plan_id;
8691:
8692: IF PG_DEBUG in ('Y', 'C') THEN
8693: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
8694: msc_sch_wb.atp_debug('*********End procedure Get_Family_Item_Info ********');
8695: END IF;
8696:
8697: EXCEPTION

Line 8694: msc_sch_wb.atp_debug('*********End procedure Get_Family_Item_Info ********');

8690: AND i2.plan_id = i1.plan_id;
8691:
8692: IF PG_DEBUG in ('Y', 'C') THEN
8693: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'ATF Date = ' ||to_char(p_atf_date));
8694: msc_sch_wb.atp_debug('*********End procedure Get_Family_Item_Info ********');
8695: END IF;
8696:
8697: EXCEPTION
8698:

Line 8716: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'Passing back the values originally sent to API');

8712: AND i1.plan_id = p_plan_id
8713: AND i1.sr_instance_id = p_instance_id;
8714:
8715: IF PG_DEBUG in ('Y', 'C') THEN
8716: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'Passing back the values originally sent to API');
8717: END IF;
8718:
8719:
8720: WHEN OTHERS THEN

Line 8722: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);

8718:
8719:
8720: WHEN OTHERS THEN
8721: IF PG_DEBUG in ('Y', 'C') THEN
8722: msc_sch_wb.atp_debug('Get_Family_Item_Info: ' || 'Error occurred: ' || to_char(sqlcode) || ':' || SQLERRM);
8723: END IF;
8724: x_return_status := FND_API.G_RET_STS_ERROR;
8725:
8726: END Get_Family_Item_Info;

Line 8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');

8745:
8746:
8747: BEGIN
8748: IF PG_DEBUG in ('Y', 'C') THEN
8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');
8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);

Line 8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);

8746:
8747: BEGIN
8748: IF PG_DEBUG in ('Y', 'C') THEN
8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');
8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);
8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);

Line 8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);

8747: BEGIN
8748: IF PG_DEBUG in ('Y', 'C') THEN
8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');
8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);
8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);
8755:

Line 8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);

8748: IF PG_DEBUG in ('Y', 'C') THEN
8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');
8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);
8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);
8755:
8756: END IF;

Line 8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);

8749: msc_sch_wb.atp_debug('*********Begin procedure Get_PF_Plan_Info ********');
8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);
8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);
8755:
8756: END IF;
8757:

Line 8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);

8750: msc_sch_wb.atp_debug('p_instance_id := ' || p_instance_id);
8751: msc_sch_wb.atp_debug('p_member_item_id := ' || p_member_item_id);
8752: msc_sch_wb.atp_debug('p_family_item_id := ' || p_family_item_id);
8753: msc_sch_wb.atp_debug('p_org_id := ' || p_org_id);
8754: msc_sch_wb.atp_debug('p_demand_class := ' || p_demand_class);
8755:
8756: END IF;
8757:
8758: -- initialize API return status to success

Line 8772: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATP Downtime');

8768: );
8769:
8770: IF (MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id = -300) THEN
8771: IF PG_DEBUG in ('Y', 'C') THEN
8772: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATP Downtime');
8773: END IF;
8774:
8775: x_return_status := FND_API.G_RET_STS_ERROR;
8776: MSC_ATP_PVT.G_DOWNTIME_HIT := 'Y';

Line 8782: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id = '||MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id);

8778: RAISE NO_DATA_FOUND;
8779: END IF;
8780:
8781: IF PG_DEBUG in ('Y', 'C') THEN
8782: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id = '||MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id);
8783: END IF;
8784:
8785: -- ATP4drp begin
8786: IF NVL(MSC_ATP_PVT.G_PLAN_INFO_REC.plan_type, 1) = 5 THEN

Line 8788: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');

8784:
8785: -- ATP4drp begin
8786: IF NVL(MSC_ATP_PVT.G_PLAN_INFO_REC.plan_type, 1) = 5 THEN
8787: IF PG_DEBUG in ('Y', 'C') THEN
8788: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8789: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'PF and Allocated ATP not applicable for DRP plans');
8790: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF date will not be obtained.');
8791: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8792: END IF;

Line 8789: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'PF and Allocated ATP not applicable for DRP plans');

8785: -- ATP4drp begin
8786: IF NVL(MSC_ATP_PVT.G_PLAN_INFO_REC.plan_type, 1) = 5 THEN
8787: IF PG_DEBUG in ('Y', 'C') THEN
8788: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8789: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'PF and Allocated ATP not applicable for DRP plans');
8790: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF date will not be obtained.');
8791: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8792: END IF;
8793: ELSIF (p_family_item_id <> p_member_item_id) THEN

Line 8790: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF date will not be obtained.');

8786: IF NVL(MSC_ATP_PVT.G_PLAN_INFO_REC.plan_type, 1) = 5 THEN
8787: IF PG_DEBUG in ('Y', 'C') THEN
8788: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8789: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'PF and Allocated ATP not applicable for DRP plans');
8790: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF date will not be obtained.');
8791: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8792: END IF;
8793: ELSIF (p_family_item_id <> p_member_item_id) THEN
8794: -- plan is not a DRP plan

Line 8791: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');

8787: IF PG_DEBUG in ('Y', 'C') THEN
8788: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8789: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'PF and Allocated ATP not applicable for DRP plans');
8790: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF date will not be obtained.');
8791: msc_sch_wb.atp_debug('----- ATP4drp Specific Debug Messages -----');
8792: END IF;
8793: ELSIF (p_family_item_id <> p_member_item_id) THEN
8794: -- plan is not a DRP plan
8795: -- ATP4drp end

Line 8805: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF Date = '||p_atf_date);

8801: MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id
8802: );
8803:
8804: IF PG_DEBUG in ('Y', 'C') THEN
8805: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATF Date = '||p_atf_date);
8806: END IF;
8807:
8808: /* check if it is time phased atp scenario, if yes then we are done
8809: else look for family item's plan*/

Line 8812: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || '*** Time Phased ATP Scenario *** ');

8808: /* check if it is time phased atp scenario, if yes then we are done
8809: else look for family item's plan*/
8810: IF p_atf_date is not null THEN
8811: IF PG_DEBUG in ('Y', 'C') THEN
8812: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || '*** Time Phased ATP Scenario *** ');
8813: END IF;
8814: ELSE
8815: IF PG_DEBUG in ('Y', 'C') THEN
8816: msc_sch_wb.atp_debug('Schedule: ' || '*** Product Family(non-time phased) ATP Scenario *** ');

Line 8816: msc_sch_wb.atp_debug('Schedule: ' || '*** Product Family(non-time phased) ATP Scenario *** ');

8812: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || '*** Time Phased ATP Scenario *** ');
8813: END IF;
8814: ELSE
8815: IF PG_DEBUG in ('Y', 'C') THEN
8816: msc_sch_wb.atp_debug('Schedule: ' || '*** Product Family(non-time phased) ATP Scenario *** ');
8817: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Now trying to find old plan for family item...');
8818: END IF;
8819:
8820: MSC_ATP_PROC.get_global_plan_info(

Line 8817: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Now trying to find old plan for family item...');

8813: END IF;
8814: ELSE
8815: IF PG_DEBUG in ('Y', 'C') THEN
8816: msc_sch_wb.atp_debug('Schedule: ' || '*** Product Family(non-time phased) ATP Scenario *** ');
8817: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Now trying to find old plan for family item...');
8818: END IF;
8819:
8820: MSC_ATP_PROC.get_global_plan_info(
8821: p_instance_id,

Line 8830: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATP Downtime');

8826: );
8827:
8828: IF (MSC_ATP_PVT.G_PLAN_INFO_REC.plan_id = -300) THEN
8829: IF PG_DEBUG in ('Y', 'C') THEN
8830: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'ATP Downtime');
8831: END IF;
8832:
8833: x_return_status := FND_API.G_RET_STS_ERROR;
8834: MSC_ATP_PVT.G_DOWNTIME_HIT := 'Y';

Line 8841: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || '*** Regular PDS ATP Scenario *** ');

8837: END IF;
8838: END IF;
8839: ELSE
8840: IF PG_DEBUG in ('Y', 'C') THEN
8841: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || '*** Regular PDS ATP Scenario *** ');
8842: END IF;
8843: END IF;
8844:
8845: IF PG_DEBUG in ('Y', 'C') THEN

Line 8846: msc_sch_wb.atp_debug('*********End of procedure Get_PF_Plan_Info ********');

8842: END IF;
8843: END IF;
8844:
8845: IF PG_DEBUG in ('Y', 'C') THEN
8846: msc_sch_wb.atp_debug('*********End of procedure Get_PF_Plan_Info ********');
8847: END IF;
8848:
8849: EXCEPTION
8850: WHEN OTHERS THEN

Line 8852: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Exception: ' || sqlerrm);

8848:
8849: EXCEPTION
8850: WHEN OTHERS THEN
8851: IF PG_DEBUG in ('Y', 'C') THEN
8852: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Exception: ' || sqlerrm);
8853: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Error code:' || to_char(sqlcode));
8854: END IF;
8855: x_return_status := FND_API.G_RET_STS_ERROR;
8856:

Line 8853: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Error code:' || to_char(sqlcode));

8849: EXCEPTION
8850: WHEN OTHERS THEN
8851: IF PG_DEBUG in ('Y', 'C') THEN
8852: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Exception: ' || sqlerrm);
8853: msc_sch_wb.atp_debug('Get_PF_Plan_Info: ' || 'Error code:' || to_char(sqlcode));
8854: END IF;
8855: x_return_status := FND_API.G_RET_STS_ERROR;
8856:
8857: END Get_PF_Plan_Info;

Line 12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');

12218:
12219: BEGIN
12220:
12221: IF PG_DEBUG in ('Y', 'C') THEN
12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');
12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );

Line 12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );

12219: BEGIN
12220:
12221: IF PG_DEBUG in ('Y', 'C') THEN
12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');
12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12227: END IF;

Line 12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );

12220:
12221: IF PG_DEBUG in ('Y', 'C') THEN
12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');
12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12227: END IF;
12228:

Line 12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );

12221: IF PG_DEBUG in ('Y', 'C') THEN
12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');
12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12227: END IF;
12228:
12229: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );

12222: msc_sch_wb.atp_debug('***** Begin Create_PF_DP_Alloc_Reliefs Procedure *****');
12223: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12224: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12225: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12226: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12227: END IF;
12228:
12229: x_return_status := FND_API.G_RET_STS_SUCCESS;
12230:

Line 12232: msc_sch_wb.atp_debug(' Inserting Demands');

12228:
12229: x_return_status := FND_API.G_RET_STS_SUCCESS;
12230:
12231: IF PG_DEBUG in ('Y', 'C') THEN
12232: msc_sch_wb.atp_debug(' Inserting Demands');
12233: END IF;
12234:
12235: l_sql_stmt_1 := 'INSERT INTO ' || p_insert_table ||
12236: '(reference_item_id,

Line 12374: msc_sch_wb.atp_debug('SQL statement to be executed ' || length(l_sql_stmt_1) || ':' || l_sql_stmt_1);

12370: AND peg_v.demand_class = mv.demand_class (+)
12371: AND mv.level_id (+) = -1';
12372:
12373: IF PG_DEBUG in ('Y', 'C') THEN
12374: msc_sch_wb.atp_debug('SQL statement to be executed ' || length(l_sql_stmt_1) || ':' || l_sql_stmt_1);
12375: END IF;
12376: EXECUTE IMMEDIATE l_sql_stmt_1 USING
12377: l_def_dmd_class,
12378: p_user_id, p_sysdate, p_user_id, p_sysdate,

Line 12382: msc_sch_wb.atp_debug('Create_PF_DP_Alloc_Reliefs: Number of Demand rows inserted '||

12378: p_user_id, p_sysdate, p_user_id, p_sysdate,
12379: l_def_dmd_class,p_plan_id;
12380:
12381: IF PG_DEBUG in ('Y', 'C') THEN
12382: msc_sch_wb.atp_debug('Create_PF_DP_Alloc_Reliefs: Number of Demand rows inserted '||
12383: SQL%ROWCOUNT);
12384: END IF;
12385:
12386: IF PG_DEBUG in ('Y', 'C') THEN

Line 12387: msc_sch_wb.atp_debug(' Inserting Supplies');

12383: SQL%ROWCOUNT);
12384: END IF;
12385:
12386: IF PG_DEBUG in ('Y', 'C') THEN
12387: msc_sch_wb.atp_debug(' Inserting Supplies');
12388: END IF;
12389:
12390: l_sql_stmt_1 := 'INSERT INTO ' || p_insert_table ||
12391: '(reference_item_id,

Line 12470: msc_sch_wb.atp_debug('Create_PF_DP_Alloc_Reliefs: Number of Supply rows inserted '||

12466: l_def_dmd_class,
12467: p_user_id, p_sysdate, p_user_id, p_sysdate, p_plan_id;
12468:
12469: IF PG_DEBUG in ('Y', 'C') THEN
12470: msc_sch_wb.atp_debug('Create_PF_DP_Alloc_Reliefs: Number of Supply rows inserted '||
12471: SQL%ROWCOUNT);
12472: END IF;
12473:
12474: EXCEPTION

Line 12477: msc_sch_wb.atp_debug('Inside main exception of Create_PF_DP_Alloc_Reliefs');

12473:
12474: EXCEPTION
12475: WHEN OTHERS THEN
12476: IF PG_DEBUG in ('Y', 'C') THEN
12477: msc_sch_wb.atp_debug('Inside main exception of Create_PF_DP_Alloc_Reliefs');
12478: msc_sch_wb.atp_debug ('Create_PF_DP_Alloc_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);
12479: END IF;
12480: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12481:

Line 12478: msc_sch_wb.atp_debug ('Create_PF_DP_Alloc_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);

12474: EXCEPTION
12475: WHEN OTHERS THEN
12476: IF PG_DEBUG in ('Y', 'C') THEN
12477: msc_sch_wb.atp_debug('Inside main exception of Create_PF_DP_Alloc_Reliefs');
12478: msc_sch_wb.atp_debug ('Create_PF_DP_Alloc_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);
12479: END IF;
12480: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12481:
12482: END Create_PF_DP_Alloc_Reliefs;

Line 12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');

12498: l_sql_stmt_1 VARCHAR2(5000);
12499: BEGIN
12500:
12501: IF PG_DEBUG in ('Y', 'C') THEN
12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');
12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );

Line 12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );

12499: BEGIN
12500:
12501: IF PG_DEBUG in ('Y', 'C') THEN
12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');
12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12507: END IF;

Line 12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );

12500:
12501: IF PG_DEBUG in ('Y', 'C') THEN
12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');
12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12507: END IF;
12508:

Line 12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );

12501: IF PG_DEBUG in ('Y', 'C') THEN
12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');
12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12507: END IF;
12508:
12509: x_return_status := FND_API.G_RET_STS_SUCCESS;

Line 12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );

12502: msc_sch_wb.atp_debug('***** Begin Create_PF_Allocation_Reliefs Procedure *****');
12503: msc_sch_wb.atp_debug(' Plan Id : ' || p_plan_id );
12504: msc_sch_wb.atp_debug(' Insert Table parameter : ' || p_insert_table );
12505: msc_sch_wb.atp_debug(' User Id Paramenter : ' || p_user_id );
12506: msc_sch_wb.atp_debug(' Date Parameter : ' || p_sysdate );
12507: END IF;
12508:
12509: x_return_status := FND_API.G_RET_STS_SUCCESS;
12510:

Line 12512: msc_sch_wb.atp_debug(' Inserting Demands');

12508:
12509: x_return_status := FND_API.G_RET_STS_SUCCESS;
12510:
12511: IF PG_DEBUG in ('Y', 'C') THEN
12512: msc_sch_wb.atp_debug(' Inserting Demands');
12513: END IF;
12514:
12515:
12516: l_sql_stmt_1 := 'INSERT INTO ' || p_insert_table || -- actually the insert table parameter.

Line 12601: msc_sch_wb.atp_debug('SQL statement to be executed ' || length(l_sql_stmt_1) || ':' || l_sql_stmt_1);

12597: AND s.plan_id = mapt.plan_id
12598: AND s.transaction_id = mapt.supply_id';
12599:
12600: IF PG_DEBUG in ('Y', 'C') THEN
12601: msc_sch_wb.atp_debug('SQL statement to be executed ' || length(l_sql_stmt_1) || ':' || l_sql_stmt_1);
12602: END IF;
12603: EXECUTE IMMEDIATE l_sql_stmt_1 USING
12604: p_user_id, p_sysdate, p_user_id, p_sysdate, p_plan_id;
12605:

Line 12607: msc_sch_wb.atp_debug('Create_PF_Allocation_Reliefs: Number of Demand rows inserted '||

12603: EXECUTE IMMEDIATE l_sql_stmt_1 USING
12604: p_user_id, p_sysdate, p_user_id, p_sysdate, p_plan_id;
12605:
12606: IF PG_DEBUG in ('Y', 'C') THEN
12607: msc_sch_wb.atp_debug('Create_PF_Allocation_Reliefs: Number of Demand rows inserted '||
12608: SQL%ROWCOUNT);
12609: END IF;
12610:
12611: EXCEPTION

Line 12614: msc_sch_wb.atp_debug('Inside main exception of Create_PF_Allocation_Reliefs');

12610:
12611: EXCEPTION
12612: WHEN OTHERS THEN
12613: IF PG_DEBUG in ('Y', 'C') THEN
12614: msc_sch_wb.atp_debug('Inside main exception of Create_PF_Allocation_Reliefs');
12615: msc_sch_wb.atp_debug ('Create_PF_Allocation_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);
12616: END IF;
12617: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12618:

Line 12615: msc_sch_wb.atp_debug ('Create_PF_Allocation_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);

12611: EXCEPTION
12612: WHEN OTHERS THEN
12613: IF PG_DEBUG in ('Y', 'C') THEN
12614: msc_sch_wb.atp_debug('Inside main exception of Create_PF_Allocation_Reliefs');
12615: msc_sch_wb.atp_debug ('Create_PF_Allocation_Reliefs. Error : ' || sqlcode || ': '|| sqlerrm);
12616: END IF;
12617: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
12618:
12619: END Create_PF_Allocation_Reliefs;