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.23.12010000.2 2008/10/07 11:59:25 vgnair ship $ */
3:
4: /*
5: * Private constants to decide the destination

Line 152: l_plans_query wms_plan_tasks_pvt.long_sql;

148:
149: /* wrapper procedure to fetch the inbound plans and tasks */
150: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
151:
152: l_plans_query wms_plan_tasks_pvt.long_sql;
153: l_tasks_query wms_plan_tasks_pvt.long_sql;
154: l_plans_query_str wms_plan_tasks_pvt.long_sql;
155: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
156:

Line 153: l_tasks_query wms_plan_tasks_pvt.long_sql;

149: /* wrapper procedure to fetch the inbound plans and tasks */
150: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
151:
152: l_plans_query wms_plan_tasks_pvt.long_sql;
153: l_tasks_query wms_plan_tasks_pvt.long_sql;
154: l_plans_query_str wms_plan_tasks_pvt.long_sql;
155: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
156:
157: l_query_plans BOOLEAN := FALSE;

Line 154: l_plans_query_str wms_plan_tasks_pvt.long_sql;

150: PROCEDURE query_inbound_plan_tasks(x_return_status OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
151:
152: l_plans_query wms_plan_tasks_pvt.long_sql;
153: l_tasks_query wms_plan_tasks_pvt.long_sql;
154: l_plans_query_str wms_plan_tasks_pvt.long_sql;
155: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
156:
157: l_query_plans BOOLEAN := FALSE;
158: l_query_tasks BOOLEAN := FALSE;

Line 155: l_tasks_query_str wms_plan_tasks_pvt.long_sql;

151:
152: l_plans_query wms_plan_tasks_pvt.long_sql;
153: l_tasks_query wms_plan_tasks_pvt.long_sql;
154: l_plans_query_str wms_plan_tasks_pvt.long_sql;
155: l_tasks_query_str wms_plan_tasks_pvt.long_sql;
156:
157: l_query_plans BOOLEAN := FALSE;
158: l_query_tasks BOOLEAN := FALSE;
159:

Line 165: x_plans_select_str wms_plan_tasks_pvt.short_sql;

161: l_query_count NUMBER;
162: l_wms_task_type NUMBER;
163: l_task_count NUMBER;
164:
165: x_plans_select_str wms_plan_tasks_pvt.short_sql;
166: x_plans_from_str wms_plan_tasks_pvt.short_sql;
167: x_plans_where_str wms_plan_tasks_pvt.short_sql;
168: l_insert_str wms_plan_tasks_pvt.short_sql;
169:

Line 166: x_plans_from_str wms_plan_tasks_pvt.short_sql;

162: l_wms_task_type NUMBER;
163: l_task_count NUMBER;
164:
165: x_plans_select_str wms_plan_tasks_pvt.short_sql;
166: x_plans_from_str wms_plan_tasks_pvt.short_sql;
167: x_plans_where_str wms_plan_tasks_pvt.short_sql;
168: l_insert_str wms_plan_tasks_pvt.short_sql;
169:
170: l_module_name VARCHAR2(30) := 'query_inbound';

Line 167: x_plans_where_str wms_plan_tasks_pvt.short_sql;

163: l_task_count NUMBER;
164:
165: x_plans_select_str wms_plan_tasks_pvt.short_sql;
166: x_plans_from_str wms_plan_tasks_pvt.short_sql;
167: x_plans_where_str wms_plan_tasks_pvt.short_sql;
168: l_insert_str wms_plan_tasks_pvt.short_sql;
169:
170: l_module_name VARCHAR2(30) := 'query_inbound';
171: l_planned_task VARCHAR2(80);

Line 168: l_insert_str wms_plan_tasks_pvt.short_sql;

164:
165: x_plans_select_str wms_plan_tasks_pvt.short_sql;
166: x_plans_from_str wms_plan_tasks_pvt.short_sql;
167: x_plans_where_str wms_plan_tasks_pvt.short_sql;
168: l_insert_str wms_plan_tasks_pvt.short_sql;
169:
170: l_module_name VARCHAR2(30) := 'query_inbound';
171: l_planned_task VARCHAR2(80);
172:

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

184: wms_op_operation_instances wooi,
185: (SELECT transaction_temp_id
186: FROM wms_waveplan_tasks_temp
187: WHERE status_id = 6
188: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt
189: WHERE wooi.source_task_id = wwtt.transaction_temp_id
190: UNION ALL
191: SELECT wooih.operation_sequence,wwtt.transaction_temp_id
192: FROM WMS_OP_OPERTN_INSTANCES_HIST wooih,

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

192: FROM WMS_OP_OPERTN_INSTANCES_HIST wooih,
193: (SELECT transaction_temp_id
194: FROM wms_waveplan_tasks_temp
195: WHERE status_id = 6
196: AND plans_tasks = wms_plan_tasks_pvt.g_plan_task_types(2)) wwtt
197: where wooih.source_task_id = wwtt.transaction_temp_id;
198:
199: TYPE wwtt_op_seq_rec IS RECORD
200: ( operation_sequence NUMBER,

Line 208: IF wms_plan_tasks_pvt.g_include_crossdock THEN

204:
205: BEGIN
206: IF l_debug = 1 THEN
207: debug('in query_inbound ', 'query_inbound');
208: IF wms_plan_tasks_pvt.g_include_crossdock THEN
209: debug('Querying Crossdock tasks', 'query_inbound');
210: ELSE
211: debug('NOT Querying Crossdock tasks', 'query_inbound');
212: END IF;

Line 218: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN

214:
215: x_return_status := fnd_api.g_ret_sts_success;
216:
217: /* set the planned_tasks record statuses if planned_tasks are queried*/
218: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN
219: IF l_debug = 1 THEN
220: debug('planned_tasks are queried ','query_inbound');
221: END IF;
222: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;

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

218: IF wms_plan_tasks_pvt.g_query_planned_tasks THEN
219: IF l_debug = 1 THEN
220: debug('planned_tasks are queried ','query_inbound');
221: END IF;
222: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
223: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
224: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
225: END IF;
226: /* If only planned task records are qeuried and independent tasks are not

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

219: IF l_debug = 1 THEN
220: debug('planned_tasks are queried ','query_inbound');
221: END IF;
222: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
223: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
224: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
225: END IF;
226: /* If only planned task records are qeuried and independent tasks are not
227: * queried, then set the values of global variables to related to independent

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

220: debug('planned_tasks are queried ','query_inbound');
221: END IF;
222: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := wms_plan_tasks_pvt.g_is_loaded_task;
223: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := wms_plan_tasks_pvt.g_is_pending_task;
224: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := wms_plan_tasks_pvt.g_is_completed_task;
225: END IF;
226: /* If only planned task records are qeuried and independent tasks are not
227: * queried, then set the values of global variables to related to independent
228: * tasks to false

Line 230: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN

226: /* If only planned task records are qeuried and independent tasks are not
227: * queried, then set the values of global variables to related to independent
228: * tasks to false
229: */
230: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
231: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;

Line 231: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

227: * queried, then set the values of global variables to related to independent
228: * tasks to false
229: */
230: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
231: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;
235:

Line 232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

228: * tasks to false
229: */
230: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
231: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;
235:
236: If wms_plan_tasks_pvt.g_is_pending_plan

Line 233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;

229: */
230: IF NOT wms_plan_tasks_pvt.g_query_independent_tasks THEN
231: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;
235:
236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan

Line 236: If wms_plan_tasks_pvt.g_is_pending_plan

232: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;
235:
236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan
238: or wms_plan_tasks_pvt.g_is_completed_plan
239: or wms_plan_tasks_pvt.g_is_aborted_plan
240: or wms_plan_tasks_pvt.g_is_cancelled_plan

Line 237: or wms_plan_tasks_pvt.g_is_inprogress_plan

233: wms_plan_tasks_pvt.g_is_completed_task := FALSE;
234: END IF;
235:
236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan
238: or wms_plan_tasks_pvt.g_is_completed_plan
239: or wms_plan_tasks_pvt.g_is_aborted_plan
240: or wms_plan_tasks_pvt.g_is_cancelled_plan
241: then

Line 238: or wms_plan_tasks_pvt.g_is_completed_plan

234: END IF;
235:
236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan
238: or wms_plan_tasks_pvt.g_is_completed_plan
239: or wms_plan_tasks_pvt.g_is_aborted_plan
240: or wms_plan_tasks_pvt.g_is_cancelled_plan
241: then
242: /* plans are queried */

Line 239: or wms_plan_tasks_pvt.g_is_aborted_plan

235:
236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan
238: or wms_plan_tasks_pvt.g_is_completed_plan
239: or wms_plan_tasks_pvt.g_is_aborted_plan
240: or wms_plan_tasks_pvt.g_is_cancelled_plan
241: then
242: /* plans are queried */
243: IF l_debug = 1 THEN

Line 240: or wms_plan_tasks_pvt.g_is_cancelled_plan

236: If wms_plan_tasks_pvt.g_is_pending_plan
237: or wms_plan_tasks_pvt.g_is_inprogress_plan
238: or wms_plan_tasks_pvt.g_is_completed_plan
239: or wms_plan_tasks_pvt.g_is_aborted_plan
240: or wms_plan_tasks_pvt.g_is_cancelled_plan
241: then
242: /* plans are queried */
243: IF l_debug = 1 THEN
244: debug('plans are queried ', 'query_inbound');

Line 247: if wms_plan_tasks_pvt.g_is_pending_plan then

243: IF l_debug = 1 THEN
244: debug('plans are queried ', 'query_inbound');
245: END IF;
246: l_query_plans := TRUE;
247: if wms_plan_tasks_pvt.g_is_pending_plan then
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;

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

244: debug('plans are queried ', 'query_inbound');
245: END IF;
246: l_query_plans := TRUE;
247: if wms_plan_tasks_pvt.g_is_pending_plan then
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;

Line 250: if wms_plan_tasks_pvt.g_is_inprogress_plan then

246: l_query_plans := TRUE;
247: if wms_plan_tasks_pvt.g_is_pending_plan then
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;

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

247: if wms_plan_tasks_pvt.g_is_pending_plan then
248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;
255:

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

248: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;
255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR

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

249: END IF;
250: if wms_plan_tasks_pvt.g_is_inprogress_plan then
251: wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending := TRUE;
252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;
255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR
257: wms_plan_tasks_pvt.g_is_cancelled_plan OR

Line 256: IF wms_plan_tasks_pvt.g_is_completed_plan OR

252: wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded := TRUE;
253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;
255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR
257: wms_plan_tasks_pvt.g_is_cancelled_plan OR
258: wms_plan_tasks_pvt.g_is_aborted_plan THEN
259: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
260: END IF;

Line 257: wms_plan_tasks_pvt.g_is_cancelled_plan OR

253: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
254: END IF;
255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR
257: wms_plan_tasks_pvt.g_is_cancelled_plan OR
258: wms_plan_tasks_pvt.g_is_aborted_plan THEN
259: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
260: END IF;
261:

Line 258: wms_plan_tasks_pvt.g_is_aborted_plan THEN

254: END IF;
255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR
257: wms_plan_tasks_pvt.g_is_cancelled_plan OR
258: wms_plan_tasks_pvt.g_is_aborted_plan THEN
259: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
260: END IF;
261:
262: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;

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

255:
256: IF wms_plan_tasks_pvt.g_is_completed_plan OR
257: wms_plan_tasks_pvt.g_is_cancelled_plan OR
258: wms_plan_tasks_pvt.g_is_aborted_plan THEN
259: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
260: END IF;
261:
262: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;
263: Else

Line 262: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;

258: wms_plan_tasks_pvt.g_is_aborted_plan THEN
259: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed := TRUE;
260: END IF;
261:
262: wms_plan_tasks_pvt.g_query_planned_tasks := TRUE;
263: Else
264: IF l_debug = 1 THEN
265: debug('plans are not queried ', 'query_inbound');
266: END IF;

Line 271: IF wms_plan_tasks_pvt.g_query_independent_tasks OR

267: l_query_plans := FALSE;
268: End if;
269:
270:
271: IF wms_plan_tasks_pvt.g_query_independent_tasks OR
272: wms_plan_tasks_pvt.g_query_planned_tasks THEN
273: IF l_debug = 1 THEN
274: debug('tasks are queried ', 'query_inbound');
275: END IF;

Line 272: wms_plan_tasks_pvt.g_query_planned_tasks THEN

268: End if;
269:
270:
271: IF wms_plan_tasks_pvt.g_query_independent_tasks OR
272: wms_plan_tasks_pvt.g_query_planned_tasks THEN
273: IF l_debug = 1 THEN
274: debug('tasks are queried ', 'query_inbound');
275: END IF;
276: l_query_tasks := TRUE;

Line 361: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

357: /* set the bind variables now */
358: IF l_debug = 1 THEN
359: debug('setting the bind_variables ','query_inbound');
360: END IF;
361: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
362: IF l_debug = 1 THEN
363: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
364: END IF;
365: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

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

359: debug('setting the bind_variables ','query_inbound');
360: END IF;
361: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
362: IF l_debug = 1 THEN
363: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
364: END IF;
365: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
366: END IF;
367:

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

361: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
362: IF l_debug = 1 THEN
363: debug('wms_plan_tasks_pvt.g_organization_id is not null ','query_inbound');
364: END IF;
365: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
366: END IF;
367:
368: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
369: IF l_debug = 1 THEN

Line 368: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

364: END IF;
365: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
366: END IF;
367:
368: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
369: IF l_debug = 1 THEN
370: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
371: END IF;
372: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

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

366: END IF;
367:
368: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
369: IF l_debug = 1 THEN
370: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
371: END IF;
372: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
373: END IF;
374:

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

368: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
369: IF l_debug = 1 THEN
370: debug('wms_plan_tasks_pvt.g_subinventory_code is not null ','query_inbound');
371: END IF;
372: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
373: END IF;
374:
375: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
376: IF l_debug = 1 THEN

Line 375: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

371: END IF;
372: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
373: END IF;
374:
375: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
376: IF l_debug = 1 THEN
377: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
378: END IF;
379: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

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

373: END IF;
374:
375: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
376: IF l_debug = 1 THEN
377: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
378: END IF;
379: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
380: END IF;
381:

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

375: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
376: IF l_debug = 1 THEN
377: debug('wms_plan_tasks_pvt.g_locator_id is not null ','query_inbound');
378: END IF;
379: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
380: END IF;
381:
382: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
383: IF l_debug = 1 THEN

Line 382: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

378: END IF;
379: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
380: END IF;
381:
382: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
383: IF l_debug = 1 THEN
384: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
385: END IF;
386: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

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

380: END IF;
381:
382: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
383: IF l_debug = 1 THEN
384: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
385: END IF;
386: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
387: END IF;
388:

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

382: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
383: IF l_debug = 1 THEN
384: debug('wms_plan_tasks_pvt.g_to_subinventory_code is not null ','query_inbound');
385: END IF;
386: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
387: END IF;
388:
389: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
390: IF l_debug = 1 THEN

Line 389: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

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

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

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

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

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

Line 396: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

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

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

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

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

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

Line 403: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

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

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

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

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

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

Line 410: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

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

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

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

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

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

Line 417: IF wms_plan_tasks_pvt.g_person_id IS NOT NULL THEN

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

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

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

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

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

Line 424: IF wms_plan_tasks_pvt.g_person_resource_id IS NOT NULL THEN

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

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

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

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

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

Line 431: IF wms_plan_tasks_pvt.g_equipment_type_id IS NOT NULL THEN

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

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

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

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

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

Line 438: IF wms_plan_tasks_pvt.g_machine_resource_id IS NOT NULL THEN

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

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

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

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

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

Line 445: IF wms_plan_tasks_pvt.g_machine_instance IS NOT NULL THEN

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

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

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

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

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

Line 452: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

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

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

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

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

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

Line 459: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

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

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

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

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

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

Line 466: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

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

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

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

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

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

Line 473: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

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

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

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

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

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

Line 480: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

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

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

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

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

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

Line 487: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

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

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

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

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

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

Line 494: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN

490: END IF;
491: dbms_sql.bind_variable(l_query_handle, 'to_requisition_header_id', wms_plan_tasks_pvt.g_to_requisition_header_id );
492: END IF;
493:
494: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
495: IF l_debug = 1 THEN
496: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
497: END IF;
498: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number

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

492: END IF;
493:
494: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
495: IF l_debug = 1 THEN
496: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
497: END IF;
498: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
499: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
500: END IF;

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

495: IF l_debug = 1 THEN
496: debug('wms_plan_tasks_pvt.g_from_shipment_number is not null ','query_inbound');
497: END IF;
498: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
499: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
500: END IF;
501:
502: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
503: IF l_debug = 1 THEN

Line 502: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

498: -- Bug #3746810. Modified the bin var g_from_shipment_number to from_shipment_number
499: dbms_sql.bind_variable(l_query_handle, 'from_shipment_number', wms_plan_tasks_pvt.g_from_shipment_number );
500: END IF;
501:
502: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
503: IF l_debug = 1 THEN
504: debug('wms_plan_tasks_pvt.g_to_shipment_number is not null ','query_inbound');
505: END IF;
506: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );

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

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

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

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

Line 509: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

505: END IF;
506: dbms_sql.bind_variable(l_query_handle, 'to_shipment_number', wms_plan_tasks_pvt.g_to_shipment_number );
507: END IF;
508:
509: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
510: IF l_debug = 1 THEN
511: debug('wms_plan_tasks_pvt.g_from_po_header_id is not null ' || wms_plan_tasks_pvt.g_from_po_header_id,'query_inbound');
512: END IF;
513: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );

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

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

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

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

Line 516: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

512: END IF;
513: dbms_sql.bind_variable(l_query_handle, 'from_po_header_id', wms_plan_tasks_pvt.g_from_po_header_id );
514: END IF;
515:
516: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
517: IF l_debug = 1 THEN
518: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
519: END IF;
520: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );

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

514: END IF;
515:
516: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
517: IF l_debug = 1 THEN
518: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
519: END IF;
520: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
521: END IF;
522:

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

516: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
517: IF l_debug = 1 THEN
518: debug('wms_plan_tasks_pvt.g_to_po_header_id is not null ' || wms_plan_tasks_pvt.g_to_po_header_id,'query_inbound');
519: END IF;
520: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
521: END IF;
522:
523: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
524: IF l_debug = 1 THEN

Line 523: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

519: END IF;
520: dbms_sql.bind_variable(l_query_handle, 'to_po_header_id', wms_plan_tasks_pvt.g_to_po_header_id );
521: END IF;
522:
523: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
524: IF l_debug = 1 THEN
525: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');
526: END IF;
527: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );

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

521: END IF;
522:
523: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
524: IF l_debug = 1 THEN
525: debug('wms_plan_tasks_pvt.g_from_rma_header_id is not null ','query_inbound');
526: END IF;
527: dbms_sql.bind_variable(l_query_handle, 'from_rma_header_id', wms_plan_tasks_pvt.g_from_rma_header_id );
528: END IF;
529:

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

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

Line 530: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

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

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

528: END IF;
529:
530: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
531: IF l_debug = 1 THEN
532: debug('wms_plan_tasks_pvt.g_to_rma_header_id is not null ','query_inbound');
533: END IF;
534: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );
535: END IF;
536:

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

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

Line 537: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

533: END IF;
534: dbms_sql.bind_variable(l_query_handle, 'to_rma_header_id', wms_plan_tasks_pvt.g_to_rma_header_id );
535: END IF;
536:
537: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
538: IF l_debug = 1 THEN
539: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
540: END IF;
541: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

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

535: END IF;
536:
537: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
538: IF l_debug = 1 THEN
539: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
540: END IF;
541: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
542: END IF;
543:

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

537: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
538: IF l_debug = 1 THEN
539: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
540: END IF;
541: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
542: END IF;
543:
544: IF wms_plan_tasks_pvt.g_include_crossdock THEN
545:

Line 544: IF wms_plan_tasks_pvt.g_include_crossdock THEN

540: END IF;
541: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
542: END IF;
543:
544: IF wms_plan_tasks_pvt.g_include_crossdock THEN
545:
546: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
547: l_is_range_so := FALSE;
548: else/*range so is TRUE if from or to is null or form<> to*/

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

542: END IF;
543:
544: IF wms_plan_tasks_pvt.g_include_crossdock THEN
545:
546: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
547: l_is_range_so := FALSE;
548: else/*range so is TRUE if from or to is null or form<> to*/
549: l_is_range_so := TRUE;
550: end if;

Line 551: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then

547: l_is_range_so := FALSE;
548: else/*range so is TRUE if from or to is null or form<> to*/
549: l_is_range_so := TRUE;
550: end if;
551: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then
552: select lpad(segment1,40), segment2,segment1
553: INTO l_from_tonum_mso_seg1,l_from_mso_seg2,l_from_mso_seg1
554: from mtl_sales_orders
555: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;

Line 555: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;

551: if wms_plan_tasks_pvt.g_from_sales_order_id is not null then
552: select lpad(segment1,40), segment2,segment1
553: INTO l_from_tonum_mso_seg1,l_from_mso_seg2,l_from_mso_seg1
554: from mtl_sales_orders
555: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;
556: end if;
557: IF(l_is_range_so) THEN
558: /* Its a range...Query for details of to sales order */
559: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then

Line 559: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then

555: WHERE sales_order_id = wms_plan_tasks_pvt.g_from_sales_order_id;
556: end if;
557: IF(l_is_range_so) THEN
558: /* Its a range...Query for details of to sales order */
559: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then
560: select lpad(segment1,40), segment2
561: INTO l_to_tonum_mso_seg1,l_to_mso_seg2
562: from mtl_sales_orders
563: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;

Line 563: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;

559: if wms_plan_tasks_pvt.g_to_sales_order_id is not null then
560: select lpad(segment1,40), segment2
561: INTO l_to_tonum_mso_seg1,l_to_mso_seg2
562: from mtl_sales_orders
563: WHERE sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id;
564: end if;/*added the above code to get the values since we are not going to join with mso 3455109*/
565: ELSE
566: l_to_tonum_mso_seg1 := l_from_tonum_mso_seg1;
567: l_to_mso_seg2 := l_from_mso_seg2;

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

567: l_to_mso_seg2 := l_from_mso_seg2;
568: END IF;
569:
570:
571: IF wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
572: THEN
573: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 8);
574: ELSIF NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders
575: THEN

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

570:
571: IF wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
572: THEN
573: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 8);
574: ELSIF NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders
575: THEN
576: DBMS_SQL.bind_variable (l_query_handle, 'source_type_id', 2);
577: END IF;
578:

Line 582: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

578:
579: /*added if else for 3455109 since we are changing the query also need to change binds if its for completed task*/
580: IF NOT g_is_completed_task THEN -- Non Completed tasks
581:
582: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
583: THEN
584: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
585: END IF;
586:

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

580: IF NOT g_is_completed_task THEN -- Non Completed tasks
581:
582: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
583: THEN
584: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
585: END IF;
586:
587: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
588: THEN

Line 587: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

583: THEN
584: DBMS_SQL.bind_variable (l_query_handle,'from_sales_order_id',wms_plan_tasks_pvt.g_from_sales_order_id);
585: END IF;
586:
587: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
588: THEN
589: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
590: END IF;
591: ELSE --completed tasks

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

585: END IF;
586:
587: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
588: THEN
589: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
590: END IF;
591: ELSE --completed tasks
592: IF(l_is_range_so) then
593: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN

Line 593: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN

589: DBMS_SQL.bind_variable (l_query_handle,'to_sales_order_id',wms_plan_tasks_pvt.g_to_sales_order_id);
590: END IF;
591: ELSE --completed tasks
592: IF(l_is_range_so) then
593: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL THEN
594: --3240261 dbms_sql.bind_variable(l_query_handle, 'from_sales_order_id', p_from_sales_order_id);
595: dbms_sql.bind_variable(l_query_handle,'l_from_tonum_mso_seg1',l_from_tonum_mso_seg1);--added for 3455109
596: dbms_sql.bind_variable(l_query_handle,'l_from_mso_seg2',l_from_mso_seg2);--3455109
597: END IF;

Line 599: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL THEN

595: dbms_sql.bind_variable(l_query_handle,'l_from_tonum_mso_seg1',l_from_tonum_mso_seg1);--added for 3455109
596: dbms_sql.bind_variable(l_query_handle,'l_from_mso_seg2',l_from_mso_seg2);--3455109
597: END IF;
598:
599: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL THEN
600: --3420261 dbms_sql.bind_variable(l_query_handle, 'to_sales_order_id', p_to_sales_order_id);
601: dbms_sql.bind_variable(l_query_handle,'l_to_tonum_mso_seg1',l_to_tonum_mso_seg1);
602: dbms_sql.bind_variable(l_query_handle,'l_to_mso_seg2',l_to_mso_seg2);
603: END IF;

Line 611: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

607: END IF;--end of range or not range so
608:
609: END IF;--end of copleted or not completed task 3455109
610:
611: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
612: THEN
613: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
614: END IF;
615:

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

609: END IF;--end of copleted or not completed task 3455109
610:
611: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
612: THEN
613: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
614: END IF;
615:
616: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
617: THEN

Line 616: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

612: THEN
613: DBMS_SQL.bind_variable (l_query_handle,'from_pick_slip_number',wms_plan_tasks_pvt.g_from_pick_slip_number);
614: END IF;
615:
616: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
617: THEN
618: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
619: END IF;
620:

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

614: END IF;
615:
616: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
617: THEN
618: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
619: END IF;
620:
621: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
622: THEN

Line 621: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

617: THEN
618: DBMS_SQL.bind_variable (l_query_handle,'to_pick_slip_number',wms_plan_tasks_pvt.g_to_pick_slip_number);
619: END IF;
620:
621: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
622: THEN
623: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
624: END IF;
625:

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

619: END IF;
620:
621: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
622: THEN
623: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
624: END IF;
625:
626: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
627: THEN

Line 626: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL

622: THEN
623: DBMS_SQL.bind_variable (l_query_handle,'customer_id',wms_plan_tasks_pvt.g_customer_id);
624: END IF;
625:
626: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
627: THEN
628: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
629: END IF;
630:

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

624: END IF;
625:
626: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
627: THEN
628: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
629: END IF;
630:
631: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
632: THEN

Line 631: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

627: THEN
628: DBMS_SQL.bind_variable (l_query_handle,'customer_category',wms_plan_tasks_pvt.g_customer_category);
629: END IF;
630:
631: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
632: THEN
633: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
634: END IF;
635:

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

629: END IF;
630:
631: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
632: THEN
633: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
634: END IF;
635:
636: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
637: THEN

Line 636: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

632: THEN
633: DBMS_SQL.bind_variable (l_query_handle, 'trip_id', wms_plan_tasks_pvt.g_trip_id);
634: END IF;
635:
636: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
637: THEN
638: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
639: END IF;
640:

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

634: END IF;
635:
636: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
637: THEN
638: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
639: END IF;
640:
641: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
642: THEN

Line 641: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL

637: THEN
638: DBMS_SQL.bind_variable (l_query_handle,'delivery_id',wms_plan_tasks_pvt.g_delivery_id);
639: END IF;
640:
641: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
642: THEN
643: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
644: END IF;
645:

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

639: END IF;
640:
641: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
642: THEN
643: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
644: END IF;
645:
646: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
647: THEN

Line 646: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL

642: THEN
643: DBMS_SQL.bind_variable (l_query_handle,'carrier_id',wms_plan_tasks_pvt.g_carrier_id);
644: END IF;
645:
646: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
647: THEN
648: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
649: END IF;
650:

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

644: END IF;
645:
646: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
647: THEN
648: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
649: END IF;
650:
651: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
652: THEN

Line 651: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL

647: THEN
648: DBMS_SQL.bind_variable (l_query_handle,'ship_method',wms_plan_tasks_pvt.g_ship_method);
649: END IF;
650:
651: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
652: THEN
653: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
654: END IF;
655:

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

649: END IF;
650:
651: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
652: THEN
653: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
654: END IF;
655:
656: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
657: THEN

Line 656: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL

