DBA Data[Home] [Help]

APPS.MSC_AATP_PVT dependencies on MSC_ATP_PROC

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

4270:
4271: -- krajan: 04/01/02 Added l_org_code to call.
4272: /* Modularize Item and Org Info */
4273: -- changed Call
4274: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);
4275: l_default_atp_rule_id := MSC_ATP_PVT.G_ORG_INFO_REC.default_atp_rule_id;
4276: l_calendar_code := MSC_ATP_PVT.G_ORG_INFO_REC.cal_code;
4277: l_calendar_exception_set_id := MSC_ATP_PVT.G_ORG_INFO_REC.cal_exception_set_id;
4278: l_default_demand_class := MSC_ATP_PVT.G_ORG_INFO_REC.default_demand_class;

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

4397: END IF;
4398: RAISE FND_API.G_EXC_ERROR;
4399: END IF;
4400: ELSE
4401: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);
4402: END IF;
4403:
4404: IF PG_DEBUG in ('Y', 'C') THEN
4405: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Consume for l_unallocated_atp');

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

4575: END IF;
4576: RAISE FND_API.G_EXC_ERROR;
4577: END IF;
4578: ELSE
4579: MSC_ATP_PROC.Atp_Consume(l_unallocated_atp.atp_qty, l_unallocated_atp.atp_qty.COUNT);
4580: END IF;
4581:
4582: IF PG_DEBUG in ('Y', 'C') THEN
4583: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Consume for l_unallocated_atp');

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

4602: ELSE
4603: /* time_phased_atp
4604: call new procedure to fix the issue of not displaying correct quantities in ATP SD Window when
4605: user opens ATP SD window from ATP pegging in allocated scenarios*/
4606: MSC_ATP_PROC.Get_Alloc_Data_From_Sd_Temp(x_atp_period, l_return_status);
4607: IF l_return_status <> FND_API.G_RET_STS_SUCCESS THEN
4608: IF PG_DEBUG in ('Y', 'C') THEN
4609: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'Error occured in procedure get_alloc_data_from_SD_temp');
4610: END IF;

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

4653: END IF;
4654: RAISE FND_API.G_EXC_ERROR;
4655: END IF;
4656: ELSE
4657: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
4658: END IF;
4659:
4660: IF PG_DEBUG in ('Y', 'C') THEN
4661: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'right after the backward consume');

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

5570: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',
5571: l_current_atp);
5572: END IF;
5573:
5574: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
5575:
5576: IF PG_DEBUG in ('Y', 'C') THEN
5577: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'After Atp_Accumulate for Method2');
5578: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

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

5605: ELSE --IF p_identifier <> -1 or (p_identifier = -1 and p_scenario_id <> -1) THEN
5606: /* rajjain 01/29/2003 Bug 2737596
5607: We only need to do b/w consumption, f/w consumption and accumulation in case the call is
5608: from MSC_AATP_PVT.VIEW_ALLOCATION for view total*/
5609: MSC_ATP_PROC.Atp_Consume(l_current_atp.atp_qty, l_current_atp.atp_qty.COUNT);
5610: END IF;
5611:
5612: -- 1665110
5613: IF PG_DEBUG in ('Y', 'C') THEN

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

5626: IF p_identifier <> -1 or (p_identifier = -1 and p_scenario_id <> -1) THEN
5627: IF G_ATP_FW_CONSUME_METHOD = 1 THEN
5628: -- we need to do accumulation only if forward consumption method is 1
5629: -- as we have the adjusted cum picture available if forward consumption method is 2
5630: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
5631:
5632: IF PG_DEBUG in ('Y', 'C') THEN
5633: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'Right after the Atp_Accumulate');
5634: msc_sch_wb.atp_debug('Item_Alloc_Cum_Atp: ' || 'l_current_atp.atp_period.count = '||

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

6039: -- store in variables instead of joining it
6040:
6041: /* Modularize Item and Org Info */
6042: -- changed call
6043: MSC_ATP_PROC.get_global_org_info(p_instance_id, p_organization_id);
6044: l_default_atp_rule_id := MSC_ATP_PVT.G_ORG_INFO_REC.default_atp_rule_id;
6045: l_calendar_code := MSC_ATP_PVT.G_ORG_INFO_REC.cal_code;
6046: l_calendar_exception_set_id := MSC_ATP_PVT.G_ORG_INFO_REC.cal_exception_set_id;
6047: l_default_demand_class := MSC_ATP_PVT.G_ORG_INFO_REC.default_demand_class;

Line 8126: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);

8122: -- for period ATP
8123: IF PG_DEBUG in ('Y', 'C') THEN
8124: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'after insert into msc_atp_sd_details_temp');
8125: END IF;
8126: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);
8127:
8128: l_current_atp.atp_period := x_atp_period.Period_Start_Date;
8129: l_current_atp.atp_qty := x_atp_period.Period_Quantity;
8130: --- bug 1657855, remove support for min alloc

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

