DBA Data[Home] [Help]

APPS.WIP_PICKING_PVT dependencies on WIP_PICKING_PUB

Line 162: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.Incorrect Entity type passed');

158: wip_constants.flow,
159: wip_constants.eam)) then
160: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
161: fnd_message.set_name('WIP', 'WIP_UNEXPECTED_ERROR');
162: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.Incorrect Entity type passed');
163: x_msg_data := fnd_message.get;
164: return ;
165: end if ;
166:

Line 253: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_allocations: ' || SQLERRM);

249: end if;
250: ROLLBACK TO WIP_CANCEL_ALLOCS_START;
251: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
252: fnd_message.set_name('WIP', 'WIP_UNEXPECTED_ERROR');
253: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_allocations: ' || SQLERRM);
254: x_msg_data := fnd_message.get;
255: end cancel_allocations;
256:
257:

Line 394: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_comp_allocations: ' || SQLERRM);

390: end if;
391: ROLLBACK TO WIP_CANCEL_COMP_ALLOCS_START;
392: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
393: fnd_message.set_name('WIP', 'WIP_UNEXPECTED_ERROR');
394: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_comp_allocations: ' || SQLERRM);
395: x_msg_data := fnd_message.get;
396: END cancel_comp_allocations;
397:
398: Procedure cancel_MO_line(p_lineId IN NUMBER,

Line 423: procedure reduce_comp_allocations(p_comp_tbl IN wip_picking_pub.allocate_comp_tbl_t,

419: p_line_id => p_lineId,
420: p_delete_reservations => 'N');
421: END cancel_MO_line;
422:
423: procedure reduce_comp_allocations(p_comp_tbl IN wip_picking_pub.allocate_comp_tbl_t,
424: p_wip_entity_type NUMBER,
425: p_organization_id NUMBER,
426: x_return_status OUT NOCOPY VARCHAR2,
427: x_msg_data OUT NOCOPY VARCHAR2)IS

Line 571: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_allocations: ' || SQLERRM);

567: end if;
568: ROLLBACK TO WIP_REDUCE_COMP_ALLOCS_START;
569: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
570: fnd_message.set_name('WIP', 'WIP_UNEXPECTED_ERROR');
571: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.cancel_allocations: ' || SQLERRM);
572: x_msg_data := fnd_message.get;
573: END reduce_comp_allocations;
574:
575:

Line 678: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.update_allocation_op_seqs: ' || SQLERRM);

674: end if;
675: ROLLBACK TO WIP_UPDATE_ALLOCS_START;
676: x_return_status := FND_API.G_RET_STS_UNEXP_ERROR;
677: fnd_message.set_name('WIP', 'WIP_UNEXPECTED_ERROR');
678: fnd_message.set_token('ERROR_TEXT', 'wip_picking_pub.update_allocation_op_seqs: ' || SQLERRM);
679: end update_allocation_op_seqs;
680:
681: /* Starting for p_index element of p_alloc_tbl, find number of consective flow schedules
682: that contain the same assembly, assembly qty, and required date. This number allows

Line 692: procedure getOptimalFlowSchGrp(p_alloc_tbl IN wip_picking_pub.allocate_tbl_t,

688: assembly, assembly qty, and required date of the schedule that
689: all subsequent schedules compare to to see if there is a match.
690: x_opt_total: the total of number schedules that can be grouped together.
691: */
692: procedure getOptimalFlowSchGrp(p_alloc_tbl IN wip_picking_pub.allocate_tbl_t,
693: p_index IN NUMBER,
694: p_item_id IN NUMBER,
695: p_ably_qty IN NUMBER,
696: p_req_date IN DATE,

Line 771: x_comp_sql_tbl OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,

767: p_rev_date DATE,
768: p_project_id NUMBER,
769: p_task_id NUMBER,
770: p_alt_rout_desig VARCHAR2,
771: x_comp_sql_tbl OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,
772: x_explode_status OUT NOCOPY VARCHAR2,
773: x_optimize_status OUT NOCOPY VARCHAR2,
774: x_msg_data OUT NOCOPY VARCHAR2) IS
775: l_comp_sql_tbl wip_picking_pub.allocate_comp_tbl_t;

Line 775: l_comp_sql_tbl wip_picking_pub.allocate_comp_tbl_t;

771: x_comp_sql_tbl OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,
772: x_explode_status OUT NOCOPY VARCHAR2,
773: x_optimize_status OUT NOCOPY VARCHAR2,
774: x_msg_data OUT NOCOPY VARCHAR2) IS
775: l_comp_sql_tbl wip_picking_pub.allocate_comp_tbl_t;
776: l_dummy VARCHAR2(1);
777:
778: begin
779:

