DBA Data[Home] [Help]

APPS.GMD_OUTBOUND_APIS_PUB dependencies on GMD_OUTBOUND_APIS_PUB

Line 1: PACKAGE BODY GMD_OUTBOUND_APIS_PUB AS

1: PACKAGE BODY GMD_OUTBOUND_APIS_PUB AS
2: /* $Header: GMDOAPIB.pls 120.17 2011/05/05 17:57:40 rnalla ship $ */
3: --****************************************************************************************
4: --* FILE: GMDOAPIB.pls *
5: --* *

Line 129: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

125: BEGIN
126:
127:
128: IF NOT FND_API.Compatible_API_CALL
129: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
130: OR NOT initialized_ok(p_user_name)
131: THEN
132: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
133: ELSE

Line 185: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;

181: -- Work down the parameter list and append conditions, bind variables and bind values.
182:
183: IF p_from_test_method_code IS NOT NULL
184: THEN
185: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;
186: where_clause := where_clause||'AND gtm.test_method_code >= :from_test_method_code ';
187: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_method_code ';
188: END IF;
189:

Line 187: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_method_code ';

183: IF p_from_test_method_code IS NOT NULL
184: THEN
185: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;
186: where_clause := where_clause||'AND gtm.test_method_code >= :from_test_method_code ';
187: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_method_code ';
188: END IF;
189:
190: IF p_to_test_method_code IS NOT NULL
191: THEN

Line 192: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;

188: END IF;
189:
190: IF p_to_test_method_code IS NOT NULL
191: THEN
192: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;
193: where_clause := where_clause||'AND gtm.test_method_code <= :to_test_method_code ';
194: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_method_code ';
195: END IF;
196:

Line 194: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_method_code ';

190: IF p_to_test_method_code IS NOT NULL
191: THEN
192: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;
193: where_clause := where_clause||'AND gtm.test_method_code <= :to_test_method_code ';
194: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_method_code ';
195: END IF;
196:
197: IF p_test_method_id IS NOT NULL
198: THEN

Line 199: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;

195: END IF;
196:
197: IF p_test_method_id IS NOT NULL
198: THEN
199: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
200: where_clause := where_clause||'AND gtm.test_method_id = :test_method_id ';
201: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id ';
202: END IF;
203:

Line 201: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id ';

197: IF p_test_method_id IS NOT NULL
198: THEN
199: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
200: where_clause := where_clause||'AND gtm.test_method_id = :test_method_id ';
201: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id ';
202: END IF;
203:
204: IF p_test_kit_organization_id IS NOT NULL --INVCONV
205: THEN

Line 206: gmd_outbound_apis_pub.g_test_kit_organization_id := p_test_kit_organization_id;

202: END IF;
203:
204: IF p_test_kit_organization_id IS NOT NULL --INVCONV
205: THEN
206: gmd_outbound_apis_pub.g_test_kit_organization_id := p_test_kit_organization_id;
207: where_clause := where_clause||'AND gtm.test_kit_organization_id = :test_kit_organization_id ';
208: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_organization_id ';
209: END IF;
210:

Line 208: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_organization_id ';

204: IF p_test_kit_organization_id IS NOT NULL --INVCONV
205: THEN
206: gmd_outbound_apis_pub.g_test_kit_organization_id := p_test_kit_organization_id;
207: where_clause := where_clause||'AND gtm.test_kit_organization_id = :test_kit_organization_id ';
208: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_organization_id ';
209: END IF;
210:
211: IF p_test_kit_inv_item_id IS NOT NULL --INVCONV
212: THEN

Line 213: gmd_outbound_apis_pub.g_test_kit_inv_item_id := p_test_kit_inv_item_id;

209: END IF;
210:
211: IF p_test_kit_inv_item_id IS NOT NULL --INVCONV
212: THEN
213: gmd_outbound_apis_pub.g_test_kit_inv_item_id := p_test_kit_inv_item_id;
214: where_clause := where_clause||'AND gtm.test_kit_item_id = :test_kit_inv_item_id ';
215: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_inv_item_id ';
216: END IF;
217:

Line 215: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_inv_item_id ';

211: IF p_test_kit_inv_item_id IS NOT NULL --INVCONV
212: THEN
213: gmd_outbound_apis_pub.g_test_kit_inv_item_id := p_test_kit_inv_item_id;
214: where_clause := where_clause||'AND gtm.test_kit_item_id = :test_kit_inv_item_id ';
215: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_kit_inv_item_id ';
216: END IF;
217:
218: IF p_resource IS NOT NULL
219: THEN

Line 220: gmd_outbound_apis_pub.g_resource := p_resource;

216: END IF;
217:
218: IF p_resource IS NOT NULL
219: THEN
220: gmd_outbound_apis_pub.g_resource := p_resource;
221: where_clause := where_clause||'AND gtm.resources = :resources ';
222: using_clause := using_clause||', gmd_outbound_apis_pub.g_resource ';
223: END IF;
224:

Line 222: using_clause := using_clause||', gmd_outbound_apis_pub.g_resource ';

218: IF p_resource IS NOT NULL
219: THEN
220: gmd_outbound_apis_pub.g_resource := p_resource;
221: where_clause := where_clause||'AND gtm.resources = :resources ';
222: using_clause := using_clause||', gmd_outbound_apis_pub.g_resource ';
223: END IF;
224:
225: IF p_delete_mark IS NOT NULL
226: THEN

Line 227: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;

223: END IF;
224:
225: IF p_delete_mark IS NOT NULL
226: THEN
227: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;
228: where_clause := where_clause||'AND gtm.delete_mark = :delete_mark ';
229: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';
230: END IF;
231:

Line 229: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';

225: IF p_delete_mark IS NOT NULL
226: THEN
227: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;
228: where_clause := where_clause||'AND gtm.delete_mark = :delete_mark ';
229: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';
230: END IF;
231:
232: IF p_from_last_update_date IS NOT NULL
233: THEN

Line 234: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

230: END IF;
231:
232: IF p_from_last_update_date IS NOT NULL
233: THEN
234: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
235: where_clause := where_clause||'AND gtm.last_update_date >= :from_last_update_date ';
236: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
237: END IF;
238:

Line 236: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

232: IF p_from_last_update_date IS NOT NULL
233: THEN
234: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
235: where_clause := where_clause||'AND gtm.last_update_date >= :from_last_update_date ';
236: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
237: END IF;
238:
239: IF p_to_last_update_date IS NOT NULL
240: THEN

Line 241: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

237: END IF;
238:
239: IF p_to_last_update_date IS NOT NULL
240: THEN
241: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
242: where_clause := where_clause||'AND gtm.last_update_date <= :to_last_update_date';
243: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';
244: END IF;
245:

Line 243: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';

239: IF p_to_last_update_date IS NOT NULL
240: THEN
241: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
242: where_clause := where_clause||'AND gtm.last_update_date <= :to_last_update_date';
243: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';
244: END IF;
245:
246: -- That's more or less the job done. We just need to tell the system where to store the data
247:

Line 248: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_test_methods_table ';

244: END IF;
245:
246: -- That's more or less the job done. We just need to tell the system where to store the data
247:
248: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_test_methods_table ';
249:
250: execution_string := 'BEGIN EXECUTE IMMEDIATE '
251: ||''''
252: ||sql_statement||column_list||table_list||where_clause

Line 297: x_test_methods_table := gmd_outbound_apis_pub.g_test_methods_table;

293: END LOOP;
294: END IF;
295:
296: --gme_debug.put_line('Returning table to caller');
297: x_test_methods_table := gmd_outbound_apis_pub.g_test_methods_table;
298: x_return_status := FND_API.G_RET_STS_SUCCESS;
299:
300: END IF;
301:

Line 379: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

375: l_api_name VARCHAR2(100) := 'fetch_tests';
376: BEGIN
377:
378: IF NOT FND_API.Compatible_API_CALL
379: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
380: OR NOT initialized_ok(p_user_name)
381: THEN
382: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
383: ELSE

Line 421: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;

417: using_clause := ' USING 1';
418:
419: IF p_from_test_method_code IS NOT NULL
420: THEN
421: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;
422: where_clause := where_clause ||' AND gtm.test_method_code >= :from_test_method_code';
423: using_clause := using_clause ||', gmd_outbound_apis_pub.g_from_test_method_code';
424: END IF;
425:

Line 423: using_clause := using_clause ||', gmd_outbound_apis_pub.g_from_test_method_code';

419: IF p_from_test_method_code IS NOT NULL
420: THEN
421: gmd_outbound_apis_pub.g_from_test_method_code := p_from_test_method_code;
422: where_clause := where_clause ||' AND gtm.test_method_code >= :from_test_method_code';
423: using_clause := using_clause ||', gmd_outbound_apis_pub.g_from_test_method_code';
424: END IF;
425:
426: IF p_to_test_method_code IS NOT NULL
427: THEN

Line 428: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;

424: END IF;
425:
426: IF p_to_test_method_code IS NOT NULL
427: THEN
428: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;
429: where_clause := where_clause ||' AND gtm.test_method_code <= :to_test_method_code';
430: using_clause := using_clause ||', gmd_outbound_apis_pub.g_to_test_method_code';
431: END IF;
432:

Line 430: using_clause := using_clause ||', gmd_outbound_apis_pub.g_to_test_method_code';

426: IF p_to_test_method_code IS NOT NULL
427: THEN
428: gmd_outbound_apis_pub.g_to_test_method_code := p_to_test_method_code;
429: where_clause := where_clause ||' AND gtm.test_method_code <= :to_test_method_code';
430: using_clause := using_clause ||', gmd_outbound_apis_pub.g_to_test_method_code';
431: END IF;
432:
433: IF p_from_test_code IS NOT NULL
434: THEN

Line 435: gmd_outbound_apis_pub.g_from_test_code := p_from_test_code;

431: END IF;
432:
433: IF p_from_test_code IS NOT NULL
434: THEN
435: gmd_outbound_apis_pub.g_from_test_code := p_from_test_code;
436: where_clause := where_clause||' AND gqt.test_code >= :from_test_code';
437: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_code';
438: END IF;
439:

Line 437: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_code';

433: IF p_from_test_code IS NOT NULL
434: THEN
435: gmd_outbound_apis_pub.g_from_test_code := p_from_test_code;
436: where_clause := where_clause||' AND gqt.test_code >= :from_test_code';
437: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_code';
438: END IF;
439:
440: IF p_to_test_code IS NOT NULL
441: THEN

Line 442: gmd_outbound_apis_pub.g_to_test_code := p_to_test_code;

438: END IF;
439:
440: IF p_to_test_code IS NOT NULL
441: THEN
442: gmd_outbound_apis_pub.g_to_test_code := p_to_test_code;
443: where_clause := where_clause||' AND gqt.test_code <= :to_test_code';
444: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_code';
445: END IF;
446:

Line 444: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_code';

440: IF p_to_test_code IS NOT NULL
441: THEN
442: gmd_outbound_apis_pub.g_to_test_code := p_to_test_code;
443: where_clause := where_clause||' AND gqt.test_code <= :to_test_code';
444: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_code';
445: END IF;
446:
447:
448: IF p_test_method_id IS NOT NULL

Line 450: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;

446:
447:
448: IF p_test_method_id IS NOT NULL
449: THEN
450: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
451: where_clause := where_clause||' AND gqt.test_method_id = :test_method_id';
452: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id';
453: END IF;
454:

Line 452: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id';

448: IF p_test_method_id IS NOT NULL
449: THEN
450: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
451: where_clause := where_clause||' AND gqt.test_method_id = :test_method_id';
452: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_method_id';
453: END IF;
454:
455:
456: IF p_test_id IS NOT NULL

Line 458: gmd_outbound_apis_pub.g_test_id := p_test_id;

454:
455:
456: IF p_test_id IS NOT NULL
457: THEN
458: gmd_outbound_apis_pub.g_test_id := p_test_id;
459: where_clause := where_clause||' AND gqt.test_id = :test_id';
460: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_id';
461: END IF;
462:

Line 460: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_id';

456: IF p_test_id IS NOT NULL
457: THEN
458: gmd_outbound_apis_pub.g_test_id := p_test_id;
459: where_clause := where_clause||' AND gqt.test_id = :test_id';
460: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_id';
461: END IF;
462:
463:
464: IF p_test_class IS NOT NULL

Line 466: gmd_outbound_apis_pub.g_test_class := p_test_class;

462:
463:
464: IF p_test_class IS NOT NULL
465: THEN
466: gmd_outbound_apis_pub.g_test_class := p_test_class;
467: where_clause := where_clause||' AND gqt.test_class = :test_class';
468: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_class';
469: END IF;
470:

Line 468: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_class';

464: IF p_test_class IS NOT NULL
465: THEN
466: gmd_outbound_apis_pub.g_test_class := p_test_class;
467: where_clause := where_clause||' AND gqt.test_class = :test_class';
468: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_class';
469: END IF;
470:
471:
472: IF p_test_type IS NOT NULL

Line 474: gmd_outbound_apis_pub.g_test_type := p_test_type;

470:
471:
472: IF p_test_type IS NOT NULL
473: THEN
474: gmd_outbound_apis_pub.g_test_type := p_test_type;
475: where_clause := where_clause||' AND gqt.test_type = :test_type';
476: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_type';
477: END IF;
478:

Line 476: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_type';

472: IF p_test_type IS NOT NULL
473: THEN
474: gmd_outbound_apis_pub.g_test_type := p_test_type;
475: where_clause := where_clause||' AND gqt.test_type = :test_type';
476: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_type';
477: END IF;
478:
479:
480: IF p_priority IS NOT NULL

Line 482: gmd_outbound_apis_pub.g_priority := p_priority;

478:
479:
480: IF p_priority IS NOT NULL
481: THEN
482: gmd_outbound_apis_pub.g_priority := p_priority;
483: where_clause := where_clause||' AND gqt.test_type = :priority';
484: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority';
485: END IF;
486:

Line 484: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority';

480: IF p_priority IS NOT NULL
481: THEN
482: gmd_outbound_apis_pub.g_priority := p_priority;
483: where_clause := where_clause||' AND gqt.test_type = :priority';
484: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority';
485: END IF;
486:
487:
488: IF p_delete_mark IS NOT NULL

Line 490: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;

486:
487:
488: IF p_delete_mark IS NOT NULL
489: THEN
490: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;
491: where_clause := where_clause||' AND gqt.delete_mark = :delete_mark';
492: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';
493: END IF;
494:

Line 492: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';

488: IF p_delete_mark IS NOT NULL
489: THEN
490: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark;
491: where_clause := where_clause||' AND gqt.delete_mark = :delete_mark';
492: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark';
493: END IF;
494:
495:
496: IF p_from_last_update_date IS NOT NULL

Line 498: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

494:
495:
496: IF p_from_last_update_date IS NOT NULL
497: THEN
498: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
499: where_clause := where_clause||' AND gqt.last_update_date >= :from_last_update_date';
500: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date';
501: END IF;
502:

Line 500: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date';

496: IF p_from_last_update_date IS NOT NULL
497: THEN
498: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
499: where_clause := where_clause||' AND gqt.last_update_date >= :from_last_update_date';
500: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date';
501: END IF;
502:
503: IF p_to_last_update_date IS NOT NULL
504: THEN

Line 505: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

501: END IF;
502:
503: IF p_to_last_update_date IS NOT NULL
504: THEN
505: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
506: where_clause := where_clause||' AND gqt.last_update_date <= :to_last_update_date';
507: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';
508: END IF;
509:

Line 507: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';

503: IF p_to_last_update_date IS NOT NULL
504: THEN
505: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
506: where_clause := where_clause||' AND gqt.last_update_date <= :to_last_update_date';
507: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date';
508: END IF;
509:
510: -- That's more or less the job done. We just need to tell the system where to store the data
511:

Line 512: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_tests_table ';

508: END IF;
509:
510: -- That's more or less the job done. We just need to tell the system where to store the data
511:
512: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_tests_table ';
513:
514: execution_string := 'BEGIN EXECUTE IMMEDIATE '
515: ||''''
516: ||sql_statement||column_list||table_list||where_clause

Line 538: x_tests_table := gmd_outbound_apis_pub.g_tests_table;

534: CLOSE customers_cursor;
535: END LOOP;
536: END IF;
537:
538: x_tests_table := gmd_outbound_apis_pub.g_tests_table;
539: x_return_status := FND_API.G_RET_STS_SUCCESS;
540: END IF;
541:
542: FND_MSG_PUB.count_and_get(p_count => x_msg_count, p_data => x_msg_data);

Line 773: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

769: BEGIN
770:
771:
772: IF NOT FND_API.Compatible_API_CALL
773: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
774: OR NOT initialized_ok(p_user_name)
775: THEN
776:
777: Raise FND_API.G_EXC_UNEXPECTED_ERROR;

Line 1075: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_spec_name';

1071: IF p_from_spec_name IS NOT NULL
1072: THEN
1073: g_from_spec_name := p_from_spec_name;
1074: main_where_clause := main_where_clause||' AND gs.spec_name >= :from_spec_name';
1075: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_spec_name';
1076: END IF;
1077:
1078: IF p_to_spec_name IS NOT NULL
1079: THEN

Line 1082: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_spec_name';

1078: IF p_to_spec_name IS NOT NULL
1079: THEN
1080: g_to_spec_name := p_to_spec_name;
1081: main_where_clause := main_where_clause||' AND gs.spec_name <= :to_spec_name';
1082: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_spec_name';
1083: END IF;
1084:
1085: IF p_spec_id IS NOT NULL
1086: THEN

Line 1087: gmd_outbound_apis_pub.g_spec_id := p_spec_id;

1083: END IF;
1084:
1085: IF p_spec_id IS NOT NULL
1086: THEN
1087: gmd_outbound_apis_pub.g_spec_id := p_spec_id;
1088: main_where_clause := main_where_clause||' AND gs.spec_id = :spec_id';
1089: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_id';
1090: END IF;
1091:

Line 1089: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_id';

1085: IF p_spec_id IS NOT NULL
1086: THEN
1087: gmd_outbound_apis_pub.g_spec_id := p_spec_id;
1088: main_where_clause := main_where_clause||' AND gs.spec_id = :spec_id';
1089: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_id';
1090: END IF;
1091:
1092: IF p_spec_version IS NOT NULL
1093: THEN

Line 1096: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_version';

1092: IF p_spec_version IS NOT NULL
1093: THEN
1094: g_spec_version := p_spec_version;
1095: main_where_clause := main_where_clause||' AND gs.spec_vers = :spec_version';
1096: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_version';
1097: END IF;
1098:
1099: IF p_from_grade_code IS NOT NULL
1100: THEN

Line 1103: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_grade_code';

1099: IF p_from_grade_code IS NOT NULL
1100: THEN
1101: g_from_grade_code := p_from_grade_code;
1102: main_where_clause := main_where_clause||' AND gs.grade_code >= :from_grade_code';
1103: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_grade_code';
1104: END IF;
1105:
1106: IF p_to_grade_code IS NOT NULL
1107: THEN

Line 1110: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_grade_code';

1106: IF p_to_grade_code IS NOT NULL
1107: THEN
1108: g_to_grade_code := p_to_grade_code;
1109: main_where_clause := main_where_clause||' AND gs.grade <= :to_grade_code';
1110: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_grade_code';
1111: END IF;
1112:
1113: IF p_inventory_item_id IS NOT NULL
1114: THEN

Line 1117: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_inventory_item_id';

1113: IF p_inventory_item_id IS NOT NULL
1114: THEN
1115: g_inventory_item_id := p_inventory_item_id;
1116: main_where_clause := main_where_clause|| ' AND gs.inventory_item_id = :inventory_item_id';
1117: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_inventory_item_id';
1118: END if;
1119:
1120: -- Start RLNAGARA Bug # 4548546
1121: IF p_from_revision IS NOT NULL

Line 1125: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_revision';

1121: IF p_from_revision IS NOT NULL
1122: THEN
1123: g_from_revision := p_from_revision;
1124: main_where_clause := main_where_clause||' AND gs.revision >= :from_revision';
1125: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_revision';
1126: END IF;
1127:
1128: IF p_to_revision IS NOT NULL
1129: THEN

Line 1132: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_revision';

1128: IF p_to_revision IS NOT NULL
1129: THEN
1130: g_to_revision := p_to_revision;
1131: main_where_clause := main_where_clause||' AND gs.revision <= :to_revision';
1132: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_revision';
1133: END IF;
1134: -- End RLNAGARA Bug # 4548546
1135:
1136: IF p_from_item_number IS NOT NULL and p_to_item_number IS NOT NULL

Line 1144: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';

1140: main_where_clause := main_where_clause
1141: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
1142: ||' WHERE concatenated_segments BETWEEN :from_item_number AND :to_item_number'
1143: ||' AND organization_id = gs.owner_organization_id)';
1144: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';
1145: ELSIF p_from_item_number IS NOT NULL
1146: THEN
1147: g_from_item_number := p_from_item_number;
1148: main_where_clause := main_where_clause

Line 1152: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';

1148: main_where_clause := main_where_clause
1149: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
1150: ||' WHERE concatenated_segments >= :from_item_number'
1151: ||' AND organization_id = gs.owner_organization_id)';
1152: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';
1153: ELSIF p_to_item_number IS NOT NULL
1154: THEN
1155: g_to_item_number := p_to_item_number;
1156: main_where_clause := main_where_clause

Line 1160: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';

1156: main_where_clause := main_where_clause
1157: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
1158: ||' WHERE concatenated_segments <= :to_item_number'
1159: ||' AND organization_id = gs.owner_organization_id)';
1160: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';
1161: END IF;
1162:
1163: IF p_owner_organization_code IS NOT NULL
1164: THEN

Line 1168: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_owner_organization_code';

1164: THEN
1165: g_owner_organization_code := p_owner_organization_code;
1166: main_where_clause := main_where_clause|| ' AND gs.owner_organization_id = (SELECT organization_id'
1167: || ' FROM mtl_organizations WHERE organization_code = :owner_organization_code)';
1168: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_owner_organization_code';
1169: END IF;
1170:
1171: IF p_spec_status IS NOT NULL
1172: THEN

Line 1175: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_spec_status';

1171: IF p_spec_status IS NOT NULL
1172: THEN
1173: g_spec_status := p_spec_status;
1174: main_where_clause := main_where_clause|| ' AND gs.spec_status = :spec_status';
1175: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_spec_status';
1176: END IF;
1177:
1178: IF p_spec_delete_mark IS NOT NULL
1179: THEN

Line 1182: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_spec_delete_mark';

1178: IF p_spec_delete_mark IS NOT NULL
1179: THEN
1180: g_spec_delete_mark := p_spec_delete_mark;
1181: main_where_clause := main_where_clause|| ' AND gs.delete_mark = :delete_mark';
1182: main_using_clause := main_using_clause|| ', gmd_outbound_apis_pub.g_spec_delete_mark';
1183: END IF;
1184:
1185: IF p_from_spec_last_update IS NOT NULL
1186: THEN

Line 1187: gmd_outbound_apis_pub.g_from_spec_last_update := p_from_spec_last_update;

1183: END IF;
1184:
1185: IF p_from_spec_last_update IS NOT NULL
1186: THEN
1187: gmd_outbound_apis_pub.g_from_spec_last_update := p_from_spec_last_update;
1188: main_where_clause := main_where_clause||' AND gs.last_update_date >= :from_spec_last_update';
1189: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_spec_last_update';
1190: END IF;
1191:

Line 1189: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_spec_last_update';

1185: IF p_from_spec_last_update IS NOT NULL
1186: THEN
1187: gmd_outbound_apis_pub.g_from_spec_last_update := p_from_spec_last_update;
1188: main_where_clause := main_where_clause||' AND gs.last_update_date >= :from_spec_last_update';
1189: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_spec_last_update';
1190: END IF;
1191:
1192: IF p_to_spec_last_update IS NOT NULL
1193: THEN

Line 1194: gmd_outbound_apis_pub.g_to_spec_last_update := p_to_spec_last_update;

1190: END IF;
1191:
1192: IF p_to_spec_last_update IS NOT NULL
1193: THEN
1194: gmd_outbound_apis_pub.g_to_spec_last_update := p_to_spec_last_update;
1195: main_where_clause := main_where_clause||' AND gs.last_update_date <= :to_spec_last_update';
1196: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_spec_last_update';
1197: END IF;
1198:

Line 1196: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_spec_last_update';

1192: IF p_to_spec_last_update IS NOT NULL
1193: THEN
1194: gmd_outbound_apis_pub.g_to_spec_last_update := p_to_spec_last_update;
1195: main_where_clause := main_where_clause||' AND gs.last_update_date <= :to_spec_last_update';
1196: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_spec_last_update';
1197: END IF;
1198:
1199: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
1200: IF p_overlay_ind IS NOT NULL

Line 1202: gmd_outbound_apis_pub.g_overlay_ind := p_overlay_ind;

1198:
1199: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
1200: IF p_overlay_ind IS NOT NULL
1201: THEN
1202: gmd_outbound_apis_pub.g_overlay_ind := p_overlay_ind;
1203: main_where_clause := main_where_clause||' AND gs.overlay_ind = :overlay_ind';
1204: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_overlay_ind';
1205: END IF;
1206:

Line 1204: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_overlay_ind';

1200: IF p_overlay_ind IS NOT NULL
1201: THEN
1202: gmd_outbound_apis_pub.g_overlay_ind := p_overlay_ind;
1203: main_where_clause := main_where_clause||' AND gs.overlay_ind = :overlay_ind';
1204: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_overlay_ind';
1205: END IF;
1206:
1207: IF p_spec_type IS NOT NULL
1208: THEN

Line 1209: gmd_outbound_apis_pub.g_spec_type := p_spec_type;

1205: END IF;
1206:
1207: IF p_spec_type IS NOT NULL
1208: THEN
1209: gmd_outbound_apis_pub.g_spec_type := p_spec_type;
1210: main_where_clause := main_where_clause||' AND gs.spec_type = :spec_type';
1211: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_type';
1212: END IF;
1213:

Line 1211: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_type';

1207: IF p_spec_type IS NOT NULL
1208: THEN
1209: gmd_outbound_apis_pub.g_spec_type := p_spec_type;
1210: main_where_clause := main_where_clause||' AND gs.spec_type = :spec_type';
1211: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_spec_type';
1212: END IF;
1213:
1214: IF p_base_spec_id IS NOT NULL
1215: THEN

Line 1216: gmd_outbound_apis_pub.g_base_spec_id := p_base_spec_id;

1212: END IF;
1213:
1214: IF p_base_spec_id IS NOT NULL
1215: THEN
1216: gmd_outbound_apis_pub.g_base_spec_id := p_base_spec_id;
1217: main_where_clause := main_where_clause||' AND gs.base_spec_id = :base_spec_id';
1218: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_id';
1219: END IF;
1220:

Line 1218: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_id';

1214: IF p_base_spec_id IS NOT NULL
1215: THEN
1216: gmd_outbound_apis_pub.g_base_spec_id := p_base_spec_id;
1217: main_where_clause := main_where_clause||' AND gs.base_spec_id = :base_spec_id';
1218: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_id';
1219: END IF;
1220:
1221: IF p_base_spec_name IS NOT NULL OR p_base_spec_version IS NOT NULL
1222: THEN

Line 1228: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;

1224: main_where_clause := main_where_clause || ' AND gsp.spec_id = gs.base_spec_id';
1225:
1226: IF p_base_spec_name IS NOT NULL
1227: THEN
1228: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;
1229: main_where_clause := main_where_clause||' AND gsp.spec_name = :base_spec_name';
1230: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_name';
1231: END IF;
1232:

Line 1230: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_name';

1226: IF p_base_spec_name IS NOT NULL
1227: THEN
1228: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;
1229: main_where_clause := main_where_clause||' AND gsp.spec_name = :base_spec_name';
1230: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_name';
1231: END IF;
1232:
1233: IF p_base_spec_version IS NOT NULL
1234: THEN

Line 1235: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;

1231: END IF;
1232:
1233: IF p_base_spec_version IS NOT NULL
1234: THEN
1235: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;
1236: main_where_clause := main_where_clause||' AND gsp.spec_vers = :base_spec_version';
1237: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_version';
1238: END IF;
1239:

Line 1237: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_version';

1233: IF p_base_spec_version IS NOT NULL
1234: THEN
1235: gmd_outbound_apis_pub.g_base_spec_name := p_base_spec_name;
1236: main_where_clause := main_where_clause||' AND gsp.spec_vers = :base_spec_version';
1237: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_base_spec_version';
1238: END IF;
1239:
1240: END IF;
1241: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs

Line 1267: gmd_outbound_apis_pub.g_test_code := p_test_code;

1263: -- main where clause and the spec_test where clause.
1264:
1265: IF p_test_code IS NOT NULL
1266: THEN
1267: gmd_outbound_apis_pub.g_test_code := p_test_code;
1268: main_table_list := main_table_list||', gmd_qc_tests_b gqtb';
1269: main_where_clause := main_where_clause||' AND gqtb.test_code = :p_test_code';
1270: main_where_clause := main_where_clause||' AND mgst.test_id = gqtb.test_id';
1271: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_code';

Line 1271: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_code';

1267: gmd_outbound_apis_pub.g_test_code := p_test_code;
1268: main_table_list := main_table_list||', gmd_qc_tests_b gqtb';
1269: main_where_clause := main_where_clause||' AND gqtb.test_code = :p_test_code';
1270: main_where_clause := main_where_clause||' AND mgst.test_id = gqtb.test_id';
1271: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_code';
1272:
1273: spec_test_where_clause := spec_test_where_clause||' AND gst.test_id=gqtb.test_id';
1274: END IF;
1275:

Line 1278: gmd_outbound_apis_pub.g_test_id := p_test_id;

1274: END IF;
1275:
1276: IF p_test_id IS NOT NULL
1277: THEN
1278: gmd_outbound_apis_pub.g_test_id := p_test_id;
1279: main_where_clause := main_where_clause||' AND mgst.test_id = :p_test_id';
1280: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_id';
1281:
1282: spec_test_where_clause := spec_test_where_clause||' AND gst.test_id = :p_test_id';

Line 1280: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_id';

1276: IF p_test_id IS NOT NULL
1277: THEN
1278: gmd_outbound_apis_pub.g_test_id := p_test_id;
1279: main_where_clause := main_where_clause||' AND mgst.test_id = :p_test_id';
1280: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_id';
1281:
1282: spec_test_where_clause := spec_test_where_clause||' AND gst.test_id = :p_test_id';
1283: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_id';
1284: END IF;

Line 1283: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_id';

1279: main_where_clause := main_where_clause||' AND mgst.test_id = :p_test_id';
1280: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_id';
1281:
1282: spec_test_where_clause := spec_test_where_clause||' AND gst.test_id = :p_test_id';
1283: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_id';
1284: END IF;
1285:
1286: IF p_test_method_id IS NOT NULL
1287: THEN

Line 1288: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;

1284: END IF;
1285:
1286: IF p_test_method_id IS NOT NULL
1287: THEN
1288: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
1289: main_where_clause := main_where_clause||' AND gtm.test_method_id = :p_test_method_id';
1290: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_id';
1291:
1292: spec_test_where_clause := spec_test_where_clause||' AND gtm.test_method_id = :p_test_method_id';

Line 1290: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_id';

1286: IF p_test_method_id IS NOT NULL
1287: THEN
1288: gmd_outbound_apis_pub.g_test_method_id := p_test_method_id;
1289: main_where_clause := main_where_clause||' AND gtm.test_method_id = :p_test_method_id';
1290: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_id';
1291:
1292: spec_test_where_clause := spec_test_where_clause||' AND gtm.test_method_id = :p_test_method_id';
1293: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_id';
1294: END IF;

Line 1293: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_id';

1289: main_where_clause := main_where_clause||' AND gtm.test_method_id = :p_test_method_id';
1290: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_id';
1291:
1292: spec_test_where_clause := spec_test_where_clause||' AND gtm.test_method_id = :p_test_method_id';
1293: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_id';
1294: END IF;
1295:
1296: IF p_test_method_code IS NOT NULL
1297: THEN

Line 1302: gmd_outbound_apis_pub.g_test_method_code := p_test_method_code;

1298: -- Need to link in the test methods table if the test method code parameter is passed
1299:
1300: main_table_list := main_table_list||', gmd_test_methods mgtm';
1301:
1302: gmd_outbound_apis_pub.g_test_method_code := p_test_method_code;
1303: main_where_clause := main_where_clause||' AND mgtm.test_method_code = :p_test_method_code'
1304: ||' AND mgtm.test_method_id = mgst.test_method_id';
1305: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_code';
1306:

Line 1305: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_code';

1301:
1302: gmd_outbound_apis_pub.g_test_method_code := p_test_method_code;
1303: main_where_clause := main_where_clause||' AND mgtm.test_method_code = :p_test_method_code'
1304: ||' AND mgtm.test_method_id = mgst.test_method_id';
1305: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_code';
1306:
1307: spec_test_where_clause := spec_test_where_clause||' AND gtm.test_method_code = :p_test_method_code';
1308: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_code';
1309:

Line 1308: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_code';

1304: ||' AND mgtm.test_method_id = mgst.test_method_id';
1305: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_method_code';
1306:
1307: spec_test_where_clause := spec_test_where_clause||' AND gtm.test_method_code = :p_test_method_code';
1308: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_method_code';
1309:
1310: END IF;
1311:
1312: IF p_test_qty_uom IS NOT NULL

Line 1314: gmd_outbound_apis_pub.g_test_qty_uom := p_test_qty_uom;

1310: END IF;
1311:
1312: IF p_test_qty_uom IS NOT NULL
1313: THEN
1314: gmd_outbound_apis_pub.g_test_qty_uom := p_test_qty_uom;
1315: main_where_clause := main_where_clause||' AND mgst.test_qty_uom = :p_test_qty_uom';
1316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';
1317:
1318: spec_test_where_clause := spec_test_where_clause||' AND gst.test_qty_uom = :p_test_qty_uom';

Line 1316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';