652: THEN
653: DBMS_SQL.bind_variable (l_query_handle,'shipment_priority',wms_plan_tasks_pvt.g_shipment_priority);
654: END IF;
655:
656: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
657: THEN
658: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
659: END IF;
660:

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

654: END IF;
655:
656: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
657: THEN
658: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
659: END IF;
660:
661: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
662: THEN

Line 661: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL

657: THEN
658: DBMS_SQL.bind_variable (l_query_handle,'from_shipment_date',wms_plan_tasks_pvt.g_from_shipment_date);
659: END IF;
660:
661: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
662: THEN
663: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
664: END IF;
665: /*

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

659: END IF;
660:
661: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
662: THEN
663: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
664: END IF;
665: /*
666: 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
667: THEN

Line 666: 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

662: THEN
663: DBMS_SQL.bind_variable (l_query_handle,'to_shipment_date',wms_plan_tasks_pvt.g_to_shipment_date);
664: END IF;
665: /*
666: 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
667: THEN
668: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
669: END IF;
670: */

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

664: END IF;
665: /*
666: 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
667: THEN
668: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
669: END IF;
670: */
671:
672: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

Line 672: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

668: DBMS_SQL.bind_variable (l_query_handle,'p_time_till_shipment',wms_plan_tasks_pvt.g_time_till_shipment);
669: END IF;
670: */
671:
672: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
673: THEN
674: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
675: END IF;
676:

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

670: */
671:
672: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
673: THEN
674: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
675: END IF;
676:
677: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
678: THEN

Line 677: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

673: THEN
674: DBMS_SQL.bind_variable (l_query_handle,'ship_to_state',wms_plan_tasks_pvt.g_ship_to_state);
675: END IF;
676:
677: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
678: THEN
679: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
680: END IF;
681:

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

675: END IF;
676:
677: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
678: THEN
679: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
680: END IF;
681:
682: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
683: THEN

Line 682: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

678: THEN
679: DBMS_SQL.bind_variable (l_query_handle,'ship_to_country',wms_plan_tasks_pvt.g_ship_to_country);
680: END IF;
681:
682: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
683: THEN
684: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
685: END IF;
686:

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

680: END IF;
681:
682: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
683: THEN
684: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
685: END IF;
686:
687: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
688: THEN

Line 687: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

683: THEN
684: DBMS_SQL.bind_variable (l_query_handle,'ship_to_postal_code',wms_plan_tasks_pvt.g_ship_to_postal_code);
685: END IF;
686:
687: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
688: THEN
689: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
690: END IF;
691:

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

685: END IF;
686:
687: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
688: THEN
689: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
690: END IF;
691:
692: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
693: THEN

Line 692: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

688: THEN
689: DBMS_SQL.bind_variable (l_query_handle,'from_number_of_order_lines',wms_plan_tasks_pvt.g_from_number_of_order_lines);
690: END IF;
691:
692: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
693: THEN
694: DBMS_SQL.bind_variable (l_query_handle,'to_number_of_order_lines',wms_plan_tasks_pvt.g_to_number_of_order_lines);
695: END IF;
696:

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

690: END IF;
691:
692: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
693: THEN
694: DBMS_SQL.bind_variable (l_query_handle,'to_number_of_order_lines',wms_plan_tasks_pvt.g_to_number_of_order_lines);
695: END IF;
696:
697: END IF;
698:

Line 734: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

730: END IF;
731: IF l_debug = 1 THEN
732: debug('l_query_count ' || l_query_count,'query_inbound');
733: END IF;
734: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
735: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
736: END IF;
737:
738: /* Now the tasks records are inserted into the table wwtt . Next insert

Line 735: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;

731: IF l_debug = 1 THEN
732: debug('l_query_count ' || l_query_count,'query_inbound');
733: END IF;
734: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
735: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
736: END IF;
737:
738: /* Now the tasks records are inserted into the table wwtt . Next insert
739: the plan records if l_plans_query_str is not null */

Line 749: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

745: l_query_handle := DBMS_SQL.open_cursor;
746: DBMS_SQL.parse(l_query_handle, l_plans_query, DBMS_SQL.native);
747:
748: /* Set the bind variables now */
749: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
750: IF l_debug = 1 THEN
751: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
752: END IF;
753: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);

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

747:
748: /* Set the bind variables now */
749: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
750: IF l_debug = 1 THEN
751: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
752: END IF;
753: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
754: END IF;
755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

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

749: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
750: IF l_debug = 1 THEN
751: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
752: END IF;
753: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
754: END IF;
755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
756: IF l_debug = 1 THEN
757: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');

Line 755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

751: debug('wms_plan_tasks_pvt.g_organization_id IS NOT NULL ','query_inbound');
752: END IF;
753: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
754: END IF;
755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
756: IF l_debug = 1 THEN
757: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
758: END IF;
759: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);

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

753: dbms_sql.bind_variable(l_query_handle, 'org_id', wms_plan_tasks_pvt.g_organization_id);
754: END IF;
755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
756: IF l_debug = 1 THEN
757: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
758: END IF;
759: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
760: END IF;
761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

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

755: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
756: IF l_debug = 1 THEN
757: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
758: END IF;
759: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
760: END IF;
761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
762: IF l_debug = 1 THEN
763: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');

Line 761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

757: debug('wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL ','query_inbound');
758: END IF;
759: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
760: END IF;
761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
762: IF l_debug = 1 THEN
763: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
764: END IF;
765: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);

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

759: dbms_sql.bind_variable(l_query_handle, 'sub_code', wms_plan_tasks_pvt.g_subinventory_code);
760: END IF;
761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
762: IF l_debug = 1 THEN
763: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
764: END IF;
765: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
766: END IF;
767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

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

761: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
762: IF l_debug = 1 THEN
763: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
764: END IF;
765: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
766: END IF;
767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
768: IF l_debug = 1 THEN
769: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');

Line 767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

763: debug('wms_plan_tasks_pvt.g_locator_id IS NOT NULL ','query_inbound');
764: END IF;
765: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
766: END IF;
767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
768: IF l_debug = 1 THEN
769: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
770: END IF;
771: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );

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

765: dbms_sql.bind_variable(l_query_handle, 'loc_id', wms_plan_tasks_pvt.g_locator_id);
766: END IF;
767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
768: IF l_debug = 1 THEN
769: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
770: END IF;
771: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
772: END IF;
773: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

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

767: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
768: IF l_debug = 1 THEN
769: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
770: END IF;
771: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
772: END IF;
773: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');

Line 773: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

769: debug('wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL ','query_inbound');
770: END IF;
771: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
772: END IF;
773: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );

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

771: dbms_sql.bind_variable(l_query_handle, 'to_sub_code', wms_plan_tasks_pvt.g_to_subinventory_code );
772: END IF;
773: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
774: IF l_debug = 1 THEN
775: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
778: END IF;
779: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

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

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

Line 779: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

775: debug('wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL ','query_inbound');
776: END IF;
777: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
778: END IF;
779: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );

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

777: dbms_sql.bind_variable(l_query_handle, 'to_loc_id', wms_plan_tasks_pvt.g_to_locator_id );
778: END IF;
779: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
780: IF l_debug = 1 THEN
781: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
784: END IF;
785: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

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

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

Line 785: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

781: debug('wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL ','query_inbound');
782: END IF;
783: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
784: END IF;
785: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );

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

783: dbms_sql.bind_variable(l_query_handle, 'item_id', wms_plan_tasks_pvt.g_inventory_item_id );
784: END IF;
785: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
786: IF l_debug = 1 THEN
787: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
790: END IF;
791: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

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

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

Line 791: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

787: debug('wms_plan_tasks_pvt.g_category_set_id IS NOT NULL ','query_inbound');
788: END IF;
789: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
790: END IF;
791: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );

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

789: dbms_sql.bind_variable(l_query_handle, 'category_set_id', wms_plan_tasks_pvt.g_category_set_id );
790: END IF;
791: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
792: IF l_debug = 1 THEN
793: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
796: END IF;
797: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

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

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

Line 797: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

793: debug('wms_plan_tasks_pvt.g_item_category_id IS NOT NULL ','query_inbound');
794: END IF;
795: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
796: END IF;
797: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );

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

795: dbms_sql.bind_variable(l_query_handle, 'item_category_id', wms_plan_tasks_pvt.g_item_category_id );
796: END IF;
797: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
798: IF l_debug = 1 THEN
799: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

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

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

Line 803: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

799: debug('wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL ','query_inbound');
800: END IF;
801: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );

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

801: dbms_sql.bind_variable(l_query_handle, 'user_task_type_id', wms_plan_tasks_pvt.g_user_task_type_id );
802: END IF;
803: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
804: IF l_debug = 1 THEN
805: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
808: END IF;
809: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

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

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

Line 809: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

805: debug('wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL ','query_inbound');
806: END IF;
807: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
808: END IF;
809: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );

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

807: dbms_sql.bind_variable(l_query_handle, 'from_task_quantity', wms_plan_tasks_pvt.g_from_task_quantity );
808: END IF;
809: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
810: IF l_debug = 1 THEN
811: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
814: END IF;
815: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

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

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

Line 815: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

811: debug('wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL ','query_inbound');
812: END IF;
813: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
814: END IF;
815: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );

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

813: dbms_sql.bind_variable(l_query_handle, 'to_task_quantity', wms_plan_tasks_pvt.g_to_task_quantity );
814: END IF;
815: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
816: IF l_debug = 1 THEN
817: debug('wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL ','query_inbound');
818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );
820: END IF;
821:

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

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

Line 822: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN

818: END IF;
819: dbms_sql.bind_variable(l_query_handle, 'from_task_priority', wms_plan_tasks_pvt.g_from_task_priority );
820: END IF;
821:
822: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
823: IF l_debug = 1 THEN
824: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
825: END IF;
826: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );

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

820: END IF;
821:
822: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
823: IF l_debug = 1 THEN
824: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
825: END IF;
826: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
827: END IF;
828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

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

822: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
823: IF l_debug = 1 THEN
824: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
825: END IF;
826: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
827: END IF;
828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
829: IF l_debug = 1 THEN
830: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');

Line 828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

824: debug('wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL ','query_inbound');
825: END IF;
826: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
827: END IF;
828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
829: IF l_debug = 1 THEN
830: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
831: END IF;
832: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );

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

826: dbms_sql.bind_variable(l_query_handle, 'to_task_priority', wms_plan_tasks_pvt.g_to_task_priority );
827: END IF;
828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
829: IF l_debug = 1 THEN
830: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
831: END IF;
832: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
833: END IF;
834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

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

828: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
829: IF l_debug = 1 THEN
830: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
831: END IF;
832: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
833: END IF;
834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
835: IF l_debug = 1 THEN
836: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');

Line 834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

830: debug('wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL ','query_inbound');
831: END IF;
832: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
833: END IF;
834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
835: IF l_debug = 1 THEN
836: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
837: END IF;
838: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );

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

832: dbms_sql.bind_variable(l_query_handle, 'from_creation_date', wms_plan_tasks_pvt.g_from_creation_date );
833: END IF;
834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
835: IF l_debug = 1 THEN
836: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
837: END IF;
838: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
839: END IF;
840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN

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

834: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
835: IF l_debug = 1 THEN
836: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
837: END IF;
838: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
839: END IF;
840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
841: IF l_debug = 1 THEN
842: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');

Line 840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN

836: debug('wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL ','query_inbound');
837: END IF;
838: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
839: END IF;
840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
841: IF l_debug = 1 THEN
842: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
843: END IF;
844: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );

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

838: dbms_sql.bind_variable(l_query_handle, 'to_creation_date', wms_plan_tasks_pvt.g_to_creation_date );
839: END IF;
840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
841: IF l_debug = 1 THEN
842: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
843: END IF;
844: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
845: END IF;
846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

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

840: IF wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL THEN
841: IF l_debug = 1 THEN
842: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
843: END IF;
844: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
845: END IF;
846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');

Line 846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN

842: debug('wms_plan_tasks_pvt.g_plan_type_id IS NOT NULL ','query_inbound');
843: END IF;
844: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
845: END IF;
846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );

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

844: dbms_sql.bind_variable(l_query_handle, 'plan_type_id', wms_plan_tasks_pvt.g_plan_type_id );
845: END IF;
846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
851: END IF;
852: /* end setting the bind variables */

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

846: IF wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL THEN
847: IF l_debug = 1 THEN
848: debug('wms_plan_tasks_pvt.g_op_plan_id IS NOT NULL ','query_inbound');
849: END IF;
850: dbms_sql.bind_variable(l_query_handle, 'op_plan_id', wms_plan_tasks_pvt.g_op_plan_id );
851: END IF;
852: /* end setting the bind variables */
853: IF l_debug = 1 THEN
854: debug('end setting the bind variables for plans query','query_inbound');

Line 860: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

856: l_query_count := DBMS_SQL.EXECUTE(l_query_handle);
857: IF l_debug = 1 THEN
858: debug('l_query_count after executing the plans query ' || l_query_count ,'query_inbound');
859: END IF;
860: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
861: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
862: END IF;
863:
864: set_inbound_source_header_line;

Line 861: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;

857: IF l_debug = 1 THEN
858: debug('l_query_count after executing the plans query ' || l_query_count ,'query_inbound');
859: END IF;
860: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
861: wms_plan_tasks_pvt.g_plans_tasks_record_count + l_query_count;
862: END IF;
863:
864: set_inbound_source_header_line;
865: /* delete the drop-pending record from the temp table, when both independent and planned

Line 868: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND

864: set_inbound_source_header_line;
865: /* delete the drop-pending record from the temp table, when both independent and planned
866: * task records are queried
867: */
868: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
869: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
870: THEN
871: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
872: DELETE FROM wms_waveplan_tasks_temp wwtt

Line 869: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded

865: /* delete the drop-pending record from the temp table, when both independent and planned
866: * task records are queried
867: */
868: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
869: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
870: THEN
871: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
872: DELETE FROM wms_waveplan_tasks_temp wwtt
873: WHERE EXISTS (

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

867: */
868: --IF wms_plan_tasks_pvt.g_query_independent_tasks AND
869: IF wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded
870: THEN
871: l_planned_task := wms_plan_tasks_pvt.g_plan_task_types(2);
872: DELETE FROM wms_waveplan_tasks_temp wwtt
873: WHERE EXISTS (
874: SELECT 1
875: FROM wms_op_operation_instances wooi

Line 885: wms_plan_tasks_pvt.g_plans_tasks_record_count :=

881: AND wwtt.status_id = 4;
882: IF l_debug = 1 THEN
883: DEBUG('rows deleted '|| SQL%ROWCOUNT);
884: END IF;
885: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
886: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;
887: END IF;
888:
889: EXCEPTION

Line 886: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;

882: IF l_debug = 1 THEN
883: DEBUG('rows deleted '|| SQL%ROWCOUNT);
884: END IF;
885: wms_plan_tasks_pvt.g_plans_tasks_record_count :=
886: wms_plan_tasks_pvt.g_plans_tasks_record_count - SQL%ROWCOUNT;
887: END IF;
888:
889: EXCEPTION
890: WHEN fnd_api.g_exc_error THEN

Line 937: IF wms_plan_tasks_pvt.g_is_pending_plan OR

933: ' and operation_plan_id is not null ' ||
934: ' and parent_line_id is not null) wwtt ';
935: /**** Get the non-completed plans query first ****/
936:
937: IF wms_plan_tasks_pvt.g_is_pending_plan OR
938: wms_plan_tasks_pvt.g_is_inprogress_plan THEN
939:
940: IF l_debug = 1 THEN
941: debug('pending or inprogress plans are queried ','get_plans');

Line 938: wms_plan_tasks_pvt.g_is_inprogress_plan THEN

934: ' and parent_line_id is not null) wwtt ';
935: /**** Get the non-completed plans query first ****/
936:
937: IF wms_plan_tasks_pvt.g_is_pending_plan OR
938: wms_plan_tasks_pvt.g_is_inprogress_plan THEN
939:
940: IF l_debug = 1 THEN
941: debug('pending or inprogress plans are queried ','get_plans');
942: END IF;

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

940: IF l_debug = 1 THEN
941: debug('pending or inprogress plans are queried ','get_plans');
942: END IF;
943: l_plans_select_str := 'SELECT ''+'',' ||
944: '''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''', ' ||
945: 'mmtt.transaction_temp_id, '||
946: 'mmtt.parent_line_id, ' ||
947: 'mmtt.inventory_item_id, ' ||
948: 'msiv.concatenated_segments, ' ||

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

958: 'decode(milv.segment19, null, milv.concatenated_segments, null), ' ||
959: 'wopi.status, ' ||
960: 'wopi.status, ' ||
961: 'decode(wopi.status,' ||
962: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
963: || ''', 2, '''
964: || wms_plan_tasks_pvt.g_plan_status_codes(2)
965: || ''', 3, '''
966: || wms_plan_tasks_pvt.g_plan_status_codes(3)

Line 964: || wms_plan_tasks_pvt.g_plan_status_codes(2)

960: 'wopi.status, ' ||
961: 'decode(wopi.status,' ||
962: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
963: || ''', 2, '''
964: || wms_plan_tasks_pvt.g_plan_status_codes(2)
965: || ''', 3, '''
966: || wms_plan_tasks_pvt.g_plan_status_codes(3)
967: || ''', 4, '''
968: || wms_plan_tasks_pvt.g_plan_status_codes(4)

Line 966: || wms_plan_tasks_pvt.g_plan_status_codes(3)

962: '1, ''' || wms_plan_tasks_pvt.g_plan_status_codes(1)
963: || ''', 2, '''
964: || wms_plan_tasks_pvt.g_plan_status_codes(2)
965: || ''', 3, '''
966: || wms_plan_tasks_pvt.g_plan_status_codes(3)
967: || ''', 4, '''
968: || wms_plan_tasks_pvt.g_plan_status_codes(4)
969: || ''', 5, '''
970: || wms_plan_tasks_pvt.g_plan_status_codes(5)

Line 968: || wms_plan_tasks_pvt.g_plan_status_codes(4)

964: || wms_plan_tasks_pvt.g_plan_status_codes(2)
965: || ''', 3, '''
966: || wms_plan_tasks_pvt.g_plan_status_codes(3)
967: || ''', 4, '''
968: || wms_plan_tasks_pvt.g_plan_status_codes(4)
969: || ''', 5, '''
970: || wms_plan_tasks_pvt.g_plan_status_codes(5)
971: || ''', 6, '''
972: || wms_plan_tasks_pvt.g_plan_status_codes(6)

Line 970: || wms_plan_tasks_pvt.g_plan_status_codes(5)

966: || wms_plan_tasks_pvt.g_plan_status_codes(3)
967: || ''', 4, '''
968: || wms_plan_tasks_pvt.g_plan_status_codes(4)
969: || ''', 5, '''
970: || wms_plan_tasks_pvt.g_plan_status_codes(5)
971: || ''', 6, '''
972: || wms_plan_tasks_pvt.g_plan_status_codes(6)
973: || ''', 7, '''
974: || wms_plan_tasks_pvt.g_plan_status_codes(7)

Line 972: || wms_plan_tasks_pvt.g_plan_status_codes(6)

968: || wms_plan_tasks_pvt.g_plan_status_codes(4)
969: || ''', 5, '''
970: || wms_plan_tasks_pvt.g_plan_status_codes(5)
971: || ''', 6, '''
972: || wms_plan_tasks_pvt.g_plan_status_codes(6)
973: || ''', 7, '''
974: || wms_plan_tasks_pvt.g_plan_status_codes(7)
975: || '''), ' ||
976: 'mmtt.transaction_type_id, ' ||

Line 974: || wms_plan_tasks_pvt.g_plan_status_codes(7)

970: || wms_plan_tasks_pvt.g_plan_status_codes(5)
971: || ''', 6, '''
972: || wms_plan_tasks_pvt.g_plan_status_codes(6)
973: || ''', 7, '''
974: || wms_plan_tasks_pvt.g_plan_status_codes(7)
975: || '''), ' ||
976: 'mmtt.transaction_type_id, ' ||
977: 'mmtt.transaction_action_id, ' ||
978: 'mmtt.transaction_source_type_id, ';

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

976: 'mmtt.transaction_type_id, ' ||
977: 'mmtt.transaction_action_id, ' ||
978: 'mmtt.transaction_source_type_id, ';
979:
980: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
981: l_plans_select_str := l_plans_select_str
982: || 'mtst.transaction_source_type_name, '; --transaction_source_type
983: END IF;
984:

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

986: 'mmtt.transaction_source_id, ' ||
987: 'mmtt.trx_source_line_id, ' ||
988: 'mmtt.transfer_organization, ';
989:
990: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
991: l_plans_select_str := l_plans_select_str || 'mp1.organization_code, ';
992: END IF;
993:
994: l_plans_select_str:=l_plans_select_str ||

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

994: l_plans_select_str:=l_plans_select_str ||
995: 'mmtt.transfer_subinventory, ' ||
996: 'mmtt.transfer_to_location, ';
997:
998: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
999: l_plans_select_str := l_plans_select_str ||
1000: 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
1001: END IF;
1002:

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

1003: l_plans_select_str := l_plans_select_str ||
1004: 'mmtt.transaction_uom, ' ||
1005: 'mmtt.transaction_quantity, '||
1006: 'mmtt.standard_operation_id, ';
1007: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
1008: l_plans_select_str := l_plans_select_str || ' NULL, ';
1009: END IF;
1010: l_plans_select_str := l_plans_select_str ||
1011: 'mmtt.move_order_line_id, ' || /*move_order_line_id */

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

1011: 'mmtt.move_order_line_id, ' || /*move_order_line_id */
1012: 'mmtt.pick_slip_number, ' || /*pick_slip_number*/
1013: 'mmtt.cartonization_id, '; /*cartonization_id */
1014:
1015: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1016: l_plans_select_str := l_plans_select_str
1017: || 'wlpn2.license_plate_number, '; --cartonization_lpn
1018: END IF;
1019:

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

1019:
1020: l_plans_select_str := l_plans_select_str ||
1021: 'mmtt.allocated_lpn_id, '; /*allocated_lpn_id*/
1022:
1023: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
1024: l_plans_select_str := l_plans_select_str
1025: || 'wlpn1.license_plate_number, '; --allocated_lpn
1026: END IF;
1027:

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

1027:
1028: l_plans_select_str := l_plans_select_str ||
1029: 'mmtt.container_item_id, '; --container_item_id
1030:
1031: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1032: l_plans_select_str := l_plans_select_str
1033: || 'msiv1.concatenated_segments, '; --container_item
1034: END IF;
1035:

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

1035:
1036: l_plans_select_str := l_plans_select_str ||
1037: 'mmtt.lpn_id, '; --from_lpn_id
1038:
1039: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1040: l_plans_select_str := l_plans_select_str ||
1041: 'wlpn5.license_plate_number, '; --from_lpn
1042: END IF;
1043:

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

1043:
1044: l_plans_select_str := l_plans_select_str ||
1045: 'mmtt.content_lpn_id, '; --content_lpn_id
1046:
1047: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1048: l_plans_select_str := l_plans_select_str
1049: || 'wlpn3.license_plate_number, '; --content_lpn
1050: END IF;
1051:

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

1050: END IF;
1051:
1052: l_plans_select_str := l_plans_select_str ||'mmtt.transfer_lpn_id, ';
1053:
1054: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1055: l_plans_select_str := l_plans_select_str || 'wlpn4.license_plate_number, ';
1056: END IF;
1057: l_plans_select_str := l_plans_select_str ||
1058: 'mmtt.last_update_date, ' || /*mmtt_last_update_date*/

Line 1065: || wms_plan_tasks_pvt.g_task_types(1)

1061: 'mmtt.task_priority, ' || /*priority_original */
1062: 'mmtt.wms_task_type, ' || /*task_type_id */
1063: 'decode(mmtt.wms_task_type,'
1064: || '1, '''
1065: || wms_plan_tasks_pvt.g_task_types(1)
1066: || ''', 2, '''
1067: || wms_plan_tasks_pvt.g_task_types(2)
1068: || ''', 3, '''
1069: || wms_plan_tasks_pvt.g_task_types(3)

Line 1067: || wms_plan_tasks_pvt.g_task_types(2)

1063: 'decode(mmtt.wms_task_type,'
1064: || '1, '''
1065: || wms_plan_tasks_pvt.g_task_types(1)
1066: || ''', 2, '''
1067: || wms_plan_tasks_pvt.g_task_types(2)
1068: || ''', 3, '''
1069: || wms_plan_tasks_pvt.g_task_types(3)
1070: || ''', 4, '''
1071: || wms_plan_tasks_pvt.g_task_types(4)

Line 1069: || wms_plan_tasks_pvt.g_task_types(3)

1065: || wms_plan_tasks_pvt.g_task_types(1)
1066: || ''', 2, '''
1067: || wms_plan_tasks_pvt.g_task_types(2)
1068: || ''', 3, '''
1069: || wms_plan_tasks_pvt.g_task_types(3)
1070: || ''', 4, '''
1071: || wms_plan_tasks_pvt.g_task_types(4)
1072: || ''', 5, '''
1073: || wms_plan_tasks_pvt.g_task_types(5)

Line 1071: || wms_plan_tasks_pvt.g_task_types(4)

1067: || wms_plan_tasks_pvt.g_task_types(2)
1068: || ''', 3, '''
1069: || wms_plan_tasks_pvt.g_task_types(3)
1070: || ''', 4, '''
1071: || wms_plan_tasks_pvt.g_task_types(4)
1072: || ''', 5, '''
1073: || wms_plan_tasks_pvt.g_task_types(5)
1074: || ''', 6, '''
1075: || wms_plan_tasks_pvt.g_task_types(6)

Line 1073: || wms_plan_tasks_pvt.g_task_types(5)

1069: || wms_plan_tasks_pvt.g_task_types(3)
1070: || ''', 4, '''
1071: || wms_plan_tasks_pvt.g_task_types(4)
1072: || ''', 5, '''
1073: || wms_plan_tasks_pvt.g_task_types(5)
1074: || ''', 6, '''
1075: || wms_plan_tasks_pvt.g_task_types(6)
1076: || ''', 7, '''
1077: || wms_plan_tasks_pvt.g_task_types(7)

Line 1075: || wms_plan_tasks_pvt.g_task_types(6)

1071: || wms_plan_tasks_pvt.g_task_types(4)
1072: || ''', 5, '''
1073: || wms_plan_tasks_pvt.g_task_types(5)
1074: || ''', 6, '''
1075: || wms_plan_tasks_pvt.g_task_types(6)
1076: || ''', 7, '''
1077: || wms_plan_tasks_pvt.g_task_types(7)
1078: || ''', 8, '''
1079: || wms_plan_tasks_pvt.g_task_types(8)

Line 1077: || wms_plan_tasks_pvt.g_task_types(7)

1073: || wms_plan_tasks_pvt.g_task_types(5)
1074: || ''', 6, '''
1075: || wms_plan_tasks_pvt.g_task_types(6)
1076: || ''', 7, '''
1077: || wms_plan_tasks_pvt.g_task_types(7)
1078: || ''', 8, '''
1079: || wms_plan_tasks_pvt.g_task_types(8)
1080: || '''), ' ||
1081: 'mmtt.creation_date, ' || /*creation_time */

Line 1079: || wms_plan_tasks_pvt.g_task_types(8)

1075: || wms_plan_tasks_pvt.g_task_types(6)
1076: || ''', 7, '''
1077: || wms_plan_tasks_pvt.g_task_types(7)
1078: || ''', 8, '''
1079: || wms_plan_tasks_pvt.g_task_types(8)
1080: || '''), ' ||
1081: 'mmtt.creation_date, ' || /*creation_time */
1082: 'mmtt.operation_plan_id, '; /*operation_plan_id*/
1083: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

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