Line 858: procedure allocate(p_alloc_tbl IN OUT NOCOPY wip_picking_pub.allocate_tbl_t,

854:
855:
856: --this version is used by the form and
857: --called by the conc. request wrapper version
858: procedure allocate(p_alloc_tbl IN OUT NOCOPY wip_picking_pub.allocate_tbl_t,
859: p_days_to_alloc NUMBER := NULL, --only used for rep scheds
860: p_auto_detail_flag VARCHAR2 DEFAULT NULL,
861: p_start_date DATE DEFAULT NULL, /* Enh#2824753 */
862: p_cutoff_date DATE,

Line 907: l_flowCompTbl wip_picking_pub.allocate_comp_tbl_t;

903: l_revControlCode varchar2(3);
904: l_carton_grouping_id NUMBER :=0;
905: l_string1 VARCHAR2(200);
906: l_string2 VARCHAR2(200);
907: l_flowCompTbl wip_picking_pub.allocate_comp_tbl_t;
908: l_routing_seq_id NUMBER;
909: j NUMBER := 1;
910: h NUMBER;
911: k NUMBER;

Line 927: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

923: /*Component Yield Enhancement(Bug 4369064)-> Derive quantity to allocate based on yield parameter*/
924: (wro.required_quantity * decode(l_include_yield,2,nvl(wro.component_yield_factor,1),1)
925: - wro.quantity_issued
926: -- - nvl(wro.quantity_allocated, 0)
927: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
928: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
929: - nvl(wo.CUMULATIVE_SCRAP_QUANTITY*wro.QUANTITY_PER_ASSEMBLY /
930: decode(l_include_yield,2,1,nvl(wro.component_yield_factor,1)), 0)) open_quantity,
931: wro.supply_subinventory,

Line 953: + nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

949: )
950: /*Bug 5255566 (FP Bug 5504661) : Changed below condition to show only components having open quantity greater then
951: 0.00001 (least amount inventory can transfer)*/
952: and (wro.required_quantity - (wro.quantity_issued
953: + nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
954: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)) >= 0.00001)
955: and wro.inventory_item_id = msi.inventory_item_id
956: and wro.wip_entity_id = wo.wip_entity_id (+)
957: and ( p_operation_seq_num_low IS NULL OR wro.operation_seq_num >= p_operation_seq_num_low)

Line 976: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

972: /*Component Yield Enhancement(Bug 4369064)-> Derive quantity to allocate based on yield parameter*/
973: (wro.required_quantity * decode(l_include_yield,2,nvl(wro.component_yield_factor,1),1)
974: - wro.quantity_issued
975: -- - nvl(wro.quantity_allocated, 0)
976: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
977: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
978: - nvl(wo.CUMULATIVE_SCRAP_QUANTITY*wro.QUANTITY_PER_ASSEMBLY /
979: decode(l_include_yield,2,1,nvl(wro.component_yield_factor,1)), 0)) open_quantity,
980: wro.supply_subinventory,

Line 994: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

990: and ((p_cutoff_date is NULL) OR (wro.date_required <= p_cutoff_date))
991: /*Bug 5255566 (FP Bug 5504661) : Changed below condition to show only components having open quantity greater then
992: 0.00001 (least amount inventory can transfer)*/
993: and (wro.required_quantity - (wro.quantity_issued +
994: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
995: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)) >= 0.00001)
996: and wro.inventory_item_id = msi.inventory_item_id
997: and wro.wip_entity_id = wo.wip_entity_id (+)
998: and ( p_operation_seq_num_low IS NULL OR wro.operation_seq_num >= p_operation_seq_num_low) /* Enh#2824753: op seq converted to range for EAM work orders */

