DBA Data[Home] [Help]

APPS.WMS_PLAN_TASKS_PVT dependencies on WMS_PLAN_TASKS_PVT

Line 1: PACKAGE BODY wms_plan_tasks_pvt AS

1: PACKAGE BODY wms_plan_tasks_pvt AS
2: /* $Header: WMSPTKPB.pls 120.32.12020000.4 2013/03/22 11:48:58 pyerrams ship $ */
3:
4: /*
5: * Private constants to decide the destination

Line 176: l_plans_query wms_plan_tasks_pvt.long_sql;

172:
173: /* wrapper procedure to fetch the inbound plans and tasks */
174: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
175:
176: l_plans_query wms_plan_tasks_pvt.long_sql;
177: l_tasks_query wms_plan_tasks_pvt.long_sql;
178: l_plans_query_str wms_plan_tasks_pvt.long_sql;
179: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
180:

Line 177: l_tasks_query wms_plan_tasks_pvt.long_sql;

173: /* wrapper procedure to fetch the inbound plans and tasks */
174: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
175:
176: l_plans_query wms_plan_tasks_pvt.long_sql;
177: l_tasks_query wms_plan_tasks_pvt.long_sql;
178: l_plans_query_str wms_plan_tasks_pvt.long_sql;
179: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
180:
181: l_query_plans BOOLEAN := FALSE;

Line 178: l_plans_query_str wms_plan_tasks_pvt.long_sql;

174: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
175:
176: l_plans_query wms_plan_tasks_pvt.long_sql;
177: l_tasks_query wms_plan_tasks_pvt.long_sql;
178: l_plans_query_str wms_plan_tasks_pvt.long_sql;
179: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
180:
181: l_query_plans BOOLEAN := FALSE;
182: l_query_tasks BOOLEAN := FALSE;

Line 179: l_tasks_query_str wms_plan_tasks_pvt.long_sql;

175:
176: l_plans_query wms_plan_tasks_pvt.long_sql;
177: l_tasks_query wms_plan_tasks_pvt.long_sql;
178: l_plans_query_str wms_plan_tasks_pvt.long_sql;
179: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
180:
181: l_query_plans BOOLEAN := FALSE;
182: l_query_tasks BOOLEAN := FALSE;
183:

Line 189: x_plans_select_str wms_plan_tasks_pvt.short_sql;

185: l_query_count NUMBER;
186: l_wms_task_type NUMBER;
187: l_task_count NUMBER;
188:
189: x_plans_select_str wms_plan_tasks_pvt.short_sql;
190: x_plans_from_str wms_plan_tasks_pvt.short_sql;
191: x_plans_where_str wms_plan_tasks_pvt.short_sql;
192: l_insert_str wms_plan_tasks_pvt.short_sql;
193:

Line 190: x_plans_from_str wms_plan_tasks_pvt.short_sql;

186: l_wms_task_type NUMBER;
187: l_task_count NUMBER;
188:
189: x_plans_select_str wms_plan_tasks_pvt.short_sql;
190: x_plans_from_str wms_plan_tasks_pvt.short_sql;
191: x_plans_where_str wms_plan_tasks_pvt.short_sql;
192: l_insert_str wms_plan_tasks_pvt.short_sql;
193:
194: l_module_name VARCHAR2(30) := 'query_inbound';

Line 191: x_plans_where_str wms_plan_tasks_pvt.short_sql;

187: l_task_count NUMBER;
188:
189: x_plans_select_str wms_plan_tasks_pvt.short_sql;
190: x_plans_from_str wms_plan_tasks_pvt.short_sql;
191: x_plans_where_str wms_plan_tasks_pvt.short_sql;
192: l_insert_str wms_plan_tasks_pvt.short_sql;
193:
194: l_module_name VARCHAR2(30) := 'query_inbound';
195: l_planned_task VARCHAR2(80);

Line 192: l_insert_str wms_plan_tasks_pvt.short_sql;

188:
189: x_plans_select_str wms_plan_tasks_pvt.short_sql;
190: x_plans_from_str wms_plan_tasks_pvt.short_sql;
191: x_plans_where_str wms_plan_tasks_pvt.short_sql;
192: l_insert_str wms_plan_tasks_pvt.short_sql;
193:
194: l_module_name VARCHAR2(30) := 'query_inbound';
195: l_planned_task VARCHAR2(80);
196:

Line 212: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt

208: wms_op_operation_instances wooi,
209: (SELECT transaction_temp_id
210: FROM wms_waveplan_tasks_temp
211: WHERE status_id = 6
212: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt
213: WHERE wooi.source_task_id = wwtt.transaction_temp_id
214: UNION ALL
215: SELECT wooih.operation_sequence,wwtt.transaction_temp_id
216: FROM WMS_OP_OPERTN_INSTANCES_HIST wooih,

Line 220: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt

216: FROM WMS_OP_OPERTN_INSTANCES_HIST wooih,
217: (SELECT transaction_temp_id
218: FROM wms_waveplan_tasks_temp
219: WHERE status_id = 6
220: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt
221: where wooih.source_task_id = wwtt.transaction_temp_id;
222:
223: TYPE wwtt_op_seq_rec IS RECORD
224: ( operation_sequence NUMBER,

Line 232: IF wms_plan_tasks_pvt.g_include_crossdock THEN

228:
229: BEGIN
230: IF l_debug = 1 THEN
231: debug('in query_inbound ', 'query_inbound');
232: IF wms_plan_tasks_pvt.g_include_crossdock THEN
233: debug('Querying Crossdock tasks', 'query_inbound');
234: ELSE
235: debug('NOT Querying Crossdock tasks', 'query_inbound');
236: END IF;

Line 242: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN

238:
239: x_return_status := fnd_api.g_ret_sts_success;
240:
241: /* set the planned_tasks record statuses if planned_tasks are queried*/
242: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN
243: IF l_debug = 1 THEN
244: debug('planned_tasks are queried ','query_inbound');
245: END IF;
246: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;

Line 246: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;

242: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN
243: IF l_debug = 1 THEN
244: debug('planned_tasks are queried ','query_inbound');
245: END IF;
246: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
247: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
249: END IF;
250: /* If only planned task records are qeuried and independent tasks are not

Line 247: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;

243: IF l_debug = 1 THEN
244: debug('planned_tasks are queried ','query_inbound');
245: END IF;
246: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
247: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
249: END IF;
250: /* If only planned task records are qeuried and independent tasks are not
251: * queried, then set the values of global variables to related to independent

Line 248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;

244: debug('planned_tasks are queried ','query_inbound');
245: END IF;
246: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
247: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
249: END IF;
250: /* If only planned task records are qeuried and independent tasks are not
251: * queried, then set the values of global variables to related to independent
252: * tasks to false

Line 254: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN

250: /* If only planned task records are qeuried and independent tasks are not
251: * queried, then set the values of global variables to related to independent
252: * tasks to false
253: */
254: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
255: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;

Line 255: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

251: * queried, then set the values of global variables to related to independent
252: * tasks to false
253: */
254: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
255: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;
259:

Line 256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

252: * tasks to false
253: */
254: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
255: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;
259:
260: If wms_plan_tasks_pvt.g_is_pending_plan

Line 257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;

253: */
254: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
255: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;
259:
260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan

Line 260: If wms_plan_tasks_pvt.g_is_pending_plan

256: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;
259:
260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan
262: or wms_plan_tasks_pvt.g_is_completed_plan
263: or wms_plan_tasks_pvt.g_is_aborted_plan
264: or wms_plan_tasks_pvt.g_is_cancelled_plan

Line 261: or wms_plan_tasks_pvt.g_is_inprogress_plan

257: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
258: END IF;
259:
260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan
262: or wms_plan_tasks_pvt.g_is_completed_plan
263: or wms_plan_tasks_pvt.g_is_aborted_plan
264: or wms_plan_tasks_pvt.g_is_cancelled_plan
265: then

Line 262: or wms_plan_tasks_pvt.g_is_completed_plan

258: END IF;
259:
260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan
262: or wms_plan_tasks_pvt.g_is_completed_plan
263: or wms_plan_tasks_pvt.g_is_aborted_plan
264: or wms_plan_tasks_pvt.g_is_cancelled_plan
265: then
266: /* plans are queried */

Line 263: or wms_plan_tasks_pvt.g_is_aborted_plan

259:
260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan
262: or wms_plan_tasks_pvt.g_is_completed_plan
263: or wms_plan_tasks_pvt.g_is_aborted_plan
264: or wms_plan_tasks_pvt.g_is_cancelled_plan
265: then
266: /* plans are queried */
267: IF l_debug = 1 THEN

Line 264: or wms_plan_tasks_pvt.g_is_cancelled_plan

260: If wms_plan_tasks_pvt.g_is_pending_plan
261: or wms_plan_tasks_pvt.g_is_inprogress_plan
262: or wms_plan_tasks_pvt.g_is_completed_plan
263: or wms_plan_tasks_pvt.g_is_aborted_plan
264: or wms_plan_tasks_pvt.g_is_cancelled_plan
265: then
266: /* plans are queried */
267: IF l_debug = 1 THEN
268: debug('plans are queried ', 'query_inbound');

Line 271: if wms_plan_tasks_pvt.g_is_pending_plan then

267: IF l_debug = 1 THEN
268: debug('plans are queried ', 'query_inbound');
269: END IF;
270: l_query_plans := TRUE;
271: if wms_plan_tasks_pvt.g_is_pending_plan then
272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;

Line 272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;

268: debug('plans are queried ', 'query_inbound');
269: END IF;
270: l_query_plans := TRUE;
271: if wms_plan_tasks_pvt.g_is_pending_plan then
272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;

Line 274: if wms_plan_tasks_pvt.g_is_inprogress_plan then

270: l_query_plans := TRUE;
271: if wms_plan_tasks_pvt.g_is_pending_plan then
272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;

Line 275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;

271: if wms_plan_tasks_pvt.g_is_pending_plan then
272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;
279:

Line 276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;

272: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;
279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR

Line 277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;

273: END IF;
274: if wms_plan_tasks_pvt.g_is_inprogress_plan then
275: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;
279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR
281: wms_plan_tasks_pvt.g_is_cancelled_plan OR

Line 280: IF wms_plan_tasks_pvt.g_is_completed_plan OR

276: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;
279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR
281: wms_plan_tasks_pvt.g_is_cancelled_plan OR
282: wms_plan_tasks_pvt.g_is_aborted_plan THEN
283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
284: END IF;

Line 281: wms_plan_tasks_pvt.g_is_cancelled_plan OR

277: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
278: END IF;
279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR
281: wms_plan_tasks_pvt.g_is_cancelled_plan OR
282: wms_plan_tasks_pvt.g_is_aborted_plan THEN
283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
284: END IF;
285:

Line 282: wms_plan_tasks_pvt.g_is_aborted_plan THEN

278: END IF;
279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR
281: wms_plan_tasks_pvt.g_is_cancelled_plan OR
282: wms_plan_tasks_pvt.g_is_aborted_plan THEN
283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
284: END IF;
285:
286: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;

Line 283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;

279:
280: IF wms_plan_tasks_pvt.g_is_completed_plan OR
281: wms_plan_tasks_pvt.g_is_cancelled_plan OR
282: wms_plan_tasks_pvt.g_is_aborted_plan THEN
283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
284: END IF;
285:
286: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;
287: Else

Line 286: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;

282: wms_plan_tasks_pvt.g_is_aborted_plan THEN
283: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
284: END IF;
285:
286: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;
287: Else
288: IF l_debug = 1 THEN
289: debug('plans are not queried ', 'query_inbound');
290: END IF;

Line 295: IF wms_plan_tasks_pvt.g_query_independent_tasks OR

291: l_query_plans := FALSE;
292: End if;
293:
294:
295: IF wms_plan_tasks_pvt.g_query_independent_tasks OR
296: wms_plan_tasks_pvt.g_query_planned_tasks THEN
297: IF l_debug = 1 THEN
298: debug('tasks are queried ', 'query_inbound');
299: END IF;

Line 296: wms_plan_tasks_pvt.g_query_planned_tasks THEN

292: End if;
293:
294:
295: IF wms_plan_tasks_pvt.g_query_independent_tasks OR
296: wms_plan_tasks_pvt.g_query_planned_tasks THEN
297: IF l_debug = 1 THEN
298: debug('tasks are queried ', 'query_inbound');
299: END IF;
300: l_query_tasks := TRUE;

Line 385: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

381: /* set the bind variables now */
382: IF l_debug = 1 THEN
383: debug('setting the bind_variables ','query_inbound');
384: END IF;
385: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
386: IF l_debug = 1 THEN
387: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
388: END IF;
389: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

Line 387: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');

383: debug('setting the bind_variables ','query_inbound');
384: END IF;
385: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
386: IF l_debug = 1 THEN
387: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
388: END IF;
389: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
390: END IF;
391:

Line 389: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

385: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
386: IF l_debug = 1 THEN
387: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
388: END IF;
389: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
390: END IF;
391:
392: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
393: IF l_debug = 1 THEN

Line 392: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

388: END IF;
389: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
390: END IF;
391:
392: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
393: IF l_debug = 1 THEN
394: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
395: END IF;
396: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

Line 394: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');

390: END IF;
391:
392: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
393: IF l_debug = 1 THEN
394: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
395: END IF;
396: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
397: END IF;
398:

Line 396: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

392: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
393: IF l_debug = 1 THEN
394: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
395: END IF;
396: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
397: END IF;
398:
399: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
400: IF l_debug = 1 THEN

Line 399: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

395: END IF;
396: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
397: END IF;
398:
399: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
400: IF l_debug = 1 THEN
401: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
402: END IF;
403: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

Line 401: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');

397: END IF;
398:
399: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
400: IF l_debug = 1 THEN
401: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
402: END IF;
403: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
404: END IF;
405:

Line 403: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

399: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
400: IF l_debug = 1 THEN
401: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
402: END IF;
403: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
404: END IF;
405:
406: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
407: IF l_debug = 1 THEN

Line 406: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

402: END IF;
403: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
404: END IF;
405:
406: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
407: IF l_debug = 1 THEN
408: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
409: END IF;
410: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

Line 408: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');

404: END IF;
405:
406: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
407: IF l_debug = 1 THEN
408: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
409: END IF;
410: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
411: END IF;
412:

Line 410: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

406: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
407: IF l_debug = 1 THEN
408: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
409: END IF;
410: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
411: END IF;
412:
413: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
414: IF l_debug = 1 THEN

Line 413: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

409: END IF;
410: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
411: END IF;
412:
413: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
414: IF l_debug = 1 THEN
415: debug('wms_plan_tasks_pvt.g_to_locator_id is not null ','query_inbound');
416: END IF;
417: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );

Line 415: debug('wms_plan_tasks_pvt.g_to_locator_id is not null ','query_inbound');

411: END IF;
412:
413: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
414: IF l_debug = 1 THEN
415: debug('wms_plan_tasks_pvt.g_to_locator_id is not null ','query_inbound');
416: END IF;
417: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
418: END IF;
419:

Line 417: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );

413: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
414: IF l_debug = 1 THEN
415: debug('wms_plan_tasks_pvt.g_to_locator_id is not null ','query_inbound');
416: END IF;
417: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
418: END IF;
419:
420: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
421: IF l_debug = 1 THEN

Line 420: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

416: END IF;
417: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
418: END IF;
419:
420: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
421: IF l_debug = 1 THEN
422: debug('wms_plan_tasks_pvt.g_category_set_id is not null ','query_inbound');
423: END IF;
424: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );

Line 422: debug('wms_plan_tasks_pvt.g_category_set_id is not null ','query_inbound');

418: END IF;
419:
420: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
421: IF l_debug = 1 THEN
422: debug('wms_plan_tasks_pvt.g_category_set_id is not null ','query_inbound');
423: END IF;
424: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
425: END IF;
426:

Line 424: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );

420: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
421: IF l_debug = 1 THEN
422: debug('wms_plan_tasks_pvt.g_category_set_id is not null ','query_inbound');
423: END IF;
424: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
425: END IF;
426:
427: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
428: IF l_debug = 1 THEN

Line 427: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

423: END IF;
424: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
425: END IF;
426:
427: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
428: IF l_debug = 1 THEN
429: debug('wms_plan_tasks_pvt.g_item_category_id is not null ','query_inbound');
430: END IF;
431: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );

Line 429: debug('wms_plan_tasks_pvt.g_item_category_id is not null ','query_inbound');

425: END IF;
426:
427: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
428: IF l_debug = 1 THEN
429: debug('wms_plan_tasks_pvt.g_item_category_id is not null ','query_inbound');
430: END IF;
431: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
432: END IF;
433:

Line 431: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );

427: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
428: IF l_debug = 1 THEN
429: debug('wms_plan_tasks_pvt.g_item_category_id is not null ','query_inbound');
430: END IF;
431: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
432: END IF;
433:
434: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
435: IF l_debug = 1 THEN

Line 434: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

430: END IF;
431: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
432: END IF;
433:
434: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
435: IF l_debug = 1 THEN
436: debug('wms_plan_tasks_pvt.g_inventory_item_id is not null ','query_inbound');
437: END IF;
438: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );

Line 436: debug('wms_plan_tasks_pvt.g_inventory_item_id is not null ','query_inbound');

432: END IF;
433:
434: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
435: IF l_debug = 1 THEN
436: debug('wms_plan_tasks_pvt.g_inventory_item_id is not null ','query_inbound');
437: END IF;
438: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
439: END IF;
440:

Line 438: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );

434: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
435: IF l_debug = 1 THEN
436: debug('wms_plan_tasks_pvt.g_inventory_item_id is not null ','query_inbound');
437: END IF;
438: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
439: END IF;
440:
441: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN
442: IF l_debug = 1 THEN

Line 441: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN

437: END IF;
438: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
439: END IF;
440:
441: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN
442: IF l_debug = 1 THEN
443: debug('wms_plan_tasks_pvt.g_person_id is not null ','query_inbound');
444: END IF;
445: dbms_sql.bind_variable(l_query_handle, 'person_id', wms_plan_tasks_pvt.g_person_id);

Line 443: debug('wms_plan_tasks_pvt.g_person_id is not null ','query_inbound');

439: END IF;
440:
441: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN
442: IF l_debug = 1 THEN
443: debug('wms_plan_tasks_pvt.g_person_id is not null ','query_inbound');
444: END IF;
445: dbms_sql.bind_variable(l_query_handle, 'person_id', wms_plan_tasks_pvt.g_person_id);
446: END IF;
447:

Line 445: dbms_sql.bind_variable(l_query_handle, 'person_id', wms_plan_tasks_pvt.g_person_id);

441: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN
442: IF l_debug = 1 THEN
443: debug('wms_plan_tasks_pvt.g_person_id is not null ','query_inbound');
444: END IF;
445: dbms_sql.bind_variable(l_query_handle, 'person_id', wms_plan_tasks_pvt.g_person_id);
446: END IF;
447:
448: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN
449: IF l_debug = 1 THEN

Line 448: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN

444: END IF;
445: dbms_sql.bind_variable(l_query_handle, 'person_id', wms_plan_tasks_pvt.g_person_id);
446: END IF;
447:
448: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN
449: IF l_debug = 1 THEN
450: debug('wms_plan_tasks_pvt.g_person_resource_id is not null ','query_inbound');
451: END IF;
452: dbms_sql.bind_variable(l_query_handle, 'person_resource_id', wms_plan_tasks_pvt.g_person_resource_id);

Line 450: debug('wms_plan_tasks_pvt.g_person_resource_id is not null ','query_inbound');

446: END IF;
447:
448: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN
449: IF l_debug = 1 THEN
450: debug('wms_plan_tasks_pvt.g_person_resource_id is not null ','query_inbound');
451: END IF;
452: dbms_sql.bind_variable(l_query_handle, 'person_resource_id', wms_plan_tasks_pvt.g_person_resource_id);
453: END IF;
454:

Line 452: dbms_sql.bind_variable(l_query_handle, 'person_resource_id', wms_plan_tasks_pvt.g_person_resource_id);

448: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN
449: IF l_debug = 1 THEN
450: debug('wms_plan_tasks_pvt.g_person_resource_id is not null ','query_inbound');
451: END IF;
452: dbms_sql.bind_variable(l_query_handle, 'person_resource_id', wms_plan_tasks_pvt.g_person_resource_id);
453: END IF;
454:
455: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN
456: IF l_debug = 1 THEN

Line 455: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN

451: END IF;
452: dbms_sql.bind_variable(l_query_handle, 'person_resource_id', wms_plan_tasks_pvt.g_person_resource_id);
453: END IF;
454:
455: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN
456: IF l_debug = 1 THEN
457: debug('wms_plan_tasks_pvt.g_equipment_type_id is not null ','query_inbound');
458: END IF;
459: dbms_sql.bind_variable(l_query_handle, 'equipment_type_id', wms_plan_tasks_pvt.g_equipment_type_id);

Line 457: debug('wms_plan_tasks_pvt.g_equipment_type_id is not null ','query_inbound');

453: END IF;
454:
455: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN
456: IF l_debug = 1 THEN
457: debug('wms_plan_tasks_pvt.g_equipment_type_id is not null ','query_inbound');
458: END IF;
459: dbms_sql.bind_variable(l_query_handle, 'equipment_type_id', wms_plan_tasks_pvt.g_equipment_type_id);
460: END IF;
461:

Line 459: dbms_sql.bind_variable(l_query_handle, 'equipment_type_id', wms_plan_tasks_pvt.g_equipment_type_id);

455: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN
456: IF l_debug = 1 THEN
457: debug('wms_plan_tasks_pvt.g_equipment_type_id is not null ','query_inbound');
458: END IF;
459: dbms_sql.bind_variable(l_query_handle, 'equipment_type_id', wms_plan_tasks_pvt.g_equipment_type_id);
460: END IF;
461:
462: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN
463: IF l_debug = 1 THEN

Line 462: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN

458: END IF;
459: dbms_sql.bind_variable(l_query_handle, 'equipment_type_id', wms_plan_tasks_pvt.g_equipment_type_id);
460: END IF;
461:
462: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN
463: IF l_debug = 1 THEN
464: debug('wms_plan_tasks_pvt.g_machine_resource_id is not null ','query_inbound');
465: END IF;
466: dbms_sql.bind_variable(l_query_handle, 'machine_resource_id', wms_plan_tasks_pvt.g_machine_resource_id);

Line 464: debug('wms_plan_tasks_pvt.g_machine_resource_id is not null ','query_inbound');

460: END IF;
461:
462: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN
463: IF l_debug = 1 THEN
464: debug('wms_plan_tasks_pvt.g_machine_resource_id is not null ','query_inbound');
465: END IF;
466: dbms_sql.bind_variable(l_query_handle, 'machine_resource_id', wms_plan_tasks_pvt.g_machine_resource_id);
467: END IF;
468:

Line 466: dbms_sql.bind_variable(l_query_handle, 'machine_resource_id', wms_plan_tasks_pvt.g_machine_resource_id);

462: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN
463: IF l_debug = 1 THEN
464: debug('wms_plan_tasks_pvt.g_machine_resource_id is not null ','query_inbound');
465: END IF;
466: dbms_sql.bind_variable(l_query_handle, 'machine_resource_id', wms_plan_tasks_pvt.g_machine_resource_id);
467: END IF;
468:
469: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN
470: IF l_debug = 1 THEN

Line 469: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN

465: END IF;
466: dbms_sql.bind_variable(l_query_handle, 'machine_resource_id', wms_plan_tasks_pvt.g_machine_resource_id);
467: END IF;
468:
469: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN
470: IF l_debug = 1 THEN
471: debug('wms_plan_tasks_pvt.g_machine_instance is not null ','query_inbound');
472: END IF;
473: dbms_sql.bind_variable(l_query_handle, 'machine_instance', wms_plan_tasks_pvt.g_machine_instance);

Line 471: debug('wms_plan_tasks_pvt.g_machine_instance is not null ','query_inbound');

467: END IF;
468:
469: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN
470: IF l_debug = 1 THEN
471: debug('wms_plan_tasks_pvt.g_machine_instance is not null ','query_inbound');
472: END IF;
473: dbms_sql.bind_variable(l_query_handle, 'machine_instance', wms_plan_tasks_pvt.g_machine_instance);
474: END IF;
475:

Line 473: dbms_sql.bind_variable(l_query_handle, 'machine_instance', wms_plan_tasks_pvt.g_machine_instance);

469: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN
470: IF l_debug = 1 THEN
471: debug('wms_plan_tasks_pvt.g_machine_instance is not null ','query_inbound');
472: END IF;
473: dbms_sql.bind_variable(l_query_handle, 'machine_instance', wms_plan_tasks_pvt.g_machine_instance);
474: END IF;
475:
476: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
477: IF l_debug = 1 THEN

Line 476: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

472: END IF;
473: dbms_sql.bind_variable(l_query_handle, 'machine_instance', wms_plan_tasks_pvt.g_machine_instance);
474: END IF;
475:
476: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
477: IF l_debug = 1 THEN
478: debug('wms_plan_tasks_pvt.g_from_creation_date is not null ','query_inbound');
479: END IF;
480: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date);

Line 478: debug('wms_plan_tasks_pvt.g_from_creation_date is not null ','query_inbound');

474: END IF;
475:
476: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
477: IF l_debug = 1 THEN
478: debug('wms_plan_tasks_pvt.g_from_creation_date is not null ','query_inbound');
479: END IF;
480: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date);
481: END IF;
482:

Line 480: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date);

476: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
477: IF l_debug = 1 THEN
478: debug('wms_plan_tasks_pvt.g_from_creation_date is not null ','query_inbound');
479: END IF;
480: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date);
481: END IF;
482:
483: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
484: IF l_debug = 1 THEN

Line 483: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

479: END IF;
480: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date);
481: END IF;
482:
483: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
484: IF l_debug = 1 THEN
485: debug('wms_plan_tasks_pvt.g_to_creation_date is not null ','query_inbound');
486: END IF;
487: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date);

Line 485: debug('wms_plan_tasks_pvt.g_to_creation_date is not null ','query_inbound');

481: END IF;
482:
483: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
484: IF l_debug = 1 THEN
485: debug('wms_plan_tasks_pvt.g_to_creation_date is not null ','query_inbound');
486: END IF;
487: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date);
488: END IF;
489:

Line 487: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date);