1079: || wms_plan_tasks_pvt.g_task_types(8)
1080: || '''), ' ||
1081: 'mmtt.creation_date, ' || /*creation_time */
1082: 'mmtt.operation_plan_id, '; /*operation_plan_id*/
1083: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
1084: l_plans_select_str := l_plans_select_str ||
1085: 'wop.operation_plan_name, '; /*operation_plan*/
1086: END IF;
1087:

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

1084: l_plans_select_str := l_plans_select_str ||
1085: 'wop.operation_plan_name, '; /*operation_plan*/
1086: END IF;
1087:
1088: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
1089: l_plans_select_str := l_plans_select_str || 'to_number(null), '; --operation_sequence
1090: END IF;
1091:
1092: l_plans_select_str := l_plans_select_str ||

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

1098: 'null, ' || /*person*/
1099: 'to_date(null), ' || /*effective_start_date*/
1100: 'to_date(null), ' || /*effective_end_date*/
1101: 'to_number(null), '; /*person_resource_id*/
1102: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
1103: l_plans_select_str := l_plans_select_str ||
1104: 'null, ';/*person_resource_code*/
1105: END IF;
1106: l_plans_select_str := l_plans_select_str ||

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

1104: 'null, ';/*person_resource_code*/
1105: END IF;
1106: l_plans_select_str := l_plans_select_str ||
1107: 'to_number(null), '; /*machine_resource_id*/
1108: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
1109: l_plans_select_str := l_plans_select_str ||
1110: 'null, '; /*machine_resource_code*/
1111: END IF;
1112: l_plans_select_str := l_plans_select_str ||

Line 1125: IF wms_plan_tasks_pvt.g_include_inbound THEN

1121: 'mmtt.secondary_transaction_quantity ';
1122:
1123:
1124: /* If inbound specific query is made, select more fields */
1125: IF wms_plan_tasks_pvt.g_include_inbound THEN
1126: l_plans_select_str := l_plans_select_str
1127: || ', wwtt.reference_id '
1128: || ', wwtt.reference ';
1129: END IF;

Line 1131: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

1127: || ', wwtt.reference_id '
1128: || ', wwtt.reference ';
1129: END IF;
1130:
1131: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
1132: l_plans_select_str := l_plans_select_str
1133: || ', wwtt.source_header '
1134: || ', wwtt.line_number ';
1135: END IF;

Line 1147: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

1143: || ', mtl_item_locations_kfv milv '
1144: || ', wms_op_plan_instances wopi '
1145: || ', wms_op_plans_vl wop ';
1146:
1147: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
1148: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1149: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1150: END IF;
1151:

Line 1148: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

1144: || ', wms_op_plan_instances wopi '
1145: || ', wms_op_plans_vl wop ';
1146:
1147: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
1148: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1149: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1150: END IF;
1151:
1152: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

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

1148: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1149: l_plans_from_str := l_plans_from_str || ', mtl_item_categories mic ';
1150: END IF;
1151:
1152: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1153: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn1 ';
1154: END IF;
1155:
1156: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN

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

1152: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1153: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn1 ';
1154: END IF;
1155:
1156: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1157: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn2 ';
1158: END IF;
1159:
1160: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN

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

1156: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
1157: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn2 ';
1158: END IF;
1159:
1160: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1161: l_plans_from_str := l_plans_from_str || ', mtl_system_items_kfv msiv1 ';
1162: END IF;
1163:
1164: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN

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

1160: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
1161: l_plans_from_str := l_plans_from_str || ', mtl_system_items_kfv msiv1 ';
1162: END IF;
1163:
1164: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1165: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn5 ';
1166: END IF;
1167:
1168: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

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

1164: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1165: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn5 ';
1166: END IF;
1167:
1168: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1169: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn3 ';
1170: END IF;
1171:
1172: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

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

1168: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1169: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn3 ';
1170: END IF;
1171:
1172: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1173: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn4 ';
1174: END IF;
1175:
1176: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN

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

1172: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1173: l_plans_from_str := l_plans_from_str || ', wms_license_plate_numbers wlpn4 ';
1174: END IF;
1175:
1176: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1177: l_plans_from_str := l_plans_from_str || ', mtl_parameters mp1 ';
1178: END IF;
1179: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1180: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';

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

1175:
1176: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1177: l_plans_from_str := l_plans_from_str || ', mtl_parameters mp1 ';
1178: END IF;
1179: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1180: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';
1181: END IF;
1182:
1183: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

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

1179: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1180: l_plans_from_str := l_plans_from_str || ', mtl_item_locations_kfv milv1 ';
1181: END IF;
1182:
1183: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1184: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1185: END IF;
1186:
1187: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

Line 1187: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1183: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1184: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1185: END IF;
1186:
1187: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1188: wms_plan_tasks_pvt.g_include_inbound THEN
1189: l_plans_from_str := l_plans_from_str || ', ' || l_inline_query;
1190: END IF;
1191:

Line 1188: wms_plan_tasks_pvt.g_include_inbound THEN

1184: l_plans_from_str := l_plans_from_str || ', mtl_txn_source_types mtst ';
1185: END IF;
1186:
1187: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1188: wms_plan_tasks_pvt.g_include_inbound THEN
1189: l_plans_from_str := l_plans_from_str || ', ' || l_inline_query;
1190: END IF;
1191:
1192: IF l_debug = 1 THEN

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

1203: || 'AND mmtt.transaction_temp_id = wopi.source_task_id '
1204: || 'and mmtt.parent_line_id is null '
1205: || 'and mmtt.operation_plan_id is not null ';
1206:
1207: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
1208: l_plans_where_str := l_plans_where_str
1209: || 'AND mmtt.transfer_subinventory = milv1.subinventory_code(+) '
1210: || 'AND mmtt.transfer_to_location = milv1.inventory_location_id(+) ';
1211: end if;

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

1208: l_plans_where_str := l_plans_where_str
1209: || 'AND mmtt.transfer_subinventory = milv1.subinventory_code(+) '
1210: || 'AND mmtt.transfer_to_location = milv1.inventory_location_id(+) ';
1211: end if;
1212: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1213: l_plans_where_str := l_plans_where_str
1214: || 'AND mmtt.transaction_source_type_id = mtst.transaction_source_type_id ';
1215: end if;
1216: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then

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

1212: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
1213: l_plans_where_str := l_plans_where_str
1214: || 'AND mmtt.transaction_source_type_id = mtst.transaction_source_type_id ';
1215: end if;
1216: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1217: l_plans_where_str := l_plans_where_str
1218: || 'AND mmtt.allocated_lpn_id = wlpn1.lpn_id(+) ';
1219: end if;
1220: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then

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

1216: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' then
1217: l_plans_where_str := l_plans_where_str
1218: || 'AND mmtt.allocated_lpn_id = wlpn1.lpn_id(+) ';
1219: end if;
1220: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then
1221: l_plans_where_str := l_plans_where_str
1222: || 'AND mmtt.cartonization_id = wlpn2.lpn_id(+) ';
1223: end if;
1224: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' then

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

1220: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' then
1221: l_plans_where_str := l_plans_where_str
1222: || 'AND mmtt.cartonization_id = wlpn2.lpn_id(+) ';
1223: end if;
1224: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' then
1225: l_plans_where_str := l_plans_where_str
1226: || 'AND mmtt.container_item_id = msiv1.inventory_item_id(+) '
1227: || 'AND mmtt.organization_id = msiv1.organization_id(+) ';
1228: end if;

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

1225: l_plans_where_str := l_plans_where_str
1226: || 'AND mmtt.container_item_id = msiv1.inventory_item_id(+) '
1227: || 'AND mmtt.organization_id = msiv1.organization_id(+) ';
1228: end if;
1229: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1230: l_plans_where_str := l_plans_where_str
1231: || 'AND mmtt.lpn_id = wlpn5.lpn_id(+) ';
1232: END IF;
1233: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN

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

1229: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
1230: l_plans_where_str := l_plans_where_str
1231: || 'AND mmtt.lpn_id = wlpn5.lpn_id(+) ';
1232: END IF;
1233: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1234: l_plans_where_str := l_plans_where_str
1235: || 'AND mmtt.content_lpn_id = wlpn3.lpn_id(+) ';
1236: end if;
1237: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN

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

1233: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
1234: l_plans_where_str := l_plans_where_str
1235: || 'AND mmtt.content_lpn_id = wlpn3.lpn_id(+) ';
1236: end if;
1237: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1238: l_plans_where_str := l_plans_where_str
1239: || 'AND mmtt.transfer_lpn_id = wlpn4.lpn_id(+) ';
1240: end if;
1241: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

Line 1241: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

1237: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
1238: l_plans_where_str := l_plans_where_str
1239: || 'AND mmtt.transfer_lpn_id = wlpn4.lpn_id(+) ';
1240: end if;
1241: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
1242: l_plans_where_str := l_plans_where_str
1243: || 'AND mmtt.organization_id = :org_id ';
1244: END IF;
1245: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

Line 1245: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1241: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
1242: l_plans_where_str := l_plans_where_str
1243: || 'AND mmtt.organization_id = :org_id ';
1244: END IF;
1245: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1246: l_plans_where_str := l_plans_where_str
1247: || 'AND mmtt.subinventory_code = :sub_code ';
1248: END IF;
1249:

Line 1250: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1246: l_plans_where_str := l_plans_where_str
1247: || 'AND mmtt.subinventory_code = :sub_code ';
1248: END IF;
1249:
1250: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1251: l_plans_where_str := l_plans_where_str
1252: || 'AND mmtt.locator_id = :loc_id ';
1253: END IF;
1254:

Line 1255: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1251: l_plans_where_str := l_plans_where_str
1252: || 'AND mmtt.locator_id = :loc_id ';
1253: END IF;
1254:
1255: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1256: l_plans_where_str := l_plans_where_str
1257: || 'AND mmtt.transfer_subinventory = :to_sub_code ';
1258: END IF;
1259:

Line 1260: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1256: l_plans_where_str := l_plans_where_str
1257: || 'AND mmtt.transfer_subinventory = :to_sub_code ';
1258: END IF;
1259:
1260: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1261: l_plans_where_str := l_plans_where_str
1262: || 'AND mmtt.transfer_to_location = :to_loc_id ';
1263: END IF;
1264:

Line 1265: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

1261: l_plans_where_str := l_plans_where_str
1262: || 'AND mmtt.transfer_to_location = :to_loc_id ';
1263: END IF;
1264:
1265: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
1266: l_plans_where_str := l_plans_where_str
1267: || 'AND mmtt.inventory_item_id = :item_id ';
1268: END IF;
1269:

Line 1270: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

1266: l_plans_where_str := l_plans_where_str
1267: || 'AND mmtt.inventory_item_id = :item_id ';
1268: END IF;
1269:
1270: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
1271: l_plans_where_str := l_plans_where_str
1272: || 'AND mic.category_set_id = :category_set_id ';
1273: END IF;
1274:

Line 1275: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

1271: l_plans_where_str := l_plans_where_str
1272: || 'AND mic.category_set_id = :category_set_id ';
1273: END IF;
1274:
1275: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
1276: l_plans_where_str := l_plans_where_str
1277: || 'AND mmtt.inventory_item_id = mic.inventory_item_id '
1278: || 'AND mic.organization_id = mmtt.organization_id '
1279: || 'AND mic.category_id = :item_category_id ';

Line 1282: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN

1278: || 'AND mic.organization_id = mmtt.organization_id '
1279: || 'AND mic.category_id = :item_category_id ';
1280: END IF;
1281:
1282: IF wms_plan_tasks_pvt.g_user_task_type_id IS NOT NULL THEN
1283: l_plans_where_str := l_plans_where_str
1284: || 'AND mmtt.standard_operation_id = :user_task_type_id ';
1285: END IF;
1286:

Line 1287: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

1283: l_plans_where_str := l_plans_where_str
1284: || 'AND mmtt.standard_operation_id = :user_task_type_id ';
1285: END IF;
1286:
1287: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
1288: l_plans_where_str := l_plans_where_str
1289: || 'AND mmtt.transaction_quantity >= :from_task_quantity ';
1290: END IF;
1291:

Line 1292: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

1288: l_plans_where_str := l_plans_where_str
1289: || 'AND mmtt.transaction_quantity >= :from_task_quantity ';
1290: END IF;
1291:
1292: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
1293: l_plans_where_str := l_plans_where_str
1294: || 'AND mmtt.transaction_quantity <= :to_task_quantity ';
1295: END IF;
1296:

Line 1297: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN

1293: l_plans_where_str := l_plans_where_str
1294: || 'AND mmtt.transaction_quantity <= :to_task_quantity ';
1295: END IF;
1296:
1297: IF wms_plan_tasks_pvt.g_from_task_priority IS NOT NULL THEN
1298: l_plans_where_str := l_plans_where_str
1299: || 'AND mmtt.task_priority <= :from_task_priority ';
1300: END IF;
1301:

Line 1302: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN

1298: l_plans_where_str := l_plans_where_str
1299: || 'AND mmtt.task_priority <= :from_task_priority ';
1300: END IF;
1301:
1302: IF wms_plan_tasks_pvt.g_to_task_priority IS NOT NULL THEN
1303: l_plans_where_str := l_plans_where_str
1304: || 'AND mmtt.task_priority <= :to_task_priority ';
1305: END IF;
1306:

Line 1307: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

1303: l_plans_where_str := l_plans_where_str
1304: || 'AND mmtt.task_priority <= :to_task_priority ';
1305: END IF;
1306:
1307: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
1308: l_plans_where_str := l_plans_where_str
1309: -- || 'AND mmtt.creation_date >= :from_creation_date ';--commented in bug 6854145
1310: || 'AND TRUNC(mmtt.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
1311: END IF;

Line 1313: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

1309: -- || 'AND mmtt.creation_date >= :from_creation_date ';--commented in bug 6854145
1310: || 'AND TRUNC(mmtt.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
1311: END IF;
1312:
1313: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
1314: l_plans_where_str := l_plans_where_str
1315: --|| 'AND mmtt.creation_date <= :to_creation_date ';--commented in bug 6854145
1316: || 'AND TRUNC(mmtt.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
1317: END IF;

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

1314: l_plans_where_str := l_plans_where_str
1315: --|| 'AND mmtt.creation_date <= :to_creation_date ';--commented in bug 6854145
1316: || 'AND TRUNC(mmtt.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
1317: END IF;
1318: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
1319: l_plans_where_str := l_plans_where_str
1320: || 'AND mmtt.transfer_organization = mp1.organization_id(+) ';
1321: end if;
1322:

Line 1324: if wms_plan_tasks_pvt.g_plan_type_id is not null then

1320: || 'AND mmtt.transfer_organization = mp1.organization_id(+) ';
1321: end if;
1322:
1323: /** The following section handles the plan_specific query **/
1324: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1325: l_plans_where_str := l_plans_where_str
1326: || 'AND wop.plan_type_id = :plan_type_id ';
1327: end if;
1328: if wms_plan_tasks_pvt.g_op_plan_id is not null then

Line 1328: if wms_plan_tasks_pvt.g_op_plan_id is not null then

1324: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1325: l_plans_where_str := l_plans_where_str
1326: || 'AND wop.plan_type_id = :plan_type_id ';
1327: end if;
1328: if wms_plan_tasks_pvt.g_op_plan_id is not null then
1329: l_plans_where_str := l_plans_where_str
1330: || 'AND wop.operation_plan_id = :op_plan_id ';
1331: end if;
1332:

Line 1334: IF wms_plan_tasks_pvt.g_is_pending_plan THEN

1330: || 'AND wop.operation_plan_id = :op_plan_id ';
1331: end if;
1332:
1333: l_plans_where_str := l_plans_where_str || ' AND wopi.status in (';
1334: IF wms_plan_tasks_pvt.g_is_pending_plan THEN
1335: l_plans_where_str := l_plans_where_str || '1';
1336: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1337: l_plans_where_str := l_plans_where_str || ',6';
1338: END IF;

Line 1336: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN

1332:
1333: l_plans_where_str := l_plans_where_str || ' AND wopi.status in (';
1334: IF wms_plan_tasks_pvt.g_is_pending_plan THEN
1335: l_plans_where_str := l_plans_where_str || '1';
1336: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1337: l_plans_where_str := l_plans_where_str || ',6';
1338: END IF;
1339: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1340: l_plans_where_str := l_plans_where_str || '6';

Line 1339: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN

1335: l_plans_where_str := l_plans_where_str || '1';
1336: IF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1337: l_plans_where_str := l_plans_where_str || ',6';
1338: END IF;
1339: ELSIF wms_plan_tasks_pvt.g_is_inprogress_plan THEN
1340: l_plans_where_str := l_plans_where_str || '6';
1341: END IF;
1342:
1343: l_plans_where_str := l_plans_where_str || ')';

Line 1357: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1353: But now we do not check if the planned_task records are already
1354: inserted into wwtt or not. This validation should be taken care of
1355: in the calling program - In this case, it is get_inbound_tasks
1356: **/
1357: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1358: wms_plan_tasks_pvt.g_include_inbound THEN
1359: l_plans_where_str := l_plans_where_str
1360: || ' AND mmtt.transaction_temp_id = wwtt.parent_line_id ';
1361: END IF;

Line 1358: wms_plan_tasks_pvt.g_include_inbound THEN

1354: inserted into wwtt or not. This validation should be taken care of
1355: in the calling program - In this case, it is get_inbound_tasks
1356: **/
1357: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1358: wms_plan_tasks_pvt.g_include_inbound THEN
1359: l_plans_where_str := l_plans_where_str
1360: || ' AND mmtt.transaction_temp_id = wwtt.parent_line_id ';
1361: END IF;
1362: /* Filter based on the status - pending/inprogress. */

Line 1369: IF wms_plan_tasks_pvt.g_is_completed_plan OR

1365: END IF; --if pending or inprogress
1366:
1367:
1368: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1369: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1370: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1371: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1372: IF l_debug = 1 THEN
1373: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');

Line 1370: wms_plan_tasks_pvt.g_is_cancelled_plan OR

1366:
1367:
1368: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1369: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1370: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1371: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1372: IF l_debug = 1 THEN
1373: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');
1374: END IF;

Line 1371: wms_plan_tasks_pvt.g_is_aborted_plan THEN

1367:
1368: /* For completed/cancelled/aborted plans, call the procedure get_wdth_plan_records */
1369: IF wms_plan_tasks_pvt.g_is_completed_plan OR
1370: wms_plan_tasks_pvt.g_is_cancelled_plan OR
1371: wms_plan_tasks_pvt.g_is_aborted_plan THEN
1372: IF l_debug = 1 THEN
1373: debug('completed/canceled/aborted plans are queried.calling get_wdth_plan_records ','get_plans');
1374: END IF;
1375: get_wdth_plan_records(l_wdth_select_str, l_wdth_from_str, l_wdth_where_str);

Line 1384: if wms_plan_tasks_pvt.g_plan_type_id is not null then

1380: debug('l_wdth_where_str from get_wdth_plan_records: ' ||l_wdth_where_str,'get_plans');
1381: END IF;
1382:
1383: /** The following section handles the plan_specific query **/
1384: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1385: l_wdth_where_str := l_wdth_where_str
1386: || 'AND wop.plan_type_id = :plan_type_id ';
1387: end if;
1388: if wms_plan_tasks_pvt.g_op_plan_id is not null then

Line 1388: if wms_plan_tasks_pvt.g_op_plan_id is not null then

1384: if wms_plan_tasks_pvt.g_plan_type_id is not null then
1385: l_wdth_where_str := l_wdth_where_str
1386: || 'AND wop.plan_type_id = :plan_type_id ';
1387: end if;
1388: if wms_plan_tasks_pvt.g_op_plan_id is not null then
1389: l_wdth_where_str := l_wdth_where_str
1390: || 'AND wop.operation_plan_id = :op_plan_id ';
1391: end if;
1392: /* If inbound specific query or inbound query is made, append the inline query to the

Line 1395: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1391: end if;
1392: /* If inbound specific query or inbound query is made, append the inline query to the
1393: from clause
1394: */
1395: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1396: wms_plan_tasks_pvt.g_include_inbound THEN
1397: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1398: END IF;
1399: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

Line 1396: wms_plan_tasks_pvt.g_include_inbound THEN

1392: /* If inbound specific query or inbound query is made, append the inline query to the
1393: from clause
1394: */
1395: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1396: wms_plan_tasks_pvt.g_include_inbound THEN
1397: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1398: END IF;
1399: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1400: wms_plan_tasks_pvt.g_include_inbound THEN

Line 1399: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1395: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1396: wms_plan_tasks_pvt.g_include_inbound THEN
1397: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1398: END IF;
1399: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1400: wms_plan_tasks_pvt.g_include_inbound THEN
1401: IF l_debug = 1 THEN
1402: debug('inbound specific query is made ','get_plans');
1403: END IF;

Line 1400: wms_plan_tasks_pvt.g_include_inbound THEN

1396: wms_plan_tasks_pvt.g_include_inbound THEN
1397: l_wdth_from_str := l_wdth_from_str || ', ' || l_inline_query;
1398: END IF;
1399: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1400: wms_plan_tasks_pvt.g_include_inbound THEN
1401: IF l_debug = 1 THEN
1402: debug('inbound specific query is made ','get_plans');
1403: END IF;
1404: l_wdth_where_str := l_wdth_where_str

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

1444: x_plans_query_str := l_plans_query_str;
1445: END get_plans;
1446:
1447: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1448: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1449:
1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;

1446:
1447: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1448: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1449:
1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:

Line 1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;

1447: PROCEDURE get_tasks(x_tasks_query_str OUT NOCOPY VARCHAR2, p_summary_mode NUMBER DEFAULT 0) IS
1448: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1449:
1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1448: l_tasks_query_str wms_plan_tasks_pvt.long_sql:= '';
1449:
1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */

Line 1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1449:
1450: l_tasks_str wms_plan_tasks_pvt.long_sql := NULL;
1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;

1451: l_tasks_select_str wms_plan_tasks_pvt.short_sql := NULL;
1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:

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

1452: l_tasks_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;

1453: l_tasks_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;

1454:
1455: l_completed_tasks_str wms_plan_tasks_pvt.long_sql:= NULL;
1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;

Line 1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;

1456: l_completed_tasks_select_str wms_plan_tasks_pvt.long_sql:= NULL; /* Bug 5507934 */
1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:

Line 1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;

1457: l_completed_tasks_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;

1458: l_completed_tasks_where_str wms_plan_tasks_pvt.long_sql:= NULL;
1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

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

1459:
1460: l_completed_records_str wms_plan_tasks_pvt.long_sql:= NULL;
1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;

1461: l_completed_records_select_str wms_plan_tasks_pvt.long_sql:= NULL;
1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1468:
1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1462: l_completed_records_from_str wms_plan_tasks_pvt.long_sql:= NULL;
1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1468:
1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1470: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

Line 1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1463: l_completed_records_where_str wms_plan_tasks_pvt.long_sql:= NULL; /* End of Bug 5507934 */
1464:
1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1468:
1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1470: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1471:

Line 1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;

1465: l_inbound_select_str wms_plan_tasks_pvt.short_sql:= NULL;
1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1468:
1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1470: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1471:
1472: l_is_pending boolean;
1473: l_is_loaded boolean;

Line 1470: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;

1466: l_inbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1467: l_inbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1468:
1469: l_outbound_from_str wms_plan_tasks_pvt.short_sql:= NULL;
1470: l_outbound_where_str wms_plan_tasks_pvt.short_sql:= NULL;
1471:
1472: l_is_pending boolean;
1473: l_is_loaded boolean;
1474: l_is_completed boolean;

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

1476: BEGIN
1477: IF l_debug = 1 THEN
1478: debug('in get_tasks ', 'get_tasks');
1479: END IF;
1480: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE OR
1481: wms_plan_tasks_pvt.g_is_pending_task = TRUE then
1482: IF l_debug = 1 THEN
1483: debug('query for pending task','get_tasks');
1484: END IF;

Line 1481: wms_plan_tasks_pvt.g_is_pending_task = TRUE then

1477: IF l_debug = 1 THEN
1478: debug('in get_tasks ', 'get_tasks');
1479: END IF;
1480: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE OR
1481: wms_plan_tasks_pvt.g_is_pending_task = TRUE then
1482: IF l_debug = 1 THEN
1483: debug('query for pending task','get_tasks');
1484: END IF;
1485: l_is_pending := TRUE;

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

1489: END IF;
1490: l_is_pending := false;
1491: end if;
1492:
1493: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE OR
1494: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then
1495: l_is_loaded := TRUE;
1496: IF l_debug = 1 THEN
1497: debug('query for loaded task','get_tasks');

Line 1494: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then

1490: l_is_pending := false;
1491: end if;
1492:
1493: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE OR
1494: wms_plan_tasks_pvt.g_is_loaded_task = TRUE then
1495: l_is_loaded := TRUE;
1496: IF l_debug = 1 THEN
1497: debug('query for loaded task','get_tasks');
1498: END IF;

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

1502: END IF;
1503: l_is_loaded := false;
1504: end if;
1505:
1506: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
1507: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
1508: l_is_completed := TRUE;
1509: IF l_debug = 1 THEN
1510: debug('query for completed task ','get_tasks');

Line 1507: wms_plan_tasks_pvt.g_is_completed_task = TRUE then

1503: l_is_loaded := false;
1504: end if;
1505:
1506: if wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE OR
1507: wms_plan_tasks_pvt.g_is_completed_task = TRUE then
1508: l_is_completed := TRUE;
1509: IF l_debug = 1 THEN
1510: debug('query for completed task ','get_tasks');
1511: END IF;

Line 1546: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1542: l_tasks_from_str :=
1543: wms_waveplan_tasks_pvt.get_generic_from(
1544: p_is_loaded => l_is_loaded
1545: , p_is_completed => FALSE
1546: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1547: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1548: );
1549:
1550: l_tasks_where_str :=

Line 1547: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1543: wms_waveplan_tasks_pvt.get_generic_from(
1544: p_is_loaded => l_is_loaded
1545: , p_is_completed => FALSE
1546: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1547: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1548: );
1549:
1550: l_tasks_where_str :=
1551: wms_waveplan_tasks_pvt.get_generic_where(

Line 1552: p_add => wms_plan_tasks_pvt.g_is_add

1548: );
1549:
1550: l_tasks_where_str :=
1551: wms_waveplan_tasks_pvt.get_generic_where(
1552: p_add => wms_plan_tasks_pvt.g_is_add
1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

Line 1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id

1549:
1550: l_tasks_where_str :=
1551: wms_waveplan_tasks_pvt.get_generic_where(
1552: p_add => wms_plan_tasks_pvt.g_is_add
1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

Line 1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code

1550: l_tasks_where_str :=
1551: wms_waveplan_tasks_pvt.get_generic_where(
1552: p_add => wms_plan_tasks_pvt.g_is_add
1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

Line 1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id

1551: wms_waveplan_tasks_pvt.get_generic_where(
1552: p_add => wms_plan_tasks_pvt.g_is_add
1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

Line 1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

1552: p_add => wms_plan_tasks_pvt.g_is_add
1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

Line 1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

1553: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id

Line 1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

1554: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

Line 1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1555: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

Line 1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1556: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

Line 1561: , p_person_id => wms_plan_tasks_pvt.g_person_id

1557: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

Line 1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

1558: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

Line 1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

1559: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

Line 1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

1560: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

Line 1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

1561: , p_person_id => wms_plan_tasks_pvt.g_person_id
1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

Line 1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

1562: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1570: , p_is_pending => l_is_pending

Line 1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

1563: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1570: , p_is_pending => l_is_pending
1571: , p_is_loaded => l_is_loaded

Line 1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

1564: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1570: , p_is_pending => l_is_pending
1571: , p_is_loaded => l_is_loaded
1572: , p_is_completed => FALSE

Line 1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

1565: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1566: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1567: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1568: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1569: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1570: , p_is_pending => l_is_pending
1571: , p_is_loaded => l_is_loaded
1572: , p_is_completed => FALSE
1573: );

Line 1576: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE

1572: , p_is_completed => FALSE
1573: );
1574:
1575: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1576: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1577: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1578: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1579: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1580: then

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

1573: );
1574:
1575: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1576: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1577: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1578: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1579: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1580: then
1581: IF l_debug = 1 THEN

Line 1578: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1574:
1575: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1576: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1577: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1578: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1579: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1580: then
1581: IF l_debug = 1 THEN
1582: debug('both independent and planned_tasks are queried ','get_tasks');

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

1575: /* Now add where clauses specific to planned_tasks or independent_tasks*/
1576: if (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1577: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1578: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1579: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1580: then
1581: IF l_debug = 1 THEN
1582: debug('both independent and planned_tasks are queried ','get_tasks');
1583: END IF;

Line 1585: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE

1581: IF l_debug = 1 THEN
1582: debug('both independent and planned_tasks are queried ','get_tasks');
1583: END IF;
1584: null;
1585: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1586: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1587: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1588: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1589: then

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

1582: debug('both independent and planned_tasks are queried ','get_tasks');
1583: END IF;
1584: null;
1585: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1586: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1587: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1588: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1589: then
1590: IF l_debug = 1 THEN

Line 1587: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1583: END IF;
1584: null;
1585: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1586: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1587: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1588: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1589: then
1590: IF l_debug = 1 THEN
1591: debug('only independent tasks are queried ','get_tasks');

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

1584: null;
1585: elsif (wms_plan_tasks_pvt.g_is_pending_task = TRUE
1586: and not wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1587: (wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1588: and NOT wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1589: then
1590: IF l_debug = 1 THEN
1591: debug('only independent tasks are queried ','get_tasks');
1592: END IF;

Line 1595: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE

1591: debug('only independent tasks are queried ','get_tasks');
1592: END IF;
1593: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1594:
1595: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1596: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1597: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1598: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1599: then

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

1592: END IF;
1593: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1594:
1595: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1596: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1597: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1598: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1599: then
1600: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';

Line 1597: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE

1593: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is null';
1594:
1595: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1596: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1597: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1598: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1599: then
1600: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';
1601: --l_tasks_where_str := l_tasks_where_str || ' and wooi.complete_time is not null';

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

1594:
1595: elsif (not wms_plan_tasks_pvt.g_is_pending_task = TRUE
1596: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_pending = TRUE) OR
1597: (NOT wms_plan_tasks_pvt.g_is_loaded_task = TRUE
1598: and wms_plan_tasks_pvt.g_planned_tasks_rec.is_loaded = TRUE)
1599: then
1600: l_tasks_where_str := l_tasks_where_str || ' and mmtt.operation_plan_id is not null';
1601: --l_tasks_where_str := l_tasks_where_str || ' and wooi.complete_time is not null';
1602: IF l_debug = 1 THEN

Line 1610: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1606:
1607: /* If inbound specific query is made, get the inbound specific select, from
1608: and where clauses, append them to the final query for non-completed tasks.
1609: */
1610: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1611: wms_plan_tasks_pvt.g_include_inbound OR
1612: wms_plan_tasks_pvt.g_include_crossdock THEN
1613: IF l_debug = 1 THEN
1614: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');

Line 1611: wms_plan_tasks_pvt.g_include_inbound OR

1607: /* If inbound specific query is made, get the inbound specific select, from
1608: and where clauses, append them to the final query for non-completed tasks.
1609: */
1610: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1611: wms_plan_tasks_pvt.g_include_inbound OR
1612: wms_plan_tasks_pvt.g_include_crossdock THEN
1613: IF l_debug = 1 THEN
1614: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1615: END IF;

Line 1612: wms_plan_tasks_pvt.g_include_crossdock THEN

1608: and where clauses, append them to the final query for non-completed tasks.
1609: */
1610: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1611: wms_plan_tasks_pvt.g_include_inbound OR
1612: wms_plan_tasks_pvt.g_include_crossdock THEN
1613: IF l_debug = 1 THEN
1614: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1615: END IF;
1616: get_inbound_specific_query(x_inbound_select_str => l_inbound_select_str

Line 1621: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1617: ,x_inbound_from_str => l_inbound_from_str
1618: ,x_inbound_where_str => l_inbound_where_str
1619: ,p_is_completed_rec => 0);
1620:
1621: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1622: IF l_debug = 1 THEN
1623: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1624: END IF;
1625: /* Bug 5259318 */

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

1622: IF l_debug = 1 THEN
1623: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1624: END IF;
1625: /* Bug 5259318 */
1626: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1627: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1628: ,x_outbound_where_str => l_outbound_where_str
1629: );
1630: l_outbound_where_str := l_outbound_where_str || ' AND mtrl.BACKORDER_DELIVERY_DETAIL_ID = wdd.delivery_detail_id ';

Line 1649: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN

1645: END IF;
1646: /* If plan specific query is made, get the plan specific select, from and
1647: where clauses, append them to the final query for non-completed tasks.
1648: */
1649: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN
1650: l_tasks_where_str := l_tasks_where_str ||
1651: ' and mmtt.operation_plan_id = :op_plan_id ';
1652: END IF;
1653:

Line 1695: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR

1691: * specific and inbound specific additional query.
1692: * #2 Append the string returned from this function to l_tasks_query_str.
1693: */
1694:
1695: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1696: wms_plan_tasks_pvt.g_include_inbound OR
1697: wms_plan_tasks_pvt.g_include_crossdock THEN
1698: IF l_debug = 1 THEN
1699: debug('inbound specific query is made','get_tasks');

Line 1696: wms_plan_tasks_pvt.g_include_inbound OR

1692: * #2 Append the string returned from this function to l_tasks_query_str.
1693: */
1694:
1695: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1696: wms_plan_tasks_pvt.g_include_inbound OR
1697: wms_plan_tasks_pvt.g_include_crossdock THEN
1698: IF l_debug = 1 THEN
1699: debug('inbound specific query is made','get_tasks');
1700: END IF;

Line 1697: wms_plan_tasks_pvt.g_include_crossdock THEN

1693: */
1694:
1695: IF wms_plan_tasks_pvt.g_inbound_specific_query = TRUE OR
1696: wms_plan_tasks_pvt.g_include_inbound OR
1697: wms_plan_tasks_pvt.g_include_crossdock THEN
1698: IF l_debug = 1 THEN
1699: debug('inbound specific query is made','get_tasks');
1700: END IF;
1701: get_inbound_specific_query(x_inbound_select_str => l_inbound_select_str

Line 1708: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1704: ,p_is_completed_rec => 1);
1705: l_inbound_where_str := l_inbound_where_str
1706: || ' AND wdth.source_document_id = rt.transaction_id (+) ';
1707:
1708: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1709: IF l_debug = 1 THEN
1710: debug('Crossdock query is made','get_tasks');
1711: END IF;
1712: /* Bug 5259318 */

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

1709: IF l_debug = 1 THEN
1710: debug('Crossdock query is made','get_tasks');
1711: END IF;
1712: /* Bug 5259318 */
1713: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1714: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1715: ,x_outbound_where_str => l_outbound_where_str
1716: );
1717: /*ELSE

Line 1737: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN

1733:
1734: /* If plan specific query is made, get the plan specific select, from and
1735: * where clauses, append them to the final query for non-completed tasks.
1736: */
1737: if wms_plan_tasks_pvt.g_op_plan_id is not null THEN
1738: l_completed_records_where_str := l_completed_records_where_str ||
1739: ' and wdth.operation_plan_id = :op_plan_id ';
1740: END IF;
1741:

Line 1749: IF wms_plan_tasks_pvt.g_query_independent_tasks AND

1745: /* Filter on operation_plan_id only if either planned_task or independent
1746: * tasks are queried, but not both together. In the latter case, we dont
1747: * filter on operation_plan_id
1748: */
1749: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1750: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1751: l_completed_records_where_str := l_completed_records_where_str ||
1752: ' and wdth.operation_plan_id is null ';
1753: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND

Line 1750: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN

1746: * tasks are queried, but not both together. In the latter case, we dont
1747: * filter on operation_plan_id
1748: */
1749: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1750: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1751: l_completed_records_where_str := l_completed_records_where_str ||
1752: ' and wdth.operation_plan_id is null ';
1753: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1754: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN

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

1749: IF wms_plan_tasks_pvt.g_query_independent_tasks AND
1750: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1751: l_completed_records_where_str := l_completed_records_where_str ||
1752: ' and wdth.operation_plan_id is null ';
1753: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1754: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN
1755: l_completed_records_where_str := l_completed_records_where_str
1756: || 'and wdth.operation_plan_id is not null ';
1757: END IF;

Line 1754: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN

1750: wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = FALSE THEN
1751: l_completed_records_where_str := l_completed_records_where_str ||
1752: ' and wdth.operation_plan_id is null ';
1753: ELSIF wms_plan_tasks_pvt.g_planned_tasks_rec.is_completed = TRUE AND
1754: wms_plan_tasks_pvt.g_query_independent_tasks = FALSE THEN
1755: l_completed_records_where_str := l_completed_records_where_str
1756: || 'and wdth.operation_plan_id is not null ';
1757: END IF;
1758:

Line 1779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1775: ' and wdth.transaction_action_id = 27) '|| --Bug #5231114
1776: ') ';
1777:
1778: ---fix for bug 6826562
1779: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1780: l_completed_records_where_str := l_completed_records_where_str
1781: || 'AND wdth.source_subinventory_code = :sub_code ';
1782: END IF;
1783:

Line 1784: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1780: l_completed_records_where_str := l_completed_records_where_str
1781: || 'AND wdth.source_subinventory_code = :sub_code ';
1782: END IF;
1783:
1784: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1785: l_completed_records_where_str := l_completed_records_where_str
1786: || 'AND wdth.source_locator_id = :loc_id ';
1787: END IF;
1788:

Line 1789: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1785: l_completed_records_where_str := l_completed_records_where_str
1786: || 'AND wdth.source_locator_id = :loc_id ';
1787: END IF;
1788:
1789: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1790: l_completed_records_where_str := l_completed_records_where_str
1791: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1792: END IF;
1793:

Line 1794: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1790: l_completed_records_where_str := l_completed_records_where_str
1791: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1792: END IF;
1793:
1794: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1795: l_completed_records_where_str := l_tasks_where_str
1796: || 'AND wdth.dest_locator_id = :to_loc_id ';
1797: END IF;
1798: ---fix for bug 6826562

Line 1813: if wms_plan_tasks_pvt.g_is_completed_task

1809: IF l_debug = 1 THEN
1810: debug('completed_records_str ' || l_completed_records_str);
1811: END IF;
1812: --fetching the completed independent tasks
1813: if wms_plan_tasks_pvt.g_is_completed_task
1814: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1815:
1816: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1817: wms_plan_tasks_pvt.g_from_inbound :=TRUE;

Line 1814: AND wms_plan_tasks_pvt.g_query_independent_tasks then

1810: debug('completed_records_str ' || l_completed_records_str);
1811: END IF;
1812: --fetching the completed independent tasks
1813: if wms_plan_tasks_pvt.g_is_completed_task
1814: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1815:
1816: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1817: wms_plan_tasks_pvt.g_from_inbound :=TRUE;
1818:

Line 1817: wms_plan_tasks_pvt.g_from_inbound :=TRUE;

1813: if wms_plan_tasks_pvt.g_is_completed_task
1814: AND wms_plan_tasks_pvt.g_query_independent_tasks then
1815:
1816: /*Bug 3627575:Setting the variable to true for Inbound queries*/
1817: wms_plan_tasks_pvt.g_from_inbound :=TRUE;
1818:
1819: IF l_debug = 1 THEN
1820: debug('fetching the completed independent tasks ','get_tasks');
1821: END IF;

Line 1839: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1835: l_completed_tasks_from_str :=
1836: wms_waveplan_tasks_pvt.get_generic_from(
1837: p_is_loaded => FALSE
1838: , p_is_completed => l_is_completed
1839: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1840: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1841: );
1842:
1843: l_completed_tasks_where_str :=

Line 1840: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1836: wms_waveplan_tasks_pvt.get_generic_from(
1837: p_is_loaded => FALSE
1838: , p_is_completed => l_is_completed
1839: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1840: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1841: );
1842:
1843: l_completed_tasks_where_str :=
1844: wms_waveplan_tasks_pvt.get_generic_where(

Line 1845: p_add => wms_plan_tasks_pvt.g_is_add

1841: );
1842:
1843: l_completed_tasks_where_str :=
1844: wms_waveplan_tasks_pvt.get_generic_where(
1845: p_add => wms_plan_tasks_pvt.g_is_add
1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

Line 1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id

1842:
1843: l_completed_tasks_where_str :=
1844: wms_waveplan_tasks_pvt.get_generic_where(
1845: p_add => wms_plan_tasks_pvt.g_is_add
1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

Line 1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code

1843: l_completed_tasks_where_str :=
1844: wms_waveplan_tasks_pvt.get_generic_where(
1845: p_add => wms_plan_tasks_pvt.g_is_add
1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

Line 1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id

1844: wms_waveplan_tasks_pvt.get_generic_where(
1845: p_add => wms_plan_tasks_pvt.g_is_add
1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

Line 1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code

1845: p_add => wms_plan_tasks_pvt.g_is_add
1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

Line 1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id

1846: , p_organization_id => wms_plan_tasks_pvt.g_organization_id
1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id

Line 1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id

1847: , p_subinventory_code => wms_plan_tasks_pvt.g_subinventory_code
1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

Line 1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id

1848: , p_locator_id => wms_plan_tasks_pvt.g_locator_id
1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

Line 1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id

1849: , p_to_subinventory_code => wms_plan_tasks_pvt.g_to_subinventory_code
1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

Line 1854: , p_person_id => wms_plan_tasks_pvt.g_person_id

1850: , p_to_locator_id => wms_plan_tasks_pvt.g_to_locator_id
1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

Line 1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id

1851: , p_inventory_item_id => wms_plan_tasks_pvt.g_inventory_item_id
1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

Line 1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id

1852: , p_category_set_id => wms_plan_tasks_pvt.g_category_set_id
1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

Line 1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id

1853: , p_item_category_id => wms_plan_tasks_pvt.g_item_category_id
1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

Line 1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance

1854: , p_person_id => wms_plan_tasks_pvt.g_person_id
1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

Line 1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity

1855: , p_person_resource_id => wms_plan_tasks_pvt.g_person_resource_id
1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1863: , p_is_pending => FALSE

Line 1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity

1856: , p_equipment_type_id => wms_plan_tasks_pvt.g_equipment_type_id
1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1863: , p_is_pending => FALSE
1864: , p_is_loaded => FALSE

Line 1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date

1857: , p_machine_resource_id => wms_plan_tasks_pvt.g_machine_resource_id
1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1863: , p_is_pending => FALSE
1864: , p_is_loaded => FALSE
1865: , p_is_completed => l_is_completed

Line 1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date

1858: , p_machine_instance => wms_plan_tasks_pvt.g_machine_instance
1859: , p_from_task_quantity => wms_plan_tasks_pvt.g_from_task_quantity
1860: , p_to_task_quantity => wms_plan_tasks_pvt.g_to_task_quantity
1861: , p_from_creation_date => wms_plan_tasks_pvt.g_from_creation_date
1862: , p_to_creation_date => wms_plan_tasks_pvt.g_to_creation_date
1863: , p_is_pending => FALSE
1864: , p_is_loaded => FALSE
1865: , p_is_completed => l_is_completed
1866: );

Line 1870: IF wms_plan_tasks_pvt.g_inbound_specific_query OR

1866: );
1867:
1868: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1869:
1870: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1871: wms_plan_tasks_pvt.g_include_inbound OR
1872: wms_plan_tasks_pvt.g_include_crossdock THEN
1873:
1874: IF l_debug = 1 THEN

Line 1871: wms_plan_tasks_pvt.g_include_inbound OR

1867:
1868: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1869:
1870: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1871: wms_plan_tasks_pvt.g_include_inbound OR
1872: wms_plan_tasks_pvt.g_include_crossdock THEN
1873:
1874: IF l_debug = 1 THEN
1875: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');

Line 1872: wms_plan_tasks_pvt.g_include_crossdock THEN

1868: l_tasks_where_str := l_tasks_where_str || ' and wdth.operation_plan_id is null';
1869:
1870: IF wms_plan_tasks_pvt.g_inbound_specific_query OR
1871: wms_plan_tasks_pvt.g_include_inbound OR
1872: wms_plan_tasks_pvt.g_include_crossdock THEN
1873:
1874: IF l_debug = 1 THEN
1875: debug('inbound specific query is made. calling get_inbound_specific_query ','get_tasks');
1876: END IF;

Line 1907: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN

1903: ') ';
1904:
1905: ---fix for bug 6826562
1906:
1907: IF wms_plan_tasks_pvt.g_subinventory_code IS NOT NULL THEN
1908: l_completed_tasks_where_str := l_completed_tasks_where_str
1909: || 'AND wdth.source_subinventory_code = :sub_code ';
1910: END IF;
1911:

Line 1912: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN

1908: l_completed_tasks_where_str := l_completed_tasks_where_str
1909: || 'AND wdth.source_subinventory_code = :sub_code ';
1910: END IF;
1911:
1912: IF wms_plan_tasks_pvt.g_locator_id IS NOT NULL THEN
1913: l_completed_tasks_where_str := l_completed_tasks_where_str
1914: || 'AND wdth.source_locator_id = :loc_id ';
1915: END IF;
1916:

Line 1917: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN

1913: l_completed_tasks_where_str := l_completed_tasks_where_str
1914: || 'AND wdth.source_locator_id = :loc_id ';
1915: END IF;
1916:
1917: IF wms_plan_tasks_pvt.g_to_subinventory_code IS NOT NULL THEN
1918: l_completed_tasks_where_str := l_completed_tasks_where_str
1919: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1920: END IF;
1921:

Line 1922: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN

1918: l_completed_tasks_where_str := l_completed_tasks_where_str
1919: || 'AND wdth.dest_subinventory_code = :to_sub_code ';
1920: END IF;
1921:
1922: IF wms_plan_tasks_pvt.g_to_locator_id IS NOT NULL THEN
1923: l_completed_tasks_where_str := l_completed_tasks_where_str
1924: || 'AND wdth.dest_locator_id = :to_loc_id ';
1925: END IF;
1926:

Line 1929: IF wms_plan_tasks_pvt.g_include_crossdock THEN

1925: END IF;
1926:
1927: ---fix for bug 6826562
1928:
1929: IF wms_plan_tasks_pvt.g_include_crossdock THEN
1930: IF l_debug = 1 THEN
1931: debug('Crossdock query is made. calling get_inbound_specific_query ','get_tasks');
1932: END IF;
1933: l_completed_tasks_from_str := l_completed_tasks_from_str || ', mtl_txn_request_lines mtrl';

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

1934: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.organization_id = mtrl.organization_id ';
1935: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.inventory_item_id = mtrl.inventory_item_id ';
1936: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND wdth.move_order_line_id = mtrl.line_id ';
1937: /* Bug 5259318 */
1938: /*IF wms_plan_tasks_pvt.g_outbound_specific_query THEN*/
1939: -- for crossdock tasks with outbound criteria specified
1940: l_completed_tasks_where_str := l_completed_tasks_where_str || ' AND mtrl.backorder_delivery_detail_id = wdd.delivery_detail_id ';
1941: get_outbound_specific_query(x_outbound_from_str => l_outbound_from_str
1942: ,x_outbound_where_str => l_outbound_where_str

Line 2030: l_col_list_str wms_plan_tasks_pvt.short_sql;

2026: END IF;
2027: END get_tasks;
2028:
2029: PROCEDURE get_col_list(x_col_list_str OUT NOCOPY VARCHAR2) IS
2030: l_col_list_str wms_plan_tasks_pvt.short_sql;
2031: BEGIN
2032: l_col_list_str := 'expansion_code'
2033: || ', plans_tasks'
2034: || ', transaction_temp_id '

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

2051: || ', transaction_type_id '
2052: || ', transaction_action_id '
2053: || ', transaction_source_type_id ';
2054:
2055: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2056: l_col_list_str := l_col_list_str || ', transaction_source_type ';
2057: END IF;
2058:
2059: l_col_list_str := l_col_list_str

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

2060: || ', transaction_source_id '
2061: || ', transaction_source_line_id '
2062: || ', to_organization_id ';
2063:
2064: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2065: l_col_list_str := l_col_list_str || ', to_organization_code ';
2066: END IF;
2067:
2068: l_col_list_str := l_col_list_str

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

2068: l_col_list_str := l_col_list_str
2069: || ', to_subinventory '
2070: || ', to_locator_id ';
2071:
2072: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2073: l_col_list_str := l_col_list_str || ', to_locator ';
2074: END IF;
2075:
2076: l_col_list_str := l_col_list_str

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

2076: l_col_list_str := l_col_list_str
2077: || ', transaction_uom '
2078: || ', transaction_quantity '
2079: || ', user_task_type_id ';
2080: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2081: l_col_list_str := l_col_list_str || ', user_task_type ';
2082: END IF;
2083: l_col_list_str := l_col_list_str
2084: || ', move_order_line_id '

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

2084: || ', move_order_line_id '
2085: || ', pick_slip_number '
2086: || ', cartonization_id ';
2087:
2088: IF wms_plan_tasks_pvt.g_cartonization_lpn_visible = 'T' THEN
2089: l_col_list_str := l_col_list_str || ', cartonization_lpn ';
2090: END IF;
2091:
2092: l_col_list_str := l_col_list_str || ', allocated_lpn_id ';

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

2090: END IF;
2091:
2092: l_col_list_str := l_col_list_str || ', allocated_lpn_id ';
2093:
2094: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
2095: l_col_list_str := l_col_list_str || ', allocated_lpn ';
2096: END IF;
2097:
2098: l_col_list_str := l_col_list_str || ', container_item_id ';

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

2096: END IF;
2097:
2098: l_col_list_str := l_col_list_str || ', container_item_id ';
2099:
2100: IF wms_plan_tasks_pvt.g_container_item_visible = 'T' THEN
2101: l_col_list_str := l_col_list_str || ', container_item ';
2102: END IF;
2103:
2104: l_col_list_str := l_col_list_str || ', from_lpn_id ';

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

2102: END IF;
2103:
2104: l_col_list_str := l_col_list_str || ', from_lpn_id ';
2105:
2106: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2107: l_col_list_str := l_col_list_str || ', from_lpn ';
2108: END IF;
2109:
2110: l_col_list_str := l_col_list_str || ', content_lpn_id ';

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

2108: END IF;
2109:
2110: l_col_list_str := l_col_list_str || ', content_lpn_id ';
2111:
2112: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2113: l_col_list_str := l_col_list_str || ', content_lpn ';
2114: END IF;
2115:
2116: l_col_list_str := l_col_list_str || ', to_lpn_id ';

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

2114: END IF;
2115:
2116: l_col_list_str := l_col_list_str || ', to_lpn_id ';
2117:
2118: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2119: l_col_list_str := l_col_list_str || ', to_lpn ';
2120: END IF;
2121:
2122: l_col_list_str := l_col_list_str

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

2127: || ', task_type_id '
2128: || ', task_type '
2129: || ', creation_time '
2130: || ', operation_plan_id ';
2131: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2132: l_col_list_str := l_col_list_str
2133: || ', operation_plan ';
2134: END IF;
2135: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

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

2131: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2132: l_col_list_str := l_col_list_str
2133: || ', operation_plan ';
2134: END IF;
2135: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
2136: l_col_list_str := l_col_list_str || ', operation_sequence ';
2137: END IF;
2138: l_col_list_str := l_col_list_str
2139: || ', op_plan_instance_id '

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

2144: || ', person '
2145: || ', effective_start_date '
2146: || ', effective_end_date '
2147: || ', person_resource_id ';
2148: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2149: l_col_list_str := l_col_list_str
2150: || ', person_resource_code ';
2151: END IF;
2152: l_col_list_str := l_col_list_str

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

2150: || ', person_resource_code ';
2151: END IF;
2152: l_col_list_str := l_col_list_str
2153: || ', machine_resource_id ';
2154: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2155: l_col_list_str := l_col_list_str
2156: || ', machine_resource_code ';
2157: END IF;
2158: l_col_list_str := l_col_list_str

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

2164: || ', wdt_last_updated_by '
2165: || ', is_modified '
2166: || ', secondary_transaction_uom '
2167: || ', secondary_transaction_quantity ';
2168: IF wms_plan_tasks_pvt.g_include_inbound OR wms_plan_tasks_pvt.g_include_crossdock THEN
2169: l_col_list_str := l_col_list_str
2170: || ', reference_id '
2171: || ', reference ';
2172: END IF;

Line 2174: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

2170: || ', reference_id '
2171: || ', reference ';
2172: END IF;
2173:
2174: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
2175: l_col_list_str := l_col_list_str
2176: || ', source_header '
2177: || ', line_number ';
2178: END IF;

Line 2181: IF wms_plan_tasks_pvt.g_include_crossdock THEN

2177: || ', line_number ';
2178: END IF;
2179:
2180: /* Bug 5259318 */
2181: IF wms_plan_tasks_pvt.g_include_crossdock THEN
2182: l_col_list_str := l_col_list_str || ', delivery ';
2183: END IF;
2184: /* End of Bug 5259318 */
2185:

Line 2193: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;

2189: /* This procedure fetched the 'Planned_task' records from WDTH */
2190: procedure get_completed_records(x_wdth_select_str OUT NOCOPY varchar2,
2191: x_wdth_from_str OUT NOCOPY varchar2,
2192: x_wdth_where_str OUT NOCOPY varchar2) is
2193: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2194: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2195: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2196: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2197:

Line 2194: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;

2190: procedure get_completed_records(x_wdth_select_str OUT NOCOPY varchar2,
2191: x_wdth_from_str OUT NOCOPY varchar2,
2192: x_wdth_where_str OUT NOCOPY varchar2) is
2193: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2194: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2195: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2196: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2197:
2198: begin

Line 2195: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;

2191: x_wdth_from_str OUT NOCOPY varchar2,
2192: x_wdth_where_str OUT NOCOPY varchar2) is
2193: l_wdth_select_str wms_plan_tasks_pvt.short_sql:= NULL;
2194: l_wdth_from_str wms_plan_tasks_pvt.short_sql:= NULL;
2195: l_wdth_where_str wms_plan_tasks_pvt.short_sql:= NULL;
2196: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2197:
2198: begin
2199: /**** First build the Select string ****/

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

2203: l_wdth_select_str := 'SELECT '
2204: || 'decode(wdth.is_parent,''N'',null,''+''), '
2205: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2206: || 'decode(wdth.parent_transaction_id,null,'''
2207: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2208: || wms_plan_tasks_pvt.g_plan_task_types(5)
2209: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2210: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2211: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */

Line 2208: || wms_plan_tasks_pvt.g_plan_task_types(5)

2204: || 'decode(wdth.is_parent,''N'',null,''+''), '
2205: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2206: || 'decode(wdth.parent_transaction_id,null,'''
2207: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2208: || wms_plan_tasks_pvt.g_plan_task_types(5)
2209: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2210: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2211: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2212: || 'wdth.transaction_id, ' /* transaction_temp_id */

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

2205: || 'decode(wdth.is_parent,''N'', decode(wdth.operation_plan_id,null,'
2206: || 'decode(wdth.parent_transaction_id,null,'''
2207: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2208: || wms_plan_tasks_pvt.g_plan_task_types(5)
2209: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2210: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2211: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2212: || 'wdth.transaction_id, ' /* transaction_temp_id */
2213: || 'wdth.parent_transaction_id, ' /*parent_line_id*/

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

2206: || 'decode(wdth.parent_transaction_id,null,'''
2207: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2208: || wms_plan_tasks_pvt.g_plan_task_types(5)
2209: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2210: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2211: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2212: || 'wdth.transaction_id, ' /* transaction_temp_id */
2213: || 'wdth.parent_transaction_id, ' /*parent_line_id*/
2214: || 'wdth.inventory_item_id, ' /*inventory_item_id*/

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