Line 1018: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1014: (wo.quantity_in_queue + wo.quantity_running + wo.quantity_completed),1) *
1015: wro.quantity_per_assembly /
1016: decode(l_include_yield,l_include_comp_yield_factor,nvl(wro.component_yield_factor,1),1))
1017: - wro.quantity_issued
1018: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1019: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)) open_quantity,
1020: wro.supply_subinventory,
1021: wro.supply_locator_id,
1022: msi.primary_uom_code,

Line 1047: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1043: /*Bug 5255566 (FP Bug 5504661) : Changed below condition to show only components having open quantity greater then
1044: 0.00001 (least amount inventory can transfer)*/
1045: and (((wo.quantity_in_queue + wo.quantity_running + wo.quantity_completed) * wro.quantity_per_assembly) -
1046: (wro.quantity_issued +
1047: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1048: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)) >= 0.00001)
1049: and wro.inventory_item_id = msi.inventory_item_id
1050: and wro.organization_id = msi.organization_id
1051: and wro.organization_id = p_organization_id

Line 1062: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1058: /*Component Yield Enhancement(Bug 4369064)-> Derive quantity to allocate based on yield parameter*/
1059: least( --open qty is the smaller of the remaining quantity and the quantity determined by the #days to allocate for
1060: (wro.required_quantity * decode(l_include_yield,2,nvl(wro.component_yield_factor,1),1)
1061: - wro.quantity_issued
1062: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1063: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID,WRO. REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
1064: - nvl(wo.CUMULATIVE_SCRAP_QUANTITY*wro.QUANTITY_PER_ASSEMBLY /
1065: decode(l_include_yield,2,1,nvl(wro.component_yield_factor,1)),0)),
1066: (wrs.daily_production_rate * wro.quantity_per_assembly * p_days_to_alloc) + nvl(wro.quantity_backordered, 0)) open_quantity,

Line 1093: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1089: )
1090: /*Bug 5255566 (FP Bug 5504661) : Changed below condition to show only components having open quantity greater then
1091: 0.00001 (least amount inventory can transfer)*/
1092: and (wro.required_quantity - (wro.quantity_issued +
1093: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1094: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID,WRO.QUANTITY_ISSUED),0)) >= 0.00001)
1095: and wro.inventory_item_id = msi.inventory_item_id
1096: and wro.organization_id = msi.organization_id
1097: and wro.organization_id = p_organization_id