1312: IF p_test_qty_uom IS NOT NULL
1313: THEN
1314: gmd_outbound_apis_pub.g_test_qty_uom := p_test_qty_uom;
1315: main_where_clause := main_where_clause||' AND mgst.test_qty_uom = :p_test_qty_uom';
1316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';
1317:
1318: spec_test_where_clause := spec_test_where_clause||' AND gst.test_qty_uom = :p_test_qty_uom';
1319: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';
1320: END IF;

Line 1319: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';

1315: main_where_clause := main_where_clause||' AND mgst.test_qty_uom = :p_test_qty_uom';
1316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';
1317:
1318: spec_test_where_clause := spec_test_where_clause||' AND gst.test_qty_uom = :p_test_qty_uom';
1319: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_qty_uom';
1320: END IF;
1321:
1322: IF p_test_priority IS NOT NULL
1323: THEN

Line 1324: gmd_outbound_apis_pub.g_test_priority := p_test_priority;

1320: END IF;
1321:
1322: IF p_test_priority IS NOT NULL
1323: THEN
1324: gmd_outbound_apis_pub.g_test_priority := p_test_priority;
1325: main_where_clause := main_where_clause||' AND mgst.test_priority = :p_test_priority';
1326: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_priority';
1327:
1328: spec_test_where_clause := spec_test_where_clause||' AND gst.test_priority = :p_test_priority';

Line 1326: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_priority';

1322: IF p_test_priority IS NOT NULL
1323: THEN
1324: gmd_outbound_apis_pub.g_test_priority := p_test_priority;
1325: main_where_clause := main_where_clause||' AND mgst.test_priority = :p_test_priority';
1326: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_priority';
1327:
1328: spec_test_where_clause := spec_test_where_clause||' AND gst.test_priority = :p_test_priority';
1329: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_priority';
1330: END IF;

Line 1329: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_priority';

1325: main_where_clause := main_where_clause||' AND mgst.test_priority = :p_test_priority';
1326: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_priority';
1327:
1328: spec_test_where_clause := spec_test_where_clause||' AND gst.test_priority = :p_test_priority';
1329: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_priority';
1330: END IF;
1331:
1332: IF p_from_test_last_update IS NOT NULL
1333: THEN

Line 1334: gmd_outbound_apis_pub.g_from_test_last_update := p_from_test_last_update;

1330: END IF;
1331:
1332: IF p_from_test_last_update IS NOT NULL
1333: THEN
1334: gmd_outbound_apis_pub.g_from_test_last_update := p_from_test_last_update;
1335: main_where_clause := main_where_clause||' AND mgst.last_update_date >= :p_from_test_last_update';
1336: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';
1337:
1338: spec_test_where_clause := spec_test_where_clause||' AND gst.last_update_date >= :p_from_test_last_update';

Line 1336: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';

1332: IF p_from_test_last_update IS NOT NULL
1333: THEN
1334: gmd_outbound_apis_pub.g_from_test_last_update := p_from_test_last_update;
1335: main_where_clause := main_where_clause||' AND mgst.last_update_date >= :p_from_test_last_update';
1336: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';
1337:
1338: spec_test_where_clause := spec_test_where_clause||' AND gst.last_update_date >= :p_from_test_last_update';
1339: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';
1340: END IF;

Line 1339: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';

1335: main_where_clause := main_where_clause||' AND mgst.last_update_date >= :p_from_test_last_update';
1336: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';
1337:
1338: spec_test_where_clause := spec_test_where_clause||' AND gst.last_update_date >= :p_from_test_last_update';
1339: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_test_last_update';
1340: END IF;
1341:
1342: IF p_to_test_last_update IS NOT NULL
1343: THEN

Line 1344: gmd_outbound_apis_pub.g_to_test_last_update := p_to_test_last_update;

1340: END IF;
1341:
1342: IF p_to_test_last_update IS NOT NULL
1343: THEN
1344: gmd_outbound_apis_pub.g_to_test_last_update := p_to_test_last_update;
1345: main_where_clause := main_where_clause||' AND mgst.to_update_date <= :p_to_test_last_update';
1346: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';
1347:
1348: spec_test_where_clause := spec_test_where_clause||' AND gst.to_update_date <= :p_to_test_last_update';

Line 1346: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';

1342: IF p_to_test_last_update IS NOT NULL
1343: THEN
1344: gmd_outbound_apis_pub.g_to_test_last_update := p_to_test_last_update;
1345: main_where_clause := main_where_clause||' AND mgst.to_update_date <= :p_to_test_last_update';
1346: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';
1347:
1348: spec_test_where_clause := spec_test_where_clause||' AND gst.to_update_date <= :p_to_test_last_update';
1349: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';
1350: END IF;

Line 1349: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';

1345: main_where_clause := main_where_clause||' AND mgst.to_update_date <= :p_to_test_last_update';
1346: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';
1347:
1348: spec_test_where_clause := spec_test_where_clause||' AND gst.to_update_date <= :p_to_test_last_update';
1349: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_test_last_update';
1350: END IF;
1351:
1352: IF p_test_delete_mark IS NOT NULL
1353: THEN

Line 1354: gmd_outbound_apis_pub.g_test_delete_mark := p_test_delete_mark;

1350: END IF;
1351:
1352: IF p_test_delete_mark IS NOT NULL
1353: THEN
1354: gmd_outbound_apis_pub.g_test_delete_mark := p_test_delete_mark;
1355: main_where_clause := main_where_clause||' AND mgst.delete_mark = :p_test_delete_mark';
1356: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';
1357:
1358: spec_test_where_clause := spec_test_where_clause||' AND gst.delete_mark = :p_test_delete_mark';

Line 1356: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';

1352: IF p_test_delete_mark IS NOT NULL
1353: THEN
1354: gmd_outbound_apis_pub.g_test_delete_mark := p_test_delete_mark;
1355: main_where_clause := main_where_clause||' AND mgst.delete_mark = :p_test_delete_mark';
1356: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';
1357:
1358: spec_test_where_clause := spec_test_where_clause||' AND gst.delete_mark = :p_test_delete_mark';
1359: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';
1360: END IF;

Line 1359: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';

1355: main_where_clause := main_where_clause||' AND mgst.delete_mark = :p_test_delete_mark';
1356: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';
1357:
1358: spec_test_where_clause := spec_test_where_clause||' AND gst.delete_mark = :p_test_delete_mark';
1359: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_test_delete_mark';
1360: END IF;
1361:
1362: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
1363: IF p_from_base_ind IS NOT NULL

Line 1365: gmd_outbound_apis_pub.g_from_base_ind := p_from_base_ind;

1361:
1362: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
1363: IF p_from_base_ind IS NOT NULL
1364: THEN
1365: gmd_outbound_apis_pub.g_from_base_ind := p_from_base_ind;
1366: main_where_clause := main_where_clause||' AND mgst.from_base_ind = :p_from_base_ind';
1367: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';
1368:
1369: spec_test_where_clause := spec_test_where_clause||' AND gst.from_base_ind = :p_from_base_ind';

Line 1367: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';

1363: IF p_from_base_ind IS NOT NULL
1364: THEN
1365: gmd_outbound_apis_pub.g_from_base_ind := p_from_base_ind;
1366: main_where_clause := main_where_clause||' AND mgst.from_base_ind = :p_from_base_ind';
1367: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';
1368:
1369: spec_test_where_clause := spec_test_where_clause||' AND gst.from_base_ind = :p_from_base_ind';
1370: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';
1371: END IF;

Line 1370: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';

1366: main_where_clause := main_where_clause||' AND mgst.from_base_ind = :p_from_base_ind';
1367: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';
1368:
1369: spec_test_where_clause := spec_test_where_clause||' AND gst.from_base_ind = :p_from_base_ind';
1370: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_from_base_ind';
1371: END IF;
1372:
1373: IF p_exclude_ind IS NOT NULL
1374: THEN

Line 1375: gmd_outbound_apis_pub.g_exclude_ind := p_exclude_ind;

1371: END IF;
1372:
1373: IF p_exclude_ind IS NOT NULL
1374: THEN
1375: gmd_outbound_apis_pub.g_exclude_ind := p_exclude_ind;
1376: main_where_clause := main_where_clause||' AND mgst.exclude_ind = :p_exclude_ind';
1377: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';
1378:
1379: spec_test_where_clause := spec_test_where_clause||' AND gst.exclude_ind = :p_exclude_ind';

Line 1377: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';

1373: IF p_exclude_ind IS NOT NULL
1374: THEN
1375: gmd_outbound_apis_pub.g_exclude_ind := p_exclude_ind;
1376: main_where_clause := main_where_clause||' AND mgst.exclude_ind = :p_exclude_ind';
1377: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';
1378:
1379: spec_test_where_clause := spec_test_where_clause||' AND gst.exclude_ind = :p_exclude_ind';
1380: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';
1381: END IF;

Line 1380: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';

1376: main_where_clause := main_where_clause||' AND mgst.exclude_ind = :p_exclude_ind';
1377: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';
1378:
1379: spec_test_where_clause := spec_test_where_clause||' AND gst.exclude_ind = :p_exclude_ind';
1380: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_exclude_ind';
1381: END IF;
1382:
1383: IF p_modified_ind IS NOT NULL
1384: THEN

Line 1385: gmd_outbound_apis_pub.g_modified_ind := p_modified_ind;

1381: END IF;
1382:
1383: IF p_modified_ind IS NOT NULL
1384: THEN
1385: gmd_outbound_apis_pub.g_modified_ind := p_modified_ind;
1386: main_where_clause := main_where_clause||' AND mgst.modified_ind = :p_modified_ind';
1387: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_modified_ind';
1388:
1389: spec_test_where_clause := spec_test_where_clause||' AND gst.modified_ind = :p_modified_ind';

Line 1387: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_modified_ind';

1383: IF p_modified_ind IS NOT NULL
1384: THEN
1385: gmd_outbound_apis_pub.g_modified_ind := p_modified_ind;
1386: main_where_clause := main_where_clause||' AND mgst.modified_ind = :p_modified_ind';
1387: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_modified_ind';
1388:
1389: spec_test_where_clause := spec_test_where_clause||' AND gst.modified_ind = :p_modified_ind';
1390: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_modified_ind';
1391: END IF;

Line 1390: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_modified_ind';

1386: main_where_clause := main_where_clause||' AND mgst.modified_ind = :p_modified_ind';
1387: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_modified_ind';
1388:
1389: spec_test_where_clause := spec_test_where_clause||' AND gst.modified_ind = :p_modified_ind';
1390: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_modified_ind';
1391: END IF;
1392:
1393: IF p_calc_uom_conv_ind IS NOT NULL
1394: THEN

Line 1395: gmd_outbound_apis_pub.g_calc_uom_conv_ind := p_calc_uom_conv_ind;

1391: END IF;
1392:
1393: IF p_calc_uom_conv_ind IS NOT NULL
1394: THEN
1395: gmd_outbound_apis_pub.g_calc_uom_conv_ind := p_calc_uom_conv_ind;
1396: main_where_clause := main_where_clause||' AND mgst.calc_uom_conv_ind = :p_calc_uom_conv_ind';
1397: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';
1398:
1399: spec_test_where_clause := spec_test_where_clause||' AND gst.calc_uom_conv_ind = :p_calc_uom_conv_ind';

Line 1397: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';

1393: IF p_calc_uom_conv_ind IS NOT NULL
1394: THEN
1395: gmd_outbound_apis_pub.g_calc_uom_conv_ind := p_calc_uom_conv_ind;
1396: main_where_clause := main_where_clause||' AND mgst.calc_uom_conv_ind = :p_calc_uom_conv_ind';
1397: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';
1398:
1399: spec_test_where_clause := spec_test_where_clause||' AND gst.calc_uom_conv_ind = :p_calc_uom_conv_ind';
1400: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';
1401: END IF;

Line 1400: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';

1396: main_where_clause := main_where_clause||' AND mgst.calc_uom_conv_ind = :p_calc_uom_conv_ind';
1397: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';
1398:
1399: spec_test_where_clause := spec_test_where_clause||' AND gst.calc_uom_conv_ind = :p_calc_uom_conv_ind';
1400: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_calc_uom_conv_ind';
1401: END IF;
1402:
1403: IF p_to_qty_uom IS NOT NULL
1404: THEN

Line 1405: gmd_outbound_apis_pub.g_to_qty_uom := p_to_qty_uom;

1401: END IF;
1402:
1403: IF p_to_qty_uom IS NOT NULL
1404: THEN
1405: gmd_outbound_apis_pub.g_to_qty_uom := p_to_qty_uom;
1406: main_where_clause := main_where_clause||' AND mgst.to_qty_uom = :p_to_qty_uom';
1407: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';
1408:
1409: spec_test_where_clause := spec_test_where_clause||' AND gst.to_qty_uom = :p_to_qty_uom';

Line 1407: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';

1403: IF p_to_qty_uom IS NOT NULL
1404: THEN
1405: gmd_outbound_apis_pub.g_to_qty_uom := p_to_qty_uom;
1406: main_where_clause := main_where_clause||' AND mgst.to_qty_uom = :p_to_qty_uom';
1407: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';
1408:
1409: spec_test_where_clause := spec_test_where_clause||' AND gst.to_qty_uom = :p_to_qty_uom';
1410: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';
1411: END IF;

Line 1410: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';

1406: main_where_clause := main_where_clause||' AND mgst.to_qty_uom = :p_to_qty_uom';
1407: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';
1408:
1409: spec_test_where_clause := spec_test_where_clause||' AND gst.to_qty_uom = :p_to_qty_uom';
1410: spec_test_using_clause := spec_test_using_clause||', gmd_outbound_apis_pub.g_to_qty_uom';
1411: END IF;
1412:
1413: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs
1414:

Line 1443: gmd_outbound_apis_pub.g_wip_vr_status := p_wip_vr_status;

1439: ||' WHERE 1=1';
1440:
1441: IF p_wip_vr_status IS NOT NULL
1442: THEN
1443: gmd_outbound_apis_pub.g_wip_vr_status := p_wip_vr_status;
1444: main_where_clause := main_where_clause||' AND mwvr.spec_vr_status = :wip_spec_vr_status';
1445: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';
1446:
1447: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.spec_vr_status = :wip_spec_vr_status';

Line 1445: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';

1441: IF p_wip_vr_status IS NOT NULL
1442: THEN
1443: gmd_outbound_apis_pub.g_wip_vr_status := p_wip_vr_status;
1444: main_where_clause := main_where_clause||' AND mwvr.spec_vr_status = :wip_spec_vr_status';
1445: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';
1446:
1447: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.spec_vr_status = :wip_spec_vr_status';
1448: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';
1449:

Line 1448: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';

1444: main_where_clause := main_where_clause||' AND mwvr.spec_vr_status = :wip_spec_vr_status';
1445: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';
1446:
1447: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.spec_vr_status = :wip_spec_vr_status';
1448: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_status';
1449:
1450: END IF;
1451:
1452: IF p_wip_vr_organization_code IS NOT NULL

Line 1454: gmd_outbound_apis_pub.g_wip_vr_organization_code := p_wip_vr_organization_code;

1450: END IF;
1451:
1452: IF p_wip_vr_organization_code IS NOT NULL
1453: THEN
1454: gmd_outbound_apis_pub.g_wip_vr_organization_code := p_wip_vr_organization_code;
1455: main_where_clause := main_where_clause||' AND mwvr.organization_id = (SELECT organization_id '
1456: ||'FROM mtl_organizations WHERE organization_code = :wip_vr_organization_code)';
1457: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';
1458:

Line 1457: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';

1453: THEN
1454: gmd_outbound_apis_pub.g_wip_vr_organization_code := p_wip_vr_organization_code;
1455: main_where_clause := main_where_clause||' AND mwvr.organization_id = (SELECT organization_id '
1456: ||'FROM mtl_organizations WHERE organization_code = :wip_vr_organization_code)';
1457: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';
1458:
1459: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.organization_id = (SELECT organization_id '
1460: ||'FROM mtl_organizations WHERE organization_code = :wip_vr_organization_code)';
1461: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';

Line 1461: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';

1457: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';
1458:
1459: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.organization_id = (SELECT organization_id '
1460: ||'FROM mtl_organizations WHERE organization_code = :wip_vr_organization_code)';
1461: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_organization_code';
1462:
1463: END IF;
1464:
1465: IF p_wip_vr_batch_orgn_code IS NOT NULL

Line 1467: gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code := p_wip_vr_batch_orgn_code;

1463: END IF;
1464:
1465: IF p_wip_vr_batch_orgn_code IS NOT NULL
1466: THEN
1467: gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code := p_wip_vr_batch_orgn_code;
1468: main_where_clause := main_where_clause||' AND mwvr.batch_id IN'
1469: ||' (SELECT batch_id FROM gme_batch_header '
1470: ||' WHERE organization_id = (SELECT organization_id FROM'
1471: ||' mtl_parameters WHERE organization_code = :wip_vr_batch_orgn_code) )';

Line 1472: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code';

1468: main_where_clause := main_where_clause||' AND mwvr.batch_id IN'
1469: ||' (SELECT batch_id FROM gme_batch_header '
1470: ||' WHERE organization_id = (SELECT organization_id FROM'
1471: ||' mtl_parameters WHERE organization_code = :wip_vr_batch_orgn_code) )';
1472: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code';
1473:
1474: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id IN'
1475: ||' (SELECT batch_id FROM gme_batch_header '
1476: ||' WHERE organization_id = (SELECT organization_id FROM'

Line 1478: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code';

1474: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id IN'
1475: ||' (SELECT batch_id FROM gme_batch_header '
1476: ||' WHERE organization_id = (SELECT organization_id FROM'
1477: ||' mtl_parameters WHERE organization_code = :wip_vr_batch_orgn_code) )';
1478: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_orgn_code';
1479: END IF;
1480:
1481: IF p_wip_vr_batch_no IS NOT NULL
1482: THEN

Line 1483: gmd_outbound_apis_pub.g_wip_vr_batch_no := p_wip_vr_batch_no;

1479: END IF;
1480:
1481: IF p_wip_vr_batch_no IS NOT NULL
1482: THEN
1483: gmd_outbound_apis_pub.g_wip_vr_batch_no := p_wip_vr_batch_no;
1484: main_where_clause := main_where_clause||' AND mwvr.batch_id IN'
1485: ||' (SELECT batch_id FROM gme_batch_header '
1486: ||' WHERE batch_no = :wip_vr_batch_no '
1487: ||' AND batch_type = 0)';

Line 1488: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_no';

1484: main_where_clause := main_where_clause||' AND mwvr.batch_id IN'
1485: ||' (SELECT batch_id FROM gme_batch_header '
1486: ||' WHERE batch_no = :wip_vr_batch_no '
1487: ||' AND batch_type = 0)';
1488: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_no';
1489:
1490: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id IN'
1491: ||' (SELECT batch_id FROM gme_batch_header '
1492: ||' WHERE batch_no = :wip_vr_batch_no '

Line 1494: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_no';

1490: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id IN'
1491: ||' (SELECT batch_id FROM gme_batch_header '
1492: ||' WHERE batch_no = :wip_vr_batch_no '
1493: ||' AND batch_type = 0)';
1494: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_no';
1495: END IF;
1496:
1497: IF p_wip_vr_batch_id IS NOT NULL
1498: THEN

Line 1499: gmd_outbound_apis_pub.g_wip_vr_batch_id := p_wip_vr_batch_id;

1495: END IF;
1496:
1497: IF p_wip_vr_batch_id IS NOT NULL
1498: THEN
1499: gmd_outbound_apis_pub.g_wip_vr_batch_id := p_wip_vr_batch_id;
1500: main_where_clause := main_where_clause||' AND mwvr.batch_id = :wip_vr_batch_id';
1501: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';
1502:
1503: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id = :wip_vr_batch_id';

Line 1501: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';

1497: IF p_wip_vr_batch_id IS NOT NULL
1498: THEN
1499: gmd_outbound_apis_pub.g_wip_vr_batch_id := p_wip_vr_batch_id;
1500: main_where_clause := main_where_clause||' AND mwvr.batch_id = :wip_vr_batch_id';
1501: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';
1502:
1503: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id = :wip_vr_batch_id';
1504: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';
1505: END IF;

Line 1504: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';

1500: main_where_clause := main_where_clause||' AND mwvr.batch_id = :wip_vr_batch_id';
1501: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';
1502:
1503: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.batch_id = :wip_vr_batch_id';
1504: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_batch_id';
1505: END IF;
1506:
1507: IF p_wip_vr_recipe_no IS NOT NULL
1508: THEN

Line 1509: gmd_outbound_apis_pub.g_wip_vr_recipe_no := p_wip_vr_recipe_no;

1505: END IF;
1506:
1507: IF p_wip_vr_recipe_no IS NOT NULL
1508: THEN
1509: gmd_outbound_apis_pub.g_wip_vr_recipe_no := p_wip_vr_recipe_no;
1510: main_where_clause := main_where_clause||' AND mwvr.recipe_no = :wip_vr_recipe_no';
1511: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';
1512:
1513: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_no = :wip_vr_recipe_no';

Line 1511: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';

1507: IF p_wip_vr_recipe_no IS NOT NULL
1508: THEN
1509: gmd_outbound_apis_pub.g_wip_vr_recipe_no := p_wip_vr_recipe_no;
1510: main_where_clause := main_where_clause||' AND mwvr.recipe_no = :wip_vr_recipe_no';
1511: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';
1512:
1513: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_no = :wip_vr_recipe_no';
1514: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';
1515: END IF;

Line 1514: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';

1510: main_where_clause := main_where_clause||' AND mwvr.recipe_no = :wip_vr_recipe_no';
1511: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';
1512:
1513: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_no = :wip_vr_recipe_no';
1514: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_no';
1515: END IF;
1516:
1517: IF p_wip_vr_recipe_version IS NOT NULL
1518: THEN

Line 1519: gmd_outbound_apis_pub.g_wip_vr_recipe_version := p_wip_vr_recipe_version;

1515: END IF;
1516:
1517: IF p_wip_vr_recipe_version IS NOT NULL
1518: THEN
1519: gmd_outbound_apis_pub.g_wip_vr_recipe_version := p_wip_vr_recipe_version;
1520: main_where_clause := main_where_clause||' AND mwvr.recipe_version = :wip_vr_recipe_version';
1521: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';
1522:
1523: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_version = :wip_vr_recipe_version';

Line 1521: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';

1517: IF p_wip_vr_recipe_version IS NOT NULL
1518: THEN
1519: gmd_outbound_apis_pub.g_wip_vr_recipe_version := p_wip_vr_recipe_version;
1520: main_where_clause := main_where_clause||' AND mwvr.recipe_version = :wip_vr_recipe_version';
1521: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';
1522:
1523: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_version = :wip_vr_recipe_version';
1524: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';
1525: END IF;

Line 1524: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';

1520: main_where_clause := main_where_clause||' AND mwvr.recipe_version = :wip_vr_recipe_version';
1521: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';
1522:
1523: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_version = :wip_vr_recipe_version';
1524: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_version';
1525: END IF;
1526:
1527: IF p_wip_vr_recipe_id IS NOT NULL
1528: THEN

Line 1529: gmd_outbound_apis_pub.g_wip_vr_recipe_id := p_wip_vr_recipe_id;

1525: END IF;
1526:
1527: IF p_wip_vr_recipe_id IS NOT NULL
1528: THEN
1529: gmd_outbound_apis_pub.g_wip_vr_recipe_id := p_wip_vr_recipe_id;
1530: main_where_clause := main_where_clause||' AND mwvr.recipe_id = :wip_vr_recipe_id';
1531: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';
1532:
1533: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_id = :wip_vr_recipe_id';

Line 1531: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';

1527: IF p_wip_vr_recipe_id IS NOT NULL
1528: THEN
1529: gmd_outbound_apis_pub.g_wip_vr_recipe_id := p_wip_vr_recipe_id;
1530: main_where_clause := main_where_clause||' AND mwvr.recipe_id = :wip_vr_recipe_id';
1531: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';
1532:
1533: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_id = :wip_vr_recipe_id';
1534: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';
1535: END IF;

Line 1534: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';

1530: main_where_clause := main_where_clause||' AND mwvr.recipe_id = :wip_vr_recipe_id';
1531: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';
1532:
1533: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.recipe_id = :wip_vr_recipe_id';
1534: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_recipe_id';
1535: END IF;
1536:
1537: IF p_wip_vr_formula_no IS NOT NULL
1538: THEN

Line 1539: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_formula_no;

1535: END IF;
1536:
1537: IF p_wip_vr_formula_no IS NOT NULL
1538: THEN
1539: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_formula_no;
1540: main_where_clause := main_where_clause||' AND mwvr.formula_no = :wip_vr_formula_no';
1541: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';
1542:
1543: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_no = :wip_vr_formula_no';

Line 1541: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';

1537: IF p_wip_vr_formula_no IS NOT NULL
1538: THEN
1539: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_formula_no;
1540: main_where_clause := main_where_clause||' AND mwvr.formula_no = :wip_vr_formula_no';
1541: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';
1542:
1543: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_no = :wip_vr_formula_no';
1544: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';
1545: END IF;

Line 1544: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';

1540: main_where_clause := main_where_clause||' AND mwvr.formula_no = :wip_vr_formula_no';
1541: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';
1542:
1543: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_no = :wip_vr_formula_no';
1544: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_no';
1545: END IF;
1546:
1547: IF p_wip_vr_formula_version IS NOT NULL
1548: THEN

Line 1549: gmd_outbound_apis_pub.g_wip_vr_formula_version := p_wip_vr_formula_version;

1545: END IF;
1546:
1547: IF p_wip_vr_formula_version IS NOT NULL
1548: THEN
1549: gmd_outbound_apis_pub.g_wip_vr_formula_version := p_wip_vr_formula_version;
1550: main_where_clause := main_where_clause||' AND mwvr.formula_vers = :wip_vr_formula_version';
1551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';
1552:
1553: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_vers = :wip_vr_formula_version';

Line 1551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';

1547: IF p_wip_vr_formula_version IS NOT NULL
1548: THEN
1549: gmd_outbound_apis_pub.g_wip_vr_formula_version := p_wip_vr_formula_version;
1550: main_where_clause := main_where_clause||' AND mwvr.formula_vers = :wip_vr_formula_version';
1551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';
1552:
1553: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_vers = :wip_vr_formula_version';
1554: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';
1555: END IF;

Line 1554: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';

1550: main_where_clause := main_where_clause||' AND mwvr.formula_vers = :wip_vr_formula_version';
1551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';
1552:
1553: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_vers = :wip_vr_formula_version';
1554: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_version';
1555: END IF;
1556:
1557: IF p_wip_vr_formula_id IS NOT NULL
1558: THEN

Line 1559: gmd_outbound_apis_pub.g_wip_vr_formula_id := p_wip_vr_formula_id;

1555: END IF;
1556:
1557: IF p_wip_vr_formula_id IS NOT NULL
1558: THEN
1559: gmd_outbound_apis_pub.g_wip_vr_formula_id := p_wip_vr_formula_id;
1560: main_where_clause := main_where_clause||' AND mwvr.formula_id = :wip_vr_formula_id';
1561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';
1562:
1563: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_id = :wip_vr_formula_id';

Line 1561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';

1557: IF p_wip_vr_formula_id IS NOT NULL
1558: THEN
1559: gmd_outbound_apis_pub.g_wip_vr_formula_id := p_wip_vr_formula_id;
1560: main_where_clause := main_where_clause||' AND mwvr.formula_id = :wip_vr_formula_id';
1561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';
1562:
1563: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_id = :wip_vr_formula_id';
1564: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';
1565: END IF;

Line 1564: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';

1560: main_where_clause := main_where_clause||' AND mwvr.formula_id = :wip_vr_formula_id';
1561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';
1562:
1563: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formula_id = :wip_vr_formula_id';
1564: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formula_id';
1565: END IF;
1566:
1567: IF p_wip_vr_formulaline_no IS NOT NULL
1568: THEN

Line 1569: gmd_outbound_apis_pub.g_wip_vr_formulaline_no := p_wip_vr_formulaline_no;

1565: END IF;
1566:
1567: IF p_wip_vr_formulaline_no IS NOT NULL
1568: THEN
1569: gmd_outbound_apis_pub.g_wip_vr_formulaline_no := p_wip_vr_formulaline_no;
1570: main_where_clause := main_where_clause||' AND mwvr.formulaline_no = :wip_vr_formulaline_no';
1571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';
1572:
1573: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_no = :wip_vr_formulaline_no';

Line 1571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';

1567: IF p_wip_vr_formulaline_no IS NOT NULL
1568: THEN
1569: gmd_outbound_apis_pub.g_wip_vr_formulaline_no := p_wip_vr_formulaline_no;
1570: main_where_clause := main_where_clause||' AND mwvr.formulaline_no = :wip_vr_formulaline_no';
1571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';
1572:
1573: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_no = :wip_vr_formulaline_no';
1574: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';
1575: END IF;

Line 1574: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';

1570: main_where_clause := main_where_clause||' AND mwvr.formulaline_no = :wip_vr_formulaline_no';
1571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';
1572:
1573: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_no = :wip_vr_formulaline_no';
1574: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_no';
1575: END IF;
1576:
1577: IF p_wip_vr_formulaline_id IS NOT NULL
1578: THEN

Line 1579: gmd_outbound_apis_pub.g_wip_vr_formulaline_id := p_wip_vr_formulaline_id;

1575: END IF;
1576:
1577: IF p_wip_vr_formulaline_id IS NOT NULL
1578: THEN
1579: gmd_outbound_apis_pub.g_wip_vr_formulaline_id := p_wip_vr_formulaline_id;
1580: main_where_clause := main_where_clause||' AND mwvr.formulaline_id = :wip_vr_formulaline_id';
1581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';
1582:
1583: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_id = :wip_vr_formulaline_id';

Line 1581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';

1577: IF p_wip_vr_formulaline_id IS NOT NULL
1578: THEN
1579: gmd_outbound_apis_pub.g_wip_vr_formulaline_id := p_wip_vr_formulaline_id;
1580: main_where_clause := main_where_clause||' AND mwvr.formulaline_id = :wip_vr_formulaline_id';
1581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';
1582:
1583: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_id = :wip_vr_formulaline_id';
1584: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';
1585: END IF;

Line 1584: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';

1580: main_where_clause := main_where_clause||' AND mwvr.formulaline_id = :wip_vr_formulaline_id';
1581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';
1582:
1583: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.formulaline_id = :wip_vr_formulaline_id';
1584: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_formulaline_id';
1585: END IF;
1586:
1587: IF p_wip_vr_routing_no IS NOT NULL
1588: THEN

Line 1589: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_routing_no;

1585: END IF;
1586:
1587: IF p_wip_vr_routing_no IS NOT NULL
1588: THEN
1589: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_routing_no;
1590: main_where_clause := main_where_clause||' AND mwvr.routing_no = :wip_vr_routing_no';
1591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';
1592:
1593: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_no = :wip_vr_routing_no';

Line 1591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';

1587: IF p_wip_vr_routing_no IS NOT NULL
1588: THEN
1589: gmd_outbound_apis_pub.g_wip_vr_formula_no := p_wip_vr_routing_no;
1590: main_where_clause := main_where_clause||' AND mwvr.routing_no = :wip_vr_routing_no';
1591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';
1592:
1593: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_no = :wip_vr_routing_no';
1594: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';
1595: END IF;

Line 1594: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';

1590: main_where_clause := main_where_clause||' AND mwvr.routing_no = :wip_vr_routing_no';
1591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';
1592:
1593: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_no = :wip_vr_routing_no';
1594: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_no';
1595: END IF;
1596:
1597: IF p_wip_vr_routing_version IS NOT NULL
1598: THEN

Line 1599: gmd_outbound_apis_pub.g_wip_vr_routing_version := p_wip_vr_routing_version;

1595: END IF;
1596:
1597: IF p_wip_vr_routing_version IS NOT NULL
1598: THEN
1599: gmd_outbound_apis_pub.g_wip_vr_routing_version := p_wip_vr_routing_version;
1600: main_where_clause := main_where_clause||' AND mwvr.routing_vers = :wip_vr_routing_version';
1601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';
1602:
1603: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_vers = :wip_vr_routing_version';

Line 1601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';

1597: IF p_wip_vr_routing_version IS NOT NULL
1598: THEN
1599: gmd_outbound_apis_pub.g_wip_vr_routing_version := p_wip_vr_routing_version;
1600: main_where_clause := main_where_clause||' AND mwvr.routing_vers = :wip_vr_routing_version';
1601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';
1602:
1603: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_vers = :wip_vr_routing_version';
1604: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';
1605: END IF;

Line 1604: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';

1600: main_where_clause := main_where_clause||' AND mwvr.routing_vers = :wip_vr_routing_version';
1601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';
1602:
1603: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_vers = :wip_vr_routing_version';
1604: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_version';
1605: END IF;
1606:
1607: IF p_wip_vr_routing_id IS NOT NULL
1608: THEN

Line 1609: gmd_outbound_apis_pub.g_wip_vr_routing_id := p_wip_vr_routing_id;

1605: END IF;
1606:
1607: IF p_wip_vr_routing_id IS NOT NULL
1608: THEN
1609: gmd_outbound_apis_pub.g_wip_vr_routing_id := p_wip_vr_routing_id;
1610: main_where_clause := main_where_clause||' AND mwvr.routing_id = :wip_vr_routing_id';
1611: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';
1612:
1613: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_id = :wip_vr_routing_id';

Line 1611: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';

1607: IF p_wip_vr_routing_id IS NOT NULL
1608: THEN
1609: gmd_outbound_apis_pub.g_wip_vr_routing_id := p_wip_vr_routing_id;
1610: main_where_clause := main_where_clause||' AND mwvr.routing_id = :wip_vr_routing_id';
1611: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';
1612:
1613: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_id = :wip_vr_routing_id';
1614: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';
1615: END IF;

Line 1614: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';

1610: main_where_clause := main_where_clause||' AND mwvr.routing_id = :wip_vr_routing_id';
1611: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';
1612:
1613: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.routing_id = :wip_vr_routing_id';
1614: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_routing_id';
1615: END IF;
1616:
1617: IF p_wip_vr_step_no IS NOT NULL
1618: THEN

Line 1619: gmd_outbound_apis_pub.g_wip_vr_step_no := p_wip_vr_step_no;

1615: END IF;
1616:
1617: IF p_wip_vr_step_no IS NOT NULL
1618: THEN
1619: gmd_outbound_apis_pub.g_wip_vr_step_no := p_wip_vr_step_no;
1620: main_where_clause := main_where_clause||' AND mwvr.step_no = :wip_vr_step_no';
1621: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';
1622:
1623: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_no = :wip_vr_step_no';

Line 1621: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';

1617: IF p_wip_vr_step_no IS NOT NULL
1618: THEN
1619: gmd_outbound_apis_pub.g_wip_vr_step_no := p_wip_vr_step_no;
1620: main_where_clause := main_where_clause||' AND mwvr.step_no = :wip_vr_step_no';
1621: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';
1622:
1623: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_no = :wip_vr_step_no';
1624: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';
1625: END IF;

Line 1624: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';

1620: main_where_clause := main_where_clause||' AND mwvr.step_no = :wip_vr_step_no';
1621: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';
1622:
1623: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_no = :wip_vr_step_no';
1624: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_no';
1625: END IF;
1626:
1627: IF p_wip_vr_step_id IS NOT NULL
1628: THEN

Line 1629: gmd_outbound_apis_pub.g_wip_vr_step_id := p_wip_vr_step_id;

1625: END IF;
1626:
1627: IF p_wip_vr_step_id IS NOT NULL
1628: THEN
1629: gmd_outbound_apis_pub.g_wip_vr_step_id := p_wip_vr_step_id;
1630: main_where_clause := main_where_clause||' AND mwvr.step_id = :wip_vr_step_id';
1631: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';
1632:
1633: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_id = :wip_vr_step_id';

Line 1631: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';

1627: IF p_wip_vr_step_id IS NOT NULL
1628: THEN
1629: gmd_outbound_apis_pub.g_wip_vr_step_id := p_wip_vr_step_id;
1630: main_where_clause := main_where_clause||' AND mwvr.step_id = :wip_vr_step_id';
1631: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';
1632:
1633: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_id = :wip_vr_step_id';
1634: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';
1635: END IF;

Line 1634: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';

1630: main_where_clause := main_where_clause||' AND mwvr.step_id = :wip_vr_step_id';
1631: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';
1632:
1633: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.step_id = :wip_vr_step_id';
1634: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_step_id';
1635: END IF;
1636:
1637: IF p_wip_vr_operation_no IS NOT NULL
1638: THEN

Line 1639: gmd_outbound_apis_pub.g_wip_vr_operation_no := p_wip_vr_operation_no;

1635: END IF;
1636:
1637: IF p_wip_vr_operation_no IS NOT NULL
1638: THEN
1639: gmd_outbound_apis_pub.g_wip_vr_operation_no := p_wip_vr_operation_no;
1640: main_where_clause := main_where_clause||' AND mwvr.oprn_no = :wip_vr_operation_no';
1641: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';
1642:
1643: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_no = :wip_vr_operation_no';

Line 1641: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';

1637: IF p_wip_vr_operation_no IS NOT NULL
1638: THEN
1639: gmd_outbound_apis_pub.g_wip_vr_operation_no := p_wip_vr_operation_no;
1640: main_where_clause := main_where_clause||' AND mwvr.oprn_no = :wip_vr_operation_no';
1641: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';
1642:
1643: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_no = :wip_vr_operation_no';
1644: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';
1645: END IF;

Line 1644: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';

1640: main_where_clause := main_where_clause||' AND mwvr.oprn_no = :wip_vr_operation_no';
1641: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';
1642:
1643: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_no = :wip_vr_operation_no';
1644: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_no';
1645: END IF;
1646:
1647: IF p_wip_vr_operation_version IS NOT NULL
1648: THEN

Line 1649: gmd_outbound_apis_pub.g_wip_vr_operation_version := p_wip_vr_operation_version;

1645: END IF;
1646:
1647: IF p_wip_vr_operation_version IS NOT NULL
1648: THEN
1649: gmd_outbound_apis_pub.g_wip_vr_operation_version := p_wip_vr_operation_version;
1650: main_where_clause := main_where_clause||' AND mwvr.oprn_vers = :wip_vr_operation_version';
1651: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';
1652:
1653: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_vers = :wip_vr_operation_version';

Line 1651: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';

1647: IF p_wip_vr_operation_version IS NOT NULL
1648: THEN
1649: gmd_outbound_apis_pub.g_wip_vr_operation_version := p_wip_vr_operation_version;
1650: main_where_clause := main_where_clause||' AND mwvr.oprn_vers = :wip_vr_operation_version';
1651: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';
1652:
1653: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_vers = :wip_vr_operation_version';
1654: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';
1655: END IF;

Line 1654: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';

1650: main_where_clause := main_where_clause||' AND mwvr.oprn_vers = :wip_vr_operation_version';
1651: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';
1652:
1653: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_vers = :wip_vr_operation_version';
1654: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_version';
1655: END IF;
1656:
1657: IF p_wip_vr_operation_id IS NOT NULL
1658: THEN

Line 1659: gmd_outbound_apis_pub.g_wip_vr_operation_id := p_wip_vr_operation_id;

1655: END IF;
1656:
1657: IF p_wip_vr_operation_id IS NOT NULL
1658: THEN
1659: gmd_outbound_apis_pub.g_wip_vr_operation_id := p_wip_vr_operation_id;
1660: main_where_clause := main_where_clause||' AND mwvr.oprn_id = :wip_vr_operation_id';
1661: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';
1662:
1663: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_id = :wip_vr_operation_id';

Line 1661: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';

1657: IF p_wip_vr_operation_id IS NOT NULL
1658: THEN
1659: gmd_outbound_apis_pub.g_wip_vr_operation_id := p_wip_vr_operation_id;
1660: main_where_clause := main_where_clause||' AND mwvr.oprn_id = :wip_vr_operation_id';
1661: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';
1662:
1663: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_id = :wip_vr_operation_id';
1664: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';
1665: END IF;

Line 1664: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';

1660: main_where_clause := main_where_clause||' AND mwvr.oprn_id = :wip_vr_operation_id';
1661: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';
1662:
1663: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.oprn_id = :wip_vr_operation_id';
1664: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_operation_id';
1665: END IF;
1666:
1667: IF p_wip_vr_start_date IS NOT NULL
1668: THEN

Line 1669: gmd_outbound_apis_pub.g_wip_vr_start_date := p_wip_vr_start_date;

1665: END IF;
1666:
1667: IF p_wip_vr_start_date IS NOT NULL
1668: THEN
1669: gmd_outbound_apis_pub.g_wip_vr_start_date := p_wip_vr_start_date;
1670: main_where_clause := main_where_clause||' AND mwvr.start_date >= :wip_vr_start_date';
1671: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';
1672:
1673: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.start_date >= :wip_vr_start_date';

Line 1671: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';

1667: IF p_wip_vr_start_date IS NOT NULL
1668: THEN
1669: gmd_outbound_apis_pub.g_wip_vr_start_date := p_wip_vr_start_date;
1670: main_where_clause := main_where_clause||' AND mwvr.start_date >= :wip_vr_start_date';
1671: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';
1672:
1673: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.start_date >= :wip_vr_start_date';
1674: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';
1675: END IF;

Line 1674: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';

1670: main_where_clause := main_where_clause||' AND mwvr.start_date >= :wip_vr_start_date';
1671: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';
1672:
1673: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.start_date >= :wip_vr_start_date';
1674: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_start_date';
1675: END IF;
1676:
1677: IF p_wip_vr_end_date IS NOT NULL
1678: THEN

Line 1679: gmd_outbound_apis_pub.g_wip_vr_end_date := p_wip_vr_end_date;

1675: END IF;
1676:
1677: IF p_wip_vr_end_date IS NOT NULL
1678: THEN
1679: gmd_outbound_apis_pub.g_wip_vr_end_date := p_wip_vr_end_date;
1680: main_where_clause := main_where_clause||' AND mwvr.end_date <= :wip_vr_end_date';
1681: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';
1682:
1683: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.end_date <= :wip_vr_end_date';

Line 1681: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';

1677: IF p_wip_vr_end_date IS NOT NULL
1678: THEN
1679: gmd_outbound_apis_pub.g_wip_vr_end_date := p_wip_vr_end_date;
1680: main_where_clause := main_where_clause||' AND mwvr.end_date <= :wip_vr_end_date';
1681: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';
1682:
1683: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.end_date <= :wip_vr_end_date';
1684: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';
1685: END IF;

Line 1684: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';

1680: main_where_clause := main_where_clause||' AND mwvr.end_date <= :wip_vr_end_date';
1681: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';
1682:
1683: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.end_date <= :wip_vr_end_date';
1684: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_end_date';
1685: END IF;
1686:
1687: IF p_wip_vr_coa_type IS NOT NULL
1688: THEN

Line 1689: gmd_outbound_apis_pub.g_wip_vr_coa_type := p_wip_vr_coa_type;

1685: END IF;
1686:
1687: IF p_wip_vr_coa_type IS NOT NULL
1688: THEN
1689: gmd_outbound_apis_pub.g_wip_vr_coa_type := p_wip_vr_coa_type;
1690: main_where_clause := main_where_clause||' AND mwvr.coa_type = :wip_vr_coa_type';
1691: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';
1692:
1693: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.coa_type = :wip_vr_coa_type';

Line 1691: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';

1687: IF p_wip_vr_coa_type IS NOT NULL
1688: THEN
1689: gmd_outbound_apis_pub.g_wip_vr_coa_type := p_wip_vr_coa_type;
1690: main_where_clause := main_where_clause||' AND mwvr.coa_type = :wip_vr_coa_type';
1691: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';
1692:
1693: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.coa_type = :wip_vr_coa_type';
1694: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';
1695: END IF;

Line 1694: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';

1690: main_where_clause := main_where_clause||' AND mwvr.coa_type = :wip_vr_coa_type';
1691: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';
1692:
1693: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.coa_type = :wip_vr_coa_type';
1694: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_coa_type';
1695: END IF;
1696:
1697: IF p_wip_vr_sampling_plan_id IS NOT NULL
1698: THEN

Line 1699: gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id := p_wip_vr_sampling_plan_id;

1695: END IF;
1696:
1697: IF p_wip_vr_sampling_plan_id IS NOT NULL
1698: THEN
1699: gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id := p_wip_vr_sampling_plan_id;
1700: main_where_clause := main_where_clause||' AND mwvr.sampling_plan_id = :wip_vr_sampling_plan_id';
1701: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';
1702:
1703: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.sampling_plan_id = :wip_vr_sampling_plan_id';

Line 1701: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';

1697: IF p_wip_vr_sampling_plan_id IS NOT NULL
1698: THEN
1699: gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id := p_wip_vr_sampling_plan_id;
1700: main_where_clause := main_where_clause||' AND mwvr.sampling_plan_id = :wip_vr_sampling_plan_id';
1701: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';
1702:
1703: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.sampling_plan_id = :wip_vr_sampling_plan_id';
1704: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';
1705: END IF;

Line 1704: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';

1700: main_where_clause := main_where_clause||' AND mwvr.sampling_plan_id = :wip_vr_sampling_plan_id';
1701: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';
1702:
1703: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.sampling_plan_id = :wip_vr_sampling_plan_id';
1704: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_sampling_plan_id';
1705: END IF;
1706:
1707: IF p_wip_vr_delete_mark IS NOT NULL
1708: THEN

Line 1709: gmd_outbound_apis_pub.g_wip_vr_delete_mark := p_wip_vr_delete_mark;

1705: END IF;
1706:
1707: IF p_wip_vr_delete_mark IS NOT NULL
1708: THEN
1709: gmd_outbound_apis_pub.g_wip_vr_delete_mark := p_wip_vr_delete_mark;
1710: main_where_clause := main_where_clause||' AND mwvr.delete_mark >= :wip_vr_delete_mark';
1711: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';
1712:
1713: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.delete_mark >= :wip_vr_delete_mark';

Line 1711: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';

1707: IF p_wip_vr_delete_mark IS NOT NULL
1708: THEN
1709: gmd_outbound_apis_pub.g_wip_vr_delete_mark := p_wip_vr_delete_mark;
1710: main_where_clause := main_where_clause||' AND mwvr.delete_mark >= :wip_vr_delete_mark';
1711: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';
1712:
1713: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.delete_mark >= :wip_vr_delete_mark';
1714: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';
1715: END IF;

Line 1714: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';

1710: main_where_clause := main_where_clause||' AND mwvr.delete_mark >= :wip_vr_delete_mark';
1711: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';
1712:
1713: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.delete_mark >= :wip_vr_delete_mark';
1714: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_delete_mark';
1715: END IF;
1716:
1717: IF p_wip_vr_from_last_update IS NOT NULL
1718: THEN

Line 1719: gmd_outbound_apis_pub.g_wip_vr_from_last_update := p_wip_vr_from_last_update;

1715: END IF;
1716:
1717: IF p_wip_vr_from_last_update IS NOT NULL
1718: THEN
1719: gmd_outbound_apis_pub.g_wip_vr_from_last_update := p_wip_vr_from_last_update;
1720: main_where_clause := main_where_clause||' AND mwvr.last_update_date >= :wip_vr_from_last_update';
1721: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';
1722:
1723: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date >= :wip_vr_from_last_update';

Line 1721: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';

1717: IF p_wip_vr_from_last_update IS NOT NULL
1718: THEN
1719: gmd_outbound_apis_pub.g_wip_vr_from_last_update := p_wip_vr_from_last_update;
1720: main_where_clause := main_where_clause||' AND mwvr.last_update_date >= :wip_vr_from_last_update';
1721: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';
1722:
1723: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date >= :wip_vr_from_last_update';
1724: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';
1725: END IF;

Line 1724: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';

1720: main_where_clause := main_where_clause||' AND mwvr.last_update_date >= :wip_vr_from_last_update';
1721: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';
1722:
1723: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date >= :wip_vr_from_last_update';
1724: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_from_last_update';
1725: END IF;
1726:
1727: IF p_wip_vr_to_last_update IS NOT NULL
1728: THEN

Line 1729: gmd_outbound_apis_pub.g_wip_vr_to_last_update := p_wip_vr_to_last_update;

1725: END IF;
1726:
1727: IF p_wip_vr_to_last_update IS NOT NULL
1728: THEN
1729: gmd_outbound_apis_pub.g_wip_vr_to_last_update := p_wip_vr_to_last_update;
1730: main_where_clause := main_where_clause||' AND mwvr.last_update_date <= :wip_vr_to_last_update';
1731: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';
1732:
1733: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date <= :wip_vr_to_last_update';

Line 1731: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';

1727: IF p_wip_vr_to_last_update IS NOT NULL
1728: THEN
1729: gmd_outbound_apis_pub.g_wip_vr_to_last_update := p_wip_vr_to_last_update;
1730: main_where_clause := main_where_clause||' AND mwvr.last_update_date <= :wip_vr_to_last_update';
1731: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';
1732:
1733: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date <= :wip_vr_to_last_update';
1734: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';
1735: END IF;

Line 1734: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';

1730: main_where_clause := main_where_clause||' AND mwvr.last_update_date <= :wip_vr_to_last_update';
1731: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';
1732:
1733: wip_vr_where_clause := wip_vr_where_clause||' AND wvr.last_update_date <= :wip_vr_to_last_update';
1734: wip_vr_using_clause := wip_vr_using_clause||', gmd_outbound_apis_pub.g_wip_vr_to_last_update';
1735: END IF;
1736:
1737: main_where_clause := main_where_clause||' ) ';
1738:

Line 1764: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';

1760: IF p_cust_vr_start_date IS NOT NULL
1761: THEN
1762: g_cust_vr_start_date := p_cust_vr_start_date;
1763: main_where_clause := main_where_clause||' AND mcvr.start_date >= :cust_vr_start_date';
1764: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';
1765:
1766: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.start_date >= :cust_vr_start_date';
1767: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';
1768: END IF;

Line 1767: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';

1763: main_where_clause := main_where_clause||' AND mcvr.start_date >= :cust_vr_start_date';
1764: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';
1765:
1766: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.start_date >= :cust_vr_start_date';
1767: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_start_date';
1768: END IF;
1769:
1770: IF p_cust_vr_end_date IS NOT NULL
1771: THEN

Line 1774: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';

1770: IF p_cust_vr_end_date IS NOT NULL
1771: THEN
1772: g_cust_vr_end_date := p_cust_vr_end_date;
1773: main_where_clause := main_where_clause||' AND mcvr.end_date <= :cust_vr_end_date';
1774: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';
1775:
1776: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.end_date <= :cust_vr_end_date';
1777: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';
1778: END IF;

Line 1777: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';

1773: main_where_clause := main_where_clause||' AND mcvr.end_date <= :cust_vr_end_date';
1774: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';
1775:
1776: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.end_date <= :cust_vr_end_date';
1777: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_end_date';
1778: END IF;
1779:
1780: IF p_cust_vr_status IS NOT NULL
1781: THEN

Line 1784: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';

1780: IF p_cust_vr_status IS NOT NULL
1781: THEN
1782: g_cust_vr_status := p_cust_vr_status;
1783: main_where_clause := main_where_clause||' AND mcvr.spec_vr_status = :cust_vr_status';
1784: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';
1785:
1786: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.spec_vr_status = :cust_vr_status';
1787: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';
1788: END IF;

Line 1787: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';

1783: main_where_clause := main_where_clause||' AND mcvr.spec_vr_status = :cust_vr_status';
1784: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';
1785:
1786: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.spec_vr_status = :cust_vr_status';
1787: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_status';
1788: END IF;
1789:
1790: IF p_cust_vr_organization_code IS NOT NULL
1791: THEN

Line 1795: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';

1791: THEN
1792: g_cust_vr_organization_code := p_cust_vr_organization_code;
1793: main_where_clause := main_where_clause||' AND mcvr.organization_id = (SELECT organization_id '
1794: ||'FROM mtl_organizations WHERE organization_code = :cust_vr_organization_code)';
1795: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';
1796:
1797: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.organization_id = (SELECT organization_id '
1798: ||'FROM mtl_organizations WHERE organization_code = :cust_vr_organization_code)';
1799: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';

Line 1799: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';

1795: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';
1796:
1797: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.organization_id = (SELECT organization_id '
1798: ||'FROM mtl_organizations WHERE organization_code = :cust_vr_organization_code)';
1799: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_organization_code';
1800: END IF;
1801:
1802: IF p_cust_vr_org_id IS NOT NULL
1803: THEN

Line 1806: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';

1802: IF p_cust_vr_org_id IS NOT NULL
1803: THEN
1804: g_cust_vr_org_id := p_cust_vr_org_id;
1805: main_where_clause := main_where_clause||' AND mcvr.org_id = :cust_vr_org_id';
1806: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';
1807:
1808: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.org_id = :cust_vr_org_id';
1809: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';
1810: END IF;

Line 1809: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';

1805: main_where_clause := main_where_clause||' AND mcvr.org_id = :cust_vr_org_id';
1806: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';
1807:
1808: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.org_id = :cust_vr_org_id';
1809: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_org_id';
1810: END IF;
1811:
1812: IF p_cust_vr_coa_type IS NOT NULL
1813: THEN

Line 1816: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';

1812: IF p_cust_vr_coa_type IS NOT NULL
1813: THEN
1814: g_cust_vr_coa_type := p_cust_vr_coa_type;
1815: main_where_clause := main_where_clause||' AND mcvr.coa_type = :cust_vr_coa_type';
1816: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';
1817:
1818: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.coa_type = :cust_vr_coa_type';
1819: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';
1820: END IF;

Line 1819: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';

1815: main_where_clause := main_where_clause||' AND mcvr.coa_type = :cust_vr_coa_type';
1816: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';
1817:
1818: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.coa_type = :cust_vr_coa_type';
1819: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_coa_type';
1820: END IF;
1821:
1822: IF p_cust_vr_customer_id IS NOT NULL
1823: THEN

Line 1826: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';

1822: IF p_cust_vr_customer_id IS NOT NULL
1823: THEN
1824: g_cust_vr_customer_id := p_cust_vr_customer_id;
1825: main_where_clause := main_where_clause||' AND mcvr.cust_id = :cust_vr_customer_id';
1826: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';
1827:
1828: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.cust_id = :cust_vr_customer_id';
1829: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';
1830: END IF;

Line 1829: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';

1825: main_where_clause := main_where_clause||' AND mcvr.cust_id = :cust_vr_customer_id';
1826: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';
1827:
1828: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.cust_id = :cust_vr_customer_id';
1829: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer_id';
1830: END IF;
1831:
1832: IF p_cust_vr_customer IS NOT NULL
1833: THEN

Line 1842: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer';

1838: ||' WHERE hzp.party_id = hzca.party_id AND'
1839: ||' UPPER(hzp.party_name)'
1840: ||' LIKE UPPER(:cust_vr_customer)'
1841: ||' )';
1842: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer';
1843:
1844: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.cust_id IN'
1845: ||' (SELECT hzca.cust_account_id'
1846: ||' FROM hz_parties hzp, hz_cust_accounts_all hzca'

Line 1851: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer';

1847: ||' WHERE hzp.party_id = hzca.party_id AND'
1848: ||' UPPER(hzp.party_name)'
1849: ||' LIKE UPPER(:cust_vr_customer)'
1850: ||' )';
1851: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_customer';
1852: END IF;
1853:
1854: IF p_cust_vr_order_id IS NOT NULL
1855: THEN

Line 1858: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';

1854: IF p_cust_vr_order_id IS NOT NULL
1855: THEN
1856: g_cust_vr_order_id := p_cust_vr_order_id;
1857: main_where_clause := main_where_clause||' AND mcvr.order_id = :cust_vr_order_id';
1858: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';
1859:
1860: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_id = :cust_vr_order_id';
1861: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';
1862: END IF;

Line 1861: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';

1857: main_where_clause := main_where_clause||' AND mcvr.order_id = :cust_vr_order_id';
1858: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';
1859:
1860: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_id = :cust_vr_order_id';
1861: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_id';
1862: END IF;
1863:
1864: IF p_cust_vr_order_number IS NOT NULL
1865: THEN

Line 1870: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';

1866: g_cust_vr_order_number := p_cust_vr_order_number;
1867: main_where_clause := main_where_clause||' AND mcvr.order_id = (select header_id '
1868: ||' from oe_order_headers_all'
1869: ||' where order_number = :cust_vr_order_number)';
1870: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';
1871:
1872: cust_vr_where_clause := cust_vr_where_clause||' AND oeh.order_number = :cust_vr_order_number';
1873: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';
1874: END IF;

Line 1873: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';

1869: ||' where order_number = :cust_vr_order_number)';
1870: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';
1871:
1872: cust_vr_where_clause := cust_vr_where_clause||' AND oeh.order_number = :cust_vr_order_number';
1873: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_number';
1874: END IF;
1875:
1876:
1877: IF p_cust_vr_delete_mark IS NOT NULL

Line 1881: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';

1877: IF p_cust_vr_delete_mark IS NOT NULL
1878: THEN
1879: g_cust_vr_delete_mark := p_cust_vr_delete_mark;
1880: main_where_clause := main_where_clause||' AND mcvr.delete_mark = :cust_vr_delete_mark';
1881: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';
1882:
1883: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.delete_mark = :cust_vr_delete_mark';
1884: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';
1885: END IF;

Line 1884: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';

1880: main_where_clause := main_where_clause||' AND mcvr.delete_mark = :cust_vr_delete_mark';
1881: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';
1882:
1883: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.delete_mark = :cust_vr_delete_mark';
1884: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_delete_mark';
1885: END IF;
1886:
1887: IF p_cust_vr_from_last_update IS NOT NULL
1888: THEN

Line 1891: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';

1887: IF p_cust_vr_from_last_update IS NOT NULL
1888: THEN
1889: g_cust_vr_from_last_update := p_cust_vr_from_last_update;
1890: main_where_clause := main_where_clause||' AND mcvr.last_update_date >= :cust_vr_from_last_update';
1891: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';
1892:
1893: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.last_update_date >= :cust_vr_from_last_update';
1894: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';
1895: END IF;

Line 1894: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';

1890: main_where_clause := main_where_clause||' AND mcvr.last_update_date >= :cust_vr_from_last_update';
1891: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';
1892:
1893: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.last_update_date >= :cust_vr_from_last_update';
1894: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_from_last_update';
1895: END IF;
1896:
1897: IF p_cust_vr_to_last_update IS NOT NULL
1898: THEN

Line 1901: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';

1897: IF p_cust_vr_to_last_update IS NOT NULL
1898: THEN
1899: g_cust_vr_to_last_update := p_cust_vr_to_last_update;
1900: main_where_clause := main_where_clause||' AND mcvr.last_update_date <= :cust_vr_to_last_update';
1901: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';
1902:
1903: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.last_update_date <= :cust_vr_to_last_update';
1904: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';
1905: END IF;

Line 1904: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';

1900: main_where_clause := main_where_clause||' AND mcvr.last_update_date <= :cust_vr_to_last_update';
1901: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';
1902:
1903: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.last_update_date <= :cust_vr_to_last_update';
1904: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_to_last_update';
1905: END IF;
1906:
1907: IF p_cust_vr_order_line_id IS NOT NULL
1908: THEN

Line 1911: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';

1907: IF p_cust_vr_order_line_id IS NOT NULL
1908: THEN
1909: g_cust_vr_order_line_id := p_cust_vr_order_line_id;
1910: main_where_clause := main_where_clause||' AND mcvr.order_line_id = :cust_vr_order_line_id';
1911: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';
1912:
1913: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_line_id = :cust_vr_order_line_id';
1914: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';
1915: END IF;

Line 1914: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';

1910: main_where_clause := main_where_clause||' AND mcvr.order_line_id = :cust_vr_order_line_id';
1911: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';
1912:
1913: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_line_id = :cust_vr_order_line_id';
1914: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_id';
1915: END IF;
1916:
1917: IF p_cust_vr_order_line_no IS NOT NULL
1918: THEN

Line 1921: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';

1917: IF p_cust_vr_order_line_no IS NOT NULL
1918: THEN
1919: g_cust_vr_order_line_no := p_cust_vr_order_line_no;
1920: main_where_clause := main_where_clause||' AND mcvr.order_line = :cust_vr_order_line_no';
1921: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';
1922:
1923: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_line = :cust_vr_order_line_no';
1924: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';
1925: END IF;

Line 1924: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';

1920: main_where_clause := main_where_clause||' AND mcvr.order_line = :cust_vr_order_line_no';
1921: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';
1922:
1923: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.order_line = :cust_vr_order_line_no';
1924: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_line_no';
1925: END IF;
1926:
1927: IF p_cust_vr_order_type IS NOT NULL
1928: THEN

Line 1934: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_type';

1930: main_where_clause := main_where_clause||' AND mcvr.order_id IN (select header_id '
1931: ||' FROM oe_order_headers_all h, oe_transaction_types_all t'
1932: ||' WHERE h.order_type_id = t.transaction_type_id'
1933: ||' AND t.transaction_type_code = :cust_vr_order_type)';
1934: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_type';
1935:
1936: cust_vr_table_list := cust_vr_table_list||', oe_transaction_types_all tta';
1937: cust_vr_where_clause := cust_vr_where_clause||' AND oeh.order_type_id = tta.transaction_type_id'
1938: ||' AND tta.transaction_type_code = :cust_vr_order_type';

Line 1939: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_type';

1935:
1936: cust_vr_table_list := cust_vr_table_list||', oe_transaction_types_all tta';
1937: cust_vr_where_clause := cust_vr_where_clause||' AND oeh.order_type_id = tta.transaction_type_id'
1938: ||' AND tta.transaction_type_code = :cust_vr_order_type';
1939: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_order_type';
1940: END IF;
1941:
1942: IF p_cust_vr_ship_to_site_id IS NOT NULL
1943: THEN

Line 1946: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';

1942: IF p_cust_vr_ship_to_site_id IS NOT NULL
1943: THEN
1944: g_cust_vr_ship_to_site_id := p_cust_vr_ship_to_site_id;
1945: main_where_clause := main_where_clause||' AND mcvr.ship_to_site_id = :cust_vr_ship_to_site_id';
1946: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';
1947:
1948: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.ship_to_site_id = :cust_vr_ship_to_site_id';
1949: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';
1950: END IF;

Line 1949: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';

1945: main_where_clause := main_where_clause||' AND mcvr.ship_to_site_id = :cust_vr_ship_to_site_id';
1946: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';
1947:
1948: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.ship_to_site_id = :cust_vr_ship_to_site_id';
1949: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_site_id';
1950: END IF;
1951:
1952: IF p_cust_vr_ship_to_location IS NOT NULL
1953: THEN

Line 1959: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_location';

1955: main_where_clause := main_where_clause||' AND mcvr.ship_to_site_use_id = '
1956: ||' (SELECT site_use_id'
1957: ||' FROM hz_cust_site_uses_all'
1958: ||' WHERE location = :cust_vr_ship_to_location)';
1959: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_location';
1960:
1961: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.ship_to_site_use_id = '
1962: ||' (SELECT site_use_id'
1963: ||' FROM hz_cust_site_uses_all'

Line 1965: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_location';

1961: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.ship_to_site_use_id = '
1962: ||' (SELECT site_use_id'
1963: ||' FROM hz_cust_site_uses_all'
1964: ||' WHERE location = :cust_vr_ship_to_location)';
1965: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_ship_to_location';
1966: END IF;
1967:
1968: IF p_cust_vr_operating_unit IS NOT NULL
1969: THEN

Line 1975: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_operating_unit';

1971: main_where_clause := main_where_clause||' AND mcvr.org_id = '
1972: ||' (SELECT organization_id'
1973: ||' FROM hr_operating_units'
1974: ||' WHERE name = :cust_vr_operating_unit)';
1975: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_cust_vr_operating_unit';
1976:
1977: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.org_id = '
1978: ||' (SELECT organization_id'
1979: ||' FROM hr_operating_units'

Line 1981: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_operating_unit';

1977: cust_vr_where_clause := cust_vr_where_clause||' AND cvr.org_id = '
1978: ||' (SELECT organization_id'
1979: ||' FROM hr_operating_units'
1980: ||' WHERE name = :cust_vr_operating_unit)';
1981: cust_vr_using_clause := cust_vr_using_clause||', gmd_outbound_apis_pub.g_cust_vr_operating_unit';
1982:
1983: END IF;
1984:
1985: main_where_clause := main_where_clause||' ) ';

Line 2012: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';

2008: IF p_supl_vr_start_date IS NOT NULL
2009: THEN
2010: g_supl_vr_start_date := p_supl_vr_start_date;
2011: main_where_clause := main_where_clause||' AND msvr.start_date >= :supl_vr_start_date';
2012: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';
2013:
2014: supl_vr_where_clause := supl_vr_where_clause||' AND svr.start_date >= :supl_vr_start_date';
2015: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';
2016: END IF;

Line 2015: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';

2011: main_where_clause := main_where_clause||' AND msvr.start_date >= :supl_vr_start_date';
2012: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';
2013:
2014: supl_vr_where_clause := supl_vr_where_clause||' AND svr.start_date >= :supl_vr_start_date';
2015: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_start_date';
2016: END IF;
2017:
2018: IF p_supl_vr_end_date IS NOT NULL
2019: THEN

Line 2022: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';

2018: IF p_supl_vr_end_date IS NOT NULL
2019: THEN
2020: g_supl_vr_end_date := p_supl_vr_end_date;
2021: main_where_clause := main_where_clause||' AND msvr.end_date <= :supl_vr_end_date';
2022: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';
2023:
2024: supl_vr_where_clause := supl_vr_where_clause||' AND svr.end_date >= :supl_vr_end_date';
2025: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';
2026: END IF;

Line 2025: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';

2021: main_where_clause := main_where_clause||' AND msvr.end_date <= :supl_vr_end_date';
2022: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';
2023:
2024: supl_vr_where_clause := supl_vr_where_clause||' AND svr.end_date >= :supl_vr_end_date';
2025: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_end_date';
2026: END IF;
2027:
2028: IF p_supl_vr_status IS NOT NULL
2029: THEN

Line 2032: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';

2028: IF p_supl_vr_status IS NOT NULL
2029: THEN
2030: g_supl_vr_status := p_supl_vr_status;
2031: main_where_clause := main_where_clause||' AND msvr.spec_vr_status = :supl_vr_status';
2032: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';
2033:
2034: supl_vr_where_clause := supl_vr_where_clause||' AND svr.status = :supl_vr_status';
2035: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';
2036: END IF;

Line 2035: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';

2031: main_where_clause := main_where_clause||' AND msvr.spec_vr_status = :supl_vr_status';
2032: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';
2033:
2034: supl_vr_where_clause := supl_vr_where_clause||' AND svr.status = :supl_vr_status';
2035: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_status';
2036: END IF;
2037:
2038: IF p_supl_vr_organization_code IS NOT NULL
2039: THEN

Line 2043: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';

2039: THEN
2040: g_supl_vr_organization_code := p_supl_vr_organization_code;
2041: main_where_clause := main_where_clause||' AND msvr.organization_id = (SELECT organization_id '
2042: ||'FROM mtl_organizations WHERE organization_code = :supl_vr_organization_code)';
2043: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';
2044:
2045: supl_vr_where_clause := supl_vr_where_clause||' AND svr.organization_id = (SELECT organization_id '
2046: ||'FROM mtl_organizations WHERE organization_code = :supl_vr_organization_code)';
2047: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';

Line 2047: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';

2043: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';
2044:
2045: supl_vr_where_clause := supl_vr_where_clause||' AND svr.organization_id = (SELECT organization_id '
2046: ||'FROM mtl_organizations WHERE organization_code = :supl_vr_organization_code)';
2047: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_organization_code';
2048: END IF;
2049:
2050: IF p_supl_vr_org_id IS NOT NULL
2051: THEN

Line 2054: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';

2050: IF p_supl_vr_org_id IS NOT NULL
2051: THEN
2052: g_supl_vr_org_id := p_supl_vr_org_id;
2053: main_where_clause := main_where_clause||' AND msvr.org_id = :supl_vr_org_id';
2054: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';
2055:
2056: supl_vr_where_clause := supl_vr_where_clause||' AND svr.org_id = :supl_vr_org_id';
2057: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';
2058: END IF;

Line 2057: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';

2053: main_where_clause := main_where_clause||' AND msvr.org_id = :supl_vr_org_id';
2054: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';
2055:
2056: supl_vr_where_clause := supl_vr_where_clause||' AND svr.org_id = :supl_vr_org_id';
2057: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_org_id';
2058: END IF;
2059:
2060: IF p_supl_vr_coa_type IS NOT NULL
2061: THEN

Line 2064: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';

2060: IF p_supl_vr_coa_type IS NOT NULL
2061: THEN
2062: g_supl_vr_coa_type := p_supl_vr_coa_type;
2063: main_where_clause := main_where_clause||' AND msvr.coa_type = :supl_vr_coa_type';
2064: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2065:
2066: supl_vr_where_clause := supl_vr_where_clause||' AND svr.coa_type = :supl_vr_coa_type';
2067: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2068: END IF;

Line 2067: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';

2063: main_where_clause := main_where_clause||' AND msvr.coa_type = :supl_vr_coa_type';
2064: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2065:
2066: supl_vr_where_clause := supl_vr_where_clause||' AND svr.coa_type = :supl_vr_coa_type';
2067: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2068: END IF;
2069:
2070: IF p_supl_vr_coa_type IS NOT NULL
2071: THEN

Line 2074: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';

2070: IF p_supl_vr_coa_type IS NOT NULL
2071: THEN
2072: g_supl_vr_coa_type := p_supl_vr_coa_type;
2073: main_where_clause := main_where_clause||' AND msvr.coa_type = :supl_vr_coa_type';
2074: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2075:
2076: supl_vr_where_clause := supl_vr_where_clause||' AND svr.coa_type = :supl_vr_coa_type';
2077: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2078: END IF;

Line 2077: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';

2073: main_where_clause := main_where_clause||' AND msvr.coa_type = :supl_vr_coa_type';
2074: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2075:
2076: supl_vr_where_clause := supl_vr_where_clause||' AND svr.coa_type = :supl_vr_coa_type';
2077: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_coa_type';
2078: END IF;
2079:
2080: IF p_supl_vr_supplier_id IS NOT NULL
2081: THEN

Line 2084: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';

2080: IF p_supl_vr_supplier_id IS NOT NULL
2081: THEN
2082: g_supl_vr_supplier_id := p_supl_vr_supplier_id;
2083: main_where_clause := main_where_clause||' AND msvr.supplier_id = :supl_vr_supplier_id';
2084: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';
2085:
2086: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_id = :supl_vr_supplier_id';
2087: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';
2088: END IF;

Line 2087: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';

2083: main_where_clause := main_where_clause||' AND msvr.supplier_id = :supl_vr_supplier_id';
2084: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';
2085:
2086: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_id = :supl_vr_supplier_id';
2087: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_id';
2088: END IF;
2089:
2090: IF p_supl_vr_supplier IS NOT NULL
2091: THEN

Line 2094: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';

2090: IF p_supl_vr_supplier IS NOT NULL
2091: THEN
2092: g_supl_vr_supplier := p_supl_vr_supplier;
2093: main_where_clause := main_where_clause||' AND mpv.segment1 = :supl_vr_supplier';
2094: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';
2095:
2096: supl_vr_where_clause := supl_vr_where_clause||' AND v.segment1 = :supl_vr_supplier';
2097: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';
2098: END IF;

Line 2097: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';

2093: main_where_clause := main_where_clause||' AND mpv.segment1 = :supl_vr_supplier';
2094: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';
2095:
2096: supl_vr_where_clause := supl_vr_where_clause||' AND v.segment1 = :supl_vr_supplier';
2097: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier';
2098: END IF;
2099:
2100: IF p_supl_vr_po_number IS NOT NULL
2101: THEN

Line 2107: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_number';

2103: main_where_clause := main_where_clause||' AND msvr.po_line_id IN'
2104: ||' (SELECT pla.po_line_id FROM po_headers_all pha, po_lines_all pla'
2105: ||' WHERE pha.segment1 = :supl_vr_po_number'
2106: ||' AND pha.po_header_id = pla.po_header_id)';
2107: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_number';
2108:
2109: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2110: ||' (SELECT pla.po_line_id FROM po_headers_all pha, po_lines_all pla'
2111: ||' WHERE pha.segment1 = :supl_vr_po_number'

Line 2113: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_number';

2109: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2110: ||' (SELECT pla.po_line_id FROM po_headers_all pha, po_lines_all pla'
2111: ||' WHERE pha.segment1 = :supl_vr_po_number'
2112: ||' AND pha.po_header_id = pla.po_header_id)';
2113: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_number';
2114: END IF;
2115:
2116: IF p_supl_vr_po_id IS NOT NULL
2117: THEN

Line 2122: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_id';

2118: g_supl_vr_po_id := p_supl_vr_po_id;
2119: main_where_clause := main_where_clause||' AND msvr.po_line_id IN'
2120: ||' (SELECT po_line_id FROM po_lines_all'
2121: ||' WHERE po_header_id = :supl_vr_po_id)';
2122: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_id';
2123:
2124: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2125: ||' (SELECT po_line_id FROM po_lines_all'
2126: ||' WHERE po_header_id = :supl_vr_po_id)';

Line 2127: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_id';

2123:
2124: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2125: ||' (SELECT po_line_id FROM po_lines_all'
2126: ||' WHERE po_header_id = :supl_vr_po_id)';
2127: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_id';
2128: END IF;
2129:
2130: IF p_supl_vr_po_line_no IS NOT NULL
2131: THEN

Line 2136: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_no';

2132: g_supl_vr_po_line_no := p_supl_vr_po_line_no;
2133: main_where_clause := main_where_clause||' AND msvr.po_line_id IN'
2134: ||' (SELECT po_line_id FROM po_lines_all'
2135: ||' WHERE line_num = :supl_vr_po_line_no)';
2136: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_no';
2137:
2138: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2139: ||' (SELECT po_line_id FROM po_lines_all'
2140: ||' WHERE line_num = :supl_vr_po_line_no)';

Line 2141: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_no';

2137:
2138: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id IN'
2139: ||' (SELECT po_line_id FROM po_lines_all'
2140: ||' WHERE line_num = :supl_vr_po_line_no)';
2141: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_no';
2142: END IF;
2143:
2144: IF p_supl_vr_po_line_id IS NOT NULL
2145: THEN

Line 2148: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';

2144: IF p_supl_vr_po_line_id IS NOT NULL
2145: THEN
2146: g_supl_vr_po_line_id := p_supl_vr_po_line_id;
2147: main_where_clause := main_where_clause||' AND msvr.po_line_id =:supl_vr_po_line_id';
2148: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';
2149:
2150: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id = :supl_vr_po_line_id';
2151: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';
2152: END IF;

Line 2151: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';

2147: main_where_clause := main_where_clause||' AND msvr.po_line_id =:supl_vr_po_line_id';
2148: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';
2149:
2150: supl_vr_where_clause := supl_vr_where_clause||' AND svr.po_line_id = :supl_vr_po_line_id';
2151: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_po_line_id';
2152: END IF;
2153:
2154: IF p_supl_vr_supplier_site_id IS NOT NULL
2155: THEN

Line 2158: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';

2154: IF p_supl_vr_supplier_site_id IS NOT NULL
2155: THEN
2156: g_supl_vr_supplier_site_id := p_supl_vr_supplier_site_id;
2157: main_where_clause := main_where_clause||' AND msvr.supplier_site_id =:supl_vr_supplier_site_id';
2158: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';
2159:
2160: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_site_id = :supl_vr_supplier_site_id';
2161: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';
2162: END IF;

Line 2161: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';

2157: main_where_clause := main_where_clause||' AND msvr.supplier_site_id =:supl_vr_supplier_site_id';
2158: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';
2159:
2160: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_site_id = :supl_vr_supplier_site_id';
2161: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site_id';
2162: END IF;
2163:
2164: IF p_supl_vr_supplier_site IS NOT NULL
2165: THEN

Line 2170: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site';

2166: g_supl_vr_supplier_site := p_supl_vr_supplier_site;
2167: main_where_clause := main_where_clause||' AND msvr.supplier_site_id = '
2168: ||' (SELECT vendor_site_id FROM po_vendor_sites_all'
2169: ||' WHERE vendor_site_code = :supl_vr_supplier_site';
2170: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site';
2171:
2172: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_site_id = '
2173: ||' (SELECT vendor_site_id FROM po_vendor_sites_all'
2174: ||' WHERE vendor_site_code = :supl_vr_supplier_site';

Line 2175: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site';

2171:
2172: supl_vr_where_clause := supl_vr_where_clause||' AND svr.supplier_site_id = '
2173: ||' (SELECT vendor_site_id FROM po_vendor_sites_all'
2174: ||' WHERE vendor_site_code = :supl_vr_supplier_site';
2175: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_supplier_site';
2176: END IF;
2177:
2178: IF p_supl_vr_operating_unit IS NOT NULL
2179: THEN

Line 2185: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_operating_unit';

2181: main_where_clause := main_where_clause||' AND msvr.org_id = '
2182: ||' (SELECT organization_id'
2183: ||' FROM hr_operating_units'
2184: ||' WHERE name = :supl_vr_operating_unit)';
2185: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_operating_unit';
2186:
2187: supl_vr_where_clause := supl_vr_where_clause||' AND svr.org_id = '
2188: ||' (SELECT organization_id'
2189: ||' FROM hr_operating_units'

Line 2191: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_operating_unit';

2187: supl_vr_where_clause := supl_vr_where_clause||' AND svr.org_id = '
2188: ||' (SELECT organization_id'
2189: ||' FROM hr_operating_units'
2190: ||' WHERE name = :supl_vr_operating_unit)';
2191: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_operating_unit';
2192:
2193: END IF;
2194:
2195: IF p_supl_vr_from_last_update IS NOT NULL

Line 2199: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';

2195: IF p_supl_vr_from_last_update IS NOT NULL
2196: THEN
2197: g_supl_vr_from_last_update := p_supl_vr_from_last_update;
2198: main_where_clause := main_where_clause||' AND msvr.last_update_date >= :supl_vr_from_last_update';
2199: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';
2200:
2201: supl_vr_where_clause := supl_vr_where_clause||' AND svr.last_update_date >= :supl_vr_from_last_update';
2202: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';
2203: END IF;

Line 2202: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';

2198: main_where_clause := main_where_clause||' AND msvr.last_update_date >= :supl_vr_from_last_update';
2199: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';
2200:
2201: supl_vr_where_clause := supl_vr_where_clause||' AND svr.last_update_date >= :supl_vr_from_last_update';
2202: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_from_last_update';
2203: END IF;
2204:
2205: IF p_supl_vr_to_last_update IS NOT NULL
2206: THEN

Line 2209: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';

2205: IF p_supl_vr_to_last_update IS NOT NULL
2206: THEN
2207: g_supl_vr_to_last_update := p_supl_vr_to_last_update;
2208: main_where_clause := main_where_clause||' AND msvr.last_update_date <= :supl_vr_to_last_update';
2209: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';
2210:
2211: supl_vr_where_clause := supl_vr_where_clause||' AND svr.last_update_date <= :supl_vr_to_last_update';
2212: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';
2213: END IF;

Line 2212: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';

2208: main_where_clause := main_where_clause||' AND msvr.last_update_date <= :supl_vr_to_last_update';
2209: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';
2210:
2211: supl_vr_where_clause := supl_vr_where_clause||' AND svr.last_update_date <= :supl_vr_to_last_update';
2212: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_to_last_update';
2213: END IF;
2214:
2215: IF p_supl_vr_delete_mark IS NOT NULL
2216: THEN

Line 2219: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';

2215: IF p_supl_vr_delete_mark IS NOT NULL
2216: THEN
2217: g_supl_vr_delete_mark := p_supl_vr_delete_mark;
2218: main_where_clause := main_where_clause||' AND msvr.delete_mark =:supl_vr_delete_mark';
2219: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';
2220:
2221: supl_vr_where_clause := supl_vr_where_clause||' AND svr.delete_mark = :supl_vr_delete_mark';
2222: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';
2223: END IF;

Line 2222: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';

2218: main_where_clause := main_where_clause||' AND msvr.delete_mark =:supl_vr_delete_mark';
2219: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';
2220:
2221: supl_vr_where_clause := supl_vr_where_clause||' AND svr.delete_mark = :supl_vr_delete_mark';
2222: supl_vr_using_clause := supl_vr_using_clause||', gmd_outbound_apis_pub.g_supl_vr_delete_mark';
2223: END IF;
2224:
2225: main_where_clause := main_where_clause||' ) ';
2226:

Line 2250: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';

2246: IF p_inv_vr_start_date IS NOT NULL
2247: THEN
2248: g_inv_vr_start_date := p_inv_vr_start_date;
2249: main_where_clause := main_where_clause||' AND mivr.start_date >= :inv_vr_start_date';
2250: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';
2251:
2252: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.start_date >= :inv_vr_start_date';
2253: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';
2254: END IF;

Line 2253: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';

2249: main_where_clause := main_where_clause||' AND mivr.start_date >= :inv_vr_start_date';
2250: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';
2251:
2252: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.start_date >= :inv_vr_start_date';
2253: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_start_date';
2254: END IF;
2255:
2256: IF p_inv_vr_end_date IS NOT NULL
2257: THEN

Line 2260: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';

2256: IF p_inv_vr_end_date IS NOT NULL
2257: THEN
2258: g_inv_vr_end_date := p_inv_vr_end_date;
2259: main_where_clause := main_where_clause||' AND mivr.end_date <= :inv_vr_end_date';
2260: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';
2261:
2262: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.end_date <= :inv_vr_end_date';
2263: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';
2264: END IF;

Line 2263: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';

2259: main_where_clause := main_where_clause||' AND mivr.end_date <= :inv_vr_end_date';
2260: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';
2261:
2262: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.end_date <= :inv_vr_end_date';
2263: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_end_date';
2264: END IF;
2265:
2266: IF p_inv_vr_status IS NOT NULL
2267: THEN

Line 2270: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';

2266: IF p_inv_vr_status IS NOT NULL
2267: THEN
2268: g_inv_vr_status := p_inv_vr_status;
2269: main_where_clause := main_where_clause||' AND mivr.spec_vr_status = :inv_vr_status';
2270: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';
2271:
2272: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.status = :inv_vr_status';
2273: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';
2274: END IF;

Line 2273: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';

2269: main_where_clause := main_where_clause||' AND mivr.spec_vr_status = :inv_vr_status';
2270: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';
2271:
2272: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.status = :inv_vr_status';
2273: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_status';
2274: END IF;
2275:
2276: IF p_inv_vr_organization_code IS NOT NULL
2277: THEN

Line 2281: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';

2277: THEN
2278: g_inv_vr_organization_code := p_inv_vr_organization_code;
2279: main_where_clause := main_where_clause||' AND mivr.organization_id = (SELECT organization_id '
2280: ||'FROM mtl_organizations WHERE organization_code = :inv_vr_organization_code)';
2281: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';
2282:
2283: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.organization_id = (SELECT organization_id '
2284: ||'FROM mtl_organizations WHERE organization_code = :inv_vr_organization_code)';
2285: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';

Line 2285: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';

2281: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';
2282:
2283: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.organization_id = (SELECT organization_id '
2284: ||'FROM mtl_organizations WHERE organization_code = :inv_vr_organization_code)';
2285: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_organization_code';
2286: END IF;
2287:
2288: IF p_inv_vr_inventory_item_id IS NOT NULL
2289: THEN

Line 2294: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_inventory_item_id';

2290: g_inv_vr_inventory_item_id := p_inv_vr_inventory_item_id;
2291: main_where_clause := main_where_clause||' AND mivr.lot_number IN'
2292: ||' (SELECT lot_number FROM mtl_lot_numbers'
2293: ||' WHERE inventory_item_id = :inv_vr_inventory_item_id)';
2294: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_inventory_item_id';
2295:
2296: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.lot_number IN'
2297: ||' (SELECT lot_number FROM mtl_lot_numbers'
2298: ||' WHERE inventory_item_id = :inv_vr_inventory_item_id)';

Line 2299: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_inventory_item_id';

2295:
2296: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.lot_number IN'
2297: ||' (SELECT lot_number FROM mtl_lot_numbers'
2298: ||' WHERE inventory_item_id = :inv_vr_inventory_item_id)';
2299: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_inventory_item_id';
2300: END IF;
2301:
2302: IF p_inv_vr_item_number IS NOT NULL
2303: THEN

Line 2311: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_item_number';

2307: ||' WHERE l.organization_id IN (SELECT organization_id FROM'
2308: ||' mtl_system_items_b_kfv WHERE concatenated_segments = :inv_vr_item_number'
2309: ||' AND inventory_item_id = l.inventory_item_id))';
2310:
2311: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_item_number';
2312:
2313: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.lot_number IN'
2314: ||' (SELECT l.lot_number FROM mtl_lot_numbers l'
2315: ||' WHERE l.organization_id IN (SELECT organization_id FROM'

Line 2318: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_item_number';

2314: ||' (SELECT l.lot_number FROM mtl_lot_numbers l'
2315: ||' WHERE l.organization_id IN (SELECT organization_id FROM'
2316: ||' mtl_system_items_b_kfv WHERE concatenated_segments = :inv_vr_item_number'
2317: ||' AND inventory_item_id = l.inventory_item_id))';
2318: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_item_number';
2319: END IF;
2320:
2321: IF p_inv_vr_parent_lot_number IS NOT NULL
2322: THEN

Line 2325: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';

2321: IF p_inv_vr_parent_lot_number IS NOT NULL
2322: THEN
2323: g_inv_vr_parent_lot_number := p_inv_vr_parent_lot_number;
2324: main_where_clause := main_where_clause||' AND mivr.parent_lot_number = :inv_vr_parent_lot_number';
2325: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';
2326:
2327: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.parent_lot_number = :inv_vr_parent_lot_number';
2328: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';
2329: END IF;

Line 2328: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';

2324: main_where_clause := main_where_clause||' AND mivr.parent_lot_number = :inv_vr_parent_lot_number';
2325: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';
2326:
2327: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.parent_lot_number = :inv_vr_parent_lot_number';
2328: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_parent_lot_number';
2329: END IF;
2330:
2331: IF p_inv_vr_lot_number IS NOT NULL
2332: THEN

Line 2335: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';

2331: IF p_inv_vr_lot_number IS NOT NULL
2332: THEN
2333: g_inv_vr_lot_number := p_inv_vr_lot_number;
2334: main_where_clause := main_where_clause||' AND mivr.lot_number = :inv_vr_lot_number';
2335: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';
2336:
2337: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.lot_number = :inv_vr_lot_number';
2338: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';
2339: END IF;

Line 2338: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';

2334: main_where_clause := main_where_clause||' AND mivr.lot_number = :inv_vr_lot_number';
2335: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';
2336:
2337: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.lot_number = :inv_vr_lot_number';
2338: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_lot_number';
2339: END IF;
2340:
2341: IF p_inv_vr_subinventory IS NOT NULL
2342: THEN

Line 2345: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';

2341: IF p_inv_vr_subinventory IS NOT NULL
2342: THEN
2343: g_inv_vr_subinventory := p_inv_vr_subinventory;
2344: main_where_clause := main_where_clause||' AND mivr.subinventory = :inv_vr_subinventory';
2345: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';
2346:
2347: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.subinventory = :inv_vr_subinventory';
2348: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';
2349: END IF;

Line 2348: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';

2344: main_where_clause := main_where_clause||' AND mivr.subinventory = :inv_vr_subinventory';
2345: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';
2346:
2347: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.subinventory = :inv_vr_subinventory';
2348: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_subinventory';
2349: END IF;
2350:
2351: IF p_inv_vr_locator IS NOT NULL
2352: THEN

Line 2357: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator';

2353: g_inv_vr_locator := p_inv_vr_locator;
2354: main_where_clause := main_where_clause||' AND mivr.locator_id = (SELECT inventory_location_id '
2355: ||'FROM mtl_item_locations_kfv WHERE concatenated_segments = :inv_vr_locator '
2356: ||'AND organization_id = mivr.organization_id)';
2357: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator';
2358:
2359: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.locator_id = (SELECT inventory_location_id '
2360: ||'FROM mtl_item_locations_kfv WHERE concatenated_segments = :inv_vr_locator '
2361: ||'AND organization_id = ivr.organization_id)';

Line 2362: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator';

2358:
2359: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.locator_id = (SELECT inventory_location_id '
2360: ||'FROM mtl_item_locations_kfv WHERE concatenated_segments = :inv_vr_locator '
2361: ||'AND organization_id = ivr.organization_id)';
2362: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator';
2363: END IF;
2364:
2365: IF p_inv_vr_locator_id IS NOT NULL
2366: THEN

Line 2369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';

2365: IF p_inv_vr_locator_id IS NOT NULL
2366: THEN
2367: g_inv_vr_locator_id := p_inv_vr_locator_id;
2368: main_where_clause := main_where_clause||' AND mivr.locator_id = :inv_vr_locator_id';
2369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';
2370:
2371: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.locator_id = :inv_vr_locator_id';
2372: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';
2373: END IF;

Line 2372: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';

2368: main_where_clause := main_where_clause||' AND mivr.locator_id = :inv_vr_locator_id';
2369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';
2370:
2371: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.locator_id = :inv_vr_locator_id';
2372: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_locator_id';
2373: END IF;
2374:
2375: IF p_inv_vr_sampling_plan_id IS NOT NULL
2376: THEN

Line 2379: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';

2375: IF p_inv_vr_sampling_plan_id IS NOT NULL
2376: THEN
2377: g_inv_vr_sampling_plan_id := p_inv_vr_sampling_plan_id;
2378: main_where_clause := main_where_clause||' AND mivr.sampling_plan_id = :inv_vr_sampling_plan_id';
2379: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';
2380:
2381: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.sampling_plan_id = :inv_vr_sampling_plan_id';
2382: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';
2383: END IF;

Line 2382: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';

2378: main_where_clause := main_where_clause||' AND mivr.sampling_plan_id = :inv_vr_sampling_plan_id';
2379: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';
2380:
2381: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.sampling_plan_id = :inv_vr_sampling_plan_id';
2382: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_sampling_plan_id';
2383: END IF;
2384:
2385: IF p_inv_vr_from_last_update IS NOT NULL
2386: THEN

Line 2389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';

2385: IF p_inv_vr_from_last_update IS NOT NULL
2386: THEN
2387: g_inv_vr_from_last_update := p_inv_vr_from_last_update;
2388: main_where_clause := main_where_clause||' AND mivr.last_update_date >= :inv_vr_from_last_update';
2389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';
2390:
2391: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.last_update_date >= :inv_vr_from_last_update';
2392: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';
2393: END IF;

Line 2392: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';

2388: main_where_clause := main_where_clause||' AND mivr.last_update_date >= :inv_vr_from_last_update';
2389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';
2390:
2391: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.last_update_date >= :inv_vr_from_last_update';
2392: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_from_last_update';
2393: END IF;
2394:
2395: IF p_inv_vr_to_last_update IS NOT NULL
2396: THEN

Line 2399: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';

2395: IF p_inv_vr_to_last_update IS NOT NULL
2396: THEN
2397: g_inv_vr_to_last_update := p_inv_vr_to_last_update;
2398: main_where_clause := main_where_clause||' AND mivr.last_update_date <= :inv_vr_to_last_update';
2399: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';
2400:
2401: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.last_update_date <= :inv_vr_to_last_update';
2402: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';
2403: END IF;

Line 2402: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';

2398: main_where_clause := main_where_clause||' AND mivr.last_update_date <= :inv_vr_to_last_update';
2399: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';
2400:
2401: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.last_update_date <= :inv_vr_to_last_update';
2402: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_to_last_update';
2403: END IF;
2404:
2405: IF p_inv_vr_delete_mark IS NOT NULL
2406: THEN

Line 2409: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';

2405: IF p_inv_vr_delete_mark IS NOT NULL
2406: THEN
2407: g_inv_vr_delete_mark := p_inv_vr_delete_mark;
2408: main_where_clause := main_where_clause||' AND mivr.delete_mark =:inv_vr_delete_mark';
2409: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';
2410:
2411: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.delete_mark = :inv_vr_delete_mark';
2412: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';
2413: END IF;

Line 2412: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';

2408: main_where_clause := main_where_clause||' AND mivr.delete_mark =:inv_vr_delete_mark';
2409: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';
2410:
2411: inv_vr_where_clause := inv_vr_where_clause||' AND ivr.delete_mark = :inv_vr_delete_mark';
2412: inv_vr_using_clause := inv_vr_using_clause||', gmd_outbound_apis_pub.g_inv_vr_delete_mark';
2413: END IF;
2414:
2415: main_where_clause := main_where_clause||' ) ';
2416:

Line 2451: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';

2447: IF p_mon_vr_start_date IS NOT NULL
2448: THEN
2449: g_mon_vr_start_date := p_mon_vr_start_date;
2450: main_where_clause := main_where_clause||' AND mmvr.start_date >= :mon_vr_start_date';
2451: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';
2452:
2453: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.start_date >= :mon_vr_start_date';
2454: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';
2455: END IF;

Line 2454: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';

2450: main_where_clause := main_where_clause||' AND mmvr.start_date >= :mon_vr_start_date';
2451: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';
2452:
2453: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.start_date >= :mon_vr_start_date';
2454: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_start_date';
2455: END IF;
2456:
2457: IF p_mon_vr_end_date IS NOT NULL
2458: THEN

Line 2461: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';

2457: IF p_mon_vr_end_date IS NOT NULL
2458: THEN
2459: g_mon_vr_end_date := p_mon_vr_end_date;
2460: main_where_clause := main_where_clause||' AND mmvr.end_date <= :mon_vr_end_date';
2461: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';
2462:
2463: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.end_date <= :mon_vr_end_date';
2464: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';
2465: END IF;

Line 2464: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';

2460: main_where_clause := main_where_clause||' AND mmvr.end_date <= :mon_vr_end_date';
2461: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';
2462:
2463: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.end_date <= :mon_vr_end_date';
2464: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_end_date';
2465: END IF;
2466:
2467: IF p_mon_vr_status IS NOT NULL
2468: THEN

Line 2471: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';

2467: IF p_mon_vr_status IS NOT NULL
2468: THEN
2469: g_mon_vr_status := p_mon_vr_status;
2470: main_where_clause := main_where_clause||' AND mmvr.spec_vr_status = :mon_vr_status';
2471: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';
2472:
2473: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.spec_vr_status = :mon_vr_status';
2474: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';
2475: END IF;

Line 2474: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';

2470: main_where_clause := main_where_clause||' AND mmvr.spec_vr_status = :mon_vr_status';
2471: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';
2472:
2473: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.spec_vr_status = :mon_vr_status';
2474: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_status';
2475: END IF;
2476:
2477: IF p_mon_vr_rule_type IS NOT NULL
2478: THEN

Line 2481: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';

2477: IF p_mon_vr_rule_type IS NOT NULL
2478: THEN
2479: g_mon_vr_rule_type := p_mon_vr_rule_type;
2480: main_where_clause := main_where_clause||' AND mmvr.rule_type = :mon_vr_rule_type';
2481: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';
2482:
2483: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.rule_type = :mon_vr_rule_type';
2484: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';
2485: END IF;

Line 2484: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';

2480: main_where_clause := main_where_clause||' AND mmvr.rule_type = :mon_vr_rule_type';
2481: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';
2482:
2483: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.rule_type = :mon_vr_rule_type';
2484: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rule_type';
2485: END IF;
2486:
2487: IF p_mon_vr_lct_organization_code IS NOT NULL
2488: THEN

Line 2492: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';

2488: THEN
2489: g_mon_vr_lct_organization_code := p_mon_vr_lct_organization_code;
2490: main_where_clause := main_where_clause||' AND mmvr.locator_organization_id = (SELECT organization_id'
2491: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_lct_organization_code)';
2492: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';
2493:
2494: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_organization_id = (SELECT organization_id'
2495: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_lct_organization_code)';
2496: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';

Line 2496: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';

2492: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';
2493:
2494: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_organization_id = (SELECT organization_id'
2495: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_lct_organization_code)';
2496: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_lct_organization_code';
2497: END IF;
2498:
2499: IF p_mon_vr_subinventory IS NOT NULL
2500: THEN

Line 2503: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';

2499: IF p_mon_vr_subinventory IS NOT NULL
2500: THEN
2501: g_mon_vr_subinventory := p_mon_vr_subinventory;
2502: main_where_clause := main_where_clause||' AND mmvr.subinventory = :mon_vr_subinventory';
2503: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';
2504:
2505: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.whse_code = :mon_vr_subinventory';
2506: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';
2507: END IF;

Line 2506: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';

2502: main_where_clause := main_where_clause||' AND mmvr.subinventory = :mon_vr_subinventory';
2503: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';
2504:
2505: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.whse_code = :mon_vr_subinventory';
2506: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_subinventory';
2507: END IF;
2508:
2509: IF p_mon_vr_locator_id IS NOT NULL
2510: THEN

Line 2513: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';

2509: IF p_mon_vr_locator_id IS NOT NULL
2510: THEN
2511: g_mon_vr_locator_id := p_mon_vr_locator_id;
2512: main_where_clause := main_where_clause||' AND mmvr.locator_id = :mon_vr_locator_id';
2513: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';
2514:
2515: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_id = :mon_vr_locator_id';
2516: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';
2517: END IF;

Line 2516: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';

2512: main_where_clause := main_where_clause||' AND mmvr.locator_id = :mon_vr_locator_id';
2513: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';
2514:
2515: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_id = :mon_vr_locator_id';
2516: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator_id';
2517: END IF;
2518:
2519: IF p_mon_vr_locator IS NOT NULL
2520: THEN

Line 2526: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator';

2522: main_where_clause := main_where_clause||' AND mmvr.locator_id = (SELECT inventory_location_id'
2523: ||' FROM mtl_item_locations_kfv WHERE'
2524: ||' concatenated_segments = :mon_vr_locator'
2525: ||' AND organization_id = mmvr.locator_organization_id)';
2526: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator';
2527:
2528: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_id = (SELECT inventory_location_id'
2529: ||' FROM mtl_item_locations_kfv WHERE'
2530: ||' concatenated_segments = :mon_vr_locator'

Line 2532: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator';

2528: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.locator_id = (SELECT inventory_location_id'
2529: ||' FROM mtl_item_locations_kfv WHERE'
2530: ||' concatenated_segments = :mon_vr_locator'
2531: ||' AND organization_id = mvr.locator_organization_id)';
2532: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_locator';
2533: END IF;
2534:
2535: IF p_mon_vr_rsr_organization_code IS NOT NULL
2536: THEN

Line 2540: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';

2536: THEN
2537: g_mon_vr_rsr_organization_code := p_mon_vr_rsr_organization_code;
2538: main_where_clause := main_where_clause||' AND mmvr.resource_organization_id = (SELECT organization_id'
2539: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_rsr_organization_code)';
2540: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';
2541:
2542: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resource_organization_id = (SELECT organization_id'
2543: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_rsr_organization_code)';
2544: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';

Line 2544: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';

2540: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';
2541:
2542: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resource_organization_id = (SELECT organization_id'
2543: ||' FROM mtl_organizations WHERE organization_code = :mon_vr_rsr_organization_code)';
2544: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_rsr_organization_code';
2545: END IF;
2546:
2547: IF p_mon_vr_resources IS NOT NULL
2548: THEN

Line 2551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';

2547: IF p_mon_vr_resources IS NOT NULL
2548: THEN
2549: g_mon_vr_resources := p_mon_vr_resources;
2550: main_where_clause := main_where_clause||' AND mmvr.resources = :mon_vr_resources';
2551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';
2552:
2553: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resources = :mon_vr_resources';
2554: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';
2555: END IF;

Line 2554: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';

2550: main_where_clause := main_where_clause||' AND mmvr.resources = :mon_vr_resources';
2551: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';
2552:
2553: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resources = :mon_vr_resources';
2554: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resources';
2555: END IF;
2556:
2557: IF p_mon_vr_resource_instance_id IS NOT NULL
2558: THEN

Line 2561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';

2557: IF p_mon_vr_resource_instance_id IS NOT NULL
2558: THEN
2559: g_mon_vr_resource_instance_id := p_mon_vr_resource_instance_id;
2560: main_where_clause := main_where_clause||' AND mmvr.resource_instance_id = :mon_vr_resource_instance_id';
2561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';
2562:
2563: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resource_instance_id = :mon_vr_resource_instance_id';
2564: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';
2565: END IF;

Line 2564: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';

2560: main_where_clause := main_where_clause||' AND mmvr.resource_instance_id = :mon_vr_resource_instance_id';
2561: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';
2562:
2563: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.resource_instance_id = :mon_vr_resource_instance_id';
2564: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_resource_instance_id';
2565: END IF;
2566:
2567: IF p_mon_vr_sampling_plan_id IS NOT NULL
2568: THEN

Line 2571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';

2567: IF p_mon_vr_sampling_plan_id IS NOT NULL
2568: THEN
2569: g_mon_vr_sampling_plan_id := p_mon_vr_sampling_plan_id;
2570: main_where_clause := main_where_clause||' AND mmvr.sampling_plan_id = :mon_vr_sampling_plan_id';
2571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';
2572:
2573: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.sampling_plan_id = :mon_vr_sampling_plan_id';
2574: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';
2575: END IF;

Line 2574: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';

2570: main_where_clause := main_where_clause||' AND mmvr.sampling_plan_id = :mon_vr_sampling_plan_id';
2571: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';
2572:
2573: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.sampling_plan_id = :mon_vr_sampling_plan_id';
2574: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_sampling_plan_id';
2575: END IF;
2576:
2577: IF p_mon_vr_from_last_update_date IS NOT NULL
2578: THEN

Line 2581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';

2577: IF p_mon_vr_from_last_update_date IS NOT NULL
2578: THEN
2579: g_mon_vr_from_last_update_date := p_mon_vr_from_last_update_date;
2580: main_where_clause := main_where_clause||' AND mmvr.last_update_date >= :mon_vr_from_last_update_date';
2581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';
2582:
2583: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.last_update_date >= :mon_vr_from_last_update_date';
2584: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';
2585: END IF;

Line 2584: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';

2580: main_where_clause := main_where_clause||' AND mmvr.last_update_date >= :mon_vr_from_last_update_date';
2581: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';
2582:
2583: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.last_update_date >= :mon_vr_from_last_update_date';
2584: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_from_last_update_date';
2585: END IF;
2586:
2587: IF p_mon_vr_to_last_update_date IS NOT NULL
2588: THEN

Line 2591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';

2587: IF p_mon_vr_to_last_update_date IS NOT NULL
2588: THEN
2589: g_mon_vr_to_last_update_date := p_mon_vr_to_last_update_date;
2590: main_where_clause := main_where_clause||' AND mmvr.last_update_date <= :mon_vr_to_last_update_date';
2591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';
2592:
2593: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.last_update_date <= :mon_vr_to_last_update_date';
2594: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';
2595: END IF;

Line 2594: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';

2590: main_where_clause := main_where_clause||' AND mmvr.last_update_date <= :mon_vr_to_last_update_date';
2591: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';
2592:
2593: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.last_update_date <= :mon_vr_to_last_update_date';
2594: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_to_last_update_date';
2595: END IF;
2596:
2597: IF p_mon_vr_delete_mark IS NOT NULL
2598: THEN

Line 2601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';

2597: IF p_mon_vr_delete_mark IS NOT NULL
2598: THEN
2599: g_mon_vr_delete_mark := p_mon_vr_delete_mark;
2600: main_where_clause := main_where_clause||' AND mmvr.delete_mark =:mon_vr_delete_mark';
2601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';
2602:
2603: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.delete_mark = :mon_vr_delete_mark';
2604: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';
2605: END IF;

Line 2604: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';

2600: main_where_clause := main_where_clause||' AND mmvr.delete_mark =:mon_vr_delete_mark';
2601: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';
2602:
2603: mon_vr_where_clause := mon_vr_where_clause||' AND mvr.delete_mark = :mon_vr_delete_mark';
2604: mon_vr_using_clause := mon_vr_using_clause||', gmd_outbound_apis_pub.g_mon_vr_delete_mark';
2605: END IF;
2606:
2607: main_where_clause := main_where_clause||' ) ';
2608:

Line 2667: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_specifications_table ';

2663: -- That's more or less the job done. We just need to tell the system where to store the data
2664: -- and assemble the USING clause. Note thatthe main_using_clause is last in the list as it
2665: -- appears last in the query.
2666:
2667: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_specifications_table ';
2668:
2669: main_using_clause := ' USING '||spec_test_using_clause
2670: ||','||cust_vr_using_clause
2671: ||','||wip_vr_using_clause

Line 2719: x_specifications_tbl := gmd_outbound_apis_pub.g_specifications_table;

2715: END IF;
2716: END LOOP;
2717: END IF;
2718:
2719: x_specifications_tbl := gmd_outbound_apis_pub.g_specifications_table;
2720: x_return_status := FND_API.G_RET_STS_SUCCESS;
2721:
2722: END IF;
2723: FND_MSG_PUB.count_and_get(p_count => x_msg_count, p_data => x_msg_data);

Line 2791: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_RESULTS API');

2787: l_api_name VARCHAR2(100) := 'fetch_results';
2788:
2789: BEGIN
2790:
2791: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_RESULTS API');
2792:
2793: IF NOT FND_API.Compatible_API_CALL
2794: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
2795: OR NOT initialized_ok(p_user_name)

Line 2794: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

2790:
2791: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_RESULTS API');
2792:
2793: IF NOT FND_API.Compatible_API_CALL
2794: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
2795: OR NOT initialized_ok(p_user_name)
2796: THEN
2797: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
2798: ELSE

Line 2863: gmd_outbound_apis_pub.g_orgn_code := p_orgn_code;

2859: -- Work down the parameter list and append conditions, bind variables and bind values.
2860:
2861: IF p_orgn_code IS NOT NULL /*NSRIVAST, INVCONV*/
2862: THEN
2863: gmd_outbound_apis_pub.g_orgn_code := p_orgn_code;
2864: where_clause := where_clause||'AND gs.organization_id = (SELECT organization_id'
2865: || ' FROM mtl_organizations WHERE organization_code = :orgn_code)';
2866: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_code ';
2867: END IF;

Line 2866: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_code ';

2862: THEN
2863: gmd_outbound_apis_pub.g_orgn_code := p_orgn_code;
2864: where_clause := where_clause||'AND gs.organization_id = (SELECT organization_id'
2865: || ' FROM mtl_organizations WHERE organization_code = :orgn_code)';
2866: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_code ';
2867: END IF;
2868:
2869: IF p_from_sample_no IS NOT NULL
2870: THEN

Line 2871: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;

2867: END IF;
2868:
2869: IF p_from_sample_no IS NOT NULL
2870: THEN
2871: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;
2872: where_clause := where_clause||'AND gs.sample_no >= :sample_no ';
2873: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';
2874: END IF;
2875:

Line 2873: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';

2869: IF p_from_sample_no IS NOT NULL
2870: THEN
2871: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;
2872: where_clause := where_clause||'AND gs.sample_no >= :sample_no ';
2873: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';
2874: END IF;
2875:
2876: IF p_to_sample_no IS NOT NULL
2877: THEN

Line 2878: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;

2874: END IF;
2875:
2876: IF p_to_sample_no IS NOT NULL
2877: THEN
2878: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;
2879: where_clause := where_clause||'AND gs.sample_no <= :sample_no ';
2880: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';
2881: END IF;
2882:

Line 2880: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';

2876: IF p_to_sample_no IS NOT NULL
2877: THEN
2878: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;
2879: where_clause := where_clause||'AND gs.sample_no <= :sample_no ';
2880: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';
2881: END IF;
2882:
2883: IF p_sample_id IS NOT NULL
2884: THEN

Line 2885: gmd_outbound_apis_pub.g_sample_id := p_sample_id;

2881: END IF;
2882:
2883: IF p_sample_id IS NOT NULL
2884: THEN
2885: gmd_outbound_apis_pub.g_sample_id := p_sample_id;
2886: where_clause := where_clause||'AND gs.sample_id = :sample_id ';
2887: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';
2888: END IF;
2889:

Line 2887: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';

2883: IF p_sample_id IS NOT NULL
2884: THEN
2885: gmd_outbound_apis_pub.g_sample_id := p_sample_id;
2886: where_clause := where_clause||'AND gs.sample_id = :sample_id ';
2887: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';
2888: END IF;
2889:
2890: IF p_from_result_date IS NOT NULL
2891: THEN

Line 2892: gmd_outbound_apis_pub.g_from_result_date := p_from_result_date ;

2888: END IF;
2889:
2890: IF p_from_result_date IS NOT NULL
2891: THEN
2892: gmd_outbound_apis_pub.g_from_result_date := p_from_result_date ;
2893: where_clause := where_clause||'AND r.result_date >= :from_result_date ';
2894: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_result_date ';
2895: END IF;
2896:

Line 2894: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_result_date ';

2890: IF p_from_result_date IS NOT NULL
2891: THEN
2892: gmd_outbound_apis_pub.g_from_result_date := p_from_result_date ;
2893: where_clause := where_clause||'AND r.result_date >= :from_result_date ';
2894: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_result_date ';
2895: END IF;
2896:
2897: IF p_to_result_date IS NOT NULL
2898: THEN

Line 2899: gmd_outbound_apis_pub.g_to_result_date := p_to_result_date ;

2895: END IF;
2896:
2897: IF p_to_result_date IS NOT NULL
2898: THEN
2899: gmd_outbound_apis_pub.g_to_result_date := p_to_result_date ;
2900: where_clause := where_clause||'AND r.result_date <= :to_result_date ';
2901: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_result_date ';
2902: END IF;
2903:

Line 2901: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_result_date ';

2897: IF p_to_result_date IS NOT NULL
2898: THEN
2899: gmd_outbound_apis_pub.g_to_result_date := p_to_result_date ;
2900: where_clause := where_clause||'AND r.result_date <= :to_result_date ';
2901: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_result_date ';
2902: END IF;
2903:
2904: IF p_sample_disposition IS NOT NULL
2905: THEN

Line 2906: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition ;

2902: END IF;
2903:
2904: IF p_sample_disposition IS NOT NULL
2905: THEN
2906: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition ;
2907: where_clause := where_clause||'AND gesd.disposition = :disposition ';
2908: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
2909: END IF;
2910:

Line 2908: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';

2904: IF p_sample_disposition IS NOT NULL
2905: THEN
2906: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition ;
2907: where_clause := where_clause||'AND gesd.disposition = :disposition ';
2908: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
2909: END IF;
2910:
2911: IF p_in_spec_ind IS NOT NULL
2912: THEN

Line 2913: gmd_outbound_apis_pub.g_in_spec_ind := p_in_spec_ind;

2909: END IF;
2910:
2911: IF p_in_spec_ind IS NOT NULL
2912: THEN
2913: gmd_outbound_apis_pub.g_in_spec_ind := p_in_spec_ind;
2914: where_clause := where_clause||'AND gsr.in_spec_ind = :in_spec_ind ';
2915: using_clause := using_clause||', gmd_outbound_apis_pub.g_in_spec_ind ';
2916: END IF;
2917:

Line 2915: using_clause := using_clause||', gmd_outbound_apis_pub.g_in_spec_ind ';

2911: IF p_in_spec_ind IS NOT NULL
2912: THEN
2913: gmd_outbound_apis_pub.g_in_spec_ind := p_in_spec_ind;
2914: where_clause := where_clause||'AND gsr.in_spec_ind = :in_spec_ind ';
2915: using_clause := using_clause||', gmd_outbound_apis_pub.g_in_spec_ind ';
2916: END IF;
2917:
2918: IF p_qc_lab_orgn_code IS NOT NULL /*NSRIVAST, INVCONV*/
2919: THEN

Line 2920: gmd_outbound_apis_pub.g_qc_lab_orgn_code := p_qc_lab_orgn_code ;

2916: END IF;
2917:
2918: IF p_qc_lab_orgn_code IS NOT NULL /*NSRIVAST, INVCONV*/
2919: THEN
2920: gmd_outbound_apis_pub.g_qc_lab_orgn_code := p_qc_lab_orgn_code ;
2921: where_clause := where_clause||'AND r.lab_organization_id = (SELECT organization_id'
2922: || ' FROM mtl_organizations WHERE organization_code = :lab_orgn_code)';
2923: using_clause := using_clause||', gmd_outbound_apis_pub.g_qc_lab_orgn_code ';
2924: END IF;

Line 2923: using_clause := using_clause||', gmd_outbound_apis_pub.g_qc_lab_orgn_code ';

2919: THEN
2920: gmd_outbound_apis_pub.g_qc_lab_orgn_code := p_qc_lab_orgn_code ;
2921: where_clause := where_clause||'AND r.lab_organization_id = (SELECT organization_id'
2922: || ' FROM mtl_organizations WHERE organization_code = :lab_orgn_code)';
2923: using_clause := using_clause||', gmd_outbound_apis_pub.g_qc_lab_orgn_code ';
2924: END IF;
2925:
2926: IF p_evaluation_ind IS NOT NULL
2927: THEN

Line 2928: gmd_outbound_apis_pub.g_evaluation_ind := p_evaluation_ind ;

2924: END IF;
2925:
2926: IF p_evaluation_ind IS NOT NULL
2927: THEN
2928: gmd_outbound_apis_pub.g_evaluation_ind := p_evaluation_ind ;
2929: where_clause := where_clause||'AND gsr.evaluation_ind = :evaluation_ind ';
2930: using_clause := using_clause||', gmd_outbound_apis_pub.g_evaluation_ind ';
2931: END IF;
2932:

Line 2930: using_clause := using_clause||', gmd_outbound_apis_pub.g_evaluation_ind ';

2926: IF p_evaluation_ind IS NOT NULL
2927: THEN
2928: gmd_outbound_apis_pub.g_evaluation_ind := p_evaluation_ind ;
2929: where_clause := where_clause||'AND gsr.evaluation_ind = :evaluation_ind ';
2930: using_clause := using_clause||', gmd_outbound_apis_pub.g_evaluation_ind ';
2931: END IF;
2932:
2933: -- BUG 3078568 target fnd_user for tester
2934: IF p_tester IS NOT NULL

Line 2939: gmd_outbound_apis_pub.g_tester := p_tester;

2935: THEN
2936: table_list := table_list ||', fnd_user fu3 ';
2937: where_clause := where_clause ||'AND r.tester_id = fu3.user_id ';
2938:
2939: gmd_outbound_apis_pub.g_tester := p_tester;
2940: where_clause := where_clause||'AND fu3.user_name = :tester ';
2941: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester ';
2942: END IF;
2943:

Line 2941: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester ';

2937: where_clause := where_clause ||'AND r.tester_id = fu3.user_id ';
2938:
2939: gmd_outbound_apis_pub.g_tester := p_tester;
2940: where_clause := where_clause||'AND fu3.user_name = :tester ';
2941: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester ';
2942: END IF;
2943:
2944: IF p_tester_id IS NOT NULL
2945: THEN

Line 2946: gmd_outbound_apis_pub.g_tester_id := p_tester_id ;

2942: END IF;
2943:
2944: IF p_tester_id IS NOT NULL
2945: THEN
2946: gmd_outbound_apis_pub.g_tester_id := p_tester_id ;
2947: where_clause := where_clause||'AND r.tester_id = :tester_id ';
2948: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester_id ';
2949: END IF;
2950:

Line 2948: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester_id ';

2944: IF p_tester_id IS NOT NULL
2945: THEN
2946: gmd_outbound_apis_pub.g_tester_id := p_tester_id ;
2947: where_clause := where_clause||'AND r.tester_id = :tester_id ';
2948: using_clause := using_clause||', gmd_outbound_apis_pub.g_tester_id ';
2949: END IF;
2950:
2951: IF p_test_provider_id IS NOT NULL
2952: THEN

Line 2953: gmd_outbound_apis_pub.g_test_provider_id := p_test_provider_id ;

2949: END IF;
2950:
2951: IF p_test_provider_id IS NOT NULL
2952: THEN
2953: gmd_outbound_apis_pub.g_test_provider_id := p_test_provider_id ;
2954: where_clause := where_clause||'AND r.test_provider_id = :test_provider_id ';
2955: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_provider_id ';
2956: END IF;
2957:

Line 2955: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_provider_id ';

2951: IF p_test_provider_id IS NOT NULL
2952: THEN
2953: gmd_outbound_apis_pub.g_test_provider_id := p_test_provider_id ;
2954: where_clause := where_clause||'AND r.test_provider_id = :test_provider_id ';
2955: using_clause := using_clause||', gmd_outbound_apis_pub.g_test_provider_id ';
2956: END IF;
2957:
2958: IF p_delete_mark IS NOT NULL
2959: THEN

Line 2960: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;

2956: END IF;
2957:
2958: IF p_delete_mark IS NOT NULL
2959: THEN
2960: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
2961: where_clause := where_clause||'AND r.delete_mark = :delete_mark ';
2962: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
2963: END IF;
2964:

Line 2962: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';

2958: IF p_delete_mark IS NOT NULL
2959: THEN
2960: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
2961: where_clause := where_clause||'AND r.delete_mark = :delete_mark ';
2962: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
2963: END IF;
2964:
2965: IF p_from_last_update_date IS NOT NULL
2966: THEN

Line 2967: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

2963: END IF;
2964:
2965: IF p_from_last_update_date IS NOT NULL
2966: THEN
2967: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
2968: where_clause := where_clause||'AND r.last_update_date >= :from_last_update_date ';
2969: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
2970: END IF;
2971:

Line 2969: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

2965: IF p_from_last_update_date IS NOT NULL
2966: THEN
2967: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
2968: where_clause := where_clause||'AND r.last_update_date >= :from_last_update_date ';
2969: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
2970: END IF;
2971:
2972: IF p_to_last_update_date IS NOT NULL
2973: THEN

Line 2974: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

2970: END IF;
2971:
2972: IF p_to_last_update_date IS NOT NULL
2973: THEN
2974: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
2975: where_clause := where_clause||'AND r.last_update_date <= :to_last_update_date ';
2976: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
2977: END IF;
2978:

Line 2976: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

2972: IF p_to_last_update_date IS NOT NULL
2973: THEN
2974: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
2975: where_clause := where_clause||'AND r.last_update_date <= :to_last_update_date ';
2976: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
2977: END IF;
2978:
2979: IF p_planned_resource IS NOT NULL
2980: THEN

Line 2981: gmd_outbound_apis_pub.g_planned_resource := p_planned_resource;

2977: END IF;
2978:
2979: IF p_planned_resource IS NOT NULL
2980: THEN
2981: gmd_outbound_apis_pub.g_planned_resource := p_planned_resource;
2982: where_clause := where_clause||'AND gsr.planned_resource = :planned_resource ';
2983: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource ';
2984: END IF;
2985:

Line 2983: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource ';

2979: IF p_planned_resource IS NOT NULL
2980: THEN
2981: gmd_outbound_apis_pub.g_planned_resource := p_planned_resource;
2982: where_clause := where_clause||'AND gsr.planned_resource = :planned_resource ';
2983: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource ';
2984: END IF;
2985:
2986: IF p_planned_resource_instance IS NOT NULL
2987: THEN

Line 2988: gmd_outbound_apis_pub.g_planned_resource_instance := p_planned_resource_instance;

2984: END IF;
2985:
2986: IF p_planned_resource_instance IS NOT NULL
2987: THEN
2988: gmd_outbound_apis_pub.g_planned_resource_instance := p_planned_resource_instance;
2989: where_clause := where_clause||'AND gsr.planned_resource_instance = :planned_resource_instance ';
2990: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource_instance ';
2991: END IF;
2992:

Line 2990: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource_instance ';

2986: IF p_planned_resource_instance IS NOT NULL
2987: THEN
2988: gmd_outbound_apis_pub.g_planned_resource_instance := p_planned_resource_instance;
2989: where_clause := where_clause||'AND gsr.planned_resource_instance = :planned_resource_instance ';
2990: using_clause := using_clause||', gmd_outbound_apis_pub.g_planned_resource_instance ';
2991: END IF;
2992:
2993: IF p_actual_resource IS NOT NULL
2994: THEN

Line 2995: gmd_outbound_apis_pub.g_actual_resource := p_actual_resource;

2991: END IF;
2992:
2993: IF p_actual_resource IS NOT NULL
2994: THEN
2995: gmd_outbound_apis_pub.g_actual_resource := p_actual_resource;
2996: where_clause := where_clause||'AND gsr.actual_resource = :actual_resource ';
2997: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource ';
2998: END IF;
2999:

Line 2997: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource ';

2993: IF p_actual_resource IS NOT NULL
2994: THEN
2995: gmd_outbound_apis_pub.g_actual_resource := p_actual_resource;
2996: where_clause := where_clause||'AND gsr.actual_resource = :actual_resource ';
2997: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource ';
2998: END IF;
2999:
3000: IF p_actual_resource_instance IS NOT NULL
3001: THEN

Line 3002: gmd_outbound_apis_pub.g_actual_resource_instance := p_actual_resource_instance;

2998: END IF;
2999:
3000: IF p_actual_resource_instance IS NOT NULL
3001: THEN
3002: gmd_outbound_apis_pub.g_actual_resource_instance := p_actual_resource_instance;
3003: where_clause := where_clause||'AND gsr.actual_resource_instance = :actual_resource_instance ';
3004: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource_instance ';
3005: END IF;
3006:

Line 3004: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource_instance ';

3000: IF p_actual_resource_instance IS NOT NULL
3001: THEN
3002: gmd_outbound_apis_pub.g_actual_resource_instance := p_actual_resource_instance;
3003: where_clause := where_clause||'AND gsr.actual_resource_instance = :actual_resource_instance ';
3004: using_clause := using_clause||', gmd_outbound_apis_pub.g_actual_resource_instance ';
3005: END IF;
3006:
3007: IF p_from_planned_result_date IS NOT NULL
3008: THEN

Line 3009: gmd_outbound_apis_pub.g_from_planned_result_date := p_from_planned_result_date;

3005: END IF;
3006:
3007: IF p_from_planned_result_date IS NOT NULL
3008: THEN
3009: gmd_outbound_apis_pub.g_from_planned_result_date := p_from_planned_result_date;
3010: where_clause := where_clause||'AND gsr.planned_result_date >= :from_planned_result_date ';
3011: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_planned_result_date ';
3012: END IF;
3013:

Line 3011: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_planned_result_date ';

3007: IF p_from_planned_result_date IS NOT NULL
3008: THEN
3009: gmd_outbound_apis_pub.g_from_planned_result_date := p_from_planned_result_date;
3010: where_clause := where_clause||'AND gsr.planned_result_date >= :from_planned_result_date ';
3011: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_planned_result_date ';
3012: END IF;
3013:
3014: IF p_to_planned_result_date IS NOT NULL
3015: THEN

Line 3016: gmd_outbound_apis_pub.g_to_planned_result_date := p_to_planned_result_date;

3012: END IF;
3013:
3014: IF p_to_planned_result_date IS NOT NULL
3015: THEN
3016: gmd_outbound_apis_pub.g_to_planned_result_date := p_to_planned_result_date;
3017: where_clause := where_clause||'AND gsr.planned_result_date <= :to_planned_result_date ';
3018: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_planned_result_date ';
3019: END IF;
3020:

Line 3018: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_planned_result_date ';

3014: IF p_to_planned_result_date IS NOT NULL
3015: THEN
3016: gmd_outbound_apis_pub.g_to_planned_result_date := p_to_planned_result_date;
3017: where_clause := where_clause||'AND gsr.planned_result_date <= :to_planned_result_date ';
3018: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_planned_result_date ';
3019: END IF;
3020:
3021: IF p_from_test_by_date IS NOT NULL
3022: THEN

Line 3023: gmd_outbound_apis_pub.g_from_test_by_date := p_from_test_by_date;

3019: END IF;
3020:
3021: IF p_from_test_by_date IS NOT NULL
3022: THEN
3023: gmd_outbound_apis_pub.g_from_test_by_date := p_from_test_by_date;
3024: where_clause := where_clause||'AND gsr.test_by_date >= :from_test_by_date ';
3025: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_by_date ';
3026: END IF;
3027:

Line 3025: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_by_date ';

3021: IF p_from_test_by_date IS NOT NULL
3022: THEN
3023: gmd_outbound_apis_pub.g_from_test_by_date := p_from_test_by_date;
3024: where_clause := where_clause||'AND gsr.test_by_date >= :from_test_by_date ';
3025: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_test_by_date ';
3026: END IF;
3027:
3028: IF p_to_test_by_date IS NOT NULL
3029: THEN

Line 3030: gmd_outbound_apis_pub.g_to_test_by_date := p_to_test_by_date;

3026: END IF;
3027:
3028: IF p_to_test_by_date IS NOT NULL
3029: THEN
3030: gmd_outbound_apis_pub.g_to_test_by_date := p_to_test_by_date;
3031: where_clause := where_clause||'AND gsr.test_by_date <= :to_test_by_date ';
3032: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_by_date ';
3033: END IF;
3034:

Line 3032: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_by_date ';

3028: IF p_to_test_by_date IS NOT NULL
3029: THEN
3030: gmd_outbound_apis_pub.g_to_test_by_date := p_to_test_by_date;
3031: where_clause := where_clause||'AND gsr.test_by_date <= :to_test_by_date ';
3032: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_test_by_date ';
3033: END IF;
3034:
3035: IF p_reserve_sample_id IS NOT NULL
3036: THEN

Line 3037: gmd_outbound_apis_pub.g_reserve_sample_id := p_reserve_sample_id;

3033: END IF;
3034:
3035: IF p_reserve_sample_id IS NOT NULL
3036: THEN
3037: gmd_outbound_apis_pub.g_reserve_sample_id := p_reserve_sample_id;
3038: where_clause := where_clause||'AND r.reserve_sample_id = :reserve_sample_id ';
3039: using_clause := using_clause||', gmd_outbound_apis_pub.g_reserve_sample_id ';
3040: END IF;
3041:

Line 3039: using_clause := using_clause||', gmd_outbound_apis_pub.g_reserve_sample_id ';

3035: IF p_reserve_sample_id IS NOT NULL
3036: THEN
3037: gmd_outbound_apis_pub.g_reserve_sample_id := p_reserve_sample_id;
3038: where_clause := where_clause||'AND r.reserve_sample_id = :reserve_sample_id ';
3039: using_clause := using_clause||', gmd_outbound_apis_pub.g_reserve_sample_id ';
3040: END IF;
3041:
3042: -- That's more or less the job done. We just need to tell the system where to store the data
3043:

Line 3044: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_results_table ';

3040: END IF;
3041:
3042: -- That's more or less the job done. We just need to tell the system where to store the data
3043:
3044: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_results_table ';
3045:
3046:
3047: execution_string := 'BEGIN EXECUTE IMMEDIATE '
3048: ||''''

Line 3094: x_results_table := gmd_outbound_apis_pub.g_results_table;

3090: END LOOP;
3091:
3092:
3093: gme_debug.put_line('Returning table to caller');
3094: x_results_table := gmd_outbound_apis_pub.g_results_table;
3095: x_return_status := FND_API.G_RET_STS_SUCCESS;
3096:
3097: END IF;
3098:

Line 3148: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_COMPOSITE_RESULTS API');

3144: l_api_name VARCHAR2(100) := 'fetch_composite_results';
3145:
3146: BEGIN
3147:
3148: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_COMPOSITE_RESULTS API');
3149:
3150: IF NOT FND_API.Compatible_API_CALL
3151: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
3152: OR NOT initialized_ok(p_user_name)

Line 3151: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

3147:
3148: gme_debug.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_COMPOSITE_RESULTS API');
3149:
3150: IF NOT FND_API.Compatible_API_CALL
3151: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
3152: OR NOT initialized_ok(p_user_name)
3153: THEN
3154: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
3155: ELSE

Line 3310: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;

3306: -- Work down the parameter list and append conditions, bind variables and bind values.
3307:
3308: IF p_sampling_event_id IS NOT NULL
3309: THEN
3310: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;
3311: where_clause := where_clause||'AND gse.sampling_event_id = :sampling_event_id ';
3312: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';
3313: END IF;
3314:

Line 3312: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';

3308: IF p_sampling_event_id IS NOT NULL
3309: THEN
3310: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;
3311: where_clause := where_clause||'AND gse.sampling_event_id = :sampling_event_id ';
3312: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';
3313: END IF;
3314:
3315: IF p_composite_result_disposition IS NOT NULL
3316: THEN

Line 3317: gmd_outbound_apis_pub.g_disposition := p_composite_result_disposition;

3313: END IF;
3314:
3315: IF p_composite_result_disposition IS NOT NULL
3316: THEN
3317: gmd_outbound_apis_pub.g_disposition := p_composite_result_disposition;
3318: where_clause := where_clause||'AND gcsd.disposition = :disposition ';
3319: using_clause := using_clause||', gmd_outbound_apis_pub.g_disposition ';
3320: END IF;
3321: -- pal

Line 3319: using_clause := using_clause||', gmd_outbound_apis_pub.g_disposition ';

3315: IF p_composite_result_disposition IS NOT NULL
3316: THEN
3317: gmd_outbound_apis_pub.g_disposition := p_composite_result_disposition;
3318: where_clause := where_clause||'AND gcsd.disposition = :disposition ';
3319: using_clause := using_clause||', gmd_outbound_apis_pub.g_disposition ';
3320: END IF;
3321: -- pal
3322: -- BUG 3078607 correct using variable
3323: IF p_from_item_number IS NOT NULL /*NSRIVAST, INVCONV*/

Line 3325: gmd_outbound_apis_pub.g_from_item_no := p_from_item_number;

3321: -- pal
3322: -- BUG 3078607 correct using variable
3323: IF p_from_item_number IS NOT NULL /*NSRIVAST, INVCONV*/
3324: THEN
3325: gmd_outbound_apis_pub.g_from_item_no := p_from_item_number;
3326: where_clause := where_clause||'AND msi.inventory_item_id IN ( SELECT distinct inventory_item_id FROM mtl_system_items_kfv'
3327: ||' WHERE concatenated_segments >= :from_item_number'
3328: ||' AND organization_id = gse.organization_id)'; -- 5346713 rework added org id
3329:

Line 3330: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_no ';

3326: where_clause := where_clause||'AND msi.inventory_item_id IN ( SELECT distinct inventory_item_id FROM mtl_system_items_kfv'
3327: ||' WHERE concatenated_segments >= :from_item_number'
3328: ||' AND organization_id = gse.organization_id)'; -- 5346713 rework added org id
3329:
3330: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_no ';
3331: END IF;
3332:
3333: IF p_to_item_number IS NOT NULL /*NSRIVAST, INVCONV*/
3334: THEN

Line 3335: gmd_outbound_apis_pub.g_to_item_no := p_to_item_number;

3331: END IF;
3332:
3333: IF p_to_item_number IS NOT NULL /*NSRIVAST, INVCONV*/
3334: THEN
3335: gmd_outbound_apis_pub.g_to_item_no := p_to_item_number;
3336: where_clause := where_clause||'AND msi.inventory_item_id IN ( SELECT distinct inventory_item_id FROM mtl_system_items_kfv'
3337: ||' WHERE concatenated_segments <= :to_item_number'
3338: ||' AND organization_id = gse.organization_id)'; -- 5346713 rework added org id
3339: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_item_no ';

Line 3339: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_item_no ';

3335: gmd_outbound_apis_pub.g_to_item_no := p_to_item_number;
3336: where_clause := where_clause||'AND msi.inventory_item_id IN ( SELECT distinct inventory_item_id FROM mtl_system_items_kfv'
3337: ||' WHERE concatenated_segments <= :to_item_number'
3338: ||' AND organization_id = gse.organization_id)'; -- 5346713 rework added org id
3339: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_item_no ';
3340: END IF;
3341:
3342: IF p_inventory_item_id IS NOT NULL /*NSRIVAST, INVCONV*/
3343: THEN

Line 3344: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;

3340: END IF;
3341:
3342: IF p_inventory_item_id IS NOT NULL /*NSRIVAST, INVCONV*/
3343: THEN
3344: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;
3345: where_clause := where_clause||'AND msi.inventory_item_id = :inventory_item_id '
3346: ||' AND msi.organization_id = gse.organization_id'; -- 5346713 rework added org id
3347: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';
3348: END IF;

Line 3347: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';

3343: THEN
3344: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;
3345: where_clause := where_clause||'AND msi.inventory_item_id = :inventory_item_id '
3346: ||' AND msi.organization_id = gse.organization_id'; -- 5346713 rework added org id
3347: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';
3348: END IF;
3349:
3350: IF p_from_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3351: THEN

Line 3352: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;

3348: END IF;
3349:
3350: IF p_from_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3351: THEN
3352: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;
3353: where_clause := where_clause||'AND gse.lot_number >= :from_lot_number ';
3354: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';
3355: END IF;
3356:

Line 3354: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';

3350: IF p_from_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3351: THEN
3352: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;
3353: where_clause := where_clause||'AND gse.lot_number >= :from_lot_number ';
3354: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';
3355: END IF;
3356:
3357: IF p_to_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3358: THEN

Line 3359: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;

3355: END IF;
3356:
3357: IF p_to_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3358: THEN
3359: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;
3360: where_clause := where_clause||'AND gse.lot_number <= :to_lot_number ';
3361: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';
3362: END IF;
3363:

Line 3361: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';

3357: IF p_to_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3358: THEN
3359: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;
3360: where_clause := where_clause||'AND gse.lot_number <= :to_lot_number ';
3361: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';
3362: END IF;
3363:
3364: -- BUG 3078607 lot_id from gse not ilm
3365: IF p_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/

Line 3367: gmd_outbound_apis_pub.g_lot_number := p_lot_number;

3363:
3364: -- BUG 3078607 lot_id from gse not ilm
3365: IF p_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3366: THEN
3367: gmd_outbound_apis_pub.g_lot_number := p_lot_number;
3368: where_clause := where_clause||'AND gse.lot_number = :lot_number ';
3369: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_number ';
3370: END IF;
3371:

Line 3369: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_number ';

3365: IF p_lot_number IS NOT NULL /*NSRIVAST, INVCONV*/
3366: THEN
3367: gmd_outbound_apis_pub.g_lot_number := p_lot_number;
3368: where_clause := where_clause||'AND gse.lot_number = :lot_number ';
3369: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_number ';
3370: END IF;
3371:
3372: IF p_from_last_update_date IS NOT NULL
3373: THEN

Line 3374: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

3370: END IF;
3371:
3372: IF p_from_last_update_date IS NOT NULL
3373: THEN
3374: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
3375: where_clause := where_clause||'AND gcr.last_update_date >= :from_last_update_date ';
3376: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
3377: END IF;
3378:

Line 3376: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

3372: IF p_from_last_update_date IS NOT NULL
3373: THEN
3374: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
3375: where_clause := where_clause||'AND gcr.last_update_date >= :from_last_update_date ';
3376: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
3377: END IF;
3378:
3379: IF p_to_last_update_date IS NOT NULL
3380: THEN

Line 3381: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

3377: END IF;
3378:
3379: IF p_to_last_update_date IS NOT NULL
3380: THEN
3381: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
3382: where_clause := where_clause||'AND gcr.last_update_date <= :to_last_update_date '; -- BUG 3078683
3383: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
3384: END IF;
3385:

Line 3383: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

3379: IF p_to_last_update_date IS NOT NULL
3380: THEN
3381: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
3382: where_clause := where_clause||'AND gcr.last_update_date <= :to_last_update_date '; -- BUG 3078683
3383: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
3384: END IF;
3385:
3386: IF p_delete_mark IS NOT NULL
3387: THEN

Line 3388: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;

3384: END IF;
3385:
3386: IF p_delete_mark IS NOT NULL
3387: THEN
3388: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
3389: where_clause := where_clause||'AND gcr.delete_mark = :delete_mark ';
3390: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
3391: END IF;
3392:

Line 3390: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';

3386: IF p_delete_mark IS NOT NULL
3387: THEN
3388: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
3389: where_clause := where_clause||'AND gcr.delete_mark = :delete_mark ';
3390: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
3391: END IF;
3392:
3393: -- That's more or less the job done. We just need to tell the system where to store the data
3394:

Line 3395: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_composite_results_table ';

3391: END IF;
3392:
3393: -- That's more or less the job done. We just need to tell the system where to store the data
3394:
3395: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_composite_results_table ';
3396:
3397: execution_string := 'BEGIN EXECUTE IMMEDIATE '
3398: ||''''
3399: ||sql_statement||column_list||table_list||where_clause

Line 3441: x_composite_results_table := gmd_outbound_apis_pub.g_composite_results_table;

3437: END LOOP;
3438:
3439:
3440: gme_debug.put_line('Returning table to caller');
3441: x_composite_results_table := gmd_outbound_apis_pub.g_composite_results_table;
3442: x_return_status := FND_API.G_RET_STS_SUCCESS;
3443:
3444: END IF;
3445:

Line 3578: G_PKG_NAME CONSTANT VARCHAR2(30):='GMD_OUTBOUND_APIS_PUB';

3574: l_api_name VARCHAR2(100) := 'fetch_samples';
3575:
3576: l_ss_table_included VARCHAR2(10);
3577:
3578: G_PKG_NAME CONSTANT VARCHAR2(30):='GMD_OUTBOUND_APIS_PUB';
3579:
3580: BEGIN
3581: gme_debug.put_line('Starting FETCH_SAMPLES');
3582: -- dbms_output.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_SAMPLES API');

Line 3582: -- dbms_output.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_SAMPLES API');

3578: G_PKG_NAME CONSTANT VARCHAR2(30):='GMD_OUTBOUND_APIS_PUB';
3579:
3580: BEGIN
3581: gme_debug.put_line('Starting FETCH_SAMPLES');
3582: -- dbms_output.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_SAMPLES API');
3583: -- (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
3584: IF NOT FND_API.Compatible_API_CALL
3585: (gmd_outbound_apis_pub.api_version, p_api_version , l_api_name , G_PKG_NAME)
3586: THEN

Line 3583: -- (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

3579:
3580: BEGIN
3581: gme_debug.put_line('Starting FETCH_SAMPLES');
3582: -- dbms_output.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_SAMPLES API');
3583: -- (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
3584: IF NOT FND_API.Compatible_API_CALL
3585: (gmd_outbound_apis_pub.api_version, p_api_version , l_api_name , G_PKG_NAME)
3586: THEN
3587:

Line 3585: (gmd_outbound_apis_pub.api_version, p_api_version , l_api_name , G_PKG_NAME)

3581: gme_debug.put_line('Starting FETCH_SAMPLES');
3582: -- dbms_output.put_line('Enter GMD_OUTBOUND_APIS_PUB.FETCH_SAMPLES API');
3583: -- (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
3584: IF NOT FND_API.Compatible_API_CALL
3585: (gmd_outbound_apis_pub.api_version, p_api_version , l_api_name , G_PKG_NAME)
3586: THEN
3587:
3588: -- dbms_output.put_line('api version error');
3589: Raise FND_API.G_EXC_UNEXPECTED_ERROR;

Line 3670: gmd_outbound_apis_pub.g_orgn_id := p_organization_id;

3666: -- ===================================================================================
3667:
3668: IF p_organization_id IS NOT NULL
3669: THEN
3670: gmd_outbound_apis_pub.g_orgn_id := p_organization_id;
3671: where_clause := where_clause||'AND gs.organization_id = :organization_id ';
3672: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_id ';
3673: END IF;
3674: -- dbms_output.put_line('after organization id test for null');

Line 3672: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_id ';

3668: IF p_organization_id IS NOT NULL
3669: THEN
3670: gmd_outbound_apis_pub.g_orgn_id := p_organization_id;
3671: where_clause := where_clause||'AND gs.organization_id = :organization_id ';
3672: using_clause := using_clause||', gmd_outbound_apis_pub.g_orgn_id ';
3673: END IF;
3674: -- dbms_output.put_line('after organization id test for null');
3675:
3676: IF p_from_sample_no IS NOT NULL

Line 3678: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;

3674: -- dbms_output.put_line('after organization id test for null');
3675:
3676: IF p_from_sample_no IS NOT NULL
3677: THEN
3678: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;
3679: where_clause := where_clause||'AND gs.sample_no >= :from_sample_no ';
3680: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';
3681: END IF;
3682:

Line 3680: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';

3676: IF p_from_sample_no IS NOT NULL
3677: THEN
3678: gmd_outbound_apis_pub.g_from_sample_no := p_from_sample_no;
3679: where_clause := where_clause||'AND gs.sample_no >= :from_sample_no ';
3680: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_sample_no ';
3681: END IF;
3682:
3683: IF p_to_sample_no IS NOT NULL
3684: THEN

Line 3685: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;

3681: END IF;
3682:
3683: IF p_to_sample_no IS NOT NULL
3684: THEN
3685: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;
3686: where_clause := where_clause||'AND gs.sample_no <= :to_sample_no ';
3687: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';
3688: END IF;
3689:

Line 3687: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';

3683: IF p_to_sample_no IS NOT NULL
3684: THEN
3685: gmd_outbound_apis_pub.g_to_sample_no := p_to_sample_no;
3686: where_clause := where_clause||'AND gs.sample_no <= :to_sample_no ';
3687: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_sample_no ';
3688: END IF;
3689:
3690: IF p_sample_id IS NOT NULL
3691: THEN

Line 3692: gmd_outbound_apis_pub.g_sample_id := p_sample_id;

3688: END IF;
3689:
3690: IF p_sample_id IS NOT NULL
3691: THEN
3692: gmd_outbound_apis_pub.g_sample_id := p_sample_id;
3693: where_clause := where_clause||'AND gs.sample_id = :sample_id ';
3694: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';
3695: END IF;
3696:

Line 3694: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';

3690: IF p_sample_id IS NOT NULL
3691: THEN
3692: gmd_outbound_apis_pub.g_sample_id := p_sample_id;
3693: where_clause := where_clause||'AND gs.sample_id = :sample_id ';
3694: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_id ';
3695: END IF;
3696:
3697: IF p_sampling_event_id IS NOT NULL
3698: THEN

Line 3699: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;

3695: END IF;
3696:
3697: IF p_sampling_event_id IS NOT NULL
3698: THEN
3699: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;
3700: where_clause := where_clause||'AND gs.sampling_event_id = :sampling_event_id ';
3701: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';
3702: END IF;
3703:

Line 3701: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';

3697: IF p_sampling_event_id IS NOT NULL
3698: THEN
3699: gmd_outbound_apis_pub.g_sampling_event_id := p_sampling_event_id;
3700: where_clause := where_clause||'AND gs.sampling_event_id = :sampling_event_id ';
3701: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampling_event_id ';
3702: END IF;
3703:
3704: -- 5335829 rework
3705:

Line 3714: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';

3710: where_clause := where_clause
3711: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
3712: ||' WHERE concatenated_segments BETWEEN :from_item_number AND :to_item_number'
3713: ||' AND organization_id = gs.organization_id)'; -- 5335829 rework - owner_organization_id is not a valid column name
3714: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';
3715: ELSIF p_from_item_number IS NOT NULL
3716: THEN
3717: g_from_item_number := p_from_item_number;
3718: where_clause := where_clause

Line 3722: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_number';

3718: where_clause := where_clause
3719: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
3720: ||' WHERE concatenated_segments >= :from_item_number'
3721: ||' AND organization_id = gs.organization_id)'; -- 5335829 rework - owner_organization_id is not a valid column name
3722: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_item_number';
3723: ELSIF p_to_item_number IS NOT NULL
3724: THEN
3725: g_to_item_number := p_to_item_number;
3726: where_clause := where_clause

Line 3730: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_item_number';

3726: where_clause := where_clause
3727: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
3728: ||' WHERE concatenated_segments <= :to_item_number'
3729: ||' AND organization_id = gs.organization_id)'; -- 5335829 rework - owner_organization_id is not a valid column name
3730: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_item_number';
3731: END IF; -- IF p_from_item_number IS NOT NULL and p_to_item_number IS NOT NULL
3732: -- 5335829 end of rework
3733: -- Bug 4165704 invconv: this code should not be needed anymore
3734: --table_list := table_list ||', ic_item_mst iim ';

Line 3745: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;

3741: -- dbms_output.put_line('after item_number');
3742:
3743: IF p_inventory_item_id IS NOT NULL
3744: THEN
3745: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;
3746: where_clause := where_clause||'AND gs.inventory_item_id = :inventory_item_id ';
3747: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';
3748: END IF;
3749:

Line 3747: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';

3743: IF p_inventory_item_id IS NOT NULL
3744: THEN
3745: gmd_outbound_apis_pub.g_inventory_item_id := p_inventory_item_id;
3746: where_clause := where_clause||'AND gs.inventory_item_id = :inventory_item_id ';
3747: using_clause := using_clause||', gmd_outbound_apis_pub.g_inventory_item_id ';
3748: END IF;
3749:
3750: IF p_from_lot_number IS NOT NULL
3751: THEN

Line 3752: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;

3748: END IF;
3749:
3750: IF p_from_lot_number IS NOT NULL
3751: THEN
3752: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;
3753: where_clause := where_clause||'AND gs.lot_number >= :from_lot_number ';
3754: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';
3755: END IF;
3756:

Line 3754: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';

3750: IF p_from_lot_number IS NOT NULL
3751: THEN
3752: gmd_outbound_apis_pub.g_from_lot_number := p_from_lot_number;
3753: where_clause := where_clause||'AND gs.lot_number >= :from_lot_number ';
3754: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_lot_number ';
3755: END IF;
3756:
3757: IF p_to_lot_number IS NOT NULL
3758: THEN

Line 3759: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;

3755: END IF;
3756:
3757: IF p_to_lot_number IS NOT NULL
3758: THEN
3759: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;
3760: where_clause := where_clause||'AND gs.lot_number <= :to_lot_number ';
3761: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';
3762: END IF;
3763:

Line 3761: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';

3757: IF p_to_lot_number IS NOT NULL
3758: THEN
3759: gmd_outbound_apis_pub.g_to_lot_number := p_to_lot_number;
3760: where_clause := where_clause||'AND gs.lot_number <= :to_lot_number ';
3761: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_lot_number ';
3762: END IF;
3763:
3764: IF p_parent_lot_number IS NOT NULL
3765: THEN

Line 3766: gmd_outbound_apis_pub.g_parent_lot_number := p_parent_lot_number;

3762: END IF;
3763:
3764: IF p_parent_lot_number IS NOT NULL
3765: THEN
3766: gmd_outbound_apis_pub.g_parent_lot_number := p_parent_lot_number;
3767: where_clause := where_clause||'AND gs.parent_lot_number = :parent_lot_number ';
3768: using_clause := using_clause||', gmd_outbound_apis_pub.g_parent_lot_number ';
3769: END IF;
3770:

Line 3768: using_clause := using_clause||', gmd_outbound_apis_pub.g_parent_lot_number ';

3764: IF p_parent_lot_number IS NOT NULL
3765: THEN
3766: gmd_outbound_apis_pub.g_parent_lot_number := p_parent_lot_number;
3767: where_clause := where_clause||'AND gs.parent_lot_number = :parent_lot_number ';
3768: using_clause := using_clause||', gmd_outbound_apis_pub.g_parent_lot_number ';
3769: END IF;
3770:
3771: /* taken out for Bug 4165704
3772: IF p_lot_id IS NOT NULL

Line 3774: gmd_outbound_apis_pub.g_lot_id := p_lot_id;

3770:
3771: /* taken out for Bug 4165704
3772: IF p_lot_id IS NOT NULL
3773: THEN
3774: gmd_outbound_apis_pub.g_lot_id := p_lot_id;
3775: where_clause := where_clause||'AND gs.lot_id = :lot_id ';
3776: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_id ';
3777: END IF;
3778: */

Line 3776: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_id ';

3772: IF p_lot_id IS NOT NULL
3773: THEN
3774: gmd_outbound_apis_pub.g_lot_id := p_lot_id;
3775: where_clause := where_clause||'AND gs.lot_id = :lot_id ';
3776: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_id ';
3777: END IF;
3778: */
3779:
3780: IF p_priority IS NOT NULL

Line 3782: gmd_outbound_apis_pub.g_priority := p_priority;

3778: */
3779:
3780: IF p_priority IS NOT NULL
3781: THEN
3782: gmd_outbound_apis_pub.g_priority := p_priority;
3783: where_clause := where_clause||'AND gs.priority = :priority ';
3784: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority ';
3785: END IF;
3786: -- dbms_output.put_line('after priority');

Line 3784: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority ';

3780: IF p_priority IS NOT NULL
3781: THEN
3782: gmd_outbound_apis_pub.g_priority := p_priority;
3783: where_clause := where_clause||'AND gs.priority = :priority ';
3784: using_clause := using_clause||', gmd_outbound_apis_pub.g_priority ';
3785: END IF;
3786: -- dbms_output.put_line('after priority');
3787:
3788: IF (p_spec_name IS NOT NULL OR p_spec_vers IS NOT NULL or p_spec_id is NOT NULL or p_grade_code is NOT NULL)

Line 3795: gmd_outbound_apis_pub.g_spec_name := p_spec_name;

3791: where_clause := where_clause ||'AND gesd.spec_id = gspec.spec_id ';
3792:
3793: IF p_spec_name IS NOT NULL
3794: THEN
3795: gmd_outbound_apis_pub.g_spec_name := p_spec_name;
3796: where_clause := where_clause||'AND gspec.spec_name = :spec_name ';
3797: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_name ';
3798: END IF;
3799:

Line 3797: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_name ';

3793: IF p_spec_name IS NOT NULL
3794: THEN
3795: gmd_outbound_apis_pub.g_spec_name := p_spec_name;
3796: where_clause := where_clause||'AND gspec.spec_name = :spec_name ';
3797: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_name ';
3798: END IF;
3799:
3800: IF p_spec_vers IS NOT NULL
3801: THEN

Line 3802: gmd_outbound_apis_pub.g_spec_vers := p_spec_vers;

3798: END IF;
3799:
3800: IF p_spec_vers IS NOT NULL
3801: THEN
3802: gmd_outbound_apis_pub.g_spec_vers := p_spec_vers;
3803: where_clause := where_clause||'AND gspec.spec_vers = :spec_vers ';
3804: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_vers ';
3805: END IF;
3806:

Line 3804: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_vers ';

3800: IF p_spec_vers IS NOT NULL
3801: THEN
3802: gmd_outbound_apis_pub.g_spec_vers := p_spec_vers;
3803: where_clause := where_clause||'AND gspec.spec_vers = :spec_vers ';
3804: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_vers ';
3805: END IF;
3806:
3807: IF p_spec_id IS NOT NULL
3808: THEN

Line 3809: gmd_outbound_apis_pub.g_spec_id := p_spec_id;

3805: END IF;
3806:
3807: IF p_spec_id IS NOT NULL
3808: THEN
3809: gmd_outbound_apis_pub.g_spec_id := p_spec_id;
3810: where_clause := where_clause||'AND gspec.spec_id = :spec_id ';
3811: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_id ';
3812: END IF;
3813:

Line 3811: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_id ';

3807: IF p_spec_id IS NOT NULL
3808: THEN
3809: gmd_outbound_apis_pub.g_spec_id := p_spec_id;
3810: where_clause := where_clause||'AND gspec.spec_id = :spec_id ';
3811: using_clause := using_clause||', gmd_outbound_apis_pub.g_spec_id ';
3812: END IF;
3813:
3814: IF p_grade_code IS NOT NULL
3815: THEN

Line 3816: gmd_outbound_apis_pub.g_grade := p_grade_code;

3812: END IF;
3813:
3814: IF p_grade_code IS NOT NULL
3815: THEN
3816: gmd_outbound_apis_pub.g_grade := p_grade_code;
3817: where_clause := where_clause||'AND gspec.grade = :grade ';
3818: using_clause := using_clause||', gmd_outbound_apis_pub.g_grade ';
3819: END IF;
3820: END IF;

Line 3818: using_clause := using_clause||', gmd_outbound_apis_pub.g_grade ';

3814: IF p_grade_code IS NOT NULL
3815: THEN
3816: gmd_outbound_apis_pub.g_grade := p_grade_code;
3817: where_clause := where_clause||'AND gspec.grade = :grade ';
3818: using_clause := using_clause||', gmd_outbound_apis_pub.g_grade ';
3819: END IF;
3820: END IF;
3821:
3822: IF p_source IS NOT NULL

Line 3824: gmd_outbound_apis_pub.g_source := p_source;

3820: END IF;
3821:
3822: IF p_source IS NOT NULL
3823: THEN
3824: gmd_outbound_apis_pub.g_source := p_source;
3825: where_clause := where_clause||'AND gs.source = :source ';
3826: using_clause := using_clause||', gmd_outbound_apis_pub.g_source ';
3827: END IF;
3828:

Line 3826: using_clause := using_clause||', gmd_outbound_apis_pub.g_source ';

3822: IF p_source IS NOT NULL
3823: THEN
3824: gmd_outbound_apis_pub.g_source := p_source;
3825: where_clause := where_clause||'AND gs.source = :source ';
3826: using_clause := using_clause||', gmd_outbound_apis_pub.g_source ';
3827: END IF;
3828:
3829: IF p_from_date_drawn IS NOT NULL
3830: THEN

Line 3831: gmd_outbound_apis_pub.g_from_date_drawn := p_from_date_drawn;

3827: END IF;
3828:
3829: IF p_from_date_drawn IS NOT NULL
3830: THEN
3831: gmd_outbound_apis_pub.g_from_date_drawn := p_from_date_drawn;
3832: where_clause := where_clause||'AND gs.date_drawn >= :from_date_drawn ';
3833: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_drawn ';
3834: END IF;
3835:

Line 3833: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_drawn ';

3829: IF p_from_date_drawn IS NOT NULL
3830: THEN
3831: gmd_outbound_apis_pub.g_from_date_drawn := p_from_date_drawn;
3832: where_clause := where_clause||'AND gs.date_drawn >= :from_date_drawn ';
3833: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_drawn ';
3834: END IF;
3835:
3836: IF p_to_date_drawn IS NOT NULL
3837: THEN

Line 3838: gmd_outbound_apis_pub.g_to_date_drawn := p_to_date_drawn;

3834: END IF;
3835:
3836: IF p_to_date_drawn IS NOT NULL
3837: THEN
3838: gmd_outbound_apis_pub.g_to_date_drawn := p_to_date_drawn;
3839: where_clause := where_clause||'AND gs.date_drawn <= :to_date_drawn ';
3840: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_drawn ';
3841: END IF;
3842:

Line 3840: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_drawn ';

3836: IF p_to_date_drawn IS NOT NULL
3837: THEN
3838: gmd_outbound_apis_pub.g_to_date_drawn := p_to_date_drawn;
3839: where_clause := where_clause||'AND gs.date_drawn <= :to_date_drawn ';
3840: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_drawn ';
3841: END IF;
3842:
3843: IF p_from_expiration_date IS NOT NULL
3844: THEN

Line 3845: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;

3841: END IF;
3842:
3843: IF p_from_expiration_date IS NOT NULL
3844: THEN
3845: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;
3846: where_clause := where_clause||'AND gs.expiration_date >= :from_expiration_date ';
3847: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';
3848: END IF;
3849:

Line 3847: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';

3843: IF p_from_expiration_date IS NOT NULL
3844: THEN
3845: gmd_outbound_apis_pub.g_from_expiration_date := p_from_expiration_date;
3846: where_clause := where_clause||'AND gs.expiration_date >= :from_expiration_date ';
3847: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_expiration_date ';
3848: END IF;
3849:
3850: IF p_to_expiration_date IS NOT NULL
3851: THEN

Line 3852: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;

3848: END IF;
3849:
3850: IF p_to_expiration_date IS NOT NULL
3851: THEN
3852: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;
3853: where_clause := where_clause||'AND gs.expiration_date <= :to_expiration_date ';
3854: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';
3855: END IF;
3856:

Line 3854: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';

3850: IF p_to_expiration_date IS NOT NULL
3851: THEN
3852: gmd_outbound_apis_pub.g_to_expiration_date := p_to_expiration_date;
3853: where_clause := where_clause||'AND gs.expiration_date <= :to_expiration_date ';
3854: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_expiration_date ';
3855: END IF;
3856:
3857: IF p_source_subinventory IS NOT NULL
3858: THEN

Line 3859: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;

3855: END IF;
3856:
3857: IF p_source_subinventory IS NOT NULL
3858: THEN
3859: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;
3860: where_clause := where_clause||'AND gs.source_subinventory = :source_subinventory ';
3861: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';
3862: END IF;
3863:

Line 3861: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';

3857: IF p_source_subinventory IS NOT NULL
3858: THEN
3859: gmd_outbound_apis_pub.g_source_subinventory := p_source_subinventory;
3860: where_clause := where_clause||'AND gs.source_subinventory = :source_subinventory ';
3861: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_subinventory ';
3862: END IF;
3863:
3864: IF p_source_locator_id IS NOT NULL
3865: THEN

Line 3866: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;

3862: END IF;
3863:
3864: IF p_source_locator_id IS NOT NULL
3865: THEN
3866: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;
3867: where_clause := where_clause||'AND gs.source_locator_id = :source_locator_id ';
3868: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';
3869: END IF;
3870:

Line 3868: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';

3864: IF p_source_locator_id IS NOT NULL
3865: THEN
3866: gmd_outbound_apis_pub.g_source_locator_id := p_source_locator_id;
3867: where_clause := where_clause||'AND gs.source_locator_id = :source_locator_id ';
3868: using_clause := using_clause||', gmd_outbound_apis_pub.g_source_locator_id ';
3869: END IF;
3870:
3871: IF p_sample_disposition IS NOT NULL
3872: THEN

Line 3873: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;

3869: END IF;
3870:
3871: IF p_sample_disposition IS NOT NULL
3872: THEN
3873: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;
3874: where_clause := where_clause||'AND gssd.disposition = :sample_disposition ';
3875: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
3876: END IF;
3877: -- dbms_output.put_line('after sample_disp');

Line 3875: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';

3871: IF p_sample_disposition IS NOT NULL
3872: THEN
3873: gmd_outbound_apis_pub.g_sample_disposition := p_sample_disposition;
3874: where_clause := where_clause||'AND gssd.disposition = :sample_disposition ';
3875: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_disposition ';
3876: END IF;
3877: -- dbms_output.put_line('after sample_disp');
3878:
3879: IF p_storage_subinventory IS NOT NULL

Line 3881: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;

3877: -- dbms_output.put_line('after sample_disp');
3878:
3879: IF p_storage_subinventory IS NOT NULL
3880: THEN
3881: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;
3882: where_clause := where_clause||'AND gs.storage_subinventory = :storage_subinventory ';
3883: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';
3884: END IF;
3885:

Line 3883: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';

3879: IF p_storage_subinventory IS NOT NULL
3880: THEN
3881: gmd_outbound_apis_pub.g_storage_subinventory := p_storage_subinventory;
3882: where_clause := where_clause||'AND gs.storage_subinventory = :storage_subinventory ';
3883: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_subinventory ';
3884: END IF;
3885:
3886: IF p_storage_locator_id IS NOT NULL
3887: THEN

Line 3888: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;

3884: END IF;
3885:
3886: IF p_storage_locator_id IS NOT NULL
3887: THEN
3888: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;
3889: where_clause := where_clause||'AND gs.storage_locator_id = :storage_locator_id ';
3890: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';
3891: END IF;
3892:

Line 3890: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';

3886: IF p_storage_locator_id IS NOT NULL
3887: THEN
3888: gmd_outbound_apis_pub.g_storage_locator_id := p_storage_locator_id;
3889: where_clause := where_clause||'AND gs.storage_locator_id = :storage_locator_id ';
3890: using_clause := using_clause||', gmd_outbound_apis_pub.g_storage_locator_id ';
3891: END IF;
3892:
3893: IF p_lab_organization_id IS NOT NULL
3894: THEN

Line 3895: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;

3891: END IF;
3892:
3893: IF p_lab_organization_id IS NOT NULL
3894: THEN
3895: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;
3896: where_clause := where_clause||'AND gs.lab_organization_id = :lab_organization_id ';
3897: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';
3898: END IF;
3899:

Line 3897: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';

3893: IF p_lab_organization_id IS NOT NULL
3894: THEN
3895: gmd_outbound_apis_pub.g_lab_organization_id := p_lab_organization_id;
3896: where_clause := where_clause||'AND gs.lab_organization_id = :lab_organization_id ';
3897: using_clause := using_clause||', gmd_outbound_apis_pub.g_lab_organization_id ';
3898: END IF;
3899:
3900: IF p_external_id IS NOT NULL
3901: THEN

Line 3902: gmd_outbound_apis_pub.g_external_id := p_external_id;

3898: END IF;
3899:
3900: IF p_external_id IS NOT NULL
3901: THEN
3902: gmd_outbound_apis_pub.g_external_id := p_external_id;
3903: where_clause := where_clause||'AND gs.external_id = :external_id ';
3904: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';
3905: END IF;
3906:

Line 3904: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';

3900: IF p_external_id IS NOT NULL
3901: THEN
3902: gmd_outbound_apis_pub.g_external_id := p_external_id;
3903: where_clause := where_clause||'AND gs.external_id = :external_id ';
3904: using_clause := using_clause||', gmd_outbound_apis_pub.g_external_id ';
3905: END IF;
3906:
3907: IF p_sampler IS NOT NULL
3908: THEN

Line 3912: gmd_outbound_apis_pub.g_sampler := p_sampler;

3908: THEN
3909: table_list := table_list ||', fnd_user fu3 ';
3910: where_clause := where_clause ||'AND gs.sampler_id = fu3.user_id ';
3911:
3912: gmd_outbound_apis_pub.g_sampler := p_sampler;
3913: where_clause := where_clause||'AND fu3.user_name = :sampler ';
3914: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';
3915: END IF;
3916:

Line 3914: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';

3910: where_clause := where_clause ||'AND gs.sampler_id = fu3.user_id ';
3911:
3912: gmd_outbound_apis_pub.g_sampler := p_sampler;
3913: where_clause := where_clause||'AND fu3.user_name = :sampler ';
3914: using_clause := using_clause||', gmd_outbound_apis_pub.g_sampler ';
3915: END IF;
3916:
3917: IF p_lot_retest_ind IS NOT NULL
3918: THEN

Line 3919: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;

3915: END IF;
3916:
3917: IF p_lot_retest_ind IS NOT NULL
3918: THEN
3919: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;
3920: where_clause := where_clause||'AND gs.lot_retest_ind = :lot_retest_ind ';
3921: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';
3922: END IF;
3923:

Line 3921: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';

3917: IF p_lot_retest_ind IS NOT NULL
3918: THEN
3919: gmd_outbound_apis_pub.g_lot_retest_ind := p_lot_retest_ind;
3920: where_clause := where_clause||'AND gs.lot_retest_ind = :lot_retest_ind ';
3921: using_clause := using_clause||', gmd_outbound_apis_pub.g_lot_retest_ind ';
3922: END IF;
3923:
3924: IF p_subinventory IS NOT NULL
3925: THEN

Line 3926: gmd_outbound_apis_pub.g_subinventory := p_subinventory;

3922: END IF;
3923:
3924: IF p_subinventory IS NOT NULL
3925: THEN
3926: gmd_outbound_apis_pub.g_subinventory := p_subinventory;
3927: where_clause := where_clause||'AND gs.subinventory = :subinventory ';
3928: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';
3929: END IF;
3930:

Line 3928: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';

3924: IF p_subinventory IS NOT NULL
3925: THEN
3926: gmd_outbound_apis_pub.g_subinventory := p_subinventory;
3927: where_clause := where_clause||'AND gs.subinventory = :subinventory ';
3928: using_clause := using_clause||', gmd_outbound_apis_pub.g_subinventory ';
3929: END IF;
3930:
3931: IF p_locator_id IS NOT NULL
3932: THEN

Line 3933: gmd_outbound_apis_pub.g_locator_id := p_locator_id;

3929: END IF;
3930:
3931: IF p_locator_id IS NOT NULL
3932: THEN
3933: gmd_outbound_apis_pub.g_locator_id := p_locator_id;
3934: where_clause := where_clause||'AND gs.locator_id = :locator_id ';
3935: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';
3936: END IF;
3937:

Line 3935: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';

3931: IF p_locator_id IS NOT NULL
3932: THEN
3933: gmd_outbound_apis_pub.g_locator_id := p_locator_id;
3934: where_clause := where_clause||'AND gs.locator_id = :locator_id ';
3935: using_clause := using_clause||', gmd_outbound_apis_pub.g_locator_id ';
3936: END IF;
3937:
3938: /* Bug 4165704: taken out for inventory convergence
3939: IF p_location_id IS NOT NULL

Line 3944: gmd_outbound_apis_pub.g_location_id := p_location_id;

3940: THEN
3941: table_list := table_list ||', ic_loct_mst ilm ';
3942: where_clause := where_clause ||'AND gs.location = ilm.location ';
3943:
3944: gmd_outbound_apis_pub.g_location_id := p_location_id;
3945: where_clause := where_clause||'AND ilm.inventory_location_id = :location_id ';
3946: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';
3947: END IF;
3948: */

Line 3946: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';

3942: where_clause := where_clause ||'AND gs.location = ilm.location ';
3943:
3944: gmd_outbound_apis_pub.g_location_id := p_location_id;
3945: where_clause := where_clause||'AND ilm.inventory_location_id = :location_id ';
3946: using_clause := using_clause||', gmd_outbound_apis_pub.g_location_id ';
3947: END IF;
3948: */
3949:
3950: IF (p_wip_plant_code IS NOT NULL or p_wip_batch_no IS NOT NULL)

Line 3956: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;

3952: table_list := table_list ||', gme_batch_header gbh ';
3953: where_clause := where_clause ||'AND gs.batch_id = gbh.batch_id ';
3954: IF p_wip_plant_code IS NOT NULL
3955: THEN
3956: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;
3957: where_clause := where_clause||'AND gbh.plant_code = :wip_plant_code ';
3958: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';
3959: END IF;
3960:

Line 3958: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';

3954: IF p_wip_plant_code IS NOT NULL
3955: THEN
3956: gmd_outbound_apis_pub.g_wip_plant_code := p_wip_plant_code;
3957: where_clause := where_clause||'AND gbh.plant_code = :wip_plant_code ';
3958: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_plant_code ';
3959: END IF;
3960:
3961: IF p_wip_batch_no IS NOT NULL
3962: THEN

Line 3963: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;

3959: END IF;
3960:
3961: IF p_wip_batch_no IS NOT NULL
3962: THEN
3963: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;
3964: where_clause := where_clause||'AND gbh.batch_no = :wip_batch_no ';
3965: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';
3966: END IF;
3967: END IF;

Line 3965: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';

3961: IF p_wip_batch_no IS NOT NULL
3962: THEN
3963: gmd_outbound_apis_pub.g_wip_batch_no := p_wip_batch_no;
3964: where_clause := where_clause||'AND gbh.batch_no = :wip_batch_no ';
3965: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_no ';
3966: END IF;
3967: END IF;
3968:
3969: IF p_wip_batch_id IS NOT NULL

Line 3971: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;

3967: END IF;
3968:
3969: IF p_wip_batch_id IS NOT NULL
3970: THEN
3971: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;
3972: where_clause := where_clause||'AND gs.batch_id = :wip_batch_id ';
3973: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';
3974: END IF;
3975:

Line 3973: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';

3969: IF p_wip_batch_id IS NOT NULL
3970: THEN
3971: gmd_outbound_apis_pub.g_wip_batch_id := p_wip_batch_id;
3972: where_clause := where_clause||'AND gs.batch_id = :wip_batch_id ';
3973: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batch_id ';
3974: END IF;
3975:
3976: IF (p_wip_recipe_no IS NOT NULL or p_wip_recipe_version IS NOT NULL)
3977: THEN

Line 3983: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;

3979: where_clause := where_clause ||'AND gs.recipe_id = r.recipe_id ';
3980:
3981: IF p_wip_recipe_no IS NOT NULL
3982: THEN
3983: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;
3984: where_clause := where_clause||'AND r.recipe_no = :wip_recipe_no ';
3985: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';
3986: END IF;
3987:

Line 3985: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';

3981: IF p_wip_recipe_no IS NOT NULL
3982: THEN
3983: gmd_outbound_apis_pub.g_wip_recipe_no := p_wip_recipe_no;
3984: where_clause := where_clause||'AND r.recipe_no = :wip_recipe_no ';
3985: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no ';
3986: END IF;
3987:
3988: IF p_wip_recipe_version IS NOT NULL
3989: THEN

Line 3990: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;

3986: END IF;
3987:
3988: IF p_wip_recipe_version IS NOT NULL
3989: THEN
3990: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;
3991: where_clause := where_clause||'AND r.recipe_version = :wip_recipe_version ';
3992: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';
3993: END IF;
3994: END IF;

Line 3992: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';

3988: IF p_wip_recipe_version IS NOT NULL
3989: THEN
3990: gmd_outbound_apis_pub.g_wip_recipe_version := p_wip_recipe_version;
3991: where_clause := where_clause||'AND r.recipe_version = :wip_recipe_version ';
3992: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_version ';
3993: END IF;
3994: END IF;
3995:
3996: IF p_wip_recipe_id IS NOT NULL

Line 3998: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;

3994: END IF;
3995:
3996: IF p_wip_recipe_id IS NOT NULL
3997: THEN
3998: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;
3999: where_clause := where_clause||'AND r.recipe_id = :wip_recipe_id ';
4000: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';
4001: END IF;
4002:

Line 4000: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';

3996: IF p_wip_recipe_id IS NOT NULL
3997: THEN
3998: gmd_outbound_apis_pub.g_wip_recipe_id := p_wip_recipe_id;
3999: where_clause := where_clause||'AND r.recipe_id = :wip_recipe_id ';
4000: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_recipe_id ';
4001: END IF;
4002:
4003: -- BUG 3082684 - incorporate formula_vers
4004: IF p_wip_formula_no IS NOT NULL or p_wip_formula_version IS NOT NULL

Line 4011: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;

4007: where_clause := where_clause ||'AND gs.formula_id = ffm.formula_id ';
4008:
4009: IF p_wip_formula_no IS NOT NULL
4010: THEN
4011: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;
4012: where_clause := where_clause||'AND ffm.formula_no = :wip_formula_no ';
4013: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';
4014: END IF;
4015:

Line 4013: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';

4009: IF p_wip_formula_no IS NOT NULL
4010: THEN
4011: gmd_outbound_apis_pub.g_wip_formula_no := p_wip_formula_no;
4012: where_clause := where_clause||'AND ffm.formula_no = :wip_formula_no ';
4013: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_no ';
4014: END IF;
4015:
4016: IF p_wip_formula_version IS NOT NULL
4017: THEN

Line 4018: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;

4014: END IF;
4015:
4016: IF p_wip_formula_version IS NOT NULL
4017: THEN
4018: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;
4019: where_clause := where_clause||'AND ffm.formula_vers = :wip_formula_vers ';
4020: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';
4021: END IF;
4022: END IF;

Line 4020: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';

4016: IF p_wip_formula_version IS NOT NULL
4017: THEN
4018: gmd_outbound_apis_pub.g_wip_formula_vers := p_wip_formula_version;
4019: where_clause := where_clause||'AND ffm.formula_vers = :wip_formula_vers ';
4020: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers ';
4021: END IF;
4022: END IF;
4023:
4024: IF p_wip_formula_id IS NOT NULL

Line 4026: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;

4022: END IF;
4023:
4024: IF p_wip_formula_id IS NOT NULL
4025: THEN
4026: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;
4027: where_clause := where_clause||'AND gs.formula_id = :wip_formula_id ';
4028: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';
4029: END IF;
4030:

Line 4028: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';

4024: IF p_wip_formula_id IS NOT NULL
4025: THEN
4026: gmd_outbound_apis_pub.g_wip_formula_id := p_wip_formula_id;
4027: where_clause := where_clause||'AND gs.formula_id = :wip_formula_id ';
4028: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formula_id ';
4029: END IF;
4030:
4031: IF (p_wip_formulaline IS NOT NULL or p_wip_line_type IS NOT NULL)
4032: THEN

Line 4038: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;

4034: where_clause := where_clause ||'AND gs.formulaline_id = fmd.formulaline_id ';
4035:
4036: IF p_wip_formulaline IS NOT NULL
4037: THEN
4038: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;
4039: where_clause := where_clause||'AND fmd.line_no = :wip_formulaline ';
4040: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';
4041: END IF;
4042:

Line 4040: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';

4036: IF p_wip_formulaline IS NOT NULL
4037: THEN
4038: gmd_outbound_apis_pub.g_wip_formulaline := p_wip_formulaline;
4039: where_clause := where_clause||'AND fmd.line_no = :wip_formulaline ';
4040: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline ';
4041: END IF;
4042:
4043: IF p_wip_line_type IS NOT NULL
4044: THEN

Line 4045: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;

4041: END IF;
4042:
4043: IF p_wip_line_type IS NOT NULL
4044: THEN
4045: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;
4046: where_clause := where_clause||'AND fmd.line_type = :wip_line_type ';
4047: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';
4048: END IF;
4049: END IF;

Line 4047: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';

4043: IF p_wip_line_type IS NOT NULL
4044: THEN
4045: gmd_outbound_apis_pub.g_wip_line_type := p_wip_line_type;
4046: where_clause := where_clause||'AND fmd.line_type = :wip_line_type ';
4047: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_line_type ';
4048: END IF;
4049: END IF;
4050:
4051: IF p_wip_formulaline_id IS NOT NULL

Line 4053: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;

4049: END IF;
4050:
4051: IF p_wip_formulaline_id IS NOT NULL
4052: THEN
4053: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;
4054: where_clause := where_clause||'AND gs.formulaline_id = :wip_formulaline_id ';
4055: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';
4056: END IF;
4057:

Line 4055: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';

4051: IF p_wip_formulaline_id IS NOT NULL
4052: THEN
4053: gmd_outbound_apis_pub.g_wip_formulaline_id := p_wip_formulaline_id;
4054: where_clause := where_clause||'AND gs.formulaline_id = :wip_formulaline_id ';
4055: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id ';
4056: END IF;
4057:
4058: IF (p_wip_routing_no IS NOT NULL or p_wip_routing_vers IS NOT NULL)
4059: THEN

Line 4065: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;

4061: where_clause := where_clause ||'AND gs.routing_id = grout.routing_id ';
4062:
4063: IF p_wip_routing_no IS NOT NULL
4064: THEN
4065: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;
4066: where_clause := where_clause||'AND grout.routing_no = :wip_routing_no ';
4067: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';
4068: END IF;
4069:

Line 4067: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';

4063: IF p_wip_routing_no IS NOT NULL
4064: THEN
4065: gmd_outbound_apis_pub.g_wip_routing_no := p_wip_routing_no;
4066: where_clause := where_clause||'AND grout.routing_no = :wip_routing_no ';
4067: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_no ';
4068: END IF;
4069:
4070: IF p_wip_routing_vers IS NOT NULL
4071: THEN

Line 4072: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;

4068: END IF;
4069:
4070: IF p_wip_routing_vers IS NOT NULL
4071: THEN
4072: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;
4073: where_clause := where_clause||'AND grout.routing_vers = :wip_routing_vers ';
4074: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';
4075: END IF;
4076: END IF;

Line 4074: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';

4070: IF p_wip_routing_vers IS NOT NULL
4071: THEN
4072: gmd_outbound_apis_pub.g_wip_routing_vers := p_wip_routing_vers;
4073: where_clause := where_clause||'AND grout.routing_vers = :wip_routing_vers ';
4074: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_vers ';
4075: END IF;
4076: END IF;
4077:
4078: IF p_wip_routing_id IS NOT NULL

Line 4080: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;

4076: END IF;
4077:
4078: IF p_wip_routing_id IS NOT NULL
4079: THEN
4080: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;
4081: where_clause := where_clause||'AND gs.routing_id = :wip_routing_id ';
4082: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';
4083: END IF;
4084:

Line 4082: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';

4078: IF p_wip_routing_id IS NOT NULL
4079: THEN
4080: gmd_outbound_apis_pub.g_wip_routing_id := p_wip_routing_id;
4081: where_clause := where_clause||'AND gs.routing_id = :wip_routing_id ';
4082: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_routing_id ';
4083: END IF;
4084:
4085:
4086: IF p_wip_batchstep_no IS NOT NULL

Line 4088: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;

4084:
4085:
4086: IF p_wip_batchstep_no IS NOT NULL
4087: THEN
4088: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;
4089: where_clause := where_clause||'AND gs.step_no = :wip_batchstep_no ';
4090: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';
4091: END IF;
4092:

Line 4090: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';

4086: IF p_wip_batchstep_no IS NOT NULL
4087: THEN
4088: gmd_outbound_apis_pub.g_wip_batchstep_no := p_wip_batchstep_no;
4089: where_clause := where_clause||'AND gs.step_no = :wip_batchstep_no ';
4090: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_no ';
4091: END IF;
4092:
4093: IF p_wip_batchstep_id IS NOT NULL
4094: THEN

Line 4095: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;

4091: END IF;
4092:
4093: IF p_wip_batchstep_id IS NOT NULL
4094: THEN
4095: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;
4096: where_clause := where_clause||'AND gs.step_id = :wip_batchstep_id ';
4097: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';
4098: END IF;
4099:

Line 4097: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';

4093: IF p_wip_batchstep_id IS NOT NULL
4094: THEN
4095: gmd_outbound_apis_pub.g_wip_batchstep_id := p_wip_batchstep_id;
4096: where_clause := where_clause||'AND gs.step_id = :wip_batchstep_id ';
4097: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_batchstep_id ';
4098: END IF;
4099:
4100: IF (p_wip_oprn_no IS NOT NULL or p_wip_oprn_vers IS NOT NULL )
4101: THEN

Line 4107: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;

4103: where_clause := where_clause ||'AND gs.oprn_id = go.oprn_id ';
4104:
4105: IF p_wip_oprn_no IS NOT NULL
4106: THEN
4107: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;
4108: where_clause := where_clause||'AND go.oprn_no = :wip_oprn_no ';
4109: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';
4110: END IF;
4111:

Line 4109: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';

4105: IF p_wip_oprn_no IS NOT NULL
4106: THEN
4107: gmd_outbound_apis_pub.g_wip_oprn_no := p_wip_oprn_no;
4108: where_clause := where_clause||'AND go.oprn_no = :wip_oprn_no ';
4109: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no ';
4110: END IF;
4111:
4112: IF p_wip_oprn_vers IS NOT NULL
4113: THEN

Line 4114: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;

4110: END IF;
4111:
4112: IF p_wip_oprn_vers IS NOT NULL
4113: THEN
4114: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;
4115: where_clause := where_clause||'AND go.oprn_vers = :wip_oprn_vers ';
4116: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';
4117: END IF;
4118: END IF;

Line 4116: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';

4112: IF p_wip_oprn_vers IS NOT NULL
4113: THEN
4114: gmd_outbound_apis_pub.g_wip_oprn_vers := p_wip_oprn_vers;
4115: where_clause := where_clause||'AND go.oprn_vers = :wip_oprn_vers ';
4116: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers ';
4117: END IF;
4118: END IF;
4119:
4120: IF p_wip_oprn_id IS NOT NULL

Line 4122: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;

4118: END IF;
4119:
4120: IF p_wip_oprn_id IS NOT NULL
4121: THEN
4122: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;
4123: where_clause := where_clause||'AND gs.oprn_id = :wip_oprn_id ';
4124: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';
4125: END IF;
4126:

Line 4124: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';

4120: IF p_wip_oprn_id IS NOT NULL
4121: THEN
4122: gmd_outbound_apis_pub.g_wip_oprn_id := p_wip_oprn_id;
4123: where_clause := where_clause||'AND gs.oprn_id = :wip_oprn_id ';
4124: using_clause := using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id ';
4125: END IF;
4126:
4127: IF p_cust_name IS NOT NULL
4128: THEN

Line 4132: gmd_outbound_apis_pub.g_cust_name := p_cust_name;

4128: THEN
4129: table_list := table_list ||', hz_cust_accounts_all hca, hz_parties hp ';
4130: where_clause := where_clause ||'AND gs.cust_id = hca.cust_account_id and hca.party_id = hp.party_id ';
4131:
4132: gmd_outbound_apis_pub.g_cust_name := p_cust_name;
4133: where_clause := where_clause||'AND hp.party_name = :cust_name ';
4134: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';
4135: END IF;
4136:

Line 4134: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';

4130: where_clause := where_clause ||'AND gs.cust_id = hca.cust_account_id and hca.party_id = hp.party_id ';
4131:
4132: gmd_outbound_apis_pub.g_cust_name := p_cust_name;
4133: where_clause := where_clause||'AND hp.party_name = :cust_name ';
4134: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_name ';
4135: END IF;
4136:
4137: IF p_cust_id IS NOT NULL
4138: THEN

Line 4139: gmd_outbound_apis_pub.g_cust_id := p_cust_id;

4135: END IF;
4136:
4137: IF p_cust_id IS NOT NULL
4138: THEN
4139: gmd_outbound_apis_pub.g_cust_id := p_cust_id;
4140: where_clause := where_clause||'AND gs.cust_id = :cust_id ';
4141: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';
4142: END IF;
4143:

Line 4141: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';

4137: IF p_cust_id IS NOT NULL
4138: THEN
4139: gmd_outbound_apis_pub.g_cust_id := p_cust_id;
4140: where_clause := where_clause||'AND gs.cust_id = :cust_id ';
4141: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_id ';
4142: END IF;
4143:
4144: IF p_org_id IS NOT NULL
4145: THEN

Line 4146: gmd_outbound_apis_pub.g_org_id := p_org_id;

4142: END IF;
4143:
4144: IF p_org_id IS NOT NULL
4145: THEN
4146: gmd_outbound_apis_pub.g_org_id := p_org_id;
4147: where_clause := where_clause||'AND gs.org_id = :org_id ';
4148: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';
4149: END IF;
4150:

Line 4148: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';

4144: IF p_org_id IS NOT NULL
4145: THEN
4146: gmd_outbound_apis_pub.g_org_id := p_org_id;
4147: where_clause := where_clause||'AND gs.org_id = :org_id ';
4148: using_clause := using_clause||', gmd_outbound_apis_pub.g_org_id ';
4149: END IF;
4150:
4151: IF p_cust_ship_to_site_id IS NOT NULL
4152: THEN

Line 4153: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;

4149: END IF;
4150:
4151: IF p_cust_ship_to_site_id IS NOT NULL
4152: THEN
4153: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;
4154: where_clause := where_clause||'AND gs.ship_to_site_id = :cust_ship_to_site_id ';
4155: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';
4156: END IF;
4157: -- dbms_output.put_line('after shipto site id');

Line 4155: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';

4151: IF p_cust_ship_to_site_id IS NOT NULL
4152: THEN
4153: gmd_outbound_apis_pub.g_cust_ship_to_site_id := p_cust_ship_to_site_id;
4154: where_clause := where_clause||'AND gs.ship_to_site_id = :cust_ship_to_site_id ';
4155: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_ship_to_site_id ';
4156: END IF;
4157: -- dbms_output.put_line('after shipto site id');
4158:
4159: IF p_cust_order is NOT NULL or p_cust_order_type is NOT NULL

Line 4166: gmd_outbound_apis_pub.g_cust_order := p_cust_order;

4162: where_clause := where_clause ||'AND gs.order_id = ooh.header_id ';
4163:
4164: IF p_cust_order IS NOT NULL
4165: THEN
4166: gmd_outbound_apis_pub.g_cust_order := p_cust_order;
4167: where_clause := where_clause||'AND ooh.order_number = :cust_order ';
4168: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';
4169: END IF;
4170:

Line 4168: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';

4164: IF p_cust_order IS NOT NULL
4165: THEN
4166: gmd_outbound_apis_pub.g_cust_order := p_cust_order;
4167: where_clause := where_clause||'AND ooh.order_number = :cust_order ';
4168: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order ';
4169: END IF;
4170:
4171: IF p_cust_order_type IS NOT NULL
4172: THEN

Line 4176: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;

4172: THEN
4173: table_list := table_list ||', oe_transaction_types_all ott ';
4174: where_clause := where_clause ||'AND ooh.order_type_id = ott.transaction_type_id ';
4175:
4176: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;
4177: where_clause := where_clause||'AND ott.transaction_type_code = :cust_order_type ';
4178: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';
4179: END IF;
4180: END IF;

Line 4178: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';

4174: where_clause := where_clause ||'AND ooh.order_type_id = ott.transaction_type_id ';
4175:
4176: gmd_outbound_apis_pub.g_cust_order_type := p_cust_order_type;
4177: where_clause := where_clause||'AND ott.transaction_type_code = :cust_order_type ';
4178: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_type ';
4179: END IF;
4180: END IF;
4181:
4182: IF p_cust_order_id IS NOT NULL

Line 4184: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;

4180: END IF;
4181:
4182: IF p_cust_order_id IS NOT NULL
4183: THEN
4184: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;
4185: where_clause := where_clause||'AND gs.order_id = :cust_order_id ';
4186: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';
4187: END IF;
4188:

Line 4186: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';

4182: IF p_cust_order_id IS NOT NULL
4183: THEN
4184: gmd_outbound_apis_pub.g_cust_order_id := p_cust_order_id;
4185: where_clause := where_clause||'AND gs.order_id = :cust_order_id ';
4186: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_id ';
4187: END IF;
4188:
4189: IF p_cust_order_line IS NOT NULL
4190: THEN

Line 4194: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;

4190: THEN
4191: table_list := table_list ||', oe_order_lines_all ool ';
4192: where_clause := where_clause ||'AND gs.order_line_id = ool.line_id ';
4193:
4194: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;
4195: where_clause := where_clause||'AND ool.line_number = :cust_order_line ';
4196: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';
4197: END IF;
4198:

Line 4196: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';

4192: where_clause := where_clause ||'AND gs.order_line_id = ool.line_id ';
4193:
4194: gmd_outbound_apis_pub.g_cust_order_line := p_cust_order_line;
4195: where_clause := where_clause||'AND ool.line_number = :cust_order_line ';
4196: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line ';
4197: END IF;
4198:
4199: IF p_cust_order_line_id IS NOT NULL
4200: THEN

Line 4201: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;

4197: END IF;
4198:
4199: IF p_cust_order_line_id IS NOT NULL
4200: THEN
4201: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;
4202: where_clause := where_clause||'AND gs.order_line_id = :cust_order_line_id ';
4203: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';
4204: END IF;
4205:

Line 4203: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';

4199: IF p_cust_order_line_id IS NOT NULL
4200: THEN
4201: gmd_outbound_apis_pub.g_cust_order_line_id := p_cust_order_line_id;
4202: where_clause := where_clause||'AND gs.order_line_id = :cust_order_line_id ';
4203: using_clause := using_clause||', gmd_outbound_apis_pub.g_cust_order_line_id ';
4204: END IF;
4205:
4206: IF p_supplier IS NOT NULL
4207: THEN

Line 4211: gmd_outbound_apis_pub.g_supplier := p_supplier;

4207: THEN
4208: table_list := table_list ||', po_vendors v ';
4209: where_clause := where_clause ||'AND gs.supplier_id = v.vendor_id ';
4210:
4211: gmd_outbound_apis_pub.g_supplier := p_supplier;
4212: where_clause := where_clause||'AND v.vendor_name = :supplier '; -- 5335829 rework - changed from segment1
4213: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';
4214: END IF;
4215:

Line 4213: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';

4209: where_clause := where_clause ||'AND gs.supplier_id = v.vendor_id ';
4210:
4211: gmd_outbound_apis_pub.g_supplier := p_supplier;
4212: where_clause := where_clause||'AND v.vendor_name = :supplier '; -- 5335829 rework - changed from segment1
4213: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier ';
4214: END IF;
4215:
4216: IF p_supplier_id IS NOT NULL
4217: THEN

Line 4218: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;

4214: END IF;
4215:
4216: IF p_supplier_id IS NOT NULL
4217: THEN
4218: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;
4219: where_clause := where_clause||'AND gs.supplier_id = :supplier_id ';
4220: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';
4221: END IF;
4222:

Line 4220: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';

4216: IF p_supplier_id IS NOT NULL
4217: THEN
4218: gmd_outbound_apis_pub.g_supplier_id := p_supplier_id;
4219: where_clause := where_clause||'AND gs.supplier_id = :supplier_id ';
4220: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_id ';
4221: END IF;
4222:
4223: IF p_supplier_site_id IS NOT NULL
4224: THEN

Line 4225: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;

4221: END IF;
4222:
4223: IF p_supplier_site_id IS NOT NULL
4224: THEN
4225: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;
4226: where_clause := where_clause||'AND gs.supplier_site_id = :supplier_site_id ';
4227: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';
4228: END IF;
4229:

Line 4227: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';

4223: IF p_supplier_site_id IS NOT NULL
4224: THEN
4225: gmd_outbound_apis_pub.g_supplier_site_id := p_supplier_site_id;
4226: where_clause := where_clause||'AND gs.supplier_site_id = :supplier_site_id ';
4227: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_site_id ';
4228: END IF;
4229:
4230: IF p_supplier_po IS NOT NULL
4231: THEN

Line 4235: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;

4231: THEN
4232: table_list := table_list ||', po_headers_all ph ';
4233: where_clause := where_clause ||'AND gs.po_header_id = ph.po_header_id ';
4234:
4235: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;
4236: where_clause := where_clause||'AND ph.segment1 = :supplier_po ';
4237: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';
4238: END IF;
4239:

Line 4237: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';

4233: where_clause := where_clause ||'AND gs.po_header_id = ph.po_header_id ';
4234:
4235: gmd_outbound_apis_pub.g_supplier_po := p_supplier_po;
4236: where_clause := where_clause||'AND ph.segment1 = :supplier_po ';
4237: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po ';
4238: END IF;
4239:
4240: IF p_supplier_po_id IS NOT NULL
4241: THEN

Line 4242: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;

4238: END IF;
4239:
4240: IF p_supplier_po_id IS NOT NULL
4241: THEN
4242: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;
4243: where_clause := where_clause||'AND gs.po_header_id = :supplier_po_id ';
4244: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';
4245: END IF;
4246:

Line 4244: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';

4240: IF p_supplier_po_id IS NOT NULL
4241: THEN
4242: gmd_outbound_apis_pub.g_supplier_po_id := p_supplier_po_id;
4243: where_clause := where_clause||'AND gs.po_header_id = :supplier_po_id ';
4244: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_id ';
4245: END IF;
4246:
4247: IF p_supplier_po_line IS NOT NULL
4248: THEN

Line 4252: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;

4248: THEN
4249: table_list := table_list ||', po_lines_all pl ';
4250: where_clause := where_clause ||'AND gs.po_line_id = pl.po_line_id ';
4251:
4252: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;
4253: where_clause := where_clause||'AND pl.line_num = :supplier_po_line ';
4254: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';
4255: END IF;
4256:

Line 4254: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';

4250: where_clause := where_clause ||'AND gs.po_line_id = pl.po_line_id ';
4251:
4252: gmd_outbound_apis_pub.g_supplier_po_line := p_supplier_po_line;
4253: where_clause := where_clause||'AND pl.line_num = :supplier_po_line ';
4254: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line ';
4255: END IF;
4256:
4257: IF p_supplier_po_line_id IS NOT NULL
4258: THEN

Line 4259: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;

4255: END IF;
4256:
4257: IF p_supplier_po_line_id IS NOT NULL
4258: THEN
4259: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;
4260: where_clause := where_clause||'AND gs.po_line_id = :supplier_po_line_id ';
4261: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';
4262: END IF;
4263:

Line 4261: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';

4257: IF p_supplier_po_line_id IS NOT NULL
4258: THEN
4259: gmd_outbound_apis_pub.g_supplier_po_line_id := p_supplier_po_line_id;
4260: where_clause := where_clause||'AND gs.po_line_id = :supplier_po_line_id ';
4261: using_clause := using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id ';
4262: END IF;
4263:
4264: IF p_from_last_update_date IS NOT NULL
4265: THEN

Line 4266: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

4262: END IF;
4263:
4264: IF p_from_last_update_date IS NOT NULL
4265: THEN
4266: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
4267: where_clause := where_clause||'AND gs.last_update_date >= :from_last_update_date ';
4268: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
4269: END IF;
4270:

Line 4268: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

4264: IF p_from_last_update_date IS NOT NULL
4265: THEN
4266: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
4267: where_clause := where_clause||'AND gs.last_update_date >= :from_last_update_date ';
4268: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
4269: END IF;
4270:
4271: IF p_to_last_update_date IS NOT NULL
4272: THEN

Line 4273: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

4269: END IF;
4270:
4271: IF p_to_last_update_date IS NOT NULL
4272: THEN
4273: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
4274: where_clause := where_clause||'AND gs.last_update_date <= :to_last_update_date ';
4275: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
4276: END IF;
4277:

Line 4275: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

4271: IF p_to_last_update_date IS NOT NULL
4272: THEN
4273: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
4274: where_clause := where_clause||'AND gs.last_update_date <= :to_last_update_date ';
4275: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
4276: END IF;
4277:
4278: IF p_delete_mark IS NOT NULL
4279: THEN

Line 4280: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;

4276: END IF;
4277:
4278: IF p_delete_mark IS NOT NULL
4279: THEN
4280: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
4281: where_clause := where_clause||'AND gs.delete_mark = :delete_mark ';
4282: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
4283: END IF;
4284:

Line 4282: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';

4278: IF p_delete_mark IS NOT NULL
4279: THEN
4280: gmd_outbound_apis_pub.g_delete_mark := p_delete_mark ;
4281: where_clause := where_clause||'AND gs.delete_mark = :delete_mark ';
4282: using_clause := using_clause||', gmd_outbound_apis_pub.g_delete_mark ';
4283: END IF;
4284:
4285: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4286: IF p_from_date_received IS NOT NULL

Line 4288: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;

4284:
4285: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4286: IF p_from_date_received IS NOT NULL
4287: THEN
4288: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;
4289: where_clause := where_clause||'AND gs.date_received >= :from_date_received ';
4290: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';
4291: END IF;
4292:

Line 4290: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';

4286: IF p_from_date_received IS NOT NULL
4287: THEN
4288: gmd_outbound_apis_pub.g_from_date_received := p_from_date_received;
4289: where_clause := where_clause||'AND gs.date_received >= :from_date_received ';
4290: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_received ';
4291: END IF;
4292:
4293: IF p_to_date_received IS NOT NULL
4294: THEN

Line 4295: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;

4291: END IF;
4292:
4293: IF p_to_date_received IS NOT NULL
4294: THEN
4295: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;
4296: where_clause := where_clause||'AND gs.date_received <= :to_date_received ';
4297: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';
4298: END IF;
4299:

Line 4297: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';

4293: IF p_to_date_received IS NOT NULL
4294: THEN
4295: gmd_outbound_apis_pub.g_to_date_received := p_to_date_received;
4296: where_clause := where_clause||'AND gs.date_received <= :to_date_received ';
4297: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_received ';
4298: END IF;
4299:
4300: IF p_from_date_required IS NOT NULL
4301: THEN

Line 4302: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;

4298: END IF;
4299:
4300: IF p_from_date_required IS NOT NULL
4301: THEN
4302: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;
4303: where_clause := where_clause||'AND gs.date_required >= :from_date_required ';
4304: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';
4305: END IF;
4306:

Line 4304: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';

4300: IF p_from_date_required IS NOT NULL
4301: THEN
4302: gmd_outbound_apis_pub.g_from_date_required := p_from_date_required;
4303: where_clause := where_clause||'AND gs.date_required >= :from_date_required ';
4304: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_date_required ';
4305: END IF;
4306:
4307: IF p_to_date_required IS NOT NULL
4308: THEN

Line 4309: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;

4305: END IF;
4306:
4307: IF p_to_date_required IS NOT NULL
4308: THEN
4309: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;
4310: where_clause := where_clause||'AND gs.date_required <= :to_date_required ';
4311: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';
4312: END IF;
4313:

Line 4311: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';

4307: IF p_to_date_required IS NOT NULL
4308: THEN
4309: gmd_outbound_apis_pub.g_to_date_required := p_to_date_required;
4310: where_clause := where_clause||'AND gs.date_required <= :to_date_required ';
4311: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_date_required ';
4312: END IF;
4313:
4314: IF p_resources IS NOT NULL
4315: THEN

Line 4316: gmd_outbound_apis_pub.g_resources := p_resources;

4312: END IF;
4313:
4314: IF p_resources IS NOT NULL
4315: THEN
4316: gmd_outbound_apis_pub.g_resources := p_resources;
4317: where_clause := where_clause||'AND gs.resources = :resources ';
4318: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';
4319: END IF;
4320:

Line 4318: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';

4314: IF p_resources IS NOT NULL
4315: THEN
4316: gmd_outbound_apis_pub.g_resources := p_resources;
4317: where_clause := where_clause||'AND gs.resources = :resources ';
4318: using_clause := using_clause||', gmd_outbound_apis_pub.g_resources ';
4319: END IF;
4320:
4321: -- dbms_output.put_line('after resources');
4322: IF p_instance_id IS NOT NULL

Line 4324: gmd_outbound_apis_pub.g_instance_id := p_instance_id;

4320:
4321: -- dbms_output.put_line('after resources');
4322: IF p_instance_id IS NOT NULL
4323: THEN
4324: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
4325: where_clause := where_clause||'AND gs.instance_id = :instance_id ';
4326: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';
4327: END IF;
4328:

Line 4326: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';

4322: IF p_instance_id IS NOT NULL
4323: THEN
4324: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
4325: where_clause := where_clause||'AND gs.instance_id = :instance_id ';
4326: using_clause := using_clause||', gmd_outbound_apis_pub.g_instance_id ';
4327: END IF;
4328:
4329: IF p_from_retrieval_date IS NOT NULL
4330: THEN

Line 4331: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;

4327: END IF;
4328:
4329: IF p_from_retrieval_date IS NOT NULL
4330: THEN
4331: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;
4332: where_clause := where_clause||'AND gs.retrieval_date >= :from_retrieval_date ';
4333: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';
4334: END IF;
4335:

Line 4333: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';

4329: IF p_from_retrieval_date IS NOT NULL
4330: THEN
4331: gmd_outbound_apis_pub.g_from_retrieval_date := p_from_retrieval_date;
4332: where_clause := where_clause||'AND gs.retrieval_date >= :from_retrieval_date ';
4333: using_clause := using_clause||', gmd_outbound_apis_pub.g_from_retrieval_date ';
4334: END IF;
4335:
4336: IF p_to_retrieval_date IS NOT NULL
4337: THEN

Line 4338: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;

4334: END IF;
4335:
4336: IF p_to_retrieval_date IS NOT NULL
4337: THEN
4338: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;
4339: where_clause := where_clause||'AND gs.retrieval_date <= :to_retrieval_date ';
4340: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';
4341: END IF;
4342:

Line 4340: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';

4336: IF p_to_retrieval_date IS NOT NULL
4337: THEN
4338: gmd_outbound_apis_pub.g_to_retrieval_date := p_to_retrieval_date;
4339: where_clause := where_clause||'AND gs.retrieval_date <= :to_retrieval_date ';
4340: using_clause := using_clause||', gmd_outbound_apis_pub.g_to_retrieval_date ';
4341: END IF;
4342:
4343: IF p_sample_type IS NOT NULL
4344: THEN

Line 4345: gmd_outbound_apis_pub.g_sample_type := p_sample_type;

4341: END IF;
4342:
4343: IF p_sample_type IS NOT NULL
4344: THEN
4345: gmd_outbound_apis_pub.g_sample_type := p_sample_type;
4346: where_clause := where_clause||'AND gs.sample_type = :sample_type ';
4347: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';
4348: END IF;
4349:

Line 4347: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';

4343: IF p_sample_type IS NOT NULL
4344: THEN
4345: gmd_outbound_apis_pub.g_sample_type := p_sample_type;
4346: where_clause := where_clause||'AND gs.sample_type = :sample_type ';
4347: using_clause := using_clause||', gmd_outbound_apis_pub.g_sample_type ';
4348: END IF;
4349:
4350: l_ss_table_included := 'FALSE';
4351: IF (p_ss_organization_id IS NOT NULL OR p_ss_no IS NOT NULL OR p_ss_id IS NOT NULL) THEN

Line 4358: gmd_outbound_apis_pub.g_ss_id := p_ss_id;

4354: l_ss_table_included := 'TRUE';
4355:
4356: IF p_ss_id IS NOT NULL
4357: THEN
4358: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
4359: where_clause := where_clause||'AND ss.ss_id = :ss_id ';
4360: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';
4361: END IF;
4362:

Line 4360: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';

4356: IF p_ss_id IS NOT NULL
4357: THEN
4358: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
4359: where_clause := where_clause||'AND ss.ss_id = :ss_id ';
4360: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_id ';
4361: END IF;
4362:
4363: IF p_ss_organization_id IS NOT NULL
4364: THEN

Line 4365: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;

4361: END IF;
4362:
4363: IF p_ss_organization_id IS NOT NULL
4364: THEN
4365: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
4366: where_clause := where_clause||'AND ss.organization_id = :ss_organization_id ';
4367: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
4368: END IF;
4369:

Line 4367: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';

4363: IF p_ss_organization_id IS NOT NULL
4364: THEN
4365: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
4366: where_clause := where_clause||'AND ss.organization_id = :ss_organization_id ';
4367: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
4368: END IF;
4369:
4370: IF p_ss_no IS NOT NULL
4371: THEN

Line 4372: gmd_outbound_apis_pub.g_ss_no := p_ss_no;

4368: END IF;
4369:
4370: IF p_ss_no IS NOT NULL
4371: THEN
4372: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
4373: where_clause := where_clause||'AND ss.ss_no = :ss_no ';
4374: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';
4375: END IF;
4376:

Line 4374: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';

4370: IF p_ss_no IS NOT NULL
4371: THEN
4372: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
4373: where_clause := where_clause||'AND ss.ss_no = :ss_no ';
4374: using_clause := using_clause||', gmd_outbound_apis_pub.g_ss_no ';
4375: END IF;
4376:
4377: END IF;
4378:

Line 4386: gmd_outbound_apis_pub.g_variant_no := p_variant_no;

4382: table_list := table_list ||', gmd_ss_variants ssv ';
4383: where_clause := where_clause ||'AND ssv.variant_id = gs.variant_id ';
4384: END IF;
4385:
4386: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
4387: where_clause := where_clause||'AND ssv.variant_no = :variant_no ';
4388: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';
4389: END IF;
4390:

Line 4388: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';

4384: END IF;
4385:
4386: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
4387: where_clause := where_clause||'AND ssv.variant_no = :variant_no ';
4388: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_no ';
4389: END IF;
4390:
4391: IF p_variant_id IS NOT NULL
4392: THEN

Line 4393: gmd_outbound_apis_pub.g_variant_id := p_variant_id;

4389: END IF;
4390:
4391: IF p_variant_id IS NOT NULL
4392: THEN
4393: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
4394: where_clause := where_clause||'AND gs.variant_id = :variant_id ';
4395: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';
4396: END IF;
4397: -- dbms_output.put_line('after variant_id');

Line 4395: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';

4391: IF p_variant_id IS NOT NULL
4392: THEN
4393: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
4394: where_clause := where_clause||'AND gs.variant_id = :variant_id ';
4395: using_clause := using_clause||', gmd_outbound_apis_pub.g_variant_id ';
4396: END IF;
4397: -- dbms_output.put_line('after variant_id');
4398:
4399: IF p_time_point_id IS NOT NULL

Line 4401: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;

4397: -- dbms_output.put_line('after variant_id');
4398:
4399: IF p_time_point_id IS NOT NULL
4400: THEN
4401: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
4402: where_clause := where_clause||'AND gs.time_point_id = :time_point_id ';
4403: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
4404: END IF;
4405:

Line 4403: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';

4399: IF p_time_point_id IS NOT NULL
4400: THEN
4401: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
4402: where_clause := where_clause||'AND gs.time_point_id = :time_point_id ';
4403: using_clause := using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
4404: END IF;
4405:
4406: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs
4407:

Line 4411: gmd_outbound_apis_pub.g_retain_as := p_retain_as;

4407:
4408: -- START Incorporated Mini-Pack L Features to Outboud APIs
4409: IF p_retain_as IS NOT NULL
4410: THEN
4411: gmd_outbound_apis_pub.g_retain_as := p_retain_as;
4412: where_clause := where_clause||'AND gs.retain_as = :retain_as ';
4413: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';
4414: END IF;
4415:

Line 4413: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';

4409: IF p_retain_as IS NOT NULL
4410: THEN
4411: gmd_outbound_apis_pub.g_retain_as := p_retain_as;
4412: where_clause := where_clause||'AND gs.retain_as = :retain_as ';
4413: using_clause := using_clause||', gmd_outbound_apis_pub.g_retain_as ';
4414: END IF;
4415:
4416: -- END Incorporated Mini-Pack L Features to Outboud APIs
4417:

Line 4422: gmd_outbound_apis_pub.g_lpn_id := p_lpn_id;

4418: -- 7027149
4419:
4420: IF p_lpn_id IS NOT NULL
4421: THEN
4422: gmd_outbound_apis_pub.g_lpn_id := p_lpn_id;
4423: where_clause := where_clause||'AND gs.lpn_id = :lpn_id ';
4424: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn_id ';
4425: END IF;
4426:

Line 4424: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn_id ';

4420: IF p_lpn_id IS NOT NULL
4421: THEN
4422: gmd_outbound_apis_pub.g_lpn_id := p_lpn_id;
4423: where_clause := where_clause||'AND gs.lpn_id = :lpn_id ';
4424: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn_id ';
4425: END IF;
4426:
4427: IF p_lpn IS NOT NULL
4428: THEN

Line 4432: gmd_outbound_apis_pub.g_lpn := p_lpn;

4428: THEN
4429: table_list := table_list ||', wms_license_plate_numbers lpn ';
4430: where_clause := where_clause ||'AND gs.lpn_id = lpn.lpn_id ';
4431:
4432: gmd_outbound_apis_pub.g_lpn := p_lpn;
4433: where_clause := where_clause||'AND lpn.license_plate_number = :lpn ';
4434: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn ';
4435: gme_debug.put_line('in IF p_lpn IS NOT NULL ');
4436:

Line 4434: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn ';

4430: where_clause := where_clause ||'AND gs.lpn_id = lpn.lpn_id ';
4431:
4432: gmd_outbound_apis_pub.g_lpn := p_lpn;
4433: where_clause := where_clause||'AND lpn.license_plate_number = :lpn ';
4434: using_clause := using_clause||', gmd_outbound_apis_pub.g_lpn ';
4435: gme_debug.put_line('in IF p_lpn IS NOT NULL ');
4436:
4437:
4438: END IF;

Line 4444: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_samples_table ';

4440:
4441:
4442: -- That's more or less the job done. We just need to tell the system where to store the data
4443:
4444: into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_samples_table ';
4445:
4446: execution_string := 'BEGIN EXECUTE IMMEDIATE '
4447: ||''''
4448: ||sql_statement||column_list||table_list||where_clause

Line 4671: x_samples_table := gmd_outbound_apis_pub.g_samples_table;

4667:
4668:
4669: END LOOP;
4670:
4671: x_samples_table := gmd_outbound_apis_pub.g_samples_table;
4672: x_return_status := FND_API.G_RET_STS_SUCCESS;
4673: -- dbms_output.put_line('Returning table to caller');
4674:
4675: gme_debug.put_line('Returning table to caller');

Line 4806: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')

4802:
4803: BEGIN
4804:
4805: IF NOT FND_API.Compatible_API_CALL
4806: (gmd_outbound_apis_pub.api_version, p_api_version, l_api_name,'GMD_OUTBOUND_APIS_PUB')
4807: OR NOT initialized_ok(p_user_name)
4808: THEN
4809: Raise FND_API.G_EXC_UNEXPECTED_ERROR;
4810: ELSE

Line 4921: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_orgn_id';

4917: THEN
4918: g_orgn_id := p_organization_id;
4919: main_where_clause := main_where_clause
4920: ||' AND se.organization_id = :organization_id';
4921: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_orgn_id';
4922: END IF;
4923:
4924: IF p_from_sample_no IS NOT NULL OR p_to_sample_no IS NOT NULL
4925: THEN

Line 4933: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_sample_no';

4929: IF p_from_sample_no IS NOT NULL
4930: THEN
4931: g_from_sample_no := p_from_sample_no;
4932: main_where_clause := main_where_clause||' AND gsa.sample_no >= :from_sample';
4933: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_sample_no';
4934: END IF;
4935:
4936: IF p_to_sample_no IS NOT NULL
4937: THEN

Line 4940: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_sample_no';

4936: IF p_to_sample_no IS NOT NULL
4937: THEN
4938: g_to_sample_no := p_to_sample_no;
4939: main_where_clause := main_where_clause||' AND gsa.sample_no <= :to_sample';
4940: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_sample_no';
4941: END IF;
4942: END IF;
4943:
4944: /* Bug 3124627 - changed event_id to sampling_event_id */

Line 4951: ', gmd_outbound_apis_pub.g_sample_event_id';

4947: g_sample_event_id := p_sample_event_id;
4948: main_where_clause := main_where_clause||
4949: ' AND se.sampling_event_id = :sampling_event_id';
4950: main_using_clause := main_using_clause||
4951: ', gmd_outbound_apis_pub.g_sample_event_id';
4952: END IF;
4953:
4954: IF (p_from_item_number IS NOT NULL OR p_to_item_number IS NOT NULL ) THEN
4955: g_from_item_number := p_from_item_number;

Line 4961: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';

4957: main_where_clause := main_where_clause
4958: ||' AND gs.inventory_item_id IN (SELECT inventory_item_id FROM mtl_system_items_b_kfv'
4959: ||' WHERE concatenated_segments BETWEEN :from_item_number AND :to_item_number'
4960: ||' AND organization_id = gs.owner_organization_id)';
4961: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number, gmd_outbound_apis_pub.g_to_item_number';
4962: END IF; -- (p_from_item_number IS NOT NULL OR p_to_item_number IS NOT NULL )
4963:
4964: -- Bug 4165704 invconv: code replaced by above
4965: --IF p_from_item_number IS NOT NULL THEN

Line 4968: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';

4964: -- Bug 4165704 invconv: code replaced by above
4965: --IF p_from_item_number IS NOT NULL THEN
4966: --g_from_item_number := p_from_item_number;
4967: --main_where_clause := main_where_clause||' AND im.item_number >= :from_item';
4968: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_item_number';
4969: --END IF;
4970: --IF p_to_item_number IS NOT NULL THEN
4971: --g_to_item_number := p_to_item_number;
4972: --main_where_clause := main_where_clause||' AND im.item_number <= :to_item';

Line 4973: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';

4969: --END IF;
4970: --IF p_to_item_number IS NOT NULL THEN
4971: --g_to_item_number := p_to_item_number;
4972: --main_where_clause := main_where_clause||' AND im.item_number <= :to_item';
4973: --main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_item_number';
4974: --END IF;
4975:
4976: IF p_inventory_item_id IS NOT NULL
4977: THEN

Line 4980: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inventory_item_id';

4976: IF p_inventory_item_id IS NOT NULL
4977: THEN
4978: g_inventory_item_id := p_inventory_item_id;
4979: main_where_clause := main_where_clause||' AND se.inventory_item_id = :inventory_item_id';
4980: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_inventory_item_id';
4981: END IF;
4982:
4983: IF p_from_lot_number IS NOT NULL
4984: THEN

Line 4987: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_lot_number';

4983: IF p_from_lot_number IS NOT NULL
4984: THEN
4985: g_from_lot_number := p_from_lot_number;
4986: main_where_clause := main_where_clause||' AND se.lot_number >= :from_lot_number';
4987: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_lot_number';
4988: END IF;
4989:
4990: IF p_to_lot_number IS NOT NULL
4991: THEN

Line 4994: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_lot_number';

4990: IF p_to_lot_number IS NOT NULL
4991: THEN
4992: g_to_lot_number := p_to_lot_number;
4993: main_where_clause := main_where_clause||' AND se.lot_number <= :to_lot_number';
4994: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_lot_number';
4995: END IF;
4996:
4997: IF p_from_parent_lot_number IS NOT NULL
4998: THEN

Line 5001: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_parent_lot_number';

4997: IF p_from_parent_lot_number IS NOT NULL
4998: THEN
4999: g_from_parent_lot_number := p_from_parent_lot_number;
5000: main_where_clause := main_where_clause||' AND se.parent_lot_number >= :from_parent_lot_number';
5001: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_parent_lot_number';
5002: END IF;
5003:
5004: IF p_to_parent_lot_number IS NOT NULL
5005: THEN

Line 5008: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_parent_lot_number';

5004: IF p_to_parent_lot_number IS NOT NULL
5005: THEN
5006: g_to_parent_lot_number := p_to_parent_lot_number;
5007: main_where_clause := main_where_clause||' AND se.parent_lot_number <= :to_parent_lot_number';
5008: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_parent_lot_number';
5009: END IF;
5010:
5011: /* taken out for bug 4165704
5012: IF p_lot_id IS NOT NULL

Line 5016: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_lot_id';

5012: IF p_lot_id IS NOT NULL
5013: THEN
5014: g_lot_id := p_lot_id;
5015: main_where_clause := main_where_clause||' AND se.lot_id = :lot_id';
5016: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_lot_id';
5017: END IF;
5018: */
5019:
5020: IF p_subinventory IS NOT NULL

Line 5024: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_subinventory';

5020: IF p_subinventory IS NOT NULL
5021: THEN
5022: g_subinventory := p_subinventory;
5023: main_where_clause := main_where_clause||' AND se.subinventory = :subinventory';
5024: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_subinventory';
5025: END IF;
5026:
5027: IF p_locator_id IS NOT NULL
5028: THEN

Line 5031: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_locator_id';

5027: IF p_locator_id IS NOT NULL
5028: THEN
5029: g_locator_id := p_locator_id;
5030: main_where_clause := main_where_clause||' AND se.locator_id = :locator_id';
5031: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_locator_id';
5032: END IF;
5033:
5034: /* taken out for invconv bug 4165704
5035: IF p_location_id IS NOT NULL

Line 5041: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_location_id';

5037: g_location_id := p_location_id;
5038: main_table_list := main_table_list||', ic_loct_mst lm';
5039: main_where_clause := main_where_clause||' AND se.location = il.location'
5040: ||' AND il.inventory_location_id = :location_id';
5041: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_location_id';
5042: END IF;
5043: */
5044:
5045: IF p_wip_organization_id IS NOT NULL

Line 5049: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_orgn_id';

5045: IF p_wip_organization_id IS NOT NULL
5046: THEN
5047: g_wip_orgn_id := p_wip_organization_id;
5048: main_where_clause := main_where_clause||' AND bh.plant_code = :wip_organization_id';
5049: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_orgn_id';
5050: END IF;
5051:
5052: IF p_wip_batch_no IS NOT NULL
5053: THEN

Line 5056: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_no';

5052: IF p_wip_batch_no IS NOT NULL
5053: THEN
5054: g_wip_batch_no := p_wip_batch_no;
5055: main_where_clause := main_where_clause||' AND bh.batch_no = :wip_batch_no';
5056: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_no';
5057: END IF;
5058:
5059: IF p_wip_batch_id IS NOT NULL
5060: THEN

Line 5063: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_id';

5059: IF p_wip_batch_id IS NOT NULL
5060: THEN
5061: g_wip_batch_id := p_wip_batch_id;
5062: main_where_clause := main_where_clause||' AND se.batch_id = :wip_batch_id';
5063: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_batch_id';
5064: END IF;
5065:
5066: IF p_wip_formula_no IS NOT NULL
5067: THEN

Line 5070: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_no';

5066: IF p_wip_formula_no IS NOT NULL
5067: THEN
5068: g_wip_formula_no := p_wip_formula_no;
5069: main_where_clause := main_where_clause||' AND fh.formula_no = :wip_formula_no';
5070: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_no';
5071: END IF;
5072:
5073: IF p_wip_formula_vers IS NOT NULL
5074: THEN

Line 5077: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers';

5073: IF p_wip_formula_vers IS NOT NULL
5074: THEN
5075: g_wip_formula_vers := p_wip_formula_vers;
5076: main_where_clause := main_where_clause||' AND fh.formula_no = :wip_formula_vers';
5077: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_vers';
5078: END IF;
5079:
5080: IF p_wip_formula_id IS NOT NULL
5081: THEN

Line 5084: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';

5080: IF p_wip_formula_id IS NOT NULL
5081: THEN
5082: g_wip_formula_id := p_wip_formula_id;
5083: main_where_clause := main_where_clause||' AND se.formula_id = :wip_formula_id';
5084: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';
5085: END IF;
5086:
5087: IF p_wip_recipe_no IS NOT NULL
5088: THEN

Line 5091: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no';

5087: IF p_wip_recipe_no IS NOT NULL
5088: THEN
5089: g_wip_recipe_no := p_wip_recipe_no;
5090: main_where_clause := main_where_clause||' AND r.recipe_no = :wip_recipe_no';
5091: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_no';
5092: END IF;
5093:
5094: /* Bug 3124643; Changed r.recipe_no to r.recipe_version */
5095: IF p_wip_recipe_vers IS NOT NULL

Line 5099: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_vers';

5095: IF p_wip_recipe_vers IS NOT NULL
5096: THEN
5097: g_wip_recipe_vers := p_wip_recipe_vers;
5098: main_where_clause := main_where_clause||' AND r.recipe_version = :wip_recipe_vers';
5099: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_recipe_vers';
5100: END IF;
5101:
5102: IF p_wip_recipe_id IS NOT NULL
5103: THEN

Line 5106: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';

5102: IF p_wip_recipe_id IS NOT NULL
5103: THEN
5104: g_wip_recipe_id := p_wip_recipe_id;
5105: main_where_clause := main_where_clause||' AND se.recipe_id = :wip_recipe_id';
5106: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formula_id';
5107: END IF;
5108:
5109: IF p_wip_formulaline_id IS NOT NULL
5110: THEN

Line 5113: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id';

5109: IF p_wip_formulaline_id IS NOT NULL
5110: THEN
5111: g_wip_formulaline_id := p_wip_formulaline_id;
5112: main_where_clause := main_where_clause||' AND se.formulaline_id = :wip_formulaline_id';
5113: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_id';
5114: END IF;
5115:
5116: IF p_wip_formulaline_no IS NOT NULL OR p_wip_formulaline_type IS NOT NULL
5117: THEN

Line 5123: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_no';

5119: IF p_wip_formulaline_no IS NOT NULL
5120: THEN
5121: g_wip_formulaline_no := p_wip_formulaline_no;
5122: main_where_clause := main_where_clause||' AND fd.line_no = :wip_formulaline_no';
5123: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_no';
5124: END IF;
5125:
5126: IF p_wip_formulaline_type IS NOT NULL
5127: THEN

Line 5130: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_type';

5126: IF p_wip_formulaline_type IS NOT NULL
5127: THEN
5128: g_wip_formulaline_type := p_wip_formulaline_type;
5129: main_where_clause := main_where_clause||' AND fd.formulaline_type = :wip_formulaline_type';
5130: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_formulaline_type';
5131: END IF;
5132: END IF;
5133:
5134: IF p_wip_step_id IS NOT NULL

Line 5138: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_id';

5134: IF p_wip_step_id IS NOT NULL
5135: THEN
5136: g_wip_step_id := p_wip_step_id;
5137: main_where_clause := main_where_clause||' AND se.step_id = :wip_step_id';
5138: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_id';
5139: END IF;
5140:
5141: IF p_wip_step_no IS NOT NULL
5142: THEN

Line 5145: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_no';

5141: IF p_wip_step_no IS NOT NULL
5142: THEN
5143: g_wip_step_no := p_wip_step_no;
5144: main_where_clause := main_where_clause||' AND se.step_no = :wip_step_no';
5145: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_step_no';
5146: END IF;
5147:
5148: IF p_wip_oprn_id IS NOT NULL
5149: THEN

Line 5152: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id';

5148: IF p_wip_oprn_id IS NOT NULL
5149: THEN
5150: g_wip_oprn_id := p_wip_oprn_id;
5151: main_where_clause := main_where_clause||' AND se.oprn_id = :wip_oprn_id';
5152: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_id';
5153: END IF;
5154:
5155: IF p_wip_oprn_no IS NOT NULL OR p_wip_oprn_vers IS NOT NULL
5156: THEN

Line 5164: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no';

5160: IF p_wip_oprn_no IS NOT NULL
5161: THEN
5162: g_wip_oprn_no := p_wip_oprn_no;
5163: main_where_clause := main_where_clause||' AND go.oprn_no = :wip_oprn_no';
5164: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_no';
5165: END IF;
5166:
5167: IF p_wip_oprn_id IS NOT NULL
5168: THEN

Line 5171: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers';

5167: IF p_wip_oprn_id IS NOT NULL
5168: THEN
5169: g_wip_oprn_id := p_wip_oprn_id;
5170: main_where_clause := main_where_clause||' AND go.oprn_vers = :wip_oprn_vers';
5171: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_wip_oprn_vers';
5172: END IF;
5173: END IF;
5174:
5175: IF p_customer_order_id IS NOT NULL

Line 5179: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_id';

5175: IF p_customer_order_id IS NOT NULL
5176: THEN
5177: g_customer_order_id := p_customer_order_id;
5178: main_where_clause := main_where_clause||' AND se.order_id = :customer_order_id';
5179: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_id';
5180: END IF;
5181:
5182: IF p_customer_order_number IS NOT NULL
5183: THEN

Line 5186: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_number';

5182: IF p_customer_order_number IS NOT NULL
5183: THEN
5184: g_customer_order_number := p_customer_order_number;
5185: main_where_clause := main_where_clause||' AND oh.order_number = :customer_order_number';
5186: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_number';
5187: END IF;
5188:
5189: IF p_customer IS NOT NULL
5190: THEN

Line 5196: main_using_clause := main_using_clause ||', gmd_outbound_apis_pub.g_cust_name ';

5192: main_table_list := main_table_list ||', hz_cust_accounts_all hca, hz_parties hp ';
5193: main_where_clause := main_where_clause ||' AND se.cust_id = hca.cust_account_id'
5194: ||' AND hca.party_id = hp.party_id'
5195: ||' AND hp.party_name = :cust_name';
5196: main_using_clause := main_using_clause ||', gmd_outbound_apis_pub.g_cust_name ';
5197: END IF;
5198:
5199: IF p_customer_id IS NOT NULL
5200: THEN

Line 5203: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_id';

5199: IF p_customer_id IS NOT NULL
5200: THEN
5201: g_customer_id := p_customer_id;
5202: main_where_clause := main_where_clause||' AND se.cust_id = :customer_id';
5203: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_id';
5204: END IF;
5205:
5206: /* Bug 3124653 Added code to retrieve sample groups by customer_ship_to_location &
5207: customer_ship_to_location_id */

Line 5217: ', gmd_outbound_apis_pub.g_customer_ship_to_location';

5213: ' ( select site_use_id '||
5214: ' from hz_cust_site_uses_all '||
5215: ' where location = :customer_ship_to_location)';
5216: main_using_clause := main_using_clause||
5217: ', gmd_outbound_apis_pub.g_customer_ship_to_location';
5218: END IF;
5219:
5220: IF p_customer_ship_to_location_id IS NOT NULL
5221: THEN

Line 5226: ', gmd_outbound_apis_pub.g_customer_ship_to_location_id';

5222: g_customer_ship_to_location_id := p_customer_ship_to_location_id;
5223: main_where_clause := main_where_clause||
5224: ' AND se.ship_to_site_id = :customer_ship_to_location_id';
5225: main_using_clause := main_using_clause||
5226: ', gmd_outbound_apis_pub.g_customer_ship_to_location_id';
5227: END IF;
5228:
5229: IF p_customer_order_type IS NOT NULL
5230: THEN

Line 5235: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_type';

5231: g_customer_order_type := p_customer_order_type;
5232: main_table_list := main_table_list||', oe_transaction_types_all tt';
5233: main_where_clause := main_where_clause||' AND oh.order_type_id = tt.transaction_type_id'
5234: ||' AND tt.transaction_type_code = :customer_order_type';
5235: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_type';
5236: END IF;
5237:
5238: IF p_customer_order_line IS NOT NULL OR p_customer_order_line_id IS NOT NULL
5239: THEN

Line 5246: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line';

5242: IF p_customer_order_line IS NOT NULL
5243: THEN
5244: g_customer_order_line := p_customer_order_line;
5245: main_where_clause := main_where_clause||' AND ol.line_number = :customer_order_line';
5246: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line';
5247: END IF;
5248:
5249: IF p_customer_order_line_id IS NOT NULL
5250: THEN

Line 5253: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line_id';

5249: IF p_customer_order_line_id IS NOT NULL
5250: THEN
5251: g_customer_order_line_id := g_customer_order_line_id;
5252: main_where_clause := main_where_clause||' AND ol.line_id = :customer_order_line_id';
5253: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_customer_order_line_id';
5254: END IF;
5255: END IF;
5256:
5257: IF p_supplier_id IS NOT NULL

Line 5261: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_id';

5257: IF p_supplier_id IS NOT NULL
5258: THEN
5259: g_supplier_id := p_supplier_id;
5260: main_where_clause := main_where_clause||' AND se.supplier_id = :supplier_id';
5261: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_id';
5262: END IF;
5263:
5264: IF p_supplier IS NOT NULL
5265: THEN

Line 5270: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier';

5266: g_supplier := p_supplier;
5267: main_table_list := main_table_list||', po_vendors v';
5268: main_where_clause := main_where_clause||' AND se.supplier_id = v.vendor_id'
5269: ||' AND v.segment1 = :supplier';
5270: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier';
5271: END IF;
5272:
5273: IF p_supplier_site IS NOT NULL
5274: THEN

Line 5279: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_site';

5275: g_supplier_site := p_supplier_site;
5276: main_table_list := main_table_list||', po_vendor_sites_all vsa';
5277: main_where_clause := main_where_clause||' AND se.supplier_site_id = vsa.vendor_site_id'
5278: ||' AND vsa.vendor_site_code = :supplier_site';
5279: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_site';
5280: END IF;
5281:
5282: IF p_supplier_po_number IS NOT NULL
5283: THEN

Line 5288: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_number';

5284: g_supplier_po_number := p_supplier_po_number;
5285: main_table_list := main_table_list||', po_headers_all pha';
5286: main_where_clause := main_where_clause||' AND se.po_header_id = pha.po_header_id'
5287: ||' AND pha.segment1 = :supplier_po_number';
5288: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_number';
5289: END IF;
5290:
5291: IF p_supplier_po_id IS NOT NULL
5292: THEN

Line 5295: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_id';

5291: IF p_supplier_po_id IS NOT NULL
5292: THEN
5293: g_supplier_po_id := p_supplier_po_id;
5294: main_where_clause := main_where_clause||' AND se.po_header_id = :supplier_po_id';
5295: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_id';
5296: END IF;
5297:
5298: IF p_supplier_po_line IS NOT NULL
5299: THEN

Line 5302: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line';

5298: IF p_supplier_po_line IS NOT NULL
5299: THEN
5300: g_supplier_po_line := g_supplier_po_line;
5301: main_where_clause := main_where_clause||' AND pl.line_num = :supplier_po_line)';
5302: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line';
5303: END IF;
5304:
5305: IF p_supplier_po_line_id IS NOT NULL
5306: THEN

Line 5309: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id';

5305: IF p_supplier_po_line_id IS NOT NULL
5306: THEN
5307: g_supplier_po_line_id := p_supplier_po_line_id;
5308: main_where_clause := main_where_clause||' AND se.po_line_id = :supplier_po_line_id';
5309: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_supplier_po_line_id';
5310: END IF;
5311:
5312: IF p_disposition IS NOT NULL
5313: THEN

Line 5316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';

5312: IF p_disposition IS NOT NULL
5313: THEN
5314: g_disposition := p_disposition;
5315: main_where_clause := main_where_clause||' AND se.disposition = :disposition';
5316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';
5317:
5318: disp_where_clause := disp_where_clause||' AND sd.disposition = :disposition';
5319: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';
5320: END IF;

Line 5319: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';

5315: main_where_clause := main_where_clause||' AND se.disposition = :disposition';
5316: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_disposition';
5317:
5318: disp_where_clause := disp_where_clause||' AND sd.disposition = :disposition';
5319: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_disposition';
5320: END IF;
5321:
5322: IF p_delete_mark IS NOT NULL
5323: THEN

Line 5326: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_delete_mark';

5322: IF p_delete_mark IS NOT NULL
5323: THEN
5324: g_delete_mark := p_delete_mark;
5325: disp_where_clause := disp_where_clause||' AND sd.delete_mark = :delete_mark';
5326: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_delete_mark';
5327: END IF;
5328:
5329:
5330: IF p_from_last_update_date IS NOT NULL

Line 5332: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;

5328:
5329:
5330: IF p_from_last_update_date IS NOT NULL
5331: THEN
5332: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
5333: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5335:
5336: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';

Line 5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

5330: IF p_from_last_update_date IS NOT NULL
5331: THEN
5332: gmd_outbound_apis_pub.g_from_last_update_date := p_from_last_update_date;
5333: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5335:
5336: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';
5337: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5338: END IF;

Line 5337: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';

5333: main_where_clause := main_where_clause||'AND se.last_update_date >= :from_last_update_date ';
5334: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5335:
5336: disp_where_clause := disp_where_clause||'AND sd.last_update_date >= :from_last_update_date ';
5337: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_from_last_update_date ';
5338: END IF;
5339:
5340: IF p_to_last_update_date IS NOT NULL
5341: THEN

Line 5342: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;

5338: END IF;
5339:
5340: IF p_to_last_update_date IS NOT NULL
5341: THEN
5342: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
5343: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5344: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5345:
5346: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';

Line 5344: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

5340: IF p_to_last_update_date IS NOT NULL
5341: THEN
5342: gmd_outbound_apis_pub.g_to_last_update_date := p_to_last_update_date;
5343: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5344: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5345:
5346: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';
5347: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5348: END IF;

Line 5347: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';

5343: main_where_clause := main_where_clause||'AND se.last_update_date <= :to_last_update_date ';
5344: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5345:
5346: disp_where_clause := disp_where_clause||'AND sd.last_update_date <= :to_last_update_date ';
5347: disp_using_clause := disp_using_clause||', gmd_outbound_apis_pub.g_to_last_update_date ';
5348: END IF;
5349:
5350: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5351: IF p_sg_organization_id IS NOT NULL

Line 5353: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;

5349:
5350: -- START B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5351: IF p_sg_organization_id IS NOT NULL
5352: THEN
5353: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;
5354: main_where_clause := main_where_clause||'AND se.organization_id = :sg_organization_id ';
5355: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';
5356: END IF;
5357:

Line 5355: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';

5351: IF p_sg_organization_id IS NOT NULL
5352: THEN
5353: gmd_outbound_apis_pub.g_sg_organization_id := p_sg_organization_id;
5354: main_where_clause := main_where_clause||'AND se.organization_id = :sg_organization_id ';
5355: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_sg_organization_id ';
5356: END IF;
5357:
5358: IF p_resources IS NOT NULL
5359: THEN

Line 5360: gmd_outbound_apis_pub.g_resources := p_resources;

5356: END IF;
5357:
5358: IF p_resources IS NOT NULL
5359: THEN
5360: gmd_outbound_apis_pub.g_resources := p_resources;
5361: main_where_clause := main_where_clause||'AND se.resources = :resources ';
5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';
5363: END IF;
5364:

Line 5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';

5358: IF p_resources IS NOT NULL
5359: THEN
5360: gmd_outbound_apis_pub.g_resources := p_resources;
5361: main_where_clause := main_where_clause||'AND se.resources = :resources ';
5362: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_resources ';
5363: END IF;
5364:
5365: IF p_instance_id IS NOT NULL
5366: THEN

Line 5367: gmd_outbound_apis_pub.g_instance_id := p_instance_id;

5363: END IF;
5364:
5365: IF p_instance_id IS NOT NULL
5366: THEN
5367: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
5368: main_where_clause := main_where_clause||'AND se.instance_id = :instance_id ';
5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';
5370: END IF;
5371:

Line 5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';

5365: IF p_instance_id IS NOT NULL
5366: THEN
5367: gmd_outbound_apis_pub.g_instance_id := p_instance_id;
5368: main_where_clause := main_where_clause||'AND se.instance_id = :instance_id ';
5369: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_instance_id ';
5370: END IF;
5371:
5372: l_ss_table_included := 'FALSE';
5373: IF (p_ss_organization_id IS NOT NULL OR p_ss_no IS NOT NULL OR p_ss_id IS NOT NULL) THEN

Line 5380: gmd_outbound_apis_pub.g_ss_id := p_ss_id;

5376: l_ss_table_included := 'TRUE';
5377:
5378: IF p_ss_id IS NOT NULL
5379: THEN
5380: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
5381: main_where_clause := main_where_clause||'AND ss.ss_id = :ss_id ';
5382: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';
5383: END IF;
5384:

Line 5382: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';

5378: IF p_ss_id IS NOT NULL
5379: THEN
5380: gmd_outbound_apis_pub.g_ss_id := p_ss_id;
5381: main_where_clause := main_where_clause||'AND ss.ss_id = :ss_id ';
5382: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_id ';
5383: END IF;
5384:
5385: IF p_ss_organization_id IS NOT NULL
5386: THEN

Line 5387: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;

5383: END IF;
5384:
5385: IF p_ss_organization_id IS NOT NULL
5386: THEN
5387: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
5388: main_where_clause := main_where_clause||'AND ss.organization_id = :ss_organization_id ';
5389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
5390: END IF;
5391:

Line 5389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';

5385: IF p_ss_organization_id IS NOT NULL
5386: THEN
5387: gmd_outbound_apis_pub.g_ss_organization_id := p_ss_organization_id;
5388: main_where_clause := main_where_clause||'AND ss.organization_id = :ss_organization_id ';
5389: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_organization_id ';
5390: END IF;
5391:
5392: IF p_ss_no IS NOT NULL
5393: THEN

Line 5394: gmd_outbound_apis_pub.g_ss_no := p_ss_no;

5390: END IF;
5391:
5392: IF p_ss_no IS NOT NULL
5393: THEN
5394: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
5395: main_where_clause := main_where_clause||'AND ss.ss_no = :ss_no ';
5396: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';
5397: END IF;
5398:

Line 5396: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';

5392: IF p_ss_no IS NOT NULL
5393: THEN
5394: gmd_outbound_apis_pub.g_ss_no := p_ss_no;
5395: main_where_clause := main_where_clause||'AND ss.ss_no = :ss_no ';
5396: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_ss_no ';
5397: END IF;
5398:
5399: END IF;
5400:

Line 5408: gmd_outbound_apis_pub.g_variant_no := p_variant_no;

5404: main_table_list := main_table_list ||', gmd_ss_variants ssv ';
5405: main_where_clause := main_where_clause ||'AND ssv.variant_id = se.variant_id ';
5406: END IF;
5407:
5408: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
5409: main_where_clause := main_where_clause||'AND ssv.variant_no = :variant_no ';
5410: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';
5411: END IF;
5412:

Line 5410: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';

5406: END IF;
5407:
5408: gmd_outbound_apis_pub.g_variant_no := p_variant_no;
5409: main_where_clause := main_where_clause||'AND ssv.variant_no = :variant_no ';
5410: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_no ';
5411: END IF;
5412:
5413: IF p_variant_id IS NOT NULL
5414: THEN

Line 5415: gmd_outbound_apis_pub.g_variant_id := p_variant_id;

5411: END IF;
5412:
5413: IF p_variant_id IS NOT NULL
5414: THEN
5415: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
5416: main_where_clause := main_where_clause||'AND se.variant_id = :variant_id ';
5417: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';
5418: END IF;
5419:

Line 5417: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';

5413: IF p_variant_id IS NOT NULL
5414: THEN
5415: gmd_outbound_apis_pub.g_variant_id := p_variant_id;
5416: main_where_clause := main_where_clause||'AND se.variant_id = :variant_id ';
5417: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_variant_id ';
5418: END IF;
5419:
5420: IF p_time_point_id IS NOT NULL
5421: THEN

Line 5422: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;

5418: END IF;
5419:
5420: IF p_time_point_id IS NOT NULL
5421: THEN
5422: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
5423: main_where_clause := main_where_clause||'AND se.time_point_id = :time_point_id ';
5424: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
5425: END IF;
5426:

Line 5424: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';

5420: IF p_time_point_id IS NOT NULL
5421: THEN
5422: gmd_outbound_apis_pub.g_time_point_id := p_time_point_id;
5423: main_where_clause := main_where_clause||'AND se.time_point_id = :time_point_id ';
5424: main_using_clause := main_using_clause||', gmd_outbound_apis_pub.g_time_point_id ';
5425: END IF;
5426:
5427: -- END B3124291 Incorporated Mini-Pack K Features to Outboud APIs
5428:

Line 5448: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_sample_groups_table ';

5444: -- That's more or less the job done. We just need to tell the system where to store the data
5445: -- and assemble the USING clause. Note thatthe main_using_clause is last in the list as it
5446: -- appears last in the query.
5447:
5448: main_into_clause := ' BULK COLLECT INTO gmd_outbound_apis_pub.g_sample_groups_table ';
5449: main_using_clause := ' USING '||disp_using_clause
5450: ||','||main_using_clause;
5451:
5452: main_execution_string := 'BEGIN EXECUTE IMMEDIATE '

Line 5519: end gmd_outbound_apis_pub;

5515: FND_MSG_PUB.count_and_get(p_count => x_msg_count, p_data => x_msg_data);
5516: x_return_status := FND_API.G_RET_STS_ERROR;
5517: END fetch_sample_groups;
5518:
5519: end gmd_outbound_apis_pub;