2207: || wms_plan_tasks_pvt.g_plan_task_types(1) || ''','''
2208: || wms_plan_tasks_pvt.g_plan_task_types(5)
2209: || '''),'''|| wms_plan_tasks_pvt.g_plan_task_types(2)
2210: || '''),decode(wdth.transaction_action_id,28,'''||wms_plan_tasks_pvt.g_plan_task_types(4)
2211: || ''',''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''')), ' /*plan_task */
2212: || 'wdth.transaction_id, ' /* transaction_temp_id */
2213: || 'wdth.parent_transaction_id, ' /*parent_line_id*/
2214: || 'wdth.inventory_item_id, ' /*inventory_item_id*/
2215: || 'msiv.concatenated_segments, '/*item*/

Line 2230: || wms_plan_tasks_pvt.g_plan_status_codes(3)

2226: || 'wdth.status, ' /*status_id*/
2227: || 'wdth.status, ' /*status_id_original*/
2228: || 'decode(wdth.status,'
2229: || '6, '''
2230: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2231: || ''', 11, '''
2232: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2233: || ''', 12, '''
2234: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/

Line 2232: || wms_plan_tasks_pvt.g_plan_status_codes(4)

2228: || 'decode(wdth.status,'
2229: || '6, '''
2230: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2231: || ''', 11, '''
2232: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2233: || ''', 12, '''
2234: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/
2235: || '''), '
2236: || 'wdth.transaction_type_id, '/*transaction_type_id*/

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

2230: || wms_plan_tasks_pvt.g_plan_status_codes(3)
2231: || ''', 11, '''
2232: || wms_plan_tasks_pvt.g_plan_status_codes(4)
2233: || ''', 12, '''
2234: || wms_plan_tasks_pvt.g_plan_status_codes(5)/*status*/
2235: || '''), '
2236: || 'wdth.transaction_type_id, '/*transaction_type_id*/
2237: || 'wdth.transaction_action_id, '/*transaction_action_id*/
2238: || 'wdth.transaction_source_type_id, '; --transaction_source_type_id

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

2236: || 'wdth.transaction_type_id, '/*transaction_type_id*/
2237: || 'wdth.transaction_action_id, '/*transaction_action_id*/
2238: || 'wdth.transaction_source_type_id, '; --transaction_source_type_id
2239:
2240: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2241: l_wdth_select_str := l_wdth_select_str
2242: || 'mtst.transaction_source_type_name, '; --transaction_source_type
2243: END IF;
2244:

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

2246: || 'to_number(null), ' /*transaction_source_id*/
2247: || 'to_number(null), ' /*transaction_source_line_id*/
2248: || 'wdth.transfer_organization_id, ';/* to_organization_id*/
2249:
2250: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2251: l_wdth_select_str := l_wdth_select_str
2252: || 'mp1.organization_code, '; /* to_organization_code */
2253: END IF;
2254: l_wdth_select_str := l_wdth_select_str

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

2254: l_wdth_select_str := l_wdth_select_str
2255: || 'wdth.dest_subinventory_code, ' /*to_subinventory*/
2256: || 'wdth.dest_locator_id, '; /*to_locator_id*/
2257:
2258: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2259: l_wdth_select_str := l_wdth_select_str
2260: || 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
2261: /* to_locator */
2262: END IF;

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

2265: || 'wdth.transaction_uom_code, ' /* transaction_uom */
2266: || 'wdth.transaction_quantity, ' /*transaction_quantity */
2267: || 'wdth.user_task_type, '; /*user_task_type_id*/
2268:
2269: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2270:
2271: l_wdth_select_str := l_wdth_select_str
2272: || 'bso.operation_code, '; --user_task_type
2273: END IF;

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

2285: l_wdth_select_str := l_wdth_select_str
2286: || 'to_number(null), '; /*allocated_lpn_id*/
2287:
2288:
2289: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
2290: l_wdth_select_str := l_wdth_select_str || 'null, '; --allocated_lpn
2291: END IF;
2292: l_wdth_select_str := l_wdth_select_str
2293: || 'to_number(null), '; /*container_item_id*/

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

2297: end if;
2298:
2299: l_wdth_select_str := l_wdth_select_str || 'wdth.lpn_id, ' ; /*from_lpn_id*/
2300:
2301: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2302: l_wdth_select_str := l_wdth_select_str
2303: || 'wlpn5.license_plate_number, ' ; /*from_lpn*/
2304: END IF;
2305:

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

2304: END IF;
2305:
2306: l_wdth_select_str := l_wdth_select_str || 'wdth.content_lpn_id, '; /*content_lpn_id*/
2307:
2308: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2309: l_wdth_select_str := l_wdth_select_str
2310: || 'wlpn3.license_plate_number, '; --content_lpn
2311: END IF;
2312:

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

2312:
2313: l_wdth_select_str := l_wdth_select_str
2314: || 'wdth.transfer_lpn_id, '; --to_lpn_id
2315:
2316: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2317: l_wdth_select_str := l_wdth_select_str
2318: || 'wlpn4.license_plate_number, '; --to_lpn
2319: END IF;
2320: l_wdth_select_str := l_wdth_select_str

Line 2328: || wms_plan_tasks_pvt.g_task_types(1)

2324: || 'wdth.priority, ' /*priority_original*/
2325: || 'wdth.task_type, ' /*task_type_id*/
2326: || 'decode(wdth.task_type,'
2327: || '1, '''
2328: || wms_plan_tasks_pvt.g_task_types(1)
2329: || ''', 2, '''
2330: || wms_plan_tasks_pvt.g_task_types(2)
2331: || ''', 3, '''
2332: || wms_plan_tasks_pvt.g_task_types(3)

Line 2330: || wms_plan_tasks_pvt.g_task_types(2)

2326: || 'decode(wdth.task_type,'
2327: || '1, '''
2328: || wms_plan_tasks_pvt.g_task_types(1)
2329: || ''', 2, '''
2330: || wms_plan_tasks_pvt.g_task_types(2)
2331: || ''', 3, '''
2332: || wms_plan_tasks_pvt.g_task_types(3)
2333: || ''', 4, '''
2334: || wms_plan_tasks_pvt.g_task_types(4)

Line 2332: || wms_plan_tasks_pvt.g_task_types(3)

2328: || wms_plan_tasks_pvt.g_task_types(1)
2329: || ''', 2, '''
2330: || wms_plan_tasks_pvt.g_task_types(2)
2331: || ''', 3, '''
2332: || wms_plan_tasks_pvt.g_task_types(3)
2333: || ''', 4, '''
2334: || wms_plan_tasks_pvt.g_task_types(4)
2335: || ''', 5, '''
2336: || wms_plan_tasks_pvt.g_task_types(5)

Line 2334: || wms_plan_tasks_pvt.g_task_types(4)

2330: || wms_plan_tasks_pvt.g_task_types(2)
2331: || ''', 3, '''
2332: || wms_plan_tasks_pvt.g_task_types(3)
2333: || ''', 4, '''
2334: || wms_plan_tasks_pvt.g_task_types(4)
2335: || ''', 5, '''
2336: || wms_plan_tasks_pvt.g_task_types(5)
2337: || ''', 6, '''
2338: || wms_plan_tasks_pvt.g_task_types(6)

Line 2336: || wms_plan_tasks_pvt.g_task_types(5)

2332: || wms_plan_tasks_pvt.g_task_types(3)
2333: || ''', 4, '''
2334: || wms_plan_tasks_pvt.g_task_types(4)
2335: || ''', 5, '''
2336: || wms_plan_tasks_pvt.g_task_types(5)
2337: || ''', 6, '''
2338: || wms_plan_tasks_pvt.g_task_types(6)
2339: || ''', 7, '''
2340: || wms_plan_tasks_pvt.g_task_types(7)

Line 2338: || wms_plan_tasks_pvt.g_task_types(6)

2334: || wms_plan_tasks_pvt.g_task_types(4)
2335: || ''', 5, '''
2336: || wms_plan_tasks_pvt.g_task_types(5)
2337: || ''', 6, '''
2338: || wms_plan_tasks_pvt.g_task_types(6)
2339: || ''', 7, '''
2340: || wms_plan_tasks_pvt.g_task_types(7)
2341: || ''', 8, '''
2342: || wms_plan_tasks_pvt.g_task_types(8)

Line 2340: || wms_plan_tasks_pvt.g_task_types(7)

2336: || wms_plan_tasks_pvt.g_task_types(5)
2337: || ''', 6, '''
2338: || wms_plan_tasks_pvt.g_task_types(6)
2339: || ''', 7, '''
2340: || wms_plan_tasks_pvt.g_task_types(7)
2341: || ''', 8, '''
2342: || wms_plan_tasks_pvt.g_task_types(8)
2343: || '''), '/*task*/
2344: || 'to_date(null), ' /*creation_time */

Line 2342: || wms_plan_tasks_pvt.g_task_types(8)

2338: || wms_plan_tasks_pvt.g_task_types(6)
2339: || ''', 7, '''
2340: || wms_plan_tasks_pvt.g_task_types(7)
2341: || ''', 8, '''
2342: || wms_plan_tasks_pvt.g_task_types(8)
2343: || '''), '/*task*/
2344: || 'to_date(null), ' /*creation_time */
2345: || 'wdth.operation_plan_id, ';/*operation_plan_id*/
2346: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

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

2342: || wms_plan_tasks_pvt.g_task_types(8)
2343: || '''), '/*task*/
2344: || 'to_date(null), ' /*creation_time */
2345: || 'wdth.operation_plan_id, ';/*operation_plan_id*/
2346: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2347: l_wdth_select_str := l_wdth_select_str
2348: || 'wop.operation_plan_name, ';/*operation_plan*/
2349: END IF;
2350: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

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

2346: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
2347: l_wdth_select_str := l_wdth_select_str
2348: || 'wop.operation_plan_name, ';/*operation_plan*/
2349: END IF;
2350: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
2351: l_wdth_select_str := l_wdth_select_str || ' to_number(null), '; --operation_sequence
2352: END IF;
2353: l_wdth_select_str := l_wdth_select_str
2354: || 'to_number(wdth.op_plan_instance_id), '/*operation_instance_id*/

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

2356: || 'wdth.task_id, '/*task_id*/
2357: || 'wdth.person_id, '/*person_id*/
2358: || 'wdth.person_id, ';/*person_id_original*/
2359:
2360: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2361: l_wdth_select_str := l_wdth_select_str || 'pap.full_name, '; --person_id
2362: END IF;
2363:
2364: l_wdth_select_str := l_wdth_select_str

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

2365: || 'wdth.effective_start_date, '/*effective_start_date*/
2366: || 'wdth.effective_end_date, '/*effective_end_date*/
2367: || 'wdth.person_resource_id, '; /*person_resource_id*/
2368:
2369: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2370: l_wdth_select_str := l_wdth_select_str
2371: || 'br1.resource_code, '; --person_resource_code
2372: END IF;
2373:

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

2373:
2374: l_wdth_select_str := l_wdth_select_str
2375: || 'wdth.machine_resource_id, '; --machine_resource_id
2376:
2377: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2378: l_wdth_select_str := l_wdth_select_str
2379: || 'br2.resource_code, '; --machine_resource_code
2380: END IF;
2381: l_wdth_select_str := l_wdth_select_str

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

2395: || ', mtl_txn_request_lines mtrl '
2396: || ', mtl_system_items_kfv msiv '
2397: || ', mtl_item_locations_kfv milv ';
2398:
2399: IF wms_plan_tasks_pvt.g_include_crossdock THEN /* CKR */
2400: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2401: END IF;
2402:
2403: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

Line 2403: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

2399: IF wms_plan_tasks_pvt.g_include_crossdock THEN /* CKR */
2400: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2401: END IF;
2402:
2403: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
2404: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2405: l_wdth_from_str := l_wdth_from_str
2406: || ', mtl_item_categories mic ';
2407: END IF;

Line 2404: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

2400: l_wdth_from_str := l_wdth_from_str || ', mtl_txn_request_headers mtrh ';
2401: END IF;
2402:
2403: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
2404: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2405: l_wdth_from_str := l_wdth_from_str
2406: || ', mtl_item_categories mic ';
2407: END IF;
2408:

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

2405: l_wdth_from_str := l_wdth_from_str
2406: || ', mtl_item_categories mic ';
2407: END IF;
2408:
2409: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2410: l_wdth_from_str := l_wdth_from_str
2411: || ', wms_license_plate_numbers wlpn5 ';
2412: END IF;
2413:

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

2410: l_wdth_from_str := l_wdth_from_str
2411: || ', wms_license_plate_numbers wlpn5 ';
2412: END IF;
2413:
2414: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2415: l_wdth_from_str := l_wdth_from_str
2416: || ', wms_license_plate_numbers wlpn3 ';
2417: END IF;
2418:

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

2415: l_wdth_from_str := l_wdth_from_str
2416: || ', wms_license_plate_numbers wlpn3 ';
2417: END IF;
2418:
2419: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2420: l_wdth_from_str := l_wdth_from_str
2421: || ', wms_license_plate_numbers wlpn4 ';
2422: END IF;
2423:

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

2420: l_wdth_from_str := l_wdth_from_str
2421: || ', wms_license_plate_numbers wlpn4 ';
2422: END IF;
2423:
2424: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2425: l_wdth_from_str := l_wdth_from_str
2426: || ', bom_standard_operations bso ';
2427: END IF;
2428:

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

2425: l_wdth_from_str := l_wdth_from_str
2426: || ', bom_standard_operations bso ';
2427: END IF;
2428:
2429: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2430: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
2431: END IF;
2432:
2433: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

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

2429: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2430: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
2431: END IF;
2432:
2433: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2434: l_wdth_from_str := l_wdth_from_str
2435: || ', mtl_txn_source_types mtst ';
2436: END IF;
2437:

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

2436: END IF;
2437:
2438: l_wdth_from_str := l_wdth_from_str || ', wms_op_plans_vl wop ';
2439:
2440: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2441: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
2442: END IF;
2443:
2444:

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

2441: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
2442: END IF;
2443:
2444:
2445: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2446: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
2447: END IF;
2448:
2449: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

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

2445: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2446: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
2447: END IF;
2448:
2449: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2450: l_wdth_from_str := l_wdth_from_str
2451: || ', per_all_people_f pap ';
2452: END IF;
2453: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

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

2449: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2450: l_wdth_from_str := l_wdth_from_str
2451: || ', per_all_people_f pap ';
2452: END IF;
2453: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2454: l_wdth_from_str := l_wdth_from_str || ', mtl_item_locations_kfv milv1 ';
2455: END IF;
2456:
2457:

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

2465: || 'AND wdth.organization_id = mtrl.organization_id '
2466: || 'AND wdth.inventory_item_id = mtrl.inventory_item_id ';
2467:
2468:
2469: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
2470: l_wdth_where_str := l_wdth_where_str
2471: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
2472: END IF;
2473:

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

2470: l_wdth_where_str := l_wdth_where_str
2471: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
2472: END IF;
2473:
2474: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
2475: l_wdth_where_str := l_wdth_where_str
2476: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
2477: END IF;
2478:

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

2475: l_wdth_where_str := l_wdth_where_str
2476: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
2477: END IF;
2478:
2479: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
2480: l_wdth_where_str := l_wdth_where_str
2481: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
2482: END IF;
2483:

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

2480: l_wdth_where_str := l_wdth_where_str
2481: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
2482: END IF;
2483:
2484: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2485: l_wdth_where_str := l_wdth_where_str
2486: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
2487: END IF;
2488: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

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

2484: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
2485: l_wdth_where_str := l_wdth_where_str
2486: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
2487: END IF;
2488: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
2489: l_wdth_where_str := l_wdth_where_str
2490: || 'AND wdth.person_id = pap.person_id (+)'
2491: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
2492: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';

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

2491: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
2492: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';
2493: END IF;
2494:
2495: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
2496: l_wdth_where_str := l_wdth_where_str
2497: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
2498: END IF;
2499:

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

2496: l_wdth_where_str := l_wdth_where_str
2497: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
2498: END IF;
2499:
2500: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
2501: l_wdth_where_str := l_wdth_where_str
2502: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
2503: END IF;
2504:

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

2501: l_wdth_where_str := l_wdth_where_str
2502: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
2503: END IF;
2504:
2505: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
2506: l_wdth_where_str := l_wdth_where_str
2507: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
2508: END IF;
2509:

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

2506: l_wdth_where_str := l_wdth_where_str
2507: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
2508: END IF;
2509:
2510: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
2511: l_wdth_where_str := l_wdth_where_str
2512: || 'AND wdth.user_task_type = bso.standard_operation_id(+) '
2513: || 'AND wdth.organization_id = bso.organization_id(+) ';
2514: END IF;

Line 2518: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

2514: END IF;
2515:
2516: l_wdth_where_str := l_wdth_where_str
2517: || 'AND wdth.operation_plan_id = wop.operation_plan_id(+) ';
2518: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
2519: l_wdth_where_str := l_wdth_where_str
2520: || 'AND wdth.organization_id = :org_id ';
2521: END IF;
2522:

Line 2523: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

2519: l_wdth_where_str := l_wdth_where_str
2520: || 'AND wdth.organization_id = :org_id ';
2521: END IF;
2522:
2523: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
2524: l_wdth_where_str := l_wdth_where_str
2525: || 'AND mic.category_set_id = :category_set_id ';
2526: END IF;
2527:

Line 2528: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

2524: l_wdth_where_str := l_wdth_where_str
2525: || 'AND mic.category_set_id = :category_set_id ';
2526: END IF;
2527:
2528: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
2529: l_wdth_where_str := l_wdth_where_str
2530: || 'AND wdth.inventory_item_id = mic.inventory_item_id (+) '
2531: || 'AND mic.organization_id(+) = wdth.organization_id '
2532: || 'AND mic.category_id = :item_category_id ';

Line 2535: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

2531: || 'AND mic.organization_id(+) = wdth.organization_id '
2532: || 'AND mic.category_id = :item_category_id ';
2533: END IF;
2534:
2535: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
2536: l_wdth_where_str := l_wdth_where_str
2537: || 'AND wdth.inventory_item_id = :item_id ';
2538: END IF;
2539:

Line 2540: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

2536: l_wdth_where_str := l_wdth_where_str
2537: || 'AND wdth.inventory_item_id = :item_id ';
2538: END IF;
2539:
2540: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
2541: l_wdth_where_str := l_wdth_where_str
2542: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
2543: END IF;
2544:

Line 2545: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

2541: l_wdth_where_str := l_wdth_where_str
2542: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
2543: END IF;
2544:
2545: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
2546: l_wdth_where_str := l_wdth_where_str
2547: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
2548: END IF;
2549:

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

2546: l_wdth_where_str := l_wdth_where_str
2547: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
2548: END IF;
2549:
2550: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
2551: l_wdth_where_str := l_wdth_where_str
2552: || 'and wdth.dest_locator_id = milv1.inventory_location_id (+)'
2553: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+)';
2554: END IF;

Line 2562: IF wms_plan_tasks_pvt.g_include_crossdock THEN

2558: l_wdth_where_str := l_wdth_where_str
2559: || 'and wdth.is_parent = ''N'''
2560: || 'and wdth.move_order_line_id = mtrl.line_id ';
2561: -- bug5163661
2562: IF wms_plan_tasks_pvt.g_include_crossdock THEN
2563: l_wdth_where_str := l_wdth_where_str
2564: /*|| 'and mtrl.backorder_delivery_detail_id IS NOT NULL '; --= wdd.delivery_detail_id ';*/ /* Bug 5259318 */
2565: || 'and mtrl.backorder_delivery_detail_id = wdd.delivery_detail_id ';
2566: l_wdth_where_str := l_wdth_where_str

Line 2575: 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

2571: || 'and mtrl.backorder_delivery_detail_id is null '; /*Bug 5223606 */
2572: END IF;
2573:
2574: /* Bug 5507934 */
2575: 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
2576: THEN
2577: l_wdth_where_str := l_wdth_where_str || 'AND wdd.organization_id = wdth.organization_id ';
2578: l_wdth_where_str := l_wdth_where_str || 'AND wdd.inventory_item_id = wdth.inventory_item_id ';
2579: END IF;

Line 2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;

2700: BEGIN
2701: IF l_debug = 1 THEN
2702: debug(' in set_globals ','set_globals');
2703: END IF;
2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;

Line 2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;

2701: IF l_debug = 1 THEN
2702: debug(' in set_globals ','set_globals');
2703: END IF;
2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;

Line 2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;

2702: debug(' in set_globals ','set_globals');
2703: END IF;
2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;

Line 2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;

2703: END IF;
2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;

Line 2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;

2704: wms_plan_tasks_pvt.g_organization_id := p_organization_id;
2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;

Line 2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;

2705: wms_plan_tasks_pvt.g_subinventory_code := p_subinventory_code;
2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;

Line 2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;

2706: wms_plan_tasks_pvt.g_locator_id := p_locator_id;
2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;

Line 2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;

2707: wms_plan_tasks_pvt.g_to_subinventory_code := p_to_subinventory_code;
2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;

Line 2712: wms_plan_tasks_pvt.g_person_id := p_person_id;

2708: wms_plan_tasks_pvt.g_to_locator_id := p_to_locator_id;
2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;

Line 2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;

2709: wms_plan_tasks_pvt.g_inventory_item_id := p_inventory_item_id;
2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;

Line 2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;

2710: wms_plan_tasks_pvt.g_category_set_id := p_category_set_id;
2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;

Line 2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;

2711: wms_plan_tasks_pvt.g_item_category_id := p_item_category_id;
2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;

Line 2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;

2712: wms_plan_tasks_pvt.g_person_id := p_person_id;
2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;

Line 2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;

2713: wms_plan_tasks_pvt.g_person_resource_id := p_person_resource_id;
2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;

Line 2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;

2714: wms_plan_tasks_pvt.g_equipment_type_id := p_equipment_type_id;
2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;

Line 2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;

2715: wms_plan_tasks_pvt.g_machine_resource_id := p_machine_resource_id;
2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;

Line 2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;

2716: wms_plan_tasks_pvt.g_machine_instance := p_machine_instance;
2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:

Line 2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;

2717: wms_plan_tasks_pvt.g_user_task_type_id := p_user_task_type_id;
2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;

Line 2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;

2718: wms_plan_tasks_pvt.g_from_task_quantity := p_from_task_quantity;
2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;

Line 2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;

2719: wms_plan_tasks_pvt.g_to_task_quantity := p_to_task_quantity;
2720: wms_plan_tasks_pvt.g_from_task_priority := p_from_task_priority;
2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;

Line 2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;

2721: wms_plan_tasks_pvt.g_to_task_priority := p_to_task_priority;
2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;

Line 2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;

2722: wms_plan_tasks_pvt.g_from_creation_date := p_from_creation_date;
2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;

Line 2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;

2723: wms_plan_tasks_pvt.g_to_creation_date := p_to_creation_date;
2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;

Line 2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;

2724:
2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:

Line 2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;

2725: wms_plan_tasks_pvt.g_is_unreleased_task := p_is_unreleased_task;
2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;

Line 2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;

2726: wms_plan_tasks_pvt.g_is_pending_task := p_is_pending_task;
2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;

Line 2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;

2727: wms_plan_tasks_pvt.g_is_queued_task := p_is_queued_task;
2728: wms_plan_tasks_pvt.g_is_dispatched_task := p_is_dispatched_task;
2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;

Line 2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;

2729: wms_plan_tasks_pvt.g_is_active_task := p_is_active_task;
2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;

Line 2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;

2730: wms_plan_tasks_pvt.g_is_loaded_task := p_is_loaded_task;
2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;

Line 2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;

2731: wms_plan_tasks_pvt.g_is_completed_task := p_is_completed_task ;
2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;

Line 2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;

2732:
2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;

Line 2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;

2733: wms_plan_tasks_pvt.g_include_inbound := p_include_inbound;
2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;

Line 2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;

2734: wms_plan_tasks_pvt.g_include_outbound := p_include_outbound;
2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;

Line 2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;

2735: wms_plan_tasks_pvt.g_include_crossdock := p_include_crossdock;
2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;

Line 2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;

2736: wms_plan_tasks_pvt.g_include_manufacturing := p_include_manufacturing;
2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;

Line 2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;

2737: wms_plan_tasks_pvt.g_include_warehousing := p_include_warehousing;
2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;

Line 2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;

2738: wms_plan_tasks_pvt.g_from_po_header_id := p_from_po_header_id;
2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;

Line 2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;

2739: wms_plan_tasks_pvt.g_to_po_header_id := p_to_po_header_id;
2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;

Line 2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;

2740: wms_plan_tasks_pvt.g_from_purchase_order := p_from_purchase_order;
2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;

Line 2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;

2741: wms_plan_tasks_pvt.g_to_purchase_order := p_to_purchase_order;
2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;

Line 2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;

2742: wms_plan_tasks_pvt.g_from_rma_header_id := p_from_rma_header_id;
2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;

Line 2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;

2743: wms_plan_tasks_pvt.g_to_rma_header_id := p_to_rma_header_id;
2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;

Line 2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;

2744: wms_plan_tasks_pvt.g_from_rma := p_from_rma;
2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;

Line 2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;

2745: wms_plan_tasks_pvt.g_to_rma := p_to_rma;
2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;

Line 2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;

2746: wms_plan_tasks_pvt.g_from_requisition_header_id := p_from_requisition_header_id;
2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;

Line 2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;

2747: wms_plan_tasks_pvt.g_to_requisition_header_id:= p_to_requisition_header_id;
2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;

Line 2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;

2748: wms_plan_tasks_pvt.g_from_requisition := p_from_requisition;
2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;

Line 2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;

2749: wms_plan_tasks_pvt.g_to_requisition := p_to_requisition;
2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;

Line 2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;

2750: wms_plan_tasks_pvt.g_from_shipment_number := p_from_shipment_number;
2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;

Line 2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;

2751: wms_plan_tasks_pvt.g_to_shipment_number := p_to_shipment_number;
2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;

Line 2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;

2752: wms_plan_tasks_pvt.g_include_sales_orders := p_include_sales_orders;
2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;

Line 2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;

2753: wms_plan_tasks_pvt.g_include_internal_orders := p_include_internal_orders;
2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;

Line 2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;

2754: wms_plan_tasks_pvt.g_from_sales_order_id := p_from_sales_order_id;
2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;

Line 2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;

2755: wms_plan_tasks_pvt.g_to_sales_order_id := p_to_sales_order_id;
2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;

Line 2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;

2756: wms_plan_tasks_pvt.g_from_pick_slip_number := p_from_pick_slip_number;
2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;

Line 2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;

2757: wms_plan_tasks_pvt.g_to_pick_slip_number := p_to_pick_slip_number;
2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;

Line 2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;

2758: wms_plan_tasks_pvt.g_customer_id := p_customer_id;
2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;

Line 2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;

2759: wms_plan_tasks_pvt.g_customer_category := p_customer_category;
2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;

Line 2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;

2760: wms_plan_tasks_pvt.g_delivery_id := p_delivery_id;
2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;

Line 2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;

2761: wms_plan_tasks_pvt.g_carrier_id := p_carrier_id;
2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;

Line 2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;

2762: wms_plan_tasks_pvt.g_ship_method := p_ship_method;
2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;

Line 2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;

2763: wms_plan_tasks_pvt.g_shipment_priority := p_shipment_priority;
2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;

Line 2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;

2764: wms_plan_tasks_pvt.g_trip_id := p_trip_id;
2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;

Line 2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;

2765: wms_plan_tasks_pvt.g_from_shipment_date := p_from_shipment_date;
2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;

Line 2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;

2766: wms_plan_tasks_pvt.g_to_shipment_date := p_to_shipment_date;
2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;

Line 2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;

2767: wms_plan_tasks_pvt.g_ship_to_state := p_ship_to_state;
2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;

Line 2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;

2768: wms_plan_tasks_pvt.g_ship_to_country := p_ship_to_country;
2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;

Line 2773: wms_plan_tasks_pvt.g_from_job := p_from_job;

2769: wms_plan_tasks_pvt.g_ship_to_postal_code := p_ship_to_postal_code;
2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;

Line 2774: wms_plan_tasks_pvt.g_to_job := p_to_job;

2770: wms_plan_tasks_pvt.g_from_number_of_order_lines := p_from_number_of_order_lines;
2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;

Line 2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;

