DBA Data[Home] [Help]

APPS.MSC_ATP_PUB dependencies on MSC_CALENDAR

Line 1507: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;

1503: msc_sch_wb.atp_debug('Call_ATP_No_Commit: ' || 'Setting the delivery lead time to 0');
1504: END IF;
1505: l_delivery_lead_time := 0;
1506: --bug 3979115:
1507: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;
1508: x_atp_rec.shipping_cal_code(j) := MSC_CALENDAR.FOC;
1509: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;
1510: end if;
1511: -- end 2748041

Line 1508: x_atp_rec.shipping_cal_code(j) := MSC_CALENDAR.FOC;

1504: END IF;
1505: l_delivery_lead_time := 0;
1506: --bug 3979115:
1507: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;
1508: x_atp_rec.shipping_cal_code(j) := MSC_CALENDAR.FOC;
1509: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;
1510: end if;
1511: -- end 2748041
1512:

Line 1509: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;

1505: l_delivery_lead_time := 0;
1506: --bug 3979115:
1507: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;
1508: x_atp_rec.shipping_cal_code(j) := MSC_CALENDAR.FOC;
1509: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;
1510: end if;
1511: -- end 2748041
1512:
1513: /* Bug 3335268 - Moved the assignments out of the "IF" block as these variables

Line 1739: x_atp_rec.ship_method(j), MSC_CALENDAR.VIC);

1735: --as we do not calculate these values for line marked for unscheduling
1736: OR (x_atp_rec.quantity_ordered(j-1) = 0)
1737: OR (x_atp_rec.ship_method(j)<>x_atp_rec.ship_method(j-1)) THEN
1738: x_atp_rec.intransit_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(null, null, null,
1739: x_atp_rec.ship_method(j), MSC_CALENDAR.VIC);
1740: ELSE
1741: x_atp_rec.intransit_cal_code(j) := x_atp_rec.intransit_cal_code(j-1);
1742: IF PG_DEBUG in ('Y', 'C') THEN
1743: msc_sch_wb.atp_debug('Call_ATP_NO_Commit: ' || 'Parameters have not changed for VIC');

Line 1748: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;

1744: END IF;
1745: END IF;
1746: ELSE
1747: -- Bug 3647208
1748: x_atp_rec.intransit_cal_code(j) := MSC_CALENDAR.FOC;
1749: END IF;
1750:
1751:
1752: -- Bug 3449812 - base receiving calendar on internal_org_id if available

Line 1775: x_atp_rec.ship_method(j), MSC_CALENDAR.ORC);

1771: ELSIF (x_atp_rec.internal_org_id(j) IS NOT NULL) OR
1772: (l_to_organization_id IS NOT NULL AND l_customer_id IS NULL AND l_customer_site_id IS NULL) THEN
1773: x_atp_rec.receiving_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(null, null,
1774: Nvl(x_atp_rec.internal_org_id(j),l_to_organization_id),
1775: x_atp_rec.ship_method(j), MSC_CALENDAR.ORC);
1776: -- Bug 3449812 - handle case where both org and customer are null
1777: ELSIF l_customer_site_id IS NOT NULL AND MSC_ATP_PVT.G_USE_SHIP_REC_CAL='Y' THEN
1778: -- Bug 3647208 - Call CRC only if using ship/rec cal
1779: x_atp_rec.receiving_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(l_customer_id, l_customer_site_id, null,

Line 1780: x_atp_rec.ship_method(j), MSC_CALENDAR.CRC);

1776: -- Bug 3449812 - handle case where both org and customer are null
1777: ELSIF l_customer_site_id IS NOT NULL AND MSC_ATP_PVT.G_USE_SHIP_REC_CAL='Y' THEN
1778: -- Bug 3647208 - Call CRC only if using ship/rec cal
1779: x_atp_rec.receiving_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(l_customer_id, l_customer_site_id, null,
1780: x_atp_rec.ship_method(j), MSC_CALENDAR.CRC);
1781: ELSE
1782: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;
1783: END IF;
1784:

Line 1782: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;

1778: -- Bug 3647208 - Call CRC only if using ship/rec cal
1779: x_atp_rec.receiving_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(l_customer_id, l_customer_site_id, null,
1780: x_atp_rec.ship_method(j), MSC_CALENDAR.CRC);
1781: ELSE
1782: x_atp_rec.receiving_cal_code(j) := MSC_CALENDAR.FOC;
1783: END IF;
1784:
1785: -- Bug3593394 - Calculate only if parameters have changed
1786: -- Bug 4000425 Added NVL

Line 1794: x_atp_rec.ship_method(j), MSC_CALENDAR.OSC);

1790: OR (x_atp_rec.quantity_ordered(j-1) = 0)
1791: OR NVL(x_atp_rec.ship_method(j),'@@@')<>NVL(x_atp_rec.ship_method(j-1),'@@@')
1792: OR x_atp_rec.source_organization_id(j) <> x_atp_rec.source_organization_id(j-1) THEN
1793: x_atp_rec.shipping_cal_code(j) := MSC_SATP_FUNC.src_get_calendar_code(null, null, l_source_organization_id,
1794: x_atp_rec.ship_method(j), MSC_CALENDAR.OSC);
1795: ELSE
1796: x_atp_rec.shipping_cal_code(j) := x_atp_rec.shipping_cal_code(j-1);
1797: IF PG_DEBUG in ('Y', 'C') THEN
1798: msc_sch_wb.atp_debug('Call_ATP_NO_Commit: ' || 'Parameters have not changed for OSC');