Line 1819: procedure allocate_comp(p_alloc_comp_tbl IN OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,

1815:
1816:
1817: --this procedure is used for allocation of specific material
1818:
1819: procedure allocate_comp(p_alloc_comp_tbl IN OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,
1820: p_days_to_alloc NUMBER DEFAULT NULL, --only used for rep scheds
1821: p_auto_detail_flag VARCHAR2 DEFAULT NULL,
1822: p_cutoff_date DATE,
1823: p_wip_entity_type NUMBER,

Line 1874: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1870:
1871: for i in 1..p_alloc_comp_tbl.COUNT LOOP
1872: if(p_wip_entity_type = l_disc) then
1873: select (wro.required_quantity - wro.quantity_issued
1874: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1875: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
1876: - wo.CUMULATIVE_SCRAP_QUANTITY*wro.QUANTITY_PER_ASSEMBLY) open_quantity,
1877: wro.supply_subinventory,
1878: wro.supply_locator_id,

Line 1904: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1900: )
1901: or wro.wip_supply_type = wip_constants.push
1902: )
1903: and wro.required_quantity > (wro.quantity_issued +
1904: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1905: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
1906: and wro.inventory_item_id = p_alloc_comp_tbl(i).inventory_item_id
1907: and wro.inventory_item_id = msi.inventory_item_id
1908: and wro.wip_entity_id = wo.wip_entity_id (+)

Line 1918: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1914: for update of wro.quantity_allocated, wro.quantity_backordered, wro.quantity_issued nowait;
1915:
1916: elsif(p_wip_entity_type = l_eam) then
1917: select (wro.required_quantity - wro.quantity_issued
1918: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1919: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
1920: - wo.CUMULATIVE_SCRAP_QUANTITY*wro.QUANTITY_PER_ASSEMBLY) open_quantity,
1921: wro.supply_subinventory,
1922: wro.supply_locator_id,

Line 1940: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1936: from wip_requirement_operations wro, mtl_system_items_b msi, wip_operations wo
1937: where wro.wip_entity_id = p_alloc_comp_tbl(i).wip_entity_id
1938: and ((p_cutoff_date is NULL) OR (wro.date_required < p_cutoff_date))
1939: and wro.required_quantity > (wro.quantity_issued +
1940: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1941: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
1942: and wro.inventory_item_id = p_alloc_comp_tbl(i).inventory_item_id
1943: and wro.inventory_item_id = msi.inventory_item_id
1944: and wro.wip_entity_id = wo.wip_entity_id (+)

Line 1955: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1951:
1952: elsif(p_wip_entity_type = l_lotbased) then
1953: select (((wo.quantity_in_queue + wo.quantity_running + wo.quantity_completed) * wro.quantity_per_assembly)
1954: - wro.quantity_issued
1955: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1956: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)) open_quantity,
1957: wro.supply_subinventory,
1958: wro.supply_locator_id,
1959: msi.primary_uom_code,

Line 1987: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1983: )
1984: or wro.wip_supply_type = wip_constants.push
1985: )
1986: and ((wo.quantity_in_queue + wo.quantity_running + wo.quantity_completed) * wro.quantity_per_assembly) > (wro.quantity_issued +
1987: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
1988: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
1989: and wro.inventory_item_id = p_alloc_comp_tbl(i).inventory_item_id
1990: and wro.inventory_item_id = msi.inventory_item_id
1991: and wro.organization_id = msi.organization_id

Line 1999: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

1995: elsif(p_wip_entity_type = l_repetitive) then
1996:
1997: select least( --open qty is the smaller of the remaining quantity and the quantity determined by the #days to allocate for
1998: (wro.required_quantity - wro.quantity_issued
1999: - nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
2000: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0)
2001: - wo.CUMULATIVE_SCRAP_QUANTITY*wro. QUANTITY_PER_ASSEMBLY),
2002: (wrs.daily_production_rate * wro.quantity_per_assembly * p_days_to_alloc) + nvl(wro.quantity_backordered, 0)) open_quantity,
2003: wro.supply_subinventory,

Line 2034: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

2030: )
2031: or wro.wip_supply_type = wip_constants.push
2032: )
2033: and wro.required_quantity > (wro.quantity_issued +
2034: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
2035: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
2036: and wro.inventory_item_id = p_alloc_comp_tbl(i).inventory_item_id
2037: and wro.inventory_item_id = msi.inventory_item_id
2038: and wro.organization_id = msi.organization_id

Line 2257: + nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

2253: and (wo.quantity_in_queue + quantity_running +
2254: wo.quantity_waiting_to_move + wo.quantity_rejected +
2255: wo.quantity_scrapped + wo.quantity_completed) *
2256: wro.quantity_per_assembly > wro.quantity_issued
2257: + nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
2258: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED), 0)
2259: and (
2260: ( wp.allocate_backflush_components = 'Y'
2261: and wro.wip_supply_type in (1,2,3)

Line 2310: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

2306: and wro.wip_entity_id = wo.wip_entity_id(+)
2307: and wro.operation_seq_num = wo.operation_seq_num(+)
2308: and (wo.count_point_type in (1,2) or wo.count_point_type is null)
2309: and wro.required_quantity > (wro.quantity_issued +
2310: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
2311: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
2312: and wro.date_required < sysdate + p_days_forward)
2313: group by we.wip_entity_id,
2314: we.wip_entity_name,

Line 2348: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,

2344: and wro.repetitive_schedule_id = wo.repetitive_schedule_id (+)
2345: and wro.operation_seq_num = wo.operation_seq_num(+)
2346: and (wo.count_point_type in (1,2) or wo.count_point_type is null)
2347: and wro.required_quantity > (wro.quantity_issued +
2348: nvl(wip_picking_pub.quantity_allocated(WRO.WIP_ENTITY_ID, WRO.OPERATION_SEQ_NUM,
2349: WRO.ORGANIZATION_ID, WRO.INVENTORY_ITEM_ID, WRO.REPETITIVE_SCHEDULE_ID, WRO.QUANTITY_ISSUED),0))
2350: and ( ( wp.allocate_backflush_components = 'Y' and wro.wip_supply_type in (1,2,3) ) or ( ( wp.allocate_backflush_components = 'N' or wp.allocate_backflush_components is null ) and wro.wip_supply_type = 1 ) )
2351: and wro.date_required < sysdate + p_days_forward
2352: and we.organization_id = p_organization_id

Line 2371: l_allocTbl wip_picking_pub.allocate_tbl_t;

2367: l_repSchedID NUMBER;
2368: l_projectID NUMBER;
2369: l_taskID NUMBER;
2370: i NUMBER := 0;
2371: l_allocTbl wip_picking_pub.allocate_tbl_t;
2372: l_returnStatus VARCHAR2(1);
2373: l_msgData VARCHAR2(2000);
2374: l_picksetFlag VARCHAR2(1);
2375: l_outBuffer VARCHAR2(240);

Line 2641: x_comp_sql_tbl OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,

2637: p_project_id NUMBER,
2638: p_task_id NUMBER,
2639: p_to_op_seq_num NUMBER,
2640: p_alt_rout_desig VARCHAR2,
2641: x_comp_sql_tbl OUT NOCOPY wip_picking_pub.allocate_comp_tbl_t,
2642: x_return_status OUT NOCOPY VARCHAR2,
2643: x_msg_data OUT NOCOPY VARCHAR2) IS
2644: l_comp_sys_rec SYSTEM.WIP_COMPONENT_OBJ_T;
2645: l_comp_sys_table SYSTEM.WIP_COMPONENT_TBL_T;

Line 2646: l_comp_sql_rec wip_picking_pub.allocate_comp_rec_t;

2642: x_return_status OUT NOCOPY VARCHAR2,
2643: x_msg_data OUT NOCOPY VARCHAR2) IS
2644: l_comp_sys_rec SYSTEM.WIP_COMPONENT_OBJ_T;
2645: l_comp_sys_table SYSTEM.WIP_COMPONENT_TBL_T;
2646: l_comp_sql_rec wip_picking_pub.allocate_comp_rec_t;
2647: i NUMBER;
2648: j NUMBER;
2649: begin
2650:

Line 2773: wip_picking_pub.Update_Requirement_SubinvLoc(p_wip_entity_id => p_wip_entity_id,

2769: null;
2770: end;
2771:
2772: if (l_supply_subinventory is not null) then
2773: wip_picking_pub.Update_Requirement_SubinvLoc(p_wip_entity_id => p_wip_entity_id,
2774: p_repetitive_schedule_id => p_repetitive_schedule_id,
2775: p_operation_seq_num => l_operation_seq_num,
2776: p_supply_subinventory => l_supply_subinventory,
2777: p_supply_locator_id => l_supply_locator_id,

Line 2784: 'wip_picking_pub.Update_Requirement_SubinvLoc failed..', l_dummy2);

2780:
2781: if (x_return_status <> fnd_api.g_ret_sts_success) then
2782: if (l_logLevel <= wip_constants.trace_logging) then
2783: wip_logger.log('wip_picking_pvt.Post_Explosion_CleanUp: ' ||
2784: 'wip_picking_pub.Update_Requirement_SubinvLoc failed..', l_dummy2);
2785: end if;
2786: Return;
2787: End if;
2788: end if;

Line 2820: wip_picking_pub.Update_Requirement_SubinvLoc(p_wip_entity_id => p_wip_entity_id,

2816: null;
2817: end;
2818:
2819: if l_supply_subinventory is not null then
2820: wip_picking_pub.Update_Requirement_SubinvLoc(p_wip_entity_id => p_wip_entity_id,
2821: p_repetitive_schedule_id => p_repetitive_schedule_id,
2822: p_operation_seq_num => l_operation_seq_num,
2823: p_supply_subinventory => l_supply_subinventory,
2824: p_supply_locator_id => l_supply_locator_id,

Line 2831: 'wip_picking_pub.Update_Requirement_SubinvLoc failed..', l_dummy2);

2827:
2828: if (x_return_status <> fnd_api.g_ret_sts_success) then
2829: if (l_logLevel <= wip_constants.trace_logging) then
2830: wip_logger.log('wip_picking_pvt.Post_Explosion_CleanUp: ' ||
2831: 'wip_picking_pub.Update_Requirement_SubinvLoc failed..', l_dummy2);
2832: end if;
2833: Return;
2834: End if;
2835: end if;