417:
418: FUNCTION get_alloc_rule_variables return NUMBER
419: IS
420: begin
421: IF (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF = 'Y' AND
422: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
423:
424: msc_sch_wb.atp_debug ( 'get_alloc_rule_variables : TWO rules are being used');
425:
418: FUNCTION get_alloc_rule_variables return NUMBER
419: IS
420: begin
421: IF (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF = 'Y' AND
422: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
423:
424: msc_sch_wb.atp_debug ( 'get_alloc_rule_variables : TWO rules are being used');
425:
426: msc_sch_wb.atp_debug(' MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF '
422: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
423:
424: msc_sch_wb.atp_debug ( 'get_alloc_rule_variables : TWO rules are being used');
425:
426: msc_sch_wb.atp_debug(' MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF '
427: ||MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF );
428:
429: msc_sch_wb.atp_debug('MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF ' ||
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
423:
424: msc_sch_wb.atp_debug ( 'get_alloc_rule_variables : TWO rules are being used');
425:
426: msc_sch_wb.atp_debug(' MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF '
427: ||MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF );
428:
429: msc_sch_wb.atp_debug('MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF ' ||
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
431: return 1; -- I will need to display two allocation rules in the library
425:
426: msc_sch_wb.atp_debug(' MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF '
427: ||MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF );
428:
429: msc_sch_wb.atp_debug('MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF ' ||
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
431: return 1; -- I will need to display two allocation rules in the library
432: ELSIF
433: (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF <> 'Y' AND
426: msc_sch_wb.atp_debug(' MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF '
427: ||MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF );
428:
429: msc_sch_wb.atp_debug('MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF ' ||
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
431: return 1; -- I will need to display two allocation rules in the library
432: ELSIF
433: (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF <> 'Y' AND
434: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
429: msc_sch_wb.atp_debug('MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF ' ||
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
431: return 1; -- I will need to display two allocation rules in the library
432: ELSIF
433: (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF <> 'Y' AND
434: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
435: return 2; -- inly PF rule is used
436: ELSE
437: return 0; -- just single member allocation rule or standard items.
430: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF);
431: return 1; -- I will need to display two allocation rules in the library
432: ELSIF
433: (MSC_ATP_PVT.G_MEM_RULE_WITHIN_ATF <> 'Y' AND
434: MSC_ATP_PVT.G_PF_RULE_OUTSIDE_ATF = 'Y') THEN
435: return 2; -- inly PF rule is used
436: ELSE
437: return 0; -- just single member allocation rule or standard items.
438: END IF;
1658: IS
1659: BEGIN
1660: order_sch_wb.mr_debug := NVL(fnd_profile.value('MSC_ATP_DEBUG'),'N');
1661: order_sch_wb.debug_session_id := p_session_id;
1662: MSC_ATP_PVT.G_SESSION_ID := p_session_id;
1663:
1664: END set_session_id;
1665:
1666: PROCEDURE extend_other_cols(x_other_cols IN OUT NoCopy order_sch_wb.other_cols_typ, amount NUMBER)