483: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
484: IF l_debug = 1 THEN
485: debug('wms_plan_tasks_pvt.g_to_creation_date is not null ','query_inbound');
486: END IF;
487: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date);
488: END IF;
489:
490: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
491: IF l_debug = 1 THEN

Line 490: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

486: END IF;
487: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date);
488: END IF;
489:
490: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
491: IF l_debug = 1 THEN
492: debug('wms_plan_tasks_pvt.g_from_task_quantity is not null ','query_inbound');
493: END IF;
494: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );

Line 492: debug('wms_plan_tasks_pvt.g_from_task_quantity is not null ','query_inbound');

488: END IF;
489:
490: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
491: IF l_debug = 1 THEN
492: debug('wms_plan_tasks_pvt.g_from_task_quantity is not null ','query_inbound');
493: END IF;
494: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
495: END IF;
496:

Line 494: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );

490: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
491: IF l_debug = 1 THEN
492: debug('wms_plan_tasks_pvt.g_from_task_quantity is not null ','query_inbound');
493: END IF;
494: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
495: END IF;
496:
497: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
498: IF l_debug = 1 THEN

Line 497: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

493: END IF;
494: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
495: END IF;
496:
497: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
498: IF l_debug = 1 THEN
499: debug('wms_plan_tasks_pvt.g_to_task_quantity is not null ','query_inbound');
500: END IF;
501: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );

Line 499: debug('wms_plan_tasks_pvt.g_to_task_quantity is not null ','query_inbound');

495: END IF;
496:
497: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
498: IF l_debug = 1 THEN
499: debug('wms_plan_tasks_pvt.g_to_task_quantity is not null ','query_inbound');
500: END IF;
501: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
502: END IF;
503:

Line 501: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );

497: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
498: IF l_debug = 1 THEN
499: debug('wms_plan_tasks_pvt.g_to_task_quantity is not null ','query_inbound');
500: END IF;
501: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
502: END IF;
503:
504: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
505: IF l_debug = 1 THEN

Line 504: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

500: END IF;
501: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
502: END IF;
503:
504: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
505: IF l_debug = 1 THEN
506: debug('wms_plan_tasks_pvt.g_from_requisition_header_id is not null ','query_inbound');
507: END IF;
508: dbms_sql.bind_variable(l_query_handle, 'from_requisition_header_id', wms_plan_tasks_pvt.g_from_requisition_header_id );

Line 506: debug('wms_plan_tasks_pvt.g_from_requisition_header_id is not null ','query_inbound');

502: END IF;
503:
504: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
505: IF l_debug = 1 THEN
506: debug('wms_plan_tasks_pvt.g_from_requisition_header_id is not null ','query_inbound');
507: END IF;
508: dbms_sql.bind_variable(l_query_handle, 'from_requisition_header_id', wms_plan_tasks_pvt.g_from_requisition_header_id );
509: END IF;
510:

Line 508: dbms_sql.bind_variable(l_query_handle, 'from_requisition_header_id', wms_plan_tasks_pvt.g_from_requisition_header_id );

504: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
505: IF l_debug = 1 THEN
506: debug('wms_plan_tasks_pvt.g_from_requisition_header_id is not null ','query_inbound');
507: END IF;
508: dbms_sql.bind_variable(l_query_handle, 'from_requisition_header_id', wms_plan_tasks_pvt.g_from_requisition_header_id );
509: END IF;
510:
511: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
512: IF l_debug = 1 THEN

Line 511: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

507: END IF;
508: dbms_sql.bind_variable(l_query_handle, 'from_requisition_header_id', wms_plan_tasks_pvt.g_from_requisition_header_id );
509: END IF;
510:
511: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
512: IF l_debug = 1 THEN
513: debug('wms_plan_tasks_pvt.g_to_requisition_header_id is not null ','query_inbound');
514: END IF;
515: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );

Line 513: debug('wms_plan_tasks_pvt.g_to_requisition_header_id is not null ','query_inbound');

509: END IF;
510:
511: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
512: IF l_debug = 1 THEN
513: debug('wms_plan_tasks_pvt.g_to_requisition_header_id is not null ','query_inbound');
514: END IF;
515: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );
516: END IF;
517:

Line 515: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );

511: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
512: IF l_debug = 1 THEN
513: debug('wms_plan_tasks_pvt.g_to_requisition_header_id is not null ','query_inbound');
514: END IF;
515: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );
516: END IF;
517:
518: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
519: IF l_debug = 1 THEN

Line 518: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN

514: END IF;
515: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );
516: END IF;
517:
518: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
519: IF l_debug = 1 THEN
520: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
521: END IF;
522: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number

Line 520: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');

516: END IF;
517:
518: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
519: IF l_debug = 1 THEN
520: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
521: END IF;
522: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
523: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
524: END IF;

Line 523: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );

519: IF l_debug = 1 THEN
520: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
521: END IF;
522: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
523: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
524: END IF;
525:
526: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
527: IF l_debug = 1 THEN

Line 526: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

522: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
523: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
524: END IF;
525:
526: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
527: IF l_debug = 1 THEN
528: debug('wms_plan_tasks_pvt.g_to_shipment_number is not null ','query_inbound');
529: END IF;
530: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );

Line 528: debug('wms_plan_tasks_pvt.g_to_shipment_number is not null ','query_inbound');

524: END IF;
525:
526: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
527: IF l_debug = 1 THEN
528: debug('wms_plan_tasks_pvt.g_to_shipment_number is not null ','query_inbound');
529: END IF;
530: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );
531: END IF;
532:

Line 530: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );

526: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
527: IF l_debug = 1 THEN
528: debug('wms_plan_tasks_pvt.g_to_shipment_number is not null ','query_inbound');
529: END IF;
530: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );
531: END IF;
532:
533: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
534: IF l_debug = 1 THEN

Line 533: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

529: END IF;
530: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );
531: END IF;
532:
533: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
534: IF l_debug = 1 THEN
535: debug('wms_plan_tasks_pvt.g_from_po_header_id is not null ' || wms_plan_tasks_pvt.g_from_po_header_id,'query_inbound');
536: END IF;
537: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );

Line 535: debug('wms_plan_tasks_pvt.g_from_po_header_id is not null ' || wms_plan_tasks_pvt.g_from_po_header_id,'query_inbound');

531: END IF;
532:
533: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
534: IF l_debug = 1 THEN
535: debug('wms_plan_tasks_pvt.g_from_po_header_id is not null ' || wms_plan_tasks_pvt.g_from_po_header_id,'query_inbound');
536: END IF;
537: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );
538: END IF;
539:

Line 537: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );

533: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
534: IF l_debug = 1 THEN
535: debug('wms_plan_tasks_pvt.g_from_po_header_id is not null ' || wms_plan_tasks_pvt.g_from_po_header_id,'query_inbound');
536: END IF;
537: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );
538: END IF;
539:
540: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
541: IF l_debug = 1 THEN

Line 540: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

536: END IF;
537: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );
538: END IF;
539:
540: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
541: IF l_debug = 1 THEN
542: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
543: END IF;
544: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );

Line 542: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');

538: END IF;
539:
540: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
541: IF l_debug = 1 THEN
542: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
543: END IF;
544: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
545: END IF;
546:

Line 544: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );

540: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
541: IF l_debug = 1 THEN
542: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
543: END IF;
544: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
545: END IF;
546:
547: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
548: IF l_debug = 1 THEN

Line 547: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

543: END IF;
544: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
545: END IF;
546:
547: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
548: IF l_debug = 1 THEN
549: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');
550: END IF;
551: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );

Line 549: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');

545: END IF;
546:
547: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
548: IF l_debug = 1 THEN
549: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');
550: END IF;
551: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );
552: END IF;
553:

Line 551: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );

547: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
548: IF l_debug = 1 THEN
549: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');
550: END IF;
551: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );
552: END IF;
553:
554: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
555: IF l_debug = 1 THEN

Line 554: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

550: END IF;
551: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );
552: END IF;
553:
554: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
555: IF l_debug = 1 THEN
556: debug('wms_plan_tasks_pvt.g_to_rma_header_id is not null ','query_inbound');
557: END IF;
558: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );

Line 556: debug('wms_plan_tasks_pvt.g_to_rma_header_id is not null ','query_inbound');

552: END IF;
553:
554: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
555: IF l_debug = 1 THEN
556: debug('wms_plan_tasks_pvt.g_to_rma_header_id is not null ','query_inbound');
557: END IF;
558: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );
559: END IF;
560:

Line 558: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );

554: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
555: IF l_debug = 1 THEN
556: debug('wms_plan_tasks_pvt.g_to_rma_header_id is not null ','query_inbound');
557: END IF;
558: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );
559: END IF;
560:
561: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
562: IF l_debug = 1 THEN

Line 561: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

557: END IF;
558: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );
559: END IF;
560:
561: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
562: IF l_debug = 1 THEN
563: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
564: END IF;
565: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

Line 563: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');

559: END IF;
560:
561: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
562: IF l_debug = 1 THEN
563: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
564: END IF;
565: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
566: END IF;
567:

Line 565: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

561: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
562: IF l_debug = 1 THEN
563: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
564: END IF;
565: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
566: END IF;
567:
568: IF wms_plan_tasks_pvt.g_include_crossdock THEN
569:

Line 568: IF wms_plan_tasks_pvt.g_include_crossdock THEN

564: END IF;
565: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
566: END IF;
567:
568: IF wms_plan_tasks_pvt.g_include_crossdock THEN
569:
570: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
571: l_is_range_so := FALSE;
572: else/*range so is TRUE if from or to is null or form<> to*/

Line 570: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then

566: END IF;
567:
568: IF wms_plan_tasks_pvt.g_include_crossdock THEN
569:
570: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
571: l_is_range_so := FALSE;
572: else/*range so is TRUE if from or to is null or form<> to*/
573: l_is_range_so := TRUE;
574: end if;

Line 575: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then

571: l_is_range_so := FALSE;
572: else/*range so is TRUE if from or to is null or form<> to*/
573: l_is_range_so := TRUE;
574: end if;
575: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then
576: select lpad(segment1,40), segment2,segment1
577: INTO l_from_tonum_mso_seg1,l_from_mso_seg2,l_from_mso_seg1
578: from mtl_sales_orders
579: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;

Line 579: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;

575: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then
576: select lpad(segment1,40), segment2,segment1
577: INTO l_from_tonum_mso_seg1,l_from_mso_seg2,l_from_mso_seg1
578: from mtl_sales_orders
579: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;
580: end if;
581: IF(l_is_range_so) THEN
582: /* Its a range...Query for details of to sales order */
583: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then

Line 583: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then

579: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;
580: end if;
581: IF(l_is_range_so) THEN
582: /* Its a range...Query for details of to sales order */
583: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then
584: select lpad(segment1,40), segment2
585: INTO l_to_tonum_mso_seg1,l_to_mso_seg2
586: from mtl_sales_orders
587: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;

Line 587: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;

583: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then
584: select lpad(segment1,40), segment2
585: INTO l_to_tonum_mso_seg1,l_to_mso_seg2
586: from mtl_sales_orders
587: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;
588: end if;/*added the above code to get the values since we are not going to join with mso 3455109*/
589: ELSE
590: l_to_tonum_mso_seg1 := l_from_tonum_mso_seg1;
591: l_to_mso_seg2 := l_from_mso_seg2;

Line 595: IF wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders

591: l_to_mso_seg2 := l_from_mso_seg2;
592: END IF;
593:
594:
595: IF wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
596: THEN
597: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 8);
598: ELSIF NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders
599: THEN

Line 598: ELSIF NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders

594:
595: IF wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
596: THEN
597: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 8);
598: ELSIF NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders
599: THEN
600: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 2);
601: END IF;
602:

Line 606: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

602:
603: /*added if else for 3455109 since we are changing the query also need to change binds if its for completed task*/
604: IF NOT g_is_completed_task THEN -- Non Completed tasks
605:
606: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
607: THEN
608: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
609: END IF;
610:

Line 608: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);

604: IF NOT g_is_completed_task THEN -- Non Completed tasks
605:
606: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
607: THEN
608: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
609: END IF;
610:
611: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
612: THEN

Line 611: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

607: THEN
608: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
609: END IF;
610:
611: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
612: THEN
613: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
614: END IF;
615: ELSE --completed tasks

Line 613: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);

609: END IF;
610:
611: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
612: THEN
613: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
614: END IF;
615: ELSE --completed tasks
616: IF(l_is_range_so) then
617: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN

Line 617: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN

613: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
614: END IF;
615: ELSE --completed tasks
616: IF(l_is_range_so) then
617: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN
618: --3240261 dbms_sql.bind_variable(l_query_handle, 'from_sales_order_id', p_from_sales_order_id);
619: dbms_sql.bind_variable(l_query_handle,'l_from_tonum_mso_seg1',l_from_tonum_mso_seg1);--added for 3455109
620: dbms_sql.bind_variable(l_query_handle,'l_from_mso_seg2',l_from_mso_seg2);--3455109
621: END IF;

Line 623: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL THEN

619: dbms_sql.bind_variable(l_query_handle,'l_from_tonum_mso_seg1',l_from_tonum_mso_seg1);--added for 3455109
620: dbms_sql.bind_variable(l_query_handle,'l_from_mso_seg2',l_from_mso_seg2);--3455109
621: END IF;
622:
623: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL THEN
624: --3420261 dbms_sql.bind_variable(l_query_handle, 'to_sales_order_id', p_to_sales_order_id);
625: dbms_sql.bind_variable(l_query_handle,'l_to_tonum_mso_seg1',l_to_tonum_mso_seg1);
626: dbms_sql.bind_variable(l_query_handle,'l_to_mso_seg2',l_to_mso_seg2);
627: END IF;

Line 635: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

631: END IF;--end of range or not range so
632:
633: END IF;--end of copleted or not completed task 3455109
634:
635: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
636: THEN
637: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
638: END IF;
639:

Line 637: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);

633: END IF;--end of copleted or not completed task 3455109
634:
635: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
636: THEN
637: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
638: END IF;
639:
640: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
641: THEN

Line 640: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

636: THEN
637: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
638: END IF;
639:
640: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
641: THEN
642: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
643: END IF;
644:

Line 642: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);

638: END IF;
639:
640: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
641: THEN
642: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
643: END IF;
644:
645: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
646: THEN

Line 645: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

641: THEN
642: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
643: END IF;
644:
645: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
646: THEN
647: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
648: END IF;
649:

Line 647: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);

643: END IF;
644:
645: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
646: THEN
647: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
648: END IF;
649:
650: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
651: THEN

Line 650: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL

646: THEN
647: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
648: END IF;
649:
650: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
651: THEN
652: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
653: END IF;
654:

Line 652: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);

648: END IF;
649:
650: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
651: THEN
652: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
653: END IF;
654:
655: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
656: THEN

Line 655: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

651: THEN
652: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
653: END IF;
654:
655: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
656: THEN
657: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
658: END IF;
659:

Line 657: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);

653: END IF;
654:
655: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
656: THEN
657: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
658: END IF;
659:
660: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
661: THEN

Line 660: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

656: THEN
657: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
658: END IF;
659:
660: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
661: THEN
662: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
663: END IF;
664:

Line 662: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);

658: END IF;
659:
660: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
661: THEN
662: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
663: END IF;
664:
665: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
666: THEN

Line 665: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL

661: THEN
662: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
663: END IF;
664:
665: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
666: THEN
667: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
668: END IF;
669:

Line 667: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);

663: END IF;
664:
665: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
666: THEN
667: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
668: END IF;
669:
670: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
671: THEN

Line 670: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL

666: THEN
667: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
668: END IF;
669:
670: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
671: THEN
672: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
673: END IF;
674:

Line 672: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);

668: END IF;
669:
670: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
671: THEN
672: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
673: END IF;
674:
675: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
676: THEN

Line 675: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL

671: THEN
672: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
673: END IF;
674:
675: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
676: THEN
677: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
678: END IF;
679:

Line 677: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);

673: END IF;
674:
675: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
676: THEN
677: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
678: END IF;
679:
680: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
681: THEN

Line 680: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL

676: THEN
677: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
678: END IF;
679:
680: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
681: THEN
682: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
683: END IF;
684:

Line 682: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);

678: END IF;
679:
680: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
681: THEN
682: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
683: END IF;
684:
685: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
686: THEN

Line 685: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL

681: THEN
682: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
683: END IF;
684:
685: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
686: THEN
687: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
688: END IF;
689: /*

Line 687: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);

683: END IF;
684:
685: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
686: THEN
687: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
688: END IF;
689: /*
690: IF wms_plan_tasks_pvt.g_time_till_shipment IS NOT NULL AND wms_plan_tasks_pvt.g_time_till_shipment_uom_code IS NOT NULL
691: THEN

Line 690: IF wms_plan_tasks_pvt.g_time_till_shipment IS NOT NULL AND wms_plan_tasks_pvt.g_time_till_shipment_uom_code IS NOT NULL

686: THEN
687: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
688: END IF;
689: /*
690: IF wms_plan_tasks_pvt.g_time_till_shipment IS NOT NULL AND wms_plan_tasks_pvt.g_time_till_shipment_uom_code IS NOT NULL
691: THEN
692: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
693: END IF;
694: */

Line 692: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);

688: END IF;
689: /*
690: IF wms_plan_tasks_pvt.g_time_till_shipment IS NOT NULL AND wms_plan_tasks_pvt.g_time_till_shipment_uom_code IS NOT NULL
691: THEN
692: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
693: END IF;
694: */
695:
696: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

Line 696: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

692: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
693: END IF;
694: */
695:
696: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
697: THEN
698: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
699: END IF;
700:

Line 698: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);

694: */
695:
696: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
697: THEN
698: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
699: END IF;
700:
701: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
702: THEN

Line 701: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

697: THEN
698: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
699: END IF;
700:
701: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
702: THEN
703: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
704: END IF;
705:

Line 703: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);

699: END IF;
700:
701: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
702: THEN
703: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
704: END IF;
705:
706: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
707: THEN

Line 706: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

702: THEN
703: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
704: END IF;
705:
706: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
707: THEN
708: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
709: END IF;
710:

Line 708: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);

704: END IF;
705:
706: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
707: THEN
708: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
709: END IF;
710:
711: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
712: THEN

Line 711: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

707: THEN
708: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
709: END IF;
710:
711: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
712: THEN
713: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
714: END IF;
715:

Line 713: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);

709: END IF;
710:
711: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
712: THEN
713: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
714: END IF;
715:
716: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
717: THEN

Line 716: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

712: THEN
713: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
714: END IF;
715:
716: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
717: THEN
718: DBMS_SQL.bind_variable (l_query_handle,'to_number_of_order_lines',wms_plan_tasks_pvt.g_to_number_of_order_lines);
719: END IF;
720:

Line 718: DBMS_SQL.bind_variable (l_query_handle,'to_number_of_order_lines',wms_plan_tasks_pvt.g_to_number_of_order_lines);

714: END IF;
715:
716: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
717: THEN
718: DBMS_SQL.bind_variable (l_query_handle,'to_number_of_order_lines',wms_plan_tasks_pvt.g_to_number_of_order_lines);
719: END IF;
720:
721: END IF;
722:

Line 758: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

754: END IF;
755: IF l_debug = 1 THEN
756: debug('l_query_count ' || l_query_count,'query_inbound');
757: END IF;
758: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
759: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
760: END IF;
761:
762: /* Now the tasks records are inserted into the table wwtt . Next insert

Line 759: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;

755: IF l_debug = 1 THEN
756: debug('l_query_count ' || l_query_count,'query_inbound');
757: END IF;
758: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
759: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
760: END IF;
761:
762: /* Now the tasks records are inserted into the table wwtt . Next insert
763: the plan records if l_plans_query_str is not null */

Line 773: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

769: l_query_handle := DBMS_SQL.open_cursor;
770: DBMS_SQL.parse(l_query_handle, l_plans_query, DBMS_SQL.native);
771:
772: /* Set the bind variables now */
773: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

Line 775: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');

771:
772: /* Set the bind variables now */
773: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
778: END IF;
779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

Line 777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

773: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
778: END IF;
779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');

Line 779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

775: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
778: END IF;
779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

Line 781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');

777: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
778: END IF;
779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
784: END IF;
785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

Line 783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
784: END IF;
785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');

Line 785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

781: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
784: END IF;
785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

Line 787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');

783: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
784: END IF;
785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
790: END IF;
791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

Line 789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

785: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
790: END IF;
791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');

Line 791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

787: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
790: END IF;
791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

Line 793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');

789: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
790: END IF;
791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
796: END IF;
797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

Line 795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

791: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
796: END IF;
797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');

Line 797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

793: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
796: END IF;
797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );

Line 799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');

795: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
796: END IF;
797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

Line 801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );

797: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');

Line 803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

799: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );

Line 805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');

801: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
808: END IF;
809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

Line 807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );

803: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
808: END IF;
809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');

Line 809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

805: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
808: END IF;
809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );

Line 811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');

807: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
808: END IF;
809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
814: END IF;
815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

Line 813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );

809: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
814: END IF;
815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');

Line 815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

811: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
814: END IF;
815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );

Line 817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');

813: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
814: END IF;
815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
820: END IF;
821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

Line 819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );

815: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
820: END IF;
821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
822: IF l_debug = 1 THEN
823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');

Line 821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

817: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
820: END IF;
821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
822: IF l_debug = 1 THEN
823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
824: END IF;
825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );

Line 823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');

819: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
820: END IF;
821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
822: IF l_debug = 1 THEN
823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
824: END IF;
825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
826: END IF;
827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

Line 825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );

821: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
822: IF l_debug = 1 THEN
823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
824: END IF;
825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
826: END IF;
827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
828: IF l_debug = 1 THEN
829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');

Line 827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

823: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
824: END IF;
825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
826: END IF;
827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
828: IF l_debug = 1 THEN
829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
830: END IF;
831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );

Line 829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');

825: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
826: END IF;
827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
828: IF l_debug = 1 THEN
829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
830: END IF;
831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
832: END IF;
833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

Line 831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );

827: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
828: IF l_debug = 1 THEN
829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
830: END IF;
831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
832: END IF;
833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
834: IF l_debug = 1 THEN
835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');

Line 833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

829: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
830: END IF;
831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
832: END IF;
833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
834: IF l_debug = 1 THEN
835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
836: END IF;
837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );

Line 835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');

831: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
832: END IF;
833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
834: IF l_debug = 1 THEN
835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
836: END IF;
837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
838: END IF;
839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

Line 837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );

833: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
834: IF l_debug = 1 THEN
835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
836: END IF;
837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
838: END IF;
839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
840: IF l_debug = 1 THEN
841: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');

Line 839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

835: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
836: END IF;
837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
838: END IF;
839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
840: IF l_debug = 1 THEN
841: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');
842: END IF;
843: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );

Line 841: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');

837: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
838: END IF;
839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
840: IF l_debug = 1 THEN
841: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');
842: END IF;
843: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );
844: END IF;
845:

Line 843: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );

839: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
840: IF l_debug = 1 THEN
841: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');
842: END IF;
843: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );
844: END IF;
845:
846: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
847: IF l_debug = 1 THEN

Line 846: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN

842: END IF;
843: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );
844: END IF;
845:
846: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );

Line 848: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');

844: END IF;
845:
846: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
851: END IF;
852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

Line 850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );

846: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
851: END IF;
852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
853: IF l_debug = 1 THEN
854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');

Line 852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

848: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
851: END IF;
852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
853: IF l_debug = 1 THEN
854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
855: END IF;
856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );

Line 854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');

850: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
851: END IF;
852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
853: IF l_debug = 1 THEN
854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
855: END IF;
856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
857: END IF;
858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

Line 856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );

852: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
853: IF l_debug = 1 THEN
854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
855: END IF;
856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
857: END IF;
858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
859: IF l_debug = 1 THEN
860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');

Line 858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

854: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
855: END IF;
856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
857: END IF;
858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
859: IF l_debug = 1 THEN
860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
861: END IF;
862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );

Line 860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');

856: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
857: END IF;
858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
859: IF l_debug = 1 THEN
860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
861: END IF;
862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
863: END IF;
864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN

Line 862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );

858: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
859: IF l_debug = 1 THEN
860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
861: END IF;
862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
863: END IF;
864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
865: IF l_debug = 1 THEN
866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');

Line 864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN

860: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
861: END IF;
862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
863: END IF;
864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
865: IF l_debug = 1 THEN
866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
867: END IF;
868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );

Line 866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');

862: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
863: END IF;
864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
865: IF l_debug = 1 THEN
866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
867: END IF;
868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
869: END IF;
870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

Line 868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );

864: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
865: IF l_debug = 1 THEN
866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
867: END IF;
868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
869: END IF;
870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
871: IF l_debug = 1 THEN
872: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');

Line 870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

866: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
867: END IF;
868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
869: END IF;
870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
871: IF l_debug = 1 THEN
872: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
873: END IF;
874: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

Line 872: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');

868: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
869: END IF;
870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
871: IF l_debug = 1 THEN
872: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
873: END IF;
874: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
875: END IF;
876: /* end setting the bind variables */

Line 874: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

870: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
871: IF l_debug = 1 THEN
872: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
873: END IF;
874: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
875: END IF;
876: /* end setting the bind variables */
877: IF l_debug = 1 THEN
878: debug('end setting the bind variables for plans query','query_inbound');

Line 884: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

880: l_query_count := DBMS_SQL.EXECUTE(l_query_handle);
881: IF l_debug = 1 THEN
882: debug('l_query_count after executing the plans query ' || l_query_count ,'query_inbound');
883: END IF;
884: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
885: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
886: END IF;
887:
888: set_inbound_source_header_line;

Line 885: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;

881: IF l_debug = 1 THEN
882: debug('l_query_count after executing the plans query ' || l_query_count ,'query_inbound');
883: END IF;
884: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
885: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
886: END IF;
887:
888: set_inbound_source_header_line;
889: /* delete the drop-pending record from the temp table, when both independent and planned

Line 892: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND

888: set_inbound_source_header_line;
889: /* delete the drop-pending record from the temp table, when both independent and planned
890: * task records are queried
891: */
892: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
893: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
894: THEN
895: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
896: DELETE FROM wms_waveplan_tasks_temp wwtt

Line 893: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded

889: /* delete the drop-pending record from the temp table, when both independent and planned
890: * task records are queried
891: */
892: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
893: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
894: THEN
895: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
896: DELETE FROM wms_waveplan_tasks_temp wwtt
897: WHERE EXISTS (

Line 895: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);