2771: wms_plan_tasks_pvt.g_to_number_of_order_lines := p_to_number_of_order_lines;
2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;

Line 2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;

2772: wms_plan_tasks_pvt.g_manufacturing_type := p_manufacturing_type;
2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;

Line 2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;

2773: wms_plan_tasks_pvt.g_from_job := p_from_job;
2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;

Line 2778: wms_plan_tasks_pvt.g_from_line := p_from_line;

2774: wms_plan_tasks_pvt.g_to_job := p_to_job;
2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;

Line 2779: wms_plan_tasks_pvt.g_to_line := p_to_line;

2775: wms_plan_tasks_pvt.g_assembly_id := p_assembly_id;
2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;

Line 2780: wms_plan_tasks_pvt.g_department_id := p_department_id;

2776: wms_plan_tasks_pvt.g_from_start_date := p_from_start_date;
2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;

Line 2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;

2777: wms_plan_tasks_pvt.g_to_start_date := p_to_start_date;
2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;

Line 2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;

2778: wms_plan_tasks_pvt.g_from_line := p_from_line;
2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;

Line 2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;

2779: wms_plan_tasks_pvt.g_to_line := p_to_line;
2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;

Line 2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;

2780: wms_plan_tasks_pvt.g_department_id := p_department_id;
2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;

Line 2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;

2781: wms_plan_tasks_pvt.g_include_replenishment := p_include_replenishment;
2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;

Line 2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;

2782: wms_plan_tasks_pvt.g_from_replenishment_mo := p_from_replenishment_mo;
2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;

Line 2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;

2783: wms_plan_tasks_pvt.g_to_replenishment_mo := p_to_replenishment_mo;
2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;

Line 2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;

2784: wms_plan_tasks_pvt.g_include_mo_transfer := p_include_mo_transfer;
2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:

Line 2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;

2785: wms_plan_tasks_pvt.g_include_mo_issue := p_include_mo_issue;
2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;

Line 2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;

2786: wms_plan_tasks_pvt.g_from_transfer_issue_mo := p_from_transfer_issue_mo;
2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;

Line 2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;

2787: wms_plan_tasks_pvt.g_to_transfer_issue_mo := p_to_transfer_issue_mo;
2788: wms_plan_tasks_pvt.g_include_lpn_putaway := p_include_lpn_putaway;
2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:

Line 2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;

2789: wms_plan_tasks_pvt.g_include_staging_move := p_include_staging_move;
2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;

Line 2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;

2790: wms_plan_tasks_pvt.g_include_cycle_count := p_include_cycle_count;
2791: wms_plan_tasks_pvt.g_cycle_count_name := p_cycle_count_name;
2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;

Line 2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;

2792:
2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;

Line 2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;

2793: wms_plan_tasks_pvt.g_query_independent_tasks := p_query_independent_tasks;
2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:

Line 2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;

2794: wms_plan_tasks_pvt.g_query_planned_tasks := p_query_planned_tasks;
2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;

Line 2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;

2795:
2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;

Line 2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;

2796: wms_plan_tasks_pvt.g_is_pending_plan := p_is_pending_plan;
2797: wms_plan_tasks_pvt.g_is_inprogress_plan := p_is_inprogress_plan;
2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;

Line 2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;

2798: wms_plan_tasks_pvt.g_is_completed_plan := p_is_completed_plan;
2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

Line 2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;

2799: wms_plan_tasks_pvt.g_is_cancelled_plan := p_is_cancelled_plan;
2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

Line 2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;

2800: wms_plan_tasks_pvt.g_is_aborted_plan := p_is_aborted_plan;
2801:
2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

Line 2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

2802: wms_plan_tasks_pvt.g_activity_id := p_activity_id;
2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

2803: wms_plan_tasks_pvt.g_plan_type_id := p_plan_type_id;
2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

Line 2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

2804: wms_plan_tasks_pvt.g_op_plan_id := p_op_plan_id;
2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;

Line 2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL

2805:
2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;

Line 2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

2806: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;
2814:

Line 2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

2807: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;
2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR

Line 2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;

2808: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2809: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
2810: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;
2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR

Line 2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR

2811: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;
2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR

Line 2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR

2812: wms_plan_tasks_pvt.g_inbound_specific_query := TRUE;
2813: END IF;
2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR

Line 2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR

2813: END IF;
2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR

Line 2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR

2814:
2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR

Line 2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR

2815: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL OR
2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR

Line 2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR

2816: wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL OR
2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR

Line 2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR

2817: wms_plan_tasks_pvt.g_customer_id IS NOT NULL OR
2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR

Line 2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR

2818: wms_plan_tasks_pvt.g_customer_category IS NOT NULL OR
2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR

Line 2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR

2819: wms_plan_tasks_pvt.g_delivery_id IS NOT NULL OR
2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR

Line 2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR

2820: wms_plan_tasks_pvt.g_carrier_id IS NOT NULL OR
2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN

Line 2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR

2821: wms_plan_tasks_pvt.g_ship_method IS NOT NULL OR
2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;

Line 2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR

2822: wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL OR
2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2830: END IF;

Line 2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR

2823: wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR
2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2830: END IF;
2831:

Line 2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN

2824: wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL OR
2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2830: END IF;
2831:
2832:

Line 2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;

2825: wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL OR
2826: wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL OR
2827: wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL OR
2828: wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL THEN
2829: wms_plan_tasks_pvt.g_outbound_specific_query := TRUE;
2830: END IF;
2831:
2832:
2833:

Line 2837: wms_plan_tasks_pvt.g_task_types(i) := wms_waveplan_tasks_pvt.g_task_types(i);

2833:
2834: /*
2835: IF wms_waveplan_tasks_pvt.g_task_types.count > 0 THEN
2836: FOR i IN 1..wms_waveplan_tasks_pvt.g_task_types.count LOOP
2837: wms_plan_tasks_pvt.g_task_types(i) := wms_waveplan_tasks_pvt.g_task_types(i);
2838: END LOOP;
2839: END IF;
2840:
2841: IF wms_waveplan_tasks_pvt.g_task_types_orig.count > 0 THEN

Line 2843: wms_plan_tasks_pvt.g_task_types_orig(i) := wms_waveplan_tasks_pvt.g_task_types_orig(i);

2839: END IF;
2840:
2841: IF wms_waveplan_tasks_pvt.g_task_types_orig.count > 0 THEN
2842: FOR i IN 1..wms_waveplan_tasks_pvt.g_task_types_orig.count LOOP
2843: wms_plan_tasks_pvt.g_task_types_orig(i) := wms_waveplan_tasks_pvt.g_task_types_orig(i);
2844: END LOOP;
2845: END IF;
2846:
2847: IF wms_waveplan_tasks_pvt.g_status_codes.count > 0 THEN

Line 2849: wms_plan_tasks_pvt.g_status_codes(i) := wms_waveplan_tasks_pvt.g_status_codes(i);

2845: END IF;
2846:
2847: IF wms_waveplan_tasks_pvt.g_status_codes.count > 0 THEN
2848: FOR i IN 1..wms_waveplan_tasks_pvt.g_status_codes.count LOOP
2849: wms_plan_tasks_pvt.g_status_codes(i) := wms_waveplan_tasks_pvt.g_status_codes(i);
2850: END LOOP;
2851: END IF;
2852:
2853: IF wms_waveplan_tasks_pvt.g_status_codes_orig.count > 0 THEN

Line 2855: wms_plan_tasks_pvt.g_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_status_codes_orig(i);

2851: END IF;
2852:
2853: IF wms_waveplan_tasks_pvt.g_status_codes_orig.count > 0 THEN
2854: FOR i IN 1..wms_waveplan_tasks_pvt.g_status_codes_orig.count LOOP
2855: wms_plan_tasks_pvt.g_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_status_codes_orig(i);
2856: END LOOP;
2857: END IF;
2858:
2859: IF wms_waveplan_tasks_pvt.g_plan_task_types.count > 0 THEN

Line 2861: wms_plan_tasks_pvt.g_plan_task_types(i) := wms_waveplan_tasks_pvt.g_plan_task_types(i);

2857: END IF;
2858:
2859: IF wms_waveplan_tasks_pvt.g_plan_task_types.count > 0 THEN
2860: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_task_types.count LOOP
2861: wms_plan_tasks_pvt.g_plan_task_types(i) := wms_waveplan_tasks_pvt.g_plan_task_types(i);
2862: END LOOP;
2863: END IF;
2864:
2865: IF wms_waveplan_tasks_pvt.g_plan_task_types_orig.count > 0 THEN

Line 2867: wms_plan_tasks_pvt.g_plan_task_types_orig(i) := wms_waveplan_tasks_pvt.g_plan_task_types_orig(i);

2863: END IF;
2864:
2865: IF wms_waveplan_tasks_pvt.g_plan_task_types_orig.count > 0 THEN
2866: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_task_types_orig.count LOOP
2867: wms_plan_tasks_pvt.g_plan_task_types_orig(i) := wms_waveplan_tasks_pvt.g_plan_task_types_orig(i);
2868: END LOOP;
2869: END IF;
2870:
2871: IF wms_waveplan_tasks_pvt.g_plan_status_codes.count > 0 THEN

Line 2873: wms_plan_tasks_pvt.g_plan_status_codes(i) := wms_waveplan_tasks_pvt.g_plan_status_codes(i);

2869: END IF;
2870:
2871: IF wms_waveplan_tasks_pvt.g_plan_status_codes.count > 0 THEN
2872: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_status_codes.count LOOP
2873: wms_plan_tasks_pvt.g_plan_status_codes(i) := wms_waveplan_tasks_pvt.g_plan_status_codes(i);
2874: END LOOP;
2875: END IF;
2876:
2877: IF wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count > 0 THEN

Line 2879: wms_plan_tasks_pvt.g_plan_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_plan_status_codes_orig(i);

2875: END IF;
2876:
2877: IF wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count > 0 THEN
2878: FOR i IN 1..wms_waveplan_tasks_pvt.g_plan_status_codes_orig.count LOOP
2879: wms_plan_tasks_pvt.g_plan_status_codes_orig(i) := wms_waveplan_tasks_pvt.g_plan_status_codes_orig(i);
2880: END LOOP;
2881: END IF;
2882: */
2883:

Line 2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;

2880: END LOOP;
2881: END IF;
2882: */
2883:
2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;

Line 2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;

2881: END IF;
2882: */
2883:
2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;

Line 2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;

2882: */
2883:
2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;

Line 2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;

2883:
2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;

Line 2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;

2884: wms_plan_tasks_pvt.g_task_types := wms_waveplan_tasks_pvt.g_task_types;
2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2892:

Line 2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;

2885: wms_plan_tasks_pvt.g_task_types_orig := wms_waveplan_tasks_pvt.g_task_types_orig;
2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2892:
2893: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

Line 2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;

2886: wms_plan_tasks_pvt.g_status_codes := wms_waveplan_tasks_pvt.g_status_codes;
2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2892:
2893: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2894:

Line 2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;

2887: wms_plan_tasks_pvt.g_status_codes_orig := wms_waveplan_tasks_pvt.g_status_codes_orig;
2888: wms_plan_tasks_pvt.g_plan_task_types := wms_waveplan_tasks_pvt.g_plan_task_types;
2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2892:
2893: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2894:
2895: END set_globals;

Line 2893: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

2889: wms_plan_tasks_pvt.g_plan_task_types_orig := wms_waveplan_tasks_pvt.g_plan_task_types_orig;
2890: wms_plan_tasks_pvt.g_plan_status_codes := wms_waveplan_tasks_pvt.g_plan_status_codes;
2891: wms_plan_tasks_pvt.g_plan_status_codes_orig := wms_waveplan_tasks_pvt.g_plan_status_codes_orig;
2892:
2893: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
2894:
2895: END set_globals;
2896:
2897: PROCEDURE get_inbound_specific_query(

Line 2902: l_inbound_select wms_plan_tasks_pvt.short_sql;

2898: x_inbound_select_str OUT NOCOPY VARCHAR2
2899: ,x_inbound_from_str OUT NOCOPY VARCHAR2
2900: ,x_inbound_where_str OUT NOCOPY VARCHAR2
2901: ,p_is_completed_rec IN NUMBER) IS
2902: l_inbound_select wms_plan_tasks_pvt.short_sql;
2903: l_inbound_from wms_plan_tasks_pvt.short_sql;
2904: l_inbound_where VARCHAR2(5000);
2905: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2906:

Line 2903: l_inbound_from wms_plan_tasks_pvt.short_sql;

2899: ,x_inbound_from_str OUT NOCOPY VARCHAR2
2900: ,x_inbound_where_str OUT NOCOPY VARCHAR2
2901: ,p_is_completed_rec IN NUMBER) IS
2902: l_inbound_select wms_plan_tasks_pvt.short_sql;
2903: l_inbound_from wms_plan_tasks_pvt.short_sql;
2904: l_inbound_where VARCHAR2(5000);
2905: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
2906:
2907: BEGIN

Line 2933: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

2929: || '''REQ'', ''SHIPMENT_LINE_ID'', '
2930: || '''RMA'', ''ORDER_LINE_ID'') ';
2931: END IF;
2932:
2933: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2934: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2935: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
2936: ', pl.line_num '; -- line_number
2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

Line 2934: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