8138: l_current_atp);
8139: END IF;
8140:
8141: -- do backward consumption for DCi
8142: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
8143:
8144: IF PG_DEBUG in ('Y', 'C') THEN
8145: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'right after the backward consume');
8146: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

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

8546: END IF;
8547:
8548: END LOOP;
8549:
8550: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
8551:
8552: IF PG_DEBUG in ('Y', 'C') THEN
8553: msc_sch_wb.atp_debug('Res_Alloc_Cum_Atp: ' || 'right after the Atp_Accumulate');
8554: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 9871: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);

9867: -- for period ATP
9868: IF PG_DEBUG in ('Y', 'C') THEN
9869: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'after insert into msc_atp_sd_details_temp');
9870: END IF;
9871: MSC_ATP_PROC.get_period_data_from_SD_temp(x_atp_period);
9872:
9873: l_current_atp.atp_period := x_atp_period.Period_Start_Date;
9874: l_current_atp.atp_qty := x_atp_period.Period_Quantity;
9875: -- bug 1657855, remove support for min alloc

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

9883: l_current_atp);
9884: END IF;
9885:
9886: -- do backward consumption for DCi
9887: MSC_ATP_PROC.Atp_Backward_Consume(l_current_atp.atp_qty);
9888:
9889: IF PG_DEBUG in ('Y', 'C') THEN
9890: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'right after the backward consume');
9891: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

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

10289: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'after the exit statement, so we did not exit');
10290: END IF;
10291:
10292: END LOOP;
10293: MSC_ATP_PROC.Atp_Accumulate(l_current_atp.atp_qty);
10294:
10295: IF PG_DEBUG in ('Y', 'C') THEN
10296: msc_sch_wb.atp_debug('Supplier_Alloc_Cum_Atp: ' || 'right after the Atp_Accumulate');
10297: Print_Period_Qty('l_current_atp.atp_period:atp_qty = ',

Line 10649: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

10645: IF p_inventory_item_id IS NOT NULL THEN
10646:
10647: --Get Plan Id for the item/org/instance.
10648: /* commented for bug 2392456
10649: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10650: p_organization_id, p_demand_class, l_plan_id, l_assign_set_id);
10651:
10652: -- changes for bug 2392456 starts
10653: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

Line 10653: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,

10649: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10650: p_organization_id, p_demand_class, l_plan_id, l_assign_set_id);
10651:
10652: -- changes for bug 2392456 starts
10653: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10654: p_organization_id, p_demand_class, l_plan_info_rec);
10655: */
10656: -- New procedure for obtaining plan data : Supplier Capacity Lead Time (SCLT) proj.
10657: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,

Line 10657: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,

10653: MSC_ATP_PROC.Get_plan_Info(p_instance_id, p_inventory_item_id,
10654: p_organization_id, p_demand_class, l_plan_info_rec);
10655: */
10656: -- New procedure for obtaining plan data : Supplier Capacity Lead Time (SCLT) proj.
10657: MSC_ATP_PROC.get_global_plan_info(p_instance_id, p_inventory_item_id,
10658: p_organization_id, p_demand_class);
10659:
10660: l_plan_info_rec := MSC_ATP_PVT.G_PLAN_INFO_REC;
10661: -- End New procedure for obtaining plan data : Supplier Capacity Lead Time proj.

Line 11232: MSC_ATP_PROC.get_global_item_info(p_atp_record.instance_id,

11228: END IF;
11229: -- time_phased_atp changes end
11230:
11231: /* Modularize Item and Org Info */
11232: MSC_ATP_PROC.get_global_item_info(p_atp_record.instance_id,
11233: ---bug 3917625: Pass in the real plan id
11234: -- -1,
11235: p_plan_id,
11236: l_process_item_id,

Line 11636: MSC_ATP_PROC.get_global_org_info (p_atp_record.instance_id,

11632: p_atp_record.organization_id);
11633: Modularize Item and Org Info */
11634:
11635: /* Modularize Item and Org Info */
11636: MSC_ATP_PROC.get_global_org_info (p_atp_record.instance_id,
11637: p_atp_record.organization_id );
11638: l_org_code := MSC_ATP_PVT.G_ORG_INFO_REC.org_code;
11639: IF PG_DEBUG in ('Y', 'C') THEN
11640: msc_sch_wb.atp_debug('Stealing: ' || 'Modular Use Org_code : '||l_org_code);

Line 11814: MSC_ATP_PROC.Details_Output(l_atp_period,

11810: MSC_ATP_DB_UTILS.move_SD_temp_into_mrp_details(l_atp_pegging_id,
11811: MSC_ATP_PVT.G_DEMAND_PEGGING_ID);
11812: END IF;
11813:
11814: MSC_ATP_PROC.Details_Output(l_atp_period,
11815: l_atp_supply_demand,
11816: x_atp_period,
11817: x_atp_supply_demand,
11818: x_return_status);