891: */
892: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
893: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
894: THEN
895: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
896: DELETE FROM wms_waveplan_tasks_temp wwtt
897: WHERE EXISTS (
898: SELECT 1
899: FROM wms_op_operation_instances wooi

Line 909: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

905: AND wwtt.status_id = 4;
906: IF l_debug = 1 THEN
907: DEBUG('rows deleted '|| SQL%ROWCOUNT);
908: END IF;
909: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
910: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;
911: END IF;
912:
913: EXCEPTION

Line 910: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;

906: IF l_debug = 1 THEN
907: DEBUG('rows deleted '|| SQL%ROWCOUNT);
908: END IF;
909: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
910: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;
911: END IF;
912:
913: EXCEPTION
914: WHEN fnd_api.g_exc_error THEN

Line 961: IF wms_plan_tasks_pvt.g_is_pending_plan OR

957: ' and operation_plan_id is not null ' ||
958: ' and parent_line_id is not null) wwtt ';
959: /**** Get the non-completed plans query first ****/
960:
961: IF wms_plan_tasks_pvt.g_is_pending_plan OR
962: wms_plan_tasks_pvt.g_is_inprogress_plan THEN
963:
964: IF l_debug = 1 THEN
965: debug('pending or inprogress plans are queried ','get_plans');

Line 962: wms_plan_tasks_pvt.g_is_inprogress_plan THEN

958: ' and parent_line_id is not null) wwtt ';
959: /**** Get the non-completed plans query first ****/
960:
961: IF wms_plan_tasks_pvt.g_is_pending_plan OR
962: wms_plan_tasks_pvt.g_is_inprogress_plan THEN
963:
964: IF l_debug = 1 THEN
965: debug('pending or inprogress plans are queried ','get_plans');
966: END IF;

Line 968: '''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''', ' ||

964: IF l_debug = 1 THEN
965: debug('pending or inprogress plans are queried ','get_plans');
966: END IF;
967: l_plans_select_str := 'SELECT ''+'',' ||
968: '''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''', ' ||
969: 'mmtt.transaction_temp_id, '||
970: 'mmtt.parent_line_id, ' ||
971: 'mmtt.inventory_item_id, ' ||
972: 'msiv.concatenated_segments, ' ||

Line 986: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)

982: 'decode(milv.segment19, null, milv.concatenated_segments, null), ' ||
983: 'wopi.status, ' ||
984: 'wopi.status, ' ||
985: 'decode(wopi.status,' ||
986: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
987: || ''', 2, '''
988: || wms_plan_tasks_pvt.g_plan_status_codes(2)
989: || ''', 3, '''
990: || wms_plan_tasks_pvt.g_plan_status_codes(3)

Line 988: || wms_plan_tasks_pvt.g_plan_status_codes(2)

984: 'wopi.status, ' ||
985: 'decode(wopi.status,' ||
986: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
987: || ''', 2, '''
988: || wms_plan_tasks_pvt.g_plan_status_codes(2)
989: || ''', 3, '''
990: || wms_plan_tasks_pvt.g_plan_status_codes(3)
991: || ''', 4, '''
992: || wms_plan_tasks_pvt.g_plan_status_codes(4)

Line 990: || wms_plan_tasks_pvt.g_plan_status_codes(3)

986: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
987: || ''', 2, '''
988: || wms_plan_tasks_pvt.g_plan_status_codes(2)
989: || ''', 3, '''
990: || wms_plan_tasks_pvt.g_plan_status_codes(3)
991: || ''', 4, '''
992: || wms_plan_tasks_pvt.g_plan_status_codes(4)
993: || ''', 5, '''
994: || wms_plan_tasks_pvt.g_plan_status_codes(5)

Line 992: || wms_plan_tasks_pvt.g_plan_status_codes(4)

988: || wms_plan_tasks_pvt.g_plan_status_codes(2)
989: || ''', 3, '''
990: || wms_plan_tasks_pvt.g_plan_status_codes(3)
991: || ''', 4, '''
992: || wms_plan_tasks_pvt.g_plan_status_codes(4)
993: || ''', 5, '''
994: || wms_plan_tasks_pvt.g_plan_status_codes(5)
995: || ''', 6, '''
996: || wms_plan_tasks_pvt.g_plan_status_codes(6)

Line 994: || wms_plan_tasks_pvt.g_plan_status_codes(5)

990: || wms_plan_tasks_pvt.g_plan_status_codes(3)
991: || ''', 4, '''
992: || wms_plan_tasks_pvt.g_plan_status_codes(4)
993: || ''', 5, '''
994: || wms_plan_tasks_pvt.g_plan_status_codes(5)
995: || ''', 6, '''
996: || wms_plan_tasks_pvt.g_plan_status_codes(6)
997: || ''', 7, '''
998: || wms_plan_tasks_pvt.g_plan_status_codes(7)

Line 996: || wms_plan_tasks_pvt.g_plan_status_codes(6)

992: || wms_plan_tasks_pvt.g_plan_status_codes(4)
993: || ''', 5, '''
994: || wms_plan_tasks_pvt.g_plan_status_codes(5)
995: || ''', 6, '''
996: || wms_plan_tasks_pvt.g_plan_status_codes(6)
997: || ''', 7, '''
998: || wms_plan_tasks_pvt.g_plan_status_codes(7)
999: || '''), ' ||
1000: 'mmtt.transaction_type_id, ' ||

Line 998: || wms_plan_tasks_pvt.g_plan_status_codes(7)

994: || wms_plan_tasks_pvt.g_plan_status_codes(5)
995: || ''', 6, '''
996: || wms_plan_tasks_pvt.g_plan_status_codes(6)
997: || ''', 7, '''
998: || wms_plan_tasks_pvt.g_plan_status_codes(7)
999: || '''), ' ||
1000: 'mmtt.transaction_type_id, ' ||
1001: 'mmtt.transaction_action_id, ' ||
1002: 'mmtt.transaction_source_type_id, ';

Line 1004: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

1000: 'mmtt.transaction_type_id, ' ||
1001: 'mmtt.transaction_action_id, ' ||
1002: 'mmtt.transaction_source_type_id, ';
1003:
1004: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1005: l_plans_select_str := l_plans_select_str
1006: || 'mtst.transaction_source_type_name, '; --transaction_source_type
1007: END IF;
1008:

Line 1014: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

1010: 'mmtt.transaction_source_id, ' ||
1011: 'mmtt.trx_source_line_id, ' ||
1012: 'mmtt.transfer_organization, ';
1013:
1014: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1015: l_plans_select_str := l_plans_select_str || 'mp1.organization_code, ';
1016: END IF;
1017:
1018: l_plans_select_str:=l_plans_select_str ||

Line 1022: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

1018: l_plans_select_str:=l_plans_select_str ||
1019: 'mmtt.transfer_subinventory, ' ||
1020: 'mmtt.transfer_to_location, ';
1021:
1022: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1023: l_plans_select_str := l_plans_select_str ||
1024: 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
1025: END IF;
1026:

Line 1031: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

1027: l_plans_select_str := l_plans_select_str ||
1028: 'mmtt.transaction_uom, ' ||
1029: 'mmtt.transaction_quantity, '||
1030: 'mmtt.standard_operation_id, ';
1031: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
1032: l_plans_select_str := l_plans_select_str || ' NULL, ';
1033: END IF;
1034: l_plans_select_str := l_plans_select_str ||
1035: 'mmtt.move_order_line_id, ' || /*move_order_line_id */

Line 1039: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN

1035: 'mmtt.move_order_line_id, ' || /*move_order_line_id */
1036: 'mmtt.pick_slip_number, ' || /*pick_slip_number*/
1037: 'mmtt.cartonization_id, '; /*cartonization_id */
1038:
1039: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1040: l_plans_select_str := l_plans_select_str
1041: || 'wlpn2.license_plate_number, '; --cartonization_lpn
1042: END IF;
1043:

Line 1047: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN

1043:
1044: l_plans_select_str := l_plans_select_str ||
1045: 'mmtt.allocated_lpn_id, '; /*allocated_lpn_id*/
1046:
1047: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
1048: l_plans_select_str := l_plans_select_str
1049: || 'wlpn1.license_plate_number, '; --allocated_lpn
1050: END IF;
1051:

Line 1055: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN

1051:
1052: l_plans_select_str := l_plans_select_str ||
1053: 'mmtt.container_item_id, '; --container_item_id
1054:
1055: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1056: l_plans_select_str := l_plans_select_str
1057: || 'msiv1.concatenated_segments, '; --container_item
1058: END IF;
1059:

Line 1063: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

1059:
1060: l_plans_select_str := l_plans_select_str ||
1061: 'mmtt.lpn_id, '; --from_lpn_id
1062:
1063: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1064: l_plans_select_str := l_plans_select_str ||
1065: 'wlpn5.license_plate_number, '; --from_lpn
1066: END IF;
1067:

Line 1071: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

1067:
1068: l_plans_select_str := l_plans_select_str ||
1069: 'mmtt.content_lpn_id, '; --content_lpn_id
1070:
1071: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1072: l_plans_select_str := l_plans_select_str
1073: || 'wlpn3.license_plate_number, '; --content_lpn
1074: END IF;
1075:

Line 1078: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

1074: END IF;
1075:
1076: l_plans_select_str := l_plans_select_str ||'mmtt.transfer_lpn_id, ';
1077:
1078: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1079: l_plans_select_str := l_plans_select_str || 'wlpn4.license_plate_number, ';
1080: END IF;
1081: l_plans_select_str := l_plans_select_str ||
1082: 'mmtt.last_update_date, ' || /*mmtt_last_update_date*/

Line 1089: || wms_plan_tasks_pvt.g_task_types(1)

1085: 'mmtt.task_priority, ' || /*priority_original */
1086: 'mmtt.wms_task_type, ' || /*task_type_id */
1087: 'decode(mmtt.wms_task_type,'
1088: || '1, '''
1089: || wms_plan_tasks_pvt.g_task_types(1)
1090: || ''', 2, '''
1091: || wms_plan_tasks_pvt.g_task_types(2)
1092: || ''', 3, '''
1093: || wms_plan_tasks_pvt.g_task_types(3)

Line 1091: || wms_plan_tasks_pvt.g_task_types(2)

1087: 'decode(mmtt.wms_task_type,'
1088: || '1, '''
1089: || wms_plan_tasks_pvt.g_task_types(1)
1090: || ''', 2, '''
1091: || wms_plan_tasks_pvt.g_task_types(2)
1092: || ''', 3, '''
1093: || wms_plan_tasks_pvt.g_task_types(3)
1094: || ''', 4, '''
1095: || wms_plan_tasks_pvt.g_task_types(4)

Line 1093: || wms_plan_tasks_pvt.g_task_types(3)

1089: || wms_plan_tasks_pvt.g_task_types(1)
1090: || ''', 2, '''
1091: || wms_plan_tasks_pvt.g_task_types(2)
1092: || ''', 3, '''
1093: || wms_plan_tasks_pvt.g_task_types(3)
1094: || ''', 4, '''
1095: || wms_plan_tasks_pvt.g_task_types(4)
1096: || ''', 5, '''
1097: || wms_plan_tasks_pvt.g_task_types(5)

Line 1095: || wms_plan_tasks_pvt.g_task_types(4)

1091: || wms_plan_tasks_pvt.g_task_types(2)
1092: || ''', 3, '''
1093: || wms_plan_tasks_pvt.g_task_types(3)
1094: || ''', 4, '''
1095: || wms_plan_tasks_pvt.g_task_types(4)
1096: || ''', 5, '''
1097: || wms_plan_tasks_pvt.g_task_types(5)
1098: || ''', 6, '''
1099: || wms_plan_tasks_pvt.g_task_types(6)

Line 1097: || wms_plan_tasks_pvt.g_task_types(5)

1093: || wms_plan_tasks_pvt.g_task_types(3)
1094: || ''', 4, '''
1095: || wms_plan_tasks_pvt.g_task_types(4)
1096: || ''', 5, '''
1097: || wms_plan_tasks_pvt.g_task_types(5)
1098: || ''', 6, '''
1099: || wms_plan_tasks_pvt.g_task_types(6)
1100: || ''', 7, '''
1101: || wms_plan_tasks_pvt.g_task_types(7)

Line 1099: || wms_plan_tasks_pvt.g_task_types(6)

1095: || wms_plan_tasks_pvt.g_task_types(4)
1096: || ''', 5, '''
1097: || wms_plan_tasks_pvt.g_task_types(5)
1098: || ''', 6, '''
1099: || wms_plan_tasks_pvt.g_task_types(6)
1100: || ''', 7, '''
1101: || wms_plan_tasks_pvt.g_task_types(7)
1102: || ''', 8, '''
1103: || wms_plan_tasks_pvt.g_task_types(8)

Line 1101: || wms_plan_tasks_pvt.g_task_types(7)

1097: || wms_plan_tasks_pvt.g_task_types(5)
1098: || ''', 6, '''
1099: || wms_plan_tasks_pvt.g_task_types(6)
1100: || ''', 7, '''
1101: || wms_plan_tasks_pvt.g_task_types(7)
1102: || ''', 8, '''
1103: || wms_plan_tasks_pvt.g_task_types(8)
1104: || '''), ' ||
1105: 'mmtt.creation_date, ' || /*creation_time */

Line 1103: || wms_plan_tasks_pvt.g_task_types(8)

1099: || wms_plan_tasks_pvt.g_task_types(6)
1100: || ''', 7, '''
1101: || wms_plan_tasks_pvt.g_task_types(7)
1102: || ''', 8, '''
1103: || wms_plan_tasks_pvt.g_task_types(8)
1104: || '''), ' ||
1105: 'mmtt.creation_date, ' || /*creation_time */
1106: 'mmtt.operation_plan_id, '; /*operation_plan_id*/
1107: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

Line 1107: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

1103: || wms_plan_tasks_pvt.g_task_types(8)
1104: || '''), ' ||
1105: 'mmtt.creation_date, ' || /*creation_time */
1106: 'mmtt.operation_plan_id, '; /*operation_plan_id*/
1107: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
1108: l_plans_select_str := l_plans_select_str ||
1109: 'wop.operation_plan_name, '; /*operation_plan*/
1110: END IF;
1111:

Line 1112: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

1108: l_plans_select_str := l_plans_select_str ||
1109: 'wop.operation_plan_name, '; /*operation_plan*/
1110: END IF;
1111:
1112: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
1113: l_plans_select_str := l_plans_select_str || 'to_number(null), '; --operation_sequence
1114: END IF;
1115:
1116: l_plans_select_str := l_plans_select_str ||

Line 1126: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

1122: 'null, ' || /*person*/
1123: 'to_date(null), ' || /*effective_start_date*/
1124: 'to_date(null), ' || /*effective_end_date*/
1125: 'to_number(null), '; /*person_resource_id*/
1126: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
1127: l_plans_select_str := l_plans_select_str ||
1128: 'null, ';/*person_resource_code*/
1129: END IF;
1130: l_plans_select_str := l_plans_select_str ||

Line 1132: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

1128: 'null, ';/*person_resource_code*/
1129: END IF;
1130: l_plans_select_str := l_plans_select_str ||
1131: 'to_number(null), '; /*machine_resource_id*/
1132: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
1133: l_plans_select_str := l_plans_select_str ||
1134: 'null, '; /*machine_resource_code*/
1135: END IF;
1136: l_plans_select_str := l_plans_select_str ||

Line 1149: IF wms_plan_tasks_pvt.g_include_inbound THEN

1145: 'mmtt.secondary_transaction_quantity ';
1146:
1147:
1148: /* If inbound specific query is made, select more fields */
1149: IF wms_plan_tasks_pvt.g_include_inbound THEN
1150: l_plans_select_str := l_plans_select_str
1151: || ', wwtt.reference_id '
1152: || ', wwtt.reference ';
1153: END IF;

Line 1155: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

1151: || ', wwtt.reference_id '
1152: || ', wwtt.reference ';
1153: END IF;
1154:
1155: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
1156: l_plans_select_str := l_plans_select_str
1157: || ', wwtt.source_header '
1158: || ', wwtt.line_number ';
1159: END IF;

Line 1172: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

1168: || ', mtl_item_locations_kfv milv '
1169: || ', wms_op_plan_instances wopi '
1170: || ', wms_op_plans_vl wop ';
1171:
1172: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
1173: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1174: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1175: END IF;
1176:

Line 1173: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

1169: || ', wms_op_plan_instances wopi '
1170: || ', wms_op_plans_vl wop ';
1171:
1172: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
1173: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1174: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1175: END IF;
1176:
1177: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

Line 1177: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

1173: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1174: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1175: END IF;
1176:
1177: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1178: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn1 ';
1179: END IF;
1180:
1181: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN

Line 1181: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN

1177: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1178: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn1 ';
1179: END IF;
1180:
1181: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1182: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn2 ';
1183: END IF;
1184:
1185: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN

Line 1185: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN

1181: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1182: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn2 ';
1183: END IF;
1184:
1185: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1186: l_plans_from_str := l_plans_from_str || ', mtl_system_items_kfv msiv1 ';
1187: END IF;
1188:
1189: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

Line 1189: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

1185: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1186: l_plans_from_str := l_plans_from_str || ', mtl_system_items_kfv msiv1 ';
1187: END IF;
1188:
1189: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1190: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn5 ';
1191: END IF;
1192:
1193: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

Line 1193: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

1189: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1190: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn5 ';
1191: END IF;
1192:
1193: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1194: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn3 ';
1195: END IF;
1196:
1197: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

Line 1197: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

1193: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1194: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn3 ';
1195: END IF;
1196:
1197: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1198: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn4 ';
1199: END IF;
1200:
1201: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

Line 1201: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

1197: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1198: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn4 ';
1199: END IF;
1200:
1201: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1202: l_plans_from_str := l_plans_from_str || ', mtl_parameters mp1 ';
1203: END IF;
1204: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1205: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';

Line 1204: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

1200:
1201: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1202: l_plans_from_str := l_plans_from_str || ', mtl_parameters mp1 ';
1203: END IF;
1204: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1205: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';
1206: END IF;
1207:
1208: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

Line 1208: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

1204: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1205: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';
1206: END IF;
1207:
1208: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1209: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1210: END IF;
1211:
1212: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

Line 1212: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1208: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1209: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1210: END IF;
1211:
1212: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1213: wms_plan_tasks_pvt.g_include_inbound THEN
1214: l_plans_from_str := l_plans_from_str || ', ' || l_inline_query;
1215: END IF;
1216:

Line 1213: wms_plan_tasks_pvt.g_include_inbound THEN

1209: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1210: END IF;
1211:
1212: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1213: wms_plan_tasks_pvt.g_include_inbound THEN
1214: l_plans_from_str := l_plans_from_str || ', ' || l_inline_query;
1215: END IF;
1216:
1217: IF l_debug = 1 THEN

Line 1232: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

1228: || 'AND mmtt.transaction_temp_id = wopi.source_task_id '
1229: || 'and mmtt.parent_line_id is null '
1230: || 'and mmtt.operation_plan_id is not null ';
1231:
1232: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1233: l_plans_where_str := l_plans_where_str
1234: || 'AND mmtt.transfer_subinventory = milv1.subinventory_code(+) '
1235: || 'AND mmtt.transfer_to_location = milv1.inventory_location_id(+) ';
1236: end if;

Line 1237: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

1233: l_plans_where_str := l_plans_where_str
1234: || 'AND mmtt.transfer_subinventory = milv1.subinventory_code(+) '
1235: || 'AND mmtt.transfer_to_location = milv1.inventory_location_id(+) ';
1236: end if;
1237: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1238: l_plans_where_str := l_plans_where_str
1239: || 'AND mmtt.transaction_source_type_id = mtst.transaction_source_type_id ';
1240: end if;
1241: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

Line 1241: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

1237: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1238: l_plans_where_str := l_plans_where_str
1239: || 'AND mmtt.transaction_source_type_id = mtst.transaction_source_type_id ';
1240: end if;
1241: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1242: l_plans_where_str := l_plans_where_str
1243: || 'AND mmtt.allocated_lpn_id = wlpn1.lpn_id(+) ';
1244: end if;
1245: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then

Line 1245: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then

1241: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1242: l_plans_where_str := l_plans_where_str
1243: || 'AND mmtt.allocated_lpn_id = wlpn1.lpn_id(+) ';
1244: end if;
1245: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then
1246: l_plans_where_str := l_plans_where_str
1247: || 'AND mmtt.cartonization_id = wlpn2.lpn_id(+) ';
1248: end if;
1249: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' then

Line 1249: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' then

1245: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then
1246: l_plans_where_str := l_plans_where_str
1247: || 'AND mmtt.cartonization_id = wlpn2.lpn_id(+) ';
1248: end if;
1249: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' then
1250: l_plans_where_str := l_plans_where_str
1251: || 'AND mmtt.container_item_id = msiv1.inventory_item_id(+) '
1252: || 'AND mmtt.organization_id = msiv1.organization_id(+) ';
1253: end if;

Line 1254: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

1250: l_plans_where_str := l_plans_where_str
1251: || 'AND mmtt.container_item_id = msiv1.inventory_item_id(+) '
1252: || 'AND mmtt.organization_id = msiv1.organization_id(+) ';
1253: end if;
1254: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1255: l_plans_where_str := l_plans_where_str
1256: || 'AND mmtt.lpn_id = wlpn5.lpn_id(+) ';
1257: END IF;
1258: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

Line 1258: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

1254: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1255: l_plans_where_str := l_plans_where_str
1256: || 'AND mmtt.lpn_id = wlpn5.lpn_id(+) ';
1257: END IF;
1258: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1259: l_plans_where_str := l_plans_where_str
1260: || 'AND mmtt.content_lpn_id = wlpn3.lpn_id(+) ';
1261: end if;
1262: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

Line 1262: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

1258: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1259: l_plans_where_str := l_plans_where_str
1260: || 'AND mmtt.content_lpn_id = wlpn3.lpn_id(+) ';
1261: end if;
1262: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1263: l_plans_where_str := l_plans_where_str
1264: || 'AND mmtt.transfer_lpn_id = wlpn4.lpn_id(+) ';
1265: end if;
1266: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

Line 1266: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

1262: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1263: l_plans_where_str := l_plans_where_str
1264: || 'AND mmtt.transfer_lpn_id = wlpn4.lpn_id(+) ';
1265: end if;
1266: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
1267: l_plans_where_str := l_plans_where_str
1268: || 'AND mmtt.organization_id = :org_id ';
1269: END IF;
1270: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

Line 1270: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1266: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
1267: l_plans_where_str := l_plans_where_str
1268: || 'AND mmtt.organization_id = :org_id ';
1269: END IF;
1270: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1271: l_plans_where_str := l_plans_where_str
1272: || 'AND mmtt.subinventory_code = :sub_code ';
1273: END IF;
1274:

Line 1275: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1271: l_plans_where_str := l_plans_where_str
1272: || 'AND mmtt.subinventory_code = :sub_code ';
1273: END IF;
1274:
1275: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1276: l_plans_where_str := l_plans_where_str
1277: || 'AND mmtt.locator_id = :loc_id ';
1278: END IF;
1279:

Line 1280: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1276: l_plans_where_str := l_plans_where_str
1277: || 'AND mmtt.locator_id = :loc_id ';
1278: END IF;
1279:
1280: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1281: l_plans_where_str := l_plans_where_str
1282: || 'AND mmtt.transfer_subinventory = :to_sub_code ';
1283: END IF;
1284:

Line 1285: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1281: l_plans_where_str := l_plans_where_str
1282: || 'AND mmtt.transfer_subinventory = :to_sub_code ';
1283: END IF;
1284:
1285: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1286: l_plans_where_str := l_plans_where_str
1287: || 'AND mmtt.transfer_to_location = :to_loc_id ';
1288: END IF;
1289:

Line 1290: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

1286: l_plans_where_str := l_plans_where_str
1287: || 'AND mmtt.transfer_to_location = :to_loc_id ';
1288: END IF;
1289:
1290: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
1291: l_plans_where_str := l_plans_where_str
1292: || 'AND mmtt.inventory_item_id = :item_id ';
1293: END IF;
1294:

Line 1295: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

1291: l_plans_where_str := l_plans_where_str
1292: || 'AND mmtt.inventory_item_id = :item_id ';
1293: END IF;
1294:
1295: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1296: l_plans_where_str := l_plans_where_str
1297: || 'AND mic.category_set_id = :category_set_id ';
1298: END IF;
1299:

Line 1300: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

1296: l_plans_where_str := l_plans_where_str
1297: || 'AND mic.category_set_id = :category_set_id ';
1298: END IF;
1299:
1300: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
1301: l_plans_where_str := l_plans_where_str
1302: || 'AND mmtt.inventory_item_id = mic.inventory_item_id '
1303: || 'AND mic.organization_id = mmtt.organization_id '
1304: || 'AND mic.category_id = :item_category_id ';

Line 1307: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

1303: || 'AND mic.organization_id = mmtt.organization_id '
1304: || 'AND mic.category_id = :item_category_id ';
1305: END IF;
1306:
1307: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
1308: l_plans_where_str := l_plans_where_str
1309: || 'AND mmtt.standard_operation_id = :user_task_type_id ';
1310: END IF;
1311:

Line 1312: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

1308: l_plans_where_str := l_plans_where_str
1309: || 'AND mmtt.standard_operation_id = :user_task_type_id ';
1310: END IF;
1311:
1312: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
1313: l_plans_where_str := l_plans_where_str
1314: || 'AND mmtt.transaction_quantity >= :from_task_quantity ';
1315: END IF;
1316:

Line 1317: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

1313: l_plans_where_str := l_plans_where_str
1314: || 'AND mmtt.transaction_quantity >= :from_task_quantity ';
1315: END IF;
1316:
1317: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
1318: l_plans_where_str := l_plans_where_str
1319: || 'AND mmtt.transaction_quantity <= :to_task_quantity ';
1320: END IF;
1321:

Line 1322: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

1318: l_plans_where_str := l_plans_where_str
1319: || 'AND mmtt.transaction_quantity <= :to_task_quantity ';
1320: END IF;
1321:
1322: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
1323: l_plans_where_str := l_plans_where_str
1324: || 'AND mmtt.task_priority <= :from_task_priority ';
1325: END IF;
1326:

Line 1327: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN

1323: l_plans_where_str := l_plans_where_str
1324: || 'AND mmtt.task_priority <= :from_task_priority ';
1325: END IF;
1326:
1327: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
1328: l_plans_where_str := l_plans_where_str
1329: || 'AND mmtt.task_priority <= :to_task_priority ';
1330: END IF;
1331:

Line 1332: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

1328: l_plans_where_str := l_plans_where_str
1329: || 'AND mmtt.task_priority <= :to_task_priority ';
1330: END IF;
1331:
1332: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
1333: l_plans_where_str := l_plans_where_str
1334: -- || 'AND mmtt.creation_date >= :from_creation_date ';--commented in bug 6854145
1335: || 'AND TRUNC(mmtt.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
1336: END IF;

Line 1338: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

1334: -- || 'AND mmtt.creation_date >= :from_creation_date ';--commented in bug 6854145
1335: || 'AND TRUNC(mmtt.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
1336: END IF;
1337:
1338: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
1339: l_plans_where_str := l_plans_where_str
1340: --|| 'AND mmtt.creation_date <= :to_creation_date ';--commented in bug 6854145
1341: || 'AND TRUNC(mmtt.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
1342: END IF;

Line 1343: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

1339: l_plans_where_str := l_plans_where_str
1340: --|| 'AND mmtt.creation_date <= :to_creation_date ';--commented in bug 6854145
1341: || 'AND TRUNC(mmtt.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
1342: END IF;
1343: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1344: l_plans_where_str := l_plans_where_str
1345: || 'AND mmtt.transfer_organization = mp1.organization_id(+) ';
1346: end if;
1347:

Line 1349: if wms_plan_tasks_pvt.g_plan_type_id is not null then

1345: || 'AND mmtt.transfer_organization = mp1.organization_id(+) ';
1346: end if;
1347:
1348: /** The following section handles the plan_specific query **/
1349: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1350: l_plans_where_str := l_plans_where_str
1351: || 'AND wop.plan_type_id = :plan_type_id ';
1352: end if;
1353: if wms_plan_tasks_pvt.g_op_plan_id is not null then

Line 1353: if wms_plan_tasks_pvt.g_op_plan_id is not null then

1349: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1350: l_plans_where_str := l_plans_where_str
1351: || 'AND wop.plan_type_id = :plan_type_id ';
1352: end if;
1353: if wms_plan_tasks_pvt.g_op_plan_id is not null then
1354: l_plans_where_str := l_plans_where_str
1355: || 'AND wop.operation_plan_id = :op_plan_id ';
1356: end if;
1357:

Line 1359: IF wms_plan_tasks_pvt.g_is_pending_plan THEN

1355: || 'AND wop.operation_plan_id = :op_plan_id ';
1356: end if;
1357:
1358: l_plans_where_str := l_plans_where_str || ' AND wopi.status in (';
1359: IF wms_plan_tasks_pvt.g_is_pending_plan THEN
1360: l_plans_where_str := l_plans_where_str || '1';
1361: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1362: l_plans_where_str := l_plans_where_str || ',6';
1363: END IF;

Line 1361: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN

1357:
1358: l_plans_where_str := l_plans_where_str || ' AND wopi.status in (';
1359: IF wms_plan_tasks_pvt.g_is_pending_plan THEN
1360: l_plans_where_str := l_plans_where_str || '1';
1361: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1362: l_plans_where_str := l_plans_where_str || ',6';
1363: END IF;
1364: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1365: l_plans_where_str := l_plans_where_str || '6';

Line 1364: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN

1360: l_plans_where_str := l_plans_where_str || '1';
1361: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1362: l_plans_where_str := l_plans_where_str || ',6';
1363: END IF;
1364: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1365: l_plans_where_str := l_plans_where_str || '6';
1366: END IF;
1367:
1368: l_plans_where_str := l_plans_where_str || ')';

Line 1382: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1378: But now we do not check if the planned_task records are already
1379: inserted into wwtt or not. This validation should be taken care of
1380: in the calling program - In this case, it is get_inbound_tasks
1381: **/
1382: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1383: wms_plan_tasks_pvt.g_include_inbound THEN
1384: l_plans_where_str := l_plans_where_str
1385: || ' AND mmtt.transaction_temp_id = wwtt.parent_line_id ';
1386: END IF;

Line 1383: wms_plan_tasks_pvt.g_include_inbound THEN

1379: inserted into wwtt or not. This validation should be taken care of
1380: in the calling program - In this case, it is get_inbound_tasks
1381: **/
1382: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1383: wms_plan_tasks_pvt.g_include_inbound THEN
1384: l_plans_where_str := l_plans_where_str
1385: || ' AND mmtt.transaction_temp_id = wwtt.parent_line_id ';
1386: END IF;
1387: /* Filter based on the status - pending/inprogress. */

Line 1394: IF wms_plan_tasks_pvt.g_is_completed_plan OR

1390: END IF; --if pending or inprogress
1391:
1392:
1393: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1394: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1395: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1396: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1397: IF l_debug = 1 THEN
1398: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');

Line 1395: wms_plan_tasks_pvt.g_is_cancelled_plan OR

1391:
1392:
1393: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1394: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1395: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1396: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1397: IF l_debug = 1 THEN
1398: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');
1399: END IF;

Line 1396: wms_plan_tasks_pvt.g_is_aborted_plan THEN

1392:
1393: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1394: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1395: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1396: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1397: IF l_debug = 1 THEN
1398: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');
1399: END IF;
1400: get_wdth_plan_records(l_wdth_select_str, l_wdth_from_str, l_wdth_where_str);

Line 1409: if wms_plan_tasks_pvt.g_plan_type_id is not null then

1405: debug('l_wdth_where_str from get_wdth_plan_records: ' ||l_wdth_where_str,'get_plans');
1406: END IF;
1407:
1408: /** The following section handles the plan_specific query **/
1409: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1410: l_wdth_where_str := l_wdth_where_str
1411: || 'AND wop.plan_type_id = :plan_type_id ';
1412: end if;
1413: if wms_plan_tasks_pvt.g_op_plan_id is not null then

Line 1413: if wms_plan_tasks_pvt.g_op_plan_id is not null then

1409: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1410: l_wdth_where_str := l_wdth_where_str
1411: || 'AND wop.plan_type_id = :plan_type_id ';
1412: end if;
1413: if wms_plan_tasks_pvt.g_op_plan_id is not null then
1414: l_wdth_where_str := l_wdth_where_str
1415: || 'AND wop.operation_plan_id = :op_plan_id ';
1416: end if;
1417: /* If inbound specific query or inbound query is made, append the inline query to the

Line 1420: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1416: end if;
1417: /* If inbound specific query or inbound query is made, append the inline query to the
1418: from clause
1419: */
1420: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1421: wms_plan_tasks_pvt.g_include_inbound THEN
1422: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1423: END IF;
1424: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

Line 1421: wms_plan_tasks_pvt.g_include_inbound THEN

1417: /* If inbound specific query or inbound query is made, append the inline query to the
1418: from clause
1419: */
1420: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1421: wms_plan_tasks_pvt.g_include_inbound THEN
1422: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1423: END IF;
1424: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1425: wms_plan_tasks_pvt.g_include_inbound THEN

Line 1424: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1420: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1421: wms_plan_tasks_pvt.g_include_inbound THEN
1422: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1423: END IF;
1424: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1425: wms_plan_tasks_pvt.g_include_inbound THEN
1426: IF l_debug = 1 THEN
1427: debug('inbound specific query is made ','get_plans');
1428: END IF;

Line 1425: wms_plan_tasks_pvt.g_include_inbound THEN

1421: wms_plan_tasks_pvt.g_include_inbound THEN
1422: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1423: END IF;
1424: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1425: wms_plan_tasks_pvt.g_include_inbound THEN
1426: IF l_debug = 1 THEN
1427: debug('inbound specific query is made ','get_plans');
1428: END IF;
1429: l_wdth_where_str := l_wdth_where_str

Line 1473: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';

1469: x_plans_query_str := l_plans_query_str;
1470: END get_plans;
1471:
1472: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1473: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1474:
1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;

1471:
1472: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1473: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1474:
1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:

Line 1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;

1472: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1473: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1474:
1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1473: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1474:
1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */

Line 1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1474:
1475: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;

1476: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:

Line 1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */

1477: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;

1478: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;

1479:
1480: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;

1481: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:

Line 1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;

1482: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;

1483: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */

1484:
1485: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;

1486: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1493:
1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1487: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1493:
1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1495: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1488: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1489:
1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1493:
1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1495: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1496:

Line 1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1490: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1493:
1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1495: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1496:
1497: l_is_pending boolean;
1498: l_is_loaded boolean;

Line 1495: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1491: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1492: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1493:
1494: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1495: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1496:
1497: l_is_pending boolean;
1498: l_is_loaded boolean;
1499: l_is_completed boolean;

Line 1505: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE OR

1501: BEGIN
1502: IF l_debug = 1 THEN
1503: debug('in get_tasks ', 'get_tasks');
1504: END IF;
1505: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE OR
1506: wms_plan_tasks_pvt.g_is_pending_task = TRUE then
1507: IF l_debug = 1 THEN
1508: debug('query for pending task','get_tasks');
1509: END IF;

Line 1506: wms_plan_tasks_pvt.g_is_pending_task = TRUE then

1502: IF l_debug = 1 THEN
1503: debug('in get_tasks ', 'get_tasks');
1504: END IF;
1505: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE OR
1506: wms_plan_tasks_pvt.g_is_pending_task = TRUE then
1507: IF l_debug = 1 THEN
1508: debug('query for pending task','get_tasks');
1509: END IF;
1510: l_is_pending := TRUE;

Line 1518: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE OR

1514: END IF;
1515: l_is_pending := false;
1516: end if;
1517:
1518: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE OR
1519: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then
1520: l_is_loaded := TRUE;
1521: IF l_debug = 1 THEN
1522: debug('query for loaded task','get_tasks');

Line 1519: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then

1515: l_is_pending := false;
1516: end if;
1517:
1518: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE OR
1519: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then
1520: l_is_loaded := TRUE;
1521: IF l_debug = 1 THEN
1522: debug('query for loaded task','get_tasks');
1523: END IF;

Line 1531: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR

1527: END IF;
1528: l_is_loaded := false;
1529: end if;
1530:
1531: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
1532: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
1533: l_is_completed := TRUE;
1534: IF l_debug = 1 THEN
1535: debug('query for completed task ','get_tasks');

Line 1532: wms_plan_tasks_pvt.g_is_completed_task = TRUE then

1528: l_is_loaded := false;
1529: end if;
1530:
1531: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
1532: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
1533: l_is_completed := TRUE;
1534: IF l_debug = 1 THEN
1535: debug('query for completed task ','get_tasks');
1536: END IF;

Line 1571: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1567: l_tasks_from_str :=
1568: wms_waveplan_tasks_pvt.get_generic_from(
1569: p_is_loaded => l_is_loaded
1570: , p_is_completed => FALSE
1571: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1572: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1573: );
1574:
1575: l_tasks_where_str :=

Line 1572: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1568: wms_waveplan_tasks_pvt.get_generic_from(
1569: p_is_loaded => l_is_loaded
1570: , p_is_completed => FALSE
1571: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1572: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1573: );
1574:
1575: l_tasks_where_str :=
1576: wms_waveplan_tasks_pvt.get_generic_where(

Line 1577: p_add => wms_plan_tasks_pvt.g_is_add

1573: );
1574:
1575: l_tasks_where_str :=
1576: wms_waveplan_tasks_pvt.get_generic_where(
1577: p_add => wms_plan_tasks_pvt.g_is_add
1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

Line 1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id

1574:
1575: l_tasks_where_str :=
1576: wms_waveplan_tasks_pvt.get_generic_where(
1577: p_add => wms_plan_tasks_pvt.g_is_add
1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

Line 1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code

1575: l_tasks_where_str :=
1576: wms_waveplan_tasks_pvt.get_generic_where(
1577: p_add => wms_plan_tasks_pvt.g_is_add
1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

Line 1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id

1576: wms_waveplan_tasks_pvt.get_generic_where(
1577: p_add => wms_plan_tasks_pvt.g_is_add
1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

Line 1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

1577: p_add => wms_plan_tasks_pvt.g_is_add
1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

Line 1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

1578: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id

Line 1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

1579: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

Line 1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1580: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

Line 1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1581: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

Line 1586: , p_person_id => wms_plan_tasks_pvt.g_person_id

1582: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

Line 1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

1583: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

Line 1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

1584: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

Line 1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

1585: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

Line 1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

1586: , p_person_id => wms_plan_tasks_pvt.g_person_id
1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

Line 1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

1587: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1595: , p_is_pending => l_is_pending

Line 1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

1588: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1595: , p_is_pending => l_is_pending
1596: , p_is_loaded => l_is_loaded

Line 1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

1589: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1595: , p_is_pending => l_is_pending
1596: , p_is_loaded => l_is_loaded
1597: , p_is_completed => FALSE

Line 1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

1590: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1591: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1592: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1593: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1594: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1595: , p_is_pending => l_is_pending
1596: , p_is_loaded => l_is_loaded
1597: , p_is_completed => FALSE
1598: );

Line 1601: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE

1597: , p_is_completed => FALSE
1598: );
1599:
1600: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1601: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1602: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1603: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1604: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1605: then

Line 1602: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR

1598: );
1599:
1600: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1601: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1602: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1603: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1604: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1605: then
1606: IF l_debug = 1 THEN

Line 1603: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1599:
1600: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1601: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1602: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1603: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1604: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1605: then
1606: IF l_debug = 1 THEN
1607: debug('both independent and planned_tasks are queried ','get_tasks');

Line 1604: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)

1600: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1601: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1602: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1603: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1604: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1605: then
1606: IF l_debug = 1 THEN
1607: debug('both independent and planned_tasks are queried ','get_tasks');
1608: END IF;

Line 1610: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE

1606: IF l_debug = 1 THEN
1607: debug('both independent and planned_tasks are queried ','get_tasks');
1608: END IF;
1609: null;
1610: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1611: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1612: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1613: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1614: then

Line 1611: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR

1607: debug('both independent and planned_tasks are queried ','get_tasks');
1608: END IF;
1609: null;
1610: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1611: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1612: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1613: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1614: then
1615: IF l_debug = 1 THEN

Line 1612: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1608: END IF;
1609: null;
1610: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1611: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1612: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1613: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1614: then
1615: IF l_debug = 1 THEN
1616: debug('only independent tasks are queried ','get_tasks');

Line 1613: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)

1609: null;
1610: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1611: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1612: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1613: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1614: then
1615: IF l_debug = 1 THEN
1616: debug('only independent tasks are queried ','get_tasks');
1617: END IF;

Line 1620: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE

1616: debug('only independent tasks are queried ','get_tasks');
1617: END IF;
1618: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1619:
1620: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1621: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1622: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1623: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1624: then

Line 1621: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR

1617: END IF;
1618: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1619:
1620: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1621: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1622: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1623: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1624: then
1625: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';

Line 1622: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1618: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1619:
1620: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1621: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1622: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1623: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1624: then
1625: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';
1626: --l_tasks_where_str := l_tasks_where_str || ' and wooi.complete_time is not null';

Line 1623: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)

1619:
1620: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1621: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1622: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1623: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1624: then
1625: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';
1626: --l_tasks_where_str := l_tasks_where_str || ' and wooi.complete_time is not null';
1627: IF l_debug = 1 THEN

Line 1635: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1631:
1632: /* If inbound specific query is made, get the inbound specific select, from
1633: and where clauses, append them to the final query for non-completed tasks.
1634: */
1635: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1636: wms_plan_tasks_pvt.g_include_inbound OR
1637: wms_plan_tasks_pvt.g_include_crossdock THEN
1638: IF l_debug = 1 THEN
1639: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');

Line 1636: wms_plan_tasks_pvt.g_include_inbound OR

1632: /* If inbound specific query is made, get the inbound specific select, from
1633: and where clauses, append them to the final query for non-completed tasks.
1634: */
1635: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1636: wms_plan_tasks_pvt.g_include_inbound OR
1637: wms_plan_tasks_pvt.g_include_crossdock THEN
1638: IF l_debug = 1 THEN
1639: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1640: END IF;

Line 1637: wms_plan_tasks_pvt.g_include_crossdock THEN

1633: and where clauses, append them to the final query for non-completed tasks.
1634: */
1635: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1636: wms_plan_tasks_pvt.g_include_inbound OR
1637: wms_plan_tasks_pvt.g_include_crossdock THEN
1638: IF l_debug = 1 THEN
1639: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1640: END IF;
1641: get_inbound_specific_query(x_inbound_select_str => l_inbound_select_str

Line 1646: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1642: ,x_inbound_from_str => l_inbound_from_str
1643: ,x_inbound_where_str => l_inbound_where_str
1644: ,p_is_completed_rec => 0);
1645:
1646: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1647: IF l_debug = 1 THEN
1648: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1649: END IF;
1650: /* Bug 5259318 */

Line 1651: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/

1647: IF l_debug = 1 THEN
1648: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1649: END IF;
1650: /* Bug 5259318 */
1651: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1652: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1653: ,x_outbound_where_str => l_outbound_where_str
1654: );
1655: l_outbound_where_str := l_outbound_where_str || ' AND mtrl.BACKORDER_DELIVERY_DETAIL_ID = wdd.delivery_detail_id ';

Line 1674: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN

1670: END IF;
1671: /* If plan specific query is made, get the plan specific select, from and
1672: where clauses, append them to the final query for non-completed tasks.
1673: */
1674: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN
1675: l_tasks_where_str := l_tasks_where_str ||
1676: ' and mmtt.operation_plan_id = :op_plan_id ';
1677: END IF;
1678:

Line 1720: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR

1716: * specific and inbound specific additional query.
1717: * #2 Append the string returned from this function to l_tasks_query_str.
1718: */
1719:
1720: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1721: wms_plan_tasks_pvt.g_include_inbound OR
1722: wms_plan_tasks_pvt.g_include_crossdock THEN
1723: IF l_debug = 1 THEN
1724: debug('inbound specific query is made','get_tasks');

Line 1721: wms_plan_tasks_pvt.g_include_inbound OR

1717: * #2 Append the string returned from this function to l_tasks_query_str.
1718: */
1719:
1720: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1721: wms_plan_tasks_pvt.g_include_inbound OR
1722: wms_plan_tasks_pvt.g_include_crossdock THEN
1723: IF l_debug = 1 THEN
1724: debug('inbound specific query is made','get_tasks');
1725: END IF;

Line 1722: wms_plan_tasks_pvt.g_include_crossdock THEN

1718: */
1719:
1720: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1721: wms_plan_tasks_pvt.g_include_inbound OR
1722: wms_plan_tasks_pvt.g_include_crossdock THEN
1723: IF l_debug = 1 THEN
1724: debug('inbound specific query is made','get_tasks');
1725: END IF;
1726: get_inbound_specific_query(x_inbound_select_str => l_inbound_select_str

Line 1733: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1729: ,p_is_completed_rec => 1);
1730: l_inbound_where_str := l_inbound_where_str
1731: || ' AND wdth.source_document_id = rt.transaction_id (+) ';
1732:
1733: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1734: IF l_debug = 1 THEN
1735: debug('Crossdock query is made','get_tasks');
1736: END IF;
1737: /* Bug 5259318 */

Line 1738: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/

1734: IF l_debug = 1 THEN
1735: debug('Crossdock query is made','get_tasks');
1736: END IF;
1737: /* Bug 5259318 */
1738: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1739: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1740: ,x_outbound_where_str => l_outbound_where_str
1741: );
1742: /*ELSE

Line 1762: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN

1758:
1759: /* If plan specific query is made, get the plan specific select, from and
1760: * where clauses, append them to the final query for non-completed tasks.
1761: */
1762: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN
1763: l_completed_records_where_str := l_completed_records_where_str ||
1764: ' and wdth.operation_plan_id = :op_plan_id ';
1765: END IF;
1766:

Line 1774: IF wms_plan_tasks_pvt.g_query_independent_tasks AND

1770: /* Filter on operation_plan_id only if either planned_task or independent
1771: * tasks are queried, but not both together. In the latter case, we dont
1772: * filter on operation_plan_id
1773: */
1774: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1775: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1776: l_completed_records_where_str := l_completed_records_where_str ||
1777: ' and wdth.operation_plan_id is null ';
1778: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND

Line 1775: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN

1771: * tasks are queried, but not both together. In the latter case, we dont
1772: * filter on operation_plan_id
1773: */
1774: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1775: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1776: l_completed_records_where_str := l_completed_records_where_str ||
1777: ' and wdth.operation_plan_id is null ';
1778: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1779: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN

Line 1778: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND

1774: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1775: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1776: l_completed_records_where_str := l_completed_records_where_str ||
1777: ' and wdth.operation_plan_id is null ';
1778: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1779: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN
1780: l_completed_records_where_str := l_completed_records_where_str
1781: || 'and wdth.operation_plan_id is not null ';
1782: END IF;

Line 1779: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN

1775: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1776: l_completed_records_where_str := l_completed_records_where_str ||
1777: ' and wdth.operation_plan_id is null ';
1778: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1779: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN
1780: l_completed_records_where_str := l_completed_records_where_str
1781: || 'and wdth.operation_plan_id is not null ';
1782: END IF;
1783:

Line 1808: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1804: ' and wdth.transaction_action_id = 31) ' || -- Code for Bug#8467334
1805: ') ';
1806:
1807: ---fix for bug 6826562
1808: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1809: l_completed_records_where_str := l_completed_records_where_str
1810: || 'AND wdth.source_subinventory_code = :sub_code ';
1811: END IF;
1812:

Line 1813: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1809: l_completed_records_where_str := l_completed_records_where_str
1810: || 'AND wdth.source_subinventory_code = :sub_code ';
1811: END IF;
1812:
1813: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1814: l_completed_records_where_str := l_completed_records_where_str
1815: || 'AND wdth.source_locator_id = :loc_id ';
1816: END IF;
1817:

Line 1818: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1814: l_completed_records_where_str := l_completed_records_where_str
1815: || 'AND wdth.source_locator_id = :loc_id ';
1816: END IF;
1817:
1818: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1819: l_completed_records_where_str := l_completed_records_where_str
1820: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1821: END IF;
1822:

Line 1823: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1819: l_completed_records_where_str := l_completed_records_where_str
1820: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1821: END IF;
1822:
1823: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1824: l_completed_records_where_str := l_completed_records_where_str -- Modified for bug 14243507
1825: || 'AND wdth.dest_locator_id = :to_loc_id ';
1826: END IF;
1827: ---fix for bug 6826562

Line 1842: if wms_plan_tasks_pvt.g_is_completed_task

1838: IF l_debug = 1 THEN
1839: debug('completed_records_str ' || l_completed_records_str);
1840: END IF;
1841: --fetching the completed independent tasks
1842: if wms_plan_tasks_pvt.g_is_completed_task
1843: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1844:
1845: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1846: wms_plan_tasks_pvt.g_from_inbound :=TRUE;

Line 1843: AND wms_plan_tasks_pvt.g_query_independent_tasks then

1839: debug('completed_records_str ' || l_completed_records_str);
1840: END IF;
1841: --fetching the completed independent tasks
1842: if wms_plan_tasks_pvt.g_is_completed_task
1843: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1844:
1845: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1846: wms_plan_tasks_pvt.g_from_inbound :=TRUE;
1847:

Line 1846: wms_plan_tasks_pvt.g_from_inbound :=TRUE;

1842: if wms_plan_tasks_pvt.g_is_completed_task
1843: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1844:
1845: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1846: wms_plan_tasks_pvt.g_from_inbound :=TRUE;
1847:
1848: IF l_debug = 1 THEN
1849: debug('fetching the completed independent tasks ','get_tasks');
1850: END IF;

Line 1868: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1864: l_completed_tasks_from_str :=
1865: wms_waveplan_tasks_pvt.get_generic_from(
1866: p_is_loaded => FALSE
1867: , p_is_completed => l_is_completed
1868: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1869: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1870: );
1871:
1872: l_completed_tasks_where_str :=

Line 1869: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1865: wms_waveplan_tasks_pvt.get_generic_from(
1866: p_is_loaded => FALSE
1867: , p_is_completed => l_is_completed
1868: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1869: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1870: );
1871:
1872: l_completed_tasks_where_str :=
1873: wms_waveplan_tasks_pvt.get_generic_where(

Line 1874: p_add => wms_plan_tasks_pvt.g_is_add

1870: );
1871:
1872: l_completed_tasks_where_str :=
1873: wms_waveplan_tasks_pvt.get_generic_where(
1874: p_add => wms_plan_tasks_pvt.g_is_add
1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

Line 1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id

1871:
1872: l_completed_tasks_where_str :=
1873: wms_waveplan_tasks_pvt.get_generic_where(
1874: p_add => wms_plan_tasks_pvt.g_is_add
1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

Line 1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code

1872: l_completed_tasks_where_str :=
1873: wms_waveplan_tasks_pvt.get_generic_where(
1874: p_add => wms_plan_tasks_pvt.g_is_add
1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

Line 1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id

1873: wms_waveplan_tasks_pvt.get_generic_where(
1874: p_add => wms_plan_tasks_pvt.g_is_add
1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

Line 1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

1874: p_add => wms_plan_tasks_pvt.g_is_add
1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

Line 1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

1875: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id

Line 1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

1876: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

Line 1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1877: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

Line 1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1878: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

Line 1883: , p_person_id => wms_plan_tasks_pvt.g_person_id

1879: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

Line 1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

1880: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

Line 1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

1881: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

Line 1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

1882: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

Line 1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

1883: , p_person_id => wms_plan_tasks_pvt.g_person_id
1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

Line 1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

1884: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1892: , p_is_pending => FALSE

Line 1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

1885: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1892: , p_is_pending => FALSE
1893: , p_is_loaded => FALSE

Line 1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

1886: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1892: , p_is_pending => FALSE
1893: , p_is_loaded => FALSE
1894: , p_is_completed => l_is_completed

Line 1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

1887: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1888: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1889: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1890: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1891: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1892: , p_is_pending => FALSE
1893: , p_is_loaded => FALSE
1894: , p_is_completed => l_is_completed
1895: );

Line 1899: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1895: );
1896:
1897: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1898:
1899: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1900: wms_plan_tasks_pvt.g_include_inbound OR
1901: wms_plan_tasks_pvt.g_include_crossdock THEN
1902:
1903: IF l_debug = 1 THEN

Line 1900: wms_plan_tasks_pvt.g_include_inbound OR

1896:
1897: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1898:
1899: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1900: wms_plan_tasks_pvt.g_include_inbound OR
1901: wms_plan_tasks_pvt.g_include_crossdock THEN
1902:
1903: IF l_debug = 1 THEN
1904: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');

Line 1901: wms_plan_tasks_pvt.g_include_crossdock THEN

1897: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1898:
1899: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1900: wms_plan_tasks_pvt.g_include_inbound OR
1901: wms_plan_tasks_pvt.g_include_crossdock THEN
1902:
1903: IF l_debug = 1 THEN
1904: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1905: END IF;

Line 1936: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1932: ') ';
1933:
1934: ---fix for bug 6826562
1935:
1936: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1937: l_completed_tasks_where_str := l_completed_tasks_where_str
1938: || 'AND wdth.source_subinventory_code = :sub_code ';
1939: END IF;
1940:

Line 1941: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1937: l_completed_tasks_where_str := l_completed_tasks_where_str
1938: || 'AND wdth.source_subinventory_code = :sub_code ';
1939: END IF;
1940:
1941: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1942: l_completed_tasks_where_str := l_completed_tasks_where_str
1943: || 'AND wdth.source_locator_id = :loc_id ';
1944: END IF;
1945:

Line 1946: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1942: l_completed_tasks_where_str := l_completed_tasks_where_str
1943: || 'AND wdth.source_locator_id = :loc_id ';
1944: END IF;
1945:
1946: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1947: l_completed_tasks_where_str := l_completed_tasks_where_str
1948: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1949: END IF;
1950:

Line 1951: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1947: l_completed_tasks_where_str := l_completed_tasks_where_str
1948: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1949: END IF;
1950:
1951: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1952: l_completed_tasks_where_str := l_completed_tasks_where_str
1953: || 'AND wdth.dest_locator_id = :to_loc_id ';
1954: END IF;
1955:

Line 1958: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1954: END IF;
1955:
1956: ---fix for bug 6826562
1957:
1958: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1959: IF l_debug = 1 THEN
1960: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1961: END IF;
1962: l_completed_tasks_from_str := l_completed_tasks_from_str || ', mtl_txn_request_lines mtrl';

Line 1967: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/

1963: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.organization_id = mtrl.organization_id ';
1964: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.inventory_item_id = mtrl.inventory_item_id ';
1965: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.move_order_line_id = mtrl.line_id ';
1966: /* Bug 5259318 */
1967: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1968: -- for crossdock tasks with outbound criteria specified
1969: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND mtrl.backorder_delivery_detail_id = wdd.delivery_detail_id ';
1970: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1971: ,x_outbound_where_str => l_outbound_where_str

Line 2059: l_col_list_str wms_plan_tasks_pvt.short_sql;

2055: END IF;
2056: END get_tasks;
2057:
2058: PROCEDURE get_col_list(x_col_list_str OUT NOCOPY VARCHAR2) IS
2059: l_col_list_str wms_plan_tasks_pvt.short_sql;
2060: BEGIN
2061: l_col_list_str := 'expansion_code'
2062: || ', plans_tasks'
2063: || ', transaction_temp_id '

Line 2084: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

2080: || ', transaction_type_id '
2081: || ', transaction_action_id '
2082: || ', transaction_source_type_id ';
2083:
2084: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2085: l_col_list_str := l_col_list_str || ', transaction_source_type ';
2086: END IF;
2087:
2088: l_col_list_str := l_col_list_str

Line 2093: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

2089: || ', transaction_source_id '
2090: || ', transaction_source_line_id '
2091: || ', to_organization_id ';
2092:
2093: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2094: l_col_list_str := l_col_list_str || ', to_organization_code ';
2095: END IF;
2096:
2097: l_col_list_str := l_col_list_str

Line 2101: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

2097: l_col_list_str := l_col_list_str
2098: || ', to_subinventory '
2099: || ', to_locator_id ';
2100:
2101: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2102: l_col_list_str := l_col_list_str || ', to_locator ';
2103: END IF;
2104:
2105: l_col_list_str := l_col_list_str

Line 2109: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

2105: l_col_list_str := l_col_list_str
2106: || ', transaction_uom '
2107: || ', transaction_quantity '
2108: || ', user_task_type_id ';
2109: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2110: l_col_list_str := l_col_list_str || ', user_task_type ';
2111: END IF;
2112: l_col_list_str := l_col_list_str
2113: || ', move_order_line_id '

Line 2117: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN

2113: || ', move_order_line_id '
2114: || ', pick_slip_number '
2115: || ', cartonization_id ';
2116:
2117: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
2118: l_col_list_str := l_col_list_str || ', cartonization_lpn ';
2119: END IF;
2120:
2121: l_col_list_str := l_col_list_str || ', allocated_lpn_id ';

Line 2123: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN

2119: END IF;
2120:
2121: l_col_list_str := l_col_list_str || ', allocated_lpn_id ';
2122:
2123: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
2124: l_col_list_str := l_col_list_str || ', allocated_lpn ';
2125: END IF;
2126:
2127: l_col_list_str := l_col_list_str || ', container_item_id ';

Line 2129: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN

2125: END IF;
2126:
2127: l_col_list_str := l_col_list_str || ', container_item_id ';
2128:
2129: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
2130: l_col_list_str := l_col_list_str || ', container_item ';
2131: END IF;
2132:
2133: l_col_list_str := l_col_list_str || ', from_lpn_id ';

Line 2135: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

2131: END IF;
2132:
2133: l_col_list_str := l_col_list_str || ', from_lpn_id ';
2134:
2135: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2136: l_col_list_str := l_col_list_str || ', from_lpn ';
2137: END IF;
2138:
2139: l_col_list_str := l_col_list_str || ', content_lpn_id ';

Line 2141: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

2137: END IF;
2138:
2139: l_col_list_str := l_col_list_str || ', content_lpn_id ';
2140:
2141: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2142: l_col_list_str := l_col_list_str || ', content_lpn ';
2143: END IF;
2144:
2145: l_col_list_str := l_col_list_str || ', to_lpn_id ';

Line 2147: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

2143: END IF;
2144:
2145: l_col_list_str := l_col_list_str || ', to_lpn_id ';
2146:
2147: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2148: l_col_list_str := l_col_list_str || ', to_lpn ';
2149: END IF;
2150:
2151: l_col_list_str := l_col_list_str

Line 2160: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

2156: || ', task_type_id '
2157: || ', task_type '
2158: || ', creation_time '
2159: || ', operation_plan_id ';
2160: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2161: l_col_list_str := l_col_list_str
2162: || ', operation_plan ';
2163: END IF;
2164: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

Line 2164: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

2160: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2161: l_col_list_str := l_col_list_str
2162: || ', operation_plan ';
2163: END IF;
2164: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
2165: l_col_list_str := l_col_list_str || ', operation_sequence ';
2166: END IF;
2167: l_col_list_str := l_col_list_str
2168: || ', op_plan_instance_id '

Line 2177: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

2173: || ', person '
2174: || ', effective_start_date '
2175: || ', effective_end_date '
2176: || ', person_resource_id ';
2177: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2178: l_col_list_str := l_col_list_str
2179: || ', person_resource_code ';
2180: END IF;
2181: l_col_list_str := l_col_list_str

Line 2183: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

2179: || ', person_resource_code ';
2180: END IF;
2181: l_col_list_str := l_col_list_str
2182: || ', machine_resource_id ';
2183: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2184: l_col_list_str := l_col_list_str
2185: || ', machine_resource_code ';
2186: END IF;
2187: l_col_list_str := l_col_list_str

Line 2197: IF wms_plan_tasks_pvt.g_include_inbound OR wms_plan_tasks_pvt.g_include_crossdock THEN

2193: || ', wdt_last_updated_by '
2194: || ', is_modified '
2195: || ', secondary_transaction_uom '
2196: || ', secondary_transaction_quantity ';
2197: IF wms_plan_tasks_pvt.g_include_inbound OR wms_plan_tasks_pvt.g_include_crossdock THEN
2198: l_col_list_str := l_col_list_str
2199: || ', reference_id '
2200: || ', reference ';
2201: END IF;

Line 2203: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

2199: || ', reference_id '
2200: || ', reference ';
2201: END IF;
2202:
2203: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
2204: l_col_list_str := l_col_list_str
2205: || ', source_header '
2206: || ', line_number ';
2207: END IF;

Line 2210: IF wms_plan_tasks_pvt.g_include_crossdock THEN

2206: || ', line_number ';
2207: END IF;
2208:
2209: /* Bug 5259318 */
2210: IF wms_plan_tasks_pvt.g_include_crossdock THEN
2211: l_col_list_str := l_col_list_str || ', delivery ';
2212: END IF;
2213: /* End of Bug 5259318 */
2214:

Line 2222: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;

2218: /* This procedure fetched the 'Planned_task' records from WDTH */
2219: procedure get_completed_records(x_wdth_select_str OUT NOCOPY varchar2,
2220: x_wdth_from_str OUT NOCOPY varchar2,
2221: x_wdth_where_str OUT NOCOPY varchar2) is
2222: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2223: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2224: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2225: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2226:

Line 2223: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;

2219: procedure get_completed_records(x_wdth_select_str OUT NOCOPY varchar2,
2220: x_wdth_from_str OUT NOCOPY varchar2,
2221: x_wdth_where_str OUT NOCOPY varchar2) is
2222: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2223: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2224: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2225: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2226:
2227: begin

Line 2224: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;

2220: x_wdth_from_str OUT NOCOPY varchar2,
2221: x_wdth_where_str OUT NOCOPY varchar2) is
2222: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2223: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2224: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2225: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2226:
2227: begin
2228: /**** First build the Select string ****/

Line 2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''

2232: l_wdth_select_str := 'SELECT '
2233: || 'decode(wdth.is_parent,''N'',null,''+''), '
2234: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2235: || 'decode(wdth.parent_transaction_id,null,'''
2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2237: || wms_plan_tasks_pvt.g_plan_task_types(5)
2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */

Line 2237: || wms_plan_tasks_pvt.g_plan_task_types(5)

2233: || 'decode(wdth.is_parent,''N'',null,''+''), '
2234: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2235: || 'decode(wdth.parent_transaction_id,null,'''
2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2237: || wms_plan_tasks_pvt.g_plan_task_types(5)
2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2241: || 'wdth.transaction_id, ' /* transaction_temp_id */

Line 2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)

2234: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2235: || 'decode(wdth.parent_transaction_id,null,'''
2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2237: || wms_plan_tasks_pvt.g_plan_task_types(5)
2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2241: || 'wdth.transaction_id, ' /* transaction_temp_id */
2242: || 'wdth.parent_transaction_id, ' /*parent_line_id*/

Line 2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)

2235: || 'decode(wdth.parent_transaction_id,null,'''
2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2237: || wms_plan_tasks_pvt.g_plan_task_types(5)
2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2241: || 'wdth.transaction_id, ' /* transaction_temp_id */
2242: || 'wdth.parent_transaction_id, ' /*parent_line_id*/
2243: || 'wdth.inventory_item_id, ' /*inventory_item_id*/

Line 2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */

2236: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2237: || wms_plan_tasks_pvt.g_plan_task_types(5)
2238: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2239: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2240: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2241: || 'wdth.transaction_id, ' /* transaction_temp_id */
2242: || 'wdth.parent_transaction_id, ' /*parent_line_id*/
2243: || 'wdth.inventory_item_id, ' /*inventory_item_id*/
2244: || 'msiv.concatenated_segments, '/*item*/

Line 2259: || wms_plan_tasks_pvt.g_plan_status_codes(3)

2255: || 'wdth.status, ' /*status_id*/
2256: || 'wdth.status, ' /*status_id_original*/
2257: || 'decode(wdth.status,'
2258: || '6, '''
2259: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2260: || ''', 11, '''
2261: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2262: || ''', 12, '''
2263: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/

Line 2261: || wms_plan_tasks_pvt.g_plan_status_codes(4)

2257: || 'decode(wdth.status,'
2258: || '6, '''
2259: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2260: || ''', 11, '''
2261: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2262: || ''', 12, '''
2263: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/
2264: || '''), '
2265: || 'wdth.transaction_type_id, '/*transaction_type_id*/

Line 2263: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/

2259: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2260: || ''', 11, '''
2261: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2262: || ''', 12, '''
2263: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/
2264: || '''), '
2265: || 'wdth.transaction_type_id, '/*transaction_type_id*/
2266: || 'wdth.transaction_action_id, '/*transaction_action_id*/
2267: || 'wdth.transaction_source_type_id, '; --transaction_source_type_id

Line 2269: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

2265: || 'wdth.transaction_type_id, '/*transaction_type_id*/
2266: || 'wdth.transaction_action_id, '/*transaction_action_id*/
2267: || 'wdth.transaction_source_type_id, '; --transaction_source_type_id
2268:
2269: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2270: l_wdth_select_str := l_wdth_select_str
2271: || 'mtst.transaction_source_type_name, '; --transaction_source_type
2272: END IF;
2273:

Line 2279: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

2275: || 'to_number(null), ' /*transaction_source_id*/
2276: || 'to_number(null), ' /*transaction_source_line_id*/
2277: || 'wdth.transfer_organization_id, ';/* to_organization_id*/
2278:
2279: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2280: l_wdth_select_str := l_wdth_select_str
2281: || 'mp1.organization_code, '; /* to_organization_code */
2282: END IF;
2283: l_wdth_select_str := l_wdth_select_str

Line 2287: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

2283: l_wdth_select_str := l_wdth_select_str
2284: || 'wdth.dest_subinventory_code, ' /*to_subinventory*/
2285: || 'wdth.dest_locator_id, '; /*to_locator_id*/
2286:
2287: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2288: l_wdth_select_str := l_wdth_select_str
2289: || 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
2290: /* to_locator */
2291: END IF;

Line 2298: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

2294: || 'wdth.transaction_uom_code, ' /* transaction_uom */
2295: || 'wdth.transaction_quantity, ' /*transaction_quantity */
2296: || 'wdth.user_task_type, '; /*user_task_type_id*/
2297:
2298: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2299:
2300: l_wdth_select_str := l_wdth_select_str
2301: || 'bso.operation_code, '; --user_task_type
2302: END IF;

Line 2318: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN

2314: l_wdth_select_str := l_wdth_select_str
2315: || 'to_number(null), '; /*allocated_lpn_id*/
2316:
2317:
2318: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
2319: l_wdth_select_str := l_wdth_select_str || 'null, '; --allocated_lpn
2320: END IF;
2321: l_wdth_select_str := l_wdth_select_str
2322: || 'to_number(null), '; /*container_item_id*/

Line 2330: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

2326: end if;
2327:
2328: l_wdth_select_str := l_wdth_select_str || 'wdth.lpn_id, ' ; /*from_lpn_id*/
2329:
2330: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2331: l_wdth_select_str := l_wdth_select_str
2332: || 'wlpn5.license_plate_number, ' ; /*from_lpn*/
2333: END IF;
2334:

Line 2337: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

2333: END IF;
2334:
2335: l_wdth_select_str := l_wdth_select_str || 'wdth.content_lpn_id, '; /*content_lpn_id*/
2336:
2337: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2338: l_wdth_select_str := l_wdth_select_str
2339: || 'wlpn3.license_plate_number, '; --content_lpn
2340: END IF;
2341:

Line 2345: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

2341:
2342: l_wdth_select_str := l_wdth_select_str
2343: || 'wdth.transfer_lpn_id, '; --to_lpn_id
2344:
2345: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2346: l_wdth_select_str := l_wdth_select_str
2347: || 'wlpn4.license_plate_number, '; --to_lpn
2348: END IF;
2349: l_wdth_select_str := l_wdth_select_str

Line 2357: || wms_plan_tasks_pvt.g_task_types(1)

2353: || 'wdth.priority, ' /*priority_original*/
2354: || 'wdth.task_type, ' /*task_type_id*/
2355: || 'decode(wdth.task_type,'
2356: || '1, '''
2357: || wms_plan_tasks_pvt.g_task_types(1)
2358: || ''', 2, '''
2359: || wms_plan_tasks_pvt.g_task_types(2)
2360: || ''', 3, '''
2361: || wms_plan_tasks_pvt.g_task_types(3)

Line 2359: || wms_plan_tasks_pvt.g_task_types(2)

2355: || 'decode(wdth.task_type,'
2356: || '1, '''
2357: || wms_plan_tasks_pvt.g_task_types(1)
2358: || ''', 2, '''
2359: || wms_plan_tasks_pvt.g_task_types(2)
2360: || ''', 3, '''
2361: || wms_plan_tasks_pvt.g_task_types(3)
2362: || ''', 4, '''
2363: || wms_plan_tasks_pvt.g_task_types(4)

Line 2361: || wms_plan_tasks_pvt.g_task_types(3)

2357: || wms_plan_tasks_pvt.g_task_types(1)
2358: || ''', 2, '''
2359: || wms_plan_tasks_pvt.g_task_types(2)
2360: || ''', 3, '''
2361: || wms_plan_tasks_pvt.g_task_types(3)
2362: || ''', 4, '''
2363: || wms_plan_tasks_pvt.g_task_types(4)
2364: || ''', 5, '''
2365: || wms_plan_tasks_pvt.g_task_types(5)

Line 2363: || wms_plan_tasks_pvt.g_task_types(4)

2359: || wms_plan_tasks_pvt.g_task_types(2)
2360: || ''', 3, '''
2361: || wms_plan_tasks_pvt.g_task_types(3)
2362: || ''', 4, '''
2363: || wms_plan_tasks_pvt.g_task_types(4)
2364: || ''', 5, '''
2365: || wms_plan_tasks_pvt.g_task_types(5)
2366: || ''', 6, '''
2367: || wms_plan_tasks_pvt.g_task_types(6)

Line 2365: || wms_plan_tasks_pvt.g_task_types(5)

2361: || wms_plan_tasks_pvt.g_task_types(3)
2362: || ''', 4, '''
2363: || wms_plan_tasks_pvt.g_task_types(4)
2364: || ''', 5, '''
2365: || wms_plan_tasks_pvt.g_task_types(5)
2366: || ''', 6, '''
2367: || wms_plan_tasks_pvt.g_task_types(6)
2368: || ''', 7, '''
2369: || wms_plan_tasks_pvt.g_task_types(7)

Line 2367: || wms_plan_tasks_pvt.g_task_types(6)

2363: || wms_plan_tasks_pvt.g_task_types(4)
2364: || ''', 5, '''
2365: || wms_plan_tasks_pvt.g_task_types(5)
2366: || ''', 6, '''
2367: || wms_plan_tasks_pvt.g_task_types(6)
2368: || ''', 7, '''
2369: || wms_plan_tasks_pvt.g_task_types(7)
2370: || ''', 8, '''
2371: || wms_plan_tasks_pvt.g_task_types(8)

Line 2369: || wms_plan_tasks_pvt.g_task_types(7)

2365: || wms_plan_tasks_pvt.g_task_types(5)
2366: || ''', 6, '''
2367: || wms_plan_tasks_pvt.g_task_types(6)
2368: || ''', 7, '''
2369: || wms_plan_tasks_pvt.g_task_types(7)
2370: || ''', 8, '''
2371: || wms_plan_tasks_pvt.g_task_types(8)
2372: || '''), '/*task*/
2373: || 'to_date(null), ' /*creation_time */

Line 2371: || wms_plan_tasks_pvt.g_task_types(8)

2367: || wms_plan_tasks_pvt.g_task_types(6)
2368: || ''', 7, '''
2369: || wms_plan_tasks_pvt.g_task_types(7)
2370: || ''', 8, '''
2371: || wms_plan_tasks_pvt.g_task_types(8)
2372: || '''), '/*task*/
2373: || 'to_date(null), ' /*creation_time */
2374: || 'wdth.operation_plan_id, ';/*operation_plan_id*/
2375: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

Line 2375: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

2371: || wms_plan_tasks_pvt.g_task_types(8)
2372: || '''), '/*task*/
2373: || 'to_date(null), ' /*creation_time */
2374: || 'wdth.operation_plan_id, ';/*operation_plan_id*/
2375: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2376: l_wdth_select_str := l_wdth_select_str
2377: || 'wop.operation_plan_name, ';/*operation_plan*/
2378: END IF;
2379: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

Line 2379: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

2375: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2376: l_wdth_select_str := l_wdth_select_str
2377: || 'wop.operation_plan_name, ';/*operation_plan*/
2378: END IF;
2379: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
2380: l_wdth_select_str := l_wdth_select_str || ' to_number(null), '; --operation_sequence
2381: END IF;
2382: l_wdth_select_str := l_wdth_select_str
2383: || 'to_number(wdth.op_plan_instance_id), '/*operation_instance_id*/

Line 2389: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

2385: || 'wdth.task_id, '/*task_id*/
2386: || 'wdth.person_id, '/*person_id*/
2387: || 'wdth.person_id, ';/*person_id_original*/
2388:
2389: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2390: l_wdth_select_str := l_wdth_select_str || 'pap.full_name, '; --person_id
2391: END IF;
2392:
2393: l_wdth_select_str := l_wdth_select_str

Line 2398: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

2394: || 'wdth.effective_start_date, '/*effective_start_date*/
2395: || 'wdth.effective_end_date, '/*effective_end_date*/
2396: || 'wdth.person_resource_id, '; /*person_resource_id*/
2397:
2398: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2399: l_wdth_select_str := l_wdth_select_str
2400: || 'br1.resource_code, '; --person_resource_code
2401: END IF;
2402:

Line 2406: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

2402:
2403: l_wdth_select_str := l_wdth_select_str
2404: || 'wdth.machine_resource_id, '; --machine_resource_id
2405:
2406: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2407: l_wdth_select_str := l_wdth_select_str
2408: || 'br2.resource_code, '; --machine_resource_code
2409: END IF;
2410: l_wdth_select_str := l_wdth_select_str

Line 2430: IF wms_plan_tasks_pvt.g_include_crossdock THEN /* CKR */

2426: || ', mtl_system_items_vl msiv ' --Bug 11798973 Modified to fetch translated value
2427:
2428: || ', mtl_item_locations_kfv milv ';
2429:
2430: IF wms_plan_tasks_pvt.g_include_crossdock THEN /* CKR */
2431: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2432: END IF;
2433:
2434: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

Line 2434: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

2430: IF wms_plan_tasks_pvt.g_include_crossdock THEN /* CKR */
2431: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2432: END IF;
2433:
2434: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
2435: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2436: l_wdth_from_str := l_wdth_from_str
2437: || ', mtl_item_categories mic ';
2438: END IF;

Line 2435: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

2431: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2432: END IF;
2433:
2434: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
2435: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2436: l_wdth_from_str := l_wdth_from_str
2437: || ', mtl_item_categories mic ';
2438: END IF;
2439:

Line 2440: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

2436: l_wdth_from_str := l_wdth_from_str
2437: || ', mtl_item_categories mic ';
2438: END IF;
2439:
2440: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2441: l_wdth_from_str := l_wdth_from_str
2442: || ', wms_license_plate_numbers wlpn5 ';
2443: END IF;
2444:

Line 2445: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

2441: l_wdth_from_str := l_wdth_from_str
2442: || ', wms_license_plate_numbers wlpn5 ';
2443: END IF;
2444:
2445: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2446: l_wdth_from_str := l_wdth_from_str
2447: || ', wms_license_plate_numbers wlpn3 ';
2448: END IF;
2449:

Line 2450: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

2446: l_wdth_from_str := l_wdth_from_str
2447: || ', wms_license_plate_numbers wlpn3 ';
2448: END IF;
2449:
2450: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2451: l_wdth_from_str := l_wdth_from_str
2452: || ', wms_license_plate_numbers wlpn4 ';
2453: END IF;
2454:

Line 2455: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

2451: l_wdth_from_str := l_wdth_from_str
2452: || ', wms_license_plate_numbers wlpn4 ';
2453: END IF;
2454:
2455: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2456: l_wdth_from_str := l_wdth_from_str
2457: || ', bom_standard_operations bso ';
2458: END IF;
2459:

Line 2460: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

2456: l_wdth_from_str := l_wdth_from_str
2457: || ', bom_standard_operations bso ';
2458: END IF;
2459:
2460: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2461: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
2462: END IF;
2463:
2464: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

Line 2464: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

2460: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2461: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
2462: END IF;
2463:
2464: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2465: l_wdth_from_str := l_wdth_from_str
2466: || ', mtl_txn_source_types mtst ';
2467: END IF;
2468:

Line 2471: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

2467: END IF;
2468:
2469: l_wdth_from_str := l_wdth_from_str || ', wms_op_plans_vl wop ';
2470:
2471: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2472: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
2473: END IF;
2474:
2475:

Line 2476: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

2472: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
2473: END IF;
2474:
2475:
2476: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2477: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
2478: END IF;
2479:
2480: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

Line 2480: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

2476: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2477: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
2478: END IF;
2479:
2480: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2481: l_wdth_from_str := l_wdth_from_str
2482: || ', per_all_people_f pap ';
2483: END IF;
2484: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

Line 2484: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

2480: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2481: l_wdth_from_str := l_wdth_from_str
2482: || ', per_all_people_f pap ';
2483: END IF;
2484: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2485: l_wdth_from_str := l_wdth_from_str || ', mtl_item_locations_kfv milv1 ';
2486: END IF;
2487:
2488:

Line 2500: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

2496: || 'AND wdth.organization_id = mtrl.organization_id '
2497: || 'AND wdth.inventory_item_id = mtrl.inventory_item_id ';
2498:
2499:
2500: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2501: l_wdth_where_str := l_wdth_where_str
2502: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
2503: END IF;
2504:

Line 2505: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

2501: l_wdth_where_str := l_wdth_where_str
2502: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
2503: END IF;
2504:
2505: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2506: l_wdth_where_str := l_wdth_where_str
2507: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
2508: END IF;
2509:

Line 2510: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

2506: l_wdth_where_str := l_wdth_where_str
2507: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
2508: END IF;
2509:
2510: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2511: l_wdth_where_str := l_wdth_where_str
2512: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
2513: END IF;
2514:

Line 2515: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

2511: l_wdth_where_str := l_wdth_where_str
2512: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
2513: END IF;
2514:
2515: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2516: l_wdth_where_str := l_wdth_where_str
2517: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
2518: END IF;
2519: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

Line 2519: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

2515: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2516: l_wdth_where_str := l_wdth_where_str
2517: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
2518: END IF;
2519: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2520: l_wdth_where_str := l_wdth_where_str
2521: || 'AND wdth.person_id = pap.person_id (+)'
2522: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
2523: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';

Line 2526: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

2522: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
2523: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';
2524: END IF;
2525:
2526: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2527: l_wdth_where_str := l_wdth_where_str
2528: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
2529: END IF;
2530:

Line 2531: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

2527: l_wdth_where_str := l_wdth_where_str
2528: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
2529: END IF;
2530:
2531: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2532: l_wdth_where_str := l_wdth_where_str
2533: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
2534: END IF;
2535:

Line 2536: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

2532: l_wdth_where_str := l_wdth_where_str
2533: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
2534: END IF;
2535:
2536: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2537: l_wdth_where_str := l_wdth_where_str
2538: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
2539: END IF;
2540:

Line 2541: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

2537: l_wdth_where_str := l_wdth_where_str
2538: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
2539: END IF;
2540:
2541: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2542: l_wdth_where_str := l_wdth_where_str
2543: || 'AND wdth.user_task_type = bso.standard_operation_id(+) '
2544: || 'AND wdth.organization_id = bso.organization_id(+) ';
2545: END IF;

Line 2549: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

2545: END IF;
2546:
2547: l_wdth_where_str := l_wdth_where_str
2548: || 'AND wdth.operation_plan_id = wop.operation_plan_id(+) ';
2549: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
2550: l_wdth_where_str := l_wdth_where_str
2551: || 'AND wdth.organization_id = :org_id ';
2552: END IF;
2553: /* 13965757 start */

Line 2554: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN

2550: l_wdth_where_str := l_wdth_where_str
2551: || 'AND wdth.organization_id = :org_id ';
2552: END IF;
2553: /* 13965757 start */
2554: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN
2555: l_wdth_where_str := l_wdth_where_str
2556: || 'AND wdth.person_id = :person_id ';
2557: END IF;
2558: /* 13965757 end */

Line 2559: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

2555: l_wdth_where_str := l_wdth_where_str
2556: || 'AND wdth.person_id = :person_id ';
2557: END IF;
2558: /* 13965757 end */
2559: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2560: l_wdth_where_str := l_wdth_where_str
2561: || 'AND mic.category_set_id = :category_set_id ';
2562: END IF;
2563:

Line 2564: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

2560: l_wdth_where_str := l_wdth_where_str
2561: || 'AND mic.category_set_id = :category_set_id ';
2562: END IF;
2563:
2564: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
2565: l_wdth_where_str := l_wdth_where_str
2566: || 'AND wdth.inventory_item_id = mic.inventory_item_id (+) '
2567: || 'AND mic.organization_id(+) = wdth.organization_id '
2568: || 'AND mic.category_id = :item_category_id ';

Line 2571: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

2567: || 'AND mic.organization_id(+) = wdth.organization_id '
2568: || 'AND mic.category_id = :item_category_id ';
2569: END IF;
2570:
2571: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
2572: l_wdth_where_str := l_wdth_where_str
2573: || 'AND wdth.inventory_item_id = :item_id ';
2574: END IF;
2575:

Line 2576: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

2572: l_wdth_where_str := l_wdth_where_str
2573: || 'AND wdth.inventory_item_id = :item_id ';
2574: END IF;
2575:
2576: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
2577: l_wdth_where_str := l_wdth_where_str
2578: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
2579: END IF;
2580:

Line 2581: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

2577: l_wdth_where_str := l_wdth_where_str
2578: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
2579: END IF;
2580:
2581: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
2582: l_wdth_where_str := l_wdth_where_str
2583: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
2584: END IF;
2585:

Line 2586: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

2582: l_wdth_where_str := l_wdth_where_str
2583: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
2584: END IF;
2585:
2586: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2587: l_wdth_where_str := l_wdth_where_str
2588: || 'and wdth.dest_locator_id = milv1.inventory_location_id (+)'
2589: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+)';
2590: END IF;

Line 2598: IF wms_plan_tasks_pvt.g_include_crossdock THEN

2594: l_wdth_where_str := l_wdth_where_str
2595: || 'and wdth.is_parent = ''N'''
2596: || 'and wdth.move_order_line_id = mtrl.line_id ';
2597: -- bug5163661
2598: IF wms_plan_tasks_pvt.g_include_crossdock THEN
2599: l_wdth_where_str := l_wdth_where_str
2600: /*|| 'and mtrl.backorder_delivery_detail_id IS NOT NULL '; --= wdd.delivery_detail_id ';*/ /* Bug 5259318 */
2601: || 'and mtrl.backorder_delivery_detail_id = wdd.delivery_detail_id ';
2602: l_wdth_where_str := l_wdth_where_str

Line 2611: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

2607: || 'and mtrl.backorder_delivery_detail_id is null '; /*Bug 5223606 */
2608: END IF;
2609:
2610: /* Bug 5507934 */
2611: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
2612: THEN
2613: l_wdth_where_str := l_wdth_where_str || 'AND wdd.organization_id = wdth.organization_id ';
2614: l_wdth_where_str := l_wdth_where_str || 'AND wdd.inventory_item_id = wdth.inventory_item_id ';
2615: END IF;

Line 2618: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

2614: l_wdth_where_str := l_wdth_where_str || 'AND wdd.inventory_item_id = wdth.inventory_item_id ';
2615: END IF;
2616: /* End of Bug 5507934 */
2617: --BUG 6342338
2618: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
2619: l_wdth_where_str := l_wdth_where_str
2620: || 'AND wdth.creation_date >= :from_creation_date ';
2621: END IF;
2622:

Line 2623: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

2619: l_wdth_where_str := l_wdth_where_str
2620: || 'AND wdth.creation_date >= :from_creation_date ';
2621: END IF;
2622:
2623: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
2624: l_wdth_where_str := l_wdth_where_str
2625: || 'AND wdth.creation_date <= :to_creation_date ';
2626: END IF;
2627: --End Bug 6342338

Line 2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;

2749: BEGIN
2750: IF l_debug = 1 THEN
2751: debug(' in set_globals ','set_globals');
2752: END IF;
2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;

Line 2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;

2750: IF l_debug = 1 THEN
2751: debug(' in set_globals ','set_globals');
2752: END IF;
2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;

Line 2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;

2751: debug(' in set_globals ','set_globals');
2752: END IF;
2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;

Line 2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;

2752: END IF;
2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;

Line 2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;

2753: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;

Line 2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;

2754: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;

Line 2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;

2755: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;

Line 2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;

2756: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;

Line 2761: wms_plan_tasks_pvt.g_person_id := p_person_id;

2757: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;

Line 2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;

2758: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;

Line 2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;

2759: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;

Line 2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;

2760: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;

Line 2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;

2761: wms_plan_tasks_pvt.g_person_id := p_person_id;
2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;

Line 2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;

2762: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;

Line 2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;

2763: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;

Line 2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;

2764: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;

Line 2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;

2765: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:

Line 2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;

2766: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;

Line 2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;

2767: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;

Line 2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;

2768: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2769: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;

Line 2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;

2770: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;

Line 2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;

2771: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;

Line 2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;

2772: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;

Line 2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;

2773:
2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750

Line 2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;

2774: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:

Line 2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;

2775: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;

Line 2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;

2776: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;

Line 2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750

2777: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2778: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;

Line 2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;

2779: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;

Line 2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;

2780: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;

Line 2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;

2781: wms_plan_tasks_pvt.g_is_picknone_task := p_is_picknone_task ; --ER13869750
2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;

Line 2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;

2782:
2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;

Line 2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;

2783: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;

Line 2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;

2784: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;

Line 2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;

2785: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;

Line 2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;

2786: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;

Line 2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;

2787: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;

Line 2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;

2788: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;

Line 2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;

2789: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;

Line 2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;

2790: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;

Line 2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;

2791: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;

Line 2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;

2792: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;

Line 2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;

2793: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;

Line 2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;

2794: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;

Line 2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;

2795: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;

Line 2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;

2796: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;

Line 2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;

2797: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;

Line 2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;

2798: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;

Line 2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;

2799: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;

Line 2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;

2800: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;

Line 2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;

2801: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;

Line 2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;

2802: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;

Line 2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;

2803: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;

Line 2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;

2804: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;

Line 2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;

2805: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;

Line 2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;

2806: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;

Line 2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;

2807: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;

Line 2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;

2808: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;

Line 2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;

2809: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;

Line 2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;

2810: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;

Line 2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;

2811: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;

Line 2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;

2812: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;

Line 2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;

2813: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;

Line 2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;

2814: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;

Line 2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;

2815: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;

Line 2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;

2816: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;

Line 2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;

2817: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;

Line 2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;

2818: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;

Line 2823: wms_plan_tasks_pvt.g_from_job := p_from_job;

2819: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;

Line 2824: wms_plan_tasks_pvt.g_to_job := p_to_job;

2820: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;

Line 2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;

2821: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;

Line 2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;

2822: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;

Line 2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;

2823: wms_plan_tasks_pvt.g_from_job := p_from_job;
2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;

Line 2828: wms_plan_tasks_pvt.g_from_line := p_from_line;

2824: wms_plan_tasks_pvt.g_to_job := p_to_job;
2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;

Line 2829: wms_plan_tasks_pvt.g_to_line := p_to_line;

2825: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;

Line 2830: wms_plan_tasks_pvt.g_department_id := p_department_id;

2826: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;

Line 2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;

2827: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;

Line 2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;

2828: wms_plan_tasks_pvt.g_from_line := p_from_line;
2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;

Line 2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;

2829: wms_plan_tasks_pvt.g_to_line := p_to_line;
2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;

Line 2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;

2830: wms_plan_tasks_pvt.g_department_id := p_department_id;
2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;

Line 2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;

2831: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;

Line 2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;

2832: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;

Line 2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;

2833: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;

Line 2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;

2834: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:

Line 2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;

2835: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;

Line 2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;

2836: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;

Line 2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;

2837: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2838: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:

Line 2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;

2839: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;

Line 2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;

2840: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2841: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;

Line 2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;

2842:
2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;

Line 2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;

2843: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:

Line 2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;

2844: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;

Line 2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;

2845:
2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;

Line 2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;

2846: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2847: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;

Line 2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;

2848: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

Line 2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;

2849: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

Line 2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;

2850: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2851:
2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

Line 2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

2852: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

2853: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

Line 2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

2854: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;

Line 2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL

2855:
2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;

Line 2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

2856: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;
2864:

Line 2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

2857: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;
2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR

Line 2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;

2858: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2859: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2860: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;
2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR

Line 2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR

2861: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;
2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR

Line 2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR

2862: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2863: END IF;
2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR

Line 2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR

2863: END IF;
2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR

Line 2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR

2864:
2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR

Line 2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR

2865: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR

Line 2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR

2866: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR

Line 2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR

2867: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR

Line 2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR

2868: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR

Line 2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR

2869: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR

Line 2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR

2870: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN

Line 2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR

2871: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;

Line 2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR

2872: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2880: END IF;

Line 2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR

2873: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2880: END IF;
2881:

Line 2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN

2874: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2880: END IF;
2881:
2882:

Line 2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;

2875: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2876: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2877: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2878: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2879: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2880: END IF;
2881:
2882:
2883:

Line 2887: wms_plan_tasks_pvt.g_task_types(i) := wms_waveplan_tasks_pvt.g_task_types(i);

2883:
2884: /*
2885: IF wms_waveplan_tasks_pvt.g_task_types.count > 0 THEN
2886: FOR i IN 1..wms_waveplan_tasks_pvt.g_task_types.count LOOP
2887: wms_plan_tasks_pvt.g_task_types(i) := wms_waveplan_tasks_pvt.g_task_types(i);
2888: END LOOP;
2889: END IF;
2890:
2891: IF wms_waveplan_tasks_pvt.g_task_types_orig.count > 0 THEN

Line 2893: wms_plan_tasks_pvt.g_task_types_orig(i) := wms_waveplan_tasks_pvt.g_task_types_orig(i);

2889: END IF;
2890:
2891: IF wms_waveplan_tasks_pvt.g_task_types_orig.count > 0 THEN
2892: FOR i IN 1..wms_waveplan_tasks_pvt.g_task_types_orig.count LOOP
2893: wms_plan_tasks_pvt.g_task_types_orig(i) := wms_waveplan_tasks_pvt.g_task_types_orig(i);
2894: END LOOP;
2895: END IF;
2896:
2897: IF wms_waveplan_tasks_pvt.g_status_codes.count > 0 THEN

Line 2899: wms_plan_tasks_pvt.g_status_codes(i) := wms_waveplan_tasks_pvt.g_status_codes(i);

2895: END IF;
2896:
2897: IF wms_waveplan_tasks_pvt.g_status_codes.count > 0 THEN
2898: FOR i IN 1..wms_waveplan_tasks_pvt.g_status_codes.count LOOP
2899: wms_plan_tasks_pvt.g_status_codes(i) := wms_waveplan_tasks_pvt.g_status_codes(i);
2900: END LOOP;
2901: END IF;
2902:
2903: IF wms_waveplan_tasks_pvt.g_status_codes_orig.count > 0 THEN

Line 2905: wms_plan_tasks_pvt.g_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_status_codes_orig(i);

2901: END IF;
2902:
2903: IF wms_waveplan_tasks_pvt.g_status_codes_orig.count > 0 THEN
2904: FOR i IN 1..wms_waveplan_tasks_pvt.g_status_codes_orig.count LOOP
2905: wms_plan_tasks_pvt.g_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_status_codes_orig(i);
2906: END LOOP;
2907: END IF;
2908:
2909: IF wms_waveplan_tasks_pvt.g_plan_task_types.count > 0 THEN

Line 2911: wms_plan_tasks_pvt.g_plan_task_types(i) := wms_waveplan_tasks_pvt.g_plan_task_types(i);

2907: END IF;
2908:
2909: IF wms_waveplan_tasks_pvt.g_plan_task_types.count > 0 THEN
2910: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_task_types.count LOOP
2911: wms_plan_tasks_pvt.g_plan_task_types(i) := wms_waveplan_tasks_pvt.g_plan_task_types(i);
2912: END LOOP;
2913: END IF;
2914:
2915: IF wms_waveplan_tasks_pvt.g_plan_task_types_orig.count > 0 THEN

Line 2917: wms_plan_tasks_pvt.g_plan_task_types_orig(i) := wms_waveplan_tasks_pvt.g_plan_task_types_orig(i);

2913: END IF;
2914:
2915: IF wms_waveplan_tasks_pvt.g_plan_task_types_orig.count > 0 THEN
2916: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_task_types_orig.count LOOP
2917: wms_plan_tasks_pvt.g_plan_task_types_orig(i) := wms_waveplan_tasks_pvt.g_plan_task_types_orig(i);
2918: END LOOP;
2919: END IF;
2920:
2921: IF wms_waveplan_tasks_pvt.g_plan_status_codes.count > 0 THEN

Line 2923: wms_plan_tasks_pvt.g_plan_status_codes(i) := wms_waveplan_tasks_pvt.g_plan_status_codes(i);

2919: END IF;
2920:
2921: IF wms_waveplan_tasks_pvt.g_plan_status_codes.count > 0 THEN
2922: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_status_codes.count LOOP
2923: wms_plan_tasks_pvt.g_plan_status_codes(i) := wms_waveplan_tasks_pvt.g_plan_status_codes(i);
2924: END LOOP;
2925: END IF;
2926:
2927: IF wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count > 0 THEN

Line 2929: wms_plan_tasks_pvt.g_plan_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_plan_status_codes_orig(i);

2925: END IF;
2926:
2927: IF wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count > 0 THEN
2928: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count LOOP
2929: wms_plan_tasks_pvt.g_plan_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_plan_status_codes_orig(i);
2930: END LOOP;
2931: END IF;
2932: */
2933:

Line 2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;

2930: END LOOP;
2931: END IF;
2932: */
2933:
2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;

Line 2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;

2931: END IF;
2932: */
2933:
2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;

Line 2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;

2932: */
2933:
2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;

Line 2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;

2933:
2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;

Line 2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;

2934: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2942:

Line 2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;

2935: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2942:
2943: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

Line 2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;

2936: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2942:
2943: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2944:

Line 2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;

2937: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2938: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2942:
2943: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2944:
2945: END set_globals;

Line 2943: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

2939: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2940: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2941: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2942:
2943: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2944:
2945: END set_globals;
2946:
2947: PROCEDURE get_inbound_specific_query(

Line 2952: l_inbound_select wms_plan_tasks_pvt.short_sql;

2948: x_inbound_select_str OUT NOCOPY VARCHAR2
2949: ,x_inbound_from_str OUT NOCOPY VARCHAR2
2950: ,x_inbound_where_str OUT NOCOPY VARCHAR2
2951: ,p_is_completed_rec IN NUMBER) IS
2952: l_inbound_select wms_plan_tasks_pvt.short_sql;
2953: l_inbound_from wms_plan_tasks_pvt.short_sql;
2954: l_inbound_where VARCHAR2(5000);
2955: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2956: L_MOVER_ORDER_LINE VARCHAR2(5000); --code for Bug#8467334

Line 2953: l_inbound_from wms_plan_tasks_pvt.short_sql;

2949: ,x_inbound_from_str OUT NOCOPY VARCHAR2
2950: ,x_inbound_where_str OUT NOCOPY VARCHAR2
2951: ,p_is_completed_rec IN NUMBER) IS
2952: l_inbound_select wms_plan_tasks_pvt.short_sql;
2953: l_inbound_from wms_plan_tasks_pvt.short_sql;
2954: l_inbound_where VARCHAR2(5000);
2955: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2956: L_MOVER_ORDER_LINE VARCHAR2(5000); --code for Bug#8467334
2957: --Hardik LSP bug 9274233

Line 2987: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR

2983: -- Code for Bug#8467334
2984: -- Code added to popluate TXN_SOURCE_ID and transaction_source_type_id of completed tasks in WMS_WAVEPLAN_TASKS_TEMP . We'll use this info
2985: -- Populate Job No In ctl Board
2986: L_MOVER_ORDER_LINE := '' ;
2987: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
2988: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
2989:
2990: l_mover_order_line := ' wdth.MOVE_ORDER_LINE_ID ';
2991:

Line 2988: wms_plan_tasks_pvt.g_is_completed_task = TRUE then

2984: -- Code added to popluate TXN_SOURCE_ID and transaction_source_type_id of completed tasks in WMS_WAVEPLAN_TASKS_TEMP . We'll use this info
2985: -- Populate Job No In ctl Board
2986: L_MOVER_ORDER_LINE := '' ;
2987: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
2988: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
2989:
2990: l_mover_order_line := ' wdth.MOVE_ORDER_LINE_ID ';
2991:
2992: END IF;

Line 3014: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

3010: -- End of code for Bug#8467334
3011:
3012: END IF;
3013:
3014: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3015: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3016: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
3017: ', pl.line_num '; -- line_number
3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

Line 3015: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3011:
3012: END IF;
3013:
3014: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3015: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3016: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
3017: ', pl.line_num '; -- line_number
3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

Line 3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3014: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3015: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3016: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
3017: ', pl.line_num '; -- line_number
3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3020: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
3021: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
3022: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3015: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3016: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
3017: ', pl.line_num '; -- line_number
3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3020: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
3021: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
3022: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3023: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

Line 3022: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3018: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3020: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
3021: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
3022: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3023: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3024: l_inbound_select := l_inbound_select || ', prh.segment1 '; -- source_header
3025: l_inbound_select := l_inbound_select || ', prl.line_num '; -- line_number
3026: END IF;

Line 3023: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3019: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3020: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
3021: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
3022: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3023: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3024: l_inbound_select := l_inbound_select || ', prh.segment1 '; -- source_header
3025: l_inbound_select := l_inbound_select || ', prl.line_num '; -- line_number
3026: END IF;
3027:

Line 3031: IF wms_plan_tasks_pvt.g_include_crossdock then

3027:
3028: /* Bug 5259318 */
3029: IF g_delivery_visible = 'T'
3030: THEN
3031: IF wms_plan_tasks_pvt.g_include_crossdock then
3032: l_inbound_select := l_inbound_select || ', wnd.name '; --delivery
3033: END IF;
3034: END IF;
3035: /* End of Bug 5259318 */

Line 3039: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

3035: /* End of Bug 5259318 */
3036:
3037:
3038: /* inbound specific from */
3039: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3040: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3041: IF p_is_completed_rec = 0 THEN
3042: l_inbound_from := l_inbound_from || ', po_line_locations_trx_v pll';
3043: END IF;

Line 3040: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3036:
3037:
3038: /* inbound specific from */
3039: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3040: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3041: IF p_is_completed_rec = 0 THEN
3042: l_inbound_from := l_inbound_from || ', po_line_locations_trx_v pll';
3043: END IF;
3044:

Line 3048: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3044:
3045: l_inbound_from := l_inbound_from
3046: || ', po_headers_trx_v ph'--CLM Changes, using CLM views instead of base tables
3047: ||', po_lines_trx_v pl';
3048: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3049: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3050: l_inbound_from := l_inbound_from
3051: || ', oe_order_headers_all ooh'
3052: || ', oe_order_lines_all ool';

Line 3049: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3045: l_inbound_from := l_inbound_from
3046: || ', po_headers_trx_v ph'--CLM Changes, using CLM views instead of base tables
3047: ||', po_lines_trx_v pl';
3048: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3049: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3050: l_inbound_from := l_inbound_from
3051: || ', oe_order_headers_all ooh'
3052: || ', oe_order_lines_all ool';
3053: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 3053: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3049: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3050: l_inbound_from := l_inbound_from
3051: || ', oe_order_headers_all ooh'
3052: || ', oe_order_lines_all ool';
3053: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3054: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3055: l_inbound_from := l_inbound_from
3056: || ', rcv_shipment_headers rsh'
3057: || ', rcv_shipment_lines rsl'

Line 3054: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3050: l_inbound_from := l_inbound_from
3051: || ', oe_order_headers_all ooh'
3052: || ', oe_order_lines_all ool';
3053: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3054: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3055: l_inbound_from := l_inbound_from
3056: || ', rcv_shipment_headers rsh'
3057: || ', rcv_shipment_lines rsl'
3058: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables

Line 3061: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL

3057: || ', rcv_shipment_lines rsl'
3058: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables
3059: || ', po_requisition_headers_all prh'
3060: || ', po_requisition_lines_all prl';
3061: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3062: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3063: l_inbound_from := l_inbound_from
3064: || ', rcv_shipment_headers rsh'
3065: || ', rcv_shipment_lines rsl';

Line 3062: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

3058: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables
3059: || ', po_requisition_headers_all prh'
3060: || ', po_requisition_lines_all prl';
3061: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3062: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3063: l_inbound_from := l_inbound_from
3064: || ', rcv_shipment_headers rsh'
3065: || ', rcv_shipment_lines rsl';
3066: END IF;

Line 3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

3080: || ' AND mtrh.move_order_type = 6 '
3081: || ' AND mmtt.move_order_line_id = mtrl.line_id ';
3082:
3083: IF NOT(
3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

3081: || ' AND mmtt.move_order_line_id = mtrl.line_id ';
3082:
3083: IF NOT(
3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL

Line 3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3082:
3083: IF NOT(
3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3090: ) THEN

Line 3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL

3083: IF NOT(
3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3090: ) THEN
3091: l_inbound_where := l_inbound_where

Line 3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3084: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3090: ) THEN
3091: l_inbound_where := l_inbound_where
3092: || ' AND '

Line 3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL

3085: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3086: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3087: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3088: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3089: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3090: ) THEN
3091: l_inbound_where := l_inbound_where
3092: || ' AND '
3093: || '( ' -- Code for Bug#8467334

Line 3108: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

3104: END IF;
3105:
3106: -- Build the inbound section(FROM and WHERE) of the query
3107:
3108: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3109: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3110: l_inbound_where := l_inbound_where
3111: || ' AND pl.po_header_id = ph.po_header_id ';
3112:

Line 3109: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3105:
3106: -- Build the inbound section(FROM and WHERE) of the query
3107:
3108: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3109: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3110: l_inbound_where := l_inbound_where
3111: || ' AND pl.po_header_id = ph.po_header_id ';
3112:
3113: IF p_is_completed_rec = 0 THEN --not completed

Line 3117: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

3113: IF p_is_completed_rec = 0 THEN --not completed
3114: l_inbound_where := l_inbound_where
3115: || ' AND pll.po_line_id = pl.po_line_id '
3116: || ' AND pll.line_location_id = mtrl.reference_id ';
3117: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
3118: l_inbound_where := l_inbound_where
3119: || 'AND pll.po_header_id >= :from_po_header_id ';
3120: END IF;
3121:

Line 3122: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3118: l_inbound_where := l_inbound_where
3119: || 'AND pll.po_header_id >= :from_po_header_id ';
3120: END IF;
3121:
3122: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3123: l_inbound_where := l_inbound_where
3124: || 'AND pll.po_header_id <= :to_po_header_id ';
3125: END IF;
3126:

Line 3129: l_from_client_code := wms_deploy.get_po_client_code(wms_plan_tasks_pvt.g_from_po_header_id);

3125: END IF;
3126:
3127: --Hardik LSP bug 9274233
3128:
3129: l_from_client_code := wms_deploy.get_po_client_code(wms_plan_tasks_pvt.g_from_po_header_id);
3130: l_delimiter := wms_deploy.get_item_flex_delimiter;
3131: l_is_po_number := wms_deploy.get_po_number(wms_plan_tasks_pvt.g_from_purchase_order);
3132:
3133: IF l_is_po_number <> '-1' THEN

Line 3131: l_is_po_number := wms_deploy.get_po_number(wms_plan_tasks_pvt.g_from_purchase_order);

3127: --Hardik LSP bug 9274233
3128:
3129: l_from_client_code := wms_deploy.get_po_client_code(wms_plan_tasks_pvt.g_from_po_header_id);
3130: l_delimiter := wms_deploy.get_item_flex_delimiter;
3131: l_is_po_number := wms_deploy.get_po_number(wms_plan_tasks_pvt.g_from_purchase_order);
3132:
3133: IF l_is_po_number <> '-1' THEN
3134: IF l_from_client_code IS NOT NULL THEN
3135: l_inbound_where := l_inbound_where

Line 3149: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