2930: || '''RMA'', ''ORDER_LINE_ID'') ';
2931: END IF;
2932:
2933: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2934: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2935: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
2936: ', pl.line_num '; -- line_number
2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

Line 2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

2933: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2934: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2935: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
2936: ', pl.line_num '; -- line_number
2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2939: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
2940: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
2941: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

2934: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2935: l_inbound_select := l_inbound_select || ', ph.segment1 ' || /* source_header*/
2936: ', pl.line_num '; -- line_number
2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2939: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
2940: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
2941: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2942: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

Line 2941: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

2937: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2939: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
2940: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
2941: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2942: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2943: l_inbound_select := l_inbound_select || ', prh.segment1 '; -- source_header
2944: l_inbound_select := l_inbound_select || ', prl.line_num '; -- line_number
2945: END IF;

Line 2942: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

2938: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2939: l_inbound_select := l_inbound_select || ', ooh.order_number '; -- source_header
2940: l_inbound_select := l_inbound_select || ', ool.line_number '; -- line_number
2941: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2942: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2943: l_inbound_select := l_inbound_select || ', prh.segment1 '; -- source_header
2944: l_inbound_select := l_inbound_select || ', prl.line_num '; -- line_number
2945: END IF;
2946:

Line 2950: IF wms_plan_tasks_pvt.g_include_crossdock then

2946:
2947: /* Bug 5259318 */
2948: IF g_delivery_visible = 'T'
2949: THEN
2950: IF wms_plan_tasks_pvt.g_include_crossdock then
2951: l_inbound_select := l_inbound_select || ', wnd.name '; --delivery
2952: END IF;
2953: END IF;
2954: /* End of Bug 5259318 */

Line 2958: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

2954: /* End of Bug 5259318 */
2955:
2956:
2957: /* inbound specific from */
2958: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2959: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2960: IF p_is_completed_rec = 0 THEN
2961: l_inbound_from := l_inbound_from || ', po_line_locations_all pll';
2962: END IF;

Line 2959: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

2955:
2956:
2957: /* inbound specific from */
2958: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
2959: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
2960: IF p_is_completed_rec = 0 THEN
2961: l_inbound_from := l_inbound_from || ', po_line_locations_all pll';
2962: END IF;
2963:

Line 2967: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

2963:
2964: l_inbound_from := l_inbound_from
2965: || ', po_headers_all ph'
2966: ||', po_lines_all pl';
2967: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2968: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2969: l_inbound_from := l_inbound_from
2970: || ', oe_order_headers_all ooh'
2971: || ', oe_order_lines_all ool';

Line 2968: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

2964: l_inbound_from := l_inbound_from
2965: || ', po_headers_all ph'
2966: ||', po_lines_all pl';
2967: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
2968: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2969: l_inbound_from := l_inbound_from
2970: || ', oe_order_headers_all ooh'
2971: || ', oe_order_lines_all ool';
2972: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 2972: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

2968: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
2969: l_inbound_from := l_inbound_from
2970: || ', oe_order_headers_all ooh'
2971: || ', oe_order_lines_all ool';
2972: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2973: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2974: l_inbound_from := l_inbound_from
2975: || ', rcv_shipment_headers rsh'
2976: || ', rcv_shipment_lines rsl'

Line 2973: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

2969: l_inbound_from := l_inbound_from
2970: || ', oe_order_headers_all ooh'
2971: || ', oe_order_lines_all ool';
2972: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
2973: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
2974: l_inbound_from := l_inbound_from
2975: || ', rcv_shipment_headers rsh'
2976: || ', rcv_shipment_lines rsl'
2977: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables

Line 2980: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL

2976: || ', rcv_shipment_lines rsl'
2977: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables
2978: || ', po_requisition_headers_all prh'
2979: || ', po_requisition_lines_all prl';
2980: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
2981: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
2982: l_inbound_from := l_inbound_from
2983: || ', rcv_shipment_headers rsh'
2984: || ', rcv_shipment_lines rsl';

Line 2981: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

2977: -- MOAC changed po_requisition_headers and po_requisition_lines to _ALL tables
2978: || ', po_requisition_headers_all prh'
2979: || ', po_requisition_lines_all prl';
2980: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
2981: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
2982: l_inbound_from := l_inbound_from
2983: || ', rcv_shipment_headers rsh'
2984: || ', rcv_shipment_lines rsl';
2985: END IF;

Line 3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

2999: || ' AND mtrh.move_order_type = 6 '
3000: || ' AND mmtt.move_order_line_id = mtrl.line_id ';
3001:
3002: IF NOT(
3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

Line 3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL

3000: || ' AND mmtt.move_order_line_id = mtrl.line_id ';
3001:
3002: IF NOT(
3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL

Line 3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3001:
3002: IF NOT(
3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3009: ) THEN

Line 3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL

3002: IF NOT(
3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3009: ) THEN
3010: l_inbound_where := l_inbound_where

Line 3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3003: wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3009: ) THEN
3010: l_inbound_where := l_inbound_where
3011: || ' AND mtrl.reference in (''PO_LINE_LOCATION_ID'', ''ORDER_LINE_ID'', ''SHIPMENT_LINE_ID'') ';

Line 3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL

3004: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL
3005: OR wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3006: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL
3007: OR wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3008: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL
3009: ) THEN
3010: l_inbound_where := l_inbound_where
3011: || ' AND mtrl.reference in (''PO_LINE_LOCATION_ID'', ''ORDER_LINE_ID'', ''SHIPMENT_LINE_ID'') ';
3012: END IF;

Line 3017: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL

3013: END IF;
3014:
3015: -- Build the inbound section(FROM and WHERE) of the query
3016:
3017: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3018: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3019: l_inbound_where := l_inbound_where
3020: || ' AND pl.po_header_id = ph.po_header_id ';
3021:

Line 3018: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3014:
3015: -- Build the inbound section(FROM and WHERE) of the query
3016:
3017: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL
3018: OR wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3019: l_inbound_where := l_inbound_where
3020: || ' AND pl.po_header_id = ph.po_header_id ';
3021:
3022: IF p_is_completed_rec = 0 THEN --not completed

Line 3026: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

3022: IF p_is_completed_rec = 0 THEN --not completed
3023: l_inbound_where := l_inbound_where
3024: || ' AND pll.po_line_id = pl.po_line_id '
3025: || ' AND pll.line_location_id = mtrl.reference_id ';
3026: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
3027: l_inbound_where := l_inbound_where
3028: || 'AND pll.po_header_id >= :from_po_header_id ';
3029: END IF;
3030:

Line 3031: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3027: l_inbound_where := l_inbound_where
3028: || 'AND pll.po_header_id >= :from_po_header_id ';
3029: END IF;
3030:
3031: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3032: l_inbound_where := l_inbound_where
3033: || 'AND pll.po_header_id <= :to_po_header_id ';
3034: END IF;
3035: ELSE -- is completed

Line 3040: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN

3036:
3037: l_inbound_where := l_inbound_where
3038: || ' AND rt.po_line_id = pl.po_line_id ';
3039:
3040: IF wms_plan_tasks_pvt.g_from_po_header_id IS NOT NULL THEN
3041: l_inbound_where := l_inbound_where
3042: || 'AND rt.po_header_id >= :from_po_header_id ';
3043: END IF;
3044:

Line 3045: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN

3041: l_inbound_where := l_inbound_where
3042: || 'AND rt.po_header_id >= :from_po_header_id ';
3043: END IF;
3044:
3045: IF wms_plan_tasks_pvt.g_to_po_header_id IS NOT NULL THEN
3046: l_inbound_where := l_inbound_where
3047: || 'AND rt.po_header_id <= :to_po_header_id ';
3048: END IF;
3049: END IF;

Line 3050: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL

3046: l_inbound_where := l_inbound_where
3047: || 'AND rt.po_header_id <= :to_po_header_id ';
3048: END IF;
3049: END IF;
3050: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3051: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3052: l_inbound_where := l_inbound_where
3053: || ' AND ooh.header_id = ool.header_id ';
3054:

Line 3051: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3047: || 'AND rt.po_header_id <= :to_po_header_id ';
3048: END IF;
3049: END IF;
3050: ELSIF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL
3051: OR wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3052: l_inbound_where := l_inbound_where
3053: || ' AND ooh.header_id = ool.header_id ';
3054:
3055: IF p_is_completed_rec = 0 THEN -- not completed

Line 3060: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

3056: l_inbound_where := l_inbound_where
3057: || ' AND mtrl.reference_id = ool.line_id '
3058: || ' AND mtrl.reference = ''ORDER_LINE_ID'' ';
3059:
3060: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
3061: l_inbound_where := l_inbound_where
3062: || 'AND ooh.header_id >= :from_rma_header_id ';
3063: END IF;
3064:

Line 3065: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3061: l_inbound_where := l_inbound_where
3062: || 'AND ooh.header_id >= :from_rma_header_id ';
3063: END IF;
3064:
3065: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3066: l_inbound_where := l_inbound_where
3067: || 'AND ooh.header_id <= :to_rma_header_id ';
3068: END IF;
3069: ELSE

Line 3073: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN

3069: ELSE
3070: l_inbound_where := l_inbound_where
3071: || ' AND rt.oe_order_line_id = ool.line_id ';
3072:
3073: IF wms_plan_tasks_pvt.g_from_rma_header_id IS NOT NULL THEN
3074: l_inbound_where := l_inbound_where
3075: || 'AND rt.oe_order_header_id >= :from_rma_header_id ';
3076: END IF;
3077:

Line 3078: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN

3074: l_inbound_where := l_inbound_where
3075: || 'AND rt.oe_order_header_id >= :from_rma_header_id ';
3076: END IF;
3077:
3078: IF wms_plan_tasks_pvt.g_to_rma_header_id IS NOT NULL THEN
3079: l_inbound_where := l_inbound_where
3080: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3081: END IF;
3082: END IF;

Line 3083: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL

3079: l_inbound_where := l_inbound_where
3080: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3081: END IF;
3082: END IF;
3083: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3084: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3085: l_inbound_where := l_inbound_where
3086: || ' AND rsl.requisition_line_id = prl.requisition_line_id '
3087: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '

Line 3084: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3080: || 'AND rt.oe_order_header_id <= :to_rma_header_id ';
3081: END IF;
3082: END IF;
3083: ELSIF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL
3084: OR wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3085: l_inbound_where := l_inbound_where
3086: || ' AND rsl.requisition_line_id = prl.requisition_line_id '
3087: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3088: || ' AND prh.requisition_header_id = prl.requisition_header_id ';

Line 3095: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

3091: l_inbound_where := l_inbound_where
3092: || ' AND mtrl.reference_id = rsl.shipment_line_id '
3093: || ' AND mtrl.reference = ''SHIPMENT_LINE_ID'' ';
3094:
3095: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
3096: l_inbound_where := l_inbound_where
3097: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3098: END IF;
3099:

Line 3100: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3096: l_inbound_where := l_inbound_where
3097: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3098: END IF;
3099:
3100: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3101: l_inbound_where := l_inbound_where
3102: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3103: END IF;
3104: ELSE -- completed

Line 3108: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN

3104: ELSE -- completed
3105: l_inbound_where := l_inbound_where
3106: || ' AND rt.shipment_line_id = rsl.shipment_line_id ';
3107:
3108: IF wms_plan_tasks_pvt.g_from_requisition_header_id IS NOT NULL THEN
3109: l_inbound_where := l_inbound_where
3110: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3111: END IF;
3112:

Line 3113: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN

3109: l_inbound_where := l_inbound_where
3110: || 'AND prh.requisition_header_id >= :from_requisition_header_id ';
3111: END IF;
3112:
3113: IF wms_plan_tasks_pvt.g_to_requisition_header_id IS NOT NULL THEN
3114: l_inbound_where := l_inbound_where
3115: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3116: END IF;
3117: END IF;

Line 3118: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL

3114: l_inbound_where := l_inbound_where
3115: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3116: END IF;
3117: END IF;
3118: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3119: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3120: l_inbound_where := l_inbound_where
3121: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3122: || ' AND rsl.requisition_line_id IS NULL ';

Line 3119: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

3115: || 'AND prh.requisition_header_id <= :to_requisition_header_id ';
3116: END IF;
3117: END IF;
3118: ELSIF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL
3119: OR wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3120: l_inbound_where := l_inbound_where
3121: || ' AND rsh.shipment_header_id = rsl.shipment_header_id '
3122: || ' AND rsl.requisition_line_id IS NULL ';
3123:

Line 3136: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN

3132: || ' AND rt.po_line_id IS NULL '
3133: || ' AND rt.oe_order_header_id IS NULL ';
3134: END IF;
3135:
3136: IF wms_plan_tasks_pvt.g_from_shipment_number IS NOT NULL THEN
3137: l_inbound_where := l_inbound_where
3138: || ' AND rsh.shipment_num >= :from_shipment_number ';
3139: END IF;
3140:

Line 3141: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN

3137: l_inbound_where := l_inbound_where
3138: || ' AND rsh.shipment_num >= :from_shipment_number ';
3139: END IF;
3140:
3141: IF wms_plan_tasks_pvt.g_to_shipment_number IS NOT NULL THEN
3142: l_inbound_where := l_inbound_where
3143: || ' AND rsh.shipment_num <= :to_shipment_number ';
3144: END IF;
3145: END IF;

Line 3160: --l_inbound_select wms_plan_tasks_pvt.short_sql;

3156: PROCEDURE get_outbound_specific_query(
3157: x_outbound_from_str OUT NOCOPY VARCHAR2
3158: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3159: ) IS
3160: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3161: l_from_outbound wms_plan_tasks_pvt.short_sql;
3162: l_where_outbound wms_plan_tasks_pvt.short_sql;
3163: l_is_range_so BOOLEAN;
3164: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);

Line 3161: l_from_outbound wms_plan_tasks_pvt.short_sql;

3157: x_outbound_from_str OUT NOCOPY VARCHAR2
3158: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3159: ) IS
3160: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3161: l_from_outbound wms_plan_tasks_pvt.short_sql;
3162: l_where_outbound wms_plan_tasks_pvt.short_sql;
3163: l_is_range_so BOOLEAN;
3164: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3165:

Line 3162: l_where_outbound wms_plan_tasks_pvt.short_sql;

3158: ,x_outbound_where_str OUT NOCOPY VARCHAR2
3159: ) IS
3160: --l_inbound_select wms_plan_tasks_pvt.short_sql;
3161: l_from_outbound wms_plan_tasks_pvt.short_sql;
3162: l_where_outbound wms_plan_tasks_pvt.short_sql;
3163: l_is_range_so BOOLEAN;
3164: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3165:
3166: BEGIN

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

3167: /**** Outbound specific queries ****/
3168: IF l_debug = 1 THEN
3169: debug(' in get_outbound_specific_query.. ' );
3170: END IF;
3171: if (wms_plan_tasks_pvt.g_from_sales_order_id = wms_plan_tasks_pvt.g_to_sales_order_id) then
3172: l_is_range_so := FALSE;
3173: else/*range so is TRUE if from or to is null or form<> to*/
3174: l_is_range_so := TRUE;
3175: end if;

Line 3180: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3176:
3177: -- BUILD THE FROM CLAUSE
3178: l_from_outbound := ', wsh_delivery_details_ob_grp_v wdd ';
3179: if NOT g_is_completed_task then/*3455109 we will no longer use mso for completed tasks*/
3180: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3181: THEN
3182: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso1 ';
3183: END IF;
3184:

Line 3185: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3181: THEN
3182: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso1 ';
3183: END IF;
3184:
3185: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3186: THEN
3187: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso2 ';
3188: END IF;
3189: END IF;

Line 3191: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3187: l_from_outbound := l_from_outbound || ', mtl_sales_orders mso2 ';
3188: END IF;
3189: END IF;
3190:
3191: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3192: THEN
3193: l_from_outbound := l_from_outbound || ', hz_parties hp ';
3194: l_from_outbound := l_from_outbound || ', hz_cust_accounts hca ';
3195: END IF;

Line 3208: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

3204: l_from_outbound :=
3205: l_from_outbound || ', fnd_lookup_values_vl flv ';
3206: END IF;
3207:
3208: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3209: THEN
3210: --Change
3211: /*l_from_outbound := l_from_outbound || ', wsh_trips wt, wsh_trip_stops wts ';
3212: l_from_outbound := l_from_outbound || ', wsh_delivery_legs wdl, wsh_new_deliveries wnd ';

Line 3223: ELSIF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3219: || ', wsh_delivery_legs_ob_grp_v wdl, wsh_new_deliveries_ob_grp_v wnd ';
3220: l_from_outbound :=
3221: l_from_outbound || ', wsh_delivery_assignments wda ';
3222: --End of change
3223: ELSIF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3224: THEN
3225: l_from_outbound :=
3226: l_from_outbound || ', wsh_delivery_assignments wda ';
3227: END IF;

Line 3229: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL

3225: l_from_outbound :=
3226: l_from_outbound || ', wsh_delivery_assignments wda ';
3227: END IF;
3228:
3229: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3230: THEN
3231: --Change
3232: --l_from_outbound := l_from_outbound || ', wsh_new_deliveries wnd ';
3233: l_from_outbound :=

Line 3237: IF wms_plan_tasks_pvt.g_delivery_id IS NULL

3233: l_from_outbound :=
3234: l_from_outbound || ', wsh_new_deliveries_ob_grp_v wnd ';
3235:
3236: -- End of change
3237: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3238: THEN
3239: l_from_outbound :=
3240: l_from_outbound || ', wsh_delivery_assignments wda ';
3241: END IF;

Line 3244: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3240: l_from_outbound || ', wsh_delivery_assignments wda ';
3241: END IF;
3242: END IF;
3243:
3244: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3245: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3246: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3247: OR g_ship_to_country_visible = 'T'
3248: OR g_ship_to_state_visible = 'T'

Line 3245: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3241: END IF;
3242: END IF;
3243:
3244: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3245: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3246: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3247: OR g_ship_to_country_visible = 'T'
3248: OR g_ship_to_state_visible = 'T'
3249: OR g_ship_to_postal_code_visible = 'T'

Line 3246: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3242: END IF;
3243:
3244: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3245: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3246: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3247: OR g_ship_to_country_visible = 'T'
3248: OR g_ship_to_state_visible = 'T'
3249: OR g_ship_to_postal_code_visible = 'T'
3250: THEN

Line 3254: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3250: THEN
3251: l_from_outbound := l_from_outbound || ', hz_locations hl ';
3252: END IF;
3253:
3254: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3255: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3256: THEN
3257: l_from_outbound :=
3258: l_from_outbound

Line 3255: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3251: l_from_outbound := l_from_outbound || ', hz_locations hl ';
3252: END IF;
3253:
3254: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3255: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3256: THEN
3257: l_from_outbound :=
3258: l_from_outbound
3259: || ', (SELECT COUNT(line_id) line_sum, header_id FROM oe_order_lines_all ';

Line 3261: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

3257: l_from_outbound :=
3258: l_from_outbound
3259: || ', (SELECT COUNT(line_id) line_sum, header_id FROM oe_order_lines_all ';
3260:
3261: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
3262: THEN
3263: l_from_outbound :=
3264: l_from_outbound || ' WHERE sold_to_org_id = :customer_id ';
3265: END IF;

Line 3276: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders

3272: IF NOT g_is_completed_task THEN -- Non Completed tasks
3273: -- Build the outbound where section of the query
3274: -- l_where_outbound := 'AND mmtt.transaction_action_id = 28 ';
3275:
3276: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3277: )
3278: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3279: THEN
3280: l_where_outbound :=

Line 3278: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)

3274: -- l_where_outbound := 'AND mmtt.transaction_action_id = 28 ';
3275:
3276: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3277: )
3278: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3279: THEN
3280: l_where_outbound :=
3281: l_where_outbound
3282: || 'AND mmtt.transaction_source_type_id = :source_type_id ';

Line 3285: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3281: l_where_outbound
3282: || 'AND mmtt.transaction_source_type_id = :source_type_id ';
3283: END IF;
3284:
3285: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3286: THEN
3287: l_where_outbound :=
3288: l_where_outbound
3289: || 'AND mso1.sales_order_id = :from_sales_order_id ';

Line 3298: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3294: l_where_outbound
3295: || 'AND wdd.source_header_type_name >= mso1.segment2 ';
3296: END IF;
3297:
3298: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3299: THEN
3300: l_where_outbound :=
3301: l_where_outbound
3302: || 'AND mso2.sales_order_id = :to_sales_order_id ';

Line 3311: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

3307: l_where_outbound
3308: || 'AND wdd.source_header_type_name <= mso2.segment2 ';
3309: END IF;
3310:
3311: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
3312: THEN
3313: l_where_outbound :=
3314: l_where_outbound
3315: || 'AND mmtt.pick_slip_number >= :from_pick_slip_number ';

Line 3318: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

3314: l_where_outbound
3315: || 'AND mmtt.pick_slip_number >= :from_pick_slip_number ';
3316: END IF;
3317:
3318: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
3319: THEN
3320: l_where_outbound :=
3321: l_where_outbound
3322: || 'AND mmtt.pick_slip_number <= :to_pick_slip_number ';

Line 3333: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders

3329: l_where_outbound := l_where_outbound || ' and rownum < 2) ';
3330: */
3331: ELSE -- Completed tasks
3332: -- Build the outbound where section of the query for completed tasks
3333: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3334: )
3335: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3336: THEN
3337: l_where_outbound :=

Line 3335: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)

3331: ELSE -- Completed tasks
3332: -- Build the outbound where section of the query for completed tasks
3333: IF (wms_plan_tasks_pvt.g_include_internal_orders AND NOT wms_plan_tasks_pvt.g_include_sales_orders
3334: )
3335: OR (NOT wms_plan_tasks_pvt.g_include_internal_orders AND wms_plan_tasks_pvt.g_include_sales_orders)
3336: THEN
3337: l_where_outbound :=
3338: l_where_outbound
3339: || 'AND wdth.transaction_source_type_id = :source_type_id ';

Line 3346: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL

3342:
3343: /*Logic if L_is_range_so then we need to add the greater than or less
3344: than but change it to bind rather than from mso 3455109 else use equals*/
3345: IF(l_is_range_so) then
3346: IF wms_plan_tasks_pvt.g_from_sales_order_id IS NOT NULL
3347: THEN
3348: -- 3455109 l_where_outbound := l_where_outbound || 'AND mso1.sales_order_id = :from_sales_order_id ';
3349: l_where_outbound := l_where_outbound || ' AND lpad(wdd.source_header_number,40) >= :l_from_tonum_mso_seg1 ';
3350: l_where_outbound := l_where_outbound || ' AND wdd.source_header_type_name >= :l_from_mso_seg2 ';

Line 3353: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL

3349: l_where_outbound := l_where_outbound || ' AND lpad(wdd.source_header_number,40) >= :l_from_tonum_mso_seg1 ';
3350: l_where_outbound := l_where_outbound || ' AND wdd.source_header_type_name >= :l_from_mso_seg2 ';
3351: END IF;
3352:
3353: IF wms_plan_tasks_pvt.g_to_sales_order_id IS NOT NULL
3354: THEN
3355: l_where_outbound := l_where_outbound || 'AND lpad(wdd.source_header_number,40) <= :l_to_tonum_mso_seg1 ';
3356: l_where_outbound := l_where_outbound || 'AND wdd.source_header_type_name <= :l_to_mso_seg2 ';
3357: END IF;

Line 3364: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL

3360: l_where_outbound := l_where_outbound || 'AND wdd.source_header_type_name = :l_from_mso_seg2 ';
3361: END IF;
3362: -- commenting since there is no MMT available for crossdock tasks )
3363: /*
3364: IF wms_plan_tasks_pvt.g_from_pick_slip_number IS NOT NULL
3365: THEN
3366: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number >= :from_pick_slip_number ';
3367: END IF;
3368:

Line 3369: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL

3365: THEN
3366: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number >= :from_pick_slip_number ';
3367: END IF;
3368:
3369: IF wms_plan_tasks_pvt.g_to_pick_slip_number IS NOT NULL
3370: THEN
3371: l_where_outbound := l_where_outbound || 'AND mmt.pick_slip_number <= :to_pick_slip_number ';
3372: END IF;
3373: */

Line 3376: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL

3372: END IF;
3373: */
3374: END IF;
3375:
3376: IF wms_plan_tasks_pvt.g_customer_id IS NOT NULL
3377: THEN
3378: l_where_outbound :=
3379: l_where_outbound || 'AND wdd.customer_id = :customer_id ';
3380: END IF;

Line 3382: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3378: l_where_outbound :=
3379: l_where_outbound || 'AND wdd.customer_id = :customer_id ';
3380: END IF;
3381:
3382: IF g_customer_visible = 'T' OR wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3383: THEN
3384: l_where_outbound :=
3385: l_where_outbound || 'AND hca.party_id = hp.party_id ';
3386:

Line 3397: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL

3393: l_where_outbound :=
3394: l_where_outbound || 'AND wdd.customer_id = hca.cust_account_id ';
3395: /* End of Bug 5507934 */
3396:
3397: IF wms_plan_tasks_pvt.g_customer_category IS NOT NULL
3398: THEN
3399: l_where_outbound :=
3400: l_where_outbound
3401: || 'AND hca.customer_class_code = :customer_category ';

Line 3428: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL

3424: l_where_outbound :=
3425: l_where_outbound || 'AND flv.view_application_id(+) = 3 ';
3426: END IF;
3427:
3428: IF wms_plan_tasks_pvt.g_carrier_id IS NOT NULL
3429: THEN
3430: l_where_outbound :=
3431: l_where_outbound || 'AND wdd.carrier_id = :carrier_id ';
3432: END IF;

Line 3434: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL

3430: l_where_outbound :=
3431: l_where_outbound || 'AND wdd.carrier_id = :carrier_id ';
3432: END IF;
3433:
3434: IF wms_plan_tasks_pvt.g_ship_method IS NOT NULL
3435: THEN
3436: l_where_outbound :=
3437: l_where_outbound || 'AND wdd.ship_method_code = :ship_method ';
3438: END IF;

Line 3440: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL

3436: l_where_outbound :=
3437: l_where_outbound || 'AND wdd.ship_method_code = :ship_method ';
3438: END IF;
3439:
3440: IF wms_plan_tasks_pvt.g_shipment_priority IS NOT NULL
3441: THEN
3442: l_where_outbound :=
3443: l_where_outbound
3444: || 'AND wdd.shipment_priority_code = :shipment_priority ';

Line 3447: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL

3443: l_where_outbound
3444: || 'AND wdd.shipment_priority_code = :shipment_priority ';
3445: END IF;
3446:
3447: IF wms_plan_tasks_pvt.g_from_shipment_date IS NOT NULL
3448: THEN
3449: l_where_outbound :=
3450: l_where_outbound
3451: || 'AND wdd.date_scheduled >= :from_shipment_date ';

Line 3454: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL

3450: l_where_outbound
3451: || 'AND wdd.date_scheduled >= :from_shipment_date ';
3452: END IF;
3453:
3454: IF wms_plan_tasks_pvt.g_to_shipment_date IS NOT NULL
3455: THEN
3456: l_where_outbound :=
3457: l_where_outbound
3458: || 'AND wdd.date_scheduled <= :to_shipment_date ';

Line 3461: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3457: l_where_outbound
3458: || 'AND wdd.date_scheduled <= :to_shipment_date ';
3459: END IF;
3460:
3461: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3462: THEN
3463: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3464: THEN
3465: l_where_outbound :=

Line 3463: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL

3459: END IF;
3460:
3461: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL OR wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3462: THEN
3463: IF wms_plan_tasks_pvt.g_trip_id IS NOT NULL
3464: THEN
3465: l_where_outbound :=
3466: l_where_outbound || 'AND wt.trip_id = :trip_id ';
3467: l_where_outbound :=

Line 3484: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL

3480: l_where_outbound :=
3481: l_where_outbound
3482: || 'AND wdd.delivery_detail_id = wda.delivery_detail_id ';
3483:
3484: IF wms_plan_tasks_pvt.g_delivery_id IS NOT NULL
3485: THEN
3486: l_where_outbound :=
3487: l_where_outbound || 'AND wda.delivery_id = :delivery_id ';
3488: END IF;

Line 3491: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL

3487: l_where_outbound || 'AND wda.delivery_id = :delivery_id ';
3488: END IF;
3489: END IF;
3490:
3491: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3492: THEN
3493: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3494: THEN
3495: l_where_outbound :=

Line 3493: IF wms_plan_tasks_pvt.g_delivery_id IS NULL

3489: END IF;
3490:
3491: IF g_delivery_visible = 'T' AND wms_plan_tasks_pvt.g_trip_id IS NULL
3492: THEN
3493: IF wms_plan_tasks_pvt.g_delivery_id IS NULL
3494: THEN
3495: l_where_outbound :=
3496: l_where_outbound
3497: || 'AND wdd.delivery_detail_id = wda.delivery_detail_id(+) ';

Line 3504: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3500: l_where_outbound :=
3501: l_where_outbound || 'AND wnd.delivery_id(+) = wda.delivery_id ';
3502: END IF;
3503:
3504: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3505: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3506: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3507: OR g_ship_to_country_visible = 'T'
3508: OR g_ship_to_state_visible = 'T'

Line 3505: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3501: l_where_outbound || 'AND wnd.delivery_id(+) = wda.delivery_id ';
3502: END IF;
3503:
3504: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3505: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3506: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3507: OR g_ship_to_country_visible = 'T'
3508: OR g_ship_to_state_visible = 'T'
3509: OR g_ship_to_postal_code_visible = 'T'

Line 3506: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3502: END IF;
3503:
3504: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3505: OR wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3506: OR wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3507: OR g_ship_to_country_visible = 'T'
3508: OR g_ship_to_state_visible = 'T'
3509: OR g_ship_to_postal_code_visible = 'T'
3510: THEN

Line 3515: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL

3511: l_where_outbound :=
3512: l_where_outbound
3513: || 'AND wdd.ship_to_location_id = hl.location_id ';
3514:
3515: IF wms_plan_tasks_pvt.g_ship_to_state IS NOT NULL
3516: THEN
3517: l_where_outbound :=
3518: l_where_outbound || 'AND hl.state = :ship_to_state ';
3519: END IF;

Line 3521: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL

3517: l_where_outbound :=
3518: l_where_outbound || 'AND hl.state = :ship_to_state ';
3519: END IF;
3520:
3521: IF wms_plan_tasks_pvt.g_ship_to_country IS NOT NULL
3522: THEN
3523: l_where_outbound :=
3524: l_where_outbound || 'AND hl.country = :ship_to_country ';
3525: END IF;

Line 3527: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL

3523: l_where_outbound :=
3524: l_where_outbound || 'AND hl.country = :ship_to_country ';
3525: END IF;
3526:
3527: IF wms_plan_tasks_pvt.g_ship_to_postal_code IS NOT NULL
3528: THEN
3529: l_where_outbound :=
3530: l_where_outbound
3531: || 'AND hl.postal_code = :ship_to_postal_code ';

Line 3535: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3531: || 'AND hl.postal_code = :ship_to_postal_code ';
3532: END IF;
3533: END IF;
3534:
3535: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3536: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3537: THEN
3538: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3539: THEN

Line 3536: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3532: END IF;
3533: END IF;
3534:
3535: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3536: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3537: THEN
3538: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3539: THEN
3540: l_where_outbound :=

Line 3538: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL

3534:
3535: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3536: OR wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3537: THEN
3538: IF wms_plan_tasks_pvt.g_from_number_of_order_lines IS NOT NULL
3539: THEN
3540: l_where_outbound :=
3541: l_where_outbound
3542: || 'AND oolac.line_sum >= :from_number_of_order_lines ';

Line 3545: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL

3541: l_where_outbound
3542: || 'AND oolac.line_sum >= :from_number_of_order_lines ';
3543: END IF;
3544:
3545: IF wms_plan_tasks_pvt.g_to_number_of_order_lines IS NOT NULL
3546: THEN
3547: l_where_outbound :=
3548: l_where_outbound
3549: || 'AND oolac.line_sum <= :to_number_of_order_lines ';

Line 3567: l_wdth_select_str wms_plan_tasks_pvt.short_sql;

3563: x_wdth_from_str OUT NOCOPY VARCHAR2,
3564: x_wdth_where_str OUT NOCOPY VARCHAR2) IS
3565:
3566: l_wdth_str VARCHAR2(6000);
3567: l_wdth_select_str wms_plan_tasks_pvt.short_sql;
3568: l_wdth_from_str VARCHAR2(500);
3569: l_wdth_where_str wms_plan_tasks_pvt.short_sql;
3570: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3571: BEGIN

Line 3569: l_wdth_where_str wms_plan_tasks_pvt.short_sql;

3565:
3566: l_wdth_str VARCHAR2(6000);
3567: l_wdth_select_str wms_plan_tasks_pvt.short_sql;
3568: l_wdth_from_str VARCHAR2(500);
3569: l_wdth_where_str wms_plan_tasks_pvt.short_sql;
3570: l_debug NUMBER := NVL (fnd_profile.VALUE ('INV_DEBUG_TRACE'), 0);
3571: BEGIN
3572: IF l_debug = 1 THEN
3573: debug(' in get_wdth_plan_records','get_wdth_plan_records');

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

3574: END IF;
3575: l_wdth_select_str :=
3576: 'SELECT ' ||
3577: ' decode(wdth.is_parent,''N'',decode(wdth.operation_plan_id,null,null,null),''+''), ' || /* expansion_code*/
3578: ' ''' || wms_plan_tasks_pvt.g_plan_task_types(3) || ''',' || /*plan_task*/
3579: ' wdth.transaction_id, ' || /*transaction_temp_id*/
3580: ' wdth.parent_transaction_id,' || /*parent_line_id*/
3581: ' wdth.inventory_item_id, ' || /*inventory_item_id*/
3582: ' msiv.concatenated_segments, ' || /*item*/

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

3603: ' wdth.transaction_type_id, ' || /*transaction_type_id*/
3604: ' wdth.transaction_action_id, ' || /*transaction_action_id */
3605: ' wdth.transaction_source_type_id, '; /*transaction_source_type_id*/
3606:
3607: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3608: l_wdth_select_str := l_wdth_select_str
3609: || ' mtst.transaction_source_type_name, '; --transaction_source_type
3610: END IF;
3611:

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

3613: || ' to_number(null), ' || /*transaction_source_id*/
3614: ' to_number(null), ' || /*transaction_source_line_id*/
3615: ' wdth.transfer_organization_id, '; /*to_organization_id*/
3616:
3617: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3618: l_wdth_select_str := l_wdth_select_str
3619: || 'mp1.organization_code, '; --to_organization_id
3620: END IF;
3621:

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

3622: l_wdth_select_str := l_wdth_select_str
3623: || 'wdth.dest_subinventory_code, ' /*to_subinventory*/
3624: || 'wdth.dest_locator_id, '; /*to_locator_id*/
3625:
3626: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
3627: --to locator
3628: l_wdth_select_str := l_wdth_select_str ||
3629: 'decode(milv1.segment19, null, milv1.concatenated_segments, null), ';
3630: END IF;

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

3633: 'wdth.transaction_uom_code, ' || /*transaction_uom*/
3634: ' wdth.transaction_quantity, ' || /*transaction_quantity*/
3635: ' wdth.user_task_type, '; /*user_task_type_id*/
3636:
3637: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3638: l_wdth_select_str := l_wdth_select_str
3639: || 'bso.operation_code, '; --user_task_type
3640: END IF;
3641:

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

3647: l_wdth_select_str := l_wdth_select_str || 'null, ';
3648: --cartonization_lpn
3649: END IF;
3650: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ' ; /*allocated_lpn_id*/
3651: IF wms_plan_tasks_pvt.g_allocated_lpn_visible = 'T' THEN
3652: l_wdth_select_str := l_wdth_select_str || 'null, '; --allocated_lpn
3653: END IF;
3654: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ';/*container_item_id*/
3655: IF g_container_item_visible = 'T' THEN

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

3657: end if;
3658:
3659: l_wdth_select_str := l_wdth_select_str || ' wdth.lpn_id, ';/*from_lpn_id*/
3660:
3661: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3662: l_wdth_select_str := l_wdth_select_str
3663: || 'wlpn5.license_plate_number, ';/*from_lpn*/
3664: END IF;
3665:

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

3664: END IF;
3665:
3666: l_wdth_select_str := l_wdth_select_str || ' wdth.content_lpn_id, ';/*content_lpn_id*/
3667:
3668: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3669: l_wdth_select_str := l_wdth_select_str
3670: || 'wlpn3.license_plate_number, '; --content_lpn
3671: END IF;
3672:

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

3671: END IF;
3672:
3673: l_wdth_select_str := l_wdth_select_str
3674: || 'wdth.transfer_lpn_id, '; --to_lpn_id
3675: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3676: l_wdth_select_str := l_wdth_select_str
3677: || 'wlpn4.license_plate_number, '; --to_lpn
3678: END IF;
3679:

Line 3688: || wms_plan_tasks_pvt.g_task_types(1)

3684: ' wdth.priority, ' || /*priority_original*/
3685: ' wdth.task_type, ' || /*task_type_id*/
3686: ' decode(wdth.task_type,'
3687: || '1, '''
3688: || wms_plan_tasks_pvt.g_task_types(1)
3689: || ''', 2, '''
3690: || wms_plan_tasks_pvt.g_task_types(2)
3691: || ''', 3, '''
3692: || wms_plan_tasks_pvt.g_task_types(3)

Line 3690: || wms_plan_tasks_pvt.g_task_types(2)

3686: ' decode(wdth.task_type,'
3687: || '1, '''
3688: || wms_plan_tasks_pvt.g_task_types(1)
3689: || ''', 2, '''
3690: || wms_plan_tasks_pvt.g_task_types(2)
3691: || ''', 3, '''
3692: || wms_plan_tasks_pvt.g_task_types(3)
3693: || ''', 4, '''
3694: || wms_plan_tasks_pvt.g_task_types(4)

Line 3692: || wms_plan_tasks_pvt.g_task_types(3)

3688: || wms_plan_tasks_pvt.g_task_types(1)
3689: || ''', 2, '''
3690: || wms_plan_tasks_pvt.g_task_types(2)
3691: || ''', 3, '''
3692: || wms_plan_tasks_pvt.g_task_types(3)
3693: || ''', 4, '''
3694: || wms_plan_tasks_pvt.g_task_types(4)
3695: || ''', 5, '''
3696: || wms_plan_tasks_pvt.g_task_types(5)

Line 3694: || wms_plan_tasks_pvt.g_task_types(4)

3690: || wms_plan_tasks_pvt.g_task_types(2)
3691: || ''', 3, '''
3692: || wms_plan_tasks_pvt.g_task_types(3)
3693: || ''', 4, '''
3694: || wms_plan_tasks_pvt.g_task_types(4)
3695: || ''', 5, '''
3696: || wms_plan_tasks_pvt.g_task_types(5)
3697: || ''', 6, '''
3698: || wms_plan_tasks_pvt.g_task_types(6)

Line 3696: || wms_plan_tasks_pvt.g_task_types(5)

3692: || wms_plan_tasks_pvt.g_task_types(3)
3693: || ''', 4, '''
3694: || wms_plan_tasks_pvt.g_task_types(4)
3695: || ''', 5, '''
3696: || wms_plan_tasks_pvt.g_task_types(5)
3697: || ''', 6, '''
3698: || wms_plan_tasks_pvt.g_task_types(6)
3699: || ''', 7, '''
3700: || wms_plan_tasks_pvt.g_task_types(7)

Line 3698: || wms_plan_tasks_pvt.g_task_types(6)

3694: || wms_plan_tasks_pvt.g_task_types(4)
3695: || ''', 5, '''
3696: || wms_plan_tasks_pvt.g_task_types(5)
3697: || ''', 6, '''
3698: || wms_plan_tasks_pvt.g_task_types(6)
3699: || ''', 7, '''
3700: || wms_plan_tasks_pvt.g_task_types(7)
3701: || ''', 8, '''
3702: || wms_plan_tasks_pvt.g_task_types(8)

Line 3700: || wms_plan_tasks_pvt.g_task_types(7)

3696: || wms_plan_tasks_pvt.g_task_types(5)
3697: || ''', 6, '''
3698: || wms_plan_tasks_pvt.g_task_types(6)
3699: || ''', 7, '''
3700: || wms_plan_tasks_pvt.g_task_types(7)
3701: || ''', 8, '''
3702: || wms_plan_tasks_pvt.g_task_types(8)
3703: || '''), ' ||
3704: ' to_date(null), ' || /*creation_time */

Line 3702: || wms_plan_tasks_pvt.g_task_types(8)

3698: || wms_plan_tasks_pvt.g_task_types(6)
3699: || ''', 7, '''
3700: || wms_plan_tasks_pvt.g_task_types(7)
3701: || ''', 8, '''
3702: || wms_plan_tasks_pvt.g_task_types(8)
3703: || '''), ' ||
3704: ' to_date(null), ' || /*creation_time */
3705: ' wdth.operation_plan_id, '; /*operation_plan_id*/
3706: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN

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

3702: || wms_plan_tasks_pvt.g_task_types(8)
3703: || '''), ' ||
3704: ' to_date(null), ' || /*creation_time */
3705: ' wdth.operation_plan_id, '; /*operation_plan_id*/
3706: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
3707: l_wdth_select_str := l_wdth_select_str
3708: || 'wop.operation_plan_name, ';/*operation_plan*/
3709: END IF;
3710: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN

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

3706: IF wms_plan_tasks_pvt.g_operation_plan_visible = 'T' THEN
3707: l_wdth_select_str := l_wdth_select_str
3708: || 'wop.operation_plan_name, ';/*operation_plan*/
3709: END IF;
3710: IF wms_plan_tasks_pvt.g_operation_sequence_visible = 'T' THEN
3711: l_wdth_select_str := l_wdth_select_str || ' to_number(null), ';
3712: END IF;
3713: l_wdth_select_str := l_wdth_select_str ||
3714: ' to_number(wdth.op_plan_instance_id), ' || /*operation_instance_id*/

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

3716: ' wdth.task_id, ' ||/*task_id */
3717: ' wdth.person_id, ' || /*person_id*/
3718: ' wdth.person_id, '; /*person_id_original*/
3719:
3720: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3721: l_wdth_select_str := l_wdth_select_str || 'pap.full_name, '; --person_id
3722: END IF;
3723: l_wdth_select_str := l_wdth_select_str ||
3724: ' wdth.effective_start_date, ' || /*effective_start_date*/

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

3724: ' wdth.effective_start_date, ' || /*effective_start_date*/
3725: ' wdth.effective_end_date, ' || /*effective_end_date*/
3726: ' wdth.person_resource_id, '; --person_resource_id
3727:
3728: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3729: l_wdth_select_str := l_wdth_select_str
3730: || 'br1.resource_code, '; --person_resource_code
3731: END IF;
3732:

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

3732:
3733: l_wdth_select_str := l_wdth_select_str ||
3734: ' wdth.machine_resource_id, '; --machine_resource_id
3735:
3736: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3737: l_wdth_select_str := l_wdth_select_str
3738: || 'br2.resource_code, '; --machine_resource_code
3739: END IF;
3740:

Line 3752: IF wms_plan_tasks_pvt.g_include_inbound THEN

3748: '''N'', '|| --is modified
3749: 'wdth.secondary_transaction_uom_code, '||
3750: 'wdth.secondary_transaction_quantity ';
3751:
3752: IF wms_plan_tasks_pvt.g_include_inbound THEN
3753: l_wdth_select_str := l_wdth_select_str
3754: || ', wwtt.reference_id '
3755: || ', wwtt.reference ';
3756: END IF;

Line 3758: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN

3754: || ', wwtt.reference_id '
3755: || ', wwtt.reference ';
3756: END IF;
3757:
3758: IF wms_plan_tasks_pvt.g_inbound_specific_query THEN
3759: l_wdth_select_str := l_wdth_select_str
3760: || ', wwtt.source_header '
3761: || ', wwtt.line_number ';
3762: END IF;

Line 3768: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL

3764: l_wdth_from_str := ' FROM wms_dispatched_tasks_history wdth' ||
3765: ', mtl_system_items_kfv msiv ' ||
3766: ', mtl_item_locations_kfv milv ';
3767:
3768: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
3769: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3770: l_wdth_from_str := l_wdth_from_str ||
3771: ', mtl_item_categories mic ';
3772: END IF;

Line 3769: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

3765: ', mtl_system_items_kfv msiv ' ||
3766: ', mtl_item_locations_kfv milv ';
3767:
3768: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL
3769: OR wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3770: l_wdth_from_str := l_wdth_from_str ||
3771: ', mtl_item_categories mic ';
3772: END IF;
3773:

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

3770: l_wdth_from_str := l_wdth_from_str ||
3771: ', mtl_item_categories mic ';
3772: END IF;
3773:
3774: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3775: l_wdth_from_str := l_wdth_from_str
3776: || ', wms_license_plate_numbers wlpn5 ';
3777: END IF;
3778:

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

3775: l_wdth_from_str := l_wdth_from_str
3776: || ', wms_license_plate_numbers wlpn5 ';
3777: END IF;
3778:
3779: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3780: l_wdth_from_str := l_wdth_from_str
3781: || ', wms_license_plate_numbers wlpn3 ';
3782: END IF;
3783:

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

3780: l_wdth_from_str := l_wdth_from_str
3781: || ', wms_license_plate_numbers wlpn3 ';
3782: END IF;
3783:
3784: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3785: l_wdth_from_str := l_wdth_from_str
3786: || ', wms_license_plate_numbers wlpn4 ';
3787: END IF;
3788:

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

3785: l_wdth_from_str := l_wdth_from_str
3786: || ', wms_license_plate_numbers wlpn4 ';
3787: END IF;
3788:
3789: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3790: l_wdth_from_str := l_wdth_from_str
3791: || ', bom_standard_operations bso ';
3792: END IF;
3793:

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

3790: l_wdth_from_str := l_wdth_from_str
3791: || ', bom_standard_operations bso ';
3792: END IF;
3793:
3794: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3795: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
3796: END IF;
3797:
3798: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN

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

3794: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3795: l_wdth_from_str := l_wdth_from_str || ', mtl_parameters mp1 ';
3796: END IF;
3797:
3798: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3799: l_wdth_from_str := l_wdth_from_str
3800: || ', mtl_txn_source_types mtst ';
3801: END IF;
3802:

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

3801: END IF;
3802:
3803: l_wdth_from_str := l_wdth_from_str || ', wms_op_plans_vl wop ';
3804:
3805: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3806: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
3807: END IF;
3808:
3809: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN

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

3805: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3806: l_wdth_from_str := l_wdth_from_str || ', bom_resources br1 ';
3807: END IF;
3808:
3809: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3810: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
3811: END IF;
3812:
3813: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN

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

3809: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3810: l_wdth_from_str := l_wdth_from_str || ', bom_resources br2 ';
3811: END IF;
3812:
3813: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3814: l_wdth_from_str := l_wdth_from_str
3815: || ', per_all_people_f pap ';
3816: END IF;
3817: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN

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

3813: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3814: l_wdth_from_str := l_wdth_from_str
3815: || ', per_all_people_f pap ';
3816: END IF;
3817: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
3818: l_wdth_from_str := l_wdth_from_str || ', mtl_item_locations_kfv milv1 ';
3819: END IF;
3820:
3821: l_wdth_where_str := 'WHERE 1 = 1 ';

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

3823: || 'AND wdth.organization_id = msiv.organization_id '
3824: || 'AND wdth.inventory_item_id = msiv.inventory_item_id '
3825: || 'AND wdth.organization_id = milv.organization_id(+) '
3826: || 'AND wdth.source_locator_id = milv.inventory_location_id(+) ';
3827: IF wms_plan_tasks_pvt.g_to_organization_code_visible = 'T' THEN
3828: l_wdth_where_str := l_wdth_where_str
3829: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
3830: END IF;
3831:

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

3828: l_wdth_where_str := l_wdth_where_str
3829: || 'AND wdth.transfer_organization_id = mp1.organization_id(+) ';
3830: END IF;
3831:
3832: IF wms_plan_tasks_pvt.g_txn_source_type_visible = 'T' THEN
3833: l_wdth_where_str := l_wdth_where_str
3834: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
3835: END IF;
3836:

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

3833: l_wdth_where_str := l_wdth_where_str
3834: || 'AND wdth.transaction_source_type_id = mtst.transaction_source_type_id (+) ';
3835: END IF;
3836:
3837: IF wms_plan_tasks_pvt.g_person_resource_visible = 'T' THEN
3838: l_wdth_where_str := l_wdth_where_str
3839: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
3840: END IF;
3841:

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

3838: l_wdth_where_str := l_wdth_where_str
3839: || 'AND wdth.person_resource_id = br1.resource_id(+) ';
3840: END IF;
3841:
3842: IF wms_plan_tasks_pvt.g_machine_resource_visible = 'T' THEN
3843: l_wdth_where_str := l_wdth_where_str
3844: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
3845: END IF;
3846:

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

3843: l_wdth_where_str := l_wdth_where_str
3844: || 'AND wdth.machine_resource_id = br2.resource_id(+) ';
3845: END IF;
3846:
3847: IF wms_plan_tasks_pvt.g_person_visible = 'T' THEN
3848: l_wdth_where_str := l_wdth_where_str
3849: || 'AND wdth.person_id = pap.person_id (+)'
3850: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
3851: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';

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

3850: || 'AND wdth.effective_start_date >= pap.effective_start_date (+) '
3851: || 'AND wdth.effective_end_date <= pap.effective_end_date (+) ';
3852: END IF;
3853:
3854: IF wms_plan_tasks_pvt.g_from_lpn_visible = 'T' THEN
3855: l_wdth_where_str := l_wdth_where_str
3856: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
3857: END IF;
3858:

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

3855: l_wdth_where_str := l_wdth_where_str
3856: || 'AND wdth.lpn_id = wlpn5.lpn_id(+) ';
3857: END IF;
3858:
3859: IF wms_plan_tasks_pvt.g_content_lpn_visible = 'T' THEN
3860: l_wdth_where_str := l_wdth_where_str
3861: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
3862: END IF;
3863:

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

3860: l_wdth_where_str := l_wdth_where_str
3861: || 'AND wdth.content_lpn_id = wlpn3.lpn_id(+) ';
3862: END IF;
3863:
3864: IF wms_plan_tasks_pvt.g_to_lpn_visible = 'T' THEN
3865: l_wdth_where_str := l_wdth_where_str
3866: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
3867: END IF;
3868:

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

3865: l_wdth_where_str := l_wdth_where_str
3866: || 'AND wdth.transfer_lpn_id = wlpn4.lpn_id(+) ';
3867: END IF;
3868:
3869: IF wms_plan_tasks_pvt.g_user_task_type_visible = 'T' THEN
3870: l_wdth_where_str := l_wdth_where_str
3871: || 'AND wdth.user_task_type = bso.standard_operation_id(+) '
3872: || 'AND wdth.organization_id = bso.organization_id(+) ';
3873: END IF;

Line 3878: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN

3874:
3875: l_wdth_where_str := l_wdth_where_str
3876: || 'AND wdth.operation_plan_id = wop.operation_plan_id(+) ';
3877:
3878: IF wms_plan_tasks_pvt.g_organization_id IS NOT NULL THEN
3879: l_wdth_where_str := l_wdth_where_str
3880: || 'AND wdth.organization_id = :org_id ';
3881: END IF;
3882:

Line 3883: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN

3879: l_wdth_where_str := l_wdth_where_str
3880: || 'AND wdth.organization_id = :org_id ';
3881: END IF;
3882:
3883: IF wms_plan_tasks_pvt.g_category_set_id IS NOT NULL THEN
3884: l_wdth_where_str := l_wdth_where_str
3885: || 'AND mic.category_set_id = :category_set_id ';
3886: END IF;
3887:

Line 3888: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN

3884: l_wdth_where_str := l_wdth_where_str
3885: || 'AND mic.category_set_id = :category_set_id ';
3886: END IF;
3887:
3888: IF wms_plan_tasks_pvt.g_item_category_id IS NOT NULL THEN
3889: l_wdth_where_str := l_wdth_where_str
3890: || 'AND wdth.inventory_item_id = mic.inventory_item_id (+) '
3891: || 'AND mic.organization_id = wdth.organization_id '
3892: || 'AND mic.category_id = :item_category_id ';

Line 3899: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN

3895: l_wdth_where_str := l_wdth_where_str
3896: || ' AND wdth.is_parent = ''Y'' '
3897: || ' AND wdth.operation_plan_id is not null ';
3898:
3899: IF wms_plan_tasks_pvt.g_inventory_item_id IS NOT NULL THEN
3900: l_wdth_where_str := l_wdth_where_str
3901: || 'AND wdth.inventory_item_id = :item_id ';
3902: END IF;
3903:

Line 3904: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN

3900: l_wdth_where_str := l_wdth_where_str
3901: || 'AND wdth.inventory_item_id = :item_id ';
3902: END IF;
3903:
3904: IF wms_plan_tasks_pvt.g_from_task_quantity IS NOT NULL THEN
3905: l_wdth_where_str := l_wdth_where_str
3906: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
3907: END IF;
3908:

Line 3909: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN

3905: l_wdth_where_str := l_wdth_where_str
3906: || 'AND wdth.transaction_quantity >= :from_task_quantity ';
3907: END IF;
3908:
3909: IF wms_plan_tasks_pvt.g_to_task_quantity IS NOT NULL THEN
3910: l_wdth_where_str := l_wdth_where_str
3911: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
3912: END IF;
3913:

Line 3914: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN

3910: l_wdth_where_str := l_wdth_where_str
3911: || 'AND wdth.transaction_quantity <= :to_task_quantity ';
3912: END IF;
3913:
3914: IF wms_plan_tasks_pvt.g_from_creation_date IS NOT NULL THEN
3915: l_wdth_where_str := l_wdth_where_str
3916: --|| 'AND wdth.creation_date >= :from_creation_date ';--Commented in bug 6854145
3917: || 'AND TRUNC(wdth.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
3918: END IF;

Line 3920: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN

3916: --|| 'AND wdth.creation_date >= :from_creation_date ';--Commented in bug 6854145
3917: || 'AND TRUNC(wdth.creation_date) >= TRUNC(:from_creation_date) ';--Added TRUNC in bug 6854145
3918: END IF;
3919:
3920: IF wms_plan_tasks_pvt.g_to_creation_date IS NOT NULL THEN
3921: l_wdth_where_str := l_wdth_where_str
3922: --|| 'AND wdth.creation_date <= :to_creation_date ';--Commented in bug 6854145
3923: || 'AND TRUNC(wdth.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
3924: END IF;

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

3922: --|| 'AND wdth.creation_date <= :to_creation_date ';--Commented in bug 6854145
3923: || 'AND TRUNC(wdth.creation_date) <= TRUNC(:to_creation_date) ';--Added TRUNC in bug 6854145
3924: END IF;
3925:
3926: IF wms_plan_tasks_pvt.g_to_locator_visible = 'T' THEN
3927: l_wdth_where_str := l_wdth_where_str
3928: || 'and wdth.dest_locator_id = milv1.inventory_location_id (+) '
3929: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+) ';
3930: END IF;

Line 3933: IF wms_plan_tasks_pvt.g_is_completed_plan THEN

3929: || 'AND wdth.dest_subinventory_code = milv1.subinventory_code (+) ';
3930: END IF;
3931: /* Filter based on the status - completed/cancelled/aborted. */
3932: l_wdth_where_str := l_wdth_where_str || 'AND wdth.status in (';
3933: IF wms_plan_tasks_pvt.g_is_completed_plan THEN
3934: l_wdth_where_str := l_wdth_where_str || '6';
3935: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3936: l_wdth_where_str := l_wdth_where_str || ',12';
3937: END IF;

Line 3935: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN

3931: /* Filter based on the status - completed/cancelled/aborted. */
3932: l_wdth_where_str := l_wdth_where_str || 'AND wdth.status in (';
3933: IF wms_plan_tasks_pvt.g_is_completed_plan THEN
3934: l_wdth_where_str := l_wdth_where_str || '6';
3935: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3936: l_wdth_where_str := l_wdth_where_str || ',12';
3937: END IF;
3938: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3939: l_wdth_where_str := l_wdth_where_str || ',11';

Line 3938: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN

3934: l_wdth_where_str := l_wdth_where_str || '6';
3935: IF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3936: l_wdth_where_str := l_wdth_where_str || ',12';
3937: END IF;
3938: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3939: l_wdth_where_str := l_wdth_where_str || ',11';
3940: END IF;
3941: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3942: l_wdth_where_str := l_wdth_where_str || '12';

Line 3941: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN

3937: END IF;
3938: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3939: l_wdth_where_str := l_wdth_where_str || ',11';
3940: END IF;
3941: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3942: l_wdth_where_str := l_wdth_where_str || '12';
3943: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3944: l_wdth_where_str := l_wdth_where_str || ',11';
3945: END IF;

Line 3943: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN

3939: l_wdth_where_str := l_wdth_where_str || ',11';
3940: END IF;
3941: ELSIF wms_plan_tasks_pvt.g_is_cancelled_plan THEN
3942: l_wdth_where_str := l_wdth_where_str || '12';
3943: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3944: l_wdth_where_str := l_wdth_where_str || ',11';
3945: END IF;
3946: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3947: l_wdth_where_str := l_wdth_where_str || '11';

Line 3946: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN

3942: l_wdth_where_str := l_wdth_where_str || '12';
3943: IF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3944: l_wdth_where_str := l_wdth_where_str || ',11';
3945: END IF;
3946: ELSIF wms_plan_tasks_pvt.g_is_aborted_plan THEN
3947: l_wdth_where_str := l_wdth_where_str || '11';
3948: END IF;
3949:
3950: l_wdth_where_str := l_wdth_where_str || ')';

Line 3972: --wms_plan_tasks_pvt.g_add := FALSE;

3968: BEGIN
3969: IF l_debug = 1 THEN
3970: debug(' in clear_globals ',l_module_name);
3971: END IF;
3972: --wms_plan_tasks_pvt.g_add := FALSE;
3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;

Line 3973: wms_plan_tasks_pvt.g_organization_id := NULL;

3969: IF l_debug = 1 THEN
3970: debug(' in clear_globals ',l_module_name);
3971: END IF;
3972: --wms_plan_tasks_pvt.g_add := FALSE;
3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;

Line 3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;

3970: debug(' in clear_globals ',l_module_name);
3971: END IF;
3972: --wms_plan_tasks_pvt.g_add := FALSE;
3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;

Line 3975: wms_plan_tasks_pvt.g_locator_id := NULL;

3971: END IF;
3972: --wms_plan_tasks_pvt.g_add := FALSE;
3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;

Line 3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;

3972: --wms_plan_tasks_pvt.g_add := FALSE;
3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;

Line 3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;

3973: wms_plan_tasks_pvt.g_organization_id := NULL;
3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;

Line 3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;

3974: wms_plan_tasks_pvt.g_subinventory_code := NULL;
3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;

Line 3979: wms_plan_tasks_pvt.g_category_set_id := NULL;

3975: wms_plan_tasks_pvt.g_locator_id := NULL;
3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;

Line 3980: wms_plan_tasks_pvt.g_item_category_id := NULL;

3976: wms_plan_tasks_pvt.g_to_subinventory_code := NULL;
3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;

Line 3981: wms_plan_tasks_pvt.g_person_id := NULL;

3977: wms_plan_tasks_pvt.g_to_locator_id := NULL;
3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;

Line 3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;

3978: wms_plan_tasks_pvt.g_inventory_item_id := NULL;
3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;

Line 3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;

3979: wms_plan_tasks_pvt.g_category_set_id := NULL;
3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;

Line 3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;

3980: wms_plan_tasks_pvt.g_item_category_id := NULL;
3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;

Line 3985: wms_plan_tasks_pvt.g_machine_instance := NULL;

3981: wms_plan_tasks_pvt.g_person_id := NULL;
3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;

Line 3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;

3982: wms_plan_tasks_pvt.g_person_resource_id := NULL;
3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;

Line 3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;

3983: wms_plan_tasks_pvt.g_equipment_type_id := NULL;
3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;

Line 3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;

3984: wms_plan_tasks_pvt.g_machine_resource_id := NULL;
3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;

Line 3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;

3985: wms_plan_tasks_pvt.g_machine_instance := NULL;
3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:

Line 3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;

3986: wms_plan_tasks_pvt.g_user_task_type_id := NULL;
3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;

Line 3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;

3987: wms_plan_tasks_pvt.g_from_task_quantity := NULL;
3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

Line 3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;

3988: wms_plan_tasks_pvt.g_to_task_quantity := NULL;
3989: wms_plan_tasks_pvt.g_from_task_priority := NULL;
3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;

Line 3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;

3990: wms_plan_tasks_pvt.g_to_task_priority := NULL;
3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;

Line 3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;

3991: wms_plan_tasks_pvt.g_from_creation_date := NULL;
3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

Line 3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;

3992: wms_plan_tasks_pvt.g_to_creation_date := NULL;
3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;

Line 3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;

3993:
3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:

Line 3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;

3994: wms_plan_tasks_pvt.g_is_unreleased_task := FALSE;
3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;

Line 3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;

3995: wms_plan_tasks_pvt.g_is_pending_task := FALSE;
3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;

Line 4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;

3996: wms_plan_tasks_pvt.g_is_queued_task := FALSE;
3997: wms_plan_tasks_pvt.g_is_dispatched_task := FALSE;
3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;

Line 4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;

3998: wms_plan_tasks_pvt.g_is_active_task := FALSE;
3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;

Line 4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;

3999: wms_plan_tasks_pvt.g_is_loaded_task := FALSE;
4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;

Line 4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;

4000: wms_plan_tasks_pvt.g_is_completed_task := FALSE ;
4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;

Line 4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;

4001:
4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;

Line 4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;

4002: wms_plan_tasks_pvt.g_include_inbound := FALSE;
4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;

Line 4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;

4003: wms_plan_tasks_pvt.g_include_outbound := FALSE;
4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;

Line 4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;

4004: wms_plan_tasks_pvt.g_include_manufacturing := FALSE;
4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;

Line 4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;

4005: wms_plan_tasks_pvt.g_include_warehousing := FALSE;
4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;

Line 4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;

4006: wms_plan_tasks_pvt.g_from_po_header_id := NULL;
4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;

Line 4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;

4007: wms_plan_tasks_pvt.g_to_po_header_id := NULL;
4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;

Line 4012: wms_plan_tasks_pvt.g_from_rma := NULL;

4008: wms_plan_tasks_pvt.g_from_purchase_order := NULL;
4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;

Line 4013: wms_plan_tasks_pvt.g_to_rma := NULL;

4009: wms_plan_tasks_pvt.g_to_purchase_order := NULL;
4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;

Line 4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;

4010: wms_plan_tasks_pvt.g_from_rma_header_id := NULL;
4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;

Line 4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;

4011: wms_plan_tasks_pvt.g_to_rma_header_id := NULL;
4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;

Line 4016: wms_plan_tasks_pvt.g_from_requisition := NULL;

4012: wms_plan_tasks_pvt.g_from_rma := NULL;
4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;

Line 4017: wms_plan_tasks_pvt.g_to_requisition := NULL;

4013: wms_plan_tasks_pvt.g_to_rma := NULL;
4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;

Line 4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;

4014: wms_plan_tasks_pvt.g_from_requisition_header_id := NULL;
4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;

Line 4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;

4015: wms_plan_tasks_pvt.g_to_requisition_header_id:= NULL;
4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;

Line 4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;

4016: wms_plan_tasks_pvt.g_from_requisition := NULL;
4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;

Line 4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;

4017: wms_plan_tasks_pvt.g_to_requisition := NULL;
4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;

Line 4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;

4018: wms_plan_tasks_pvt.g_from_shipment_number := NULL;
4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;

Line 4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;

4019: wms_plan_tasks_pvt.g_to_shipment_number := NULL;
4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;

Line 4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;

4020: wms_plan_tasks_pvt.g_include_sales_orders := TRUE;
4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;

Line 4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;

4021: wms_plan_tasks_pvt.g_include_internal_orders := TRUE;
4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;

Line 4026: wms_plan_tasks_pvt.g_customer_id := NULL;

4022: wms_plan_tasks_pvt.g_from_sales_order_id := NULL;
4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;

Line 4027: wms_plan_tasks_pvt.g_customer_category := NULL;

4023: wms_plan_tasks_pvt.g_to_sales_order_id := NULL;
4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;

Line 4028: wms_plan_tasks_pvt.g_delivery_id := NULL;

4024: wms_plan_tasks_pvt.g_from_pick_slip_number := NULL;
4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;

Line 4029: wms_plan_tasks_pvt.g_carrier_id := NULL;

4025: wms_plan_tasks_pvt.g_to_pick_slip_number := NULL;
4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;

Line 4030: wms_plan_tasks_pvt.g_ship_method := NULL;

4026: wms_plan_tasks_pvt.g_customer_id := NULL;
4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;

Line 4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;

4027: wms_plan_tasks_pvt.g_customer_category := NULL;
4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;

Line 4032: wms_plan_tasks_pvt.g_trip_id := NULL;

4028: wms_plan_tasks_pvt.g_delivery_id := NULL;
4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;

Line 4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;

4029: wms_plan_tasks_pvt.g_carrier_id := NULL;
4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;

Line 4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;

4030: wms_plan_tasks_pvt.g_ship_method := NULL;
4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;

Line 4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;

4031: wms_plan_tasks_pvt.g_shipment_priority := NULL;
4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;

Line 4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;

4032: wms_plan_tasks_pvt.g_trip_id := NULL;
4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;

Line 4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;

4033: wms_plan_tasks_pvt.g_from_shipment_date := NULL;
4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;

Line 4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;

4034: wms_plan_tasks_pvt.g_to_shipment_date := NULL;
4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;

Line 4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;

4035: wms_plan_tasks_pvt.g_ship_to_state := NULL;
4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;

Line 4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;

4036: wms_plan_tasks_pvt.g_ship_to_country := NULL;
4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;

Line 4041: wms_plan_tasks_pvt.g_from_job := NULL;

4037: wms_plan_tasks_pvt.g_ship_to_postal_code := NULL;
4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;

Line 4042: wms_plan_tasks_pvt.g_to_job := NULL;

4038: wms_plan_tasks_pvt.g_from_number_of_order_lines := NULL;
4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;

Line 4043: wms_plan_tasks_pvt.g_assembly_id := NULL;

4039: wms_plan_tasks_pvt.g_to_number_of_order_lines := NULL;
4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;

Line 4044: wms_plan_tasks_pvt.g_from_start_date := NULL;

4040: wms_plan_tasks_pvt.g_manufacturing_type := NULL;
4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;

Line 4045: wms_plan_tasks_pvt.g_to_start_date := NULL;

4041: wms_plan_tasks_pvt.g_from_job := NULL;
4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;

Line 4046: wms_plan_tasks_pvt.g_from_line := NULL;

4042: wms_plan_tasks_pvt.g_to_job := NULL;
4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;

Line 4047: wms_plan_tasks_pvt.g_to_line := NULL;

4043: wms_plan_tasks_pvt.g_assembly_id := NULL;
4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;

Line 4048: wms_plan_tasks_pvt.g_department_id := NULL;

4044: wms_plan_tasks_pvt.g_from_start_date := NULL;
4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;

Line 4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;

4045: wms_plan_tasks_pvt.g_to_start_date := NULL;
4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;

Line 4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;

4046: wms_plan_tasks_pvt.g_from_line := NULL;
4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;

Line 4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;

4047: wms_plan_tasks_pvt.g_to_line := NULL;
4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;

Line 4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;

4048: wms_plan_tasks_pvt.g_department_id := NULL;
4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;

Line 4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;

4049: wms_plan_tasks_pvt.g_include_replenishment := TRUE;
4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;

Line 4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;

4050: wms_plan_tasks_pvt.g_from_replenishment_mo := NULL;
4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;

Line 4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;

4051: wms_plan_tasks_pvt.g_to_replenishment_mo := NULL;
4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;

Line 4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;

4052: wms_plan_tasks_pvt.g_include_mo_transfer := TRUE;
4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:

Line 4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;

4053: wms_plan_tasks_pvt.g_include_mo_issue := TRUE;
4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;

Line 4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;

4054: wms_plan_tasks_pvt.g_from_transfer_issue_mo := NULL;
4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;

Line 4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;

4055: wms_plan_tasks_pvt.g_to_transfer_issue_mo := NULL;
4056: wms_plan_tasks_pvt.g_include_lpn_putaway := TRUE;
4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:

Line 4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;

4057: wms_plan_tasks_pvt.g_include_staging_move := FALSE;
4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;

Line 4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;

4058: wms_plan_tasks_pvt.g_include_cycle_count := TRUE;
4059: wms_plan_tasks_pvt.g_cycle_count_name := NULL;
4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;

Line 4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;

4060:
4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;

Line 4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;

4061: wms_plan_tasks_pvt.g_query_independent_tasks := NULL;
4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:

Line 4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;

4062: wms_plan_tasks_pvt.g_query_planned_tasks := FALSE;
4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;

Line 4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;

4063:
4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;

Line 4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;

4064: wms_plan_tasks_pvt.g_is_pending_plan := FALSE;
4065: wms_plan_tasks_pvt.g_is_inprogress_plan := FALSE;
4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;

Line 4070: wms_plan_tasks_pvt.g_activity_id := NULL;

4066: wms_plan_tasks_pvt.g_is_completed_plan := FALSE;
4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;

Line 4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;

4067: wms_plan_tasks_pvt.g_is_cancelled_plan := FALSE;
4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;

Line 4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;

4068: wms_plan_tasks_pvt.g_is_aborted_plan := FALSE;
4069:
4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

Line 4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;

4070: wms_plan_tasks_pvt.g_activity_id := NULL;
4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4077: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4078:

Line 4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;

4071: wms_plan_tasks_pvt.g_plan_type_id := NULL;
4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4077: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4078:
4079:

Line 4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;

4072: wms_plan_tasks_pvt.g_op_plan_id := NULL;
4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4077: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4078:
4079:
4080: END clear_globals;

Line 4077: wms_plan_tasks_pvt.g_from_inbound := FALSE;

4073:
4074: wms_plan_tasks_pvt.g_inbound_specific_query := FALSE;
4075: wms_plan_tasks_pvt.g_outbound_specific_query := FALSE;
4076: wms_plan_tasks_pvt.g_plans_tasks_record_count := 0;
4077: wms_plan_tasks_pvt.g_from_inbound := FALSE;
4078:
4079:
4080: END clear_globals;
4081: