DBA Data[Home] [Help]

APPS.MSC_AATP_PVT dependencies on MSC_ATP_PROC

Line 4050: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);

4046:
4047: -- krajan: 04/01/02 Added l_org_code to call.
4048: /* Modularize Item and Org Info */
4049: -- changed Call
4050: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);
4051: l_default_atp_rule_id := MSC_ATP_PVT.G_ORG_INFO_REC.default_atp_rule_id;
4052: l_calendar_code := MSC_ATP_PVT.G_ORG_INFO_REC.cal_code;
4053: l_calendar_exception_set_id := MSC_ATP_PVT.G_ORG_INFO_REC.cal_exception_set_id;
4054: l_default_demand_class := MSC_ATP_PVT.G_ORG_INFO_REC.default_demand_class;

Line 4175: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);

4171: END IF;
4172: RAISE FND_API.G_EXC_ERROR;
4173: END IF;
4174: ELSE
4175: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);
4176: END IF;
4177:
4178: IF PG_DEBUG in ('Y', 'C') THEN
4179: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Consume for l_unallocated_atp');

Line 4349: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);

4345: END IF;
4346: RAISE FND_API.G_EXC_ERROR;
4347: END IF;
4348: ELSE
4349: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);
4350: END IF;
4351:
4352: IF PG_DEBUG in ('Y', 'C') THEN
4353: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Consume for l_unallocated_atp');

Line 4376: MSC_ATP_PROC.Get_Alloc_Data_From_Sd_Temp(x_atp_period, l_return_status);

4372: ELSE
4373: /* time_phased_atp
4374: call new procedure to fix the issue of not displaying correct quantities in ATP SD Window when
4375: user opens ATP SD window from ATP pegging in allocated scenarios*/
4376: MSC_ATP_PROC.Get_Alloc_Data_From_Sd_Temp(x_atp_period, l_return_status);
4377: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
4378: IF PG_DEBUG in ('Y', 'C') THEN
4379: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'Error occured in procedure get_alloc_data_from_SD_temp');
4380: END IF;

Line 4427: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);

4423: END IF;
4424: RAISE FND_API.G_EXC_ERROR;
4425: END IF;
4426: ELSE
4427: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
4428: END IF;
4429:
4430: IF PG_DEBUG in ('Y', 'C') THEN
4431: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'right after the backward consume');

Line 5344: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);

5340: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',
5341: l_current_atp);
5342: END IF;
5343:
5344: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
5345:
5346: IF PG_DEBUG in ('Y', 'C') THEN
5347: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Accumulate for Method2');
5348: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 5379: MSC_ATP_PROC.Atp_Consume(l_current_atp.atp_qty, l_current_atp.atp_qty.COUNT);

5375: ELSE --IF p_identifier <> -1 or (p_identifier = -1 and p_scenario_id <> -1) THEN
5376: /* rajjain 01/29/2003 Bug 2737596
5377: We only need to do b/w consumption, f/w consumption and accumulation in case the call is
5378: from MSC_AATP_PVT.VIEW_ALLOCATION for view total*/
5379: MSC_ATP_PROC.Atp_Consume(l_current_atp.atp_qty, l_current_atp.atp_qty.COUNT);
5380: END IF;
5381:
5382: -- 1665110
5383: IF PG_DEBUG in ('Y', 'C') THEN

Line 5400: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);

5396: IF p_identifier <> -1 or (p_identifier = -1 and p_scenario_id <> -1) THEN
5397: IF G_ATP_FW_CONSUME_METHOD = 1 THEN
5398: -- we need to do accumulation only if forward consumption method is 1
5399: -- as we have the adjusted cum picture available if forward consumption method is 2
5400: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
5401:
5402: IF PG_DEBUG in ('Y', 'C') THEN
5403: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'Right after the Atp_Accumulate');
5404: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'l_current_atp.atp_period.count = '||

Line 5813: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);

5809: -- store in variables instead of joining it
5810:
5811: /* Modularize Item and Org Info */
5812: -- changed call
5813: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);
5814: l_default_atp_rule_id := MSC_ATP_PVT.G_ORG_INFO_REC.default_atp_rule_id;
5815: l_calendar_code := MSC_ATP_PVT.G_ORG_INFO_REC.cal_code;
5816: l_calendar_exception_set_id := MSC_ATP_PVT.G_ORG_INFO_REC.cal_exception_set_id;
5817: l_default_demand_class := MSC_ATP_PVT.G_ORG_INFO_REC.default_demand_class;

Line 7896: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);

7892: -- for period ATP
7893: IF PG_DEBUG in ('Y', 'C') THEN
7894: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'after insert into msc_atp_sd_details_temp');
7895: END IF;
7896: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);
7897:
7898: l_current_atp.atp_period := x_atp_period.Period_Start_Date;
7899: l_current_atp.atp_qty := x_atp_period.Period_Quantity;
7900: --- bug 1657855, remove support for min alloc

Line 7912: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);

7908: l_current_atp);
7909: END IF;
7910:
7911: -- do backward consumption for DCi
7912: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
7913:
7914: IF PG_DEBUG in ('Y', 'C') THEN
7915: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'right after the backward consume');
7916: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 8320: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);

8316: END IF;
8317:
8318: END LOOP;
8319:
8320: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
8321:
8322: IF PG_DEBUG in ('Y', 'C') THEN
8323: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'right after the Atp_Accumulate');
8324: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 9640: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);

9636: -- for period ATP
9637: IF PG_DEBUG in ('Y', 'C') THEN
9638: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'after insert into msc_atp_sd_details_temp');
9639: END IF;
9640: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);
9641:
9642: l_current_atp.atp_period := x_atp_period.Period_Start_Date;
9643: l_current_atp.atp_qty := x_atp_period.Period_Quantity;
9644: -- bug 1657855, remove support for min alloc

Line 9656: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);

9652: l_current_atp);
9653: END IF;
9654:
9655: -- do backward consumption for DCi
9656: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
9657:
9658: IF PG_DEBUG in ('Y', 'C') THEN
9659: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'right after the backward consume');
9660: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 10062: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);

10058: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'after the exit statement, so we did not exit');
10059: END IF;
10060:
10061: END LOOP;
10062: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
10063:
10064: IF PG_DEBUG in ('Y', 'C') THEN
10065: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'right after the Atp_Accumulate');
10066: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 10418: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

10414: IF p_inventory_item_id IS NOT NULL THEN
10415:
10416: --Get Plan Id for the item/org/instance.
10417: /* commented for bug 2392456
10418: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10419: p_organization_id, p_demand_class, l_plan_id, l_assign_set_id);
10420:
10421: -- changes for bug 2392456 starts
10422: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

Line 10422: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

10418: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10419: p_organization_id, p_demand_class, l_plan_id, l_assign_set_id);
10420:
10421: -- changes for bug 2392456 starts
10422: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10423: p_organization_id, p_demand_class, l_plan_info_rec);
10424: */
10425: -- New procedure for obtaining plan data : Supplier Capacity Lead Time (SCLT) proj.
10426: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,

Line 10426: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,

10422: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10423: p_organization_id, p_demand_class, l_plan_info_rec);
10424: */
10425: -- New procedure for obtaining plan data : Supplier Capacity Lead Time (SCLT) proj.
10426: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,
10427: p_organization_id, p_demand_class);
10428:
10429: l_plan_info_rec := MSC_ATP_PVT.G_PLAN_INFO_REC;
10430: -- End New procedure for obtaining plan data : Supplier Capacity Lead Time proj.

Line 11001: MSC_ATP_PROC.get_global_item_info(p_atp_record.instance_id,

10997: END IF;
10998: -- time_phased_atp changes end
10999:
11000: /* Modularize Item and Org Info */
11001: MSC_ATP_PROC.get_global_item_info(p_atp_record.instance_id,
11002: ---bug 3917625: Pass in the real plan id
11003: -- -1,
11004: p_plan_id,
11005: l_process_item_id,

Line 11405: MSC_ATP_PROC.get_global_org_info (p_atp_record.instance_id,

11401: p_atp_record.organization_id);
11402: Modularize Item and Org Info */
11403:
11404: /* Modularize Item and Org Info */
11405: MSC_ATP_PROC.get_global_org_info (p_atp_record.instance_id,
11406: p_atp_record.organization_id );
11407: l_org_code := MSC_ATP_PVT.G_ORG_INFO_REC.org_code;
11408: IF PG_DEBUG in ('Y', 'C') THEN
11409: msc_sch_wb.atp_debug('Stealing: ' || 'Modular Use Org_code : '||l_org_code);

Line 11574: MSC_ATP_PROC.Details_Output(l_atp_period,

11570: MSC_ATP_DB_UTILS.move_SD_temp_into_mrp_details(l_atp_pegging_id,
11571: MSC_ATP_PVT.G_DEMAND_PEGGING_ID);
11572: END IF;
11573:
11574: MSC_ATP_PROC.Details_Output(l_atp_period,
11575: l_atp_supply_demand,
11576: x_atp_period,
11577: x_atp_supply_demand,
11578: x_return_status);