3145:
3146: l_inbound_where := l_inbound_where
3147: || ' AND rt.po_line_id = pl.po_line_id ';
3148:
3149: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
3150: l_inbound_where := l_inbound_where
3151: || 'AND rt.po_header_id >= :from_po_header_id ';
3152: END IF;
3153:

Line 3154: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3150: l_inbound_where := l_inbound_where
3151: || 'AND rt.po_header_id >= :from_po_header_id ';
3152: END IF;
3153:
3154: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3155: l_inbound_where := l_inbound_where
3156: || 'AND rt.po_header_id <= :to_po_header_id ';
3157: END IF;
3158: END IF;

Line 3159: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3155: l_inbound_where := l_inbound_where
3156: || 'AND rt.po_header_id <= :to_po_header_id ';
3157: END IF;
3158: END IF;
3159: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3160: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3161: l_inbound_where := l_inbound_where
3162: || ' AND ooh.header_id = ool.header_id ';
3163:

Line 3160: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3156: || 'AND rt.po_header_id <= :to_po_header_id ';
3157: END IF;
3158: END IF;
3159: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3160: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3161: l_inbound_where := l_inbound_where
3162: || ' AND ooh.header_id = ool.header_id ';
3163:
3164: IF p_is_completed_rec = 0 THEN -- not completed

Line 3169: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

3165: l_inbound_where := l_inbound_where
3166: || ' AND mtrl.reference_id = ool.line_id '
3167: || ' AND mtrl.reference = ''ORDER_LINE_ID'' ';
3168:
3169: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
3170: l_inbound_where := l_inbound_where
3171: || 'AND ooh.header_id >= :from_rma_header_id ';
3172: END IF;
3173:

Line 3174: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3170: l_inbound_where := l_inbound_where
3171: || 'AND ooh.header_id >= :from_rma_header_id ';
3172: END IF;
3173:
3174: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3175: l_inbound_where := l_inbound_where
3176: || 'AND ooh.header_id <= :to_rma_header_id ';
3177: END IF;
3178: ELSE

Line 3182: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

3178: ELSE
3179: l_inbound_where := l_inbound_where
3180: || ' AND rt.oe_order_line_id = ool.line_id ';
3181:
3182: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
3183: l_inbound_where := l_inbound_where
3184: || 'AND rt.oe_order_header_id >= :from_rma_header_id ';
3185: END IF;
3186:

Line 3187: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3183: l_inbound_where := l_inbound_where
3184: || 'AND rt.oe_order_header_id >= :from_rma_header_id ';
3185: END IF;
3186:
3187: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3188: l_inbound_where := l_inbound_where
3189: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3190: END IF;
3191: END IF;

Line 3192: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3188: l_inbound_where := l_inbound_where
3189: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3190: END IF;
3191: END IF;
3192: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3193: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3194: l_inbound_where := l_inbound_where
3195: || ' AND rsl.requisition_line_id = prl.requisition_line_id '
3196: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '

Line 3193: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3189: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3190: END IF;
3191: END IF;
3192: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3193: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3194: l_inbound_where := l_inbound_where
3195: || ' AND rsl.requisition_line_id = prl.requisition_line_id '
3196: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3197: || ' AND prh.requisition_header_id = prl.requisition_header_id ';

Line 3204: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

3200: l_inbound_where := l_inbound_where
3201: || ' AND mtrl.reference_id = rsl.shipment_line_id '
3202: || ' AND mtrl.reference = ''SHIPMENT_LINE_ID'' ';
3203:
3204: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
3205: l_inbound_where := l_inbound_where
3206: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3207: END IF;
3208:

Line 3209: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3205: l_inbound_where := l_inbound_where
3206: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3207: END IF;
3208:
3209: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3210: l_inbound_where := l_inbound_where
3211: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3212: END IF;
3213: ELSE -- completed

Line 3217: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

3213: ELSE -- completed
3214: l_inbound_where := l_inbound_where
3215: || ' AND rt.shipment_line_id = rsl.shipment_line_id ';
3216:
3217: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
3218: l_inbound_where := l_inbound_where
3219: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3220: END IF;
3221:

Line 3222: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3218: l_inbound_where := l_inbound_where
3219: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3220: END IF;
3221:
3222: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3223: l_inbound_where := l_inbound_where
3224: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3225: END IF;
3226: END IF;

Line 3227: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL

3223: l_inbound_where := l_inbound_where
3224: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3225: END IF;
3226: END IF;
3227: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3228: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3229: l_inbound_where := l_inbound_where
3230: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3231: || ' AND rsl.requisition_line_id IS NULL ';

Line 3228: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

3224: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3225: END IF;
3226: END IF;
3227: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3228: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3229: l_inbound_where := l_inbound_where
3230: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3231: || ' AND rsl.requisition_line_id IS NULL ';
3232:

Line 3245: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN

3241: -- || ' AND rt.po_line_id IS NULL ' -- bug#14751834
3242: || ' AND rt.oe_order_header_id IS NULL ';
3243: END IF;
3244:
3245: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
3246: l_inbound_where := l_inbound_where
3247: || ' AND rsh.shipment_num >= :from_shipment_number ';
3248: END IF;
3249:

Line 3250: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

3246: l_inbound_where := l_inbound_where
3247: || ' AND rsh.shipment_num >= :from_shipment_number ';
3248: END IF;
3249:
3250: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3251: l_inbound_where := l_inbound_where
3252: || ' AND rsh.shipment_num <= :to_shipment_number ';
3253: END IF;
3254: END IF;

Line 3269: --l_inbound_select wms_plan_tasks_pvt.short_sql;

3265: PROCEDURE get_outbound_specific_query(
3266: x_outbound_from_str OUT NOCOPY VARCHAR2
3267: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3268: ) IS
3269: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3270: l_from_outbound wms_plan_tasks_pvt.short_sql;
3271: l_where_outbound wms_plan_tasks_pvt.short_sql;
3272: l_is_range_so BOOLEAN;
3273: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);

Line 3270: l_from_outbound wms_plan_tasks_pvt.short_sql;

3266: x_outbound_from_str OUT NOCOPY VARCHAR2
3267: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3268: ) IS
3269: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3270: l_from_outbound wms_plan_tasks_pvt.short_sql;
3271: l_where_outbound wms_plan_tasks_pvt.short_sql;
3272: l_is_range_so BOOLEAN;
3273: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3274:

Line 3271: l_where_outbound wms_plan_tasks_pvt.short_sql;

3267: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3268: ) IS
3269: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3270: l_from_outbound wms_plan_tasks_pvt.short_sql;
3271: l_where_outbound wms_plan_tasks_pvt.short_sql;
3272: l_is_range_so BOOLEAN;
3273: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3274:
3275: BEGIN

Line 3280: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then

3276: /**** Outbound specific queries ****/
3277: IF l_debug = 1 THEN
3278: debug(' in get_outbound_specific_query.. ' );
3279: END IF;
3280: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
3281: l_is_range_so := FALSE;
3282: else/*range so is TRUE if from or to is null or form<> to*/
3283: l_is_range_so := TRUE;
3284: end if;

Line 3289: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3285:
3286: -- BUILD THE FROM CLAUSE
3287: l_from_outbound := ', wsh_delivery_details_ob_grp_v wdd ';
3288: if NOT g_is_completed_task then/*3455109 we will no longer use mso for completed tasks*/
3289: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3290: THEN
3291: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso1 ';
3292: END IF;
3293:

Line 3294: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3290: THEN
3291: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso1 ';
3292: END IF;
3293:
3294: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3295: THEN
3296: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso2 ';
3297: END IF;
3298: END IF;

Line 3300: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3296: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso2 ';
3297: END IF;
3298: END IF;
3299:
3300: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3301: THEN
3302: l_from_outbound := l_from_outbound || ', hz_parties hp ';
3303: l_from_outbound := l_from_outbound || ', hz_cust_accounts hca ';
3304: END IF;

Line 3317: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

3313: l_from_outbound :=
3314: l_from_outbound || ', fnd_lookup_values_vl flv ';
3315: END IF;
3316:
3317: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3318: THEN
3319: --Change
3320: /*l_from_outbound := l_from_outbound || ', wsh_trips wt, wsh_trip_stops wts ';
3321: l_from_outbound := l_from_outbound || ', wsh_delivery_legs wdl, wsh_new_deliveries wnd ';

Line 3332: ELSIF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3328: || ', wsh_delivery_legs_ob_grp_v wdl, wsh_new_deliveries_ob_grp_v wnd ';
3329: l_from_outbound :=
3330: l_from_outbound || ', wsh_delivery_assignments wda ';
3331: --End of change
3332: ELSIF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3333: THEN
3334: l_from_outbound :=
3335: l_from_outbound || ', wsh_delivery_assignments wda ';
3336: END IF;

Line 3338: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL

3334: l_from_outbound :=
3335: l_from_outbound || ', wsh_delivery_assignments wda ';
3336: END IF;
3337:
3338: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3339: THEN
3340: --Change
3341: --l_from_outbound := l_from_outbound || ', wsh_new_deliveries wnd ';
3342: l_from_outbound :=

Line 3346: IF wms_plan_tasks_pvt.g_delivery_id IS NULL

3342: l_from_outbound :=
3343: l_from_outbound || ', wsh_new_deliveries_ob_grp_v wnd ';
3344:
3345: -- End of change
3346: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3347: THEN
3348: l_from_outbound :=
3349: l_from_outbound || ', wsh_delivery_assignments wda ';
3350: END IF;

Line 3353: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3349: l_from_outbound || ', wsh_delivery_assignments wda ';
3350: END IF;
3351: END IF;
3352:
3353: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3354: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3355: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3356: OR g_ship_to_country_visible = 'T'
3357: OR g_ship_to_state_visible = 'T'

Line 3354: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3350: END IF;
3351: END IF;
3352:
3353: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3354: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3355: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3356: OR g_ship_to_country_visible = 'T'
3357: OR g_ship_to_state_visible = 'T'
3358: OR g_ship_to_postal_code_visible = 'T'

Line 3355: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3351: END IF;
3352:
3353: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3354: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3355: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3356: OR g_ship_to_country_visible = 'T'
3357: OR g_ship_to_state_visible = 'T'
3358: OR g_ship_to_postal_code_visible = 'T'
3359: THEN

Line 3363: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3359: THEN
3360: l_from_outbound := l_from_outbound || ', hz_locations hl ';
3361: END IF;
3362:
3363: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3364: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3365: THEN
3366: l_from_outbound :=
3367: l_from_outbound

Line 3364: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3360: l_from_outbound := l_from_outbound || ', hz_locations hl ';
3361: END IF;
3362:
3363: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3364: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3365: THEN
3366: l_from_outbound :=
3367: l_from_outbound
3368: || ', (SELECT COUNT(line_id) line_sum, header_id FROM oe_order_lines_all ';

Line 3370: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

3366: l_from_outbound :=
3367: l_from_outbound
3368: || ', (SELECT COUNT(line_id) line_sum, header_id FROM oe_order_lines_all ';
3369:
3370: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
3371: THEN
3372: l_from_outbound :=
3373: l_from_outbound || ' WHERE sold_to_org_id = :customer_id ';
3374: END IF;

Line 3385: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders

3381: IF NOT g_is_completed_task THEN -- Non Completed tasks
3382: -- Build the outbound where section of the query
3383: -- l_where_outbound := 'AND mmtt.transaction_action_id = 28 ';
3384:
3385: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3386: )
3387: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3388: THEN
3389: l_where_outbound :=

Line 3387: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)

3383: -- l_where_outbound := 'AND mmtt.transaction_action_id = 28 ';
3384:
3385: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3386: )
3387: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3388: THEN
3389: l_where_outbound :=
3390: l_where_outbound
3391: || 'AND mmtt.transaction_source_type_id = :source_type_id ';

Line 3394: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3390: l_where_outbound
3391: || 'AND mmtt.transaction_source_type_id = :source_type_id ';
3392: END IF;
3393:
3394: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3395: THEN
3396: l_where_outbound :=
3397: l_where_outbound
3398: || 'AND mso1.sales_order_id = :from_sales_order_id ';

Line 3407: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3403: l_where_outbound
3404: || 'AND wdd.source_header_type_name >= mso1.segment2 ';
3405: END IF;
3406:
3407: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3408: THEN
3409: l_where_outbound :=
3410: l_where_outbound
3411: || 'AND mso2.sales_order_id = :to_sales_order_id ';

Line 3420: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

3416: l_where_outbound
3417: || 'AND wdd.source_header_type_name <= mso2.segment2 ';
3418: END IF;
3419:
3420: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
3421: THEN
3422: l_where_outbound :=
3423: l_where_outbound
3424: || 'AND mmtt.pick_slip_number >= :from_pick_slip_number ';

Line 3427: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

3423: l_where_outbound
3424: || 'AND mmtt.pick_slip_number >= :from_pick_slip_number ';
3425: END IF;
3426:
3427: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
3428: THEN
3429: l_where_outbound :=
3430: l_where_outbound
3431: || 'AND mmtt.pick_slip_number <= :to_pick_slip_number ';

Line 3442: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders

3438: l_where_outbound := l_where_outbound || ' and rownum < 2) ';
3439: */
3440: ELSE -- Completed tasks
3441: -- Build the outbound where section of the query for completed tasks
3442: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3443: )
3444: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3445: THEN
3446: l_where_outbound :=

Line 3444: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)

3440: ELSE -- Completed tasks
3441: -- Build the outbound where section of the query for completed tasks
3442: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3443: )
3444: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3445: THEN
3446: l_where_outbound :=
3447: l_where_outbound
3448: || 'AND wdth.transaction_source_type_id = :source_type_id ';

Line 3455: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3451:
3452: /*Logic if L_is_range_so then we need to add the greater than or less
3453: than but change it to bind rather than from mso 3455109 else use equals*/
3454: IF(l_is_range_so) then
3455: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3456: THEN
3457: -- 3455109 l_where_outbound := l_where_outbound || 'AND mso1.sales_order_id = :from_sales_order_id ';
3458: l_where_outbound := l_where_outbound || ' AND lpad(wdd.source_header_number,40) >= :l_from_tonum_mso_seg1 ';
3459: l_where_outbound := l_where_outbound || ' AND wdd.source_header_type_name >= :l_from_mso_seg2 ';

Line 3462: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3458: l_where_outbound := l_where_outbound || ' AND lpad(wdd.source_header_number,40) >= :l_from_tonum_mso_seg1 ';
3459: l_where_outbound := l_where_outbound || ' AND wdd.source_header_type_name >= :l_from_mso_seg2 ';
3460: END IF;
3461:
3462: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3463: THEN
3464: l_where_outbound := l_where_outbound || 'AND lpad(wdd.source_header_number,40) <= :l_to_tonum_mso_seg1 ';
3465: l_where_outbound := l_where_outbound || 'AND wdd.source_header_type_name <= :l_to_mso_seg2 ';
3466: END IF;

Line 3473: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

3469: l_where_outbound := l_where_outbound || 'AND wdd.source_header_type_name = :l_from_mso_seg2 ';
3470: END IF;
3471: -- commenting since there is no MMT available for crossdock tasks )
3472: /*
3473: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
3474: THEN
3475: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number >= :from_pick_slip_number ';
3476: END IF;
3477:

Line 3478: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

3474: THEN
3475: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number >= :from_pick_slip_number ';
3476: END IF;
3477:
3478: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
3479: THEN
3480: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number <= :to_pick_slip_number ';
3481: END IF;
3482: */

Line 3485: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

3481: END IF;
3482: */
3483: END IF;
3484:
3485: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
3486: THEN
3487: l_where_outbound :=
3488: l_where_outbound || 'AND wdd.customer_id = :customer_id ';
3489: END IF;

Line 3491: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3487: l_where_outbound :=
3488: l_where_outbound || 'AND wdd.customer_id = :customer_id ';
3489: END IF;
3490:
3491: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3492: THEN
3493: l_where_outbound :=
3494: l_where_outbound || 'AND hca.party_id = hp.party_id ';
3495:

Line 3506: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3502: l_where_outbound :=
3503: l_where_outbound || 'AND wdd.customer_id = hca.cust_account_id ';
3504: /* End of Bug 5507934 */
3505:
3506: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3507: THEN
3508: l_where_outbound :=
3509: l_where_outbound
3510: || 'AND hca.customer_class_code = :customer_category ';

Line 3537: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL

3533: l_where_outbound :=
3534: l_where_outbound || 'AND flv.view_application_id(+) = 3 ';
3535: END IF;
3536:
3537: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
3538: THEN
3539: l_where_outbound :=
3540: l_where_outbound || 'AND wdd.carrier_id = :carrier_id ';
3541: END IF;

Line 3543: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL

3539: l_where_outbound :=
3540: l_where_outbound || 'AND wdd.carrier_id = :carrier_id ';
3541: END IF;
3542:
3543: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
3544: THEN
3545: l_where_outbound :=
3546: l_where_outbound || 'AND wdd.ship_method_code = :ship_method ';
3547: END IF;

Line 3549: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL

3545: l_where_outbound :=
3546: l_where_outbound || 'AND wdd.ship_method_code = :ship_method ';
3547: END IF;
3548:
3549: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
3550: THEN
3551: l_where_outbound :=
3552: l_where_outbound
3553: || 'AND wdd.shipment_priority_code = :shipment_priority ';

Line 3556: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL

3552: l_where_outbound
3553: || 'AND wdd.shipment_priority_code = :shipment_priority ';
3554: END IF;
3555:
3556: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
3557: THEN
3558: l_where_outbound :=
3559: l_where_outbound
3560: || 'AND wdd.date_scheduled >= :from_shipment_date ';

Line 3563: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL

3559: l_where_outbound
3560: || 'AND wdd.date_scheduled >= :from_shipment_date ';
3561: END IF;
3562:
3563: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
3564: THEN
3565: l_where_outbound :=
3566: l_where_outbound
3567: || 'AND wdd.date_scheduled <= :to_shipment_date ';

Line 3570: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3566: l_where_outbound
3567: || 'AND wdd.date_scheduled <= :to_shipment_date ';
3568: END IF;
3569:
3570: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3571: THEN
3572: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3573: THEN
3574: l_where_outbound :=

Line 3572: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

3568: END IF;
3569:
3570: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3571: THEN
3572: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3573: THEN
3574: l_where_outbound :=
3575: l_where_outbound || 'AND wt.trip_id = :trip_id ';
3576: l_where_outbound :=

Line 3593: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3589: l_where_outbound :=
3590: l_where_outbound
3591: || 'AND wdd.delivery_detail_id = wda.delivery_detail_id ';
3592:
3593: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3594: THEN
3595: l_where_outbound :=
3596: l_where_outbound || 'AND wda.delivery_id = :delivery_id ';
3597: END IF;

Line 3600: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL

3596: l_where_outbound || 'AND wda.delivery_id = :delivery_id ';
3597: END IF;
3598: END IF;
3599:
3600: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3601: THEN
3602: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3603: THEN
3604: l_where_outbound :=

Line 3602: IF wms_plan_tasks_pvt.g_delivery_id IS NULL

3598: END IF;
3599:
3600: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3601: THEN
3602: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3603: THEN
3604: l_where_outbound :=
3605: l_where_outbound
3606: || 'AND wdd.delivery_detail_id = wda.delivery_detail_id(+) ';

Line 3613: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3609: l_where_outbound :=
3610: l_where_outbound || 'AND wnd.delivery_id(+) = wda.delivery_id ';
3611: END IF;
3612:
3613: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3614: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3615: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3616: OR g_ship_to_country_visible = 'T'
3617: OR g_ship_to_state_visible = 'T'

Line 3614: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3610: l_where_outbound || 'AND wnd.delivery_id(+) = wda.delivery_id ';
3611: END IF;
3612:
3613: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3614: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3615: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3616: OR g_ship_to_country_visible = 'T'
3617: OR g_ship_to_state_visible = 'T'
3618: OR g_ship_to_postal_code_visible = 'T'

Line 3615: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3611: END IF;
3612:
3613: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3614: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3615: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3616: OR g_ship_to_country_visible = 'T'
3617: OR g_ship_to_state_visible = 'T'
3618: OR g_ship_to_postal_code_visible = 'T'
3619: THEN

Line 3624: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3620: l_where_outbound :=
3621: l_where_outbound
3622: || 'AND wdd.ship_to_location_id = hl.location_id ';
3623:
3624: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3625: THEN
3626: l_where_outbound :=
3627: l_where_outbound || 'AND hl.state = :ship_to_state ';
3628: END IF;

Line 3630: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3626: l_where_outbound :=
3627: l_where_outbound || 'AND hl.state = :ship_to_state ';
3628: END IF;
3629:
3630: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3631: THEN
3632: l_where_outbound :=
3633: l_where_outbound || 'AND hl.country = :ship_to_country ';
3634: END IF;

Line 3636: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3632: l_where_outbound :=
3633: l_where_outbound || 'AND hl.country = :ship_to_country ';
3634: END IF;
3635:
3636: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3637: THEN
3638: l_where_outbound :=
3639: l_where_outbound
3640: || 'AND hl.postal_code = :ship_to_postal_code ';

Line 3644: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3640: || 'AND hl.postal_code = :ship_to_postal_code ';
3641: END IF;
3642: END IF;
3643:
3644: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3645: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3646: THEN
3647: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3648: THEN

Line 3645: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3641: END IF;
3642: END IF;
3643:
3644: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3645: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3646: THEN
3647: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3648: THEN
3649: l_where_outbound :=

Line 3647: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3643:
3644: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3645: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3646: THEN
3647: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3648: THEN
3649: l_where_outbound :=
3650: l_where_outbound
3651: || 'AND oolac.line_sum >= :from_number_of_order_lines ';

Line 3654: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3650: l_where_outbound
3651: || 'AND oolac.line_sum >= :from_number_of_order_lines ';
3652: END IF;
3653:
3654: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3655: THEN
3656: l_where_outbound :=
3657: l_where_outbound
3658: || 'AND oolac.line_sum <= :to_number_of_order_lines ';

Line 3676: l_wdth_select_str wms_plan_tasks_pvt.short_sql;

3672: x_wdth_from_str OUT NOCOPY VARCHAR2,
3673: x_wdth_where_str OUT NOCOPY VARCHAR2) IS
3674:
3675: l_wdth_str VARCHAR2(6000);
3676: l_wdth_select_str wms_plan_tasks_pvt.short_sql;
3677: l_wdth_from_str VARCHAR2(500);
3678: l_wdth_where_str wms_plan_tasks_pvt.short_sql;
3679: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3680: BEGIN

Line 3678: l_wdth_where_str wms_plan_tasks_pvt.short_sql;

3674:
3675: l_wdth_str VARCHAR2(6000);
3676: l_wdth_select_str wms_plan_tasks_pvt.short_sql;
3677: l_wdth_from_str VARCHAR2(500);
3678: l_wdth_where_str wms_plan_tasks_pvt.short_sql;
3679: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3680: BEGIN
3681: IF l_debug = 1 THEN
3682: debug(' in get_wdth_plan_records','get_wdth_plan_records');

Line 3687: ' ''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''',' || /*plan_task*/

3683: END IF;
3684: l_wdth_select_str :=
3685: 'SELECT ' ||
3686: ' decode(wdth.is_parent,''N'',decode(wdth.operation_plan_id,null,null,null),''+''), ' || /* expansion_code*/
3687: ' ''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''',' || /*plan_task*/
3688: ' wdth.transaction_id, ' || /*transaction_temp_id*/
3689: ' wdth.parent_transaction_id,' || /*parent_line_id*/
3690: ' wdth.inventory_item_id, ' || /*inventory_item_id*/
3691: ' msiv.concatenated_segments, ' || /*item*/

Line 3716: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

3712: ' wdth.transaction_type_id, ' || /*transaction_type_id*/
3713: ' wdth.transaction_action_id, ' || /*transaction_action_id */
3714: ' wdth.transaction_source_type_id, '; /*transaction_source_type_id*/
3715:
3716: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3717: l_wdth_select_str := l_wdth_select_str
3718: || ' mtst.transaction_source_type_name, '; --transaction_source_type
3719: END IF;
3720:

Line 3726: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

3722: || ' to_number(null), ' || /*transaction_source_id*/
3723: ' to_number(null), ' || /*transaction_source_line_id*/
3724: ' wdth.transfer_organization_id, '; /*to_organization_id*/
3725:
3726: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3727: l_wdth_select_str := l_wdth_select_str
3728: || 'mp1.organization_code, '; --to_organization_id
3729: END IF;
3730:

Line 3735: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

3731: l_wdth_select_str := l_wdth_select_str
3732: || 'wdth.dest_subinventory_code, ' /*to_subinventory*/
3733: || 'wdth.dest_locator_id, '; /*to_locator_id*/
3734:
3735: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
3736: --to locator
3737: l_wdth_select_str := l_wdth_select_str ||
3738: 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
3739: END IF;

Line 3746: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

3742: 'wdth.transaction_uom_code, ' || /*transaction_uom*/
3743: ' wdth.transaction_quantity, ' || /*transaction_quantity*/
3744: ' wdth.user_task_type, '; /*user_task_type_id*/
3745:
3746: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3747: l_wdth_select_str := l_wdth_select_str
3748: || 'bso.operation_code, '; --user_task_type
3749: END IF;
3750:

Line 3760: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN

3756: l_wdth_select_str := l_wdth_select_str || 'null, ';
3757: --cartonization_lpn
3758: END IF;
3759: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ' ; /*allocated_lpn_id*/
3760: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
3761: l_wdth_select_str := l_wdth_select_str || 'null, '; --allocated_lpn
3762: END IF;
3763: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ';/*container_item_id*/
3764: IF g_container_item_visible = 'T' THEN

Line 3770: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

3766: end if;
3767:
3768: l_wdth_select_str := l_wdth_select_str || ' wdth.lpn_id, ';/*from_lpn_id*/
3769:
3770: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3771: l_wdth_select_str := l_wdth_select_str
3772: || 'wlpn5.license_plate_number, ';/*from_lpn*/
3773: END IF;
3774:

Line 3777: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

3773: END IF;
3774:
3775: l_wdth_select_str := l_wdth_select_str || ' wdth.content_lpn_id, ';/*content_lpn_id*/
3776:
3777: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3778: l_wdth_select_str := l_wdth_select_str
3779: || 'wlpn3.license_plate_number, '; --content_lpn
3780: END IF;
3781:

Line 3784: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

3780: END IF;
3781:
3782: l_wdth_select_str := l_wdth_select_str
3783: || 'wdth.transfer_lpn_id, '; --to_lpn_id
3784: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3785: l_wdth_select_str := l_wdth_select_str
3786: || 'wlpn4.license_plate_number, '; --to_lpn
3787: END IF;
3788:

Line 3797: || wms_plan_tasks_pvt.g_task_types(1)

3793: ' wdth.priority, ' || /*priority_original*/
3794: ' wdth.task_type, ' || /*task_type_id*/
3795: ' decode(wdth.task_type,'
3796: || '1, '''
3797: || wms_plan_tasks_pvt.g_task_types(1)
3798: || ''', 2, '''
3799: || wms_plan_tasks_pvt.g_task_types(2)
3800: || ''', 3, '''
3801: || wms_plan_tasks_pvt.g_task_types(3)

Line 3799: || wms_plan_tasks_pvt.g_task_types(2)

3795: ' decode(wdth.task_type,'
3796: || '1, '''
3797: || wms_plan_tasks_pvt.g_task_types(1)
3798: || ''', 2, '''
3799: || wms_plan_tasks_pvt.g_task_types(2)
3800: || ''', 3, '''
3801: || wms_plan_tasks_pvt.g_task_types(3)
3802: || ''', 4, '''
3803: || wms_plan_tasks_pvt.g_task_types(4)

Line 3801: || wms_plan_tasks_pvt.g_task_types(3)

3797: || wms_plan_tasks_pvt.g_task_types(1)
3798: || ''', 2, '''
3799: || wms_plan_tasks_pvt.g_task_types(2)
3800: || ''', 3, '''
3801: || wms_plan_tasks_pvt.g_task_types(3)
3802: || ''', 4, '''
3803: || wms_plan_tasks_pvt.g_task_types(4)
3804: || ''', 5, '''
3805: || wms_plan_tasks_pvt.g_task_types(5)

Line 3803: || wms_plan_tasks_pvt.g_task_types(4)

3799: || wms_plan_tasks_pvt.g_task_types(2)
3800: || ''', 3, '''
3801: || wms_plan_tasks_pvt.g_task_types(3)
3802: || ''', 4, '''
3803: || wms_plan_tasks_pvt.g_task_types(4)
3804: || ''', 5, '''
3805: || wms_plan_tasks_pvt.g_task_types(5)
3806: || ''', 6, '''
3807: || wms_plan_tasks_pvt.g_task_types(6)

Line 3805: || wms_plan_tasks_pvt.g_task_types(5)

3801: || wms_plan_tasks_pvt.g_task_types(3)
3802: || ''', 4, '''
3803: || wms_plan_tasks_pvt.g_task_types(4)
3804: || ''', 5, '''
3805: || wms_plan_tasks_pvt.g_task_types(5)
3806: || ''', 6, '''
3807: || wms_plan_tasks_pvt.g_task_types(6)
3808: || ''', 7, '''
3809: || wms_plan_tasks_pvt.g_task_types(7)

Line 3807: || wms_plan_tasks_pvt.g_task_types(6)

3803: || wms_plan_tasks_pvt.g_task_types(4)
3804: || ''', 5, '''
3805: || wms_plan_tasks_pvt.g_task_types(5)
3806: || ''', 6, '''
3807: || wms_plan_tasks_pvt.g_task_types(6)
3808: || ''', 7, '''
3809: || wms_plan_tasks_pvt.g_task_types(7)
3810: || ''', 8, '''
3811: || wms_plan_tasks_pvt.g_task_types(8)

Line 3809: || wms_plan_tasks_pvt.g_task_types(7)

3805: || wms_plan_tasks_pvt.g_task_types(5)
3806: || ''', 6, '''
3807: || wms_plan_tasks_pvt.g_task_types(6)
3808: || ''', 7, '''
3809: || wms_plan_tasks_pvt.g_task_types(7)
3810: || ''', 8, '''
3811: || wms_plan_tasks_pvt.g_task_types(8)
3812: || '''), ' ||
3813: ' to_date(null), ' || /*creation_time */

Line 3811: || wms_plan_tasks_pvt.g_task_types(8)

3807: || wms_plan_tasks_pvt.g_task_types(6)
3808: || ''', 7, '''
3809: || wms_plan_tasks_pvt.g_task_types(7)
3810: || ''', 8, '''
3811: || wms_plan_tasks_pvt.g_task_types(8)
3812: || '''), ' ||
3813: ' to_date(null), ' || /*creation_time */
3814: ' wdth.operation_plan_id, '; /*operation_plan_id*/
3815: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

Line 3815: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

3811: || wms_plan_tasks_pvt.g_task_types(8)
3812: || '''), ' ||
3813: ' to_date(null), ' || /*creation_time */
3814: ' wdth.operation_plan_id, '; /*operation_plan_id*/
3815: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
3816: l_wdth_select_str := l_wdth_select_str
3817: || 'wop.operation_plan_name, ';/*operation_plan*/
3818: END IF;
3819: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

Line 3819: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

3815: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
3816: l_wdth_select_str := l_wdth_select_str
3817: || 'wop.operation_plan_name, ';/*operation_plan*/
3818: END IF;
3819: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
3820: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ';
3821: END IF;
3822: l_wdth_select_str := l_wdth_select_str ||
3823: ' to_number(wdth.op_plan_instance_id), ' || /*operation_instance_id*/

Line 3829: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

3825: ' wdth.task_id, ' ||/*task_id */
3826: ' wdth.person_id, ' || /*person_id*/
3827: ' wdth.person_id, '; /*person_id_original*/
3828:
3829: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3830: l_wdth_select_str := l_wdth_select_str || 'pap.full_name, '; --person_id
3831: END IF;
3832: l_wdth_select_str := l_wdth_select_str ||
3833: ' wdth.effective_start_date, ' || /*effective_start_date*/

Line 3837: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

3833: ' wdth.effective_start_date, ' || /*effective_start_date*/
3834: ' wdth.effective_end_date, ' || /*effective_end_date*/
3835: ' wdth.person_resource_id, '; --person_resource_id
3836:
3837: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3838: l_wdth_select_str := l_wdth_select_str
3839: || 'br1.resource_code, '; --person_resource_code
3840: END IF;
3841:

Line 3845: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

3841:
3842: l_wdth_select_str := l_wdth_select_str ||
3843: ' wdth.machine_resource_id, '; --machine_resource_id
3844:
3845: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3846: l_wdth_select_str := l_wdth_select_str
3847: || 'br2.resource_code, '; --machine_resource_code
3848: END IF;
3849:

Line 3861: IF wms_plan_tasks_pvt.g_include_inbound THEN

3857: '''N'', '|| --is modified
3858: 'wdth.SECONDARY_TRANSACTION_UOM_CODE, '||
3859: 'wdth.secondary_transaction_quantity ';
3860:
3861: IF wms_plan_tasks_pvt.g_include_inbound THEN
3862: l_wdth_select_str := l_wdth_select_str
3863: || ', wwtt.reference_id '
3864: || ', wwtt.reference ';
3865: END IF;

Line 3867: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

3863: || ', wwtt.reference_id '
3864: || ', wwtt.reference ';
3865: END IF;
3866:
3867: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
3868: l_wdth_select_str := l_wdth_select_str
3869: || ', wwtt.source_header '
3870: || ', wwtt.line_number ';
3871: END IF;

Line 3878: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

3874: -- ', mtl_system_items_kfv msiv ' ||
3875: ', mtl_system_items_vl msiv ' || --Bug 11798973 Modified to fetch translated value
3876: ', mtl_item_locations_kfv milv ';
3877:
3878: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
3879: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3880: l_wdth_from_str := l_wdth_from_str ||
3881: ', mtl_item_categories mic ';
3882: END IF;

Line 3879: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

3875: ', mtl_system_items_vl msiv ' || --Bug 11798973 Modified to fetch translated value
3876: ', mtl_item_locations_kfv milv ';
3877:
3878: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
3879: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3880: l_wdth_from_str := l_wdth_from_str ||
3881: ', mtl_item_categories mic ';
3882: END IF;
3883:

Line 3884: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

3880: l_wdth_from_str := l_wdth_from_str ||
3881: ', mtl_item_categories mic ';
3882: END IF;
3883:
3884: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3885: l_wdth_from_str := l_wdth_from_str
3886: || ', wms_license_plate_numbers wlpn5 ';
3887: END IF;
3888:

Line 3889: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

3885: l_wdth_from_str := l_wdth_from_str
3886: || ', wms_license_plate_numbers wlpn5 ';
3887: END IF;
3888:
3889: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3890: l_wdth_from_str := l_wdth_from_str
3891: || ', wms_license_plate_numbers wlpn3 ';
3892: END IF;
3893:

Line 3894: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

3890: l_wdth_from_str := l_wdth_from_str
3891: || ', wms_license_plate_numbers wlpn3 ';
3892: END IF;
3893:
3894: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3895: l_wdth_from_str := l_wdth_from_str
3896: || ', wms_license_plate_numbers wlpn4 ';
3897: END IF;
3898:

Line 3899: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

3895: l_wdth_from_str := l_wdth_from_str
3896: || ', wms_license_plate_numbers wlpn4 ';
3897: END IF;
3898:
3899: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3900: l_wdth_from_str := l_wdth_from_str
3901: || ', bom_standard_operations bso ';
3902: END IF;
3903:

Line 3904: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

3900: l_wdth_from_str := l_wdth_from_str
3901: || ', bom_standard_operations bso ';
3902: END IF;
3903:
3904: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3905: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
3906: END IF;
3907:
3908: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

Line 3908: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

3904: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3905: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
3906: END IF;
3907:
3908: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3909: l_wdth_from_str := l_wdth_from_str
3910: || ', mtl_txn_source_types mtst ';
3911: END IF;
3912:

Line 3915: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

3911: END IF;
3912:
3913: l_wdth_from_str := l_wdth_from_str || ', wms_op_plans_vl wop ';
3914:
3915: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3916: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
3917: END IF;
3918:
3919: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

Line 3919: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

3915: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3916: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
3917: END IF;
3918:
3919: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3920: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
3921: END IF;
3922:
3923: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

Line 3923: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

3919: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3920: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
3921: END IF;
3922:
3923: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3924: l_wdth_from_str := l_wdth_from_str
3925: || ', per_all_people_f pap ';
3926: END IF;
3927: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

Line 3927: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

3923: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3924: l_wdth_from_str := l_wdth_from_str
3925: || ', per_all_people_f pap ';
3926: END IF;
3927: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
3928: l_wdth_from_str := l_wdth_from_str || ', mtl_item_locations_kfv milv1 ';
3929: END IF;
3930:
3931: l_wdth_where_str := 'WHERE 1 = 1 ';

Line 3937: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

3933: || 'AND wdth.organization_id = msiv.organization_id '
3934: || 'AND wdth.inventory_item_id = msiv.inventory_item_id '
3935: || 'AND wdth.organization_id = milv.organization_id(+) '
3936: || 'AND wdth.source_locator_id = milv.inventory_location_id(+) ';
3937: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3938: l_wdth_where_str := l_wdth_where_str
3939: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
3940: END IF;
3941:

Line 3942: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

3938: l_wdth_where_str := l_wdth_where_str
3939: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
3940: END IF;
3941:
3942: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3943: l_wdth_where_str := l_wdth_where_str
3944: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
3945: END IF;
3946:

Line 3947: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN

3943: l_wdth_where_str := l_wdth_where_str
3944: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
3945: END IF;
3946:
3947: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3948: l_wdth_where_str := l_wdth_where_str
3949: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
3950: END IF;
3951:

Line 3952: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

3948: l_wdth_where_str := l_wdth_where_str
3949: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
3950: END IF;
3951:
3952: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3953: l_wdth_where_str := l_wdth_where_str
3954: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
3955: END IF;
3956:

Line 3957: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

3953: l_wdth_where_str := l_wdth_where_str
3954: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
3955: END IF;
3956:
3957: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3958: l_wdth_where_str := l_wdth_where_str
3959: || 'AND wdth.person_id = pap.person_id (+)'
3960: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
3961: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';

Line 3964: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

3960: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
3961: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';
3962: END IF;
3963:
3964: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3965: l_wdth_where_str := l_wdth_where_str
3966: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
3967: END IF;
3968:

Line 3969: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

3965: l_wdth_where_str := l_wdth_where_str
3966: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
3967: END IF;
3968:
3969: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3970: l_wdth_where_str := l_wdth_where_str
3971: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
3972: END IF;
3973:

Line 3974: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

3970: l_wdth_where_str := l_wdth_where_str
3971: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
3972: END IF;
3973:
3974: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3975: l_wdth_where_str := l_wdth_where_str
3976: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
3977: END IF;
3978:

Line 3979: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN

3975: l_wdth_where_str := l_wdth_where_str
3976: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
3977: END IF;
3978:
3979: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3980: l_wdth_where_str := l_wdth_where_str
3981: || 'AND wdth.user_task_type = bso.standard_operation_id(+) '
3982: || 'AND wdth.organization_id = bso.organization_id(+) ';
3983: END IF;

Line 3988: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

3984:
3985: l_wdth_where_str := l_wdth_where_str
3986: || 'AND wdth.operation_plan_id = wop.operation_plan_id(+) ';
3987:
3988: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
3989: l_wdth_where_str := l_wdth_where_str
3990: || 'AND wdth.organization_id = :org_id ';
3991: END IF;
3992:

Line 3993: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

3989: l_wdth_where_str := l_wdth_where_str
3990: || 'AND wdth.organization_id = :org_id ';
3991: END IF;
3992:
3993: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3994: l_wdth_where_str := l_wdth_where_str
3995: || 'AND mic.category_set_id = :category_set_id ';
3996: END IF;
3997:

Line 3998: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

3994: l_wdth_where_str := l_wdth_where_str
3995: || 'AND mic.category_set_id = :category_set_id ';
3996: END IF;
3997:
3998: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
3999: l_wdth_where_str := l_wdth_where_str
4000: || 'AND wdth.inventory_item_id = mic.inventory_item_id (+) '
4001: || 'AND mic.organization_id = wdth.organization_id '
4002: || 'AND mic.category_id = :item_category_id ';

Line 4009: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

4005: l_wdth_where_str := l_wdth_where_str
4006: || ' AND wdth.is_parent = ''Y'' '
4007: || ' AND wdth.operation_plan_id is not null ';
4008:
4009: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
4010: l_wdth_where_str := l_wdth_where_str
4011: || 'AND wdth.inventory_item_id = :item_id ';
4012: END IF;
4013:

Line 4014: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

4010: l_wdth_where_str := l_wdth_where_str
4011: || 'AND wdth.inventory_item_id = :item_id ';
4012: END IF;
4013:
4014: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
4015: l_wdth_where_str := l_wdth_where_str
4016: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
4017: END IF;
4018:

Line 4019: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

4015: l_wdth_where_str := l_wdth_where_str
4016: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
4017: END IF;
4018:
4019: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
4020: l_wdth_where_str := l_wdth_where_str
4021: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
4022: END IF;
4023:

Line 4024: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

4020: l_wdth_where_str := l_wdth_where_str
4021: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
4022: END IF;
4023:
4024: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
4025: l_wdth_where_str := l_wdth_where_str
4026: --|| 'AND wdth.creation_date >= :from_creation_date ';--Commented in bug 6854145
4027: || 'AND TRUNC(wdth.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
4028: END IF;

Line 4030: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

4026: --|| 'AND wdth.creation_date >= :from_creation_date ';--Commented in bug 6854145
4027: || 'AND TRUNC(wdth.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
4028: END IF;
4029:
4030: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
4031: l_wdth_where_str := l_wdth_where_str
4032: --|| 'AND wdth.creation_date <= :to_creation_date ';--Commented in bug 6854145
4033: || 'AND TRUNC(wdth.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
4034: END IF;

Line 4036: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

4032: --|| 'AND wdth.creation_date <= :to_creation_date ';--Commented in bug 6854145
4033: || 'AND TRUNC(wdth.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
4034: END IF;
4035:
4036: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
4037: l_wdth_where_str := l_wdth_where_str
4038: || 'and wdth.dest_locator_id = milv1.inventory_location_id (+) '
4039: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+) ';
4040: END IF;

Line 4043: IF wms_plan_tasks_pvt.g_is_completed_plan THEN

4039: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+) ';
4040: END IF;
4041: /* Filter based on the status - completed/cancelled/aborted. */
4042: l_wdth_where_str := l_wdth_where_str || 'AND wdth.status in (';
4043: IF wms_plan_tasks_pvt.g_is_completed_plan THEN
4044: l_wdth_where_str := l_wdth_where_str || '6';
4045: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4046: l_wdth_where_str := l_wdth_where_str || ',12';
4047: END IF;

Line 4045: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN

4041: /* Filter based on the status - completed/cancelled/aborted. */
4042: l_wdth_where_str := l_wdth_where_str || 'AND wdth.status in (';
4043: IF wms_plan_tasks_pvt.g_is_completed_plan THEN
4044: l_wdth_where_str := l_wdth_where_str || '6';
4045: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4046: l_wdth_where_str := l_wdth_where_str || ',12';
4047: END IF;
4048: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4049: l_wdth_where_str := l_wdth_where_str || ',11';

Line 4048: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN

4044: l_wdth_where_str := l_wdth_where_str || '6';
4045: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4046: l_wdth_where_str := l_wdth_where_str || ',12';
4047: END IF;
4048: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4049: l_wdth_where_str := l_wdth_where_str || ',11';
4050: END IF;
4051: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4052: l_wdth_where_str := l_wdth_where_str || '12';

Line 4051: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN

4047: END IF;
4048: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4049: l_wdth_where_str := l_wdth_where_str || ',11';
4050: END IF;
4051: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4052: l_wdth_where_str := l_wdth_where_str || '12';
4053: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4054: l_wdth_where_str := l_wdth_where_str || ',11';
4055: END IF;

Line 4053: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN

4049: l_wdth_where_str := l_wdth_where_str || ',11';
4050: END IF;
4051: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
4052: l_wdth_where_str := l_wdth_where_str || '12';
4053: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4054: l_wdth_where_str := l_wdth_where_str || ',11';
4055: END IF;
4056: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4057: l_wdth_where_str := l_wdth_where_str || '11';

Line 4056: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN

4052: l_wdth_where_str := l_wdth_where_str || '12';
4053: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4054: l_wdth_where_str := l_wdth_where_str || ',11';
4055: END IF;
4056: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN
4057: l_wdth_where_str := l_wdth_where_str || '11';
4058: END IF;
4059:
4060: l_wdth_where_str := l_wdth_where_str || ')';

Line 4082: --wms_plan_tasks_pvt.g_add := FALSE;

4078: BEGIN
4079: IF l_debug = 1 THEN
4080: debug(' in clear_globals ',l_module_name);
4081: END IF;
4082: --wms_plan_tasks_pvt.g_add := FALSE;
4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;

Line 4083: wms_plan_tasks_pvt.g_organization_id := NULL;

4079: IF l_debug = 1 THEN
4080: debug(' in clear_globals ',l_module_name);
4081: END IF;
4082: --wms_plan_tasks_pvt.g_add := FALSE;
4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;

Line 4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;

4080: debug(' in clear_globals ',l_module_name);
4081: END IF;
4082: --wms_plan_tasks_pvt.g_add := FALSE;
4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;

Line 4085: wms_plan_tasks_pvt.g_locator_id := NULL;

4081: END IF;
4082: --wms_plan_tasks_pvt.g_add := FALSE;
4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;

Line 4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;

4082: --wms_plan_tasks_pvt.g_add := FALSE;
4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;

Line 4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;

4083: wms_plan_tasks_pvt.g_organization_id := NULL;
4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;

Line 4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;

4084: wms_plan_tasks_pvt.g_subinventory_code := NULL;
4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;

Line 4089: wms_plan_tasks_pvt.g_category_set_id := NULL;

4085: wms_plan_tasks_pvt.g_locator_id := NULL;
4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;

Line 4090: wms_plan_tasks_pvt.g_item_category_id := NULL;

4086: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;

Line 4091: wms_plan_tasks_pvt.g_person_id := NULL;

4087: wms_plan_tasks_pvt.g_to_locator_id := NULL;
4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;

Line 4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;

4088: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;

Line 4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;

4089: wms_plan_tasks_pvt.g_category_set_id := NULL;
4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;

Line 4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;

4090: wms_plan_tasks_pvt.g_item_category_id := NULL;
4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;

Line 4095: wms_plan_tasks_pvt.g_machine_instance := NULL;

4091: wms_plan_tasks_pvt.g_person_id := NULL;
4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;

Line 4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;

4092: wms_plan_tasks_pvt.g_person_resource_id := NULL;
4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;

Line 4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;

4093: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;

Line 4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;

4094: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;

Line 4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;

4095: wms_plan_tasks_pvt.g_machine_instance := NULL;
4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:

Line 4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;

4096: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;

Line 4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;

4097: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

Line 4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;

4098: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
4099: wms_plan_tasks_pvt.g_from_task_priority := NULL;
4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;

Line 4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;

4100: wms_plan_tasks_pvt.g_to_task_priority := NULL;
4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;

Line 4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

4101: wms_plan_tasks_pvt.g_from_creation_date := NULL;
4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

Line 4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;

4102: wms_plan_tasks_pvt.g_to_creation_date := NULL;
4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;

Line 4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;

4103:
4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:

Line 4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;

4104: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;

Line 4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

4105: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;

Line 4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;

4106: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
4107: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;

Line 4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;

4108: wms_plan_tasks_pvt.g_is_active_task := FALSE;
4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;

Line 4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;

4109: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;

Line 4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;

4110: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;

Line 4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;

4111:
4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;

Line 4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;

4112: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;

Line 4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;

4113: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;

Line 4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;

4114: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;

Line 4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;

4115: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;

Line 4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;

4116: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;

Line 4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;

4117: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;

Line 4122: wms_plan_tasks_pvt.g_from_rma := NULL;

4118: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;

Line 4123: wms_plan_tasks_pvt.g_to_rma := NULL;

4119: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;

Line 4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;

4120: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;

Line 4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;

4121: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;

Line 4126: wms_plan_tasks_pvt.g_from_requisition := NULL;

4122: wms_plan_tasks_pvt.g_from_rma := NULL;
4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;

Line 4127: wms_plan_tasks_pvt.g_to_requisition := NULL;

4123: wms_plan_tasks_pvt.g_to_rma := NULL;
4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;

Line 4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;

4124: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;

Line 4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;

4125: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;

Line 4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;

4126: wms_plan_tasks_pvt.g_from_requisition := NULL;
4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;

Line 4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;

4127: wms_plan_tasks_pvt.g_to_requisition := NULL;
4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;

Line 4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;

4128: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;

Line 4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;

4129: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;

Line 4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;

4130: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;

Line 4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;

4131: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;

Line 4136: wms_plan_tasks_pvt.g_customer_id := NULL;

4132: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;

Line 4137: wms_plan_tasks_pvt.g_customer_category := NULL;

4133: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;

Line 4138: wms_plan_tasks_pvt.g_delivery_id := NULL;

4134: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;

Line 4139: wms_plan_tasks_pvt.g_carrier_id := NULL;

4135: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;

Line 4140: wms_plan_tasks_pvt.g_ship_method := NULL;

4136: wms_plan_tasks_pvt.g_customer_id := NULL;
4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;

Line 4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;

4137: wms_plan_tasks_pvt.g_customer_category := NULL;
4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;

Line 4142: wms_plan_tasks_pvt.g_trip_id := NULL;

4138: wms_plan_tasks_pvt.g_delivery_id := NULL;
4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;

Line 4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;

4139: wms_plan_tasks_pvt.g_carrier_id := NULL;
4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;

Line 4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;

4140: wms_plan_tasks_pvt.g_ship_method := NULL;
4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;

Line 4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;

4141: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;

Line 4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;

4142: wms_plan_tasks_pvt.g_trip_id := NULL;
4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;

Line 4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;

4143: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;

Line 4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;

4144: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;

Line 4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;

4145: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;

Line 4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;

4146: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;

Line 4151: wms_plan_tasks_pvt.g_from_job := NULL;

4147: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;

Line 4152: wms_plan_tasks_pvt.g_to_job := NULL;

4148: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;

Line 4153: wms_plan_tasks_pvt.g_assembly_id := NULL;

4149: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;

Line 4154: wms_plan_tasks_pvt.g_from_start_date := NULL;

4150: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;

Line 4155: wms_plan_tasks_pvt.g_to_start_date := NULL;

4151: wms_plan_tasks_pvt.g_from_job := NULL;
4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;

Line 4156: wms_plan_tasks_pvt.g_from_line := NULL;

4152: wms_plan_tasks_pvt.g_to_job := NULL;
4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;

Line 4157: wms_plan_tasks_pvt.g_to_line := NULL;

4153: wms_plan_tasks_pvt.g_assembly_id := NULL;
4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;

Line 4158: wms_plan_tasks_pvt.g_department_id := NULL;

4154: wms_plan_tasks_pvt.g_from_start_date := NULL;
4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;

Line 4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;

4155: wms_plan_tasks_pvt.g_to_start_date := NULL;
4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;

Line 4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;

4156: wms_plan_tasks_pvt.g_from_line := NULL;
4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;

Line 4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;

4157: wms_plan_tasks_pvt.g_to_line := NULL;
4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;

Line 4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;

4158: wms_plan_tasks_pvt.g_department_id := NULL;
4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;

Line 4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;

4159: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;

Line 4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;

4160: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;

Line 4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;

4161: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;

Line 4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;

4162: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:

Line 4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;

4163: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;

Line 4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;

4164: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;

Line 4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;

4165: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4166: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:

Line 4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;

4167: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;

Line 4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;

4168: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4169: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;

Line 4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;

4170:
4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;

Line 4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;

4171: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:

Line 4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;

4172: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;

Line 4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;

4173:
4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;

Line 4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;

4174: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4175: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;

Line 4180: wms_plan_tasks_pvt.g_activity_id := NULL;

4176: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;

Line 4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;

4177: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;

Line 4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;

4178: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4179:
4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

Line 4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;

4180: wms_plan_tasks_pvt.g_activity_id := NULL;
4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4187: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4188:

Line 4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;

4181: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4187: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4188:
4189:

Line 4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

4182: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4187: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4188:
4189:
4190: END clear_globals;

Line 4187: wms_plan_tasks_pvt.g_from_inbound := FALSE;

4183:
4184: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4185: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4186: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4187: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4188:
4189:
4190: END clear_globals;
4191: