DBA Data[Home] [Help]

APPS.GML_OPM_OM_CONV_MIG_PKG dependencies on WSH_DELIVERY_DETAILS

Line 41: l_wdd_rec wsh_delivery_details%rowtype;

37: l_msg_data VARCHAR2(2000);
38: l_return_status VARCHAR2(1);
39: l_IC$DEFAULT_LOCT VARCHAR2(255)DEFAULT NVL(FND_PROFILE.VALUE('IC$DEFAULT_LOCT'),' ') ;
40:
41: l_wdd_rec wsh_delivery_details%rowtype;
42: l_mo_line_rec ic_txn_request_lines%rowtype;
43: l_order_line oe_order_lines_all%rowtype;
44: l_ic_mo_header_rec ic_txn_request_headers%rowtype;
45: l_mtl_mo_header_rec INV_Move_Order_PUB.Trohdr_Rec_Type := INV_Move_Order_PUB.G_MISS_TROHDR_REC;

Line 133: FROM wsh_delivery_details wdd,

129: wdd.organization_id,
130: to_char(NULL) schedule_status_code,
131: 'WDD' source,
132: 0 qty
133: FROM wsh_delivery_details wdd,
134: mtl_parameters mtl
135: WHERE wdd.organization_id = mtl.organization_id
136: AND mtl.process_enabled_flag = 'Y'
137: AND wdd.released_status in ('B','R','S', 'X'); -- 5475003 need to include status X for non inv items

Line 189: FROM wsh_delivery_details

185: AND line_status = 7; -- 7 is open , 5 is closed , 9 is cancelled
186:
187: CURSOR get_delivery_details(p_mo_line_id IN NUMBER, p_line_id IN NUMBER) IS
188: SELECT delivery_detail_id
189: FROM wsh_delivery_details
190: WHERE move_order_line_id = p_mo_line_id
191: AND source_line_id = p_line_id;
192:
193: CURSOR get_move_order_header(p_line_id IN NUMBER) IS

Line 209: from wsh_delivery_details wdd,

205:
206: --5574631
207: CURSOR c_wsh_deliveres (p_line_id in number) is
208: select distinct wda.delivery_id
209: from wsh_delivery_details wdd,
210: wsh_new_deliveries wnd,
211: wsh_delivery_assignments wda
212: where wdd.source_line_id = p_line_id
213: and wdd.delivery_detail_id = wda.delivery_detail_id

Line 388: update wsh_delivery_details

384: raise FND_API.G_EXC_ERROR;
385: END IF; -- IF (l_failure_count1 > 0) THEN
386:
387: /* possibly multiple delivery details are updated */
388: update wsh_delivery_details
389: set organization_id = l_organization_id
390: where source_line_id = open_order_line_rec.line_id;
391:
392:

Line 393: GMI_RESERVATION_UTIL.PrintLn(' after update to wsh_delivery_details for organization_id '|| l_organization_id);

389: set organization_id = l_organization_id
390: where source_line_id = open_order_line_rec.line_id;
391:
392:
393: GMI_RESERVATION_UTIL.PrintLn(' after update to wsh_delivery_details for organization_id '|| l_organization_id);
394: /* update the deliveries to reflect the new organization */
395:
396: FOR wsh1 in c_wsh_deliveres (open_order_line_rec.line_id)
397: LOOP

Line 398: GMI_RESERVATION_UTIL.PrintLn(' before update to wsh_delivery_details for organization_id '|| l_organization_id);

394: /* update the deliveries to reflect the new organization */
395:
396: FOR wsh1 in c_wsh_deliveres (open_order_line_rec.line_id)
397: LOOP
398: GMI_RESERVATION_UTIL.PrintLn(' before update to wsh_delivery_details for organization_id '|| l_organization_id);
399:
400: update wsh_new_deliveries
401: set organization_id = l_organization_id
402: where delivery_id = wsh1.delivery_id;

Line 404: END LOOP; -- FOR wsh1 in c_wsh_delivery_details(open_order_line_rec.line_id)

400: update wsh_new_deliveries
401: set organization_id = l_organization_id
402: where delivery_id = wsh1.delivery_id;
403:
404: END LOOP; -- FOR wsh1 in c_wsh_delivery_details(open_order_line_rec.line_id)
405:
406:
407: l_insert_rsv_rec.organization_id := l_organization_id;
408:

Line 876: -- need to get delivery_detail_id from wsh_delivery_details for this old ic MO in order to populate field txn_source_line_detail_id -- 5601081

872: CLOSE get_sales_order_id;
873: GMI_RESERVATION_UTIL.PrintLn('l_sales_order_id : '|| l_sales_order_id);
874:
875: begin
876: -- need to get delivery_detail_id from wsh_delivery_details for this old ic MO in order to populate field txn_source_line_detail_id -- 5601081
877: OPEN get_delivery_details(move_order_line_rec.line_id,open_order_line_rec.line_id);
878: FETCH get_delivery_details INTO l_delivery_detail_id;
879: CLOSE get_delivery_details;
880: EXCEPTION

Line 1022: /* UPDATE the WSH_DELIVERY_DETAILS with this new move order info */

1018: /* do not create discrete move order as this item is non inventory item. */
1019: NULL;
1020: END IF; -- IF l_opm_noninv_ind = 0 THEN -- 5475003 rework 10/19
1021:
1022: /* UPDATE the WSH_DELIVERY_DETAILS with this new move order info */
1023: GMI_RESERVATION_UTIL.PrintLn(' before update of wsh_delivery_detail for move order line id');
1024:
1025: -- need to incororate this into fix for non inv items and MOs
1026:

Line 1036: UPDATE wsh_delivery_details

1032: GMI_RESERVATION_UTIL.PrintLn(' in loop to update wsh_delivery_detail l_opm_noninv_ind '||to_char(l_opm_noninv_ind ));
1033:
1034: -- if non_inv item need to set dd to staged 5475003
1035: IF l_opm_noninv_ind = 1 THEN -- 5475003 rework - if here then this is non inventory item (as per OPM)
1036: UPDATE wsh_delivery_details
1037: SET released_status = 'Y', -- 5475003
1038: picked_quantity = move_order_line_rec.quantity, -- 5475003
1039: picked_quantity2 = move_order_line_rec.secondary_quantity -- 5475003
1040: WHERE delivery_detail_id = delivery_detail_rec.delivery_detail_id;

Line 1043: UPDATE wsh_delivery_details

1039: picked_quantity2 = move_order_line_rec.secondary_quantity -- 5475003
1040: WHERE delivery_detail_id = delivery_detail_rec.delivery_detail_id;
1041:
1042: ELSE
1043: UPDATE wsh_delivery_details
1044: SET move_order_line_id = l_mo_line_id
1045: WHERE delivery_detail_id = delivery_detail_rec.delivery_detail_id;
1046:
1047: END IF; -- IF l_opm_noninv_ind = 1 THEN -- 5475003